1 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
3 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
4 inlining -fno-strict-aliasing into -fstrict-aliasing body.
6 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
7 Sebastian Pop <s.pop@samsung.com>
9 PR tree-optimization/68565
10 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
11 codegen_error. Fail when rhs of division operations is integer_zerop.
12 (ternary_op_to_tree): Early return on codegen_error.
13 (unary_op_to_tree): Same.
14 (nary_op_to_tree): Same.
15 (gcc_expression_from_isl_expr_op): Same.
16 (gcc_expression_from_isl_expression): Same.
17 (graphite_create_new_loop): On codegen_error continue generating
19 (graphite_create_new_loop_guard): Same.
20 (build_iv_mapping): Same.
21 (graphite_create_new_guard): Same.
23 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
24 Sebastian Pop <s.pop@samsung.com>
26 * graphite-isl-ast-to-gimple.c: Fix dump messages.
27 * graphite-scop-detection.c: Same.
28 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
30 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
32 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
33 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
34 (convert_local_omp_clauses): Likewise.
36 2015-11-30 Tom de Vries <tom@codesourcery.com>
38 PR tree-optimization/46032
39 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
41 (find_func_aliases_for_call): ... here.
42 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
43 BUILT_IN_GOMP_PARALLEL.
44 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
47 2015-11-30 Jakub Jelinek <jakub@redhat.com>
49 PR tree-optimization/68501
50 * target.def (builtin_reciprocal): Replace the 3 arguments with
51 a gcall * one, adjust description.
52 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
54 * targhooks.c (default_builtin_reciprocal): Likewise.
55 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
56 targetm.builtin_reciprocal even on internal functions, adjust
57 the arguments and allow replacing an internal function with normal
59 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
60 with a gcall * one. Handle internal fns too.
61 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
62 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
63 * doc/tm.texi (builtin_reciprocal): Document.
65 2015-11-30 Richard Biener <rguenther@suse.de>
67 PR tree-optimization/68592
68 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
69 on the pattern def sequence.
71 2015-11-30 Nathan Sidwell <nathan@acm.org>
73 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
74 (write_one_arg): Reorder parms, add 'sep' param.
75 (nvptx_write_function_decl): Rename to ...
76 (write_fn_proto): ... here. Do name replacement. Emit linaer
77 comment marker. Deal with both decls and defns. Simplify argument
79 (write_function_decl_and_comment): Delete.
80 (write_func_decl_from_insn): Rename to ...
81 (write_fn_proto_from_insn): ... here. Don't do name replacement.
82 (nvptx_record_fndecl): Call write_fn_proto.
83 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
84 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
85 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
87 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
89 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
90 (define_insn "*k<logic><mode>"): Use new iterator.
92 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
95 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
96 (sparc_adjust_cost): Add missing space.
98 2015-11-30 Richard Biener <rguenther@suse.de>
101 * dwarf2out.c (gen_type_die_with_usage): Keep variant types
104 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
106 * tree-if-conv.c (struct ifc_dr): Add new tree
107 base_predicate field.
108 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
109 base ref, DR pairs and store base_predicate for write type DRs.
110 (ifcvt_memrefs_wont_trap): Guard checks with
111 -ftree-loop-if-convert-stores flag.
113 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
115 * cgraph.c (cgraph_node::make_local): No name is unique during
117 * cgraph.h (can_be_discarded_p): Update comment; also common and
118 WEAK in named sections can be discarded; when doing incremental
119 link do not rely on resolution being the final one.
120 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
121 When symbol can be discarded, do not rely on resolution info.
122 * symtab.c (symtab_node::nonzero_address): Take into account that
123 symbol can be discarded.
124 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
125 definition correctly.
126 (function_and_variable_visibility): Do not set unique_name when
127 incrementally linking.
129 2015-11-29 Nathan Sidwell <nathan@acm.org>
131 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
132 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
133 (ctrap<mode>): Use const0_operand.
135 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
137 * ipa-devirt.c (add_type_duplicate): Remove redundant ODR violation
140 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
143 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
144 recog_memoized test for insn and check recog_memoized for dep_insn.
146 2015-11-28 Nathan Sidwell <nathan@acm.org>
148 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
149 (FRAME_POINTER_CFA_OFFSET): Define.
150 (struct nvptx_args): Use 'tree' type.
151 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
153 2015-11-28 Tom de Vries <tom@codesourcery.com>
155 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
157 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
159 * doc/invoke.texi (Option Summary): Use negative form of
160 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
161 sort alphabetically and re-justify.
163 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
165 PR rtl-optimization/68536
166 * lra.c (lra_emit_add): Add code for null base.
167 * lra-constraints.c (curr_insn_transform): Skip operators for
170 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
173 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
175 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
177 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
178 are not modified by the final modified insns in the basic blocks.
180 2015-11-27 Nathan Sidwell <nathan@acm.org>
182 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
184 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
185 (nvptx_maybe_convert_symbolic_operand): Simplify.
186 (nvptx_addr_space_from_address): Delete.
187 (nvptx_print_operand): Adjust 'A' case.
189 2015-11-27 Richard Biener <rguenther@suse.de>
191 PR tree-optimization/68559
192 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
193 peeling for gap checks ...
194 * tree-vect-stmts.c (vectorizable_load): ... here and relax
196 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
197 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
199 2015-11-27 Nathan Sidwell <nathan@acm.org>
201 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't
203 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
204 (nvptx_record_fndecl): Don't return value, remove force
205 argument. Require fndecl.
206 (nvptx_record_libfunc): New.
207 (nvptx_record_needed_decl): Deteermine how to record decl here.
208 (nvptx_maybe_record_fnsym): New.
209 (nvptx_expand_call): Don't record libfuncs here,
210 (nvptx_maybe_convert_symbolic_operand): Use
211 nvptx_maye_record_fnsym.
212 (nvptx_assemble_integer): Reimplement with single switch.
213 (nvptx_output_call_insn): Register libfuncs here.
214 (nvptx_file_end): Adjust nvptx_record_fndecl call.
215 * config/nvptx/nvptx.md (expand_movdi): Don't call
216 nvptx_record_needed_decl.
218 2015-11-27 Richard Biener <rguenther@suse.de>
220 PR tree-optimization/68553
221 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
222 generation for 1:1 permutations.
223 (vect_transform_slp_perm_load): Detect 1:1 permutations.
225 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
227 * gimple.h (nonbarrier_call_p): Declare.
228 * gimple.c (nonbarrier_call_p): New function.
229 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
230 Also increment call phase for ASMs with vdef and potential barrier
233 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
235 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
237 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
238 are not modified by the final modified insns in the basic blocks.
240 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
242 PR rtl-optimization/68506
243 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
244 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
247 2015-11-27 Martin Liska <mliska@suse.cz>
250 * vec.h (release_vec_vec): New function.
252 2015-11-27 Jakub Jelinek <jakub@redhat.com>
254 PR tree-optimization/68552
255 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
256 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
259 2015-11-27 Martin Liska <mliska@suse.cz>
261 * tree-ssa-uninit.c: Fix whitespaces in the source file.
262 The change is just automatical.
264 2015-11-27 Martin Liska <mliska@suse.cz>
266 * tree-chkp.c (chkp_make_static_bounds): Release buffer
269 2015-11-27 Martin Liska <mliska@suse.cz>
271 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
272 Do not release memory for comp_alias_ddrs.
273 * tree-vect-loop.c (destroy_loop_vec_info): Release
274 the memory for all loop_vec_info.
276 2015-11-27 Martin Liska <mliska@suse.cz>
278 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
279 of a local-scope vec.
280 (struct final_warning_record): Use auto_vec instead
283 2015-11-27 Richard Biener <rguenther@suse.de>
285 PR tree-optimization/68553
286 * tree-vect-slp.c (vect_get_mask_element): Remove.
287 (vect_transform_slp_perm_load): Implement in a simpler way.
289 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
291 PR rtl-optimization/67753
292 PR rtl-optimization/64164
293 * function.c (assign_parm_setup_block): Right-shift
294 upward-padded big-endian args when bypassing the stack slot.
296 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
298 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
299 `-mcompact-branches='.
300 (MIPS Options): Likewise.
302 2015-11-26 Jakub Jelinek <jakub@redhat.com>
304 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
306 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
308 * doc/install.texi (Prerequisites): Increase ISL requirement to
311 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
313 * config/aarch64/arm_neon.h
314 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
315 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
316 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
317 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
318 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
319 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
320 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
321 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
322 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
323 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
324 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
325 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
327 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
329 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
330 (vqrdmlahq_s16, vqrdmlahq_s32): New.
331 (vqrdmlsh_s16, vqrdmlsh_s32): New.
332 (vqrdmlshq_s16, vqrdmlshq_s32): New.
334 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
336 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
339 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
342 * tree-nested.c (finalize_nesting_tree_1): Append a field to
343 hold the frame base address.
344 * dwarf2out.c (gen_subprogram_die): Generate for
345 DW_AT_static_link a location description that computes the value
348 2015-11-26 Tom de Vries <tom@codesourcery.com>
351 2015-11-25 Tom de Vries <tom@codesourcery.com>
353 * cfgloop.c (find_single_latch): New function, factored out of ...
354 (flow_loops_find): ... here.
355 (verify_loop_structure): Improve verification of loop->latch.
356 * cfgloop.h (find_single_latch): Declare.
357 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
359 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
361 * config/aarch64/aarch64-simd-builtins.def:
362 Add missing changes from r230962.
364 2015-11-26 Nathan Sidwell <nathan@acm.org>
366 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
367 arg with name. Don't deal with split regs. Tweak formatting.
368 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
369 (nvptx_output_call_insn): Don't deal with split regs here.
371 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
373 * config/aarch64/aarch64-simd-builtins.def
374 (sqrdmlah, sqrdmlsh): New.
375 (sqrdmlah_lane, sqrdmlsh_lane): New.
376 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
378 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
380 * config/aarch64/aarch64-simd.md
381 (aarch64_sqmovun<mode>): Fix some white-space.
382 (aarch64_<sur>qmovun<mode>): Likewise.
383 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
384 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
385 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
386 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
387 (UNSPEC_SQRDMLSH): New.
391 2015-11-26 Richard Biener <rguenther@suse.de>
393 PR tree-optimization/66721
394 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
395 iteration cost earlier. Re-do analysis without SLP when
396 vectorization using SLP fails and without has a chance to succeed.
398 2015-11-26 Richard Biener <rguenther@suse.de>
400 * genmatch.c (dt_simplify::gen_1): For generic wrap all
401 multi-result-use captures in a SAVE_EXPR.
403 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
405 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
406 (TARGET_SIMD_RDMA): New.
408 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
410 * combine.c (subst): Do not return clobber of zero in widening mult
411 case. Just return x unchanged if it is a no-op substitution.
413 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
416 * config/i386/i386.h (enum reg_class): Add
417 bounds registers to ALL_REGS.
419 2015-11-26 Jakub Jelinek <jakub@redhat.com>
421 PR tree-optimization/68128
422 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
423 * gimplify.c: Include gimple-walk.h.
424 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
425 (omp_notice_variable): Set flags to n->value if n already
426 exists in target region, but we need to jump to do_outer.
427 (omp_shared_to_firstprivate_optimizable_decl_p,
428 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
430 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
431 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
432 not modified in the body. Call omp_mark_stores for outer
433 contexts on OMP_CLAUSE_SHARED clauses if they could be written
434 in the body or on OMP_CLAUSE_LASTPRIVATE.
435 (gimplify_adjust_omp_clauses): Add body argument, call
436 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
437 Set OMP_CLAUSE_SHARED_READONLY
438 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
439 not modified in the body. Call omp_mark_stores for outer
440 contexts on OMP_CLAUSE_SHARED clauses if they could be written
441 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
442 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
443 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
444 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
445 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
446 * tree-nested.c (convert_nonlocal_omp_clauses,
447 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
448 non-local vars or local vars referenced from nested routines.
449 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
450 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
451 TREE_READONLY, don't call use_pointer_for_field with non-NULL
452 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
454 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
456 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
457 about signed left shift stronger and clarify the cases when they're
460 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
461 Bernd Schmidt <bschmidt@redhat.com>
463 PR rtl-optimization/67226
464 * calls.c (store_one_arg): Take into account
465 crtl->args.pretend_args_size when checking for overlap between
466 arg->value and argblock + arg->locate.offset during sibcall
469 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
471 * config/aarch64/aarch64.md (cbranch<mode>4): Use
472 aarch64_fp_compare_operand.
473 (store_pairsf): Use aarch64_reg_or_fp_zero.
474 (store_pairdf): Likewise.
475 (cstore<mode>4): Use aarch64_fp_compare_operand.
476 (cmov<mode>6): Likewise.
477 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
479 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
480 Sebastian Pop <s.pop@samsung.com>
482 PR tree-optimization/68453
483 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
484 not redirect edges already pointing to their destination.
485 (translate_isl_ast_node_for): Split edges after loops to create
486 basic blocks for close phi nodes. Save merge points at the end of
488 (translate_isl_ast_node_if): Save merge points at the end of the
490 (add_close_phis_to_outer_loops): New.
491 (add_close_phis_to_merge_points): New.
492 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
493 (copy_bb_and_scalar_dependences): Do not split basic blocks on
494 loop close phi locations.
496 2015-11-25 Jan Hubicka <jh@suse.cz>
498 * ipa-visibility.c (cgraph_externally_visible_p,
499 varpool_node::externally_visible_p): When doing incremental linking,
500 hidden symbols may be still used later.
501 (update_visibility_by_resolution_info): Do not drop weak during
503 (function_and_variable_visibility): Fix formating.
504 * flag-types.h (lto_linker_output): Declare.
505 * common.opt 9flag_incremental_link): New flag.
507 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
509 * config/rs6000/constraints.md (wb constraint): New constraint for
510 ISA 3.0 d-form scalar addressing.
512 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
513 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
514 Altivec registers. Add wb constraint for Altivec registers with
515 D-form addressing. If we have ISA 3.0 d-form support, undo
516 secondary reload support for using FPR registers if we want to do
518 (rs6000_debug_reg_global): Likewise.
519 (rs6000_setup_reg_addr_masks): Likewise.
520 (rs6000_init_hard_regno_mode_ok): Likewise.
521 (rs6000_secondary_reload): Likewise.
522 (rs6000_preferred_reload_class): Likewise.
523 (rs6000_secondary_reload_class): Likewise.
525 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
528 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
529 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
536 (extendsfdf2_fpr): Likewise.
537 (mov<mode>_hardfloat): Likewise.
538 (mov<mode>_hardfloat32): Likewise.
539 (mov<mode>_hardfloat64): Likewise.
541 * doc/md.texi (RS/6000 constraints): Document wb constraint.
542 Fixup we constraint documentation.
544 2015-11-25 Tom de Vries <tom@codesourcery.com>
546 * omp-low.c (pass_expand_omp_ssa::clone): New function.
547 * passes.def: Add pass_oacc_kernels pass group.
548 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
550 2015-11-25 Tom de Vries <tom@codesourcery.com>
552 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
554 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
555 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
556 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
557 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
559 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
561 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
562 TV_IPA_LTO_OUTPUT): New.
563 * lto-compress.c: Include timevar.h
564 (lto_end_compression, lto_end_uncompression): Add timers.
565 * langhooks.c: Include timevar.h
566 (lhd_append_data): Add timer.
568 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
570 * varasm.c (default_elf_asm_output_limited_string,
571 default_elf_asm_output_ascii): Replace fprintf by putc.
573 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
575 PR rtl-optimization/67954
576 * lra-constraints.c (curr_insn_transform): Add check on scratch
577 pseudo when change class to NO_REGS. Add an assert.
579 2015-11-25 Nathan Sidwell <nathan@acm.org>
581 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
583 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
585 (nvptx_write_function_decl): Number args from 0.
586 (nvptx_declare_function_name): Likewise.
587 (nvptx_function_incoming_arg): Likewise.
588 (nvptx_output_call_insn): Correct formatting.
590 2015-11-25 David Sherwood <david.sherwood@arm.com>
592 * optabs.def: Add new optabs fmax_optab/fmin_optab.
593 * internal-fn.def: Add new fmax/fmin internal functions.
594 * doc/md.texi: Add fmin and fmax patterns.
596 2015-11-25 Jason Merrill <jason@redhat.com>
599 * tree.c (integer_zerop, integer_onep, integer_each_onep)
600 (integer_all_onesp, integer_minus_onep, integer_pow2p)
601 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
602 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
604 2015-11-25 Richard Biener <rguenther@suse.de>
607 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
608 on stripped operands.
610 2015-11-25 Nathan Sidwell <nathan@acm.org>
612 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
613 (nvptx_declare_function_name): Move assignments next to register
614 declarations, and process params here.
616 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
618 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
619 both the symbol and the "dot" symbol for function descriptors. Fix
620 inversion for rename of symbols with dollar sign.
622 2015-11-25 Tom de Vries <tom@codesourcery.com>
624 * cfgloop.c (find_single_latch): New function, factored out of ...
625 (flow_loops_find): ... here.
626 (verify_loop_structure): Improve verification of loop->latch.
627 * cfgloop.h (find_single_latch): Declare.
628 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
630 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
632 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
633 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
634 (STARTFILE_SPEC): Use %(startfile_vtv).
635 (ENDFILE_SPEC): Use %(endfile_vtv).
636 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
639 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
641 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
643 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
644 noce_can_store_speculate): Delete.
645 (noce_process_if_block): Don't try to handle single MEM stores.
646 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
647 * alias.c (memory_must_be_modified_in_insn_p): Delete.
649 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
651 PR rtl-optimization/68435
652 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
653 for conflicts between a, b and the set destinations.
655 2015-11-25 Richard Biener <rguenther@suse.de>
657 PR tree-optimization/68517
658 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
659 Properly handle zero-sized types.
661 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
663 * ipa-inline-analysis.c: Include gimplify.h
664 (set_cond_stmt_execution_predicate,
665 set_switch_stmt_execution_predicate): Be sure to not leak locations
668 2015-11-25 Jakub Jelinek <jakub@redhat.com>
671 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
672 match_uaddsub_overflow): New functions.
673 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
675 2015-11-25 Richard Biener <rguenther@suse.de>
677 PR tree-optimization/68492
678 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
679 op from scalars after operand swapping.
681 2015-11-25 Richard Biener <rguenther@suse.de>
683 PR tree-optimization/68502
684 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
685 check that the step is a multiple of the type size.
687 2015-11-24 Michael Collison <michael.collison@linaro.org>
689 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
690 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
691 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
693 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
695 * frame-header-opt.c (gate): Check for optimize > 0.
696 (has_inlined_assembly): New function.
697 (needs_frame_header_p): Remove is_leaf_function check,
698 add argument type check.
699 (callees_functions_use_frame_header): Add is_leaf_function
700 and has_inlined_assembly calls..
701 (set_callers_may_not_allocate_frame): New function.
702 (frame_header_opt): Add is_leaf_function call, add
703 set_callers_may_not_allocate_frame call.
704 * config/mips/mips.c (mips_compute_frame_info): Add check
705 to see if callee saved regs can be put in frame header.
706 (mips_expand_prologue): Add check to see if step1 is zero,
707 fix cfa restores when using frame header to store regs.
708 (mips_can_use_return_insn): Check to see if registers are
709 stored in frame header.
710 * config/mips/mips.h (machine_function): Add
711 callers_may_not_allocate_frame and
712 use_frame_header_for_callee_saved_regs fields.
714 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
716 PR rtl-optimization/68520
717 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
718 its bit was already set in BB_WITH.
720 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
722 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
723 double check that type is main variant.
724 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
726 (verify_type_variant): Verify that variants have no
727 TYPE_ALIAS_SET_KNOWN_P set
728 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
729 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
730 only for main variants; stream TYPE_ALIAS_SET as a bit.
731 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
734 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
736 * tree.c (make_vector_type): Properly compute canonical type of the
738 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
741 2015-11-24 Nathan Sidwell <nathan@acm.org>
743 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
744 VOIDmode, don't alter incoming mode.
745 (nvptx_split_reg_p): Delete.
746 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
747 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
748 maybe_split_mode calls.
749 (nvptx_print_operand): Use maybe_split_mode.
751 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
753 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
754 only for types where LTO sets them.
755 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
756 (make_vector_type): Likewise.
757 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
758 * tree.h (canonical_type_used_p): New inline.
759 * alias.c (get_alias_set): Handle structural equality for all
760 types that pass canonical_type_used_p.
761 (record_component_aliases): Look through all types with
762 record_component_aliases for possible pointers; sanity check that
763 the alias sets match.
765 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
767 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
769 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
771 * tree.c (free_node): New function.
772 (type_hash_canon): Use it.
773 * tree.h (free_node): Declare.
775 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
776 Michael Meissner <meissner@linux.vnet.ibm.com>
778 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
779 (Fv2): New mode attribute to be used when ISA 2.07 instructions
780 are used on SF values, and ISA 2.06 instructions on DF values.
781 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
782 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
783 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
784 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
785 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
786 (fre<Fs>): Use <Fv2> instead of <Fv>.
787 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
788 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
789 (xsrdpi<mode>): Add support for the lround function.
790 (lround<mode>di2): Likewise.
791 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
792 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
793 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
794 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
796 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
797 Sebastian Pop <s.pop@samsung.com>
799 PR tree-optimization/67984
800 * graphite-isl-ast-to-gimple.c (is_constant): New.
801 (get_rename): Call is_constant.
802 (get_new_name): Same.
804 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
805 Sebastian Pop <s.pop@samsung.com>
807 * graphite-dependences.c: Only include graphite.h.
808 * graphite-isl-ast-to-gimple.c: Same.
809 * graphite-optimize-isl.c: Same.
810 * graphite-poly.c: Same.
811 * graphite-scop-detection.c: Same.
812 * graphite-sese-to-poly.c: Same.
814 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
815 * graphite-poly.h: Same.
816 * graphite-scop-detection.h: Same.
819 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
821 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
822 DW_TAG_namespace for IMPORTED_DECL declarations. Call
823 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
824 function already takes care of checking what it can emit.
826 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
828 * doc/invoke.texi (-fpic): Add the AArch64 limit.
829 (-fPIC): Add AArch64.
831 2015-11-24 Tom de Vries <tom@codesourcery.com>
833 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
834 (pass_lim::execute): Allow to run outside pass_tree_loop.
836 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
838 * config/aarch64/aarch64.md (add<mode>3):
839 Block early expansion into 2 add instructions.
840 (add<mode>3_pluslong): New pattern to combine complex
841 immediates into 2 additions.
843 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
848 * config/rs6000/predicates.md (and_operand): Check that the operand
849 is a const_int before calling rs6000_is_valid_and_mask.
851 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
853 * config/aarch64/aarch64.md (*condjump): Rename to...
854 (condjump): ... This.
855 (*compare_condjump<mode>): New define_insn_and_split.
856 (*compare_cstore<mode>_insn): Likewise.
857 (*cstore<mode>_insn): Rename to...
858 (cstore<mode>_insn): ... This.
859 * config/aarch64/iterators.md (CMP): Handle ne code.
860 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
862 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
865 * config/i386/i386.c (output_387_binary_op): Fix assertion for
868 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
870 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
871 (val_ssa_equiv_hash_traits::remove): Likewise.
872 (pass_uncprop::execute): Adjust.
874 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
876 * hash-map-traits.h (simple_hashmap_traits ::remove): call
877 destructors on values that are being removed.
878 * mem-stats.h (hash_map): Pass type of values to
879 simple_hashmap_traits.
880 * tree-sra.c (sra_deinitialize): Remove work around for hash
881 maps not destructing values.
882 * genmatch.c (sinfo_hashmap_traits): Adjust.
883 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
885 2015-11-24 Richard Biener <rguenther@suse.de>
886 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
889 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
892 2015-11-24 Jakub Jelinek <jakub@redhat.com>
895 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
896 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
898 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
899 whenever first is nelt or above. Don't mask expected with
902 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
905 * gimple-fold.c: Include ipa-chkp.h.
906 (gimple_fold_builtin_memory_op): Don't fold call if we
907 are going to instrument it and it may copy pointers.
909 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
910 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
912 PR rtl-optimization/68194
913 PR rtl-optimization/68328
914 PR rtl-optimization/68185
915 * ree.c (combine_reaching_defs): Reject copy_needed case if
916 copies_list is not empty.
918 2015-11-24 Richard Biener <rguenther@suse.de>
921 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
924 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
926 PR rtl-optimization/68381
927 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
930 2015-11-23 Nick Clifton <nickc@redhat.com>
931 Jeff Law <law@redhat.com>
933 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
934 the source/dest of the target extension require a different number of
936 (combine_set_extension): Remove #if 0 code.
938 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
939 Sebastian Pop <s.pop@samsung.com>
941 PR tree-optimization/68314
942 * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
943 * graphite-poly.c (new_scop): Remove original_schedule.
945 * graphite-poly.h (struct scop): Same.
946 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
947 (build_pbb_scattering_polyhedrons): Add back.
948 (build_scop_minimal_scattering): Remove.
949 (build_scop_scattering): Add back.
950 (build_scop_original_schedule): Remove.
951 (build_poly_scop): Revert to only call build_scop_scattering.
953 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
954 Sebastian Pop <s.pop@samsung.com>
956 PR tree-optimization/68493
957 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
958 missing early return when codegen_error is set.
960 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
961 Sebastian Pop <s.pop@samsung.com>
963 PR tree-optimization/68279
964 * graphite-poly.c (new_scop): Remove poly_scop_p.
965 * graphite-poly.h (struct scop): Same.
966 (build_poly_scop): Declare.
967 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
968 (cleanup_loop_iter_dom): New.
969 (build_loop_iteration_domains): Early return when scev analysis fails.
970 (create_pw_aff_from_tree): Same.
971 (add_condition_to_pbb): Same.
972 (add_conditions_to_domain): Same.
973 (add_conditions_to_constraints): Same.
974 (build_scop_iteration_domain): Same.
975 (build_poly_scop): Same. Do not initialize poly_scop_p.
976 * graphite-sese-to-poly.h: Remove.
977 * graphite.c: Do not include graphite-sese-to-poly.h.
978 (graphite_transform_loops): Stop before code generation when
979 build_poly_scop fails.
980 * sese.c (scalar_evolution_in_region): Add fixme note about scev
983 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
984 Sebastian Pop <s.pop@samsung.com>
986 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
987 Remove call to update_ssa.
988 * sese.c (sese_insert_phis_for_liveouts): Same.
990 2015-11-23 Marek Polacek <polacek@redhat.com>
992 PR tree-optimization/68455
993 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
994 extract_range_from_multiplicative_op_1 on symbolic ranges.
996 2015-11-23 Richard Henderson <rth@redhat.com>
998 * optabs.def (uaddv4_optab, usubv4_optab): New.
999 * internal-fn.c (expand_addsub_overflow): Use them.
1000 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
1002 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
1003 to reversed operands.
1004 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
1005 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
1006 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
1007 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
1008 (*add<SWI>3_cconly_overflow_2): New.
1009 (*add<SWI>3_cc_overflow_2): New.
1010 (*addsi3_zext_cc_overflow_2): New.
1012 2015-11-23 Richard Biener <rguenther@suse.de>
1014 PR tree-optimization/68465
1015 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
1016 Also record equalities from multiple predecessor blocks if
1017 only one non-backedge exists.
1019 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1022 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
1023 that are not INSN_P.
1025 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
1027 * config/aarch64/aarch64-builtins.c
1028 (aarch64_gimple_fold_builtin): Fold FMULX.
1030 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
1032 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
1033 * graphite-dependences.c: Define USES_ISL. Include ISL header files
1034 after GCC header files and before graphite header files.
1035 * graphite-dependences.c: Same.
1036 * graphite-isl-ast-to-gimple.c: Same.
1037 * graphite-optimize-isl.c: Same.
1038 * graphite-poly.c: Same.
1039 * graphite-scop-detection.c: Same.
1040 * graphite-sese-to-poly.c: Same.
1043 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
1044 Jiong Wang <jiong.wang@arm.com>
1046 PR tree-optimization/68317
1047 PR tree-optimization/68326
1048 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
1049 final min and max are not infinity.
1051 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1052 Richard Biener <rguenther@suse.de>
1054 PR tree-optimization/68327
1055 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1056 compute vectype for non-relevant mask producers.
1057 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
1060 2015-11-23 Tom de Vries <tom@codesourcery.com>
1062 PR tree-optimization/68460
1063 * tree-parloops.c (gather_scalar_reductions): Also call
1064 free_stmt_vec_info_vec if simple_loop_info == NULL.
1066 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1068 * opts.c (finish_options): Allow -fsanitize-recover=address for
1069 userspace sanitization.
1070 * asan.c (asan_expand_check_ifn): Redefine recover_p.
1071 * doc/invoke.texi (fsanitize-recover): Update documentation.
1073 2015-11-23 Tom de Vries <tom@codesourcery.com>
1075 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
1077 2015-11-23 Richard Biener <rguenther@suse.de>
1079 PR tree-optimization/68445
1080 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
1081 two different strides.
1083 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
1085 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
1086 * config/s390/s390.c (s390_check_symref_alignment): Use new
1087 symref flags, early abort on wrong alignment
1088 (s390_secondary_reload): Use new symref flags.
1089 (s390_encode_section_info): Likewise.
1090 * config/s390/predicates.md: Likewise.
1092 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
1095 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
1096 for indirect function call.
1098 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
1100 * config/aarch64/aarch64-simd.md
1101 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
1102 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
1103 (*aarch64_mulx_elt_to_64v2df): Likewise.
1104 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
1105 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
1106 (vmulx_lane_f64): Likewise.
1107 (vmulxq_lane_f32): Refactored & moved.
1108 (vmulxq_lane_f64): Likewise.
1109 (vmulx_laneq_f32): New.
1110 (vmulx_laneq_f64): Likewise.
1111 (vmulxq_laneq_f32): Likewise.
1112 (vmulxq_laneq_f64): Likewise.
1113 (vmulxs_lane_f32): Likewise.
1114 (vmulxs_laneq_f32): Likewise.
1115 (vmulxd_lane_f64): Likewise.
1116 (vmulxd_laneq_f64): Likewise.
1118 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
1120 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
1121 In LTO we do not compute TYPE_CANONICAL of pointers.
1122 (gimple_canonical_types_compatible_p): Improve coments; sanity check
1123 that pointers do not have canonical type that would make us believe
1125 * alias.c (get_alias_set): Do structural type equality on pointers;
1126 enable pointer path for LTO; also glob pointer to vector with pointer
1127 to vector element; glob pointers and references for LTO; do more strict
1128 sanity checking about build_pointer_type returning the canonical type
1129 which is also the main variant.
1130 (record_component_aliases): When component type is pointer and we
1131 do LTO; record void_type_node alias set.
1133 2015-11-21 Nathan Sidwell <nathan@acm.org>
1135 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
1137 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
1139 (write_func_decl_from_insn): Likewise.
1140 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
1141 (nvptx_file_end): Likewise.
1142 (nvptx_function_end): Undent output.
1143 (nvptx_expand_call): Fix formatting.
1144 (nvptx_output_call_insn): Indent output.
1145 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
1146 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
1148 2015-11-21 Jakub Jelinek <jakub@redhat.com>
1151 * tree-inline.c (copy_debug_stmt): If
1152 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
1153 in decl_debug_args, don't call remap_gimple_op_r on it.
1155 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
1157 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
1158 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
1159 Check that all record types are complete.
1160 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
1161 compare alias sets for types w/o alias sets.
1163 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
1165 * config/sparc/sparc.md (umulxhi_vis): Move around.
1166 (*umulxhi_sp64): Likewise.
1167 (umulxhi_v8plus): Likewise.
1168 (xmulx_vis): Likewise.
1169 (*xmulx_sp64): Likewise.
1170 (xmulx_v8plus): Likewise.
1171 (xmulxhi_vis): Likewise.
1172 (*xmulxhi_sp64): Likewise.
1173 (xmulxhi_v8plus): Likewise.
1175 2015-11-20 David Malcolm <dmalcolm@redhat.com>
1178 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
1179 (class layout): Update comment
1180 (layout::print_any_fixits): New method.
1181 (layout::move_to_column): New method.
1182 (diagnostic_show_locus): Add call to layout.print_any_fixits.
1184 2015-11-20 Jakub Jelinek <jakub@redhat.com>
1187 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
1188 has non-zero bias, subtract it in integer type instead of
1189 pointer plus of negated bias.
1192 * omp-low.c (expand_simd_clones): Call node->get_body () before
1193 allocating stuff in GC.
1195 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
1197 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
1199 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
1201 * config/aarch64/aarch64.md (predicated): Copy attribute from
1203 * config/arm/arm.md (predicated): Added description.
1205 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1207 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
1208 for unaligned_access.
1209 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
1210 from matching condition.
1211 (unaligned_loadhis): Likewise.
1212 (unaligned_loadhiu): Likewise.
1213 (unaligned_storesi): Likewise.
1214 (unaligned_storehi): Likewise.
1216 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1219 * config/arm/arm.md (unaligned_loaddi): Delete.
1220 (unaligned_storedi): Likewise.
1221 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
1222 unaligned DImode memory ops. Instead perform two back-to-back
1223 unaligned SImode ops.
1225 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
1226 James Norris <jnorris@codesourcery.com>
1228 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
1229 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
1231 2015-11-20 Alan Hayward <alan.hayward@arm.com>
1233 PR tree-optimization/68413
1234 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
1236 (vectorizable_reduction): Use cached base
1238 2015-11-20 Tom de Vries <tom@codesourcery.com>
1240 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
1242 (try_create_reduction_list): Same. Fix typo in dump-file string.
1244 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
1246 * doc/md.texi (Standard Names): Move entry for addptr3 around,
1247 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
1248 glitch in entries for cbranch4 and jump.
1250 2015-11-20 Tom de Vries <tom@codesourcery.com>
1252 PR tree-optimization/68373
1253 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
1255 (scev_const_prop): ... here.
1256 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
1257 * tree-parloops.c (try_create_reduction_list): Call
1258 final_value_replacement_loop.
1260 2015-11-20 Bin Cheng <bin.cheng@arm.com>
1262 PR tree-optimization/52272
1263 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
1264 (struct iv_common_cand_hasher): New struct.
1265 (iv_common_cand_hasher::hash): New function.
1266 (iv_common_cand_hasher::equal): New function.
1267 (struct ivopts_data): New fields, iv_common_cand_tab and
1269 (tree_ssa_iv_optimize_init): Initialize above fields.
1270 (record_common_cand, common_cand_cmp): New functions.
1271 (add_iv_candidate_derived_from_uses): New function.
1272 (add_iv_candidate_for_use): Record iv_common_cands derived from
1273 iv use in hash table, instead of adding candidates directly.
1274 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
1275 (record_important_candidates): Add important candidates to iv uses'
1276 related_cands. Always keep related_cands for future use.
1277 (try_add_cand_for): Use iv uses' related_cands.
1278 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
1279 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
1281 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1283 * config/s390/s390.md ("bswaphi2"): New pattern.
1285 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
1287 * config/s390/s390.md (GPR1_REGNUM): New constant.
1288 ("*trunc<BFP:mode><DFP_ALL:mode>2")
1289 ("*trunc<DFP_ALL:mode><BFP:mode>2")
1290 ("trunc<BFP:mode><DFP_ALL:mode>2")
1291 ("trunc<DFP_ALL:mode><BFP:mode>2")
1292 ("*extend<BFP:mode><DFP_ALL:mode>2")
1293 ("*extend<DFP_ALL:mode><BFP:mode>2")
1294 ("extend<BFP:mode><DFP_ALL:mode>2")
1295 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
1297 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1298 Sebastian Pop <s.pop@samsung.com>
1300 PR tree-optimization/68428
1301 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
1302 over basic blocks outside the scop.
1304 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1305 Sebastian Pop <s.pop@samsung.com>
1307 PR tree-optimization/68341
1308 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
1309 gcc_unreachable and safely fail codegen.
1310 (copy_loop_close_phi_args): Do not insert merge phis in a basic
1311 block with loop phi nodes.
1312 (edge_for_new_close_phis): New.
1313 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
1315 2015-11-19 Nathan Sidwell <nathan@acm.org>
1317 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
1318 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
1319 (nvptx_declare_objec_name): Likewise.
1321 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1323 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
1324 (get_false_edge_from_guard_bb): Move...
1325 * sese.c (get_false_edge_from_guard_bb)
1326 (get_true_edge_from_guard_bb): ... here.
1328 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
1331 2015-11-18 Alan Modra <amodra@gmail.com>
1333 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1334 type-limits warning.
1337 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1339 * tree.h (desired_pro_or_demotion_p): New function.
1340 * tree-vrp.c (simplify_cond_using_ranges): Call it.
1342 2015-11-19 Michael Matz <matz@suse.de>
1344 * fwprop.c (update_uses): Use flag_checking instead of
1345 gcc_checking_assert.
1347 2015-11-19 David Malcolm <dmalcolm@redhat.com>
1349 * doc/gty.texi (Support for inheritance): Fix missing
1350 parentheses in example.
1352 2015-11-19 Marek Polacek <polacek@redhat.com>
1354 PR tree-optimization/68431
1355 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
1357 2015-11-19 Nathan Sidwell <nathan@acm.org>
1359 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
1360 atomic_exchange<mode>): Input values can be immediates.
1362 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
1365 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
1367 * configure: Regenerate.
1369 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
1372 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
1373 (DTORS_SECTION_ASM_OP): Likewise.
1375 2015-11-19 Jakub Jelinek <jakub@redhat.com>
1377 PR rtl-optimization/68376
1378 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
1379 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
1381 2015-11-19 Richard Biener <rguenther@suse.de>
1384 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
1385 redirect_edge_var_map_destroy.
1387 2015-11-19 Jakub Jelinek <jakub@redhat.com>
1390 * config/i386/i386.md (simple_return): Disable if
1391 ix86_static_chain_on_stack is true.
1393 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
1396 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
1399 2015-11-18 Jeff Law <law@redhat.com>
1401 PR tree-optimization/68198
1402 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
1403 between threading a multi-way branch and a thread path that contains
1404 a multi-way branch. Disallow the case where a path contains a
1405 multi-way branch and does not thread a multi-way branch.
1406 (thread_through_all_blocks): Update comment.
1408 2015-11-18 Joseph Myers <joseph@codesourcery.com>
1411 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
1412 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
1413 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
1414 functions before defining as macros.
1416 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1418 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
1419 (nvptx_record_offload_symbol): Remove code compensating for lack
1420 of default dimension handling.
1421 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
1423 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
1425 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
1426 type to bool for early exit.
1427 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
1429 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
1430 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
1431 predecessor dominates the other.
1432 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
1433 element is not found it returns -1.
1434 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
1435 out early when codegen fails.
1436 (graphite_regenerate_ast_isl): Remove codegen region when pending
1437 phis could not be generated.
1439 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
1441 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
1443 (class translate_isl_ast_to_gimple): Indentation.
1444 (translate_pending_phi_nodes): Comment.
1445 (add_parameters_to_ivs_params): Moved from sese.c inside class
1446 translate_isl_ast_to_gimple.
1447 (get_max_schedule_dimensions): Same.
1448 (generate_isl_context): Same.
1449 (extend_schedule): Same.
1450 (generate_isl_schedule): Same.
1451 (set_options): Same.
1452 (scop_to_isl_ast): Same.
1453 (is_valid_rename): Same.
1455 (get_rename_from_scev): Same.
1456 (get_def_bb_for_const): Same.
1457 (get_new_name): Same.
1458 (collect_all_ssa_names): Same.
1459 (copy_loop_phi_args): Same.
1460 (copy_loop_phi_nodes): Same.
1461 (copy_loop_close_phi_args): Same.
1462 (copy_loop_close_phi_nodes): Same.
1463 (copy_cond_phi_args): Same.
1464 (copy_cond_phi_nodes): Same.
1465 (graphite_copy_stmts_from_block): Same.
1466 (copy_bb_and_scalar_dependences): Same.
1467 (add_phi_arg_for_new_expr): Same.
1468 (rename_uses): Same.
1470 (set_rename_for_each_def): Same.
1471 (gsi_insert_earliest): Same.
1472 (rename_all_uses): Same.
1473 (codegen_error_p): Same.
1474 (print_isl_ast_node): Same.
1475 (translate_isl_ast_for_loop): Call function codegen_error_p.
1476 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1477 (translate_isl_ast_node_user): Make nb_loops const and release
1479 (get_true_edge_from_guard_bb): Move all free-functions early.
1480 (get_false_edge_from_guard_bb): Same.
1481 (bb_contains_loop_close_phi_nodes): Same.
1482 (bb_contains_loop_phi_nodes): Same.
1483 (is_loop_closed_ssa_use): Same.
1484 (number_of_phi_nodes): Same.
1485 (phi_uses_name): Same.
1486 (later_of_the_two): Same.
1487 (substitute_ssa_name):
1490 (get_loop_init_value): Same.
1491 (find_init_value): Same.
1492 (find_init_value_close_phi): Same.
1493 (ast_build_before_for): Same.
1494 (graphite_regenerate_ast_isl): Formatting changes.
1495 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
1496 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
1498 (gsi_insert_earliest): Same.
1499 (collect_all_ssa_names): Same.
1500 (rename_all_uses): Same.
1501 (rename_uses): Same.
1502 (get_def_bb_for_const): Same.
1503 (copy_loop_phi_nodes): Same.
1504 (copy_loop_close_phi_args): Same.
1505 (copy_loop_close_phi_nodes): Same.
1506 (copy_cond_phi_args): Same.
1507 (copy_cond_phi_nodes): Same.
1508 (set_rename_for_each_def): Same.
1509 (graphite_copy_stmts_from_block): Same.
1510 (copy_bb_and_scalar_dependences): Same.
1511 (if_region_set_false_region): Same.
1512 (scev_analyzable_p): Same.
1513 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
1515 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
1517 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
1518 commit from r125920 for FreeBSD.
1520 2015-11-18 Jason Merrill <jason@redhat.com>
1522 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
1524 (add_finalizer): Split out from ggc_internal_alloc.
1525 (ggc_handle_finalizers): Run finalizers for the current depth.
1526 (init_ggc, ggc_pch_read): Reserve space for finalizers.
1528 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
1531 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
1534 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1536 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
1537 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
1539 * doc/avr-mmcu.texi: Regenerate.
1541 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1543 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
1544 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
1545 (struct bb_sese): New struct.
1546 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
1547 (BB_GET_SESE, BB_SET_SESE): Define.
1548 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
1549 (nvptx_find_sese): New.
1550 (nvptx_neuter_pars): Find SESE regions when optimizing.
1552 2015-11-18 Alan Modra <amodra@gmail.com>
1554 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1555 type-limits warning.
1557 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
1560 * hash-set.h (hash_set::traverse): Expand Key typedef.
1562 2015-11-18 Martin Liska <mliska@suse.cz>
1564 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
1567 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1569 * config/nvptx/nvptx.c (global_lock_var): New.
1570 (nvptx_global_lock_addr): New.
1571 (nvptx_lockless_update): Recomment and adjust for clarity.
1572 (nvptx_lockfull_update): New.
1573 (nvptx_reduction_update): New.
1574 (nvptx_goacc_reduction_fini): Call it.
1576 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
1578 * regrename.h (struct du_head): Add target_data_1 and target_data_2
1580 * regrename.c (create_new_chain): Clear entire struct after allocating.
1582 * config/i386/i386.opt (mmitigate-rop): New option.
1583 * doc/invoke.texi (mmitigate-rop): Document.
1584 * config/i386/i386.c: Include "regrename.h".
1585 (ix86_rop_should_change_byte_p, reg_encoded_number,
1586 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
1588 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
1589 * config/i386/i386.md (attr "modrm_class"): New.
1590 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
1591 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
1592 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
1594 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1597 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
1599 2015-11-18 Jakub Jelinek <jakub@redhat.com>
1601 PR tree-optimization/68157
1602 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
1603 pow_stmt or mul_stmt from stmt's uid.
1604 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
1606 2015-11-18 Martin Liska <mliska@suse.cz>
1608 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
1610 2015-11-18 Martin Liska <mliska@suse.cz>
1612 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1613 Fix GNU coding style.
1614 (find_def_preds): Use auto_vec.
1615 (destroy_predicate_vecs): Change signature of the function.
1616 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
1618 (simplify_preds_4): Use destroy_predicate_vecs instread of
1619 just releasing preds vector.
1620 (normalize_preds): Likewise.
1621 (is_use_properly_guarded): Use new signature of
1622 destroy_predicate_vecs.
1623 (find_uninit_use): Likewise.
1625 2015-11-18 Richard Biener <rguenther@suse.de>
1627 PR tree-optimization/67790
1628 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
1629 IL rewrite for MINUS_EXPR reductions, rename back to ...
1630 (vect_is_simple_reduction): ... this, removing the wrapper.
1631 (vect_force_simple_reduction): Adjust.
1632 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
1633 reductions and make use if reduc_index in all places. For
1634 the final reduction of MINUS_EXPR use PLUS_EXPR.
1636 2015-11-18 Alan Modra <amodra@gmail.com>
1638 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
1640 * configure: Regenerate.
1642 2015-11-17 Tom de Vries <tom@codesourcery.com>
1644 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
1646 2015-11-17 Tom de Vries <tom@codesourcery.com>
1648 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
1649 uses of ssa_name with constant.
1651 2015-11-17 Tom de Vries <tom@codesourcery.com>
1653 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
1656 2015-11-17 Tom de Vries <tom@codesourcery.com>
1658 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
1659 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
1660 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
1662 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
1664 * regrename.c (regrename_find_superclass): New function, code moved
1666 (rename_chains): ... here. Call it.
1667 * regrename.h (regrename_find_superclass): Declare.
1669 * regrename.c (record_out_operands): Terminate earlyclobbered
1673 * regrename.c (record_operand_use): Keep track of failed operands
1674 and stop appending if we see any.
1675 * regrename.h (struct operand_rr_info): Add a failed field and shrink
1678 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
1681 * doc/extend.texi (Common Function Attributes) [visibility]:
1682 Add cross-references to matching variable and type attributes.
1683 (Common Variable Attributes) [visibility]: Add missing entry.
1685 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1687 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
1688 entries that map directly to optabs.
1690 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1692 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
1693 entries that map directly to optabs.
1695 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1697 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
1698 * internal-fn.c (direct_internal_fn_array): Update accordingly.
1699 * tree-vectorizer.h (vectorizable_function): Delete.
1700 * tree-vect-stmts.c: Include internal-fn.h.
1701 (vectorizable_internal_function): New function.
1702 (vectorizable_function): Inline into...
1703 (vectorizable_call): ...here. Explicitly reject calls that read
1704 from or write to memory. Try using an internal function before
1705 falling back on the old vectorizable_function behavior.
1707 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1709 * target.def (builtin_vectorized_function): Take a combined_fn (in
1710 the form of an unsigned int) rather than a function decl.
1711 (builtin_md_vectorized_function): New.
1712 * targhooks.h (default_builtin_vectorized_function): Replace the
1713 fndecl argument with an unsigned int.
1714 (default_builtin_md_vectorized_function): Declare.
1715 * targhooks.c (default_builtin_vectorized_function): Replace the
1716 fndecl argument with an unsigned int.
1717 (default_builtin_md_vectorized_function): New function.
1718 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
1720 * doc/tm.texi: Regenerate.
1721 * tree-vect-stmts.c (vectorizable_function): Update call to
1722 builtin_vectorized_function, also passing internal functions.
1723 Call builtin_md_vectorized_function for target-specific builtins.
1724 * config/aarch64/aarch64-protos.h
1725 (aarch64_builtin_vectorized_function): Replace fndecl argument
1726 with an unsigned int.
1727 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
1728 (aarch64_builtin_vectorized_function): Update after above changes.
1730 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
1731 fndecl argument with an unsigned int.
1732 * config/arm/arm-builtins.c: Include case-cfn-macros.h
1733 (arm_builtin_vectorized_function): Update after above changes.
1735 * config/i386/i386.c: Include case-cfn-macros.h
1736 (ix86_veclib_handler): Take a combined_fn rather than a
1738 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
1739 mathfn_built_in rather than calling builtin_decl_implicit directly.
1740 (ix86_builtin_vectorized_function) Update after above changes.
1742 * config/rs6000/rs6000.c: Include case-cfn-macros.h
1743 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
1744 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
1745 than calling builtin_decl_implicit directly.
1746 (rs6000_builtin_vectorized_function): Update after above changes.
1747 Use CASE_CFN_*. Move BUILT_IN_MD to...
1748 (rs6000_builtin_md_vectorized_function): ...this new function.
1749 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
1751 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1753 * tree-vect-patterns.c: Include internal-fn.h.
1754 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
1756 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1758 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
1759 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
1761 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1763 * builtins.c (expand_errno_check, expand_builtin_mathfn)
1764 (expand_builtin_mathfn_2): Delete.
1765 (expand_builtin): Remove handling of functions with
1766 internal function equivalents.
1767 * internal-fn.def (SET_EDOM): New internal function.
1768 * internal-fn.h (set_edom_supported_p): Declare.
1769 * internal-fn.c (expand_SET_EDOM): New function.
1770 (set_edom_supported_p): Likewise.
1771 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
1772 Rewrite comment at head of file.
1773 (is_call_dce_candidate): Rename to...
1774 (can_test_argument_range): ...this. Don't check gimple_call_lhs
1775 or gimple_call_builtin_p here.
1776 (edom_only_function): New function.
1777 (shrink_wrap_one_built_in_call_with_conds): New function, split out
1779 (shrink_wrap_one_built_in_call): ...here.
1780 (can_use_internal_fn, use_internal_fn): New functions.
1781 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
1782 for calls that have an lhs.
1783 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
1784 (pass_call_cdce::execute): Skip blocks that are optimized for size.
1785 Check gimple_call_builtin_p here. Use can_use_internal_fn for
1787 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
1790 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1792 * builtins.h (called_as_built_in): Declare.
1793 * builtins.c (called_as_built_in): Make external.
1794 * internal-fn.h (expand_internal_call): Define a variant that
1795 specifies the internal function explicitly.
1796 * internal-fn.c (expand_load_lanes_optab_fn)
1797 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
1798 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
1799 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
1800 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
1801 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
1802 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
1803 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
1804 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
1805 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
1806 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
1807 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
1808 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
1809 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
1811 (internal_fn_expanders): Update prototype.
1812 (expand_internal_call): Define a variant that specifies the
1813 internal function explicitly. Use it to implement the previous
1815 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
1816 functions as calls to internal functions.
1818 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1820 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
1821 (generated_files): Likewise.
1822 (s-cfn-operators, cfn-operators.pd): New rules.
1823 (s-match): Depend on cfn-operators.pd.
1824 * gencfn-macros.c: Expand comment to describe -o behavior.
1825 (print_define_operator_list): New function.
1826 (main): Accept -o. Call print_define_operator_list.
1827 * genmatch.c (main): Add the current directory to the include path.
1828 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
1831 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1833 * doc/match-and-simplify.texi: Document the "null" identifier.
1834 * genmatch.c (id_base::NULL_ID): New kind.
1835 (null_id): New variable.
1836 (get_operator): Add a parameter that says whether null identifiers
1838 (contains_id): New function.
1839 (lower_for): Skip substitutions that would have a null_id in
1840 either the match or the result.
1841 (parser::parse_for): Allow the null identifier to be used.
1842 (parser::parse_operator_list): Likewise.
1843 (main): Initialize null_id.
1845 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1847 * match.pd: Use HYPOT and COS rather than hypot and cos.
1848 Use CASE_CFN_* macros. Guard log/exp folds with
1849 SCALAR_FLOAT_TYPE_P.
1850 * genmatch.c (internal_fn): New enum.
1851 (fn_id::fn): Change to an unsigned int.
1852 (fn_id::fn_id): Accept internal_fn too.
1853 (add_builtin): Rename to...
1854 (add_function): ...this and turn into a template.
1855 (get_operator): Only try one variation if the original name fails.
1856 Only add _EXPR if the original name was all lower case.
1857 Try converting internal and built-in function names to their
1859 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
1860 (dt_simplify::gen_1): Likewise.
1861 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
1862 and get_call_combined_fn for generic.
1863 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
1864 (decision_tree::gen): Likewise.
1865 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
1866 Use add_function rather than add_builtin. Register internal
1868 * generic-match-head.c: Include case-cfn-macros.h.
1869 * gimple-fold.c (replace_stmt_with_simplification): Use
1870 gimple_call_combined_fn to test whether we can keep an
1872 * gimple-match.h (code_helper): Replace built_in_function
1874 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
1875 and case-fn-macros.h.
1876 (gimple_resimplify1): Use fold_const_call.
1877 (gimple_resimplify2, gimple_resimplify3): Likewise.
1878 (build_call_internal, build_call): New functions.
1879 (maybe_push_res_to_seq): Use them.
1880 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
1881 rather than a built-in function.
1882 * tree.h (build_call_expr_internal_loc): Declare.
1883 (maybe_build_call_expr_loc): Likewise.
1884 * tree.c (build_call_expr_internal_loc_array): New function.
1885 (maybe_build_call_expr_loc): Likewise.
1887 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1889 * builtins.h (mathfn_built_in): Add a variant that takes
1891 * builtins.c: Include case-cfn-macros.h.
1892 (CASE_MATHFN): Use CASE_CFN_*.
1893 (CASE_MATHFN_REENT): Use CFN_ codes.
1894 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
1895 argument with a combined_fn.
1896 (mathfn_built_in): Add a variant that takes a combined_fn.
1897 (expand_builtin_int_roundingfn_2): Update callers accordingly.
1898 (fold_builtin_sincos, fold_builtin_classify): Likewise.
1900 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1902 * tree-vect-patterns.c: Include case-cfn-macros.h.
1903 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
1905 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1907 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
1908 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
1909 (pass_cse_sincos::execute): Likewise.
1911 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1913 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
1914 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
1915 (decrement_power, acceptable_pow_call): Likewise.
1916 (attempt_builtin_copysign): Likewise.
1918 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1920 * tree-vrp.c: Include case-cfn-macros.h.
1921 (extract_range_basic): Switch on combined_fn rather than handling
1922 built-in functions and internal functions separately.
1924 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1926 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
1927 than a built_in_function.
1928 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1930 (integer_valued_real_call_p): Likewise.
1931 * fold-const.c: Include case-cfn-macros.h
1932 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
1933 (negate_expr_p): Update accordingly.
1934 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1936 (integer_valued_real_call_p): Likewise.
1937 (tree_invalid_nonnegative_warnv_p): Update accordingly.
1938 (integer_valued_real_p): Likewise.
1939 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
1940 to tree_call_nonnegative_warnv_p.
1941 (gimple_call_integer_valued_real_p): Likewise
1942 integer_valued_real_call_p.
1943 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
1944 (backprop::process_builtin_call_use): Extend to combined_fn.
1945 (strip_sign_op_1): Likewise.
1946 (backprop::process_use): Don't check for built-in calls here.
1947 (backprop::execute): Likewise.
1948 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
1950 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1952 * fold-const-call.h (fold_const_call): Replace built_in_function
1953 arguments with combined_fn arguments.
1954 * fold-const-call.c: Include case-cfn-macros.h.
1955 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
1956 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
1957 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
1958 built_in_function arguments with combined_fn arguments.
1959 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
1960 (fold_builtin_3): Update calls to fold_const_call.
1962 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1964 * Makefile.in (HASH_TABLE_H): Add GGC_H.
1965 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
1966 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
1967 (build/gencfn-macros$(build_exeext): New rules.
1968 (genprogerr): Add cfn-macros.
1969 * hash-set.h (hash_set): Use the traits value_type as the key.
1970 * gencfn-macros.c: New file.
1972 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1974 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
1975 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
1976 * builtins.c (associated_internal_fn): Handle them.
1978 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1980 * builtins.h (associated_internal_fn): Declare.
1981 (replacement_internal_fn): Likewise.
1982 * builtins.c: Include internal-fn.h
1983 (associated_internal_fn, replacement_internal_fn): New functions.
1984 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
1985 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
1986 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
1987 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
1988 (LDEXP): New functions.
1989 * internal-fn.c: Include recog.h.
1990 (unary_direct, binary_direct): New macros.
1991 (expand_direct_optab_fn): New function.
1992 (expand_unary_optab_fn): New macro.
1993 (expand_binary_optab_fn): Likewise.
1994 (direct_unary_optab_supported_p): Likewise.
1995 (direct_binary_optab_supported_p): Likewise.
1997 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1999 * coretypes.h (tree_pair): New type.
2000 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
2001 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
2002 * internal-fn.h (direct_internal_fn_info): New structure.
2003 (direct_internal_fn_array): Declare.
2004 (direct_internal_fn_p, direct_internal_fn): New functions.
2005 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
2006 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
2007 (mask_store_direct, store_lanes_direct): New macros.
2008 (direct_internal_fn_array) New array.
2009 (get_multi_vector_move): Return the optab handler without asserting
2010 that it is available.
2011 (expand_LOAD_LANES): Rename to...
2012 (expand_load_lanes_optab_fn): ...this and add an optab argument.
2013 (expand_STORE_LANES): Rename to...
2014 (expand_store_lanes_optab_fn): ...this and add an optab argument.
2015 (expand_MASK_LOAD): Rename to...
2016 (expand_mask_load_optab_fn): ...this and add an optab argument.
2017 (expand_MASK_STORE): Rename to...
2018 (expand_mask_store_optab_fn): ...this and add an optab argument.
2019 (direct_internal_fn_types, direct_optab_supported_p)
2020 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
2021 (direct_internal_fn_supported_p): New functions.
2022 (direct_mask_load_optab_supported_p): New macro.
2023 (direct_load_lanes_optab_supported_p): Likewise.
2024 (direct_mask_store_optab_supported_p): Likewise.
2025 (direct_store_lanes_optab_supported_p): Likewise.
2027 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2029 * tree-core.h (internal_fn): Move immediately after the definition
2030 of built_in_function.
2031 (combined_fn): New enum.
2032 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
2033 (internal_fn_p, as_internal_fn): New functions.
2034 (get_call_combined_fn, combined_fn_name): Declare.
2035 * tree.c (get_call_combined_fn): New function.
2036 (combined_fn_name): Likewise.
2037 * gimple.h (gimple_call_combined_fn): Declare.
2038 * gimple.c (gimple_call_combined_fn): New function.
2040 2015-11-17 Martin Sebor <msebor@redhat.com>
2043 * cp/init.c (build_new_1): Check for expression constness
2046 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
2049 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
2051 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
2052 discussion of the Microsoft structure layout details here from
2053 its former home in extend.texi.
2054 * doc/extend.texi (x86 Variable Attributes): Replace detailed
2055 discussion with pointer to its new location. Add cross-reference
2056 to corresponding type attributes.
2057 (x86 Type Attributes): Add cross-references to command-line options
2058 and variable attributes.
2060 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
2063 * targhooks.c (default_get_mask_mode): Filter out
2064 scalar modes returned by mode_for_vector.
2066 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2069 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
2070 offset from dstbase and use it appropriately in
2071 adjust_automodify_address.
2072 (arm_block_set_aligned_vect): Likewise.
2074 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
2076 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
2077 (MULTILIB_DIRNAMES): Adjust accordingly.
2079 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
2081 * config/aarch64/aarch64-cores.def (cortex-a35): New.
2082 * config/aarch64/aarch64.c (cortexa35_tunings): New.
2083 * config/aarch64/aarch64-tune.md: Regenerate.
2084 * doc/invoke.texi (-mcpu): Add Cortex-A35
2086 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
2089 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
2091 * config/i386/sse.md (*mov<mode>_internal): Always enable
2092 AVX and SSE unaligned moves for IAMCU.
2094 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
2096 * tree-if-conv.c: Include varasm.h
2097 (ref_DR_map): Define.
2098 (baseref_DR_map): Like wise
2099 (struct ifc_dr): Add new tree predicate field.
2100 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
2101 (memrefs_read_or_written_unconditionally): Remove.
2102 (write_memrefs_written_at_least_once): Remove.
2103 (ifcvt_memrefs_wont_trap): Use hash maps to query
2104 unconditional read/written information.
2105 (if_convertible_loop_p_1): Initialize hash maps and predicates
2106 before hashing data references and delete hashmaps at the end.
2108 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
2111 * doc/invoke.texi (Optimize Options): Move @end table to the right
2114 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
2117 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
2120 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
2122 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
2123 128-bit types, just types that fit in a single vector.
2124 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
2126 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
2128 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
2129 in the user documentation.
2130 (define_peephole2, define_split): Similarly.
2132 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
2134 * lto-streamer-out.c (write_global_references): Adjust integer type.
2135 (lto_output_decl_state_refs): Likewise.
2137 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
2139 * config/arm/arm-cores.def (cortex-a35): New.
2140 * config/arm/arm.c (arm_cortex_a35_tune): New.
2141 * config/arm/arm-tables.opt: Regenerate.
2142 * config/arm/arm-tune.md: Regenerate.
2143 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
2144 * config/arm/t-aprofile: Likewise.
2145 * doc/invoke.texi (-mcpu): Likewise.
2147 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
2149 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
2150 and qdf24xx and xgene1 to match -march=armv8-a.
2152 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2154 PR rtl-optimization/68330
2155 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
2156 of LSHIFTRT by a non-zero constant integer.
2158 2015-11-16 Richard Biener <rguenther@suse.de>
2160 PR tree-optimization/68306
2161 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
2162 bogus copying from verify_data_ref_alignment and use continue
2165 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
2166 Kaz Kojima <kkojima@gcc.gnu.org>
2169 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
2171 (*addsi3): Add another insn_and_split variant for reload.
2173 2015-11-16 Richard Biener <rguenther@suse.de>
2176 * cfgexpand.c (pass_expand::execute): Destroy the edge
2177 redirection var map before setting RTL CFG hooks.
2179 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
2181 * config/i386/sse.md (reduc_splus_v8df): Rename to...
2182 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
2184 (reduc_splus_v4df): Rename to...
2185 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
2187 (reduc_splus_v2df): Rename to...
2188 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
2190 (reduc_splus_v16sf): Rename to...
2191 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
2193 (reduc_splus_v8sf): Rename to...
2194 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
2196 (reduc_splus_v4sf): Rename to...
2197 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
2199 (reduc_<code>_<mode>, all 3 variants): Rename each to...
2200 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
2202 (reduc_umin_v8hf): Rename to...
2203 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
2205 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
2207 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
2208 without additional conditions.
2209 * doc/extend.texi (@item simd): New.
2211 2015-11-16 Tom de Vries <tom@codesourcery.com>
2213 * passes.c (first_pass_instance): Remove variable.
2214 (execute_todo): Remove setting of first_pass_instance.
2215 * tree-pass.h (first_pass_instance): Remove declaration.
2217 2015-11-16 Tom de Vries <tom@codesourcery.com>
2219 * passes.def: Add arg to pass_ccp pass instantiation.
2220 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
2221 instead of first_pass_instance.
2222 (do_ssa_ccp): Add and handle param nonzero_p.
2223 (pass_ccp::pass_ccp): Initialize nonzero_p.
2224 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
2225 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
2226 (pass_ccp::nonzero_p): New private member.
2228 2015-11-16 Tom de Vries <tom@codesourcery.com>
2230 * passes.def: Add arg to pass_object_sizes pass instantiation.
2231 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
2233 (pass_object_sizes::set_pass_param): New member function. Set
2235 (pass_object_sizes::insert_min_max_p): New private member.
2236 (pass_object_sizes::execute): Use insert_min_max_p instead of
2237 first_pass_instance.
2239 2015-11-16 Tom de Vries <tom@codesourcery.com>
2241 * passes.def: Add arg to pass_dominator pass instantiation.
2242 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
2244 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
2245 may_peel_loop_headers_p.
2246 (pass_dominator::set_pass_param): New member function. Set
2247 may_peel_loop_headers_p.
2248 (pass_dominator::may_peel_loop_headers_p): New private member.
2249 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
2250 first_pass_instance.
2252 2015-11-16 Tom de Vries <tom@codesourcery.com>
2254 * passes.def: Add arg to pass_reassoc pass instantiation.
2255 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
2256 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
2257 of first_pass_instance.
2258 (execute_reassoc): Add and handle insert_powi_p parameter.
2259 (pass_reassoc::insert_powi_p): New private member.
2260 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
2261 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
2262 (pass_reassoc::execute): Call execute_reassoc with extra arg.
2264 2015-11-16 Tom de Vries <tom@codesourcery.com>
2266 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
2267 * gen-pass-instances.awk (handle_line): Same.
2268 * pass_manager.h (class pass_manager): Define and undefine
2270 * passes.c (opt_pass::set_pass_param): New function.
2271 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
2272 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
2273 * tree-pass.h (gimple_opt::set_pass_param): Declare.
2274 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
2275 warn_array_bounds_p parameter.
2276 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
2277 (pass_vrp::set_pass_param): New function.
2278 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
2279 (pass_vrp::warn_array_bounds_p): New private member.
2281 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2283 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
2284 (output_probe_stack_range): Rotate the loop and simplify.
2286 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2288 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
2289 (output_probe_stack_range): Rotate the loop and simplify.
2291 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2293 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
2294 an lea instruction when possible.
2295 (output_adjust_stack_and_probe): Rotate the loop and simplify.
2296 (ix86_emit_probe_stack_range): Adjust.
2297 (output_probe_stack_range): Rotate the loop and simplify.
2299 2015-11-16 Christian Bruel <christian.bruel@st.com>
2301 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
2302 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
2303 with appropriate pragma GCC target.
2305 2015-11-16 Christian Bruel <christian.bruel@st.com>
2308 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
2309 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
2311 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
2313 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
2314 (cortexa57_tunings): Use it.
2316 2015-11-16 Christian Bruel <christian.bruel@st.com>
2319 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
2320 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
2321 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
2323 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
2324 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
2325 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
2326 * doc/extend.texi (-mfpu=): Describe attribute.
2328 2015-11-16 Christian Bruel <christian.bruel@st.com>
2331 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
2332 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
2333 arm_init_neon_builtins.
2334 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
2335 (arm_init_neon_builtins_internal)
2336 (arm_init_crypto_builtins_internal):
2337 Test and set neon_set_p, neon_crypto_set_p.
2338 (neon_set_p, neon_crypto_set_p): New static booleans.
2340 2015-11-16 Christian Bruel <christian.bruel@st.com>
2343 * config/arm/arm.c (arm_fpu_desc): Remove.
2344 (all_fpus): Make global.
2345 (arm_option_override): Use FPU TARGET accessors.
2346 (arm_declare_function_name): Likewise.
2347 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
2348 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
2349 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
2350 (TARGET_NEON): Likewise.
2351 (all_fpus): Declare extern.
2352 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
2353 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
2355 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2358 * sdbout.c: Include emit-rtl.h and function.h.
2360 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
2362 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
2363 Remove support for FreeBSD 5 and earlier.
2365 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2367 * configure: Regenerate.
2368 * configure.ac: Always define ENABLE_OFFLOADING.
2369 * cgraph.c (cgraph_node::create): Adjust.
2370 * gcc.c (process_command): Likewise.
2371 * omp-low.c (create_omp_child_function): Likewise.
2372 (expand_omp_target): Likewise.
2373 * varpool.c (varpool_node::get_create): Likewise.
2375 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2377 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
2378 * df-scan.c (df_get_exit_block_use_set): Adjust.
2379 * except.c (expand_eh_return): Likewise.
2381 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2383 * config/i386/i386.h (TARGET_PECOFF): Remove define.
2384 * defaults.h (TARGET_PECOFF): New default definition.
2385 * varasm.c (handle_vtv_comdat_section): Adjust.
2387 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2389 * defaults.h: New definition of SDB_DEBUGGING_INFO.
2390 * doc/tm.texi: Regenerate.
2391 * doc/tm.texi.in: Adjust.
2392 * final.c (rest_of_clean_state): Remove check if
2393 SDB_DEBUGGING_INFO is defined.
2394 * function.c (number_blocks): Likewise.
2395 * output.h: Likewise.
2396 * sdbout.c: Likewise.
2397 * toplev.c (process_options): Likewise.
2399 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2401 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
2402 (enum sdb_masks): Likewise.
2403 * sdbout.c (plain_type_1): Likewise.
2404 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
2406 2015-11-14 Jakub Jelinek <jakub@redhat.com>
2408 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
2409 internal calls - 0 if ordered simd and 1 for ordered threads simd.
2410 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
2411 argument is 1, replace it with GOMP_ordered_* call instead of removing
2414 2015-11-13 Rich Felker <dalias@libc.org>
2416 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
2417 address loading hack for FDPIC targets.
2419 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
2420 Jeff Law <law@redhat.com>
2422 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
2423 * common.opt (-fsplit-paths): New flag controlling path splitting.
2424 * doc/invoke.texi (fsplit-paths): Document.
2425 * opts.c (default_options_table): Add -fsplit-paths to -O2.
2426 * passes.def: Add split_paths pass.
2427 * timevar.def (TV_SPLIT_PATHS): New timevar.
2428 * tracer.c: Include "tracer.h"
2429 (ignore_bb_p): No longer static.
2430 (transform_duplicate): New function, broken out of tail_duplicate.
2431 (tail_duplicate): Use transform_duplicate.
2432 * tracer.h (ignore_bb_p): Declare
2433 (transform_duplicate): Likewise.
2434 * tree-pass.h (make_pass_split_paths): Declare.
2435 * gimple-ssa-split-paths.c: New file.
2437 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
2438 Marek Polacek <polacek@redhat.com>
2439 Jason Merrill <jason@redhat.com>
2441 * convert.c (maybe_fold_build1_loc): New.
2442 (maybe_fold_build2_loc): New.
2443 (convert_to_pointer_1): Split out from convert_to_pointer.
2444 (convert_to_pointer_nofold): New.
2445 (convert_to_real_1): Split out from convert_to_real.
2446 (convert_to_real_nofold): New.
2447 (convert_to_integer_1): Split out from convert_to_integer.
2448 (convert_to_integer_nofold): New.
2449 (convert_to_complex_1): Split out from convert_to_complex.
2450 (convert_to_complex_nofold): New.
2451 * convert.h: Declare new functions.
2452 * tree-complex.c (create_one_component_var): Break up line to
2453 avoid sequence point issues.
2455 2015-11-13 Jason Merrill <jason@redhat.com>
2457 * fold-const.c (fold_convert_const): Fold changing cv-quals on
2460 * hash-map.h (hash_map::empty): New.
2462 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2464 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
2465 (oacc_loop_fixed_partitions): Correct return type to bool.
2466 (oacc_loop_auto_partitions): New.
2467 (oacc_loop_partition): Take mask argument, call
2468 oacc_loop_auto_partitions.
2469 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
2471 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2473 * config/rs6000/constraints.md (we constraint): New constraint for
2474 64-bit power9 vector support.
2475 (wL constraint): New constraint for the element in a vector that
2476 can be addressed by the MFVSRLD instruction.
2478 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
2480 (convert_int_to_float128): Likewise.
2481 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
2482 hardware support for IEEE 128-bit floating point.
2483 (rs6000_expand_float128_convert): Likewise.
2484 (convert_float128_to_int): Likewise.
2485 (convert_int_to_float128): Likewise.
2487 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
2488 ISA 3.0 hardware IEEE 128-bit floating point.
2489 (UNSPEC_IEEE128_MOVE): Likewise.
2490 (UNSPEC_IEEE128_CONVERT): Likewise.
2491 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
2492 (Ff): Add support for DImode.
2494 (any_fix code iterator): New and updated iterators for IEEE
2495 128-bit floating point hardware support.
2496 (any_float code iterator): Likewise.
2497 (s code attribute): Likewise.
2498 (su code attribute): Likewise.
2499 (az code attribute): Likewise.
2500 (uns code attribute): Likewise.
2501 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
2502 floating point hardware support.
2503 (abs<mode>2, FLOAT128 iterator): Likewise.
2504 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
2505 floating point hardware.
2506 (sub<mode>3, IEEE128 iterator): Likewise.
2507 (mul<mode>3, IEEE128 iterator): Likewise.
2508 (div<mode>3, IEEE128 iterator): Likewise.
2509 (copysign<mode>3, IEEE128 iterator): Likewise.
2510 (sqrt<mode>2, IEEE128 iterator): Likewise.
2511 (neg<mode>2, IEEE128 iterator): Likewise.
2512 (abs<mode>2, IEEE128 iterator): Likewise.
2513 (nabs<mode>2, IEEE128 iterator): Likewise.
2514 (fma<mode>4_hw, IEEE128 iterator): Likewise.
2515 (fms<mode>4_hw, IEEE128 iterator): Likewise.
2516 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
2517 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
2518 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
2519 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
2520 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
2521 (fix_fixuns code attribute): Likewise.
2522 (float_floatuns code attribute): Likewise.
2523 (fix<uns>_<mode>si2_hw): Likewise.
2524 (fix<uns>_<mode>di2_hw): Likewise.
2525 (float<uns>_<mode>si2_hw): Likewise.
2526 (float<uns>_<mode>di2_hw): Likewise.
2527 (xscvqp<su>wz_<mode>): Likewise.
2528 (xscvqp<su>dz_<mode>): Likewise.
2529 (xscv<su>dqp_<mode): Likewise.
2530 (ieee128_mfvsrd): Likewise.
2531 (ieee128_mfvsrwz): Likewise.
2532 (ieee128_mtvsrw): Likewise.
2533 (ieee128_mtvsrd): Likewise.
2534 (trunc<mode>df2_odd): Likewise.
2535 (cmp<mode>_h): Likewise.
2536 (128-bit GPR splitters): Don't split a 128-bit move that is a
2537 direct move between GPR and vector registers using ISA 3.0 direct
2539 (maddld4): Add support for the ISA 3.0 integer multiply-add
2542 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
2544 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
2545 constraint. Disable the VSX<->GPR direct move helpers if we have
2546 the MFVSRLD and MTVSRDD instructions.
2547 (rs6000_secondary_reload_simple_move): Add support for doing
2548 vector direct moves directly without additional scratch registers
2549 if we have ISA 3.0 instructions.
2550 (rs6000_secondary_reload_direct_move): Update comments.
2551 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
2554 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
2555 direct move instructions.
2556 (vsx_movti_64bit): Likewise.
2557 (vsx_extract_<mode>): Likewise.
2559 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
2560 macros for ISA 3.0 direct move instructions.
2561 (TARGET_DIRECT_MOVE_128): Likewise.
2562 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
2565 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
2566 constraints. Update wa documentation to say not to use %x<n> on
2567 instructions that only take Altivec registers.
2569 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2571 * Makefile.in (OBJS): Add gcc-rich-location.o.
2572 * diagnostic.c (diagnostic_append_note): Pass line_table to
2574 (emit_diagnostic): Likewise.
2576 (inform_n): Likewise.
2577 (warning): Likewise.
2578 (warning_at): Likewise.
2579 (warning_n): Likewise.
2580 (pedwarn): Likewise.
2581 (permerror): Likewise.
2583 (error_n): Likewise.
2584 (error_at): Likewise.
2586 (fatal_error): Likewise.
2587 (internal_error): Likewise.
2588 (internal_error_no_backtrace): Likewise.
2589 (source_range::debug): Likewise.
2590 * gcc-rich-location.c: New file.
2591 * gcc-rich-location.h: New file.
2592 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
2593 (warning_at): Likewise.
2594 * gimple.h (gimple_set_block): Use set_block function.
2595 * input.c (dump_line_table_statistics): Dump stats on how many
2596 ranges were optimized vs how many needed ad-hoc table.
2597 (write_digit_row): Add "map" param; use its range_bits
2598 to calculate the per-character offset.
2599 (dump_location_info): Print the range and column bits for each
2600 ordinary map. Use the range bits to calculate the per-character
2601 offset. Pass the map as a new param to the various calls to
2602 write_digit_row. Eliminate uses of
2603 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
2604 * print-tree.c (print_node): Print any source range information.
2605 * rtl-error.c (diagnostic_for_asm): Likewise.
2606 * toplev.c (general_init): Initialize line_table's
2608 * tree-cfg.c (move_block_to_fn): Likewise.
2609 (move_block_to_fn): Likewise.
2610 * tree-inline.c (copy_phis_for_bb): Likewise.
2611 * tree.c (tree_set_block): Likewise.
2612 (get_pure_location): New function.
2613 (set_source_range): New functions.
2614 (set_block): New function.
2615 (set_source_range): New functions.
2616 * tree.h (CAN_HAVE_RANGE_P): New.
2617 (EXPR_LOCATION_RANGE): New.
2618 (EXPR_HAS_RANGE): New.
2619 (get_expr_source_range): New inline function.
2620 (DECL_LOCATION_RANGE): New.
2621 (set_source_range): New decls.
2622 (get_decl_source_range): New inline function.
2624 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
2626 PR tree-optimization/67682
2627 * tree-vect-slp.c (vect_split_slp_store_group): New.
2628 (vect_analyze_slp_instance): During basic block SLP, recurse on
2629 subgroups if vect_build_slp_tree fails after 1st vector.
2631 2015-11-13 Christian Bruel <christian.bruel@st.com>
2634 * config/arm/arm.c (arm_option_override): Move NEON check...
2635 (arm_option_check_internal): here
2636 (arm_file_start): Move .fpu print...
2637 (arm_declare_function_name): here
2638 (arm_option_print): Dump current fpu name.
2639 * config/arm/arm.opt (arm_fpu_index): Mark Save.
2641 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
2642 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2644 * combine.c (subst): Don't substitute or simplify when
2645 handling register-wise widening multiply.
2646 (force_to_mode): Likewise.
2648 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
2650 PR tree-optimization/68264
2651 * tree-call-cdce.c (gen_one_condition): Update commentary.
2652 (gen_conditions_for_pow_int_base): Invert the sense of the tests
2653 passed to gen_one_condition.
2654 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
2655 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
2656 using EDGE_FALSE_VALUE for edges to the call block and
2657 EDGE_TRUE_VALUE for the others.
2659 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2661 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
2664 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2666 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
2668 2015-11-13 Tom de Vries <tom@codesourcery.com>
2670 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
2673 2015-11-13 Tom de Vries <tom@codesourcery.com>
2675 * gen-pass-instances.awk (handle_line): Add args_str variable.
2677 2015-11-13 Martin Liska <mliska@suse.cz>
2679 * graphite-poly.c (free_scop): Release scop->drs vector.
2680 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
2682 (try_generate_gimple_bb): Use vNULL as a default initialization
2685 2015-11-13 Martin Liska <mliska@suse.cz>
2688 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
2689 Replace array initialization (using a variable post-increment)
2690 that possible triggers multiple unsequenced modifications
2691 with a pair of pushes to a vector.
2693 2015-11-13 Richard Biener <rguenther@suse.de>
2695 PR tree-optimization/68306
2696 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
2697 loop related checks ...
2698 (vect_verify_datarefs_alignment): ... here.
2699 (vect_slp_analyze_and_verify_node_alignment): Compute and
2700 verify alignment of the single DR that it matters.
2701 * tree-vect-stmts.c (vectorizable_store): Add an assert.
2702 (vectorizable_load): Add a comment.
2703 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
2704 for determining load cost.
2706 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2708 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
2709 mix of boolean and integer vectors in a single statement.
2710 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
2711 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
2712 determine constant type.
2713 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
2714 for loop invariants.
2716 2015-11-13 Alan Hayward <alan.hayward@arm.com>
2718 PR tree-optimization/66558
2719 * tree-vect-loop.c (is_integer_induction):Add.
2720 (vectorizable_reduction): Add integer induction checks.
2722 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
2724 Revert [ARM] Remove neon-testgen.ml and generated tests.
2726 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2728 [ARM] Remove neon-testgen.ml and generated tests.
2730 * config/arm/neon-testgen.ml: Remove.
2732 2015-11-13 Richard Biener <rguenther@suse.de>
2734 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
2735 Signal fatal failure if early checks fail.
2736 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
2737 do not bother testing further vector sizes.
2739 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
2741 * config/i386/predicates.md (misaligned_operand): Return true if
2742 operand is aligned to less than its natural alignmnet.
2744 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2746 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
2747 (vec_cmpu@var{m}@var{n}): New item.
2748 (vcond@var{m}@var{n}): Specify comparison is signed.
2749 (vcondu@var{m}@var{n}): New item.
2750 (vcond_mask_@var{m}@var{n}): New item.
2751 (maskload@var{m}@var{n}): New item.
2752 (maskstore@var{m}@var{n}): New item.
2754 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2756 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
2757 types of stored value and storage are compatible.
2759 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
2761 * gcc.c (POST_LINK_SPEC): Define if not already defined.
2762 (LINK_COMMAND_SPEC): Use post_link.
2763 (post_link_spec): New, initialize to POST_LINK_SPEC.
2764 (post_link): Initialize new static spec.
2765 * doc/tm.texi.in (POST_LINK_SPEC): Document.
2766 * doc/tm.texi: Regenerated.
2768 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2771 * Makefile.in (GCC_OBJS): Add spellcheck.o.
2772 (OBJS): Add spellcheck-tree.o.
2773 * gcc.c: Include "spellcheck.h".
2774 (suggest_option): New function.
2775 (driver::handle_unrecognized_options): Call suggest_option to
2776 provide a hint about misspelled options.
2777 * spellcheck.c: Update file comment.
2778 (levenshtein_distance): Convert 4-param implementation from static
2779 to extern scope. Remove note about unit tests from leading
2780 comment for const char * implementation. Move tree
2781 implementation to...
2782 * spellcheck-tree.c: New file.
2783 * spellcheck.h (levenshtein_distance): Add 4-param decl.
2785 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2787 * Makefile.in (OBJS): Add spellcheck.o.
2788 * spellcheck.c: New file.
2789 * spellcheck.h: New file.
2791 2015-11-13 James Bowman <james.bowman@ftdichip.com>
2793 * config/ft32/ft32.md (*sne): New insn pattern.
2795 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
2797 * cprop.c (is_too_expensive): Remove.
2799 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
2801 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
2802 * gcse.c (is_too_expensive): Rename to ...
2803 (gcse_or_cprop_is_too_expensive): ... this.
2804 Expand warning to add required size of max-gcse-memory.
2805 (one_pre_gcse_pass): Use it.
2806 (one_code_hoisting_pass): Use it.
2807 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
2809 2015-11-12 James Norris <jnorris@codesourcery.com>
2810 Joseph Myers <joseph@codesourcery.com>
2812 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
2813 GF_OMP_TARGET_KIND_OACC_DECLARE.
2814 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
2815 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2816 * gimplify.c (oacc_declare_returns): New.
2817 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
2818 (device_resident_p): New function.
2819 (oacc_default_clause): Handle device_resident clause.
2820 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
2821 (gimplify_expr): Handle OACC_DECLARE.
2822 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
2823 * omp-low.c (expand_omp_target): Handle
2824 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
2825 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
2826 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
2827 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
2828 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2829 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
2830 GOMP_MAP_DEVICE_RESIDENT.
2832 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2834 [ARM] Remove neon-testgen.ml and generated tests.
2836 * config/arm/neon-testgen.ml: Remove.
2838 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
2840 * config/aarch64/aarch64-cores.def (qdf24xx): New.
2841 * config/aarch64/aarch64-tune.md: Regenerated.
2842 * config/arm/arm-cores.def (qdf24xx): New.
2843 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
2844 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
2845 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
2846 (ARM Options/-mtune): Likewise.
2848 2015-11-12 Martin Liska <mliska@suse.cz>
2850 * config/i386/i386.c (ix86_valid_target_attribute_p):
2851 Finalize options at the of the function.
2852 * gcc.c (driver_get_configure_time_options): Call newly
2853 introduced init_opts_obstack.
2854 * lto-wrapper.c (main): Likewise.
2855 * opts.c (init_opts_obstack): New function.
2856 (init_options_struct): Call newly introduced init_opts_obstack.
2857 * opts.h (init_options_struct): Declare.
2859 2015-11-12 Martin Liska <mliska@suse.cz>
2862 * ipa-icf.c (void sem_item::set_hash): New function.
2863 (sem_function::get_hash): Use renamed m_hash member variable.
2864 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
2865 (sem_item::update_hash_by_local_refs): Likewise.
2866 (sem_variable::get_hash): Use renamed m_hash member variable.
2867 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
2868 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
2869 (sem_item_optimizer::build_graph): As the hash value of an item
2870 is lazy initialized, force the calculation.
2871 * ipa-icf.h (set_hash): Declare new function and rename hash member
2874 2015-11-12 Richard Biener <rguenther@suse.de>
2876 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
2877 Rename to vect_slp_analyze_instance_dependence.
2878 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2879 Remove WAR special-case.
2880 (vect_slp_analyze_node_dependences): Instead add more specific
2881 code here, not relying on other instances being vectorized.
2882 (vect_slp_analyze_instance_dependence): Adjust accordingly.
2883 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
2884 vertical space in dump files.
2885 (vect_print_slp_tree): Likewise.
2886 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
2887 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
2888 not vectorized stmts until after dependence analysis removed
2889 instances. Merge alignment and dependence checks.
2890 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
2893 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
2895 * config/aarch64/aarch64-protos.h (tune_params): Add new members
2896 "max_case_values" and "cache_line_size".
2897 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
2899 (aarch64_override_options_internal): Tune heuristics based on new
2900 members in "tune_params".
2901 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2903 2015-11-12 Richard Biener <rguenther@suse.de>
2905 PR tree-optimization/68306
2906 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
2907 relevant and vectorizable checks here.
2908 (vect_verify_datarefs_alignment): Add relevant check here.
2910 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
2912 * gimplify.c (oacc_default_clause): New.
2913 (omp_notice_variable): Call it.
2915 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2917 PR tree-optimization/68305
2918 * tree-vect-slp.c (vect_get_constant_vectors): Support
2919 COND_EXPR with SSA_NAME as a condition.
2921 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
2923 * config/visium/visium-protos.h (notice_update_cc): Delete.
2924 (print_operand): Likewise.
2925 (print_operand_address): Likewise.
2927 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2929 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
2930 FUNCTION_VALUE_REGNO_P): Remove.
2931 * config/alpha/alpha-protos.h (function_value): Remove.
2932 * config/alpha/alpha.c (function_value): Rename to...
2933 (alpha_function_value_1): ... this. Make static.
2934 (alpha_function_value, alpha_libcall_value,
2935 alpha_function_value_regno_p): New functions.
2936 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2937 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2939 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2941 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2942 * config/alpha/alpha.c (alpha_memory_latency): Make static.
2943 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
2944 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2946 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
2949 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
2950 assertion on the CFA register.
2952 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2954 * expr.c (do_store_flag): Expand vector comparison as
2955 VEC_COND_EXPR if vector comparison is not supported by target.
2957 2015-11-12 Renlin Li <renlin.li@arm.com>
2959 * config/arm/arm.md (addsi3_compare_op2): Make the order of
2960 assembly pattern consistent with constraint order.
2962 2015-11-12 Tom de Vries <tom@codesourcery.com>
2964 * gen-pass-instances.awk (handle_line): Simplify match regexp.
2966 2015-11-12 Tom de Vries <tom@codesourcery.com>
2968 * gen-pass-instances.awk (handle_line): Simplify init of
2971 2015-11-12 Tom de Vries <tom@codesourcery.com>
2973 * gen-pass-instances.awk (handle_line): Rename var where to
2976 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
2978 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
2979 do not expand to rtl.
2981 2015-11-12 Richard Biener <rguenther@suse.de>
2983 PR tree-optimization/58497
2984 * tree-vect-generic.c: Include gimplify.h.
2985 (tree_vec_extract): Lookup constant/constructor DEFs.
2986 (do_cond): Unshare cond.
2988 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2990 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
2991 combined insn if the alignment of vector mode memory operand
2992 is less than ssememalign.
2994 2015-11-12 Tom de Vries <tom@codesourcery.com>
2996 * gen-pass-instances.awk (handle_line): Print parentheses and
2997 pass_name explicitly.
2999 2015-11-12 Tom de Vries <tom@codesourcery.com>
3001 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
3004 2015-11-12 Tom de Vries <tom@codesourcery.com>
3006 * gen-pass-instances.awk (handle_line): Add comments.
3008 2015-11-12 Tom de Vries <tom@codesourcery.com>
3010 * gen-pass-instances.awk (handle_line): Rename len_of_end to
3013 2015-11-12 Tom de Vries <tom@codesourcery.com>
3015 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
3017 2015-11-12 Tom de Vries <tom@codesourcery.com>
3019 * gen-pass-instances.awk (handle_line): Restructure using early-out.
3021 2015-11-12 Tom de Vries <tom@codesourcery.com>
3023 * gen-pass-instances.awk (handle_line): Unify semicolon use.
3025 2015-11-12 Tom de Vries <tom@codesourcery.com>
3027 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
3029 2015-11-12 Tom de Vries <tom@codesourcery.com>
3031 * gen-pass-instances.awk: Add emacs indent setting.
3033 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3035 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
3037 Move Convert A/(B/C) to (A/B)*C to match.pd.
3038 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
3039 Move Optimize (X & (-A)) / A where A is a power of 2, to
3040 X >> log2(A) to match.pd.
3042 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
3043 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
3044 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
3046 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
3048 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
3050 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
3052 (neon_vst2_lane<mode>): Likewise.
3053 (neon_vld3_lane<mode>): Likewise.
3054 (neon_vst3_lane<mode>): Likewise.
3055 (neon_vld4_lane<mode>): Likewise.
3056 (neon_vst4_lane<mode>): Likewise.
3058 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
3059 Sebastian Pop <s.pop@samsung.com>
3061 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3062 New member codegen_error
3063 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
3065 (translate_isl_ast_node_user): Early return in case of error.
3066 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3067 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
3068 (add_parameters_to_ivs_params): Remove macro.
3069 (graphite_regenerate_ast_isl): Add if_region pointer to region.
3070 * graphite-poly.c (new_poly_dr): Remove macro.
3072 (new_gimple_poly_bb): Same.
3073 (free_gimple_poly_bb): Same.
3074 (print_scop_params): Same.
3075 * graphite-poly.h (struct poly_dr): Same.
3076 (struct poly_bb): Add new_bb.
3077 (gbb_from_bb): Remove dead code.
3078 (pbb_from_bb): Same.
3079 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
3080 (parameter_index_in_region): Same.
3081 (find_scop_parameters): Same.
3082 (build_cross_bb_scalars_def): New.
3083 (build_cross_bb_scalars_use): New.
3084 (graphite_find_cross_bb_scalar_vars): New
3085 (try_generate_gimple_bb): Reads and Writes.
3086 (build_alias_set): Move.
3087 (gather_bbs::before_dom_children): Gather bbs visited.
3088 (build_scops): call build_alias_set.
3089 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
3090 (remove_simple_copy_phi): Delete.
3091 (remove_invariant_phi): Delete.
3092 (simple_copy_phi_p): Delete.
3093 (reduction_phi_p): Delete.
3094 (isl_id_for_dr): Remove unused param.
3095 (parameter_index_in_region_1): Remove macro usage.
3096 (set_scop_parameter_dim): Same.
3097 (add_param_constraints): Same.
3098 (add_conditions_to_constraints): Same
3099 (build_scop_iteration_domain): Same.
3100 (pdr_add_alias_set): Comment.
3101 (add_scalar_version_numbers): New.
3102 (build_poly_dr): ISL id.
3103 (build_scop_drs): Move.
3104 (build_poly_sr_1): Same.
3105 (insert_stmts): Remove.
3106 (build_poly_sr): New.
3107 (new_pbb_from_pbb): Delete.
3108 (insert_out_of_ssa_copy_on_edge): Delete.
3109 (create_zero_dim_array): Delete.
3110 (scalar_close_phi_node_p): Delete.
3111 (propagate_expr_outside_region): Delete.
3112 (rewrite_close_phi_out_of_ssa): Delete.
3113 (rewrite_phi_out_of_ssa): Delete.
3114 (rewrite_degenerate_phi): Delete.
3115 (rewrite_reductions_out_of_ssa): Delete.
3116 (rewrite_cross_bb_scalar_dependence): Delete.
3117 (handle_scalar_deps_crossing_scop_limits):
3118 (rewrite_cross_bb_scalar_deps): Delete.
3119 (build_poly_scop): Remove calls to out-of-ssa functions.
3120 * graphite.c (graphite_transform_loops): Early return in case of
3122 * sese.c (debug_rename_map_1): Delete.
3123 (debug_rename_map): Delete.
3124 (sese_record_loop): Remove macro.
3125 (build_sese_loop_nests): Same.
3126 (new_sese_info): Same.
3127 (free_sese_info): Same.
3128 (sese_insert_phis_for_liveouts):
3129 (is_loop_closed_ssa_use): New.
3130 (number_of_phi_nodes): New.
3131 (bb_contains_loop_close_phi_nodes): New.
3132 (bb_contains_loop_phi_nodes): New.
3133 (phi_uses_name): New.
3135 (get_rename): Add old_bb and loop_phi for more precise matching of
3137 (set_rename): Pass region.
3138 (later_of_the_two): New.
3139 (gsi_insert_earliest): New.
3140 (collect_all_ssa_names): New.
3141 (substitute_ssa_name): New.
3142 (rename_all_uses): New.
3143 (get_rename_from_scev): New.
3144 (rename_uses): Pass old_bb for more precise matching of exprs.
3145 (get_def_bb_for_const): New.
3146 (get_new_name): New.
3149 (copy_loop_phi_args): New.
3150 (copy_loop_phi_nodes): New.
3151 (get_loop_init_value): New.
3152 (find_init_value): New.
3153 (find_init_value_close_phi): New.
3154 (copy_loop_close_phi_args): New.
3155 (copy_loop_close_phi_nodes): New.
3156 (add_phi_arg_for_new_expr): New.
3157 (copy_cond_phi_args): New.
3158 (copy_cond_phi_nodes): New.
3159 (copy_phi_nodes): New.
3160 (should_copy_to_new_region): New.
3161 (set_rename_for_each_def): New.
3162 (graphite_copy_stmts_from_block): Early return in case of error.
3163 (copy_bb_and_scalar_dependences): Same.
3164 * sese.h (vec_find): New.
3165 (SESE_PARAMS): Delete.
3166 (SESE_LOOPS): Delete.
3167 (SESE_LOOP_NEST): Delete.
3168 (sese_contains_loop): Remove macro usage.
3169 (sese_nb_params): Same.
3170 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
3172 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3174 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
3175 isl_union_map_add_map on every pbb->schedule.
3177 2015-11-11 Tom de Vries <tom@codesourcery.com>
3179 * tree-parloops.c (create_parallel_loop): Return void.
3181 2015-11-11 Tom de Vries <tom@codesourcery.com>
3183 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
3184 block only when needed.
3186 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
3188 * config/alpha/alpha-protos.h (print_operand): Remove.
3189 (print_operand_address): Remove.
3190 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
3191 (PRINT_OPERAND_ADDRESS): Remove.
3192 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
3193 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
3194 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
3195 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
3196 (print_operand_address): Rename to...
3197 (alpha_print_operand_address): ...this and make static.
3198 (print_operand): Rename to...
3199 (alpha_print_operand): ...this and make static.
3200 (alpha_print_operand_punct_valid_p): New static function.
3202 2015-11-11 Richard Biener <rguenther@suse.de>
3204 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
3206 (vect_analyze_data_refs_alignment): Make loop vect specific.
3207 (vect_verify_datarefs_alignment): Likewise.
3208 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
3209 Add missing continue.
3210 (vect_compute_data_ref_alignment): Export.
3211 (vect_compute_data_refs_alignment): Merge into...
3212 (vect_analyze_data_refs_alignment): ... this.
3213 (verify_data_ref_alignment): Split out from ...
3214 (vect_verify_datarefs_alignment): ... here.
3215 (vect_slp_analyze_and_verify_node_alignment): New function.
3216 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
3217 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
3218 misplaced checks on alignment.
3219 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
3220 alignment analysis after SLP discovery and do it per instance.
3221 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
3222 bother to re-try using different vector sizes.
3224 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
3225 Cesar Philippidis <cesar@codesourcery.com>
3227 * gimplify.c (enum omp_region_type): Add ORT_ACC,
3228 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
3229 (gimple_add_tmp_var): Add ORT_ACC checks.
3230 (gimplify_var_or_parm_decl): Likewise.
3231 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
3232 (omp_add_variable): Look in outer contexts for openacc and allow
3233 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
3234 (omp_notice_variable, omp_is_private, omp_check_private): Add
3236 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
3237 Permit private openacc reductions.
3238 (gimplify_oacc_cache): Specify ORT_ACC.
3239 (gimplify_omp_workshare): Adjust OpenACC region types.
3240 (gimplify_omp_target_update): Likewise.
3241 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
3242 (lower-rec_input_clauses): Don't handle openacc firstprivate
3244 (lower_omp_target): Emit initializers for openacc firstprivate vars.
3246 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
3249 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
3250 frame pointer for stack checking if non-call exceptions aren't used.
3251 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
3253 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
3255 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
3258 2015-11-11 Martin Liska <mliska@suse.cz>
3259 Richard Biener <rguenther@suse.de>
3261 PR rtl-optimization/68287
3262 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
3265 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
3267 * config/mips/mips.c (mips_breakable_sequence_p): New function.
3268 (mips_break_sequence): New function.
3269 (mips_reorg_process_insns): Use them. Use compact branches in selected
3272 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
3274 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
3276 2015-11-11 Jiong Wang <jiong.wang@arm.com>
3277 Jim Wilson <wilson@gcc.gnu.org>
3280 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
3281 be true and eliminable registers mentioned.
3283 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
3285 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
3287 * config/arc/arc-opts.h: Add ARCv2 CPUs.
3288 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
3289 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
3290 situation, and store instructions with large offsets.
3291 (arc_secondary_reload_conv): New function.
3292 (arc_init): Add ARCv2 options.
3293 (arc_conditional_register_usage): Select the proper register usage
3294 for ARCv2 processors.
3295 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
3297 (arc_compute_function_type): Likewise.
3298 (arc_print_operand): Handle new ARCv2 punctuation characters.
3299 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
3300 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
3302 (arc_reorg, arc_hazard): Use it.
3303 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
3304 (ASM_SPEC): Add ARCv2 options.
3305 (TARGET_NORM): ARC HS has norm instructions by default.
3306 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
3307 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
3308 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
3309 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
3311 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
3312 (TARGET_LP_WR_INTERLOCK): Likewise.
3314 (commutative_binary_mult_comparison_result_used, movsicc_insn)
3315 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
3316 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
3317 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
3319 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
3320 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
3321 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
3322 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
3323 (extzvsi): New pattern.
3324 * config/arc/arc.opt: New ARCv2 options.
3325 * config/arc/arcEM.md: New file.
3326 * config/arc/arcHS.md: Likewise.
3327 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
3329 (Cm2): A signed 9-bit integer constant constraint.
3330 (C62): An unsigned 6-bit integer constant constraint.
3331 (C16): A signed 16-bit integer constant constraint.
3332 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
3333 (short_const_int_operand): New predicate.
3334 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
3335 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
3336 -mcode-density and -mdiv-rem.
3338 2015-11-11 Julia Koval <julia.koval@intel.com>
3340 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
3342 2015-11-11 Julia Koval <julia.koval@intel.com>
3344 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
3346 2015-11-11 Martin Liska <mliska@suse.cz>
3348 * gimple-ssa-strength-reduction.c (create_phi_basis):
3350 * passes.c (release_dump_file_name): New function.
3351 (pass_init_dump_file): Used from this function.
3352 (pass_fini_dump_file): Likewise.
3353 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
3354 * var-tracking.c (vt_initialize): Use pool_allocator.
3356 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
3357 Jiong Wang <jiong.wang@arm.com>
3359 PR tree-optimization/68234
3360 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
3361 node which estimiated to be VR_VARYING initially.
3363 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
3365 * regname.c (scan_rtx_reg): Check the matching number of consecutive
3366 registers when tying chains.
3367 (build_def_use): Move terminated_this_insn earlier in the function.
3369 2015-11-10 Mike Frysinger <vapier@gentoo.org>
3371 * configure.ac: Use = with test and not ==.
3372 * configure: Regenerated.
3374 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
3376 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
3377 machine asserts. Update defines for 64 bit.
3379 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3382 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
3384 (neon_vst1_lane<mode>): Likewise.
3385 (neon_vld2_lane<mode>): Likewise.
3386 (neon_vst2_lane<mode>): Likewise.
3387 (neon_vld3_lane<mode>): Likewise.
3388 (neon_vst3_lane<mode>): Likewise.
3389 (neon_vld4_lane<mode>): Likewise.
3390 (neon_vst4_lane<mode>): Likewise.
3392 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3395 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
3396 qualifier_struct_load_store_lane_index.
3397 (arm_storestruct_lane_qualifiers) Likewise.
3398 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
3400 (neon_vst1_lane<mode>) Likewise.
3401 (neon_vld2_lane<mode>) Likewise.
3402 (neon_vst2_lane<mode>) Likewise.
3403 (neon_vld3_lane<mode>) Likewise.
3404 (neon_vst3_lane<mode>) Likewise.
3405 (neon_vld4_lane<mode>) Likewise.
3406 (neon_vst4_lane<mode>) Likewise.
3408 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3411 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
3412 qualifier_struct_load_store_lane_index.
3413 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3414 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
3415 argument qualifiers.
3416 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
3417 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
3419 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
3421 * config/nvptx/nvptx.opt (moptimize): New flag.
3422 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
3424 (nvptx_optimize_inner): New.
3425 (nvptx_process_pars): Call it when optimizing.
3426 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
3428 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3430 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
3431 Remove redundant code.
3433 2015-11-10 Jeff Law <law@redhat.com>
3435 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
3436 call to output_address.
3437 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
3438 Add unnamed machine_mode argument.
3440 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3442 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
3445 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3447 * config/i386/i386.md (*movabs<mode>_1): Add explicit
3448 size directives for -masm=intel.
3449 (*movabs<mode>_2): Ditto.
3451 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3453 * config/i386/i386.c (ix86_print_operand): Remove dead code that
3454 tried to avoid (%rip) for call operands.
3456 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3458 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
3459 argument. Do not use RIP relative addressing when no_rip is set.
3460 (ix86_print_operand): Update call to ix86_print_operand_address_as.
3461 (ix86_print_operand_address): Ditto.
3462 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
3463 absolute movabs operand 0. Add square braces for -masm=intel.
3464 (*movabs<mode>_2): Ditto for operand 1.
3466 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3468 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
3469 combine_vcvtf2i pattern.
3471 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3473 * config/arm/arm.c (neon_valid_immediate): Remove integer
3474 CONST_DOUBLE handling. It should never occur.
3476 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
3478 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
3479 (ATOMIC_LDOP): Likewise.
3480 (atomic_ldop): Likewise.
3481 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
3482 (ATOMIC_LDOP): Likewise.
3483 (atomic_ldop): Likewise.
3485 2015-11-10 Martin Liska <mliska@suse.cz>
3487 * alloc-pool.h (allocate_raw): New function.
3488 (operator new (size_t, object_allocator<T> &a)): Use the
3489 function instead of object_allocator::allocate).
3491 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3493 * config/i386/sse.md (HALFMASKMODE): New attribute.
3494 (DOUBLEMASKMODE): New attribute.
3495 (vec_pack_trunc_qi): New.
3496 (vec_pack_trunc_<mode>): New.
3497 (vec_unpacks_lo_hi): New.
3498 (vec_unpacks_lo_si): New.
3499 (vec_unpacks_lo_di): New.
3500 (vec_unpacks_hi_hi): New.
3501 (vec_unpacks_hi_<mode>): New.
3503 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3505 * optabs.c (expand_binop_directly): Allow scalar mode for
3506 vec_pack_trunc_optab.
3507 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3508 boolean vector producers from pattern sequence when computing VF.
3509 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
3510 vect_recog_mask_conversion_pattern.
3511 (search_type_for_mask): Choose the smallest
3512 type if different size types are mixed.
3513 (build_mask_conversion): New.
3514 (vect_recog_mask_conversion_pattern): New.
3515 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
3516 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
3518 (vectorizable_conversion): Support boolean vectors.
3519 (free_stmt_vec_info): Allow patterns for statements with no lhs.
3520 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
3522 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3524 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
3525 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
3526 Cast mask to FP mode if required.
3527 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
3528 (vcond_mask_<mode><avx512fmaskmodelower>): New.
3529 (vcond_mask_<mode><sseintvecmodelower>): New.
3530 (vcond_mask_<mode><sseintvecmodelower>): New.
3531 (vcond_mask_v2div2di): New.
3532 (vcond_mask_<mode><sseintvecmodelower>): New.
3533 (vcond_mask_<mode><sseintvecmodelower>): New.
3535 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3537 * optabs-query.h (get_vcond_mask_icode): New.
3538 * optabs-tree.c (expand_vec_cond_expr_p): Use
3539 get_vcond_mask_icode for VEC_COND_EXPR with mask.
3540 * optabs.c (expand_vec_cond_mask_expr): New.
3541 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
3542 * optabs.def (vcond_mask_optab): New.
3543 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
3544 generate redundant comparison for COND_EXPR.
3545 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
3547 (vectorizable_condition): Likewise.
3548 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
3549 cond_exp with no embedded comparison.
3550 (vect_build_slp_tree_1): Likewise.
3552 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3554 * config/i386/sse.md (maskload<mode>): Rename to ...
3555 (maskload<mode><sseintvecmodelower>): ... this.
3556 (maskstore<mode>): Rename to ...
3557 (maskstore<mode><sseintvecmodelower>): ... this.
3558 (maskload<mode><avx512fmaskmodelower>): New.
3559 (maskstore<mode><avx512fmaskmodelower>): New.
3561 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3563 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
3564 (expand_MASK_STORE): Adjust to maskstore optab changes.
3565 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
3566 Adjust to maskload, maskstore optab changes.
3567 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
3568 * optabs.def (maskload_optab): Transform into convert optab.
3569 (maskstore_optab): Likewise.
3570 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
3571 can_vec_mask_load_store_p signature change.
3572 (predicate_mem_writes): Use boolean mask.
3573 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
3574 can_vec_mask_load_store_p signature change. Allow invariant masks.
3575 (vectorizable_operation): Ignore type precision for boolean vectors.
3577 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3579 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
3580 (const_vector_mask_from_tree): New.
3581 (const_vector_from_tree): Use const_vector_mask_from_tree
3582 for boolean vectors.
3583 * optabs-query.h (get_vec_cmp_icode): New.
3584 * optabs-tree.c (expand_vec_cmp_expr_p): New.
3585 * optabs-tree.h (expand_vec_cmp_expr_p): New.
3586 * optabs.c (vector_compare_rtx): Add OPNO arg.
3587 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
3588 (expand_vec_cmp_expr): New.
3589 * optabs.def (vec_cmp_optab): New.
3590 (vec_cmpu_optab): New.
3591 * optabs.h (expand_vec_cmp_expr): New.
3592 * tree-vect-generic.c (expand_vector_comparison): Add vector
3593 comparison optabs check.
3594 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
3595 operations for VF. Add mask type computation.
3596 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
3597 (vectorizable_comparison): New.
3598 (vect_analyze_stmt): Add vectorizable_comparison.
3599 (vect_transform_stmt): Likewise.
3600 (vect_init_vector): Support boolean vector invariants.
3601 (vect_get_vec_def_for_operand): Add VECTYPE arg.
3602 (vectorizable_condition): Directly provide vectype for invariants
3604 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
3605 (enum vect_var_kind): Add vect_mask_var.
3606 (enum stmt_vec_info_type): Add comparison_vec_info_type.
3607 (vectorizable_comparison): New.
3608 (vect_get_vec_def_for_operand): Add VECTYPE arg.
3609 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
3610 (vect_create_destination_var): Likewise.
3611 * tree-vect-patterns.c (check_bool_pattern): Check fails
3612 if we can vectorize comparison directly.
3613 (search_type_for_mask): New.
3614 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
3615 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
3616 comparison statements.
3617 (vect_get_constant_vectors): Support boolean vector constants.
3618 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
3619 (ix86_expand_int_vec_cmp): New.
3620 (ix86_expand_fp_vec_cmp): New.
3621 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
3622 op_true and op_false.
3623 (ix86_int_cmp_code_to_pcmp_immediate): New.
3624 (ix86_fp_cmp_code_to_pcmp_immediate): New.
3625 (ix86_cmp_code_to_pcmp_immediate): New.
3626 (ix86_expand_mask_vec_cmp): New.
3627 (ix86_expand_fp_vec_cmp): New.
3628 (ix86_expand_int_sse_cmp): New.
3629 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
3630 (ix86_expand_int_vec_cmp): New.
3631 (ix86_get_mask_mode): New.
3632 (TARGET_VECTORIZE_GET_MASK_MODE): New.
3633 * config/i386/sse.md (avx512fmaskmodelower): New.
3634 (vec_cmp<mode><avx512fmaskmodelower>): New.
3635 (vec_cmp<mode><sseintvecmodelower>): New.
3636 (vec_cmpv2div2di): New.
3637 (vec_cmpu<mode><avx512fmaskmodelower>): New.
3638 (vec_cmpu<mode><sseintvecmodelower>): New.
3639 (vec_cmpuv2div2di): New.
3641 2015-11-10 Richard Biener <rguenther@suse.de>
3643 PR tree-optimization/68240
3644 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
3646 (visit_phi): For PHIs with just a single executable edge
3647 take its value directly.
3648 (expressions_equal_p): Handle VN_TOP properly.
3650 2015-11-10 Richard Biener <rguenther@suse.de>
3652 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
3653 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
3656 2015-11-10 Richard Biener <rguenther@suse.de>
3658 PR tree-optimization/56118
3659 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
3660 cost favor vectorized version.
3662 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3664 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
3665 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
3666 (neg_not_op): New code attribute.
3668 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3670 * ifcvt.c (noce_try_inverse_constants): New function.
3671 (noce_process_if_block): Call it.
3672 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
3673 * optabs.def (negcc_optab, notcc_optab): Declare.
3674 * optabs.c (emit_conditional_neg_or_complement): New function.
3675 * doc/tm.texi (Standard Names): Document negcc, notcc names.
3677 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3679 PR rtl-optimization/68236
3680 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
3681 if insn_queue doesn't exist.
3682 (haifa_sched_finish): Reset insn_queue to NULL.
3684 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
3686 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
3687 (build_def_use): Initialize terminated_this_insn.
3688 (find_best_rename_reg): Pick and check register from the tied chain.
3689 (regrename_do_replace): Mark head as renamed.
3690 (struct du_head *terminated_this_insn). New static variable.
3691 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
3692 * regrename.h (struct du_head): Add tied_chain, renamed members.
3694 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3697 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
3700 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3703 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
3704 not promote the mode for aggregate types.
3706 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3708 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
3709 * omp-low.c (build_oacc_routine_dims): New.
3711 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3713 * config/rs6000/constraints.md (wF constraint): New constraints
3714 for power9/toc fusion.
3715 (wG constraint): Likewise.
3717 * config/rs6000/predicates.md (u6bit_cint_operand): New
3718 predicate, recognize 0..63.
3719 (upper16_cint_operand): New predicate for power9 and toc fusion.
3720 (fpr_reg_operand): Likewise.
3721 (toc_fusion_or_p9_reg_operand): Likewise.
3722 (toc_fusion_mem_raw): Likewise.
3723 (toc_fusion_mem_wrapped): Likewise.
3724 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
3726 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
3728 (fusion_addis_mem_combo_load): Add support for power9 fusion of
3729 floating point loads, floating point stores, and gpr stores.
3730 (fusion_addis_mem_combo_store): Likewise.
3731 (fusion_offsettable_mem_operand): Likewise.
3733 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
3734 (emit_fusion_load_store): Likewise.
3735 (fusion_p9_p): Likewise.
3736 (expand_fusion_p9_load): Likewise.
3737 (expand_fusion_p9_store): Likewise.
3738 (emit_fusion_p9_load): Likewise.
3739 (emit_fusion_p9_store): Likewise.
3740 (fusion_wrap_memory_address): Likewise.
3742 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
3743 elements for power9 fusion.
3744 (rs6000_debug_print_mode): Rework debug information to print more
3745 information about fusion.
3746 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
3747 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
3748 offsettable memory address.
3749 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
3750 (emit_fusion_gpr_load): Move most of the code from
3751 emit_fusion_gpr_load into emit_fusion-addis that handles both
3752 power8 and power9 fusion.
3753 (emit_fusion_addis): Likewise.
3754 (emit_fusion_load_store): Likewise.
3755 (fusion_wrap_memory_address): Add support for TOC fusion.
3756 (fusion_split_address): Likewise.
3757 (fusion_p9_p): Add support for power9 fusion.
3758 (expand_fusion_p9_load): Likewise.
3759 (expand_fusion_p9_store): Likewise.
3760 (emit_fusion_p9_load): Likewise.
3761 (emit_fusion_p9_store): Likewise.
3763 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
3764 new instructions in ISA 3.0.
3765 (TARGET_CTZ): Likewise.
3766 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
3767 (TARGET_TOC_FUSION_FP): Likewise.
3769 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
3771 (UNSPEC_FUSION_ADDIS): Likewise.
3772 (QHSI mode iterator): New iterator for power9 fusion.
3773 (GPR_FUSION): Likewise.
3774 (FPR_FUSION): Likewise.
3775 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
3776 (umod<mode>3): Likewise.
3777 (divmod peephole): Likewise.
3778 (udivmod peephole): Likewise.
3779 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
3781 (ctz<mode>2_h): Likewise.
3782 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
3783 (ashdi3_extswsli_dot): Likewise.
3784 (ashdi3_extswsli_dot2): Likewise.
3785 (power9 fusion splitter): New power9/toc fusion support.
3786 (toc_fusionload_<mode>): Likewise.
3787 (toc_fusionload_di): Likewise.
3788 (fusion_gpr_load_<mode>): Update predicate function.
3789 (power9 fusion peephole2s): New power9/toc fusion support.
3790 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
3791 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
3792 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3793 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3794 (fusion_p9_<mode>_constant): Likewise.
3796 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
3798 * optabs.c (prepare_libcall_arg): New function.
3799 (expand_fixed_convert): Add call to prepare_libcall_arg.
3801 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
3803 * sched-int.h (dump_rgn_dependencies_dot): Declare
3804 * sched-rgn.c (dump_rgn_dependencies_dot): New function
3805 * print-rtl.h (print_insn): Add prototype
3807 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
3808 * common.opt (-fsched-verbose): Set default value to 1.
3809 * invoke.texi (-fsched-verbose): Update the option's description.
3811 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3813 * config/visium/visium.h (PRINT_OPERAND): Delete.
3814 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3815 (PRINT_OPERAND_ADDRESS): Likewise.
3816 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
3818 (visium_print_operand_punct_valid_p): ...this. New function.
3819 (TARGET_PRINT_OPERAND): Define to...
3820 (print_operand): Rename to...
3821 (visium_print_operand): ...this.
3822 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
3823 (visium_output_address): Rename to...
3824 (visium_print_operand_address): ...this.
3825 (print_operand_address): Delete.
3827 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3830 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
3831 Check that the type of the first operand is an aggregate type.
3833 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3835 * omp-low.c: Fix some OpenACC comment typos.
3836 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
3837 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
3838 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
3840 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
3842 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
3844 2015-11-09 Jeff Law <law@redhat.com>
3846 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
3847 being in gimple/ssa form. Remove redundant check for SSA_NAME.
3850 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3851 Peter Bergner <bergner@vnet.ibm.com>
3853 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
3855 (-mpower9-vector): Likewise.
3856 (-mpower9-dform): Likewise.
3857 (-mpower9-minmax): Likewise.
3858 (-mtoc-fusion): Likewise.
3859 (-mmodulo): Likewise.
3860 (-mfloat128-hardware): Likewise.
3862 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
3863 mask for ISA 3.0 (power9).
3864 (POWERPC_MASKS): Add new ISA 3.0 switches.
3865 (power9 cpu): Add power9 cpu.
3867 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
3868 (ASM_CPU_SPEC): Likewise.
3869 (EXTRA_SPECS): Likewise.
3871 * config/rs6000/rs6000-opts.h (enum processor_type): Add
3874 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
3875 (rs6000_debug_reg_global): Add support for power9 fusion.
3876 (rs6000_setup_reg_addr_masks): Cache mode size.
3877 (rs6000_option_override_internal): Until real power9 tuning is
3878 added, use -mtune=power8 for -mcpu=power9.
3879 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
3880 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
3881 of Altivec registers.
3882 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
3883 (rs6000_loop_align): Add support for power9 cpu.
3884 (rs6000_file_start): Likewise.
3885 (rs6000_adjust_cost): Likewise.
3886 (rs6000_issue_rate): Likewise.
3887 (insn_must_be_first_in_group): Likewise.
3888 (insn_must_be_last_in_group): Likewise.
3889 (force_new_group): Likewise.
3890 (rs6000_register_move_cost): Likewise.
3891 (rs6000_opt_masks): Likewise.
3893 * config/rs6000/rs6000.md (cpu attribute): Add power9.
3894 * config/rs6000/rs6000-tables.opt: Regenerate.
3896 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3897 _ARCH_PWR9 if power9 support is available.
3899 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
3900 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
3902 * configure.ac: Determine if the assembler supports the ISA 3.0
3904 * config.in (HAVE_AS_POWER9): Likewise.
3905 * configure: Regenerate.
3907 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
3910 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3912 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
3913 Remove integer CONST_DOUBLE handling. It should never occur.
3915 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3918 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
3919 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
3920 Delete VOIDmode case. Assert that mode is not VOIDmode.
3921 * config/aarch64/predicates.md (const0_operand): Remove const_double
3924 2015-11-09 Martin Liska <mliska@suse.cz>
3926 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
3927 body_info release function.
3928 * ipa-prop.c (ipa_release_body_info): New function.
3929 (ipa_analyze_node): Call the function.
3930 (ipa_node_params::~ipa_node_params): Release known_csts.
3931 * ipa-prop.h (ipa_release_body_info): Declare.
3933 2015-11-09 Martin Liska <mliska@suse.cz>
3935 * gcc.c (record_temp_file): Release name string.
3936 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
3937 * lra-lives.c (free_live_range_list): Utilize
3938 lra_live_range_pool for allocation and deallocation.
3939 (create_live_range): Likewise.
3940 (copy_live_range): Likewise.
3941 (lra_merge_live_ranges): Likewise.
3942 (remove_some_program_points_and_update_live_ranges): Likewise.
3943 (lra_create_live_ranges_1): Release point_freq_vec that can
3944 be not freed from previous iteration of the function.
3945 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
3946 * tree-sra.c (sra_deinitialize): Release all vectors in
3948 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
3949 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
3950 Release edge_info for a removed edge.
3951 (thread_through_all_blocks): Free region vector.
3952 * tree-ssa.h (free_dom_edge_info): Declare function extern.
3954 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
3956 * optabs.c (expand_vec_cond_expr): Always get sign from type.
3957 * tree.c (wide_int_to_tree): Support negative values for boolean.
3958 (build_nonstandard_boolean_type): Use signed type for booleans.
3960 2015-11-09 Richard Biener <rguenther@suse.de>
3962 PR tree-optimization/68248
3963 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
3965 2015-11-09 Richard Biener <rguenther@suse.de>
3967 PR tree-optimization/56118
3968 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
3969 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
3970 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
3972 (vect_slp_analyze_data_ref_dependences): Instead of computing
3973 all dependences of the region DRs just analyze the code motions
3974 SLP vectorization will perform. Remove SLP instances that
3975 cannot have their store/load motions applied.
3976 (vect_analyze_data_refs): Allow DRs without a vectype
3977 in BB vectorization.
3979 2015-11-09 Julian Brown <julian@codesourcery.com>
3981 * final.c (output_asm_insn): Pass VOIDmode to output_address.
3982 (output_address): Add MODE argument. Pass to print_operand_address
3984 * targhooks.c (default_print_operand_address): Add MODE argument.
3985 * targhooks.h (default_print_operand_address): Update prototype.
3986 * output.h (output_address): Update prototype.
3987 * target.def (print_operand_address): Add MODE argument.
3988 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
3990 (print_operand): Pass access mode to output_address.
3991 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
3993 (mcore_print_operand): Update calls to mcore_print_operand_address.
3994 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
3996 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
3998 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
4000 (tilegx_print_operand): Don't set above global. Update calls to
4002 (tilegx_print_operand_address): Add MODE argument. Use instead of
4003 output_memory_reference_mode global.
4004 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
4005 (frv_print_operand): Pass mode to frv_print_operand_address calls.
4006 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
4008 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
4009 (cris_print_operand): Pass mode to output_address calls.
4010 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
4011 * config/aarch64/aarch64.h (aarch64_print_operand)
4012 (aarch64_print_operand_address): Remove prototypes.
4013 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
4015 (aarch64_print_operand): Make static. Update calls to output_address.
4016 (aarch64_print_operand_address): Add MODE argument. Use instead of
4017 aarch64_memory_reference_mode global.
4018 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
4020 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4021 Delete macro definitions.
4022 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
4023 * config/xtensa/xtensa.c (print_operand): Pass mode in
4024 output_address calls.
4025 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
4027 (h83000_print_operand): Update calls to h8300_print_operand_address
4029 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
4030 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
4032 (tilepro_print_operand): Pass mode to output_address.
4033 (tilepro_print_operand_address): Add MODE argument. Use instead of
4034 output_memory_reference_mode.
4035 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
4036 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
4037 to output_address calls.
4038 (nvptx_print_operand_address): Add MODE argument.
4039 * config/alpha/alpha.c (print_operand): Pass mode argument in
4040 output_address calls.
4041 * config/m68k/m68k.c (print_operand): Pass mode argument in
4042 output_address call.
4043 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
4044 (avr_print_operand): Update calls to avr_print_operand_address.
4045 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
4046 argument. Update calls to output_address.
4047 (sparc_print_operand): Pass mode to output_address.
4048 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
4050 (iq2000_print_operand): Pass mode in output_address calls.
4051 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
4053 (xstormy16_print_operand): Pass mode to
4054 xstormy16_print_operand_address calls.
4055 * config/mips/mips.c (mips_print_operand): Update calls to
4057 (mips_print_operand_address): Add MODE argument.
4058 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
4060 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
4061 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
4063 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
4064 (rx_print_operand): Update calls to output_address,
4065 rx_print_operand_address.
4066 * config/nds32/nds32.c (nds32_print_operand): Update calls to
4068 (nds32_print_operand_address): Add MODE argument.
4069 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
4070 output_address calls.
4071 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
4072 output_address call.
4073 (c6x_print_address_operand): Update calls to output_address.
4074 (c6x_print_operand_address): Pass mode to above.
4075 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
4076 (v850_print_operand): Pass mode to v850_print_operand_address,
4078 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
4079 (mmix_print_operand): Pass mode in output_address calls.
4080 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
4081 (sh_print_operand): Pass mem mode to output_address,
4082 sh_print_operand_address.
4083 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
4084 (cr16_print_operand): Pass mode to output_address,
4085 cr16_print_operand_address.
4086 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
4088 * config/microblaze/microblaze.c (print_operand): Pass mode to
4090 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
4092 (nios2_print_operand_address): Add MODE argument. Update call to
4093 nios2_print_operand_address.
4094 * config/s390/s390.c (print_operand): Pass mode to output_address.
4095 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
4096 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
4098 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
4099 Use instead of output_memory_reference_mode.
4100 (output_memory_reference_mode): Delete global.
4101 (arm_print_operand): Pass mem mode to output_address.
4102 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
4103 (m32r_print_operand): Pass mode to output_address.
4104 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
4106 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
4107 * config/i386/i386.c (ix86_print_operand): Pass mode to
4108 output_address calls.
4109 (ix86_print_operand_address): Add MODE argument.
4111 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4114 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
4115 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
4116 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
4117 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4119 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4121 PR rtl-optimization/67749
4122 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
4123 case before emitting the two blocks. Instead modify the register
4124 in the corresponding final insn of the basic block.
4126 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4128 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
4131 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
4133 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
4134 HAVE_INITFINI_ARRAY_SUPPORT.
4135 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
4137 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
4138 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
4139 Don't check HAVE_AS_SPARC_NOBITS.
4140 Heed SECTION_NOTYPE.
4142 * configure: Regenerate.
4143 * config.in: Regenerate.
4145 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4148 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
4150 2015-11-09 Richard Henderson <rth@redhat.com>
4152 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
4153 __SEG_GS, __SEG_TLS.
4154 (ix86_register_pragmas): Register address spaces __seg_fs,
4155 __seg_gs, __seg_tls.
4156 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
4157 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
4158 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
4159 * config/i386/i386.c (ix86_decompose_address): Likewise.
4160 (ix86_legitimate_address_p): Likewise.
4161 (memory_address_length): Likewise. Check mem address space too.
4162 (ix86_print_operand): Use ix86_print_operand_address_as.
4163 (ix86_print_operand_address_as): Rename from
4164 ix86_print_operand_address, add new addr_space_t parameter.
4165 Validate that either the parameter or the ix86_address segment
4166 is default address space. Handle ADDR_SPACE_SEG_TLS.
4167 (ix86_print_operand_address): New.
4168 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
4169 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
4170 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
4171 (ix86_addr_space_zero_address_valid): New.
4172 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
4173 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
4174 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
4175 * config/i386/predicates.md (address_no_seg_operand): Likewise.
4176 (vsib_address_operand): Likewise.
4177 (address_mpx_no_base_operand): Likewise.
4178 (address_mpx_no_index_operand): Likewise.
4179 * doc/extend.texi (x86 Named Address Spaces): New section.
4181 * config/i386/i386.c (ix86_check_no_addr_space): New.
4182 (decide_alg): Add have_as parameter.
4183 (alg_usable_p): Likewise; disable rep algorithms if set.
4184 (ix86_expand_set_or_movmem): Notice if either MEM has a
4185 non-default address space.
4186 (ix86_expand_strlen): Likewise.
4187 * config/i386/i386.md (strmov, strset): Likewise.
4188 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
4189 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
4190 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
4191 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
4192 *cmpstrnqi_1, *strlenqi_1): Likewise.
4194 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
4195 (*movabs<mode>_2): Likewise.
4197 * dwarf2out.c (modified_type_die): Pass the address space number
4198 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
4199 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
4200 * targhooks.c (default_addr_space_debug): New.
4201 * targhooks.h (default_addr_space_debug): Declare.
4202 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
4203 * doc/tm.texi: Rebuild.
4205 * gimple.c (check_loadstore): Return false when 0 is a valid address.
4206 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
4207 null when 0 is valid in the source address space.
4208 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
4209 * targhooks.c (default_addr_space_zero_address_valid): New.
4210 * targhooks.h (default_addr_space_zero_address_valid): Declare.
4211 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
4212 * doc/tm.texi: Rebuild.
4214 * cselib.c (add_mem_for_addr): Compare address spaces when
4216 (cselib_lookup_mem): Likewise.
4217 * fold-const.c (operand_equal_p): Check address spaces of
4218 pointer types before checking integer constants.
4221 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
4222 the correct type for the base.
4224 2015-11-09 Jeff Law <law@redhat.com>
4226 * tree-into-ssa.c (names_to_release): No longer static.
4227 * tree-into-ssa.h (names_to_release): Declare.
4228 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
4229 (release_free_names_and_compact_live_names): New function extracted
4230 from pass_release_ssa_names::execute.
4231 (pass_release_ssa_names::execute): Use it.
4233 2015-11-09 Alan Modra <amodra@gmail.com>
4235 * gensupport.c (add_mnemonic_string): Make len param a size_t.
4236 (gen_mnemonic_setattr): Make "size" var a size_t. Use
4237 obstack_blank_fast to shrink obstack. Cast obstack_next_free
4240 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
4242 PR rtl-optimization/68182
4243 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
4244 branch with only one successor just like unconditional branches.
4246 2015-11-08 Jeff Law <law@redhat.com>
4248 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
4249 non-FSM path has no edges marked with EDGE_DFS_BACK.
4250 (ssa_redirect_edges): No longer call mark_loop_for_removal.
4251 (thread_single_edge, def_split_header_continue_p): Remove.
4252 (bb_ends_with_multiway_branch): Likewise.
4253 (thread_through_loop_header): Remove cases of threading from
4254 latch through the header. Simplify knowing we won't thread
4256 (thread_through_all_blocks): Simplify knowing that only the FSM
4257 threader needs to handle backedges.
4259 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
4261 * doc/extend.texi (type attributes): Document scalar_storage_order.
4262 (Structure-Packing Pragmas): Rename into...
4263 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
4264 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
4265 (Warnings): Document -Wno-scalar-storage-order.
4266 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
4267 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
4268 extract_bit_field and store_bit_field.
4269 (initialize_argument_information): Adjust call to store_expr.
4270 (load_register_parameters): Adjust call to extract_bit_field.
4271 * expmed.c (check_reverse_storage_order_support): New function.
4272 (check_reverse_float_storage_order_support): Likewise.
4273 (flip_storage_order): Likewise.
4274 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
4275 of the value if it is true. Pass REVERSE to recursive call after
4276 adjusting the target offset.
4277 Do not use extraction or movstrict instruction if REVERSE is true.
4278 Pass REVERSE to store_fixed_bit_field.
4279 (store_bit_field): Add REVERSE parameter and pass to it to above.
4280 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
4281 store_split_bit_field and store_fixed_bit_field_1.
4282 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
4283 order of the value if it is true and adjust the target offset.
4284 (store_split_bit_field): Add REVERSE parameter and pass it to
4285 store_fixed_bit_field. Adjust the target offset if it is true.
4286 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
4287 of the value if it is true. Pass REVERSE to recursive call after
4288 adjusting the target offset.
4289 Do not use extraction or subreg instruction if REVERSE is true.
4290 Pass REVERSE to extract_fixed_bit_field.
4291 (extract_bit_field): Add REVERSE parameter and pass to it to above.
4292 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
4293 extract_split_bit_field and extract_fixed_bit_field_1.
4294 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
4295 order of the value if it is true and adjust the target offset.
4296 (extract_split_bit_field): Add REVERSE parameter and pass it to
4297 extract_fixed_bit_field. Adjust the target offset if it is true.
4298 * expmed.h (flip_storage_order): Declare.
4299 (store_bit_field): Adjust prototype.
4300 (extract_bit_field): Likewise.
4301 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
4302 (emit_group_store): Adjust call to store_bit_field.
4303 (copy_blkmode_from_reg): Likewise.
4304 (copy_blkmode_to_reg): Likewise.
4305 (write_complex_part): Likewise.
4306 (read_complex_part): Likewise.
4307 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
4308 that it isn't true if the target is a register.
4309 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
4310 and flip the storage order of the value.
4311 <BIT_IOR_EXPR>: Flip the storage order of the value.
4312 (get_bit_range): Adjust call to get_inner_reference.
4313 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
4314 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
4315 with reverse storage order.
4316 (store_expr_with_bounds): Add REVERSE parameter and pass it to
4317 recursive calls and call to store_bit_field. Force the value into a
4318 register if it is true and then flip the storage order of the value.
4319 (store_expr): Add REVERSE parameter and pass it to above.
4320 (categorize_ctor_elements_1): Adjust call to
4321 initializer_constant_valid_p.
4322 (store_constructor_field): Add REVERSE parameter and pass it to
4323 recursive calls and call to store_field.
4324 (store_constructor): Add REVERSE parameter and pass it to calls to
4325 store_constructor_field and store_expr. Set it to true for an
4326 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
4327 (store_field): Add REVERSE parameter and pass it to recursive calls
4328 and calls to store_expr and store_bit_field. Temporarily flip the
4329 storage order of the value with record type and integral mode and
4330 adjust the shift if it is true.
4331 (get_inner_reference): Add PREVERSEP parameter and set it to true
4332 upon encoutering a reference with reverse storage order.
4333 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
4334 (expand_constructor): Adjust call to store_constructor.
4335 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
4336 of the union type to store_expr in the MEM case and assert that it
4337 isn't set in the REG case. Adjust call to store_field.
4338 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
4339 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
4340 get_inner_reference and extract_bit_field. Temporarily flip the
4341 storage order of the value with record type and integral mode and
4342 adjust the shift if it is true. Flip the storage order of the value
4343 at the end if it is true.
4344 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
4345 get_inner_reference. Do not fetch an inner reference if it is true.
4346 * expr.h (store_expr_with_bounds): Ajust prototype.
4347 (store_expr): Likewise.
4348 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
4349 REF_REVERSE_STORAGE_ORDER on the reference according to it.
4350 (optimize_bit_field_compare): Deal with reverse storage order.
4351 Adjust calls to get_inner_reference and make_bit_field_ref.
4352 (decode_field_reference): Add PREVERSEP parameter and adjust call to
4353 get_inner_reference.
4354 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
4355 to decode_field_reference and make_bit_field_ref.
4356 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
4357 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
4358 (fold_comparison): Adjust call to get_inner_reference.
4359 (split_address_to_core_and_offset): Adjust call to
4360 get_inner_reference.
4361 * gimple-expr.c (useless_type_conversion_p): Return false for array
4362 types with different TYPE_REVERSE_STORAGE_ORDER flag.
4363 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
4364 REF_REVERSE_STORAGE_ORDER flag.
4365 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
4366 * output.h (assemble_real): Adjust prototype.
4367 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
4368 * stor-layout.c (finish_record_layout): Propagate the
4369 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
4370 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
4371 (TYPE_SATURATING): Adjust.
4372 (REF_REVERSE_STORAGE_ORDER): Document.
4373 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
4374 set it to true upon encoutering a reference with reverse storage order.
4375 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
4376 * tree-inline.c (remap_gimple_op_r): Propagate the
4377 REF_REVERSE_STORAGE_ORDER flag.
4378 (copy_tree_body_r): Likewise.
4379 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
4381 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
4382 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
4383 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4384 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
4385 REF_REVERSE_STORAGE_ORDER flag.
4386 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
4387 (gimple_canonical_types_compatible_p): Likewise.
4388 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
4389 (TYPE_SATURATING): Adjust.
4390 (REF_REVERSE_STORAGE_ORDER): New flag.
4391 (reverse_storage_order_for_component_p): New inline predicate.
4392 (storage_order_barrier_p): Likewise.
4393 (get_inner_reference): Adjust prototype.
4394 * varasm.c: Include expmed.h.
4395 (assemble_variable_contents): Adjust call to output_constant.
4396 (assemble_real): Add REVERSE parameter. Flip the storage
4397 order of the value if REVERSE is true.
4398 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
4399 (assemble_constant_contents): Adjust call to output_constant.
4400 (output_constant_pool_2): Adjust call to assemble_real.
4401 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
4402 TYPE_REVERSE_STORAGE_ORDER.
4403 (initializer_constant_valid_p): Add REVERSE parameter.
4404 (output_constant): Add REVERSE parameter.
4405 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
4406 <REAL_TYPE>: Adjust call to assemble_real.
4407 <COMPLEX_TYPE>: Pass it to recursive calls.
4408 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
4409 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
4410 (struct oc_local_state): Add REVERSE field.
4411 (output_constructor_array_range): Adjust calls to output_constant.
4412 (output_constructor_regular_field): Likewise.
4413 (output_constructor_bitfield): Adjust call to output_constructor.
4414 Flip the storage order of the value if REVERSE is true.
4415 (output_constructor): Add REVERSE parameter. Set it to true for an
4416 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
4417 output_constructor_bitfield.
4418 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
4419 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
4420 * builtins.c (get_object_alignment_2): Likewise.
4421 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
4422 and get_ref_base_and_extent.
4423 * dbxout.c (dbxout_expand_expr): Likewise.
4424 * dwarf2out.c (add_var_loc_to_decl): Likewise.
4425 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
4426 (loc_list_from_tree): Likewise.
4427 (fortran_common): Likewise.
4428 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
4429 get_ref_base_and_extent.
4430 (get_base_constructor): Likewise.
4431 (fold_const_aggregate_ref_1): Likewise.
4432 * gimple-laddress.c (pass_laddress::execute): Adjust call to
4433 get_inner_reference.
4434 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
4435 get_inner_reference and bail out on reverse storage order.
4436 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
4437 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
4438 build_ref_for_offset.
4439 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
4440 get_ref_base_and_extent.
4441 (ipa_polymorphic_call_context): Likewise.
4442 (extr_type_from_vtbl_ptr_store): Likewise.
4443 (check_stmt_for_type_change): Likewise.
4444 (get_dynamic_type): Likewise.
4445 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
4446 get_ref_base_and_extent.
4447 (compute_complex_assign_jump_func): Likewise.
4448 (get_ancestor_addr_info): Likewise.
4449 (compute_known_type_jump_func): Likewise.
4450 (determine_known_aggregate_parts): Likewise.
4451 (ipa_get_adjustment_candidate): Likewise.
4452 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
4453 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
4454 (build_ref_for_offset): Adjust prototype.
4455 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
4456 get_inner_reference.
4457 * tree-affine.c (tree_to_aff_combination): Adjust call to
4458 get_inner_reference.
4459 (get_inner_reference_aff): Likewise.
4460 * tree-data-ref.c (split_constant_offset_1): Likewise.
4461 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
4462 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
4463 get_inner_reference.
4464 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
4465 (dump_access): Print new fields.
4466 (create_access): Adjust call to get_ref_base_and_extent and set the
4467 REVERSE flag according to the result.
4468 (completely_scalarize_record): Set the REVERSE flag.
4469 (scalarize_elem): Add REVERSE parameter.
4470 (build_access_from_expr_1): Preserve storage order barriers.
4471 (build_accesses_from_assign): Likewise.
4472 (build_ref_for_offset): Add REVERSE parameter and set the
4473 REF_REVERSE_STORAGE_ORDER flag accordingly.
4474 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
4475 the REF_REVERSE_STORAGE_ORDER flag if there are components.
4476 (analyze_access_subtree): Likewise.
4477 (create_artificial_child_access): Set the REVERSE flag.
4478 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
4479 (turn_representatives_into_adjustments): Propagate REVERSE flag.
4480 (ipa_sra_check_caller): Adjust call to get_inner_reference.
4481 * tree-ssa-alias.c (ao_ref_base): Adjust call to
4482 get_ref_base_and_extent.
4483 (aliasing_component_refs_p): Likewise.
4484 (stmt_kills_ref_p_1): Likewise.
4485 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4486 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
4487 Return true if reverse storage order.
4488 <BIT_FIELD_REF>: Likewise.
4489 <COMPONENT_REF>: Likewise.
4490 <ARRAY_REF>: Likewise.
4491 <ARRAY_RANGE_REF>: Likewise.
4492 (split_address_cost): Likewise. Bail out if reverse storage order.
4493 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
4494 get_inner_reference. Bail out if reverse storage order.
4495 (bswap_replace): Adjust call to get_inner_reference.
4496 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
4497 the REF_REVERSE_STORAGE_ORDER flag.
4498 <BIT_FIELD_REF>: Likewise.
4499 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
4501 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
4502 to the REF_REVERSE_STORAGE_ORDER flag.
4503 <BIT_FIELD_REF>: Likewise.
4504 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
4505 (contains_storage_order_barrier_p): New predicate.
4506 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
4507 Punt on storage order barriers if necessary.
4508 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
4509 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
4510 call to get_ref_base_and_extent.
4511 (do_structure_copy): Likewise.
4512 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
4513 get_inner_reference.
4514 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
4515 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
4516 * ubsan.c (instrument_bool_enum_load): Likewise.
4517 (instrument_object_size): Likewise.
4518 * var-tracking.c (track_expr_p): Adjust call to
4519 get_ref_base_and_extent.
4520 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
4521 get_inner_reference.
4522 * config/s390/s390.c (s390_expand_atomic): Adjust call to
4524 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
4526 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
4528 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
4530 * config/sparc/sparc.opt (mfix-at697f): Add final period.
4532 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4534 PR rtl-optimization/67864
4535 * common/config/i386/i386-common.c (ix86_option_optimization_table)
4536 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
4539 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4541 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
4544 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4546 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
4547 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
4549 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4551 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
4552 * internal-fn.c: Don't undef it here.
4553 * tree-core.h: Likewise.
4555 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4557 * builtins.c (fold_builtin_nan): Delete.
4558 (fold_builtin_memcmp): Remove case where both arguments are constant.
4559 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
4560 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
4561 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
4562 * fold-const-call.c: Include fold-const.h.
4563 (host_size_t_cst_p): New function.
4564 (build_cmp_result, fold_const_builtin_nan): Likewise.
4565 (fold_const_call_1): New function, split out from...
4566 (fold_const_call): ...here (for all three interfaces). Handle
4567 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
4569 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4571 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
4572 (fold_builtin_1): Don't call them.
4573 * fold-const-call.c: Include tm.h.
4574 (fold_const_call_ss): New variant for integer-to-integer folds.
4575 (fold_const_call): Call it.
4577 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4579 * builtins.c (fold_builtin_classify): Move constant cases to...
4580 * fold-const-call.c (fold_const_call_ss): ...here.
4582 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4584 * builtins.h (c_getstr): Move to...
4585 * fold-const.h (c_getstr): ...here.
4586 * builtins.c (c_getstr): Move to...
4587 * fold-const.c (c_getstr): ...here.
4589 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4591 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
4592 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
4594 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4596 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
4597 the dominance info; free it if we can't.
4598 (pass_call_cdce::execute): Don't free the dominance info here.
4600 2015-11-06 Jeff Law <law@redhat.com>
4602 * tree-ssa-threadedge.c (dummy_simplify): Remove.
4603 (thread_around_empty_blocks): Remove backedge_seen_p argument.
4604 If we thread to a backedge, then return false. Update recursive
4605 call to eliminate backedge_seen_p argument.
4606 (thread_through_normal_block): Remove backedge_seen_p argument.
4607 Remove backedge_seen_p argument from calls to
4608 thread_around_empty_blocks. Remove checks on backedge_seen_p.
4609 If we thread to a backedge, then return 0.
4610 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
4611 pass it to thread_through_normal_block or thread_through_empty_blocks.
4612 For joiner handling, if we see a backedge, do not try normal
4615 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4617 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
4618 * graphite-poly.c (new_scop): Initialize original_schedule.
4619 (free_scop): Free original_schedule.
4620 * graphite-poly.h (struct scop): Add field original_schedule.
4621 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
4622 (build_poly_scop): Call build_scop_original_schedule.
4624 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4626 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
4627 (build_pbb_minimal_scattering_polyhedrons): New.
4628 (build_scop_scattering): Remove.
4629 (build_scop_minimal_scattering): New.
4630 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
4631 (build_poly_scop): Call build_scop_minimal_scattering.
4633 2015-11-06 Jeff Law <law@redhat.com>
4635 * cfg-flags.def (IGNORE): New edge flag.
4636 * tree-vrp.c (identify_jump_threads): Mark and clear edges
4637 scheduled for removal with EDGE_IGNORE around call into
4638 jump threader. Do no thread across edges with EDGE_IGNORE,
4639 but do allow threading across those with EDGE_DFS_BACK.
4641 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
4643 * doc/md.texi (multi-alternative constraints): Don't document
4644 alternatives inherently tied to reload for the user documentation.
4646 2015-11-06 Michael Collison <michael.collison@linaro.org>
4647 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4650 2015-08-01 Michael Collison <michael.collison@linaro.org
4651 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4653 * config/arm/arm.md (*arm_smin_cmp): New pattern.
4654 (*arm_umin_cmp): Likewise.
4656 2015-11-06 Jakub Jelinek <jakub@redhat.com>
4658 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
4659 * omp-low.c (check_omp_nesting_restrictions): Update for the
4660 various new OpenMP 4.5 nesting restrictions, clarified
4661 nesting glossary, closely nested region relationship clarified
4662 to mean explicit or implicit parallel regions (target/teams),
4663 use %</%> or %qs where appropriate.
4665 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4666 Sebastian Pop <s.pop@samsung.com>
4668 * graphite-scop-detection.c (loop_is_valid_scop): Call
4669 optimize_loop_nest_for_speed_p.
4671 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4672 Sebastian Pop <s.pop@samsung.com>
4674 * graphite-optimize-isl.c (optimize_isl): Call
4675 isl_options_set_schedule_maximize_band_depth.
4677 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4678 Sebastian Pop <s.pop@samsung.com>
4680 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
4681 and exit edges should not be a part of irreducible loop.
4682 (scop_detection::can_represent_loop_1): Loops should not be
4684 (scop_detection::harmful_stmt_in_region): All the basic block
4685 should belong to reducible loops.
4687 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
4689 * config/aarch64/aarch64-simd-builtins.def: Update builtins
4690 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
4691 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
4692 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
4693 (aarch64_tbx4v8qi): Rename to...
4694 aarch64_tbx4<mode>): ... this.
4695 (aarch64_qtbl3<mode>): New pattern.
4696 (aarch64_qtbx3<mode>): New pattern.
4697 (aarch64_qtbl4<mode>): New pattern.
4698 (aarch64_qtbx4<mode>): New pattern.
4699 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
4700 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
4701 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
4702 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
4703 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
4704 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
4705 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
4706 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
4709 2015-11-06 Mike Stump <mikestump@comcast.net>
4712 * dwarf2out.c (get_full_len): Return a value based upon the actual
4713 precision needed for the value.
4714 (add_const_value_attribute): Use a maximal wide-int for
4715 CONST_WIDE_INTs, not VOIDmode.
4716 (output_die): Don't ever output NULL with printf.
4718 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
4719 BLKmode nor VOIDmode values.
4721 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4723 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
4725 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
4726 * diagnostic-core.h (warning_at_rich_loc): New declaration.
4727 (error_at_rich_loc): New declaration.
4728 (permerror_at_rich_loc): New declaration.
4729 (inform_at_rich_loc): New declaration.
4730 * diagnostic-show-locus.c (adjust_line): Delete.
4731 (struct point_state): New struct.
4732 (class colorizer): New class.
4733 (class layout_point): New class.
4734 (class layout_range): New class.
4735 (struct line_bounds): New.
4736 (class layout): New class.
4737 (colorizer::colorizer): New ctor.
4738 (colorizer::~colorizer): New dtor.
4739 (layout::layout): New ctor.
4740 (layout::print_source_line): New method.
4741 (layout::print_annotation_line): New method.
4742 (layout::get_state_at_point): New method.
4743 (layout::get_x_bound_for_row): New method.
4744 (diagnostic_show_locus): Reimplement in terms of class layout.
4745 (diagnostic_print_caret_line): Delete.
4746 * diagnostic.c (diagnostic_initialize): Replace
4747 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
4748 (diagnostic_set_info_translated): Convert param from location_t
4749 to rich_location *. Eliminate calls to set_location on the
4750 message in favor of storing the rich_location ptr there.
4751 (diagnostic_set_info): Convert param from location_t to
4753 (diagnostic_build_prefix): Break out array into...
4754 (diagnostic_kind_color): New variable.
4755 (diagnostic_get_color_for_kind): New function.
4756 (diagnostic_report_diagnostic): Colorize the option_text
4757 using the color for the severity.
4758 (diagnostic_append_note): Update for change in signature of
4759 diagnostic_set_info.
4760 (diagnostic_append_note_at_rich_loc): New function.
4761 (emit_diagnostic): Update for change in signature of
4762 diagnostic_set_info.
4764 (inform_at_rich_loc): New function.
4765 (inform_n): Update for change in signature of diagnostic_set_info.
4766 (warning): Likewise.
4767 (warning_at): Likewise.
4768 (warning_at_rich_loc): New function.
4769 (warning_n): Update for change in signature of diagnostic_set_info.
4770 (pedwarn): Likewise.
4771 (permerror): Likewise.
4772 (permerror_at_rich_loc): New function.
4773 (error): Update for change in signature of diagnostic_set_info.
4774 (error_n): Likewise.
4775 (error_at): Likewise.
4776 (error_at_rich_loc): New function.
4777 (sorry): Update for change in signature of diagnostic_set_info.
4778 (fatal_error): Likewise.
4779 (internal_error): Likewise.
4780 (internal_error_no_backtrace): Likewise.
4781 (source_range::debug): New function.
4782 * diagnostic.h (struct diagnostic_info): Eliminate field
4783 "override_column". Add field "richloc".
4784 (struct diagnostic_context): Add field "colorize_source_p".
4785 (diagnostic_override_column): Delete.
4786 (diagnostic_set_info): Convert param from location_t to
4788 (diagnostic_set_info_translated): Likewise.
4789 (diagnostic_append_note_at_rich_loc): New function.
4790 (diagnostic_num_locations): New function.
4791 (diagnostic_expand_location): Get the location from the
4793 (diagnostic_print_caret_line): Delete.
4794 (diagnostic_get_color_for_kind): New declaration.
4795 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
4796 (error_cb): Update for change in signature of "error" callback.
4797 (fatal_at): Likewise.
4798 (warning_at): Likewise.
4799 * input.c (linemap_client_expand_location_to_spelling_point): New.
4800 * pretty-print.c (text_info::set_range): New method.
4801 (text_info::get_location): New method.
4802 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
4803 (struct text_info): Eliminate "locations" array in favor of
4804 "m_richloc", a rich_location *.
4805 (textinfo::set_location): Add a "caret_p" param, and reimplement
4806 in terms of a call to set_range.
4807 (textinfo::get_location): Eliminate inline implementation in favor of
4808 an out-of-line reimplementation.
4809 (textinfo::set_range): New method.
4810 * rtl-error.c (diagnostic_for_asm): Update for change in signature
4811 of diagnostic_set_info.
4812 * tree-diagnostic.c (default_tree_printer): Update for new
4813 "caret_p" param for textinfo::set_location.
4814 * tree-pretty-print.c (percent_K_format): Likewise.
4816 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4819 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4820 * config/aarch64/aarch64.c
4821 (aarch64_can_use_per_function_literal_pools_p): New.
4822 (aarch64_use_blocks_for_constant_p): Adjust declaration
4823 and use aarch64_can_use_function_literal_pools_p.
4824 (aarch64_select_rtx_section): Update.
4826 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4828 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
4829 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
4830 (arm_output_multireg_pop): Likewise.
4831 (output_move_double): Likewise.
4832 (output_move_quad): Likewise.
4833 (output_return_instruction): Likewise.
4834 (arm_print_operand): Remove support for %( and %. print modifiers.
4835 (arm_output_shift): Make unified asm.
4836 (arm_declare_function_name): Likewise.
4837 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
4838 (ASM_APP_OFF): Adjust.
4839 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
4840 (ASM_OUTPUT_REG_POP): Likewise.
4841 * config/arm/arm.md: Adjust uses of %., %(, %)
4842 * config/arm/sync.md: Likewise.
4843 * config/arm/thumb2.md: Likewise.
4844 * config/arm/ldmstm.md: Regenerate.
4845 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
4846 * doc/invoke.texi (masm-unified-syntax): Update documentation.
4848 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4850 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
4852 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4854 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
4855 add OEP_MATCH_SIDE_EFFECTS.
4856 * fold-const.c (operand_equal_p): Update documentation; handle
4857 OEP_MATCH_SIDE_EFFECTS.
4858 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
4859 OEP_MATCH_SIDE_EFFECTS.
4861 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
4862 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4864 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
4865 * config/aarch64/aarch64-protos.h: Declare.
4866 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
4868 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
4869 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
4870 code when applicable.
4871 * config/aarch64/aarch64.md: Added enum entries.
4872 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
4874 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4878 * ipa-polymorphic-call.c
4879 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
4880 issue when offset is out of range.
4881 (contains_type_p): Fix out of range check, clear dynamic flag.
4883 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
4885 * config.gcc (e6500): Fix cpu_is_64bit typo.
4887 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
4889 * tree-sra.c (completely_scalarize): Properly handle negative array
4890 indices using offset_int.
4892 2015-11-06 Richard Biener <rguenther@suse.de>
4894 * alloc-pool.h (object_allocator::allocate): Default-initialize
4897 2015-11-06 Richard Biener <rguenther@suse.de>
4899 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
4900 * lra.c (init_reg_info): Truncate copy_vec instead of
4901 re-allocating a new one and leaking the old.
4902 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
4904 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
4905 * postreload-gcse.c (free_mem): Free modify_mem_list and
4906 canon_modify_mem_list.
4908 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
4910 PR tree-optimization/68145
4911 * tree-vect-stmts.c (vectorizable_operation): Fix
4912 determination for booleans.
4914 2015-11-06 Tom de Vries <tom@codesourcery.com>
4916 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
4917 cond_jump, instead of split after last nondebug insn before cond_jump.
4918 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
4921 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4924 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
4925 subregs from accumulator and make sure it's a register.
4927 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
4929 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
4931 (reduc_uplus_<mode>): Remove.
4932 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
4933 loongson_extract_lo_<mode>.
4934 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
4935 reduc_smax_<mode>, reduc_smax_<mode>, use vec
4936 loongson_extract_lo_<mode>.
4937 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
4939 2015-11-06 Richard Biener <rguenther@suse.de>
4941 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
4943 (vect_stmt_in_region_p): Declare.
4944 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
4945 (destroy_bb_vec_info): Likewise.
4946 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
4947 (vect_get_and_check_slp_defs): Likewise.
4948 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
4949 (vect_slp_bb): Likewise.
4950 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
4951 in terms of vect_stmt_in_region_p.
4952 (vect_pattern_recog): Iterate over the BB region.
4953 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
4954 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
4955 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
4956 * config/i386/i386.c: Include gimple-iterator.h.
4957 * config/aarch64/aarch64.c: Likewise.
4959 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
4961 PR rtl-optimization/67753
4962 PR rtl-optimization/64164
4963 * function.c (assign_parm_setup_block): Avoid allocating a
4964 stack slot if we don't have an ABI-reserved one. Emit the
4965 copy to target_reg in the conversion seq if the copy from
4966 entry_parm is in it too. Don't use the conversion seq to copy
4967 a PARALLEL to a REG or a CONCAT.
4969 2015-11-06 Richard Biener <rguenther@suse.de>
4971 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
4974 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
4975 Thomas Schwinge <thomas@codesourcery.com>
4976 James Norris <jnorris@codesourcery.com>
4979 * gimplify.c (gimplify_scan_omp_clauses): Add support for
4980 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
4981 (gimplify_adjust_omp_clauses): Likewise.
4982 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
4983 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
4984 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
4985 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
4986 (omp_clause_code_name): Likewise.
4987 (walk_tree_1): Handle OMP_CLAUSE_TILE.
4988 * tree.h (OMP_TILE_LIST): New macro.
4990 2015-11-05 Martin Sebor <msebor@redhat.com>
4993 * doc/invoke.texi (-Wplacement-new): Document new option.
4995 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
4997 PR tree-optimization/65963
4998 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
4999 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
5001 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
5003 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
5004 (noce_convert_multiple_sets): Likewise.
5005 (noce_process_if_block): Call them.
5007 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
5009 * gimple-fold.c: Include omp-low.h.
5010 (fold_internal_goacc_dim): New.
5011 (gimple_fold_call): Call it.
5013 2015-11-05 Jakub Jelinek <jakub@redhat.com>
5014 Ilya Verbin <ilya.verbin@intel.com>
5017 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
5018 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
5019 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
5020 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
5021 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
5022 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
5023 (struct cgraph_simd_clone_arg): Adjust comment.
5024 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
5025 to GOMP_target_ext. Add num_teams and thread_limit arguments.
5026 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
5027 to GOMP_target_data_ext.
5028 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
5029 to GOMP_target_update_ext.
5030 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
5031 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
5032 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
5033 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
5034 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
5035 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
5036 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
5037 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
5038 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
5039 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
5040 * tree-core.h (enum omp_clause_schedule_kind): Add
5041 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
5042 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
5043 OMP_CLAUSE_SCHEDULE_LAST value.
5044 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
5045 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
5046 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
5047 OMP_FOR_CHECK. Remove comment.
5048 * tree-pretty-print.c (dump_omp_clause): Handle
5049 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
5050 Simplify. Print schedule clause modifiers.
5051 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
5052 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
5054 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
5055 (omp_default_clause): Tweak for
5056 private/firstprivate/is_device_ptr variables on target
5057 construct and use_device_ptr on target data.
5058 (omp_check_private): Likewise.
5059 (omp_notice_variable): For references check whether what it refers
5060 to has mappable type, rather than the reference itself.
5061 (omp_is_private): Diagnose linear iteration variables on non-simd
5063 (omp_no_lastprivate): Return true only for Fortran.
5064 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
5065 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
5066 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
5067 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
5068 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
5069 lastprivate and linear when combined with distribute. Gimplify
5070 variable low-bound for array reduction. Look through
5071 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
5073 (gimplify_adjust_omp_clauses_1): For implicit references to
5074 variables with reference type and when not ref to scalar or
5075 ref to pointer, map what they refer to using tofrom and
5076 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
5077 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
5078 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
5079 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
5080 Diagnose the same var on both firstprivate and lastprivate on
5081 distribute construct.
5082 (gimplify_omp_for): Fix up handling of predetermined
5083 lastprivate or linear iter vars when combined with distribute.
5084 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
5086 (gimplify_omp_workshare): Call optimize_target_teams.
5087 * omp-low.c (struct omp_region): Add sched_modifiers field.
5088 (struct omp_for_data): Likewise.
5089 (omp_any_child_fn_dumped): New variable.
5090 (extract_omp_for_data): Fill in sched_modifiers, and mask out
5091 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
5093 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
5094 bits of OMP_CLAUSE_SCHED_KIND.
5095 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
5096 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
5097 for array section reductions.
5098 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
5099 for distribute parallel for, if there are lastprivate clauses on the
5101 (lower_rec_input_clauses): Handle non-zero low-bound on array
5103 (lower_reduction_clauses): Likewise.
5104 (lower_send_clauses): Look through POINTER_PLUS_EXPR
5105 for array section reductions.
5106 (expand_parallel_call): Use nonmonotonic entrypoints for
5107 nonmonotonic: dynamic/guided.
5108 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
5109 child_fn if current_function_decl has assembler name set, but child_fn
5110 does not. Dump the header and IL of the child function when not in SSA
5112 (expand_omp_target): Likewise. Pass num_teams and thread_limit
5113 arguments to BUILT_IN_GOMP_TARGET.
5114 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5115 Initialize the extra _looptemp_ clause to fd->loop.n2.
5116 (expand_omp_for): Use nonmonotonic entrypoints for
5117 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
5118 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
5119 again if we have dumped any child functions.
5120 (lower_omp_for_lastprivate): Determine the right count variable
5121 for distribute simd, or distribute parallel for{, simd}.
5122 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
5123 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
5125 (simd_clone_clauses_extract): Handle variable step
5126 for references and arguments passed by reference.
5127 (simd_clone_mangle): Mangle ref/uval/val variable steps.
5128 (simd_clone_adjust_argument_types): Handle
5129 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
5130 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
5131 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
5132 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
5133 (simd_clone_linear_addend): New function.
5134 (simd_clone_adjust): Handle variable step like similarly
5135 to constant step, use simd_clone_linear_addend to determine
5136 the actual step at runtime.
5138 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
5140 * target.def (goacc.dim_limit): New hook.
5141 * targhooks.h (default_goacc_dim_limit): Declare.
5142 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
5143 * doc/tm.texi: Rebuilt.
5144 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
5145 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
5146 (default_goacc_dim_limit): New.
5147 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5148 (nvptx_goacc_dim_limit) New.
5149 (TARGET_GOACC_DIM_LIMIT): Override.
5150 * tree-vrp.c: Include omp-low.h, target.h.
5151 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
5154 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
5156 * tree-vect-generic.c (do_compare): Use -1 for true
5157 result instead of 1.
5159 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5161 * config/aarch64/aarch64.c
5162 (aarch64_can_use_per_function_literal_pools_p): New.
5163 (aarch64_use_blocks_for_constant_p): Adjust declaration
5164 and use aarch64_can_use_function_literal_pools_p.
5165 (aarch64_select_rtx_section): Update.
5167 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
5169 * targhooks.c (default_get_mask_mode): Use BLKmode in
5170 case target doesn't support required vector mode.
5171 * stor-layout.c (layout_type); Check for BLKmode.
5173 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
5174 Sebastian Pop <s.pop@samsung.com>
5176 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5177 Remove use of parameter_rename_map.
5179 (copy_internal_parameters): Remove.
5180 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
5181 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
5182 (free_sese_info): Do not free parameter_rename_map.
5183 (set_rename): Do not use parameter_rename_map.
5184 (rename_uses): Update call to set_rename.
5185 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
5186 * sese.h (parameter_rename_map_t): Remove.
5187 (struct sese_info_t): Remove field parameter_rename_map.
5189 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
5190 Sebastian Pop <s.pop@samsung.com>
5192 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
5193 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
5194 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
5195 anonymous namespace.
5196 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
5197 (isl_id_for_pbb): Use a buffer of size 10.
5198 (isl_id_for_ssa_name): Same.
5199 * sese.c (set_rename): Add more dumps.
5201 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5203 * omp-low.c (struct omp_context): Remove reduction_map field.
5204 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
5205 (new_omp_context, delete_omp_context, scan_omp_target): Remove
5206 reduction_map handling.
5207 (lower_omp_target): Remove obsolete openacc reduction handling.
5209 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5211 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
5213 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5214 Cesar Philippidis <cesar@codesourcery.com>
5216 * config/nvptx/nvptx.c: Include gimple headers.
5217 (worker_red_size, worker_red_align, worker_red_name,
5218 worker_red_sym): New.
5219 (nvptx_option_override): Initialize worker reduction buffer.
5220 (nvptx_file_end): Write out worker reduction buffer var.
5221 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
5222 nvptx_expand_cmp_swap): New builtin expanders.
5223 (enum nvptx_builtins): New.
5224 (nvptx_builtin_decls): New.
5225 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
5226 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5227 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
5228 nvptx_lockless_update): New helpers.
5229 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
5230 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
5231 (nvptx_goacc_reduction): New.
5232 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
5233 TARGET_BUILTIN_DECL): Override.
5234 (TARGET_GOACC_REDUCTION): Override.
5236 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5237 Cesar Philippidis <cesar@codesourcery.com>
5239 * internal-fn.def (GOACC_REDUCTION): New.
5240 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
5241 * internal-fn.c (expand_GOACC_REDUCTION): New.
5242 * target.def (goacc.reduction): New OpenACC hook.
5243 * targhooks.h (default_goacc_reduction): Declare.
5244 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
5245 * doc/tm.texi: Rebuilt.
5246 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
5247 scan_sharing_clauses): Remove oacc reduction handling here.
5248 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
5249 (oacc_lower_reduction_var_helper): Delete.
5250 (lower_oacc_reductions): New.
5251 (lower_reduction_clauses): Don't handle OpenACC reductions here.
5252 (lower_oacc_head_tail): Call lower_oacc_reductions.
5253 (oacc_gimple_assign, oacc_init_reduction_array,
5254 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
5255 oacc_process_reduction_data): Delete.
5256 (lower_omp_target): Remove old OpenACC reduction handling. Insert
5257 dummy OpenACC gang reduction for reductions at outer level.
5258 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
5259 (default_goacc_reduction): New.
5260 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
5262 2015-11-04 Martin Liska <mliska@suse.cz>
5264 * cgraphunit.c (cgraph_node::expand_thunk): Call
5265 allocate_struct_function before init_function_start.
5266 (cgraph_node::expand): Use push_cfun and pop_cfun.
5267 * config/i386/i386.c (ix86_code_end): Call
5268 allocate_struct_function before init_function_start.
5269 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
5270 * function.c (init_function_start): Move preamble to all
5272 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
5273 (execute_one_pass): Handle newly added TODO_discard_function.
5274 (execute_pass_list_1): Terminate if cfun equals to NULL.
5275 (execute_pass_list): Do not push and pop cfun, expect that
5277 * tree-pass.h (TODO_discard_function): Define.
5279 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
5281 * cfganal.c (inverted_post_order_compute): Remove conditional
5282 compilation, use flag_checking.
5283 * config.in: Regenerate.
5284 * configure: Regenerate.
5285 * configure.ac: Remove ENABLE_CHECKING.
5286 * genconditions.c: Do not #undef ENABLE_CHECKING.
5287 * sese.h (bb_in_region): Comment out broken check.
5288 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
5289 conditional compilation, use flag_checking.
5291 2015-11-04 Tom de Vries <tom@codesourcery.com>
5293 PR tree-optimization/67742
5294 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
5296 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
5297 (create_variable_info_for_1): Add and handle handle_param parameter.
5298 Add restrict handling.
5299 (create_variable_info_for): Call create_variable_info_for_1 with extra
5301 (make_param_constraints): Drop restrict_name parameter. Ignore
5302 vi->only_restrict_pointers.
5303 (intra_create_variable_infos): Call create_variable_info_for_1 with
5304 extra arg. Remove restrict handling. Call make_param_constraints with
5307 2015-11-04 Tom de Vries <tom@codesourcery.com>
5309 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
5312 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5314 * config/arm/coff.h: Remove.
5316 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
5318 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
5319 check for aggregate types and beef up comment for mode check.
5321 2015-11-03 Richard Biener <rguenther@suse.de>
5323 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
5324 data references here.
5325 * tree-vect-loop.c: Include cgraph.h.
5326 (vect_analyze_loop_2): Collect data references here.
5327 * tree-vect-slp.c (find_bb_location): Inline ...
5328 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
5329 Factor in vect_slp_transform_bb.
5330 (vect_slp_transform_bb): Removed.
5331 (vect_slp_analyze_bb_1): Collect data references here.
5332 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
5334 * tree-vectorizer.h (vect_slp_bb): Declare.
5335 (vect_slp_analyze_bb): Remove.
5336 (vect_slp_transform_bb): Remove.
5337 (find_bb_location): Remove.
5338 (vect_analyze_data_refs): Remove stmt count reference parameter.
5340 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
5342 * multiple_target.c (create_dispatcher_calls): Add target check
5344 (create_target_clone): Change assembler name for versioned declarations.
5346 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
5347 Chung-Lin Tang <cltang@codesourcery.com>
5349 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
5350 * omp-low.c (check_omp_nesting_restrictions): Allow
5351 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
5354 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
5356 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
5357 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
5358 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
5360 (vmulxq_f32): Likewise.
5362 (vmulxq_f64): Rewrite to call fmulx builtin.
5363 (vmulxs_f32): Likewise.
5364 (vmulxd_f64): Likewise.
5365 (vmulx_lane_f32): Remove.
5366 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
5368 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
5370 * config/aarch64/aarch64.md (*movhf_aarch64): Use
5371 aarch64_reg_or_fp_zero for second operand.
5373 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
5375 * gimple-expr.c: Include hash-set.h and rtl.h.
5376 (mark_addressable_queue): New var.
5377 (mark_addressable): Factor actual marking into...
5378 (mark_addressable_1): ... this. Queue it up during expand.
5379 (mark_addressable_2): New.
5380 (flush_mark_addressable_queue): New.
5381 * gimple-expr.h (flush_mark_addressable_queue): Declare.
5382 * cfgexpand.c: Include gimple-expr.h.
5383 (pass_expand::execute): Flush mark_addressable queue.
5385 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
5387 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
5388 bb_no_side_effects_p tests...
5389 (tree_ssa_ifcombine_bb): ... here.
5391 PR tree-optimization/68083
5392 * tree-ssa-ifcombine.c: Include tree-ssa.h.
5393 (bb_no_side_effects_p): Test for undefined uses too.
5394 * tree-ssa.c (gimple_uses_undefined_value_p): New.
5395 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
5397 2015-11-02 Jeff Law <law@redhat.com>
5399 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
5400 cases where the loop latch edge is in the middle of an FSM path.
5402 2015-11-03 Tom de Vries <tom@codesourcery.com>
5404 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
5405 (make_param_constraints): ... this. Add and handle restrict_name
5406 parameter. Handle is_full_var case.
5407 (intra_create_variable_infos): Use make_param_constraints.
5409 2015-11-03 Tom de Vries <tom@codesourcery.com>
5411 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
5412 make_copy_constraint call with make_constraint_from call.
5414 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
5416 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
5419 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
5421 * builtins.h (fold_fma): Move to fold-const-call.h.
5422 * builtins.c: Include fold-const-call.h.
5423 (mathfn_built_in_2): New function, split out from...
5424 (mathfn_built_in_1): ...here.
5425 (do_real_to_int_conversion, fold_const_builtin_pow)
5426 (fold_const_builtin_logb, fold_const_builtin_significand)
5427 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
5428 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
5429 (fold_builtin_sincos): Use fold_const_call to handle constants.
5430 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
5431 checks for ERROR_MARK. Use fold_const_call to handle constant
5432 folds for math functions.
5433 (fold_fma): Move to fold-const-call.c.
5434 * fold-const.c: Include fold-const-call.h.
5435 * Makefile.in (OBJS): Add fold-const-call.o.
5436 (PLUGIN_HEADERS): Add fold-const-call.h.
5437 * realmpfr.h (real_from_mpfr): Allow the format to be specified
5439 * realmpfr.c (real_from_mpfr): Likewise.
5440 * fold-const-call.h, fold-const-call.c: New files.
5442 2015-11-02 Julian Brown <julian@codesourcery.com>
5444 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
5445 brackets and semicolon.
5447 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
5450 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
5452 PR tree-optimization/65963
5453 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
5454 LSHIFT_EXPRs as equivalent MULT_EXPRs.
5456 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
5459 * fold-const.c: Include "md5.h".
5461 2015-11-01 Jeff Law <law@redhat.com>
5463 * vmsdbgout.c: Revert unused header file reduction patch.
5465 * config/mcore/mcore.c: Include regs.h.
5467 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
5469 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
5471 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
5473 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
5474 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
5475 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
5477 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
5479 * ggc-common.c: Restore needed header for checking=release.
5481 2015-10-31 Tom de Vries <tom@codesourcery.com>
5483 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
5485 2015-10-31 Tom de Vries <tom@codesourcery.com>
5487 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
5488 existing varinfo for arguments.
5490 2015-10-31 Tom de Vries <tom@codesourcery.com>
5492 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
5493 create_function_info_for. Dump constraints generated during
5494 create_function_info_for. Move intra_create_variable_infos call and
5495 function-return-values-escape bit to ...
5496 (create_function_info_for): ... here, and merge
5497 intra_create_variable_infos call with argument loop. Add and handle
5498 nonlocal_p parameter.
5500 2015-10-31 Tom de Vries <tom@codesourcery.com>
5502 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
5503 updating is alap, and seperated from preceding code. Make sure
5504 insert_vi_for_tree is seperated from surrounding code.
5506 2015-10-31 Tom de Vries <tom@codesourcery.com>
5508 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
5510 2015-10-30 Jeff Law <law@redhat.com>
5511 Nathan Sidwell <nathan@acm.org>
5513 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
5515 (MOVE_MAX): Set to 8.
5517 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
5519 * cgraph.c: Include context.h for offloading.
5520 * varpool.c: Include context.h and omp-low.h.
5522 2015-10-30 Anatoly Sokolov <aesok@post.ru>
5524 * rtl.h (contains_symbol_ref_p): Declare.
5525 (SYMBOL_REF_P): Define.
5526 * rtlanal.c (contains_symbol_ref_p: New function.
5527 * lra-constraints.c (contains_symbol_ref_p): Remove.
5528 * var-tracking.c (contains_symbol_ref): Remove.
5529 (track_expr_p): Use contains_symbol_ref_p instead of
5530 contains_symbol_ref.
5532 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
5534 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
5535 * fold-const.c (get_array_ctor_element_at_index): New.
5536 (fold): Remove binary-search through CONSTRUCTOR, call previous.
5538 * fold-const.h (get_array_ctor_element_at_index): New.
5540 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
5542 * Makefile.in (OBJS): Add multiple_target.o.
5543 * attrib.c (make_attribute): Moved from config/i386/i386.c
5544 * config/i386/i386.c (make_attribute): Deleted.
5545 * multiple_target.c (create_dispatcher_calls): New.
5546 (get_attr_len): Ditto.
5547 (get_attr_str): Ditto.
5548 (separate_attrs): Ditto.
5549 (is_valid_asm_symbol): Ditto.
5550 (create_new_asm_name): Ditto.
5551 (create_target_clone): Ditto.
5552 (expand_target_clones): Ditto.
5553 (ipa_target_clone): Ditto.
5554 (ipa_dispatcher_calls): Ditto.
5555 * passes.def (pass_target_clone): Two new ipa passes.
5556 * tree-pass.h (make_pass_target_clone): Ditto.
5557 * doc/extend.texi (target_clones): New attribute description.
5559 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
5561 PR rtl-optimization/68106
5562 * lra-remat.c (input_regno_present_p): Process hard regs
5563 explicitly present in machine description insns.
5564 (call_used_input_regno_present_p): Ditto.
5565 (calculate_gen_cands): Ditto.
5568 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
5570 * config/arm/neon-testgen.ml: Fix comment typo.
5572 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5574 * rtlanal.c (reg_set_p): Expand function comment.
5576 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
5578 * alias.c: Remove unused headers.
5580 * attribs.c: Likewise.
5581 * auto-inc-dec.c: Likewise.
5582 * auto-profile.c: Likewise.
5583 * bb-reorder.c: Likewise.
5584 * bitmap.c: Likewise.
5585 * bt-load.c: Likewise.
5586 * builtins.c: Likewise.
5587 * caller-save.c: Likewise.
5588 * calls.c: Likewise.
5591 * cfganal.c: Likewise.
5592 * cfgbuild.c: Likewise.
5593 * cfgcleanup.c: Likewise.
5594 * cfgexpand.c: Likewise.
5595 * cfghooks.c: Likewise.
5596 * cfgloop.c: Likewise.
5597 * cfgloopanal.c: Likewise.
5598 * cfgloopmanip.c: Likewise.
5599 * cfgrtl.c: Likewise.
5600 * cgraph.c: Likewise.
5601 * cgraphbuild.c: Likewise.
5602 * cgraphclones.c: Likewise.
5603 * cgraphunit.c: Likewise.
5604 * cilk-common.c: Likewise.
5605 * combine-stack-adj.c: Likewise.
5606 * combine.c: Likewise.
5607 * compare-elim.c: Likewise.
5608 * convert.c: Likewise.
5609 * coverage.c: Likewise.
5610 * cppbuiltin.c: Likewise.
5611 * cprop.c: Likewise.
5613 * cselib.c: Likewise.
5614 * data-streamer-in.c: Likewise.
5615 * data-streamer-out.c: Likewise.
5616 * data-streamer.c: Likewise.
5617 * dbxout.c: Likewise.
5620 * debug.c: Likewise.
5621 * df-core.c: Likewise.
5622 * df-problems.c: Likewise.
5623 * df-scan.c: Likewise.
5625 * dojump.c: Likewise.
5626 * dominance.c: Likewise.
5627 * domwalk.c: Likewise.
5628 * double-int.c: Likewise.
5630 * dumpfile.c: Likewise.
5631 * dwarf2asm.c: Likewise.
5632 * dwarf2cfi.c: Likewise.
5633 * dwarf2out.c: Likewise.
5634 * emit-rtl.c: Likewise.
5635 * except.c: Likewise.
5636 * explow.c: Likewise.
5637 * expmed.c: Likewise.
5639 * final.c: Likewise.
5640 * fixed-value.c: Likewise.
5641 * fold-const.c: Likewise.
5642 * function.c: Likewise.
5643 * fwprop.c: Likewise.
5645 * generic-match-head.c: Likewise.
5646 * ggc-common.c: Likewise.
5647 * gimple-builder.c: Likewise.
5648 * gimple-expr.c: Likewise.
5649 * gimple-fold.c: Likewise.
5650 * gimple-iterator.c: Likewise.
5651 * gimple-low.c: Likewise.
5652 * gimple-match-head.c: Likewise.
5653 * gimple-pretty-print.c: Likewise.
5654 * gimple-ssa-isolate-paths.c: Likewise.
5655 * gimple-ssa-strength-reduction.c: Likewise.
5656 * gimple-streamer-in.c: Likewise.
5657 * gimple-streamer-out.c: Likewise.
5658 * gimple-walk.c: Likewise.
5659 * gimple.c: Likewise.
5660 * gimplify-me.c: Likewise.
5661 * gimplify.c: Likewise.
5662 * godump.c: Likewise.
5663 * graph.c: Likewise.
5664 * graphds.c: Likewise.
5665 * haifa-sched.c: Likewise.
5666 * hw-doloop.c: Likewise.
5667 * ifcvt.c: Likewise.
5668 * init-regs.c: Likewise.
5669 * internal-fn.c: Likewise.
5670 * ipa-chkp.c: Likewise.
5671 * ipa-comdats.c: Likewise.
5672 * ipa-cp.c: Likewise.
5673 * ipa-devirt.c: Likewise.
5674 * ipa-icf-gimple.c: Likewise.
5675 * ipa-icf.c: Likewise.
5676 * ipa-inline-analysis.c: Likewise.
5677 * ipa-inline-transform.c: Likewise.
5678 * ipa-inline.c: Likewise.
5679 * ipa-polymorphic-call.c: Likewise.
5680 * ipa-profile.c: Likewise.
5681 * ipa-prop.c: Likewise.
5682 * ipa-pure-const.c: Likewise.
5683 * ipa-ref.c: Likewise.
5684 * ipa-reference.c: Likewise.
5685 * ipa-split.c: Likewise.
5686 * ipa-utils.c: Likewise.
5687 * ipa-visibility.c: Likewise.
5689 * ira-build.c: Likewise.
5690 * ira-color.c: Likewise.
5691 * ira-conflicts.c: Likewise.
5692 * ira-costs.c: Likewise.
5693 * ira-emit.c: Likewise.
5694 * ira-lives.c: Likewise.
5697 * langhooks.c: Likewise.
5699 * lists.c: Likewise.
5700 * loop-doloop.c: Likewise.
5701 * loop-init.c: Likewise.
5702 * loop-invariant.c: Likewise.
5703 * loop-iv.c: Likewise.
5704 * loop-unroll.c: Likewise.
5705 * lower-subreg.c: Likewise.
5706 * lra-assigns.c: Likewise.
5707 * lra-coalesce.c: Likewise.
5708 * lra-constraints.c: Likewise.
5709 * lra-eliminations.c: Likewise.
5710 * lra-lives.c: Likewise.
5711 * lra-remat.c: Likewise.
5712 * lra-spills.c: Likewise.
5714 * lto-cgraph.c: Likewise.
5715 * lto-compress.c: Likewise.
5716 * lto-opts.c: Likewise.
5717 * lto-section-in.c: Likewise.
5718 * lto-section-out.c: Likewise.
5719 * lto-streamer-in.c: Likewise.
5720 * lto-streamer-out.c: Likewise.
5721 * lto-streamer.c: Likewise.
5723 * mode-switching.c: Likewise.
5724 * modulo-sched.c: Likewise.
5725 * optabs.c: Likewise.
5726 * opts-global.c: Likewise.
5727 * passes.c: Likewise.
5728 * plugin.c: Likewise.
5729 * postreload-gcse.c: Likewise.
5730 * postreload.c: Likewise.
5731 * predict.c: Likewise.
5732 * print-tree.c: Likewise.
5733 * profile.c: Likewise.
5735 * realmpfr.c: Likewise.
5736 * recog.c: Likewise.
5738 * reg-stack.c: Likewise.
5739 * regcprop.c: Likewise.
5740 * reginfo.c: Likewise.
5741 * regrename.c: Likewise.
5742 * regstat.c: Likewise.
5743 * reload.c: Likewise.
5744 * reload1.c: Likewise.
5745 * reorg.c: Likewise.
5746 * resource.c: Likewise.
5747 * rtl-chkp.c: Likewise.
5748 * rtl-error.c: Likewise.
5749 * rtlanal.c: Likewise.
5750 * rtlhooks.c: Likewise.
5751 * sanopt.c: Likewise.
5752 * sched-deps.c: Likewise.
5753 * sched-ebb.c: Likewise.
5754 * sched-rgn.c: Likewise.
5755 * sdbout.c: Likewise.
5756 * sel-sched-dump.c: Likewise.
5757 * sel-sched-ir.c: Likewise.
5758 * sel-sched.c: Likewise.
5760 * shrink-wrap.c: Likewise.
5761 * simplify-rtx.c: Likewise.
5762 * stack-ptr-mod.c: Likewise.
5763 * statistics.c: Likewise.
5765 * stor-layout.c: Likewise.
5766 * store-motion.c: Likewise.
5767 * stringpool.c: Likewise.
5768 * symtab.c: Likewise.
5769 * target-globals.c: Likewise.
5770 * targhooks.c: Likewise.
5771 * toplev.c: Likewise.
5772 * tracer.c: Likewise.
5773 * trans-mem.c: Likewise.
5774 * tree-affine.c: Likewise.
5775 * tree-call-cdce.c: Likewise.
5776 * tree-cfg.c: Likewise.
5777 * tree-cfgcleanup.c: Likewise.
5778 * tree-chkp-opt.c: Likewise.
5779 * tree-chkp.c: Likewise.
5780 * tree-chrec.c: Likewise.
5781 * tree-complex.c: Likewise.
5782 * tree-data-ref.c: Likewise.
5783 * tree-dfa.c: Likewise.
5784 * tree-diagnostic.c: Likewise.
5785 * tree-dump.c: Likewise.
5786 * tree-eh.c: Likewise.
5787 * tree-emutls.c: Likewise.
5788 * tree-if-conv.c: Likewise.
5789 * tree-inline.c: Likewise.
5790 * tree-into-ssa.c: Likewise.
5791 * tree-iterator.c: Likewise.
5792 * tree-loop-distribution.c: Likewise.
5793 * tree-nested.c: Likewise.
5794 * tree-nrv.c: Likewise.
5795 * tree-object-size.c: Likewise.
5796 * tree-outof-ssa.c: Likewise.
5797 * tree-parloops.c: Likewise.
5798 * tree-phinodes.c: Likewise.
5799 * tree-predcom.c: Likewise.
5800 * tree-pretty-print.c: Likewise.
5801 * tree-profile.c: Likewise.
5802 * tree-scalar-evolution.c: Likewise.
5803 * tree-sra.c: Likewise.
5804 * tree-ssa-address.c: Likewise.
5805 * tree-ssa-alias.c: Likewise.
5806 * tree-ssa-ccp.c: Likewise.
5807 * tree-ssa-coalesce.c: Likewise.
5808 * tree-ssa-copy.c: Likewise.
5809 * tree-ssa-dce.c: Likewise.
5810 * tree-ssa-dse.c: Likewise.
5811 * tree-ssa-forwprop.c: Likewise.
5812 * tree-ssa-ifcombine.c: Likewise.
5813 * tree-ssa-live.c: Likewise.
5814 * tree-ssa-loop-ch.c: Likewise.
5815 * tree-ssa-loop-im.c: Likewise.
5816 * tree-ssa-loop-ivcanon.c: Likewise.
5817 * tree-ssa-loop-ivopts.c: Likewise.
5818 * tree-ssa-loop-manip.c: Likewise.
5819 * tree-ssa-loop-niter.c: Likewise.
5820 * tree-ssa-loop-prefetch.c: Likewise.
5821 * tree-ssa-loop-unswitch.c: Likewise.
5822 * tree-ssa-loop.c: Likewise.
5823 * tree-ssa-math-opts.c: Likewise.
5824 * tree-ssa-operands.c: Likewise.
5825 * tree-ssa-phiopt.c: Likewise.
5826 * tree-ssa-phiprop.c: Likewise.
5827 * tree-ssa-pre.c: Likewise.
5828 * tree-ssa-propagate.c: Likewise.
5829 * tree-ssa-reassoc.c: Likewise.
5830 * tree-ssa-scopedtables.c: Likewise.
5831 * tree-ssa-sink.c: Likewise.
5832 * tree-ssa-strlen.c: Likewise.
5833 * tree-ssa-structalias.c: Likewise.
5834 * tree-ssa-tail-merge.c: Likewise.
5835 * tree-ssa-ter.c: Likewise.
5836 * tree-ssa-threadupdate.c: Likewise.
5837 * tree-ssa-uncprop.c: Likewise.
5838 * tree-ssa-uninit.c: Likewise.
5839 * tree-ssa.c: Likewise.
5840 * tree-ssanames.c: Likewise.
5841 * tree-stdarg.c: Likewise.
5842 * tree-streamer-in.c: Likewise.
5843 * tree-streamer-out.c: Likewise.
5844 * tree-streamer.c: Likewise.
5845 * tree-switch-conversion.c: Likewise.
5846 * tree-tailcall.c: Likewise.
5847 * tree-vect-data-refs.c: Likewise.
5848 * tree-vect-generic.c: Likewise.
5849 * tree-vect-loop-manip.c: Likewise.
5850 * tree-vect-loop.c: Likewise.
5851 * tree-vect-patterns.c: Likewise.
5852 * tree-vect-slp.c: Likewise.
5853 * tree-vect-stmts.c: Likewise.
5854 * tree-vectorizer.c: Likewise.
5855 * tree-vrp.c: Likewise.
5858 * ubsan.c: Likewise.
5859 * value-prof.c: Likewise.
5860 * var-tracking.c: Likewise.
5861 * varasm.c: Likewise.
5862 * varpool.c: Likewise.
5863 * vmsdbgout.c: Likewise.
5864 * vtable-verify.c: Likewise.
5866 * wide-int-print.cc: Likewise.
5867 * wide-int.cc: Likewise.
5868 * xcoffout.c: Likewise.
5870 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
5872 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
5873 between pass numbering and execution order.
5875 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5877 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
5878 check for dependencies.
5880 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5882 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
5885 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5887 * real.h (format_helper): New.
5888 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
5889 (real_from_target, real_nan, real_2expN, real_value_truncate)
5890 (significand_size, real_from_string2, exact_real_inverse)
5891 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
5892 (real_round, real_isinteger, real_from_integer): Replace
5893 machine_mode arguments with format_helper arguments.
5894 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
5895 (real_from_integer, real_nan, real_2expN, real_convert)
5896 (real_value_truncate, exact_real_truncate, real_to_target)
5897 (real_from_target, significand_size, real_powi, real_trunc)
5898 (real_floor, real_ceil, real_round, real_isinteger): Replace
5899 machine_mode arguments with format_helper arguments.
5900 (real_to_target_fmt, real_from_target_fmt): Delete.
5901 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
5902 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
5903 argument with real_format.
5904 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
5906 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5908 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
5909 (fixed_to_decimal, fixed_convert_from_real)
5910 (real_convert_from_fixed): Fix mode arguments to real_2expN.
5912 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5914 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
5915 SCALAR_FLOAT_MODE_P.
5917 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
5919 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
5920 (completely_scalarize): Comment zero-length arrays.
5921 (get_access_replacement): Correct comment re. precondition.
5923 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5925 * config/i386/i386.c (get_builtin_code_for_version): Set priority
5926 for PROCESSOR_ZNVER1.
5927 (enum processor_model): Add M_AMDFAM17H_znver1.
5928 (struct arch_names_table): Likewise.
5929 * doc/extend.texi: ADD znver1.
5931 2015-10-30 Richard Biener <rguenther@suse.de>
5933 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
5934 fold () on single RHSs. Allow CONSTRUCTORS with trailing
5935 zeros to be folded to VECTOR_CSTs.
5936 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
5937 * fold-const.c (fold): Use build_vector_from_ctor.
5939 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
5941 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
5942 "mov %0.h[0], %1.h[0] to "neon_move".
5943 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
5944 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
5946 (*cmovsi_insn_uxtw): Likewise.
5948 2015-10-30 Tom de Vries <tom@codesourcery.com>
5950 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
5951 unsigned, and initialize, and use initial value instead of hardcoded
5952 constant. Add generic constraints dumping section. Don't dump global
5953 initializers constraints dumping section if empty. Don't update
5954 variable from if unused.
5956 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
5958 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
5959 flag_checking and/or CHECKING_P to eliminate conditional compilation
5961 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
5962 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5963 * config/i386/i386.c (ix86_print_operand_address): Likewise.
5964 (output_387_binary_op): Likewise.
5965 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
5966 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
5967 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
5969 * config/rs6000/rs6000.h: Likewise.
5970 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
5972 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
5974 * config/sh/sh.opt (mfdpic): Add missing period.
5976 2015-08-29 Anatoly Sokolov <aesok@post.ru>
5978 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5979 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
5980 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5981 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
5982 mcore_base_register_rtx_p, mcore_legitimate_index_p,
5983 mcore_legitimate_address_p): New functions.
5984 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5986 2015-10-29 Jeff Law <law@redhat.com>
5988 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
5990 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
5991 * tree-ssa-threadedge.c
5992 (record_temporary_equivalences_from_stmts_at_dest): Remove
5993 backedge_seen argument and associated code which invalidated
5994 equivalences based on the value of that argument.
5995 (thread_through_normal_block): Corresponding changes.
5997 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
5999 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
6000 function earlier in the file.
6001 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
6002 df_regs_ever_live_p.
6004 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
6006 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
6009 2015-10-29 Richard Henderson <rth@redhat.com>
6013 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6014 sse check to the exact conditions of PR 67609.
6016 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
6018 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
6019 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
6020 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
6021 of the traditional names that TFmode uses for handling IEEE
6022 extended double. If -mfloat128, add KFmode functions for all of
6023 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
6024 make TFmode use the same emulation functions as KFmode.
6025 (init_float128_ibm): Likewise.
6026 (init_float128_ieee): Likewise.
6027 (rs6000_generate_compare): For IEEE 128-bit floating point
6028 comparisons, call the unordered comparison function instead of the
6029 ordered comparison function.
6030 (rs6000_expand_float128_convert): Deal with operands that are
6031 memory operands. Restructure the code to use a switch statement on
6032 the mode. Add support for TFmode defaulting to either IBM extended
6033 double or IEEE 128-bit floating point. If the underlying types are
6034 the same, use a move instead of a conversion function.
6035 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
6036 use for IEEE 128-bit floating point constants with -mfloat128.
6037 (rs6000_c_mode_for_suffix): Likewise.
6038 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
6039 128-bit floating point with IBM extended double floating point.
6040 (rs6000_invalid_binary_op): Likewise.
6041 (rs6000_gen_le_vsx_permute): On little endian systems generate a
6042 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
6043 types that can go in vector registers.
6044 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
6045 point types that can go in vector registers on little endian
6047 (mark_swaps_for_removal): Likewise.
6048 (rs6000_analyze_swaps): Likewise.
6049 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
6051 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
6052 rework IEEE 128-bit floating point insns to deal with TFmode being
6053 either IBM extended double or IEEE 128-bit floating point.
6055 (IBM128): Update iterator to add condition that the mode is IBM
6057 (IEEE128): New iterator for IEEE 128-bit floating point.
6058 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
6059 (FLOAT128): Likewise.
6060 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
6062 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
6063 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
6064 instead of hard coding TFmode or KFmode.
6065 (negtf2_internal): Likewise.
6066 (neg<mode>2_internal): Likewise.
6067 (abs<mode>2): Likewise.
6068 (abstf2_internal): Likewise.
6069 (abs<mode>2_internal): Likewise.
6070 (ieee_128bit_neg<mode>2): Likewise.
6071 (ieee_128bit_neg<mode>2_internal): Likewise.
6072 (ieee_128bit_abs<mode>2): Likewise.
6073 (ieee_128bit_abs<mode>2_internal): Likewise.
6074 (ieee_128bit_nabs<mode>2): Likewise.
6075 (ieee_128bit_nabs<mode>2_internal): Likewise.
6076 (extendiftf2): Add explicit conversions between 128-bit floating
6077 point types. Drop the old conversions that had become unwieldy.
6078 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
6079 (extendifkf2): Likewise.
6080 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
6081 (extendtfkf2): Likewise.
6082 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
6083 (trunciftf2): Likewise.
6084 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
6085 (truncifkf2): Likewise.
6086 (float<SDI:mode><IFKF:mode>2): Likewise.
6087 (trunckftf2): Likewise.
6088 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
6089 (trunctfif2): Likewise.
6090 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
6091 (extenddftf2): Rework 128-bit floating point conversions to
6092 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
6093 KFmode expanders into one function.
6094 (extenddf<mode>2): Likewise.
6095 (extenddftf2_fprs): Likewise.
6096 (extenddf<mode>2_fprs): Likewise.
6097 (extenddftf2_vsx): Likewise.
6098 (extenddf<mode>2_vsx): Likewise.
6099 (extendsftf2): Likewise.
6100 (extendsf<mode>2): Likewise.
6101 (trunctfdf2): Likewise.
6102 (trunc<mode>df2): Likewise.
6103 (trunctfdf2_internal1): Likewise.
6104 (trunc<mode>df2_internal1): Likewise.
6105 (trunctfdf2_internal2): Likewise.
6106 (trunc<mode>df2_internal2): Likewise.
6107 (trunctfsf2): Likewise.
6108 (trunc<mode>sf2): Likewise.
6109 (trunctfsf2_fprs): Likewise.
6110 (trunc<mode>sf2_fprs): Likewise.
6111 (floatsit2f): Likewise.
6112 (floatsi<mode>2): Likewise.
6113 (fix_trunc_helper): Likewise.
6114 (fix_trunc_helper<mode>): Likewise.
6115 (fix_trunctfsi2): Likewise.
6116 (fix_trunc<mode>si2): Likewise.
6117 (fix_trunctfsi2_fprs): Likewise.
6118 (fix_trunc<mode>si2_fprs): Likewise.
6119 (fix_trunctfsi2_internal): Likewise.
6120 (fix_trunc<mode>si2_internal): Likewise.
6121 (fix_trunctfdi2): Likewise.
6122 (fix_trunc<mode>di2): Likewise.
6123 (fixuns_trunctf<mode>2): Likewise.
6124 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
6125 (floatditf2): Likewise.
6126 (floatdi<mode>2): Likewise.
6127 (floatuns<mode>tf2): Likewise.
6128 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
6129 (cmptf_internal1): Use a mode iterator to add support for both
6130 types (IFmode, TFmode) that support IBM extended double.
6131 (cmp<mode>_internal1): Likewise.
6132 (cmptf_internal2): Likewise.
6133 (cmp<mode>_internal2): Likewise.
6135 * doc/extend.texi (Floating Types): Document __ibm128 and
6136 __float128 on PowerPC.
6138 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6139 -mfloat128 and -mno-float128.
6141 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
6143 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
6144 floating point modes that can go in vector registers.
6145 (MODES_TIEABLE_P): Move tests for vector modes before tests for
6146 scalar floating point, so that IEEE 128-bit floating point that
6147 can go in vector registers bind with vectors and not FP.
6148 (struct rs6000_args): Add libcall field.
6150 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
6151 and -mfloat128-software switches. Replace them with a binary
6153 (-mfloat128): Likewise.
6155 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
6156 128-bit floating point types in GPRs, even if the appropriate
6157 option enabling the type was not used.
6158 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
6160 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
6161 pre-decrement on IEEE 128-bit floating point values.
6162 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
6163 is IEEE 128-bit floating point.
6164 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
6165 128-bit floating point types that can go in vector registers.
6166 (rs6000_option_override_internal): Change -mfloat128-none and
6167 -mfloat128-software to -mfloat128, and move code to be near other
6168 VSX option handling.
6169 (rs6000_option_override_internal): Disable -mfloat128 if we don't
6170 have the Altivec ABI.
6171 (rs6000_init_builtins): Don't make TFmode use either IFmode or
6172 KFmode floating point nodes. Instead, have three separate nodes.
6173 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
6174 eventually moving the long double default to IEEE 128-bit floating
6176 (rs6000_opt_masks): Add -mfloat128.
6177 (struct rs6000_opt_var): Fix typo in comment.
6178 (init_cumulative_args): Initialize libcall field in
6180 (rs6000_function_arg): Treat library functions as if they had
6181 prototypes to prevent IEEE 128-bit support functions from passing
6182 arguments in both GPRs and vector registers.
6183 (rs6000_arg_partial_bytes): Likewise.
6185 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
6186 an option that can be turned on via -mcpu=<xxx>.
6188 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
6191 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6192 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
6193 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
6194 double is IBM extended double.
6196 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
6199 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
6201 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
6202 * genconditions.c: Define CHECKING_P in the generated code.
6203 * genextract.c: Use flag_checking in insn_extract.
6204 * gengtype.c (main): Remove conditional compilation.
6205 * gengtype.h: Likewise.
6207 2015-10-29 Jeff Law <law@redhat.com>
6209 PR tree-optimization/67892
6210 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
6212 (thread_through_normal_block): If we have seen a backedge, then
6213 do nothing. No longer call find_jump_threads_backwards here.
6214 (thread_across_edge): Use find_jump_threads_backwards to find
6215 jump threads if the old style threader was not successful.
6216 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
6217 gsi_last_nondebug_bb. Return NULL if the block does not end
6218 with a control statement.
6219 (find_jump_threads_backwards): Setup code moved here from
6220 tree-ssa-threadedge.c::thread_through_normal_block. Accept
6221 single edge argument instead of name & block.
6222 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
6225 2015-10-29 Tom de Vries <tom@codesourcery.com>
6227 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
6230 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6232 * omp-low.c (lower_omp_target): Remove unreachable code & merge
6235 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
6237 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
6239 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
6241 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6242 guard_bb0 and use guard_bb throughout.
6244 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
6246 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6249 2015-10-29 Richard Biener <rguenther@suse.de>
6252 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
6255 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
6257 * alias.c: Reorder #include statements and remove duplicates.
6259 * attribs.c: Likewise.
6260 * auto-inc-dec.c: Likewise.
6261 * auto-profile.c: Likewise.
6262 * bb-reorder.c: Likewise.
6263 * bt-load.c: Likewise.
6264 * builtins.c: Likewise.
6265 * caller-save.c: Likewise.
6266 * calls.c: Likewise.
6269 * cfganal.c: Likewise.
6270 * cfgbuild.c: Likewise.
6271 * cfgcleanup.c: Likewise.
6272 * cfgexpand.c: Likewise.
6273 * cfghooks.c: Likewise.
6274 * cfgloop.c: Likewise.
6275 * cfgloopanal.c: Likewise.
6276 * cfgloopmanip.c: Likewise.
6277 * cfgrtl.c: Likewise.
6278 * cgraph.c: Likewise.
6279 * cgraphbuild.c: Likewise.
6280 * cgraphclones.c: Likewise.
6281 * cgraphunit.c: Likewise.
6282 * cilk-common.c: Likewise.
6283 * combine-stack-adj.c: Likewise.
6284 * combine.c: Likewise.
6285 * compare-elim.c: Likewise.
6286 * convert.c: Likewise.
6287 * coverage.c: Likewise.
6288 * cppbuiltin.c: Likewise.
6289 * cprop.c: Likewise.
6291 * cselib.c: Likewise.
6292 * data-streamer-in.c: Likewise.
6293 * data-streamer-out.c: Likewise.
6294 * data-streamer.c: Likewise.
6295 * dbxout.c: Likewise.
6298 * debug.c: Likewise.
6299 * df-core.c: Likewise.
6300 * df-problems.c: Likewise.
6301 * df-scan.c: Likewise.
6303 * dojump.c: Likewise.
6304 * dominance.c: Likewise.
6305 * double-int.c: Likewise.
6307 * dumpfile.c: Likewise.
6308 * dwarf2asm.c: Likewise.
6309 * dwarf2cfi.c: Likewise.
6310 * dwarf2out.c: Likewise.
6311 * emit-rtl.c: Likewise.
6312 * except.c: Likewise.
6313 * explow.c: Likewise.
6314 * expmed.c: Likewise.
6316 * final.c: Likewise.
6317 * fixed-value.c: Likewise.
6318 * fold-const.c: Likewise.
6319 * function.c: Likewise.
6320 * fwprop.c: Likewise.
6322 * generic-match-head.c: Likewise.
6323 * ggc-common.c: Likewise.
6324 * gimple-builder.c: Likewise.
6325 * gimple-expr.c: Likewise.
6326 * gimple-fold.c: Likewise.
6327 * gimple-iterator.c: Likewise.
6328 * gimple-low.c: Likewise.
6329 * gimple-match-head.c: Likewise.
6330 * gimple-pretty-print.c: Likewise.
6331 * gimple-ssa-isolate-paths.c: Likewise.
6332 * gimple-ssa-strength-reduction.c: Likewise.
6333 * gimple-streamer-in.c: Likewise.
6334 * gimple-streamer-out.c: Likewise.
6335 * gimple-walk.c: Likewise.
6336 * gimple.c: Likewise.
6337 * gimplify-me.c: Likewise.
6338 * gimplify.c: Likewise.
6339 * godump.c: Likewise.
6340 * graph.c: Likewise.
6341 * graphite-poly.c: Likewise.
6342 * haifa-sched.c: Likewise.
6343 * hw-doloop.c: Likewise.
6344 * ifcvt.c: Likewise.
6345 * incpath.c: Likewise.
6346 * init-regs.c: Likewise.
6347 * internal-fn.c: Likewise.
6348 * ipa-chkp.c: Likewise.
6349 * ipa-comdats.c: Likewise.
6350 * ipa-cp.c: Likewise.
6351 * ipa-devirt.c: Likewise.
6352 * ipa-icf-gimple.c: Likewise.
6353 * ipa-icf.c: Likewise.
6354 * ipa-inline-analysis.c: Likewise.
6355 * ipa-inline-transform.c: Likewise.
6356 * ipa-inline.c: Likewise.
6357 * ipa-polymorphic-call.c: Likewise.
6358 * ipa-profile.c: Likewise.
6359 * ipa-prop.c: Likewise.
6360 * ipa-pure-const.c: Likewise.
6361 * ipa-ref.c: Likewise.
6362 * ipa-reference.c: Likewise.
6363 * ipa-split.c: Likewise.
6364 * ipa-utils.c: Likewise.
6365 * ipa-visibility.c: Likewise.
6367 * ira-build.c: Likewise.
6368 * ira-color.c: Likewise.
6369 * ira-conflicts.c: Likewise.
6370 * ira-costs.c: Likewise.
6371 * ira-emit.c: Likewise.
6372 * ira-lives.c: Likewise.
6375 * langhooks.c: Likewise.
6377 * lists.c: Likewise.
6378 * loop-doloop.c: Likewise.
6379 * loop-init.c: Likewise.
6380 * loop-invariant.c: Likewise.
6381 * loop-iv.c: Likewise.
6382 * loop-unroll.c: Likewise.
6383 * lower-subreg.c: Likewise.
6384 * lra-assigns.c: Likewise.
6385 * lra-coalesce.c: Likewise.
6386 * lra-constraints.c: Likewise.
6387 * lra-eliminations.c: Likewise.
6388 * lra-lives.c: Likewise.
6389 * lra-remat.c: Likewise.
6390 * lra-spills.c: Likewise.
6392 * lto-cgraph.c: Likewise.
6393 * lto-compress.c: Likewise.
6394 * lto-opts.c: Likewise.
6395 * lto-section-in.c: Likewise.
6396 * lto-section-out.c: Likewise.
6397 * lto-streamer-in.c: Likewise.
6398 * lto-streamer-out.c: Likewise.
6399 * lto-streamer.c: Likewise.
6400 * mode-switching.c: Likewise.
6401 * modulo-sched.c: Likewise.
6402 * omp-low.c: Likewise.
6403 * optabs.c: Likewise.
6404 * opts-global.c: Likewise.
6405 * passes.c: Likewise.
6406 * plugin.c: Likewise.
6407 * postreload-gcse.c: Likewise.
6408 * postreload.c: Likewise.
6409 * predict.c: Likewise.
6410 * print-tree.c: Likewise.
6411 * profile.c: Likewise.
6413 * realmpfr.c: Likewise.
6414 * recog.c: Likewise.
6416 * reg-stack.c: Likewise.
6417 * regcprop.c: Likewise.
6418 * reginfo.c: Likewise.
6419 * regrename.c: Likewise.
6420 * regstat.c: Likewise.
6421 * reload.c: Likewise.
6422 * reload1.c: Likewise.
6423 * reorg.c: Likewise.
6424 * resource.c: Likewise.
6425 * rtl-chkp.c: Likewise.
6426 * rtl-error.c: Likewise.
6427 * rtlanal.c: Likewise.
6428 * rtlhooks.c: Likewise.
6429 * sanopt.c: Likewise.
6430 * sched-deps.c: Likewise.
6431 * sched-ebb.c: Likewise.
6432 * sched-rgn.c: Likewise.
6434 * shrink-wrap.c: Likewise.
6435 * simplify-rtx.c: Likewise.
6436 * stack-ptr-mod.c: Likewise.
6437 * statistics.c: Likewise.
6439 * stor-layout.c: Likewise.
6440 * store-motion.c: Likewise.
6441 * stringpool.c: Likewise.
6442 * symtab.c: Likewise.
6443 * target-globals.c: Likewise.
6444 * targhooks.c: Likewise.
6445 * toplev.c: Likewise.
6446 * tracer.c: Likewise.
6447 * trans-mem.c: Likewise.
6448 * tree-affine.c: Likewise.
6449 * tree-call-cdce.c: Likewise.
6450 * tree-cfg.c: Likewise.
6451 * tree-cfgcleanup.c: Likewise.
6452 * tree-chkp-opt.c: Likewise.
6453 * tree-chkp.c: Likewise.
6454 * tree-chrec.c: Likewise.
6455 * tree-complex.c: Likewise.
6456 * tree-data-ref.c: Likewise.
6457 * tree-dfa.c: Likewise.
6458 * tree-diagnostic.c: Likewise.
6459 * tree-dump.c: Likewise.
6460 * tree-eh.c: Likewise.
6461 * tree-emutls.c: Likewise.
6462 * tree-if-conv.c: Likewise.
6463 * tree-inline.c: Likewise.
6464 * tree-into-ssa.c: Likewise.
6465 * tree-iterator.c: Likewise.
6466 * tree-loop-distribution.c: Likewise.
6467 * tree-nested.c: Likewise.
6468 * tree-nrv.c: Likewise.
6469 * tree-object-size.c: Likewise.
6470 * tree-outof-ssa.c: Likewise.
6471 * tree-parloops.c: Likewise.
6472 * tree-phinodes.c: Likewise.
6473 * tree-predcom.c: Likewise.
6474 * tree-pretty-print.c: Likewise.
6475 * tree-profile.c: Likewise.
6476 * tree-scalar-evolution.c: Likewise.
6477 * tree-sra.c: Likewise.
6478 * tree-ssa-address.c: Likewise.
6479 * tree-ssa-alias.c: Likewise.
6480 * tree-ssa-ccp.c: Likewise.
6481 * tree-ssa-coalesce.c: Likewise.
6482 * tree-ssa-copy.c: Likewise.
6483 * tree-ssa-dce.c: Likewise.
6484 * tree-ssa-dom.c: Likewise.
6485 * tree-ssa-dse.c: Likewise.
6486 * tree-ssa-forwprop.c: Likewise.
6487 * tree-ssa-ifcombine.c: Likewise.
6488 * tree-ssa-live.c: Likewise.
6489 * tree-ssa-loop-ch.c: Likewise.
6490 * tree-ssa-loop-im.c: Likewise.
6491 * tree-ssa-loop-ivcanon.c: Likewise.
6492 * tree-ssa-loop-ivopts.c: Likewise.
6493 * tree-ssa-loop-manip.c: Likewise.
6494 * tree-ssa-loop-niter.c: Likewise.
6495 * tree-ssa-loop-prefetch.c: Likewise.
6496 * tree-ssa-loop-unswitch.c: Likewise.
6497 * tree-ssa-loop.c: Likewise.
6498 * tree-ssa-math-opts.c: Likewise.
6499 * tree-ssa-operands.c: Likewise.
6500 * tree-ssa-phiopt.c: Likewise.
6501 * tree-ssa-phiprop.c: Likewise.
6502 * tree-ssa-pre.c: Likewise.
6503 * tree-ssa-propagate.c: Likewise.
6504 * tree-ssa-reassoc.c: Likewise.
6505 * tree-ssa-sccvn.c: Likewise.
6506 * tree-ssa-scopedtables.c: Likewise.
6507 * tree-ssa-sink.c: Likewise.
6508 * tree-ssa-strlen.c: Likewise.
6509 * tree-ssa-structalias.c: Likewise.
6510 * tree-ssa-tail-merge.c: Likewise.
6511 * tree-ssa-ter.c: Likewise.
6512 * tree-ssa-threadedge.c: Likewise.
6513 * tree-ssa-threadupdate.c: Likewise.
6514 * tree-ssa-uncprop.c: Likewise.
6515 * tree-ssa-uninit.c: Likewise.
6516 * tree-ssa.c: Likewise.
6517 * tree-ssanames.c: Likewise.
6518 * tree-stdarg.c: Likewise.
6519 * tree-streamer-in.c: Likewise.
6520 * tree-streamer-out.c: Likewise.
6521 * tree-streamer.c: Likewise.
6522 * tree-switch-conversion.c: Likewise.
6523 * tree-tailcall.c: Likewise.
6524 * tree-vect-data-refs.c: Likewise.
6525 * tree-vect-generic.c: Likewise.
6526 * tree-vect-loop-manip.c: Likewise.
6527 * tree-vect-loop.c: Likewise.
6528 * tree-vect-patterns.c: Likewise.
6529 * tree-vect-slp.c: Likewise.
6530 * tree-vect-stmts.c: Likewise.
6531 * tree-vectorizer.c: Likewise.
6532 * tree-vrp.c: Likewise.
6535 * ubsan.c: Likewise.
6536 * value-prof.c: Likewise.
6537 * var-tracking.c: Likewise.
6538 * varasm.c: Likewise.
6539 * varpool.c: Likewise.
6540 * vtable-verify.c: Likewise.
6542 * wide-int-print.cc: Likewise.
6543 * wide-int.cc: Likewise.
6544 * xcoffout.c: Likewise.
6546 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
6548 * Makefile.in (NO_PIE_CFLAGS): New.
6549 (NO_PIE_FLAG): Likewise.
6550 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6551 (NO_PIE_FLAG_FOR_BUILD): Likewise.
6552 (BUILD_NO_PIE_CFLAGS): Likewise.
6553 (BUILD_NO_PIE_FLAG): Likewise.
6554 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
6555 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
6556 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
6557 $(BUILD_NO_PIE_CFLAGS).
6558 (BUILD_CXXFLAGS): Likewise.
6559 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
6560 $(BUILD_NO_PIE_FLAG).
6561 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
6562 (BUILD_NO_PIE_FLAG): Likewise.
6563 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6564 (NO_PIE_FLAG_FOR_BUILD): Likewise.
6565 * configure: Regenerated.
6567 2015-10-29 Richard Biener <rguenther@suse.de>
6570 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
6571 unsigned conditonal negation to ABS_EXPR.
6573 2015-10-29 Richard Biener <rguenther@suse.de>
6575 * gimple-match-head.c (gimple_simplify): Remove premature checking
6576 of builtin_decl_implicit of function calls we simplify.
6578 2015-10-29 Bin Cheng <bin.cheng@arm.com>
6580 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
6581 (get_computation_cost_at): Ditto.
6582 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
6585 2015-10-28 Tom de Vries <tom@codesourcery.com>
6587 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
6590 2015-10-28 Jason Merrill <jason@redhat.com>
6592 * Makefile.in (TAGS): Include libcpp and libiberty.
6594 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6596 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
6597 (extract_omp_for_data): Remove OpenACC special handling of
6600 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
6601 (struct parallel): Update comment.
6602 (nvptx_reorg): Likewise.
6603 (nvptx_neuter): Cleanup whitespace.
6605 2015-10-28 Richard Henderson <rth@redhat.com>
6607 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
6609 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6612 * config/avr/predicates.md (low_io_address_operand): Don't
6613 consider MODE when computing upper bound.
6614 (io_address_operand): Likewise.
6616 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
6618 * fold-const.c (operand_equal_p): Do not verify that types are
6619 compatible for MEM_REFs.
6621 2015-10-28 Richard Biener <rguenther@suse.de>
6623 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
6624 in simplifying VEC_COND_EXPR conditions.
6626 2015-10-28 Tom de Vries <tom@codesourcery.com>
6628 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
6629 into vi_next of a full_var.
6631 2015-10-28 Tom de Vries <tom@codesourcery.com>
6633 * tree-ssa-structalias.c (new_var_info, make_heapvar)
6634 (make_constraint_from_restrict, make_constraint_from_global_restrict)
6635 (create_function_info_for, create_variable_info_for_1)
6636 (create_variable_info_for): Add and handle add_id parameter.
6637 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
6638 (init_base_vars): Add extra argument to calls to new_var_info.
6639 (get_vi_for_tree): Add extra argument to call to
6640 create_variable_info_for.
6641 (process_constraint, do_deref, process_all_all_constraints): Add extra
6642 argument to calls to new_scalar_tmp_constraint_exp.
6643 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
6644 argument to calls to make_heapvar.
6645 (make_restrict_var_constraints): Add extra argument to call to
6646 make_constraint_from_global_restrict.
6647 (intra_create_variable_infos): Add extra argument to call to
6648 create_variable_info_for_1.
6649 (ipa_pta_execute): Add extra argument to call to
6650 create_function_info_for.
6652 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6654 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
6655 (sibcall_value): Likewise.
6657 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6659 * config/nvptx/nvptx.h (struct machine_function): Add
6661 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
6662 nvptx_expand_oacc_join): Declare.
6663 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
6664 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
6665 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
6666 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
6667 UNSPECV_JOINING, UNSPECV_JOIN): New.
6668 (BITS, BITD): New mode iterators.
6669 (br_true_uni, br_false_uni): New.
6670 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
6671 (oacc_dim_size, oacc_dim_pos): New.
6672 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
6673 (oacc_fork, oacc_join): New.
6674 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
6675 (worker_load<mode>, worker_store<mode>): New.
6676 (nvptx_barsync): New.
6677 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
6678 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
6679 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
6680 worker_bcast_sym): New.
6681 (nvptx_option_override): Initialize worker broadcast buffer.
6682 (nvptx_emit_forking, nvptx_emit_joining): New.
6683 (nvptx_init_axis_predicate): New.
6684 (nvptx_declare_function_name): Init axis predicates.
6685 (nvptx_expand_call): Add fork/join markers around routine call.
6686 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
6687 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
6688 (nvptx_gen_vcast): New.
6689 (struct wcast_data_t): New.
6690 (enum propagate_mask): New.
6691 (nvptx_gen_wcast): New.
6692 (nvptx_print_operand): Add 'S' case.
6693 (struct parallel): New.
6694 (parallel::parallel, parallel::~parallel): New.
6695 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
6696 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
6697 nvptx_find_par, nvptx_discover_pars): New.
6698 (nvptx_propagate): New.
6699 (vprop_gen, nvptx_vpropagate): New.
6700 (wprop_gen, nvptx_wpropagate): New.
6702 (nvptx_single, nvptx_skip_par): New.
6703 (nvptx_process_pars, nvptx_neuter_pars): New.
6704 (ntptx_reorg): Split blocks, generate parallel structure, apply
6706 (nvptx_cannot_copy_insn_p): New.
6707 (nvptx_file_end): Emit worker broadcast decl.
6708 (nvptx_goacc_fork_join): New.
6709 (TARGET_CANNOT_COPY_INSN_P): Override.
6710 (TARGET_GOACC_FORK_JOIN): Override.
6712 2015-10-28 Richard Biener <rguenther@suse.de>
6714 * fold-const.c (negate_expr_p): Adjust the division case to
6715 properly avoid introducing undefined overflow.
6716 (fold_negate_expr): Likewise.
6718 2015-10-28 Richard Biener <rguenther@suse.de>
6720 PR tree-optimization/65962
6721 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6722 Avoid creating loop carried dependences also for outer loops
6723 of the loop a use to replace is in.
6725 2015-10-28 Richard Biener <rguenther@suse.de>
6727 * common.opt (fchecking): New flag controlling flag_checking.
6728 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
6729 * timevar.c (timer::print): Adjust output.
6730 * doc/invoke.texi (fchecking): Document.
6732 2015-10-28 Richard Biener <rguenther@suse.de>
6735 * fold-const.c (negate_expr_p): We cannot negate plus or minus
6736 if overflow is not wrapping. Likewise multiplication unless
6737 one operand is constant and not power of two.
6738 (fold_negate_expr): Adjust accordingly.
6740 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6742 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
6744 (is_oacc_parallel, is_oacc_kernels): New.
6745 (enclosing_target_ctx): May return NULL.
6746 (ctx_in_oacc_kernels_region): New.
6747 (check_oacc_kernel_gwv): New.
6748 (oacc_loop_or_target_p): Delete.
6749 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
6750 operands. Strip reductions fro kernels.
6751 (scan_omp_target): Don't calculate gwv mask.
6752 (lower_oacc_head_mark, lower_oacc_loop_marker,
6753 lower_oacc_head_tail): New.
6754 (struct oacc_collapse): New.
6755 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
6756 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6757 Remove OpenACC handling.
6758 (expand_oacc_for): New.
6759 (expand_omp_for): Call expand_oacc_for.
6760 (lower_omp_for): Call lower_oacc_head_tail.
6762 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
6764 * attribs.c (check_attribute_tables): New function, broken out from...
6765 (init_attributes): Use it.
6766 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
6767 gcc_checking_assert and checking_* functions to eliminate
6768 ENABLE_CHECKING conditionals.
6769 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
6770 (pass_expand::execute): Likewise.
6771 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
6772 * cgraphunit.c (mark_functions_to_output): Likewise.
6773 (cgraph_node::expand_thunk): Likewise.
6774 (symbol_table::compile): Likewise.
6775 * ddg.c (add_cross_iteration_register_deps): Likewise.
6776 (create_ddg_all_sccs): Likewise.
6777 * df-core.c (df_finish_pass, df_analyze): Likewise.
6778 * diagnostic-core.h: Likewise.
6779 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
6780 * dominance.c (calculate_dominance_info): Likewise.
6781 * dwarf2out.c (add_AT_die_ref): Likewise.
6782 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
6783 (loc_list_from_tree, gen_lexical_block_die): Likewise.
6784 gen_type_die_with_usage, gen_type_die): Likewise.
6785 (dwarf2out_decl): Likewise.
6786 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
6787 * except.c (duplicate_eh_regions): Likewise.
6788 * fwprop.c (register_active_defs, update_df_init): Likewise.
6789 (fwprop_init, fwprop_done): Likewise.
6790 (update_uses): Likewise.
6791 * ggc-page.c (ggc_grow): Likewise.
6792 * gimplify.c (gimplify_body): Likewise.
6793 (gimplify_hasher::equal): Likewise.
6794 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
6795 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
6797 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
6798 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
6799 * hash-table.h (::find_empty_slot_for_expand): Likewise.
6800 * ifcvt.c (if_convert): Likewise.
6801 * ipa-cp.c (ipcp_propagate_stage): Likewise.
6802 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
6803 (odr_type_p, odr_types_equivalent_p): Likewise.
6804 (add_type_duplicate, get_odr_type): Likewise.
6805 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
6806 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
6807 (sem_item_optimizer::verify_classes): Likewise.
6808 (sem_item_optimizer::traverse_congruence_split): Likewise.
6809 (sem_item_optimizer::checking_verify_classes): New.
6810 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
6812 * cfgrtl.c (commit_edge_insertions): Likewise.
6813 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
6814 (rtl_flow_call_edges_add): Likewise.
6815 * cgraph.c (symbol_table::create_edge): Likewise.
6816 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
6817 * cgraph.h (symtab_node): Likewise.
6818 (symtab_node::checking_verify_symtab_nodes): Define.
6819 (cgraph_node::checking_verify_cgraph_nodes): Define.
6820 * cfghooks.h (checking_verify_flow_info): Define.
6821 * cfgloop.h (checking_verify_loop_structure): Define.
6822 * dominance.h (checking_verify_dominators): Define.
6823 * et-forest.c: Fix comment.
6824 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
6825 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6826 ENABLE_CHECKING conditionals.
6827 * ipa-inline-transform.c (save_inline_function_body): Likewise.
6828 * ipa-inline.c (inline_small_functions): Likewise.
6829 (early_inliner): Likewise.
6830 * ipa-inline.h (estimate_edge_growth): Likewise.
6831 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6832 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6833 (ipa_single_use): Likewise.
6834 * ira-int.h: Likewise.
6835 * ira.c (ira): Likewise.
6836 * loop-doloop.c (doloop_optimize_loops): Likewise.
6837 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
6838 * loop-invariant.c (move_loop_invariants): Likewise.
6839 * lra-assigns.c (lra_assign): Likewise.
6840 * lra-constraints.c (lra_constraints): Likewise.
6841 * lra-eliminations.c (lra_eliminate): Likewise.
6842 * lra-int.h (struct lra_reg): Likewise.
6843 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
6844 (lra_create_live_ranges_1): Likewise.
6845 * lra-remat.c (create_remat_bb_data): Likewise.
6846 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
6848 (check_rtl): Always define. Remove incorrect guard around
6849 extract_constrain_insn call.
6850 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
6851 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6852 ENABLE_CHECKING conditionals.
6853 * lto-streamer-out.c (DFS::DFS): Likewise.
6854 (lto_output): Likewise.
6855 * lto-streamer.c (lto_streamer_init): Likewise.
6856 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
6857 expand_omp_target, execute_expand_omp): Likewise.
6858 (lower_omp_target): Likewise.
6859 * passes.c (execute_function_todo): Likewise.
6860 (execute_todo, execute_one_pass): Likewise.
6861 (verify_curr_properties): Always define.
6862 * predict.c (tree_estimate_probability: Use flag_checking,
6863 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6864 ENABLE_CHECKING conditionals.
6865 (propagate_freq): Likewise.
6866 * pretty-print.c (pp_format): Likewise.
6867 * real.c (real_to_decimal_for_mode): Likewise.
6868 * recog.c (split_all_insns): Likewise.
6869 * regcprop.c (kill_value_one_regno): Likewise.
6870 (copy_value): Likewise.
6871 (validate_value_data): Define unconditionally.
6872 * reload.c: Fix comment.
6873 * timevar.c: Include options.h
6874 * tree-ssa.h (checking_verify_ssa): Define.
6875 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
6876 * sched-deps.c (CHECK): Remove unused macro.
6877 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
6878 gcc_checking_assert and checking_* functions to eliminate
6879 ENABLE_CHECKING conditionals.
6880 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
6881 * sel-sched.c (struct moveop_static_params): Likewise.
6882 (find_best_reg_for_expr, move_cond_jump): Likewise.
6883 (move_op_orig_expr_not_found): Likewise.
6884 (code_motion_process_successors, move_op): Likewise.
6885 * ssa-iterators.h (first_readonly_imm_use): Likewise.
6886 (next_readonly_imm_use): Likewise.
6887 * store-motion.c (compute_store_table): Likewise.
6888 * symbol-summary.h (function_summary::function_summary): Likewise.
6889 * target.h (cumulative_args_t): Likewise.
6890 (get_cumulative_args, pack_cumulative_args): Likewise.
6891 * timevar.c: (timer::print): Likewise.
6892 * trans-mem.c (ipa_tm_execute): Likewise.
6893 * tree-cfg.c (move_stmt_op): Likewise.
6894 (move_sese_region_to_fn): Likewise.
6895 (gimple_flow_call_edges_add): Likewise.
6896 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
6898 * tree-eh.c (remove_unreachable_handlers): Likewise.
6899 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
6900 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
6901 * tree-into-ssa.c (update_ssa): Likewise.
6902 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
6903 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
6904 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
6905 * tree-predcom.c (suitable_component_p): Likewise.
6906 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
6907 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
6908 * tree-ssa-live.c (verify_live_on_entry): Likewise.
6909 * tree-ssa-live.h (register_ssa_partition): Likewise.
6910 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
6911 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
6912 (tree_transform_and_unroll_loop): Likewise.
6913 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6914 * tree-ssa-operands.c (get_expr_operands): Likewise.
6915 * tree-ssa-propagate.c (replace_exp_1): Likewise.
6916 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
6917 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
6918 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
6919 * tree-ssanames.c (release_ssa_name_fn): Likewise.
6920 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
6921 * tree-vect-loop-manip.c
6922 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
6923 (slpeel_checking_verify_cfg_after_peeling): Likewise.
6924 (vect_do_peeling_for_loop_bound): Likewise.
6925 (vect_do_peeling_for_alignment): Likewise.
6926 * tree-vrp.c (supports_overflow_infinity): Likewise.
6927 (set_value_range): Likewise.
6928 * tree.c (free_lang_data_in_cgraph): Likewise.
6929 * value-prof.c (gimple_remove_histogram_value): Likewise.
6930 (free_hist): Likewise.
6931 * var-tracking.c (canonicalize_values_star): Likewise.
6932 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
6934 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6936 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
6937 IFN_GOACC_LOOP): New.
6938 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
6939 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
6940 IFN_UNIQUE_OACC_TAIL_MARK.
6941 (enum ifn_goacc_loop_kind): New.
6942 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
6943 IFN_UNIQUE_OACC_JOIN cases.
6944 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
6945 (expand_GOACC_LOOP): New.
6946 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
6947 * omp-low.c: Include gimple-pretty-print.h.
6948 (struct oacc_loop): New.
6949 (enum oacc_loop_flags): New.
6950 (oacc_thread_numbers): New.
6951 (oacc_xform_loop): New.
6952 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
6953 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
6954 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
6955 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
6956 oacc_loop_discovery): New.
6957 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
6958 oacc_loop_process): New.
6959 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
6960 (execute_oacc_device_lower): Discover & process loops. Process
6962 * target.def (goacc.fork_join): Change sense of hook, clarify
6964 * doc/tm.texi: Regenerated.
6966 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6968 * target-insns.def (oacc_fork, oacc_join): Define.
6969 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
6970 (goacc.fork_join): New GOACC hook.
6971 * targhooks.h (default_goacc_fork_join): Declare.
6972 * omp-low.c (default_goacc_forkjoin): New.
6973 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
6974 * doc/tm.texi: Regenerate.
6976 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6978 * omp-low.c (oacc_init_rediction_array): New.
6979 (oacc_initialize_reduction_data): Initialize array.
6981 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6983 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
6985 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6987 * internal-fn.c (expand_UNIQUE): New.
6988 * internal-fn.h (enum ifn_unique_kind): New.
6989 * internal-fn.def (IFN_UNIQUE): New.
6990 * target-insns.def (unique): Define.
6991 * gimple.h (gimple_call_internal_unique_p): New.
6992 * gimple.c (gimple_call_same_target_p): Check internal fn
6994 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
6995 * tree-ssa-threadedge.c
6996 (record_temporary_equivalences_from_stmts): Likewise.
6997 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
6999 2015-10-27 Richard Henderson <rth@redhat.com>
7002 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
7003 narrowing subregs on SSE and MMX registers.
7004 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
7005 appear to be sub-words of multi-register pseudos must be rejected.
7006 * doc/tm.texi: Regenerate.
7008 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7011 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
7012 operands[0] is a reg before taking its REGNO in split condition.
7013 (*movdi_aarch64): Likewise.
7015 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7017 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
7018 Handle floating point inner modes properly.
7020 2015-10-27 Alan Hayward <alan.hayward@arm.com>
7023 (vectorizable_live_operation): Change iterator.
7025 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7026 Aditya Kumar <aditya.k7@samsung.com>
7028 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
7029 function to schedule based on isl_schedule_node.
7030 (get_schedule_map_st): New schedule optimizer based on
7032 (scop_get_domains): New. Return the isl_union_set containing the
7033 domains of all the pbbs.
7034 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
7036 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
7039 * calls.c (prepare_call_address): Don't handle -fno-plt here.
7040 * config/i386/i386.c (ix86_expand_call): Generate indirect call
7041 via GOT for -fno-plt. Support indirect call via GOT for x32.
7042 * config/i386/predicates.md (sibcall_memory_operand): Allow
7045 2015-10-27 Richard Biener <rguenther@suse.de>
7047 PR tree-optimization/68104
7048 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
7049 strided access check ...
7050 (vect_compute_data_refs_alignment): ... here.
7052 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
7053 Joseph Myers <joseph@codesourcery.com>
7054 Mark Shinwell <shinwell@codesourcery.com>
7055 Andrew Stubbs <ams@codesourcery.com>
7056 Rich Felker <dalias@libc.org>
7058 * config.gcc: Handle --enable-fdpic.
7059 * config/sh/constraints.md (Ccl): New constraint.
7060 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
7061 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
7063 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
7065 * config/sh/sh-protos.h (function_symbol_result): New struct.
7066 (function_symbol): Return function_symbol_result.
7067 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
7069 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
7071 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
7072 (sh_option_override): Force -fPIC if FDPIC is in effect.
7073 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
7074 UNSPEC_GOTOFFFUNCDESC cases.
7075 (prepare_move_operands): Use FDPIC initial GOT register for
7076 TLS-related GOT access; inhibit cross-section address offset constants
7078 (sh_assemble_integer): New function.
7079 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
7080 PC-relative call sites.
7081 (expand_ashiftrt): Adapt invocation of function_symbol.
7082 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
7083 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
7084 UNSPEC_GOTOFFFUNCDESC.
7085 (legitimize_pic_address): Resolve function symbols to function
7086 descriptors for FDPIC. Do not use GOT-relative addressing for local
7087 data that may be read-only on FDPIC.
7088 (sh_emit_storesi, sh_emit_storehi): New functions.
7089 (sh_trampoline_init): Generate FDPIC trampolines.
7090 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
7091 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
7092 (sh_output_mi_thunk): Generate FDPIC call.
7093 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
7094 FDPIC, generate call site labels to use PC-relative addressing rather
7095 than GOT-relative addressing.
7096 (sh_conditional_register_usage): Make PIC register fixed and call used
7097 when FDPIC is in effect.
7098 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
7099 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
7100 sh_get_fdpic_reg_initial_val): New functions.
7101 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
7103 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
7104 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
7105 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
7106 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
7108 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
7109 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
7110 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
7111 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
7113 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
7114 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
7115 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
7116 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
7117 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
7118 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
7119 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
7120 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
7121 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
7122 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
7123 block_move_real, block_lump_real, block_move_real_i4,
7124 block_lump_real_i4): Add support for FDPIC calls.
7125 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
7126 call_value_pop): Adjust for new function_symbol signature.
7127 * config/sh/sh.opt (-mfdpic): New option.
7128 * doc/install.texi (Options specification): Document --enable-fdpic.
7129 * doc/invoke.texi (SH Options): Document -mfdpic.
7132 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
7134 PR tree-optimization/65963
7135 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
7136 LSHIFT_EXPRs as equivalent MULT_EXPRs.
7138 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7141 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
7142 * config/arm/constraints.md (Dp): Update callsite.
7143 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
7145 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7147 * builtins.c (fold_builtin_load_exponent): Rename to...
7148 (fold_const_builtin_load_exponent): ...this and only handle
7150 (fold_builtin_2): Update accordingly.
7151 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
7153 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7155 * builtins.c (fold_builtin_logb): Rename to...
7156 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
7157 (fold_builtin_significand): Rename to...
7158 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
7159 (fold_builtin_1): Update accordingly.
7161 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7163 * builtins.c (fold_builtin_fmin_fmax): Delete.
7164 (fold_builtin_2): Handle constant fmin and fmax arguments here.
7165 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
7167 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
7169 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
7170 for register extension into sign and zero register extension.
7171 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
7172 for sign and zero register extension.
7173 (cortexa57_addrcost_table): Likewise.
7174 (xgene1_addrcost_table): Likewise.
7176 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7178 * fold-const.c (fold_minmax): Delete.
7179 (fold_binary_loc): Don't call it.
7180 * match.pd: Add rules previously handled by fold_minmax.
7182 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7184 * builtins.c (fold_builtin_fma): Remove constant handling.
7185 (fold_builtin_3): Handle constant fma arguments here.
7187 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7189 * builtins.c (fold_builtin_fabs): Remove constant handling.
7190 (fold_builtin_abs): Likewise.
7192 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7194 * builtins.c (fold_builtin_copysign): Delete.
7195 (fold_builtin_2): Handle constant copysign arguments here.
7196 * match.pd: Add rules previously handled by fold_builtin_copysign.
7198 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7200 * builtins.c (fold_builtin_signbit): Delete.
7201 (fold_builtin_2): Handle constant signbit arguments here.
7202 * match.pd: Add rules previously handled by fold_builtin_signbit.
7204 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7206 * match.pd: Handle sqrt(x) cmp 0 specially.
7208 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
7210 * tree-vect-generic.c (expand_vector_operations_1): Check
7211 optab type before using it.
7213 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7215 * config/aarch64/aarch64-protos.h
7216 (struct tune_params): Add autoprefetcher_model field.
7217 * config/aarch64/aarch64.c: Include params.h
7218 (generic_tunings): Specify autoprefetcher_model value.
7219 (cortexa53_tunings): Likewise.
7220 (cortexa57_tunings): Likewise.
7221 (cortexa72_tunings): Likewise.
7222 (thunderx_tunings): Likewise.
7223 (xgene1_tunings): Likewise.
7224 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
7225 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
7226 (aarch64_override_options_internal): Set
7227 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
7229 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7231 * builtins.c (fold_builtin_exponent): Delete.
7232 (fold_builtin_2): Handle constant expN arguments here.
7233 * match.pd: Fold expN(logN(x)) -> x.
7235 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7237 * builtins.c (fold_builtin_powi): Delete.
7238 (fold_builtin_2): Handle constant powi arguments here.
7239 * match.pd: Add rules previously handled by fold_builtin_powi.
7241 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7243 * builtins.c (fold_builtin_pow): Delete in favor of...
7244 (fold_const_builtin_pow): ...this new function. Only handle constant
7246 (fold_builtin_2): Update accordingly.
7247 * match.pd: Add rules previously handled by fold_builtin_pow.
7249 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7251 * builtins.c (fold_builtin_hypot): Delete.
7252 (fold_builtin_2): Handle constant hypot arguments here.
7253 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
7254 hypot(x, x) to fabs(x)*sqrt(2).
7256 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7258 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
7259 instead of make_ssa_name if not yet in SSA form.
7261 2015-10-27 Richard Biener <rguenther@suse.de>
7263 * cfg.c (free_edge): Add function argument and use it instead of cfun.
7264 (clear_edges): Likewise.
7265 * cfg.h (clear_edges): Adjust prototype.
7266 * cfgexpand.c (pass_expand::execute): Adjust.
7267 * cfgloop.c (release_recorded_exits): Add function argument and use
7269 * cfgloop.h (release_recorded_exits): Adjust prototype.
7270 (loops_state_satisfies_p): Add overload with function argument.
7271 (loops_state_set): Likewise.
7272 (loops_state_clear): Likewise.
7273 (struct loop_iterator): Add function argument to constructor
7274 and iterator and use it instead of cfun.
7275 (FOR_EACH_LOOP_FN): New macro.
7276 (loop_optimizer_finalize): Add overload with function argument.
7277 * loop-init.c (loop_optimizer_init): Adjust.
7278 (fix_loop_structure): Likewise.
7279 (loop_optimizer_finaliz): Add function argument and use it
7281 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
7282 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
7283 * cgraph.c (release_function_body): Do not push/pop cfun.
7284 * final.c (rest_of_clean_state): Adjust.
7285 * graphite.c (graphite_finalize): Likewise.
7286 * tree-ssa-copy.c (fini_copy_prop): Likewise.
7287 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7288 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
7289 (tree_unroll_loops_completely): Likewise.
7290 (pass_complete_unrolli::execute): Likewise.
7291 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
7292 Add function argument and use it instead of cfun.
7293 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
7295 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
7296 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
7298 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
7299 * tree-ssanames.c (fini_ssanames): Add function argument and use it
7301 * tree-ssanames.c (fini_ssanames): Adjust prototype.
7302 * tree-vrp.c (execute_vrp): Adjust.
7303 * value-prof.c (free_histograms): Add function argument and use it
7305 * value-prof.h (free_histograms): Adjust prototype.
7307 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
7309 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
7310 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
7311 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
7313 2015-10-27 Tom de Vries <tom@codesourcery.com>
7315 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
7318 2015-10-27 Bin Cheng <bin.cheng@arm.com>
7320 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
7321 (inv_can_prop_to_addr_use): New function.
7322 (record_use): Call can_prop_to_addr_uses, set the new field.
7323 (get_inv_cost): Count cost if inv can't be propagated into its
7326 2015-10-26 Doug Evans <dje@google.com>
7328 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
7330 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
7332 * match.pd (fold_widened_comparison): Apply simplifications to all
7335 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
7337 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
7338 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
7339 * doc/tm.texi: Regenerated.
7340 * reorg.c (dbr_schedule): Use new hook.
7341 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
7343 2015-10-26 Jeff Law <law@redhat.com>
7345 PR tree-optimization/68013
7346 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7347 Make sure the first block in the path is in VISITED_BBs.
7349 2015-10-26 Richard Biener <rguenther@suse.de>
7350 Dominik Vogt <vogt@linux.vnet.ibm.com>
7353 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
7354 Properly prune ref->ref for accesses outside of ref.
7356 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7358 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
7359 new statements to be inserted if inplace. Allow calls to have
7362 2015-10-26 Richard Biener <rguenther@suse.de>
7364 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
7365 (do_valueize): New function.
7366 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
7368 * tree-ssa-threadedge.c: Remove builtins.h include, include
7370 (fold_assignment_stmt): Remove.
7371 (threadedge_valueize): New function.
7372 (record_temporary_equivalences_from_stmts): Use
7373 gimple_fold_stmt_to_constant_1, note additional cleanup
7376 2015-10-26 Richard Biener <rguenther@suse.de>
7378 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
7379 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
7381 2015-10-26 Alan Hayward <alan.hayward@arm.com>
7383 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
7384 VEC_COND_EXPR types.
7386 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7388 * auto-inc-dec.c (insert_move_insn_before): Delete.
7389 (attempt_change): Remember to cost the simple move in the
7390 FORM_PRE_ADD and FORM_POST_ADD cases.
7392 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
7395 * config/sh/sh.c (sh_vector_mode_supported_p): Use
7396 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
7398 2015-10-26 Tom de Vries <tom@codesourcery.com>
7400 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
7402 (intra_create_variable_infos): ... here.
7404 2015-10-26 Tom de Vries <tom@codesourcery.com>
7406 * tree-ssa-structalias.c (intra_create_variable_infos): Add
7407 restrict_pointer_p and recursive_restrict_p variables.
7409 2015-10-26 Tom de Vries <tom@codesourcery.com>
7411 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
7412 get_vi_for_tree call.
7414 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7417 * optabs.c (expand_atomic_compare_and_swap): Handle case when
7418 ptarget_oval or ptarget_bool are const0_rtx.
7420 2015-10-26 Christian Bruel <christian.bruel@st.com>
7422 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
7423 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
7424 * cp/method.c (implicitly_declare_fn): Likewise.
7425 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
7426 * java/class.c (add_method_1): Likewise.
7428 2015-10-26 Richard Biener <rguenther@suse.de>
7430 * alloc-pool.h (base_pool_allocator): Use placement new.
7431 (base_pool_allocator::remove): Likewise. Compute size outside of
7434 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7436 * builtins.c (do_real_to_int_conversion): New function.
7437 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
7438 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
7440 * match.pd: Add rules previously handled by fold_fixed_mathfn
7441 and fold_builtin_int_roundingfn.
7443 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7445 * match.pd: Use macros to define built-in operator lists.
7447 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
7448 Richard Biener <rguenther@suse.de>
7450 * genmatch.c (dt_simplify::gen): Skip captures that are
7452 (parser::parse_expr): Allow captures in results too.
7453 * builtins.c (fold_builtin_cexp): Delete.
7454 (fold_builtin_1): Handle constant cexp arguments here.
7455 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
7457 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
7459 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
7460 conditional compilation.
7461 (base_pool_allocator::remove): Use flag_checking.
7463 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
7465 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
7468 * dojump.c (do_compare_and_jump): Canonicalize both function and
7471 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
7474 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
7477 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7480 * ipa-polymorphic-call.c
7481 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
7482 instance offset with offset of outer type.
7484 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7486 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
7488 2015-10-23 Caroline Tice <cmtice@google.com>
7490 (from Richard Biener
7491 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
7492 call to iterative_hash_host_wide_int.
7494 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
7496 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
7499 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7501 * tree-vect-generic.c (expand_vector_operations_1): Check
7502 optab exists before use it.
7504 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7506 * tree-vect-generic.c (expand_vector_condition): Avoid
7507 uninitialized variable warning.
7509 2015-10-23 Jeff Law <law@redhat.com>
7511 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
7513 (execute_todo): Call it here.
7514 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
7516 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
7518 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
7519 Szabolcs Nagy <szabolcs.nagy@arm.com>
7521 * config.gcc (enable_secureplt): Add *-linux*-musl*.
7523 2015-10-23 Jeff Law <law@redhat.com>
7525 PR tree-optimization/67830
7526 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
7527 Explicitly verify the mask has no bits outside the type of
7528 the innermost operands.
7530 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
7531 Szabolcs Nagy <szabolcs.nagy@arm.com>
7533 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
7534 (MUSL_DYNAMIC_LINKER64): Define.
7535 (GNU_USER_DYNAMIC_LINKER32): Update.
7536 (GNU_USER_DYNAMIC_LINKER64): Update.
7537 (CHOOSE_DYNAMIC_LINKER): Update.
7539 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
7540 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
7541 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7542 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7543 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7544 (CHOOSE_DYNAMIC_LINKER): Update.
7545 (INCLUDE_DEFAULTS): Redefine.
7547 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
7549 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7551 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
7552 comparing addresses.
7554 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7556 * fold-const.c (operand_equal_p): Handle matching of vector
7559 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
7561 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
7563 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
7564 Andrew Pinski <apinski@cavium.com>
7566 PR rtl-optimization/67736
7567 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
7570 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7573 * tree.c (build_truth_vector_type): Support BLK mode
7574 returned for boolean vector.
7576 2015-10-23 Alan Hayward <alan.hayward@arm.com>
7578 PR tree-optimization/65947
7580 (vect_is_simple_reduction_1): Find condition reductions.
7581 (vect_model_reduction_cost): Add condition reduction costs.
7582 (get_initial_def_for_reduction): Add condition reduction initial var.
7583 (vect_create_epilog_for_reduction): Add condition reduction epilog.
7584 (vectorizable_reduction): Condition reduction support.
7585 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
7586 * doc/sourcebuild.texi (Vector-specific attributes): Document
7589 2015-10-23 Richard Biener <rguenther@suse.de>
7591 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
7594 2015-10-23 Richard Biener <rguenther@suse.de>
7595 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7597 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
7598 into (A ^ B) - B to match.pd
7599 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
7601 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
7603 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
7605 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
7607 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
7609 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
7610 INTEGER_CST@1)): New simplifier.
7612 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
7614 * builtins.c (integer_valued_real_p): Move to fold-const.c.
7615 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
7616 (fold_builtin_ceil, fold_builtin_round): Delete.
7617 (fold_builtin_1): Handle constant trunc, floor, ceil and round
7619 * convert.c (convert_to_real): Remove narrowing of rounding
7621 * fold-const.h (integer_valued_real_unary_p)
7622 (integer_valued_real_binary_p, integer_valued_real_call_p)
7623 (integer_valued_real_single_p, integer_valued_real_p): Declare.
7624 * fold-const.c (tree_single_nonnegative_warnv_p): Move
7625 name_registered_for_update_p check to SSA_NAME case statement.
7626 Don't call tree_simple_nonnegative_warnv_p for SSA names.
7627 (integer_valued_real_unary_p, integer_valued_real_binary_p)
7628 (integer_valued_real_call_p, integer_valued_real_single_p)
7629 (integer_valued_real_invalid_p): New functions.
7630 (integer_valued_real_p): Move from fold-const.c and rework
7631 to call the functions above. Handle SSA names.
7632 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
7633 * gimple-fold.c (gimple_assign_integer_valued_real_p)
7634 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
7635 (gimple_stmt_integer_valued_real_p): New functions.
7636 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
7637 Fold f(x)->x for the same f if x is known to be integer-valued.
7638 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
7639 the result. Canonicalize floor(x) as trunc(x) if x is
7642 2015-10-23 Tom de Vries <tom@codesourcery.com>
7644 * tree-ssa-structalias.c (intra_create_variable_infos): Use
7645 make_constraint_from.
7647 2015-10-23 Tom de Vries <tom@codesourcery.com>
7649 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
7650 setting of is_full_var in case of a single field.
7652 2015-10-22 Martin Sebor <msebor@redhat.com>
7655 * config/i386/i386.opt: Add missing periods to the ends of sentences.
7656 * config/msp430/msp430.opt: Same.
7658 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
7660 * doc/extend.exp (Global Register Variables): Rewrite.
7662 2015-10-22 Jeff Law <law@redhat.com>
7664 * genattrtab.c (main): If we do not have any annul-true or annul-false
7665 slots, then write out a dummy eligible_for_annul_true or
7666 eligible_for_annul_false as needed.
7668 2015-10-22 Nick Clifton <nickc@redhat.com>
7670 * config/msp430/msp430.opt: Add -msilicon-errata and
7671 -msilicon-errata-warn.
7672 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
7674 * doc/invoke.texi: Document new options.
7676 2015-10-22 Richard Biener <rguenther@suse.de>
7678 PR tree-optimization/58497
7679 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
7680 (expand_vector_operations_1): Use it. Lower operations on
7681 all uniform vectors to scalar operations if the HW supports it.
7683 2015-10-22 Richard Biener <rguenther@suse.de>
7685 PR tree-optimization/19049
7686 PR tree-optimization/65962
7687 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
7688 to strided accesses if single-element interleaving doesn't work.
7690 2015-10-22 Richard Biener <rguenther@suse.de>
7694 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
7695 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
7696 (expand_unop): Likewise.
7698 2015-10-22 Richard Biener <rguenther@suse.de>
7700 * fold-const.c (fold_addr_of_array_ref_difference): Properly
7701 convert operands before folding a MINUS_EXPR.
7702 (fold_binary_loc): Move simplification of MINUS_EXPR on
7703 converted POINTER_PLUS_EXPRs ...
7704 * match.pd: ... here.
7706 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
7708 * builtins.c (fold_builtin_tan): Delete.
7709 (fold_builtin_1): Handle constant tan arguments here.
7710 * match.pd: Simplify (tan (atan x)) to x.
7712 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
7714 * builtins.c (fold_builtin_cproj): Delete.
7715 (fold_builtin_1): Handle constant arguments here.
7716 (build_complex_cproj): Move and rename to...
7717 * tree.c: (build_complex_inf): ...this.
7718 * tree.h (build_complex_inf): Declare.
7719 * match.pd: Fold cproj(x)->x if x has no infinity.
7720 Use build_complex_inf for existing cproj rules.
7722 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7725 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
7726 already have a comparison result.
7728 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7731 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
7732 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
7733 (aarch64_classify_address): Likewise.
7734 (aarch64_secondary_reload): Likewise.
7735 (aarch64_override_options_after_change_1): Adjust.
7736 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7737 Use aarch64_nopcrelative_literal_loads.
7738 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7739 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
7742 2015-10-21 Martin Sebor <msebor@redhat.com>
7745 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
7746 (print_filtered_help): Reference aliased option's name and encourage
7747 readers to use it in preference to the alias if the former is not
7748 documented. Mention when using an option is diagnosed.
7749 * gcc.c (display_help): End each sentence with a period.
7751 * common.opt: End each sentence that describes an option with
7753 * config/aarch64/aarch64.opt: Same.
7754 * config/alpha/alpha.opt: Same.
7755 * config/arc/arc.opt: Same.
7756 * config/arm/arm.opt: Same.
7757 * config/avr/avr.opt: Same.
7758 * config/bfin/bfin.opt: Same.
7759 * config/c6x/c6x.opt: Same.
7760 * config/cr16/cr16.opt: Same.
7761 * config/cris/cris.opt: Same.
7762 * config/cris/linux.opt: Same.
7763 * config/darwin.opt: Same.
7764 * config/epiphany/epiphany.opt: Same.
7765 * config/fr30/fr30.opt: Same.
7766 * config/frv/frv.opt: Same.
7767 * config/ft32/ft32.opt: Same.
7768 * config/g.opt: Same.
7769 * config/h8300/h8300.opt: Same.
7770 * config/i386/cygming.opt: Same.
7771 * config/i386/djgpp.opt: Same.
7772 * config/i386/i386.opt: Same.
7773 * config/i386/interix.opt: Same.
7774 * config/i386/mingw-w64.opt: Same.
7775 * config/i386/mingw.opt: Same.
7776 * config/ia64/ia64.opt: Same.
7777 * config/ia64/ilp32.opt: Same.
7778 * config/iq2000/iq2000.opt: Same.
7779 * config/linux.opt: Same.
7780 * config/lm32/lm32.opt: Same.
7781 * config/lynx.opt: Same.
7782 * config/m32c/m32c.opt: Same.
7783 * config/m32r/m32r.opt: Same.
7784 * config/m68k/ieee.opt: Same.
7785 * config/m68k/m68k.opt: Same.
7786 * config/mcore/mcore.opt: Same.
7787 * config/mep/mep.opt: Same.
7788 * config/microblaze/microblaze.opt: Same.
7789 * config/mips/mips.opt: Same.
7790 * config/mmix/mmix.opt: Same.
7791 * config/mn10300/mn10300.opt: Same.
7792 * config/moxie/moxie.opt: Same.
7793 * config/msp430/msp430.opt: Same.
7794 * config/nios2/elf.opt: Same.
7795 * config/nios2/nios2.opt: Same.
7796 * config/nvptx/nvptx.opt: Same.
7797 * config/pa/pa-hpux.opt: Same.
7798 * config/pa/pa-hpux1010.opt: Same.
7799 * config/pa/pa-hpux1111.opt: Same.
7800 * config/pa/pa-hpux1131.opt: Same.
7801 * config/pa/pa.opt: Same.
7802 * config/pa/pa64-hpux.opt: Same.
7803 * config/pdp11/pdp11.opt: Same.
7804 * config/rl78/rl78.opt: Same.
7805 * config/rs6000/476.opt: Same.
7806 * config/rs6000/aix64.opt: Same.
7807 * config/rs6000/darwin.opt: Same.
7808 * config/rs6000/linux64.opt: Same.
7809 * config/rs6000/rs6000.opt: Same.
7810 * config/rs6000/sysv4.opt: Same.
7811 * config/s390/s390.opt: Same.
7812 * config/s390/tpf.opt: Same.
7813 * config/sh/sh.opt: Same.
7814 * config/sol2.opt: Same.
7815 * config/sparc/long-double-switch.opt: Same.
7816 * config/sparc/sparc.opt: Same.
7817 * config/spu/spu.opt: Same.
7818 * config/stormy16/stormy16.opt: Same.
7819 * config/tilegx/tilegx.opt: Same.
7820 * config/tilepro/tilepro.opt: Same.
7821 * config/v850/v850.opt: Same.
7822 * config/vax/vax.opt: Same.
7823 * config/visium/visium.opt: Same.
7824 * config/vms/vms.opt: Same.
7825 * config/vxworks.opt: Same.
7826 * config/xtensa/xtensa.opt: Same.
7828 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7829 Sebastian Pop <s.pop@samsung.com>
7831 * graphite-scop-detection.c (parameter_index_in_region): Update call to
7832 invariant_in_sese_p_rec.
7833 * graphite-sese-to-poly.c (extract_affine): Same.
7834 * sese.c (invariant_in_sese_p_rec): Pass in an extra
7835 parameter has_vdefs.
7836 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
7837 variable depends on virtual definitions in the current region.
7838 * sese.h (invariant_in_sese_p_rec): Update declaration.
7840 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7841 Sebastian Pop <s.pop@samsung.com>
7843 * graphite-scop-detection.c (build_scops): Do not handle scops
7844 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
7845 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
7847 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
7849 * config.in: Regenerate.
7850 * configure: Regenerate.
7851 * configure.ac (CHECKING_P): Define.
7852 * system.h: Use CHECKING_P.
7854 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7857 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
7858 is negative we don't know the type.
7859 (check_stmt_for_type_change): Skip constructors of non-polymorphic
7860 types as those won't help devirutalization.
7862 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7864 * fold-const.c (operand_equal_p): Add code matching empty constructors.
7866 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
7868 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
7870 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
7871 Add comments on sign of the result.
7872 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
7873 Recurse on operand #1 instead of operand #0.
7874 <CEIL_MOD_EXPR>: Do not recurse.
7875 <ROUND_MOD_EXPR>: Likewise.
7877 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7879 * cfgrtl.c (pass_free_cfg::execute): Adjust.
7880 * final.c (dbr_sequence_length): Always define.
7881 (shorten_branches): Adjust.
7882 * genattr-common.c (main): Always define DELAY_SLOTS.
7883 * genattr.c (main): Unconditionally declare functions and define
7884 macros related to delay slots.
7885 * genattrtab.c (write_eligible_delay): Adjust.
7886 (main): Always write out delay slot functions.
7887 * opts.c (default_options_table): Adjust.
7888 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
7889 (redirect_with_delay_list_safe_p): Likewise.
7890 (fill_simple_delay_slots): Likewise.
7891 (fill_slots_from_thread): Likewise.
7892 (make_return_insns): Likewise.
7893 (dbr_schedule): Likewise.
7894 (rest_of_handle_delay_slots): Likewise.
7895 (pass_delay_slots::gate): Likewise.
7896 * toplev.c (process_options): Likewise.
7898 2015-10-21 Richard Henderson <rth@redhat.com>
7900 * targhooks.c (default_addr_space_pointer_mode): Remove check
7901 for generic address space.
7902 (default_addr_space_address_mode): Likewise.
7903 (default_addr_space_valid_pointer_mode): Likewise.
7904 (default_addr_space_legitimate_address_p): Likewise.
7905 (default_addr_space_legitimize_address): Likewise.
7906 * target.def (addr_space.pointer_mode): Update documentation
7907 of default behavior.
7908 (addr_space.address_mode): Likewise.
7911 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
7914 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7916 * builtins.c (fold_builtin_cabs): Delete.
7917 (fold_builtin_1): Update accordingly. Handle constant arguments here.
7918 * match.pd: Add rules previously handled by fold_builtin_cabs.
7920 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7922 * fold-const.h (fold_strip_sign_ops): Delete.
7923 * fold-const.c (fold_strip_sign_ops): Likewise.
7924 (fold_unary_loc, fold_binary_loc): Remove calls to it.
7925 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
7926 (fold_builtin_ccos): Delete.
7927 (fold_builtin_pow): Don't call fold_strip_sign_ops.
7928 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
7929 Remove fndecl argument.
7930 (fold_builtin_1): Update calls accordingly. Handle constant
7931 cos, cosh, ccos and ccosh here.
7933 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7935 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
7936 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
7937 * common.opt (fssa-backprop): New option.
7938 * fold-const.h (negate_mathfn_p): Declare.
7939 * fold-const.c (negate_mathfn_p): Make public.
7940 * timevar.def (TV_TREE_BACKPROP): New.
7941 * tree-pass.h (make_pass_backprop): Declare.
7942 * passes.def (pass_backprop): Add.
7943 * gimple-ssa-backprop.c: New file.
7945 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7946 Sebastian Pop <s.pop@samsung.com>
7948 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
7949 Do not call create_empty_if_region_on_edge when cond_expr is true.
7950 (translate_isl_ast_node_for): Check whether a guard has been generated.
7952 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7954 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
7955 (operator=): Removed.
7956 (dr_info): Make alias_set number the last argument with default
7957 value of invalid_alias_set.
7958 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
7960 (rewrite_reductions_out_of_ssa): Iterate only through the
7961 basic blocks which are inside region.
7962 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
7963 * sese.h (struct sese_l): Removed assignment operator.
7964 (split_region_for_bb): Removed dead code.
7966 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7968 * graphite-poly.h (struct dr_info): Removed conversion constructor.
7969 (struct scop): Renamed scop::region to scop::scop_info
7970 (scop_set_region): Same.
7971 (SCOP_REGION): Removed
7972 (SCOP_CONTEXT): Removed.
7973 (POLY_SCOP_P): Removed.
7974 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
7975 Rename scop->region to scop->scop_info.
7976 (add_parameters_to_ivs_params): Same.
7977 (graphite_regenerate_ast_isl): Same.
7978 * graphite-poly.c (new_scop): Same.
7980 (print_scop_params): Same.
7981 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
7982 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
7983 (dot_all_scops_1): Rename scop->region to scop->scop_info.
7984 (scop_detection::nb_pbbs_in_loops): Same.
7985 (find_scop_parameters): Same.
7986 (try_generate_gimple_bb): Same.
7987 (gather_bbs::before_dom_children): Same.
7988 (gather_bbs::after_dom_children): Same.
7989 (build_scops): Same.
7990 * graphite-sese-to-poly.c (build_scop_scattering): Same.
7991 (extract_affine_chrec): Same.
7992 (extract_affine): Same.
7993 (set_scop_parameter_dim): Same.
7994 (build_loop_iteration_domains): Same.
7995 (create_pw_aff_from_tree): Same.
7996 (add_param_constraints): Same.
7997 (build_scop_iteration_domain): Same.
7998 (build_scop_drs): Same.
7999 (analyze_drs_in_stmts): Same.
8000 (insert_out_of_ssa_copy_on_edge): Same.
8001 (rewrite_close_phi_out_of_ssa):Same.
8002 (rewrite_reductions_out_of_ssa):Same.
8003 (handle_scalar_deps_crossing_scop_limits):Same.
8004 (rewrite_cross_bb_scalar_deps):Same.
8005 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
8006 (build_poly_scop):Same.
8007 (build_alias_set): Use pointer to dr_info.
8008 * graphite.c (print_graphite_scop_statistics):
8009 (graphite_transform_loops):
8010 * sese.h (struct sese_l): Remove conversion constructor.
8012 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8015 * tree.c (verify_type): Verify that TYPE_MODE match
8016 between TYPE_CANONICAL and type.
8017 * expr.c (store_expr_with_bounds): Revert my previous change.
8018 * expmed.c (store_bit_field_1): Revert prevoius change.
8019 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
8020 to match for all types.
8022 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
8024 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
8027 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
8029 * doc/tm.texi: Regenerated.
8030 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
8031 * stor-layout.c (layout_type): Use mode to get vector mask size.
8032 * target.def (get_mask_mode): New.
8033 * targhooks.c (default_get_mask_mode): New.
8034 * targhooks.h (default_get_mask_mode): New.
8035 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
8037 * tree.c (MAX_BOOL_CACHED_PREC): New.
8038 (nonstandard_boolean_type_cache): New.
8039 (build_nonstandard_boolean_type): New.
8040 (make_vector_type): Vector mask has no canonical type.
8041 (build_truth_vector_type): New.
8042 (build_same_sized_truth_vector_type): New.
8043 (truth_type_for): Support vector masks.
8044 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
8045 (build_truth_vector_type): New.
8046 (build_same_sized_truth_vector_type): New.
8047 (build_nonstandard_boolean_type): New.
8048 * tree-cfg.c (verify_gimple_comparison) Require boolean
8049 vector type for vector comparison.
8050 (verify_gimple_assign_ternary): Likewise.
8051 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
8053 * tree-vect-stmts.c (vectorizable_condition): Use boolean
8054 vector type for vector comparison.
8055 * tree-vect-generic.c (elem_op_func): Add new operand to hold
8057 (do_unop): Adjust to modified function type.
8058 (do_binop): Likewise.
8059 (do_plus_minus): Likewise.
8060 (do_negate); Likewise.
8061 (expand_vector_piecewise): Likewise.
8062 (do_cond): Likewise.
8063 (do_compare): Use comparison instead of condition.
8064 (expand_vector_divmod): Use boolean vector type for comparison.
8065 (expand_vector_operations_1): Skip scalar mask operations.
8067 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
8069 * omp-low.c (simd_clone_create): Set in_other_partition
8072 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
8074 * doc/extend.exp (Local Register Variables): Rewrite.
8076 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8078 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
8079 and x*x in cases where the operands are sign ops. Extend these
8080 rules to handle copysign as a sign op (including for cos, cosh
8081 and pow, which already treated negate and abs as sign ops).
8083 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
8086 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
8087 for 64-bit MS_ABI targets also when default incoming stack boundary
8090 2015-10-21 Richard Biener <rguenther@suse.de>
8092 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
8093 cond stmts, enhanced and split out from ...
8094 (vn_phi_eq): ... here.
8096 2015-10-21 Richard Biener <rguenther@suse.de>
8099 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
8100 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
8101 (tree_single_nonnegative_warnv_p): ... here. For SSA names
8102 make sure they are not registered for update.
8104 2015-10-21 Richard Biener <rguenther@suse.de>
8106 PR tree-optimization/68026
8107 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
8108 unsigned VARYING values.
8110 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
8112 * asan.c (asan_emit_stack_protection): Don't pass local stack to
8113 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
8114 NULL and use local stack than.
8115 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
8116 in addition to __asan_init.
8117 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
8118 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
8119 * asan.h (asan_intercepted_p): Handle new string builtins.
8120 * ubsan.c (ubsan_use_new_style_p): New function.
8121 (ubsan_instrument_float_cast): If location is unknown, assign
8122 input_location to loc. Propagate loc to ubsan_create_data if
8123 ubsan_use_new_style_p returned true.
8125 2015-10-21 Jeff Law <law@redhat.com>
8127 * Makefile.in (OBJS): Remove sched-vis.c
8128 * sched-vis.c: Removed. Code moved into...
8129 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
8130 * rtl.h: Remove prototypes for functions now living in print-rtl.c
8131 * print-rtl.h Add prototypes for new functions in print-rtl.c.
8132 * auto-inc-dec.c: Include print-rtl.h
8133 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
8134 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
8136 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
8139 2015-10-21 Richard Biener <rguenther@suse.de>
8140 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8142 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
8144 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
8145 about signed left shift stronger and clarify the cases when they're
8147 Move (a * (1 << b)) is (a << b) to match.pd.
8148 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
8149 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
8150 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
8152 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
8154 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
8155 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
8156 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
8158 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
8160 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
8162 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
8163 Szabolcs Nagy <szabolcs.nagy@arm.com>
8164 Alan Modra <amodra@gmail.com>
8166 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
8167 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
8168 (LINK_SPEC): Add %(link_secure_plt).
8169 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
8170 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
8172 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
8173 Szabolcs Nagy <szabolcs.nagy@arm.com>
8175 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
8176 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
8178 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8180 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
8182 (fusion_load_store): Use it.
8183 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
8184 ldp and stp in VD modes.
8185 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
8186 (store_pair<mode>, VD): Likewise.
8188 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
8190 PR rtl-optimization/67609
8191 * lra-splill.c (lra_final_code_change): Don't remove all
8194 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8196 * simplify-rtx.c (simplify_binary_operation): If either operand was
8197 a constant pool reference use them if all other simplifications failed.
8199 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8201 * config/aarch64/aarch64.md
8202 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
8203 * config/aarch64/aarch64-simd.md
8204 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
8205 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
8206 (aarch64_fpconst_pow_of_2): New function.
8207 (aarch64_vec_fpconst_pow_of_2): Likewise.
8208 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
8210 (aarch64_vec_fpconst_pow_of_2): Likewise.
8211 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
8212 (aarch64_fp_vec_pow2): Likewise.
8214 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
8216 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
8217 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
8218 * config/alpha/alpha.c (alpha_function_arg_advance): Update
8219 ALPHA_ARG_SIZE usage.
8220 (alpha_arg_partial_bytes): Ditto.
8222 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
8225 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
8226 error_mark_node decls.
8228 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
8232 * common/config/i386/i386-common.c (ix86_handle_option): Remove
8233 OPT_miamcu handling.
8234 * config/i386/i386.c (PTA_NO_80387): New macro.
8235 (processor_alias_table): Add PTA_NO_80387 to lakemont.
8236 (ix86_option_override_internal): Update MASK_80387 from
8237 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
8238 SSE math only if 80387 is supported. Don't change
8240 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
8242 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
8243 if TARGET_80387 is true and TARGET_IAMCU is false.
8244 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
8245 is true and TARGET_IAMCU_P is false.
8247 2015-10-20 Richard Biener <rguenther@suse.de>
8249 PR tree-optimization/68017
8250 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
8252 2015-10-20 Martin Liska <mliska@suse.cz>
8254 * cgraphclones.c (cgraph_node::create_virtual_clone):
8255 Verify cgraph_node.local.versionable instead of calling
8256 tree_versionable_function_p.
8257 * ipa-cp.c (determine_versionability): Save the information
8258 to ipa_node_params summary.
8259 (ipcp_versionable_function_p): Use it.
8260 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
8261 (ipcp_generate_summary): Do not compute cgraph_node
8263 * ipa-inline-analysis.c (inline_generate_summary): Compute
8264 versionability for all cgraph nodes.
8265 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
8266 ipa_node_params::versionability.
8267 * ipa-prop.h (struct ipa_node_params): Declare it.
8269 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8272 * varasm.c (assemble_variable): Move special vtv handling to..
8273 (handle_vtv_comdat_sections): .. here. New function.
8274 (output_object_block): Handle vtv sections.
8276 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
8279 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
8281 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
8283 * doc/extend.texi: Update documentation WRT inline functions.
8285 2015-10-20 Alan Modra <amodra@gmail.com>
8288 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
8289 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
8290 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8292 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
8294 PR rtl-optimization/66790
8295 * df.h (DF_MIR): New macro.
8296 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
8297 (DF_MIR_INFO_BB): New macro.
8298 (DF_MIR_IN, DF_MIR_OUT): New macros.
8299 (struct df_mir_bb_info): New.
8300 (df_mir): New macro.
8301 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
8303 (df_mir_get_bb_info): New.
8304 * df-problems.c (struct df_mir_problem_data): New.
8305 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
8306 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
8307 df_mir_confluence_0, df_mir_confluence_n,
8308 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
8309 df_mir_bottom_dump, df_mir_verify_solution_start,
8310 df_mir_verify_solution_end): New.
8312 (df_mir_add_problem, df_mir_simulate_one_insn): New.
8313 * timevar.def (TV_DF_MIR): New.
8314 * ree.c: Include bitmap.h
8315 (add_removable_extension): Add an INIT_REGS parameter. Use it
8316 to skip zero-extensions that may get an uninitialized register.
8317 (find_removable_extensions): Compute must-initialized registers
8318 using the MIR dataflow problem. Update the call to
8319 add_removable_extension.
8320 (find_and_remove_re): Call df_mir_add_problem.
8322 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
8324 * common/config/mn10300/mn10300-common.c
8325 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
8326 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
8328 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
8330 * doc/extend.texi (Explicit Register Variables): Simplify and
8331 avoid unnecessary and confusion abbreviations. Update cross
8333 doc/implement-c.tex: Update cross reference.
8335 2015-10-19 Jeff Law <law@redhat.com>
8337 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
8338 that create irreducible loops unless the path elimiantes a multiway
8341 2015-10-19 Richard Biener <rguenther@suse.de>
8343 PR tree-optimization/67975
8344 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
8345 * tree-cfg.c (extract_true_false_controlled_edges): Split out
8346 core worker from ...
8347 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
8348 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
8349 instead of block number for PHIs with two or one args.
8350 (vn_phi_eq): Compare edge predicates of PHIs that are in different
8353 2015-10-19 Richard Biener <rguenther@suse.de>
8355 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
8356 (gimple_stmt_nonnegative_warnv_p): Use it.
8357 * match.pd (CPROJ): New operator list.
8358 (cproj (complex ...)): Move simplifications from ...
8359 * builtins.c (fold_builtin_cproj): ... here.
8361 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8363 * config/i386/i386.c (ix86_expand_vector_move): Use
8364 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
8367 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8369 * doc/invoke.texi: Replace @optindex with @opindex.
8371 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8374 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
8375 arch= is set, clear all bits in x_ix86_isa_flags, except for
8376 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
8378 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
8381 * common.opt (fkeep-static-functions): New option.
8382 * doc/invoke.texi: Document it.
8383 * cgraphunit.c (cgraph_node::finalize_function): Use it.
8385 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8387 * sched-int.h (struct autopref_multipass_data_): Remove offset
8388 field. Add min_offset, max_offset, multi_mem_insn_p fields.
8389 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
8390 (autopref_multipass_init): Use it. Handle PARALLEL sets.
8391 (autopref_rank_data): New function.
8392 (autopref_rank_for_schedule): Use it.
8393 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
8395 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
8398 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
8400 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8402 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
8403 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
8404 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
8405 (STANDARD_STARTFILE_PREFIX_1): New.
8406 (STANDARD_STARTFILE_PREFIX_2): New.
8408 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8410 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
8411 (darwin_driver_init): Note a version-min when provided on the c/l.
8412 * config/darwin.h (%darwin_minversion): Remove.
8413 * config/i386/darwin.h: Likewise.
8414 * config/rs6000/darwin.h: Likewise.
8415 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
8416 rather than an arbitrary constant.
8418 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8420 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
8421 PPC, detect conflicts between -arch and multilib settings. Detect
8422 and warn about conflicts between multiple -arch definitions.
8424 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8426 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
8428 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8430 * lra-constraints.c (add_next_usage_insn): Change argument type
8431 from rtx to rtx_insn *.
8433 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
8435 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
8438 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
8440 * config/tilepro/gen-mul-tables.cc: Adjust include files.
8441 * config/tilegx/mul-tables.c: Regenerate.
8442 * config/tilepro/mul-tables.c: Regenerate.
8444 * config/tilegx/tilegx-c.c: Adjust include files.
8445 * config/tilegx/tilegx.c: Likewise.
8446 * config/tilepro/tilepro-c.c: Likewise.
8447 * config/tilepro/tilepro.c: Likewise.
8448 * config/aarch64/aarch64-builtins.c: Likewise.
8449 * config/aarch64/aarch64.c: Likewise.
8450 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8451 * config/alpha/alpha.c: Likewise.
8452 * config/arc/arc.c: Likewise.
8453 * config/arm/aarch-common.c: Likewise.
8454 * config/arm/arm-builtins.c: Likewise.
8455 * config/arm/arm-c.c: Likewise.
8456 * config/arm/arm.c: Likewise.
8457 * config/avr/avr-c.c: Likewise.
8458 * config/avr/avr-devices.c: Likewise.
8459 * config/avr/avr-log.c: Likewise.
8460 * config/avr/avr.c: Likewise.
8461 * config/bfin/bfin.c: Likewise.
8462 * config/c6x/c6x.c: Likewise.
8463 * config/cr16/cr16.c: Likewise.
8464 * config/cris/cris.c: Likewise.
8465 * config/darwin-c.c: Likewise.
8466 * config/darwin-driver.c: Likewise.
8467 * config/darwin.c: Likewise.
8468 * config/default-c.c: Likewise.
8469 * config/epiphany/epiphany.c: Likewise.
8470 * config/epiphany/mode-switch-use.c: Likewise.
8471 * config/epiphany/resolve-sw-modes.c: Likewise.
8472 * config/fr30/fr30.c: Likewise.
8473 * config/frv/frv.c: Likewise.
8474 * config/ft32/ft32.c: Likewise.
8475 * config/glibc-c.c: Likewise.
8476 * config/h8300/h8300.c: Likewise.
8477 * config/i386/host-cygwin.c: Likewise.
8478 * config/i386/host-mingw32.c: Likewise.
8479 * config/i386/i386-c.c: Likewise.
8480 * config/i386/i386.c: Likewise.
8481 * config/i386/msformat-c.c: Likewise.
8482 * config/i386/winnt-cxx.c: Likewise.
8483 * config/i386/winnt-stubs.c: Likewise.
8484 * config/i386/winnt.c: Likewise.
8485 * config/ia64/ia64-c.c: Likewise.
8486 * config/ia64/ia64.c: Likewise.
8487 * config/iq2000/iq2000.c: Likewise.
8488 * config/lm32/lm32.c: Likewise.
8489 * config/m32c/m32c-pragma.c: Likewise.
8490 * config/m32c/m32c.c: Likewise.
8491 * config/m32r/m32r.c: Likewise.
8492 * config/mcore/mcore.c: Likewise.
8493 * config/mep/mep-pragma.c: Likewise.
8494 * config/mep/mep.c: Likewise.
8495 * config/microblaze/microblaze-c.c: Likewise.
8496 * config/microblaze/microblaze.c: Likewise.
8497 * config/mips/mips-tables.opt
8498 * config/mips/mips.c: Likewise.
8499 * config/mmix/mmix.c: Likewise.
8500 * config/mn10300/mn10300.c: Likewise.
8501 * config/moxie/moxie.c: Likewise.
8502 * config/msp430/msp430-c.c: Likewise.
8503 * config/msp430/msp430.c: Likewise.
8504 * config/nds32/nds32-cost.c: Likewise.
8505 * config/nds32/nds32-fp-as-gp.c: Likewise.
8506 * config/nds32/nds32-intrinsic.c: Likewise.
8507 * config/nds32/nds32-isr.c: Likewise.
8508 * config/nds32/nds32-md-auxiliary.c: Likewise.
8509 * config/nds32/nds32-memory-manipulation.c: Likewise.
8510 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8511 * config/nds32/nds32-predicates.c: Likewise.
8512 * config/nds32/nds32.c: Likewise.
8513 * config/nios2/nios2.c: Likewise.
8514 * config/nvptx/mkoffload.c: Likewise.
8515 * config/nvptx/nvptx.c: Likewise.
8516 * config/pa/pa.c: Likewise.
8517 * config/pdp11/pdp11.c: Likewise.
8518 * config/rl78/rl78-c.c: Likewise.
8519 * config/rl78/rl78.c: Likewise.
8520 * config/rs6000/host-darwin.c: Likewise.
8521 * config/rs6000/rs6000-c.c: Likewise.
8522 * config/rs6000/rs6000-linux.c: Likewise.
8523 * config/rs6000/rs6000.c: Likewise.
8524 * config/rx/rx.c: Likewise.
8525 * config/s390/s390-c.c: Likewise.
8526 * config/s390/s390.c: Likewise.
8527 * config/sh/sh-c.c: Likewise.
8528 * config/sh/sh-mem.cc: Likewise.
8529 * config/sh/sh.c: Likewise.
8530 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8531 * config/sh/sh_treg_combine.cc: Likewise.
8532 * config/sol2-c.c: Likewise.
8533 * config/sol2-cxx.c: Likewise.
8534 * config/sol2-stubs.c: Likewise.
8535 * config/sol2.c: Likewise.
8536 * config/sparc/sparc-c.c: Likewise.
8537 * config/sparc/sparc.c: Likewise.
8538 * config/spu/spu-c.c: Likewise.
8539 * config/spu/spu.c: Likewise.
8540 * config/stormy16/stormy16.c: Likewise.
8541 * config/v850/v850-c.c: Likewise.
8542 * config/v850/v850.c: Likewise.
8543 * config/vax/vax.c: Likewise.
8544 * config/visium/visium.c: Likewise.
8545 * config/vms/vms-c.c: Likewise.
8546 * config/vms/vms.c: Likewise.
8547 * config/vxworks.c: Likewise.
8548 * config/winnt-c.c: Likewise.
8549 * config/xtensa/xtensa.c: Likewise.
8551 2015-10-16 Christian Bruel <christian.bruel@st.com>
8554 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
8555 (FUNCTION_BOUNDARY_P): New macro:
8556 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
8558 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
8559 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
8560 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
8561 * function.c (allocate_struct_function): Call
8562 relayout_function hook.
8563 * passes.c (rest_of_decl_compilation): Likewise.
8565 2015-10-16 Christian Bruel <christian.bruel@st.com>
8568 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
8569 * config/arm/arm.c (arm_option_override_internal): Call
8570 arm_override_options_after_change_1.
8571 (arm_override_options_after_change): New function.
8572 (arm_override_options_after_change_1): Likewise.
8573 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
8575 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8578 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8581 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
8583 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
8584 argument is an ADDR_EXPR.
8586 2015-10-16 Richard Biener <rguenther@suse.de>
8588 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
8589 and get rid of force_gimple_operand_gsi.
8590 (gimple_fold_builtin_memory_chk): Likewise.
8591 (gimple_fold_builtin_stxcpy_chk): Likewise.
8592 (rewrite_to_defined_overflow): Likewise.
8593 (gimple_convert_to_ptrofftype): New function.
8594 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
8596 2015-10-16 Richard Biener <rguenther@suse.de>
8598 * tree-nested.h (build_addr): Adjust prototype.
8599 * tree-nested.c (build_addr): Remove context argument and use
8601 (get_static_chain): Adjust calls to build_addr.
8602 (convert_nl_goto_reference): Likewise.
8603 (convert_tramp_reference_op): Likewise.
8604 (finalize_nesting_tree_1): Likewise.
8605 * value-prof.c (gimple_ic): Likewise.
8606 * gimple-low.c (lower_builtin_setjmp): Likewise.
8607 * tree-parloops.c (take_address_of): Likewise.
8608 (create_call_for_reduction_1): Likewise.
8609 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
8610 (gimple_gen_ic_func_profiler): Likewise.
8612 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8614 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8617 2015-10-16 Michael Collison <michael.collison@linaro.org>
8618 Andrew Pinski <andrew.pinski@caviumnetworks.com>
8620 * match.pd ((x < y) && (x < z) -> x < min (y,z),
8621 (x > y) and (x > z) -> x > max (y,z))
8623 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
8624 Szabolcs Nagy <szabolcs.nagy@arm.com>
8626 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
8627 (DYNAMIC_LINKER): Renamed to ...
8628 (GLIBC_DYNAMIC_LINKER): This.
8629 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
8631 2015-10-15 Marek Polacek <polacek@redhat.com>
8633 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
8634 gimple_call_builtin instead of is_gimple_call.
8636 2015-10-15 Richard Biener <rguenther@suse.de>
8638 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
8640 2015-10-15 Richard Biener <rguenther@suse.de>
8642 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
8643 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
8644 * tree-vect-loop.c (get_initial_def_for_induction): Drop
8645 use of force_gimple_operand in favor of gimple_build.
8646 Use vect_get_new_ssa_name.
8647 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
8648 (vectorizable_mask_load_store): Likewise.
8649 (vectorizable_call): Likewise.
8650 (vectorizable_store): Likewise.
8651 (vectorizable_load): Likewise.
8652 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
8654 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
8656 PR tree-optimization/67945
8657 * tree-pass.h (PROP_gimple_opt_math): New property flag.
8658 * generic-match-head.c (canonicalize_math_p): New function.
8659 * gimple-match-head.c: Include tree-pass.h.
8660 (canonicalize_math_p): New function.
8661 * match.pd: Group math built-in rules into simplifications
8662 and canonicalizations. Guard the latter with canonicalize_math_p.
8663 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
8664 PROP_gimple_opt_math property.
8666 2015-10-15 Marek Polacek <polacek@redhat.com>
8668 PR tree-optimization/67953
8669 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
8671 2015-10-15 Jiong Wang <jiong.wang@arm.com>
8673 * config.gcc: Recognize "." in architecture base name for AArch64.
8675 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
8677 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
8679 * config/mips/mips.c (mips_setup_incoming_varargs): Use
8680 ROUND_DOWN to calculate off.
8681 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
8682 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
8685 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
8687 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
8689 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
8690 Torvald Riegel <triegel@redhat.com>
8693 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
8694 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8695 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
8696 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
8697 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
8698 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8699 trechkpt, treclaim, tsr, ttest): New define_expands.
8700 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
8701 __TM_FENCE__ for htm.
8702 * doc/extend.texi: Update documentation for htm builtins.
8704 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
8707 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
8708 REG_CFA_EXPRESSION to aligned SSE stores.
8710 2015-10-14 Jeff Law <law@redhat.com>
8712 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
8713 num_threaded_edges for successful FSM threads too.
8715 2015-10-14 Richard Biener <rguenther@suse.de>
8717 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
8718 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
8719 (vect_get_vec_def_for_operand): Remove unused parameter.
8720 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
8721 (vect_create_epilog_for_reduction): Likewise.
8722 (vectorizable_reduction): Likewise.
8723 (vectorizable_live_operation): Likewise.
8724 * tree-vect-patterns.c (type_conversion_p): Likewise.
8725 (vect_recog_vector_vector_shift_pattern): Likewise.
8726 (check_bool_pattern): Likewise.
8727 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8728 (vect_analyze_slp_cost_1): Likewise.
8729 * tree-vect-stmts.c (process_use): Likewise.
8730 (vect_get_vec_def_for_operand): Do not handle reductions.
8731 (vect_get_vec_defs): Adjust.
8732 (vectorizable_mask_load_store): Likewise.
8733 (vectorizable_call): Likewise.
8734 (vectorizable_simd_clone_call): Likewise.
8735 (vect_get_loop_based_defs): Likewise.
8736 (vectorizable_conversion): Likewise.
8737 (vectorizable_assignment): Likewise.
8738 (vectorizable_shift): Likewise.
8739 (vectorizable_operation): Likewise.
8740 (vectorizable_store): Likewise.
8741 (vectorizable_load): Likewise.
8742 (vect_is_simple_cond): Likewise.
8743 (vectorizable_condition): Likewise.
8744 (vect_is_simple_use): Remove unused parameters.
8745 (vect_is_simple_use_1): Adjust and rename.
8747 2015-10-14 Richard Biener <rguenther@suse.de>
8749 PR tree-optimization/67915
8750 * match.pd: Handle comparisons of addresses of STRING_CSTs.
8751 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
8752 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
8753 stmt folding in favor of GIMPLE one.
8755 2015-10-14 Marek Polacek <polacek@redhat.com>
8757 PR tree-optimization/67815
8758 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
8759 (reassociate_bb): Call it.
8761 2015-10-14 Richard Biener <rguenther@suse.de>
8763 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8764 Reset info at start.
8765 (vect_analyze_group_access_1): Add debug print.
8766 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
8767 (vect_compute_single_scalar_iteration_cost): ... to this.
8768 (vect_analyze_loop_2): Adjust.
8769 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
8770 * tree-vectorizer.h: ... here.
8771 (add_stmt_info_to_vec): Remove.
8772 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
8774 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
8776 * targhooks.c (default_target_option_pragma_parse): Do not warn if
8777 called on behalf of "#pragma GCC pop_options".
8779 2015-10-14 Tom de Vries <tom@codesourcery.com>
8781 * cfganal.c (verify_no_unreachable_blocks): New function.
8782 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
8783 verify_no_unreachable_blocks.
8784 cfganal.h (verify_no_unreachable_blocks): Declare.
8786 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
8788 * common.opt: Add flag_checking.
8789 * system.h (CHECKING_P): Define.
8791 2015-10-13 Jakub Jelinek <jakub@redhat.com>
8792 Aldy Hernandez <aldyh@redhat.com>
8793 Ilya Verbin <ilya.verbin@intel.com>
8795 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
8796 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
8797 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
8798 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
8799 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
8800 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
8801 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
8802 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
8803 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
8804 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
8805 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
8806 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
8807 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
8808 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
8809 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
8810 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8811 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8812 (struct cgraph_simd_clone_arg): Adjust comment.
8813 * coretypes.h (struct gomp_ordered): New forward decl.
8814 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
8815 set critical clauses to it.
8816 (gimple_build_omp_ordered): Return gomp_ordered * instead of
8817 gimple *. Add CLAUSES argument, set ordered clauses to it.
8818 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
8820 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
8821 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
8822 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
8823 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
8824 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
8825 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
8826 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
8827 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
8829 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
8830 (gomp_critical): Add clauses field.
8831 (gomp_ordered): New struct.
8832 (is_a_helper <gomp_ordered *>::test): New inline.
8833 (gimple_build_omp_critical): Add CLAUSES argument.
8834 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
8835 instead of gimple *.
8836 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
8837 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
8838 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
8839 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
8841 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
8842 (dump_gimple_omp_target): Handle enter data and exit data.
8843 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
8844 (dump_gimple_omp_critical): Print clauses.
8845 (dump_gimple_omp_ordered): New function.
8846 (dump_gimple_omp_task): Handle taskloop.
8847 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
8849 * gimple-walk.c (walk_gimple_op): Walk clauses on
8850 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
8851 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
8852 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
8853 (struct gimplify_omp_ctx): Add loop_iter_var,
8854 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
8855 and target_firstprivatize_array_bases fields.
8856 (delete_omp_context): Release loop_iter_var.
8857 (gimplify_bind_expr): Handle ORT_NONE.
8858 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
8859 ORT_COMBINED_TARGET.
8860 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
8861 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
8862 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
8863 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
8864 ctx->target_map_scalars_firstprivate.
8865 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
8866 data sharing clauses. For data sharing clause with VLA decl
8867 on omp target/target data don't add firstprivate for the pointer.
8868 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
8869 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
8870 the addition of ORT_COMBINED_TARGET.
8871 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
8872 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
8873 pointers as zero length array sections and
8874 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
8876 (omp_check_private): Handle omp_member_access_dummy_var vars.
8877 (find_decl_expr): New function.
8878 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
8879 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
8880 Handle OMP_CLAUSE_GANG separately. Handle
8881 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8882 clauses. Diagnose linear clause on combined
8883 distribute {, parallel for} simd construct, unless it is the loop
8884 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
8885 Handle map clauses with COMPONENT_REF. Initialize
8886 ctx->target_map_scalars_firstprivate,
8887 ctx->target_firstprivatize_array_bases and
8888 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
8889 linear clause even to target region if combined. Remove
8890 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
8891 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
8892 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
8893 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
8894 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
8895 For linear clause on worksharing loop combined with parallel add
8896 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
8897 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
8898 omp_member_access_dummy_var vars. Add lastprivate clause to outer
8900 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
8901 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
8902 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
8904 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
8905 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
8906 in target body. Handle removal of struct mapping if struct is not
8907 seen in target body. Remove GOMP_MAP_STRUCT map clause on
8908 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
8909 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
8910 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
8911 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
8912 clause appear together. Handle
8913 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
8914 clause if it has map-type-modifier always. Handle
8915 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8917 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
8918 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
8920 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
8921 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
8922 iterators in doacross loops.
8923 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
8924 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
8925 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
8926 for the addition of ORT_COMBINED_TARGET.
8927 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
8928 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
8929 and OMP_TARGET_EXIT_DATA.
8930 (gimplify_omp_ordered): New function.
8931 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
8932 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
8933 Gimplify clauses on OMP_CRITICAL.
8934 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
8935 expand_GOMP_SIMD_ORDERED_END): New functions.
8936 * internal-fn.def (GOMP_SIMD_ORDERED_START,
8937 GOMP_SIMD_ORDERED_END): New internal functions.
8938 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
8939 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
8940 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
8941 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
8942 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
8943 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
8944 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
8945 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
8946 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
8947 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
8948 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
8949 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
8950 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
8951 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
8953 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
8954 GOMP_target_data_41, adjust type.
8955 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
8956 GOMP_target_update_41, adjust type.
8957 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
8959 (struct omp_for_data): Add ordered and simd_schedule fields.
8960 (omp_member_access_dummy_var, unshare_and_remap_1,
8961 unshare_and_remap, is_taskloop_ctx): New functions.
8962 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
8963 (extract_omp_for_data): Handle taskloops and doacross loops
8964 and simd schedule modifier.
8965 (omp_adjust_chunk_size): New function.
8966 (get_ws_args_for): Use it.
8967 (lookup_sfield): Change first argument to splay_tree_key,
8968 add overload with first argument tree.
8969 (maybe_lookup_field): Likewise.
8970 (use_pointer_for_field): Handle omp_member_access_dummy_var.
8971 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
8972 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
8973 (build_outer_var_ref): Add LASTPRIVATE argument, handle
8974 taskloops and omp_member_access_dummy_var vars.
8975 (build_sender_ref): Change first argument to splay_tree_key,
8976 add overload with first argument tree.
8977 (install_var_field): For mask & 8 use &DECL_UID as key instead
8979 (fixup_child_record_type): Const qualify *.omp_data_i.
8980 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
8981 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
8982 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
8983 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
8984 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
8985 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
8986 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
8988 (add_taskreg_looptemp_clauses): New function.
8989 (scan_omp_parallel): Use it.
8990 (scan_omp_task): Likewise.
8991 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8992 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
8993 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8994 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
8995 sandwiched taskloop constructs. Type check
8996 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
8997 region. Diagnose depend(source) or depend(sink:...) on
8998 target constructs or task/taskloop.
8999 (handle_simd_reference): Use get_name.
9000 (lower_rec_input_clauses): Likewise. Ignore all
9001 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
9002 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
9003 before passing it to omp_clause_{default,copy}_ctor. Handle
9004 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
9005 lastprivate_firstprivate flag for linear that needs copyin and
9006 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
9007 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
9008 on taskloop lookup decl in outer context. Pass true to
9009 build_outer_var_ref lastprivate argument. Handle
9010 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
9011 outside of outer taskloop for.
9012 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
9014 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
9015 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
9016 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
9017 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
9018 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
9019 abstract origin. Handle omp_member_access_dummy_var vars.
9020 (expand_parallel_call): Use expand_omp_build_assign.
9021 (expand_task_call): Handle taskloop construct expansion. Add
9022 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
9023 integers. Add priority argument to GOMP_task* calls. Or in
9024 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
9026 (expand_omp_build_assign): Add prototype. Add AFTER
9027 argument, if true emit statements after *GSI_P and continue linking.
9028 (expand_omp_taskreg): Adjust expand_task_call caller.
9029 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
9030 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
9031 zero_iter2_bb and first_zero_iter2 arguments, handle computation
9032 of counts even for ordered loops.
9033 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
9034 (expand_omp_ordered_source, expand_omp_ordered_sink,
9035 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
9037 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
9038 clauses on worksharing loop. Handle DOACROSS loop expansion.
9039 (expand_omp_for_static_nochunk): Handle linear clauses on
9040 worksharing loop. Adjust expand_omp_for_init_counts
9042 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
9043 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
9044 expand_omp_for_init_counts callers.
9045 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
9047 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
9048 Handle doacross loops.
9049 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9050 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
9051 GOMP_target_{41,update_41,enter_exit_data} libcalls.
9052 (expand_omp): Don't expand ordered depend constructs here, record
9053 ord_stmt instead for later expand_omp_for_generic.
9054 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9055 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
9056 clause as stand-alone directive.
9057 (lower_omp_ordered_clauses): New function.
9058 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
9059 don't lower anything.
9060 (lower_omp_for_lastprivate): Use last _looptemp_ clause
9061 on taskloop for comparison.
9062 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
9063 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
9064 expansion for linear adjustments.
9065 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9066 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
9067 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
9068 to tree * pointing to the stmt's clauses.
9069 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
9070 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9071 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
9072 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
9073 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
9074 clauses. Always use short kind and 8-bit align shift.
9075 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
9076 (struct lower_omp_regimplify_operands_data): New type.
9077 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
9079 (lower_omp_1): Use lower_omp_regimplify_operands instead of
9080 gimple_regimplify_operands.
9081 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9082 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
9083 clause as stand-alone directive.
9084 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
9085 (simd_clone_mangle): Mangle the various linear kinds
9087 (simd_clone_adjust_argument_types): Handle
9088 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
9089 (simd_clone_init_simd_arrays): Don't do anything for uval.
9090 (simd_clone_adjust): Handle
9091 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
9092 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
9093 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
9094 * omp-low.h (omp_member_access_dummy_var): New prototype.
9095 * passes.def (pass_simduid_cleanup): Schedule another copy of the
9096 pass after all optimizations.
9097 * tree.c (omp_clause_code_name): Add entries for
9098 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9099 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9100 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
9101 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
9102 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
9103 OMP_CLAUSE_REDUCTION 5 arguments. Handle
9104 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9105 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
9107 * tree-core.h (enum omp_clause_linear_kind): New.
9108 (struct tree_omp_clause): Change type of map_kind
9109 from unsigned char to unsigned int. Add subcode.if_modifier
9110 and subcode.linear_kind fields.
9111 (enum omp_clause_code): Add
9112 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9113 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9114 (OMP_CLAUSE_REDUCTION): Document
9115 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
9116 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
9117 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
9118 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
9120 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
9122 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
9124 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
9125 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
9127 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
9128 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
9129 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
9130 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
9131 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
9132 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
9133 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
9134 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
9135 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
9136 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
9137 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
9138 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
9139 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
9140 * tree-inline.c (remap_gimple_stmt): Handle clauses on
9141 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
9142 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
9143 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
9144 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
9145 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
9146 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
9147 (convert_local_omp_clauses): Likewise.
9148 * tree-pretty-print.c (dump_omp_clause): Handle
9149 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
9150 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
9151 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
9152 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
9153 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
9154 GOMP_MAP_FORCE_DEALLOC. Handle
9155 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
9156 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
9157 and clauses on OMP_ORDERED and OMP_CRITICAL.
9158 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
9159 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
9160 (vectorize_loops): Adjust comments.
9161 (pass_simduid_cleanup::execute): Likewise.
9162 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
9163 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
9164 * wide-int.h (wi::gcd): New.
9166 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
9168 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
9169 (ix86_function_arg_advance): Ditto.
9170 (ix86_function_arg): Ditto.
9171 (ix86_gimplify_va_arg): Ditto.
9172 (ix86_class_max_nregs): Ditto.
9173 (inline_memory_move_cost): Ditto.
9174 (ix86_set_reg_reg_cost): Ditto.
9175 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
9177 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
9180 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
9182 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
9184 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
9185 ROUND_UP macro and UNITS_PER_WORD * 2.
9186 * config/sparc/sparc.c (sparc_compute_frame_size):
9187 Use ROUND_UP and ROUND_DOWN macros where applicable.
9188 (function_arg_record_value, function_arg_record_value_1)
9189 (function_arg_record_value_1): Ditto.
9190 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
9191 alignment to double-word.
9192 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
9193 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
9196 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
9198 * rtl.h (print_insn): Fix prototype.
9200 2015-10-13 Tom de Vries <tom@codesourcery.com>
9202 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
9203 -1. Add assert that returned entry matches phi argument.
9204 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
9205 free_stmt_vec_info_vec ...
9206 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
9209 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
9211 PR tree-optimization/67909, 67947
9212 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
9213 really skip the inner loop.
9215 2015-10-13 Jeff Law <law@redhat.com>
9217 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9218 Allow single block jump threading paths.
9220 2015-10-13 Tom de Vries <tom@codesourcery.com>
9222 PR tree-optimization/67476
9223 * doc/invoke.texi (@item parloops-schedule): New item.
9224 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
9225 * tree-parloops.c: Include params-enum.h.
9226 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
9228 2015-10-13 Tom de Vries <tom@codesourcery.com>
9230 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
9231 * params-enum.h: New file.
9232 * opts.c (handle_param): Handle case that param arg is a string.
9233 * params-list.h: Handle DEFPARAMENUM5 in params.def.
9234 * params.c (find_param): New function, factored out of ...
9235 (set_param_value): ... here.
9236 (param_string_value_p): New function.
9237 * params.h (struct param_info): Add value_names field.
9238 (find_param, param_string_value_p): Declare.
9240 2015-10-13 Tom de Vries <tom@codesourcery.com>
9242 PR tree-optimization/67476
9243 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
9245 2015-10-13 Richard Biener <rguenther@suse.de>
9247 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
9248 the data dependence vector.
9249 (vect_peeling_hash_insert): Get the peeling hash table as argument.
9250 (vect_peeling_hash_get_lowest_cost): Likewise.
9251 (vect_enhance_data_refs_alignment): Adjust.
9252 (struct _vect_peel_info, struct _vect_peel_extended_info,
9253 struct peel_info_hasher): Move from ...
9254 * tree-vectorizer.h: ... here.
9255 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
9256 (LOOP_VINFO_PEELING_HTAB): Likewise.
9257 (struct _loop_vec_info): Remove min_profitable_iters and
9258 peeling_htab members.
9259 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
9261 (destroy_loop_vec_info): Adjust.
9262 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
9263 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
9264 to estimate alias versioning cost.
9265 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
9267 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
9269 * real.h (real_isinteger): Declare.
9270 * real.c (real_isinteger): New function.
9271 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
9272 if y is an even integer.
9274 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9277 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9278 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9279 counts when these are more informative.
9281 2015-10-12 Jeff Law <law@redhat.com>
9283 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
9284 (fsm_find_control_stmt_paths): Change name of first argument to
9285 more accurately relfect what it really is. Handle simplification
9286 of GIMPLE_COND after finding a thread path for NAME.
9287 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
9288 nontrivial conditions to be handled by FSM threader.
9289 (thread_through_normal_block): Extract the name to looup via
9290 FSM threader from COND_EXPR.
9292 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
9293 restriction that traced SSA_NAME is a user variable.
9295 2015-10-12 Tom de Vries <tom@codesourcery.com>
9297 PR tree-optimization/67476
9298 * omp-low.c (expand_omp_for_generic): Add missing phis.
9300 2015-10-12 Tom de Vries <tom@codesourcery.com>
9302 PR tree-optimization/67476
9303 * omp-low.c (expand_omp_for_generic): Handle simple latch.
9305 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
9307 * config/aarch64/aarch64-simd-builtins.def: Update builtins
9308 tables: add tbl3 and tbx4.
9309 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
9310 (aarch64_tbx4v8qi): New.
9311 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
9312 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
9313 Rewrite using builtin functions.
9314 * config/aarch64/iterators.md (UNSPEC_TBX): New.
9316 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
9318 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
9320 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
9321 Use ROUND_UP and ROUND_DOWN macros where applicable.
9322 (rs6000_darwin64_record_arg_flush): Ditto.
9323 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
9324 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
9327 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
9329 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
9330 (AARCH64_ROUND_DOWN): Ditto.
9331 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
9333 2015-10-12 Richard Biener <rguenther@suse.de>
9336 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
9337 code that analyzes IVs on each stmt but in a cheaper way avoiding
9340 2015-10-12 Nick Clifton <nickc@redhat.com>
9342 * config/msp430/msp430.c (msp430_mcu_names): Rename to
9343 msp430_mcu_data, add fields for ISA and hardware multiply
9344 support. Import latest data from the devices.csv file.
9345 (msp430_override_option): Use the data from the new array.
9346 (msp430_use_f5_series_hwmult): Likewise.
9347 (use_32bit_hwmult): Likewise.
9348 (msp430_no_hwmult): Likewise.
9349 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
9351 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
9352 not recognised then no hardware multiply support is assumed and
9353 that only the MSP430 ISA is allowed.
9355 2015-10-12 Richard Biener <rguenther@suse.de>
9357 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
9359 (vect_analyze_loop_2): ... here.
9361 2015-10-11 Jason Merrill <jason@redhat.com>
9364 * expr.c (store_field): Call store_constructor directly when
9365 storing a CONSTRUCTOR into a target smaller than its type.
9366 Guard against unsafe bitwise copy.
9368 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9370 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9371 counts when these are more informative.
9373 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9375 * tree-profile.c (tree_profiling): Do not clear
9376 pure/const when not instrumenting.
9377 (pass tree_profile): Add dump of symtab.
9379 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9381 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
9383 (fold_addr_of_array_ref_difference): Likewise.
9385 2015-10-11 Jeff Law <law@redhat.com>
9387 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
9388 tree-ssa-threadbackward.c.
9389 (fsm_find_control_statement_thread_paths): Likewise.
9390 (thread_through_normal_block): Break out FSM bits and move them
9391 into a new function in tree-ssa-threadbackward.c. Call new function
9393 Minimize header file usage.
9394 * tree-ssa-threadbackward.h: New file.
9395 * tree-ssa-threadbackward.c: Likewise.
9396 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
9398 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
9400 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
9402 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
9404 PR rtl-optimization/67864
9405 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
9406 fallthrough edges for conditional jumps. Don't sort candidate
9407 edges if not optimizing for speed.
9409 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9411 * defaults.h (REVERSE_CONDITION): New default definition.
9412 * jump.c (reversed_comparison_code_parts): Adjust.
9414 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9416 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
9417 check HARD_FRAME_POINTER_IS_ARG_POINTER.
9419 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9421 * defaults.h (FRAME_ADDR_RTX): New default definition.
9422 * builtins.c (expand_builtin_return_addr): Adjust.
9424 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9426 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
9427 * builtins.c (expand_builtin_return_addr): Adjust.
9429 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9431 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
9432 * builtins.c (expand_builtin_return_addr): Adjust.
9433 * doc/tm.texi: Likewise.
9434 * doc/tm.texi.in: Likewise.
9435 * except.c (expand_builtin_unwind_init): Likewise.
9437 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9439 * builtins.c (expand_builtin_return_addr): Adjust.
9440 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
9442 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
9444 * tree.c (type_with_interoperable_signedness): New.
9445 (gimple_canonical_types_compatible_p): Use it.
9446 * tree.h (type_with_interoperable_signedness): Declare
9448 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
9450 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
9451 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
9452 when OEP_ADDRESS_OF is se.
9454 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
9455 Sebastian Pop <s.pop@samsung.com>
9457 * graphite-dependences.c (scop_get_dependences): Add dump of the
9458 data dependence graph.
9459 * graphite-poly.c (print_isl_union_map): New.
9460 (debug_isl_union_map): New.
9461 * graphite-poly.h (print_isl_union_map): Declare.
9462 (debug_isl_union_map): Declare.
9464 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
9465 Sebastian Pop <s.pop@samsung.com>
9467 * graphite-poly.c (print_iteration_domain): Remove verbosity.
9468 Remove OpenScop formatting.
9469 (print_iteration_domains): Same.
9470 (debug_iteration_domain): Same.
9471 (debug_iteration_domains): Same.
9474 (dump_gbb_cases): Same.
9475 (dump_gbb_conditions): Same.
9478 (print_pbb_body): Same.
9480 (print_scop_params): Same.
9481 (print_scop_context): Same.
9483 (debug_pbb_domain): Same.
9485 (debug_scop_context): Same.
9487 (debug_scop_params): Same.
9488 * graphite-poly.h: Same.
9489 * graphite.c (graphite_transform_loops): Same.
9491 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9493 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
9494 call that isn't needed.
9496 2015-10-09 Jeff Law <law@redhat.com>
9498 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
9499 rather than moving each name to the freelist individually.
9501 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
9503 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
9504 * frame-header-opt.c: New file.
9505 * config/mips/mips-proto.h (mips_register_frame_header_opt):
9507 * config/mips/mips.c (mips_compute_frame_info): Check
9508 optimize_call_stack flag.
9509 (mips_option_override): Register new frame_header_opt pass.
9510 (mips_frame_info, mips_int_mask, mips_shadow_set,
9511 machine_function): Move these types to...
9512 * config/mips/mips.h: here.
9513 (machine_function): Add does_not_use_frame_header and
9514 optimize_call_stack fields.
9515 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
9516 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
9518 * config/mips/mips.opt (mframe-header-opt): Add new option.
9520 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
9522 * config/i386/i386.c
9523 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
9524 ROUND_DOWN where applicable.
9526 2015-10-09 Jeff Law <law@redhat.com>
9528 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
9531 2015-10-09 Renlin Li <renlin.li@arm.com>
9533 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
9534 operands[0] and operands[2].
9535 (neon_vtrn<mode>_insn): Likewise.
9536 (neon_vzip<mode>_insn): Likewise.
9538 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
9540 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
9541 ((X & C2) << C1): Expand to...
9542 (X {&,^,|} C2 << C1): ...This.
9543 ((X & C2) >> C1): Expand to...
9544 (X {&,^,|} C2 >> C1): ...This.
9546 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
9549 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
9550 Adjust embedded rounding/SAE specifier position.
9551 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
9552 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
9553 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
9554 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
9555 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
9557 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
9559 2015-10-09 Martin Jambor <mjambor@suse.cz>
9561 tree-optimization/67794
9562 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
9563 between types of state,ents but accept original definitions as a
9565 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
9566 iterate over definitions.
9568 2015-10-09 James Norris <jnorris@codesourcery.com>
9570 * config/rs6000/rs6000.c (rs6000_offload_options): New.
9571 (TARGET_OFFLOAD_OPTIONS): New.
9573 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
9576 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
9579 * function.c (expand_function_end): Move return value
9580 promotion past the handling of PARALLELs and CONCATs.
9582 PR rtl-optimization/67828
9583 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
9584 (tree_may_unswitch_on): Don't unswitch on expressions
9585 involving undefined values.
9587 2015-10-09 Richard Biener <rguenther@suse.de>
9589 * genmatch.c (print_operand): Fix formatting.
9590 (dt_node::append_simplify): Warn for multiple simplifiers
9591 that match the same pattern.
9592 * match.pd (log (exp @0)): Remove duplicates.
9594 2015-10-09 Richard Biener <rguenth@suse.de>
9597 * gimple-fold.c (optabs-query.h): Include
9598 (gimple_fold_builtin_memory_op): Allow unaligned stores
9599 when movmisalign_optabs are available.
9601 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9604 * config/arm/arm.md (movmisalign<mode>): New.
9605 * config/arm/iterators.md (HSI): New.
9607 2015-10-09 Richard Biener <rguenther@suse.de>
9609 PR tree-optimization/67891
9610 * gimple-match.h (gimple_simplified_result_is_gimple_val):
9612 (gimple_resimplify1): Declare.
9613 (gimple_resimplify2): Likewise.
9614 (gimple_resimplify3): Likewise.
9615 * gimple-match-head.c (gimple_resimplify1): Export.
9616 (gimple_resimplify2): Likewise.
9617 (gimple_resimplify3): Likewise.
9618 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
9619 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9620 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
9621 to avoid creating stmts without VN info.
9623 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
9625 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
9628 2015-10-08 Jeff Law <law@redhat.com>
9630 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
9631 and release_ssa_name in two places.
9632 (gimple_stringop_fixed_value): Similarly.
9634 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
9637 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
9638 unlink_stmt_vdef and release_ssa_name_fn.
9640 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
9643 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
9645 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
9646 SSE register save area to 16 bytes only if the incoming stack
9647 boundary is no less than 16 bytes.
9649 2015-10-08 Jeff Law <law@redhat.com>
9651 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
9652 release_ssa_name. Fix typo in comment.
9654 2015-10-08 Nathan Sidwell <nathan@acm.org>
9656 * config/nvptx/nvptx.h (struct machine_function): Add comment.
9657 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
9658 may return pointer as well as in memory.
9659 (nvptx_output_return): Likewise.
9661 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
9663 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
9664 (fold_builtin_1): Update accordingly. Handle constant arguments here.
9665 * match.pd: Add rules previously handled by fold_builtin_sqrt
9666 and fold_builtin_cbrt.
9668 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
9670 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
9671 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
9672 * fold-const.h (tree_unary_nonnegative_warnv_p)
9673 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9674 (tree_expr_nonnegative_warnv_p): Add depth parameters.
9675 * fold-const.c: Include gimple-fold.h and params.h.
9676 (tree_ssa_name_nonnegative_warnv_p): New function.
9677 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
9678 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9679 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
9680 Add a depth parameter and increment it for recursive calls to
9681 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
9682 to handle SSA names.
9683 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
9684 (gimple_stmt_nonnegative_warnv_p): Declare.
9685 * tree-vrp.c (remove_range_assertions): Remove assert that condition
9686 cannot be proven false.
9687 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
9688 (gimple_stmt_nonnegative_warnv_p): Move to...
9689 * gimple-fold.c: ...here. Add depth parameters and pass them
9690 down to the tree routines. Accept statements that aren't
9691 assignments or calls but just return false for them.
9692 (gimple_val_nonnegative_real_p): Delete.
9693 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
9694 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
9695 Check HONOR_NANs first.
9697 2015-10-08 Martin Jambor <mjambor@suse.cz>
9699 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
9702 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9704 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
9705 in the tail of outer-loop.
9707 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
9709 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
9712 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9714 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
9715 "cfghooks.h", add prototypes for introduced new functions.
9716 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
9717 checks on ability of loop unswitching to tree_unswitch_single_loop;
9718 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
9719 on innermost loop check.
9720 (tree_unswitch_single_loop): Add all required checks on ability of
9721 loop unswitching under zero recursive level guard.
9722 (tree_unswitch_outer_loop): New function.
9723 (find_loop_guard): Likewise.
9724 (empty_bb_without_guard_p): Likewise.
9725 (used_outside_loop_p): Likewise.
9726 (get_vop_from_header): Likewise.
9727 (hoist_guard): Likewise.
9728 (check_exit_phi): Likewise.
9730 2015-10-08 Marek Polacek <polacek@redhat.com>
9732 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
9735 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9738 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
9739 create_tmp_var_raw instead of create_tmp_var.
9741 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
9743 * expr.c (store_expr_with_bounds): Handle aggregate moves from
9745 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
9746 to define gimple type system; compare aggregates only by size.
9748 2015-10-07 Jeff Law <law@redhat.com>
9750 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
9751 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
9752 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
9755 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9756 Sebastian Pop <s.pop@samsung.com>
9758 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
9759 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
9760 (generate_isl_schedule): Same.
9761 * graphite-optimize-isl.c (scop_get_domains): Same.
9762 (apply_schedule_map_to_scop): Same.
9763 * graphite-poly.c (print_iteration_domains): Same.
9764 (remove_gbbs_in_scop): Same.
9768 * graphite-poly.h (struct scop): Rename bbs to pbbs.
9770 * graphite-scop-detection.c (compare_bb_depths): Remove.
9771 (graphite_sort_dominated_info): Remove.
9772 (try_generate_gimple_bb): Move out of scop_detection.
9773 (all_non_dominated_preds_marked_p): Remove.
9774 (build_scop_bbs_1): Remove.
9775 (build_scop_bbs): Remove.
9776 (nb_pbbs_in_loops): Do not use SCOP_BBS.
9777 (find_scop_parameters): Same.
9778 (sese_dom_walker): Rename gather_bbs.
9779 (before_dom_children): Call try_generate_gimple_bb and collect gbb
9781 (build_scops): Call gather_bbs.
9782 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
9783 (add_conditions_to_constraints): Same.
9784 (build_scop_iteration_domain): Same.
9785 (build_scop_drs): Same.
9786 (new_pbb_from_pbb): Same.
9787 * sese.c (new_sese_info): Create bbs.
9788 * sese.h (struct sese_info_t): Add bbs.
9790 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
9792 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
9793 encoding in 64-bit mode.
9795 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
9798 * config/i386/i386.c (ix86_option_override_internal): Always use
9799 8-byte minimum stack boundary in 64-bit mode.
9800 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
9801 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
9802 Add a REG_CFA_EXPRESSION note if needed.
9803 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
9804 (ix86_handle_force_align_arg_pointer_attribute): New.
9805 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
9806 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
9807 with ix86_handle_force_align_arg_pointer_attribute.
9808 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
9810 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9811 Sebastian Pop <s.pop@samsung.com>
9813 * graphite-scop-detection.c (parameter_index_in_region): Remove
9814 use of SESE_ADD_PARAMS.
9815 (find_scop_parameters): Same.
9816 * sese.c (new_sese_info): Same.
9817 * sese.h (struct sese_info_t): Remove add_params.
9818 (SESE_ADD_PARAMS): Remove.
9820 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9821 Sebastian Pop <s.pop@samsung.com>
9823 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
9826 (copy_internal_parameters): Same.
9827 (translate_isl_ast_to_gimple): Use an sese_l.
9828 (build_iv_mapping): Same.
9829 * graphite-poly.c (new_sese): Rename new_sese_info.
9830 (free_sese): Rename free_sese_info.
9831 * graphite-poly.h (struct scop): Use an sese_info_p.
9832 (scop_set_region): Same.
9833 * graphite-scop-detection.c (struct sese_l): Moved...
9834 (get_entry_bb): Moved...
9835 (get_exit_bb): Moved...
9836 (parameter_index_in_region_1): Use an sese_info_p.
9837 (parameter_index_in_region): Same.
9838 (scan_tree_for_params): Same.
9839 (find_params_in_bb): Same.
9840 (sese_dom_walker): Use an sese_l.
9841 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
9842 (reduction_phi_p): Same.
9843 (parameter_index_in_region_1): Use an sese_info_p.
9844 (propagate_expr_outside_region): Use an sese_l.
9845 * graphite.c: Replace uses of SCOP_REGION.
9846 * sese.c (sese_record_loop): Use an sese_info_p.
9847 (build_sese_loop_nests): Same.
9848 (sese_build_liveouts_use): Same.
9849 (sese_build_liveouts_bb): Same.
9850 (sese_build_liveouts_bb): Same.
9851 (sese_bad_liveouts_use): Same.
9852 (sese_reset_debug_liveouts_bb): Same.
9853 (sese_build_liveouts): Same.
9854 (new_sese): Renamed new_sese_info.
9855 (free_sese): Renamed free_sese_info.
9856 (set_rename): Use an sese_info_p.
9857 (graphite_copy_stmts_from_block): Same.
9858 (copy_bb_and_scalar_dependences): Same.
9859 (outermost_loop_in_sese_1): Use an sese_l.
9860 (outermost_loop_in_sese): Same.
9861 (if_region_set_false_region): Use an sese_info_p.
9862 (move_sese_in_condition): Same.
9863 (scalar_evolution_in_region): Use an sese_l.
9864 * sese.h (struct sese_l): ... here.
9865 (SESE_ENTRY): Remove.
9866 (SESE_ENTRY_BB): Remove.
9867 (SESE_EXIT): Remove.
9868 (SESE_EXIT_BB): Remove.
9869 (sese_contains_loop): Use an sese_info_p.
9870 (sese_nb_params): Same.
9871 (bb_in_sese_p): Use an sese_l.
9872 (stmt_in_sese_p): Same.
9873 (defined_in_sese_p): Same.
9874 (loop_in_sese_p): Same.
9875 (sese_loop_depth): Same.
9876 (struct ifsese_s): Use an sese_info_p.
9877 (gbb_loop_at_index): Use an sese_l.
9878 (nb_common_loops): Same.
9879 (scev_analyzable_p): Same.
9881 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9883 * config/i386/i386.c (ix86_conditional_register_usage): Use
9884 CALL_USED_REGISTERS_MASK.
9885 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
9887 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9890 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
9891 * configure: Regenerated.
9893 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9896 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
9897 (ix86_set_current_function): This.
9898 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
9900 2015-10-07 Richard Biener <rguenther@suse.de>
9902 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
9903 (vinfo_for_stmt): Adjust.
9904 (set_vinfo_for_stmt): Likewise.
9905 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
9906 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
9907 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
9909 (vect_analyze_loop_1): Remove.
9910 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
9911 inner loop when vectorizing an outer loop by splitting out from ...
9912 (vect_analyze_loop_form): ... here.
9914 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9917 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
9918 Use create_tmp_var_raw instead of create_tmp_var.
9920 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
9922 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
9923 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
9924 * real.c (CACHED_FRACTION): New helper macro.
9925 (dconst_third_ptr): Use it.
9926 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
9927 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
9929 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
9931 2015-10-06 Jeff Law <law@redhat.com>
9933 PR tree-optimization/67816
9934 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
9935 from remove_jump_threads_starting_at. Accept an edge rather than
9937 * tree-ssa-threadupdate.c (removed_edges): New hash table.
9938 (remove_jump_threads_including): Note edges that get removed from
9939 the CFG for later pruning of jump threading paths including them.
9940 (thread_through_all_blocks): Remove paths which include edges that
9942 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
9943 on each outgoing edges when optimizing away a control statement.
9945 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9947 * reorg.c (emit_delay_sequence): Store list of delay slot insns
9948 in a vector instead of rtx_insn_list.
9949 (add_to_delay_list): Likewise.
9950 (delete_from_delay_slot): Likewise.
9951 (optimize_skip): Likewise.
9952 (redirect_with_delay_list_safe_p): Likewise.
9953 (check_annul_list_true_false): Likewise.
9954 (steal_delay_list_from_target): Likewise.
9955 (steal_delay_list_from_fallthrough): Likewise.
9956 (redundant_insn): Likewise.
9957 (fill_simple_delay_slots): Likewise.
9958 (fill_slots_from_thread): Likewise.
9959 (fill_eager_delay_slots): Likewise.
9960 (relax_delay_slots): Likewise.
9962 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
9964 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
9965 For -mgpopt=local, also exclude unintialized common symbols.
9966 * doc/invoke.texi (Nios II Options): Document the change.
9968 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
9970 * config/aarch64/iterators.md (vwcore): Add missing cases for
9973 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9974 Sebastian Pop <s.pop@samsung.com>
9976 * graphite-poly.c (new_scop): Initialize drs.
9977 * graphite-poly.h (struct dr_info): New.
9978 (struct scop): Add drs.
9979 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
9980 (pdr_add_memory_accesses): Same.
9981 (build_poly_dr): Same.
9982 (build_alias_set): Same.
9983 (build_scop_drs): Same.
9984 (build_pbb_drs): Remove.
9985 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
9986 * tree-data-ref.h (data_reference): Remove alias_set.
9988 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9989 Sebastian Pop <s.pop@samsung.com>
9991 * graphite-poly.c (free_data_refs_aux): Remove.
9992 (free_gimple_poly_bb): Do not call free_data_refs_aux.
9993 * graphite-poly.h (struct base_alias_pair): Remove.
9994 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
9995 base_alias_pair and dr->aux.
9996 (build_alias_set): Same.
9997 * tree-data-ref.c (create_data_ref): Initialize alias_set.
9998 * tree-data-ref.h (data_reference): Add alias_set.
10000 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10001 Sebastian Pop <s.pop@samsung.com>
10003 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
10004 Do not set PDR_BASE_OBJECT_SET.
10005 * graphite-poly.h (poly_dr): Same.
10006 (PDR_BASE_OBJECT_SET): Remove.
10007 (new_poly_dr): Update decl.
10008 * graphite-sese-to-poly.c (build_poly_dr): Update call to
10010 (write_alias_graph_to_ascii_dimacs): Remove.
10011 (write_alias_graph_to_ascii_dot): Remove.
10012 (write_alias_graph_to_ascii_ecc): Remove.
10013 (dr_same_base_object_p): Remove.
10014 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
10016 (build_base_obj_set_for_drs): Remove.
10017 (dump_alias_graphs): Remove.
10018 (build_scop_drs): Remove dead code.
10020 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
10021 Peter Bergner <bergner@vnet.ibm.com>
10024 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
10025 allow registers, but provide insns for the combiner to create for
10026 loads from memory. Separate VSX code from non-VSX code. For
10027 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
10028 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
10029 so that registers come before memory operations. Drop support from
10030 converting DFmode to TFmode, if the DFmode value is in a GPR
10032 (extenddftf2_fprs): Likewise.
10033 (extenddftf2_internal): Likewise.
10034 (extenddftf2_vsx): Likewise.
10035 (extendsftf2): In the expander, only allow registers, but provide
10036 insns for the combiner to create for stores and loads.
10038 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10040 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
10041 from the decl parameter.
10043 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
10046 * gimple-fold.c (gimple_fold_builtin): Add break after
10047 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
10049 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
10051 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
10052 to scop->isl_context.
10054 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
10056 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
10057 (output_probe_stack_range): Rotate the loop and simplify.
10058 (thumb1_expand_prologue): Tweak sorry message.
10059 * config/arm/arm.md (probe_stack): Use bare string.
10061 2015-10-06 Nick Clifton <nickc@redhat.com>
10063 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
10065 2015-10-06 Nick Clifton <nickc@redhat.com>
10067 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
10068 (ATTR_PERSIST): New constant.
10069 (msp430_data_attr): New function - verifies an attribute that only
10070 applies to variables.
10071 (msp430_attributes): Add noinit and persistent attributes.
10072 (noinit_section): New variable.
10073 (presis_section): New variable.
10074 (TARGET_ASM_INIT_SECTIONS): Define.
10075 (msp430_init_sections): New function - initialises the noinit and
10076 persist section variables.
10077 (msp430_select_section): Add support for noinit and persist
10079 (msp430_section_type_flags): Likewise.
10080 * doc/extend.texi: Document the reent, critical, wakeup, noinit
10081 and persistent attributes.
10083 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10084 Sebastian Pop <s.pop@samsung.com>
10086 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
10087 (no_violations): Remove.
10088 (subtract_commutative_associative_deps): Remove.
10089 (compute_deps): Do not call subtract_commutative_associative_deps.
10090 (transform_is_safe): Remove.
10091 (graphite_legal_transform): Remove.
10092 * graphite-poly.h (graphite_legal_transform): Remove.
10094 2015-10-05 Aditya Kumar <hiraditya@msn.com>
10096 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
10097 which are in this region are passed so gcc_assert and remove redundant
10099 * sese.c (sese_build_liveouts): Pass only those bbs which are not
10101 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
10102 gcc_assert on that and remove unnecessary computation.
10103 (sese_build_liveouts_use): Same.
10105 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10107 * graphite-dependences.c (scop_get_reads): Renamed scop->context
10108 to scop->param_context.
10109 (scop_get_must_writes): Same.
10110 (scop_get_may_writes): Same.
10111 (scop_get_original_schedule): Same.
10112 (scop_get_transformed_schedule): Same.
10113 (subtract_commutative_associative_deps): Same.
10114 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
10115 (generate_isl_context): Same.
10116 (generate_isl_schedule): Same.
10117 (scop_to_isl_ast): Same.
10118 (graphite_regenerate_ast_isl): Same.
10119 * graphite-optimize-isl.c (scop_get_domains): Same.
10120 (optimize_isl): Renamed scop->context to scop->param_context.
10121 * graphite-poly.c (new_poly_bb): Change the type of argument to
10123 (new_scop): Renamed scop->context to scop->param_context.
10125 (print_scop_context): Same.
10126 * graphite-poly.h (new_poly_dr): Change the type of argument from
10127 void* to data_reference_p.
10128 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
10129 (new_poly_bb): Change the type of argument from void* to
10131 (pbb_set_black_box): Same.
10132 (struct scop): Rename context to param_context, ctx to isl_context.
10133 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
10134 Move declarations closer to assignment.
10135 (find_params_in_bb): Same.
10136 (find_scop_parameters): Same.
10137 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
10138 Global to be used for statement IDs.
10139 (isl_id_for_pbb): Use ssa_name_version_typesize.
10140 (simple_copy_phi_p): Move declarations closer to assignment.
10141 (build_pbb_scattering_polyhedrons): Same.
10142 (build_scop_scattering): Same.
10143 (isl_id_for_ssa_name): Same.
10144 (extract_affine_name): Same.
10145 (extract_affine_int): Same.
10146 (extract_affine): Same.
10147 (set_scop_parameter_dim): Use renamed member.
10148 (build_loop_iteration_domains): Same.
10149 (add_param_constraints): Same.
10150 (build_scop_iteration_domain): Same.
10151 (pdr_add_data_dimensions): Same.
10152 (build_poly_dr): Same.
10153 (build_scop_drs): Move declarations closer to assignment.
10154 (analyze_drs_in_stmts): Same.
10155 (insert_out_of_ssa_copy): Same.
10156 (insert_out_of_ssa_copy_on_edge): Same.
10157 (propagate_expr_outside_region): Same.
10158 (rewrite_phi_out_of_ssa): Same.
10159 (rewrite_degenerate_phi): Same.
10160 (rewrite_reductions_out_of_ssa): Same.
10161 (rewrite_cross_bb_scalar_dependence): Same.
10162 (handle_scalar_deps_crossing_scop_limits): Same.
10163 (rewrite_cross_bb_scalar_deps): Same.
10164 * graphite.c (graphite_transform_loops): Use renamed member.
10166 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
10169 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
10170 create_tmp_var_raw instead of create_tmp_var.
10172 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10175 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
10176 Use create_tmp_var_raw instead of create_tmp_var.
10178 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
10181 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
10182 split for upper-bank registers when target does not support
10184 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
10185 split when target does not support AVX512VL.
10187 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
10190 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
10191 Adjust to use create_tmp_var_raw instead of create_tmp_var.
10193 2015-10-06 Nick Clifton <nickc@redhat.com>
10195 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
10198 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10200 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
10201 (case ${target}): Add znver1.
10202 * config/i386/cpuid.h(bit_CLZERO): Define.
10203 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
10204 -march=native recognize znver1 processors.
10205 * config/i386/i386-c.c (ix86_target_macros_internal): Add
10206 znver1, clzero def_and_undef.
10207 * config/i386/i386.c (struct processor_costs znver1_cost): New.
10208 (m_znver1): New definition.
10209 (m_AMD_MULTIPLE): Includes m_znver1.
10210 (processor_target_table): Add znver1 entry.
10211 (ix86_target_string) : Add clzero entry.
10212 (static const char *const cpu_names): Add znver1 entry.
10213 (ix86_option_override_internal): Add znver1 instruction sets.
10214 (PTA_CLZERO) : New definition.
10215 (ix86_option_override_internal): Handle new clzerooption.
10216 (ix86_issue_rate): Add znver1.
10217 (ix86_adjust_cost): Add znver1.
10218 (ia32_multipass_dfa_lookahead): Add znver1.
10219 (has_dispatch): Add znver1.
10220 * config/i386/i386.h (TARGET_znver1): New definition.
10221 (TARGET_CLZERO): Define.
10222 (TARGET_CLZERO_P): Define.
10223 (struct ix86_size_cost): Add TARGET_ZNVER1.
10224 (enum processor_type): Add PROCESSOR_znver1.
10225 * config/i386/i386.md (define_attr "cpu"): Add znver1.
10226 (set_attr znver1_decode): New definitions for znver1.
10227 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
10229 * config/i386/mmx.md (set_attr znver1_decode): New definitions
10231 * config/i386/sse.md (set_attr znver1_decode): Likewise.
10232 * config/i386/x86-tune.def: Add znver1 tunings.
10233 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
10234 * doc/invoke.texi: Add details about znver1
10236 2015-10-06 Richard Biener <rguenther@suse.de>
10238 PR tree-optimization/67859
10239 * tree-ssa-pre.c (create_expression_by_pieces): Properly
10240 discard not inserted stmts.
10242 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
10244 * doc/extend.texi (Template Instantiation): Reorder options and
10245 de-emphasize -frepo.
10246 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
10247 example instead of -frepo.
10249 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
10252 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
10253 use create_tmp_var_raw rather than create_tmp_var.
10255 2015-10-06 Richard Biener <rguenther@suse.de>
10257 * tree-vectorizer.h (vec_info): New base class for...
10258 (_loop_vec_info): ... this and ...
10259 (_bb_vec_info): ... this.
10260 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
10261 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
10262 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
10263 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
10264 vect_destroy_datarefs): Adjust interface to take a vec_info *
10265 rather than both a loop_vec_info and a bb_vec_info argument.
10266 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
10267 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
10268 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
10269 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
10271 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
10272 (destroy_loop_vec_info, vect_analyze_loop_2,
10273 vect_is_simple_reduction_1, get_initial_def_for_induction,
10274 vect_create_epilog_for_reduction, vectorizable_reduction,
10275 vectorizable_live_operation, vect_transform_loop): Adjust.
10276 * tree-vect-patterns.c (type_conversion_p,
10277 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
10278 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
10279 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
10280 check_bool_pattern, vect_recog_bool_pattern,
10281 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
10282 * tree-vect-slp.c (vect_get_and_check_slp_defs,
10283 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
10284 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
10285 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
10286 (new_bb_vec_info): Initialize base classs.
10287 * tree-vect-stmts.c (record_stmt_cost, process_use,
10288 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
10289 vectorizable_mask_load_store, vectorizable_call,
10290 vectorizable_simd_clone_call, vectorizable_conversion,
10291 vectorizable_assignment, vectorizable_shift,
10292 vectorizable_operation, vectorizable_store,
10293 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
10294 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
10295 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
10297 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
10300 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
10301 create_tmp_var_raw rather than create_tmp_var.
10303 2015-10-05 Marek Polacek <polacek@redhat.com>
10305 * tree-ssa-loop-im.c
10306 (move_computations_dom_walker::before_dom_children): Don't set
10307 SSA_NAME_ANTI_RANGE_P.
10308 * tree-ssa-phiopt.c (value_replacement): Likewise.
10310 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10311 Sebastian Pop <s.pop@samsung.com>
10313 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
10315 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10316 Sebastian Pop <s.pop@samsung.com>
10318 * graphite-poly.c (new_gimple_poly_bb): ... here.
10319 (free_data_refs_aux): ... here.
10320 (free_gimple_poly_bb): ... here.
10321 (remove_gbbs_in_scop): ... here.
10322 (new_scop): Call new_sese.
10323 (free_scop): Call remove_gbbs_in_scop and free_sese.
10324 * graphite-poly.h (base_alias_pair): ... here.
10325 (new_gimple_poly_bb): Declare.
10326 (free_gimple_poly_bb): Declare.
10327 * graphite-scop-detection.c (parameter_index_in_region_1):
10328 (parameter_index_in_region): ... here.
10329 (scan_tree_for_params): ... here.
10330 (find_params_in_bb): ... here.
10331 (find_scop_parameters): ... here.
10332 (build_scops): Call find_scop_parameters.
10333 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
10334 (free_scops): Move...
10335 (single_pred_cond_non_loop_exit): Move...
10336 (sese_dom_walker::before_dom_children): Move...
10337 (sese_dom_walker::after_dom_children): Move...
10338 (build_poly_scop): Move...
10339 * graphite-sese-to-poly.h (base_alias_pair): Move...
10340 * graphite.c (free_scops): ... here.
10342 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10343 Sebastian Pop <s.pop@samsung.com>
10345 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
10346 (trivially_empty_bb_p): Move...
10347 (same_close_phi_node): Move...
10348 (new_gimple_poly_bb): Move...
10349 (compare_bb_depths): Move...
10350 (graphite_sort_dominated_info): Move...
10351 (remove_duplicate_close_phi): Move...
10352 (make_close_phi_nodes_unique): Move...
10353 (canonicalize_loop_closed_ssa): Move...
10354 (canonicalize_loop_closed_ssa_form): Move...
10355 (loop_ivs_can_be_represented): Move...
10356 (single_pred_cond_non_loop_exit): Move...
10357 (graphite_can_represent_init): Move...
10358 (graphite_can_represent_scev): Move...
10359 (stmt_has_simple_data_refs_p): Move...
10360 (stmt_has_side_effects): Move...
10361 (graphite_can_represent_stmt): Move...
10362 (scop_detection): ... here.
10363 (sese_dom_walker): ... and here.
10364 (build_scops): Call all moved functions.
10365 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
10366 (all_non_dominated_preds_marked_p): Move...
10367 (build_scop_bbs_1): Move...
10368 (build_scop_bbs): Move...
10369 (set_scop_parameter_dim): Move...
10370 (nb_pbbs_in_loops): Move...
10371 (build_poly_scop): Do not call all the moved functions.
10373 2015-10-05 Martin Jambor <mjambor@suse.cz>
10374 Jan Hubicka <hubicka@ucw.cz>
10376 * ipa-cp.c (ipcp_alignment_lattice): New type.
10377 (ipcp_param_lattices): Use the above to represent alignment.
10378 (ipcp_alignment_lattice::print): New function.
10379 (print_all_lattices): Use it to print alignment information.
10380 (ipcp_alignment_lattice::top_p): New function.
10381 (ipcp_alignment_lattice::bottom_p): Likewise.
10382 (ipcp_alignment_lattice::set_to_bottom): Likewise.
10383 (ipcp_alignment_lattice::meet_with_1): Likewise.
10384 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
10385 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
10386 (initialize_node_lattices): Likewise.
10387 (propagate_alignment_accross_jump_function): Work with the new class
10388 for alignment lattices.
10389 (propagate_constants_accross_call): Pass only the alignment lattice to
10390 propagate_alignment_accross_jump_function.
10391 (ipcp_store_alignment_results): Work with the new class for alignment
10394 2015-10-05 Marek Polacek <polacek@redhat.com>
10396 PR tree-optimization/67821
10397 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
10399 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
10402 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
10404 (mkoffload_cleanup): ... this. Adjust all users.
10405 (maybe_unlink): Look at save_temps and verbose flags instead of
10407 (main): Parse "-save-temps" flag.
10408 (generate_target_descr_file, generate_target_offloadend_file)
10409 (generate_host_descr_file, prepare_target_image): Pass it on.
10410 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
10411 (mkoffload_cleanup): New function.
10412 (maybe_unlink): Look at save_temps and verbose flags instead of
10414 (main): Instead of calling utils_cleanup, register atexit handler
10415 for mkoffload_cleanup.
10416 (main): Parse "-save-temps" flag.
10417 (compile_native, main): Pass it on.
10418 * lto-wrapper.c (compile_offload_image): Likewise.
10420 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10422 * gimple.h (gimple_op_ptr): Require a non const gimple *.
10423 (gimple_assign_lhs_ptr): Likewise.
10424 (gimple_assign_rhs1_ptr): Likewise.
10425 (gimple_assign_rhs2_ptr): Likewise.
10426 (gimple_assign_rhs3_ptr): Likewise.
10427 (gimple_call_lhs_ptr): Likewise.
10428 (gimple_call_fn_ptr): Likewise.
10429 (gimple_call_chain_ptr): Likewise.
10430 (gimple_call_arg_ptr): Likewise.
10431 (gimple_cond_lhs_ptr): Likewise.
10432 (gimple_cond_rhs_ptr): Likewise.
10433 (gimple_switch_index_ptr): Likewise.
10434 (gimple_return_retval_ptr): Likewise.
10436 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10438 * gimple.h (gimple_asm_input_op_ptr): Remove.
10439 (gimple_asm_output_op_ptr): Likewise.
10441 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10443 * gimple.h (gimple_location_ptr): Remove.
10444 * tree-vrp.c (check_all_array_refs): Adjust.
10446 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10448 * tree-ssa-operands.c (build_uses): store tree * instead of
10450 (finalize_ssa_uses): Adjust.
10451 (append_use): Likewise.
10452 (verify_ssa_operands): Likewise.
10454 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10456 * real.h (build_real_truncate): Declare.
10457 * tree.c (build_real_truncate): New function.
10458 (strip_float_extensions): Use it.
10459 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
10460 (fold_builtin_hypot, fold_builtin_pow): Likewise.
10461 * match.pd: Likewise.
10463 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
10464 Jiong Wang <jiong.wang@arm.com>
10466 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
10468 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10470 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
10471 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
10472 (aarch64_print_operand, aarch64_float_const_representable_p)
10473 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
10474 instead of REAL_VALUE_FROM_CONST_DOUBLE.
10475 * config/arc/arc.c (arc_print_operand): Likewise.
10476 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
10477 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
10478 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
10480 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
10481 (consttable_16): Likewise.
10482 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
10483 * config/avr/avr.c (avr_print_operand): Likewise.
10484 * config/bfin/bfin.md: Likewise (in a define_split).
10485 * config/c6x/c6x.md: Likewise (in a define_split).
10486 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
10487 (cr16_print_operand): Likewise.
10488 * config/cris/cris.c (cris_print_operand): Likewise.
10489 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
10490 * config/fr30/fr30.c (fr30_print_operand): Likewise.
10491 (fr30_const_double_is_zero): Likewise.
10492 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
10493 * config/frv/frv.md: Likewise (in a define_split).
10494 * config/frv/predicates.md (int_2word_operand): Likewise.
10495 * config/h8300/h8300.c (h8300_print_operand): Likewise.
10496 * config/i386/i386.c (standard_80387_constant_p): Likewise.
10497 (ix86_print_operand, ix86_split_to_parts): Likewise.
10498 * config/i386/i386.md: Likewise (in a define_split).
10499 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
10500 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
10501 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
10502 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
10503 (print_operand): Likewise.
10504 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
10505 * config/mep/mep.md: Likewise (in define_split).
10506 * config/microblaze/microblaze.c (microblaze_const_double_ok)
10507 (print_operand): Likewise.
10508 * config/mips/mips.md (consttable_float): Likewise.
10509 * config/mmix/mmix.c (mmix_intval): Likewise.
10510 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
10511 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
10512 * config/pa/pa.c (pa_singlemove_string): Likewise.
10513 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
10514 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
10515 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
10516 (output_toc): Likewise.
10517 * config/rs6000/rs6000.md: Likewise (in define_splits).
10518 * config/rx/rx.c (rx_print_operand): Likewise.
10519 * config/s390/s390.c (s390_output_pool_entry): Likewise.
10520 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10521 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
10522 (and also in define_splits).
10523 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
10524 (fp_high_losum_p): Likewise.
10525 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
10526 (*movsf_high): Likewise.
10527 * config/spu/spu.c (const_double_to_hwint): Likewise.
10528 * config/v850/v850.c (const_double_split): Likewise.
10529 * config/vax/vax.c (vax_float_literal): Likewise.
10530 * config/visium/visium.c (visium_expand_copysign): Likewise.
10531 * config/visium/visium.md: Likewise (in define_split).
10532 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10533 * config/xtensa/xtensa.c (print_operand): Likewise.
10534 (xtensa_output_literal): Likewise.
10535 * cprop.c (implicit_set_cond_p): Likewise.
10536 * dwarf2out.c (insert_float): Likewise.
10537 * expmed.c (expand_mult, make_tree): Likewise.
10538 * expr.c (compress_float_constant): Likewise.
10539 * rtlanal.c (split_double): Likewise.
10540 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10541 (simplify_const_unary_operation, simplify_binary_operation_1)
10542 (simplify_const_binary_operation): Likewise.
10543 (simplify_const_relational_operation): Likewise.
10544 * varasm.c (output_constant_pool_2): Likewise.
10546 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10548 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
10549 instead of CONST_DOUBLE_FROM_REAL_VALUE.
10550 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
10551 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
10552 instead of CONST_DOUBLE_FROM_REAL_VALUE.
10553 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
10554 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
10555 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
10556 (ix86_emit_swsqrtsf): Likewise.
10557 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
10558 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
10559 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10560 * config/pa/pa.c (pa_expand_builtin): Likewise.
10561 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
10562 (rs6000_scale_v2df): Likewise.
10563 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
10564 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
10565 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
10566 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
10567 (vec_ctul): Likewise.
10568 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
10569 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
10570 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
10571 * cse.c (fold_rtx): Likewise.
10572 * emit-rtl.c (immed_double_const): Likewise (in comments).
10573 (init_emit_once): Likewise.
10574 * expr.c (compress_float_constant, expand_expr_real_1)
10575 (const_vector_from_tree): Likewise.
10576 * optabs.c (expand_float, expand_fix): Likewise.
10577 * reg-stack.c (reg_to_stack): Likewise.
10578 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10579 (simplify_const_unary_operation, simplify_binary_operation_1)
10580 (simplify_const_binary_operation, simplify_relational_operation)
10581 (simplify_immed_subreg): Likewise.
10583 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10585 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
10586 * doc/tm.texi: Regenerate.
10587 * real.h (REAL_ARITHMETIC): Delete.
10588 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
10589 (ix86_expand_round_sse4): Use real_arithmetic instead of
10591 * config/i386/sse.md (round<mode>2): Likewise.
10592 * rtl.h (rtx_to_tree_code): Likewise (in comment).
10593 * explow.c (rtx_to_tree_code): Likewise (in comment).
10594 * match.pd: Likewise.
10595 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10596 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10597 (expand_pow_as_sqrts): Likewise.
10598 * tree-pretty-print.c (dump_generic_node): Remove code that
10599 was conditional on REAL_ARITHMETIC being undefined.
10601 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10603 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
10604 * doc/tm.texi: Regenerate.
10605 * real.h (real_less): Declare.
10606 (REAL_VALUES_LESS): Delete.
10607 * real.c (real_less): New function.
10608 (real_compare): Use it.
10609 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
10610 of REAL_VALUES_LESS.
10611 * config/microblaze/microblaze.c (microblaze_const_double_ok):
10613 * fold-const.c (fold_convert_const_int_from_real): Likewise.
10614 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10615 (simplify_const_relational_operation): Likewise.
10616 * tree-call-cdce.c (check_pow): Likewise.
10617 (gen_conditions_for_pow_cst_base): Likewise.
10619 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10621 * real.h (REAL_VALUES_IDENTICAL): Delete.
10622 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
10623 instead of REAL_VALUES_IDENTICAL.
10624 * fold-const.c (operand_equal_p): Likewise.
10625 * ipa-icf.c (sem_variable::equals): Likewise.
10626 * tree-complex.c (some_nonzerop): Likewise.
10627 (expand_complex_multiplication): Likewise.
10628 * tree.c (simple_cst_equal): Likewise.
10629 * varasm.c (compare_constant): Likewise.
10631 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10633 * real.h (real_equal): Declare.
10634 (REAL_VALUES_EQUAL): Delete.
10635 * real.c (real_equal): New function.
10636 (real_compare): Use it.
10637 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
10638 * doc/tm.texi: Regenerate.
10639 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
10640 real_equal instead of REAL_VALUES_EQUAL.
10641 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
10642 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
10643 (fp_const_from_val): Likewise.
10644 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
10645 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
10646 (floating_exact_log2): Likewise.
10647 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10648 * config/vax/vax.c (vax_float_literal): Likewise.
10649 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10650 * cprop.c (implicit_set_cond_p): Likewise.
10651 * expmed.c (expand_mult): Likewise.
10652 * fold-const.c (const_binop): Likewise.
10653 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10654 (simplify_const_binary_operation): Likewise.
10655 (simplify_const_relational_operation): Likewise.
10656 * tree-call-cdce.c (check_pow): Likewise.
10657 (gen_conditions_for_pow_cst_base): Likewise.
10658 * tree-inline.c (estimate_num_insns): Likewise.
10659 * tree-ssa-dom.c (record_equality): Likewise.
10660 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10661 (gimple_expand_builtin_pow): Likewise.
10662 (pass_optimize_widening_mul::execute): Likewise.
10663 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
10664 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
10665 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
10667 2015-10-05 Richard Biener <rguenther@suse.de>
10670 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
10671 consider loop header PHI defs as IVs.
10673 2015-10-05 Richard Biener <rguenther@suse.de>
10675 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
10677 (create_expression_by_pieces): ... here and build GIMPLE
10678 calls directly. Use gimple_build API and avoid force_gimple_operand.
10679 (insert_into_preds_of_block): Simplify.
10680 (do_regular_insertion): Add comment.
10682 2015-10-04 Jason Merrill <jason@redhat.com>
10684 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
10686 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
10688 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
10689 check for general register.
10690 (ix86_emit_save_regs): Ditto.
10691 (ix86_emit_save_regs_using_mov): Ditto.
10692 (ix86_emit_restore_regs_using_pop): Ditto.
10693 (ix86_emit_restore_regs_using_mov): Ditto.
10695 2015-10-03 Marek Polacek <polacek@redhat.com>
10697 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
10698 (insn-dfatab.o): Likewise.
10700 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
10702 * config.gcc (xtensa*-*-uclinux*): New configuration.
10703 * config/xtensa/uclinux.h: New file.
10704 * config/xtensa/uclinux.opt: New file.
10706 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
10708 * doc/cpp.texi (Standard Predefined Macros): Document value of
10709 __cplusplus for C++14.
10711 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
10713 * gcc.c (process_command): Use spec_machine rather than
10714 spec_host_machine to build tooldir_prefix2.
10716 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10717 Bernd Schmidt <bernds@codesourcery.com>
10719 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
10720 (Token, Stmt): Remove structs.
10721 (decls, vars, fns): Remove variables.
10722 (alloc_comment, append_stmt, is_keyword): Remove macros.
10723 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
10724 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
10725 (parse_init, parse_file): Remove functions.
10726 (read_file): Accept a pointer to a length and store into it.
10727 (process): Don't try to parse the input file, just write it out as
10728 a string, but looking for maps. Also write out the length.
10729 (main): Don't use "-S" to compile PTX code.
10731 2015-10-02 Jeff Law <law@redhat.com>
10733 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
10736 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10739 * config/nvptx/mkoffload.c (main): Scan the argument vector for
10740 -fopenmp, and skip generating an offloading image if specified.
10742 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
10744 * system.h (ROUND_UP): New macro definition.
10745 (ROUND_DOWN): Ditto.
10746 * ggc-page.c (ROUND_UP): Remove local macro definition.
10747 (PAGE_ALIGN): Implement using ROUND_UP macro.
10749 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
10750 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
10752 (ix86_compute_frame_layout): Ditto.
10753 (ix86_expand_prologue): Ditto.
10754 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
10755 to round down values.
10756 (expand_set_or_movmem_via_rep): Ditto.
10758 2015-10-02 Marek Polacek <polacek@redhat.com>
10760 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
10762 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
10764 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
10765 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
10766 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
10767 (free_gimple_bb): Renamed free_gimple_poly_bb.
10768 (try_generate_gimple_bb): Hoist loop invariant code.
10769 (analyze_drs_in_stmts): Same.
10770 (build_scop_drs): Call renamed functions.
10771 (new_pbb_from_pbb): Same.
10772 (scop_ivs_can_be_represented): Delete as functionality now moved to
10773 graphite-scop-detection.c
10774 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
10776 2015-10-02 Aditya Kumar <hiraditya@msn.com>
10778 * graphite-scop-detection.c (stmt_has_side_effects): New function
10779 outlined from stmt_simple_for_scop_p.
10780 (graphite_can_represent_stmt): Same.
10781 (stmt_simple_for_scop_p): Moved code out of this function for better
10784 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10786 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
10788 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
10790 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10792 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
10794 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
10796 PR rtl-optimization/67756
10797 * lra-constraints.c (match_reload): Add a new parameter. Use it
10798 for creating a pseudo with the same value.
10799 (curr_insn_transform): Pass a new argument to match_reload.
10801 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10803 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
10804 (expand_vec_perm_even_odd_1): Handle V64QImode.
10805 (ix86_expand_vec_perm_const_1): Try expansion with
10806 expand_vec_perm_even_odd_trunc as well.
10807 * config/i386/sse.md (VI124_AVX512F): Rename to ...
10808 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
10810 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
10811 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
10812 to V32HI and V16SI.
10813 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
10814 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
10815 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
10816 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
10817 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
10818 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
10820 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10822 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
10823 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
10825 2015-10-02 Jason Merrill <jason@redhat.com>
10828 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
10829 (diagnose_tm_1_op): Also diagnose volatile accesses in
10830 transaction_safe function.
10832 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
10834 * system.h (malloc.h): Don't include obsolete header.
10836 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10838 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
10839 (TLS_SECTION_ASM_FLAG): Delete.
10841 2015-10-02 Marek Polacek <polacek@redhat.com>
10844 * doc/invoke.texi: Document -Wduplicated-cond.
10845 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
10846 (insn-dfatab.o): Likewise.
10847 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
10850 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
10852 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
10855 2015-10-02 Renlin Li <renlin.li@arm.com>
10857 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
10859 2015-10-02 Renlin Li <renlin.li@arm.com>
10862 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
10864 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10866 PR rtl-optimization/67786
10867 PR rtl-optimization/67787
10868 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
10869 it modifies a reg used in the condition calculation.
10871 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
10873 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
10874 alternatives for reads from memory and moves from general-purpose
10876 (*aarch64_combinez_be<mode>): Likewise.
10878 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
10881 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
10882 selectany within this function without need to keep attribute.
10883 (i386_pe_encode_section_info): Remove selectany-code.
10885 2015-10-02 Richard Biener <rguenther@suse.de>
10887 * tree-ssa-sccvn.c (has_VN_INFO): New function.
10888 (free_scc_vn): Use it.
10889 (visit_use): Remove dead code and refactor to use gassign
10890 and use less indentation.
10892 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10896 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
10897 (rs6000_cannot_copy_insn_p): New function.
10898 * config/rs6000/rs6000.md (cannot_copy): New attribute.
10899 (load_toc_v4_PIC_1_normal): Set cannot_copy.
10900 (load_toc_v4_PIC_1_476): Ditto.
10902 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10904 * graphite-scop-detection.c (struct sese_l): New conversion constructor
10905 so that this type can be pushed into a vec.
10906 (class scop_builder): use sese_l to collect scops.
10907 (get_scops): New getter function.
10908 (remove_intersecting_scops): Use sese_l instead of scops_p.
10909 (intersects): Same.
10912 (remove_subscops): Same.
10913 (build_scops): Add scops to vec<scops_p> once all the scops have been
10916 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10918 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
10919 Renamed type from gimple_bb_p to gimple_poly_bb_p.
10920 (translate_isl_ast_node_user): Same.
10921 * graphite-poly.c (new_poly_bb): Same.
10922 * graphite-poly.h (gbb_from_bb): Same.
10924 * graphite-sese-to-poly.c (new_gimple_bb):
10925 gimple_bb_p -> gimple_poly_bb_p
10926 (build_scop_scattering): Same.
10927 (find_params_in_bb): Same.
10928 (add_conditions_to_domain): Same.
10929 (sese_dom_walker::before_dom_children): Same.
10930 (analyze_drs_in_stmts): Same.
10931 (new_pbb_from_pbb): Same.
10932 (free_data_refs_aux): New pointer to type base_alias_pair.
10933 * graphite-sese-to-poly.h: Same.
10934 * sese.c (if_region_set_false_region): Fixed Indentation.
10935 (move_sese_in_condition): Same.
10937 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10938 Aditya Kumar <aditya.k7@samsung.com>
10940 PR tree-optimization/66980
10941 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
10942 when data reference analysis has failed.
10944 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10945 Aditya Kumar <aditya.k7@samsung.com>
10947 PR tree-optimization/67754
10948 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
10949 scev analysis on the same loop nest as analyze_drs_in_stmts.
10950 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
10952 (try_generate_gimple_bb): Call outermost_loop_in_sese.
10953 (analyze_drs_in_stmts): Same.
10954 * sese.c (outermost_loop_in_sese): ...here.
10956 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10957 Aditya Kumar <aditya.k7@samsung.com>
10959 PR tree-optimization/67754
10960 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
10961 recursion on the inner loops.
10963 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10965 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
10966 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
10967 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
10968 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
10969 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
10971 2015-10-01 Marek Polacek <polacek@redhat.com>
10974 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
10975 create_tmp_var_raw rather than create_tmp_var.
10977 2015-10-01 Marek Polacek <polacek@redhat.com>
10979 PR tree-optimization/67769
10980 * tree-ssa-phiopt.c (conditional_replacement): Call
10981 reset_flow_sensitive_info_in_bb.
10982 (minmax_replacement): Likewise.
10983 (abs_replacement): Likewise.
10985 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
10987 * builtins.c: Don't include gomp-constants.h.
10988 (fold_builtin_1): Don't fold acc_on_device here.
10989 * gimple-fold.c: Include gomp-constants.h.
10990 (gimple_fold_builtin_acc_on_device): New.
10991 (gimple_fold_builtin): Call it.
10993 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
10995 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
10996 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
10998 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
11000 * config/arm/aarch-common-protos.h
11001 (aarch_accumulator_forwarding): New.
11002 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11003 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
11004 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11005 * config/arm/cortex-a53.md: Rewrite.
11007 2015-10-01 Richard Biener <rguenther@suse.de>
11009 * gimple-match.h (mprts_hook): Declare.
11010 * gimple-match.head.c (mprts_hook): Define.
11011 (maybe_push_res_to_seq): Use new hook.
11012 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11013 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
11014 (vn_ssa_aux::has_constants): Remove.
11015 * tree-ssa-sccvn.c: Include gimple-match.h.
11016 (VN_INFO_GET): Assert we don't re-use SSA names.
11017 (vn_get_expr_for): Remove.
11018 (expr_has_constants): Likewise.
11019 (stmt_has_constants): Likewise.
11020 (simplify_binary_expression): Likewise.
11021 (simplify_unary_expression): Likewise.
11022 (vn_lookup_simplify_result): New hook.
11023 (visit_copy): Adjust.
11024 (visit_reference_op_call): Likewise.
11025 (visit_phi): Likewise.
11026 (visit_use): Likewise.
11027 (process_scc): Likewise.
11028 (init_scc_vn): Likewise.
11029 (visit_reference_op_load): Likewise. Use match-and-simplify and
11030 a gimple seq for inserted expressions.
11031 (try_to_simplify): Remove GENERIC stmt combining code.
11032 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
11033 * tree-ssa-pre.c (eliminate_insert): Adjust.
11034 (eliminate_dom_walker::before_dom_children): Likewise.
11036 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11038 * doc/invoke.texi (Optimization Options): Add
11039 -freorder-blocks-algorithm=.
11040 (Optimize Options) <-O>: Add -freorder-blocks.
11041 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
11042 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
11043 <-freorder-blocks>: Also enabled at levels -O and -Os.
11044 <-freorder-blocks-algorithm=>: Document new option.
11046 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11048 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
11049 with flag_reorder_blocks_algorithm.
11050 * common.opt (freorder-blocks-algorithm=): New flag.
11051 (reorder_blocks_algorithm): New enum.
11052 * flag-types.h (reorder_blocks_algorithm): New enum.
11053 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
11054 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
11056 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11058 * bb-reorder.c: Add intro comment.
11059 (reorder_basic_blocks_software_trace_cache): Print a header to
11061 (edge_order): New function.
11062 (reorder_basic_blocks_simple): New function.
11063 (reorder_basic_blocks): Choose between the STC and the simple
11064 algorithms (always choose the former).
11066 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11068 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
11069 function, factored out from ...
11070 (reorder_basic_blocks): ... here.
11072 2015-10-01 Tom de Vries <tom@codesourcery.com>
11074 * tree-cfg.c (dump_function_to_file): Dump function attributes using
11075 __attribute__(()) string. Move dumping of function attributes to before
11078 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
11081 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
11082 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
11083 based on gold linker version.
11084 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
11085 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
11086 * configure, config.in: Regenerate.
11088 2015-10-01 Alan Modra <amodra@gmail.com>
11090 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
11091 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
11092 (rs6000_output_mi_thunk): Likewise.
11094 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
11096 * config/nvptx/mkoffload.c (process): Change offload data format.
11098 2015-09-30 Jeff Law <law@redhat.com>
11100 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
11101 with constant conditions.
11102 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
11103 (remove_ctrl_stmt_and_useless_edges): No longer static.
11104 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
11105 (remove_ctrl_stmt_and_useless_edges): Likewise.
11107 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
11108 Cesar Philippidis <cesar@codesourcery.com>
11110 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
11111 (TARGET_GOACC_VALIDATE_DIMS): Override.
11112 * target.def (TARGET_GOACC): New target hook prefix.
11113 (validate_dims): New hook.
11114 * targhooks.h (default_goacc_validate_dims): New.
11115 * omp-low.c (oacc_validate_dims): New.
11116 (execute_oacc_device_lower): New.
11117 (default_goacc_validate_dims): New.
11118 (pass_data_oacc_device_lower): New.
11119 (pass_oacc_device_lower): New pass.
11120 (make_pass_oacc_device_lower): New.
11121 * tree-pass.h (make_pass_oacc_device_lower): Declare.
11122 * passes.def (pass_oacc_device_lower): Add it.
11123 * doc/tm.texi: Rebuilt.
11124 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
11125 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
11127 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11129 PR rtl-optimization/67037
11130 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
11132 2015-09-30 Bernd Schmidt <bernds@redhat.com>
11134 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
11135 * passes.c: Include tree-ssanames.h.
11136 (execute_function_todo): Flush the pending free SSA_NAMEs after
11137 eliminating unreachable basic blocks.
11138 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
11139 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
11140 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
11141 (flush_ssanames_freelist): New function.
11142 (release_ssaname_fn): Put released names on the queue.
11143 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
11144 * tree-ssanames.h (flush_ssanames_freelist): Declare.
11146 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11148 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
11149 (generate_target_descr_file, generate_target_offloadend_file)
11150 (generate_host_descr_file, prepare_target_image): Pass it on.
11151 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
11152 (compile_native, main): Pass it on.
11153 * lto-wrapper.c (compile_offload_image): Likewise.
11155 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11156 Ilya Verbin <ilya.verbin@intel.com>
11157 Andrey Turetskiy <andrey.turetskiy@intel.com>
11159 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
11160 (prepare_target_image, main): Refactor argv building to use
11163 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11165 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
11166 * config/spu/spu.c (spu_expand_atomic_op): New function.
11167 * config/spu/spu.md (AINT): New mode iterator.
11168 (ATOMIC): New code iterator.
11169 (atomic_name, atomic_pred): New code predicates.
11170 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
11171 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
11172 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
11173 "atomic_<atomic_name>_fetch<mode>"): Likewise.
11175 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
11177 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
11179 (scalar_chain::convert_reg): Likewise.
11181 2015-09-30 Richard Biener <rguenther@suse.de>
11183 * builtins.c: Add comment that no new simplifications should
11186 2015-09-30 Marek Polacek <polacek@redhat.com>
11188 PR tree-optimization/67690
11189 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
11190 reset_flow_sensitive_info_in_bb.
11191 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
11192 * tree-ssanames.c: Include "gimple-iterator.h".
11193 (reset_flow_sensitive_info_in_bb): New function.
11194 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
11196 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11198 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
11199 variable, replacing it with...
11200 (offload_abi): ... this new variable. Adjust all users.
11201 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
11203 2015-09-30 Matthias Klose <doko@ubuntu.com>
11205 * configure.ac: Remove extraneous ;;.
11206 * configure: Regenerate.
11208 2015-09-29 James Bowman <james.bowman@ftdichip.com>
11210 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
11211 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
11212 predicate, disallow register for operand 2.
11214 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
11216 * graphite-dependences.c (scop_get_dependences): Moved in down
11217 in order to be visible to its caller.
11218 * graphite-poly.h: Removed compute_deps, and extend_schedule.
11220 2015-09-29 Sebastian Pop <s.pop@samsung.com>
11221 Aditya Kumar <aditya.k7@samsung.com>
11223 PR tree-optimization/67754
11224 * graphite-optimize-isl.c (optimize_isl): Call
11225 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
11227 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
11229 * builtins.c (expand_builtin_acc_on_device): Delete.
11230 (expand_builtin): Don't call it.
11231 (fold_builtin_1): Fold acc_on_device.
11233 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
11235 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
11236 (ix86_nsaved_sseregs): Likewise.
11238 2015-09-29 Jeff Law <law@redhat.com>
11240 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
11241 computation of unused value.
11243 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
11244 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
11245 inline macro expansion.
11247 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
11249 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
11250 (gen_shl_sext): Likewise.
11251 * config/sh/sh.md (divsi3): Likewise.
11252 (imm->ext_dest_operand splitter): Likewise.
11254 2015-09-29 Sebastian Pop <s.pop@samsung.com>
11255 Aditya Kumar <aditya.k7@samsung.com>
11257 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
11258 (nb_data_writes_in_bb): Remove.
11259 (split_pbb): Remove.
11260 (split_reduction_stmt): Remove.
11261 (is_reduction_operation_p): Remove.
11262 (phi_contains_arg): Remove.
11263 (follow_ssa_with_commutative_ops): Remove.
11264 (detect_commutative_reduction_arg): Remove.
11265 (detect_commutative_reduction_assign): Remove.
11266 (follow_inital_value_to_phi): Remove.
11267 (edge_initial_value_for_loop_phi): Remove.
11268 (initial_value_for_loop_phi): Remove.
11269 (used_outside_reduction): Remove.
11270 (detect_commutative_reduction): Remove.
11271 (translate_scalar_reduction_to_array_for_stmt): Remove.
11272 (remove_phi): Remove.
11273 (dr_indices_valid_in_loop): Remove.
11274 (close_phi_written_to_memory): Remove.
11275 (translate_scalar_reduction_to_array): Remove.
11276 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
11277 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
11278 (rewrite_commutative_reductions_out_of_ssa): Remove.
11279 (build_poly_scop): Remove call to
11280 rewrite_commutative_reductions_out_of_ssa.
11282 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
11284 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
11285 Add new insn types for vector load and store pairs.
11286 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
11287 types "neon_ldp{,_q}".
11288 * config/arm/cortex-a57.md (neon_load_c): Add insn types
11290 (neon_store_complex): Add insn types "neon_stp{,_q}".
11291 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
11292 "neon_{ldp,stp}_q".
11294 2015-09-29 Jeff Law <law@redhat.com>
11296 * config/rx/constraints.md (Int08): Fix undefined left shift
11298 (Sint08, Sint16, Sint24): Likewise.
11299 * config/rx/rx.c (rx_get_stack_layout): Likewise.
11301 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
11304 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
11305 left shift behaviour.
11306 * config/msp430/constraints.md ('L' constraint): Similarly.
11307 ('Ys' constraint): Similarly.
11309 2015-09-29 Richard Biener <rguenther@suse.de>
11311 PR tree-optimization/67170
11312 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
11313 the translate function pointer parameter to get the
11314 bool whether to disambiguate only by reference.
11315 (walk_non_aliased_vuses): Likewise.
11316 * tree-ssa-alias.c (maybe_skip_until): Adjust.
11317 (get_continuation_for_phi_1): Likewise.
11318 (get_continuation_for_phi): Likewise.
11319 (walk_non_aliased_vuses): Likewise.
11320 * tree-ssa-sccvn.c (const_parms): New bitmap.
11321 (vn_reference_lookup_3): Adjust for interface change.
11322 Disambiguate parameters pointing to readonly memory.
11323 (free_scc_vn): Free const_parms.
11324 (run_scc_vn): Initialize const_parms from a fn spec attribute.
11326 2015-09-29 Richard Biener <rguenther@suse.de>
11328 PR tree-optimization/67741
11329 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
11330 builtin calls with correct signature.
11332 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
11335 * config/i386/i386.c: Include dbgcnt.h.
11336 (has_non_address_hard_reg): New.
11337 (convertible_comparison_p): New.
11338 (scalar_to_vector_candidate_p): New.
11339 (remove_non_convertible_regs): New.
11340 (scalar_chain): New.
11341 (scalar_chain::scalar_chain): New.
11342 (scalar_chain::~scalar_chain): New.
11343 (scalar_chain::add_to_queue): New.
11344 (scalar_chain::mark_dual_mode_def): New.
11345 (scalar_chain::analyze_register_chain): New.
11346 (scalar_chain::add_insn): New.
11347 (scalar_chain::build): New.
11348 (scalar_chain::compute_convert_gain): New.
11349 (scalar_chain::replace_with_subreg): New.
11350 (scalar_chain::replace_with_subreg_in_insn): New.
11351 (scalar_chain::emit_conversion_insns): New.
11352 (scalar_chain::make_vector_copies): New.
11353 (scalar_chain::convert_reg): New.
11354 (scalar_chain::convert_op): New.
11355 (scalar_chain::convert_insn): New.
11356 (scalar_chain::convert): New.
11357 (convert_scalars_to_vector): New.
11358 (pass_data_stv): New.
11360 (make_pass_stv): New.
11361 (ix86_option_override): Created and register stv pass.
11362 (flag_opts): Add -mstv.
11363 (ix86_option_override_internal): Likewise.
11364 * config/i386/i386.md (SWIM1248x): New.
11365 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
11366 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
11367 (*anddi3_doubleword): New.
11368 (*zext<mode>_doubleword): New.
11369 (*zextsi_doubleword): New.
11370 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
11371 (*<code>di3_doubleword): New.
11372 * config/i386/i386.opt (mstv): New.
11373 * dbgcnt.def (stv_conversion): New.
11375 2015-09-29 Tom de Vries <tom@codesourcery.com>
11377 * tree-cfg.c (dump_function_to_file): Dump function attributes.
11379 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
11382 * config/sh/sh.c (sh_override_options_after_change): New.
11383 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
11384 (sh_option_override): Move align_loops, align_jumps and
11385 align_functions handling into sh_override_options_after_change.
11387 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
11389 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
11390 (nvptx_record_offload_symbol): Record function execution geometry.
11391 * config/nvptx/mkoffload.c (process): Include launch geometry in
11393 * omp-low.c (oacc_launch_pack): New.
11394 (replace_oacc_fn_attrib): New.
11395 (set_oacc_fn_attrib): New.
11396 (get_oacc_fn_attrib): New.
11397 (expand_omp_target): Create keyed varargs for GOACC_parallel call
11399 * omp-low.h (get_oacc_fn_attrib): Declare.
11400 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
11401 (DEF_FUNCTION_TYPE_VAR_11): Delete.
11402 * tree.h (OMP_CLAUSE_EXPR): New.
11403 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
11405 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11406 Sebastian Pop <s.pop@samsung.com>
11408 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
11410 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11411 Sebastian Pop <s.pop@samsung.com>
11413 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
11414 * graphite-scop-detection.c (struct sese_l): New type.
11415 (get_entry_bb): API for getting entry bb of SESE.
11416 (get_exit_bb): API for getting exit bb of SESE.
11417 (class debug_printer): New type. Simple printer in debug mode.
11418 (trivially_empty_bb_p): New. Return true when BB is empty or
11419 contains only debug instructions.
11420 (graphite_can_represent_expr): Call scalar_evoution_in_region
11421 instead of analyze_scalar_evolution. Pass in scop instead of only
11423 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
11425 (stmt_simple_for_scop_p): Same.
11426 (harmful_stmt_in_bb): Same.
11427 (graphite_can_represent_loop): Deleted.
11428 (struct scopdet_info): Deleted.
11429 (scopdet_basic_block_info): Deleted.
11430 (build_scops_1): Deleted.
11431 (bb_in_sd_region): Deleted.
11432 (find_single_entry_edge): Deleted.
11433 (find_single_exit_edge): Deleted.
11434 (create_single_entry_edge): Deleted.
11435 (sd_region_without_exit): Deleted.
11436 (create_single_exit_edge): Deleted.
11437 (unmark_exit_edges): Deleted.
11438 (mark_exit_edges): Deleted.
11439 (create_sese_edges): Deleted.
11440 (build_graphite_scops): Deleted.
11441 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
11442 (build_scops): Use the new scop_builder to build scops.
11443 (dot_all_scops_1): Use the new pretty printer. Print loop father
11445 (loop_body_is_valid_scop): New. Return true if loop body is a
11447 (class scop_builder): New. Builds SCoPs for polyhedral
11449 (scop_builder): New constructor.
11450 (static sese_l invalid_sese): sese_l with invalid edges.
11451 (get_sese): Get an sese (from a loop) if possible, invalid_sese
11453 (get_nearest_dom_with_single_entry): Get nearest dominator of a
11454 basic_block with single entry. Return NULL if we get to the
11455 beginning of a function.
11456 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
11457 a basic_block with single exit. Return NULL if we get to the
11458 beginning of a function.
11459 (print_sese): Pretty-print SESE.
11460 (merge_sese): Merge two SESEs if possible and return the new SESE.
11461 (build_scop_depth): Start building the SCoP within a loop nest.
11462 (build_scop_breadth): Start building the SCoP at a single loop
11463 depth. Merge adjacent SESEs if valid.
11464 (can_represent_loop_1): Returns true if Graphite can represent
11465 loop inside SCoP. Helper for can_represent_loop.
11466 (can_represent_loop): Returns true if Graphite can represent LOOP
11467 and all its nested loops in SCoP.
11468 (loop_is_valid_scop): Returns true if LOOP and all its nests
11469 constitute a valid SCoP.
11470 (region_has_one_loop): Returns true of a region has only one loop.
11471 (add_scop): Add SCoP to the list of valid scops. Removes an
11472 already existing scop if it intersects with or subsumed by this one.
11473 (harmful_stmt_in_region): Returns true if SCoP has any statment
11474 which cannot be represented by Graphite.
11475 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
11476 (remove_subscops): Remove any SCoP from the list of already found
11477 SCoPs, if subsumed by S1.
11478 (intersects): Return true if region bounded by SCoPs S1 and S2
11480 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
11481 * graphite.c (print_graphite_scop_statistics):
11482 (print_graphite_statistics): Print SCoP info while debugging.
11483 (graphite_initialize): Early exit in case number of loops in a
11484 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
11485 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
11486 (graphite_finalize):
11487 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
11488 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
11489 (recompute_all_dominators): Recalculate POST_DOMINATORS.
11490 * tree-cfg.c (print_loops): Print the function name while printing
11493 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11494 Sebastian Pop <s.pop@samsung.com>
11496 PR tree-optimization/67700
11497 * graphite-sese-to-poly.c (parameter_index_in_region): Call
11498 invariant_in_sese_p_rec.
11499 (extract_affine): Same.
11500 (rewrite_cross_bb_scalar_deps): Call update_ssa.
11501 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
11502 * sese.h (invariant_in_sese_p_rec): Declare.
11504 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
11506 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
11508 2015-09-28 Jiong Wang <jiong.wang@arm.com>
11511 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11512 Jiong Wang <jiong.wang@arm.com>
11514 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
11515 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
11516 (REG_CLASS_NAMES): Likewise.
11517 (REG_CLASS_CONTENTS): Likewise.
11518 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
11519 (aarch64_register_move_cost): Likewise.
11520 (aarch64_load_symref_appropriately): Invoke the new added pattern if
11522 * config/aarch64/constraints.md (Uc0): New constraint.
11524 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
11526 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
11528 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
11530 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
11531 SECTION_EXCLUDE in XO mapping class.
11533 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11536 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
11537 and handle ne and eq codes.
11538 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
11539 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
11540 CONST_INT_P. Use reverse_condition.
11541 (sh_split_treg_set_expr): Likewise.
11543 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
11545 * config/arm/types.md (type): Add rotate_imm.
11546 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
11547 ROR immediate case.
11548 (*rorsi3_insn_uxtw): Likewise.
11549 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
11550 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
11551 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
11553 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11555 PR rtl-optimization/67481
11556 * ifcvt.c (contains_ccmode_rtx_p): New function.
11557 (insn_valid_noce_process_p): Use it.
11559 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11561 PR rtl-optimization/67456
11562 PR rtl-optimization/67464
11563 PR rtl-optimization/67465
11564 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
11565 move in the mode of x. Handle combination of complex and simple
11566 block pairs as well as the case when one is empty.
11568 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11570 * doc/gimple.texi: Update references to gimple_statement_base.
11571 * gdbhooks.py: Likewise.
11572 * gimple.h: Likewise.
11574 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11576 * config/sparc/driver-sparc.c: map LEON to leon3
11578 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11580 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
11581 and make it inverse to change default
11582 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
11584 * doc/invoke.texi: Document change of default
11586 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11588 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
11589 true on %f0 for a target without FPU.
11590 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
11592 (untyped_return): Do not load %f0 for a target without FPU.
11594 2015-09-28 Andrew Pinski <apinski@cavium.com>
11596 * config/aarch64/aarch64.md (prefetch):
11597 Change the predicate of operand 0 to register_operand.
11599 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
11601 * config/i386/predicates.md (register_sse4nonimm_operand): New
11603 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
11604 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
11605 Use register_sse4nonimm_operand as operand 0 predicate.
11606 (*vec_extractv8hi_sse2): Remove insn pattern.
11607 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
11608 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
11610 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11611 Kaz Kojima <kkojima@gcc.gnu.org>
11614 * config/sh/sh-protos.h (sh_lra_p): Declare.
11615 * config/sh/sh.c (sh_lra_p): Make non-static.
11616 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
11617 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
11618 Expand into addsi3_scr if operands[2] if needed.
11619 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
11620 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
11621 (addsi3_scr, *addsi3): New insn_and_split patterns.
11623 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
11625 PR rtl-optimization/64164
11626 PR tree-optimization/67312
11627 PR middle-end/67340
11628 PR middle-end/67490
11630 * cfgexpand.c (parm_in_stack_slot_p): Remove.
11631 (ssa_default_def_partition): Remove.
11632 (get_rtl_for_parm_ssa_default_def): Remove.
11633 (set_rtl): Check that RTL assignments match expectations.
11634 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
11635 default def location for params and results. Record SSA names
11636 or types in REG and MEM attrs, respectively.
11637 (set_parm_rtl): New.
11638 (expand_one_ssa_partition): Drop logic that assigned MEMs with
11639 unassigned addresses.
11640 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
11641 deferred stack alloc vars.
11642 (expand_used_vars): Skip partitions holding parm default defs.
11643 Move adjust_one_expanded_partition_var loop...
11644 (pass_expand::execute): ... here. Drop redundant assert.
11645 Adjust comments before the final loop over all ssa names.
11646 Require assigned rtl of parms and results to match exactly.
11647 Reset its attributes to match them, not any other variables in
11648 the same partition.
11649 (expand_debug_expr): Use entry value for PARM's default defs
11650 only iff they have zero nondebug uses.
11651 * cfgexpand.h (parm_in_stack_slot_p): Remove.
11652 (get_rtl_for_parm_ssa_default_def): Remove.
11653 (set_parm_rtl): Declare.
11654 * doc/invoke.texi: Improve wording.
11655 * explow.c (promote_decl_mode): Fix promote_function_mode for
11656 result decls not by reference.
11657 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
11658 bypass TYPE_MODE to get the actual vector mode.
11659 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
11660 2015-08-19's changes as follows. Drop include of
11661 basic-block.h and df.h.
11662 (rtl_for_parm): Remove.
11663 (maybe_reset_rtl_for_parm): Remove.
11664 (parm_in_unassigned_mem_p): Remove.
11665 (use_register_for_decl): Add logic for RESULT_DECLs matching
11666 assign_parms' behavior.
11667 (split_complex_args): Revert.
11668 (assign_parms_augmented_arg_list): Revert. Add comment
11669 referencing the logic above.
11670 (assign_parm_adjust_stack_rtl): Revert.
11671 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
11672 of SET_DECL_RTL. Set up a REG if the parm demands so.
11673 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
11674 calls into a single set_parm_rtl. Set up a temporary RTL
11675 temporarily for expand_assignment.
11676 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
11677 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
11678 (assign_bounds): Revert.
11679 (assign_parms): Revert. Use set_parm_rtl.
11680 (allocate_struct_function): Relayout result and parms of
11681 non-abstruct functions.
11682 (expand_function_start): Revert. Use set_parm_rtl. If the
11683 result is not a hard reg, create a pseudo from the promoted
11684 mode of the default def. Promote static chain mode.
11685 * tree-outof-ssa.c (remove_ssa_form): Drop unused
11686 partition_has_default_def. Set up
11687 partitions_for_parm_default_defs.
11688 (finish_out_of_ssa): Remove partition_has_default_def.
11689 Release partitions_for_parm_default_defs.
11690 * tree-outof-ssa.h (struct ssaexpand): Remove
11691 partition_has_default_def. Add
11692 partitions_for_parm_default_defs.
11693 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
11695 (build_ssa_conflict_graph): Fix conflict-detection of default
11696 defs of even unused default defs of params and results.
11697 (for_all_parms): New.
11698 (create_default_def): New.
11699 (register_default_def): New.
11700 (coalesce_with_default): New.
11701 (create_outofssa_var_map): Create default defs for all parms
11702 and results, and register their partitions. Add GIMPLE_RETURN
11703 operands as coalesce candidates with results. Add default
11704 defs of each parm or result as coalesce candidates with its
11705 other defs. Mark each result def, and each default def of
11706 parms, as used_in_copy.
11707 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
11708 with the ssa names, even anonymous ones. Drop
11709 parm_in_stack_slot_p calls. Require same signedness and
11711 (coalesce_ssa_name): Add coalesce candidates for all defs of
11712 each parm and result, even unused ones.
11713 (parm_default_def_partition_arg): New type.
11714 (set_parm_default_def_partition): New.
11715 (get_parm_default_def_partitions): New.
11716 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
11717 * tree-ssa-live.c (partition_view_init): Regard unused defs of
11718 parms and results as used.
11719 (verify_live_on_entry): Don't error out just because they're
11722 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
11724 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11725 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
11726 (output_fde): Don't output length for debug_frame on AIX.
11727 (output_call_frame_info): Don't output length for debug_frame on AIX.
11728 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
11729 HAVE_XCOFF_DWARF_EXTRAS.
11730 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
11731 HAVE_XCOFF_DWARF_EXTRAS.
11732 (output_compilation_unit_header): Don't output length on AIX.
11733 (output_pubnames): Don't output length on AIX.
11734 (output_aranges): Delete argument. Compute length locally. Don't
11735 output length on AIX.
11736 (output_line_info): Don't output length on AIX.
11737 (dwarf2out_finish): Don't compute aranges_length.
11738 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11739 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
11740 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
11741 symbol decoration for AIX.
11742 (rs6000_xcoff_debug_unwind_info): New.
11743 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
11745 (rs6000_xcoff_declare_function_name): Emit different
11746 .function pseudo-op when DWARF2_DEBUG. Don't call
11747 xcoffout_declare_function for DWARF2_DEBUG.
11748 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
11750 * config/rs6000/aix71.h: New.
11751 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
11753 * configure: Regenerate.
11754 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
11757 2015-09-26 Jeff Law <law@redhat.com>
11759 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
11761 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
11764 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
11767 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
11768 undefined behaviour.
11770 * config/cris/cris.md (asrandb): Fix left shift undefined
11772 (asrandw): Likewise.
11774 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
11777 * lra-constarints.c (match_reload): Check presence of the input pseudo
11778 in the output operand.
11780 2015-09-25 Tobias Burnus <burnus@net-b.de>
11782 * doc/invoke.texi (-fsanitize): Minor wording tweak.
11784 2015-09-25 Tobias Burnus <burnus@net-b.de>
11786 * doc/invoke.texi (-fsanitize): Update URLs.
11788 2015-09-25 Teresa Johnson <tejohnson@google.com>
11790 * opts.c (finish_options): Unset -freorder-blocks-and-partition
11791 if not using profile.
11793 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
11795 PR pretty-print/67567
11796 * pretty-print.c (pp_string): Add gcc_checking_assert.
11797 * pretty-print.h (output_buffer_append_r): Likewise.
11799 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11802 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
11803 addr2 individually. Don't emit logical or insn if one is known to
11804 be aligned approriately.
11805 (sh_expand_cmpnstr): Likewise.
11807 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
11809 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
11810 __builtin_aarch64_fp[sc]r arguments into a register.
11812 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
11814 * config.gcc (x86_archs): Replace lakemount with lakemont.
11815 (with_cpu): Likewise.
11816 (with_arch): Likewise.
11817 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11818 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
11819 __tune_lakemount__ with __tune_lakemont__.
11820 * config/i386/i386.c (lakemount_cost): Renamed to ...
11821 (lakemont_cost): This.
11822 (m_LAKEMOUNT): Renamed to ...
11823 (m_LAKEMONT): This.
11824 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
11825 (processor_target_table): Replace "lakemount" with "lakemont".
11826 (processor_alias_table): Likewise.
11827 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
11828 PROCESSOR_LAKEMONT.
11829 (ix86_adjust_cost): Likewise.
11830 (ia32_multipass_dfa_lookahead): Likewise.
11831 * config/i386/i386.h (processor_type): Likewise.
11832 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
11833 * doc/invoke.texi: Replace lakemount with lakemont. Replace
11834 Lakemount with Lakemont.
11836 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
11838 * config.gcc (x86_archs): Replace iamcu with lakemount.
11839 (with_cpu): Likewise.
11840 (with_arch): Likewise.
11841 * doc/invoke.texi: Likewise.
11842 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11843 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
11844 __tune_iamcu__ with __tune_lakemount__.
11845 * config/i386/i386.c (iamcu_cost): Renamed to ...
11846 (lakemount_cost): This.
11847 (m_IAMCU): Renamed to ...
11848 (m_LAKEMOUNT): This.
11849 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
11850 (processor_target_table): Replace "iamcu" with "lakemount".
11851 (processor_alias_table): Likewise.
11852 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
11853 PROCESSOR_LAKEMOUNT.
11854 (ix86_adjust_cost): Likewise.
11855 (ia32_multipass_dfa_lookahead): Likewise.
11856 * config/i386/i386.h (processor_type): Likewise.
11857 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
11859 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
11861 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
11862 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
11864 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
11865 (pa_expand_compare_and_swap_loop): New.
11866 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
11867 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
11868 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
11869 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
11870 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
11873 2015-09-24 Michael Collison <michael.collison@linaro.org>
11876 * read-md.c (read_name): Allow mode iterators inside angle
11877 brackets in rtl expressions.
11879 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
11882 * ira-color.c (update_allocno_cost): Add parameter.
11883 (update_costs_from_allocno): Decrease conflict cost. Pass the new
11886 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11889 * opts-common.c (prune_options): Discard all -fdiagnostics-color
11890 but the last one, which is moved to the front to be processed
11892 * opts.c (enable_warning_as_error): Reject options that do not
11895 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11897 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
11899 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11901 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
11902 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
11903 (aarch64_cannot_force_const_mem): Likewise.
11904 (aarch64_classify_address): Likewise.
11905 (aarch64_classify_symbolic_expression): Likewise.
11906 (aarch64_print_operand): Likewise.
11907 (aarch64_classify_symbol): Likewise.
11908 (aarch64_mov_operand_p): Likewise.
11909 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
11910 (aarch64_mov_operand): Likewise.
11912 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
11914 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
11915 for info->spe_gp_size.
11917 2015-09-24 Richard Biener <rguenther@suse.de>
11920 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
11923 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
11925 * tree-object-size.c (plus_stmt_object_size)
11926 (cond_expr_object_size): Change the formal parameters from gimple
11928 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
11929 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
11930 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
11932 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11934 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
11935 Check for ld -type pie on Solaris 11.x and 12.
11936 * configure: Regenerate.
11937 * config.in: Regenerate.
11939 * gcc.c (LD_PIE_SPEC): Allow redefinition.
11941 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
11942 (STARTFILE_SPEC): Use it.
11943 (ENDFILE_CRTEND_SPEC): Define.
11944 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
11945 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
11946 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
11947 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
11948 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
11949 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
11950 (ENDFILE_ARCH_SPEC): Define.
11951 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
11953 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11955 * configure.ac (gcc_cv_solaris_crts): New test.
11956 * configure. Regenerate.
11957 * config.in: Regenerate.
11958 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
11959 HAVE_SOLARIS_CRTS variant.
11961 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11963 * tree-inline.h (count_insns_seq): Delete prototype.
11964 (estimate_num_insns_seq): Define prototype.
11965 * tree-inline.c (count_insns_seq): Delete.
11966 (estimate_num_insns_seq): Remove static qualifier.
11967 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
11968 with estimate_num_insns_seq.
11970 2015-09-24 Richard Biener <rguenther@suse.de>
11972 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
11974 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
11975 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
11977 (ao_ref_init_from_vn_reference): Record clique and base in the
11979 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
11981 2015-09-24 Richard Biener <rguenther@suse.de>
11983 PR tree-optimization/48885
11984 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
11985 as not including any restrict tags from other pointers.
11987 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
11989 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
11990 character when appending to offload_targets.
11992 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
11993 offload targets by commas, not colons.
11994 * config.in: Regenerate.
11995 * configure: Likewise.
11996 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
11997 instead of setting up the default offload targets here...
11998 (process_command): ..., do it here.
12000 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
12001 targets are separated by commas.
12002 * config.h.in: Regenerate.
12004 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
12005 Nathan Sidwell <nathan@codesourcery.com>
12007 * omp-low.h (omp_reduction_init_op): Declare.
12008 * omp-low.c (omp_reduction_init_op): New, broken out of ...
12009 (omp_reduction_init): ... here. Call it.
12010 * tree-parloops.c (initialize_reductions): Use
12011 omp_reduction_init_op.
12013 2015-09-23 Richard Biener <rguenther@suse.de>
12015 PR middle-end/67662
12016 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
12017 undefined overflow unless they will cancel out.
12019 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
12021 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
12024 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
12027 * opts.h (write_langs): Declare.
12028 * opts-global.c (write_langs): Make it extern.
12030 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
12033 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
12034 overlapping regs when matching the pattern.
12036 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
12038 * config/aarch64/aarch64-simd.md
12039 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
12040 (aarch64_float_truncate_hi_v4sf_le): New.
12041 (aarch64_float_truncate_hi_v4sf_be): Likewise.
12043 2015-09-23 Richard Biener <rguenther@suse.de>
12045 * tree-ssa-structalias.c (intra_create_variable_infos): Build
12046 representatives for all restrict qualified pointer destinations.
12048 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
12050 * config/i386/i386.md (define_code_attr mshift): New.
12051 (define_mode_iterator SWI1248_AVX512BW): Rename ...
12052 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
12054 (define_insn "*k<logic><mode>"): Use new iterator name.
12055 (define_insn "*<mshift><mode>3"): New.
12057 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
12059 PR middle-end/67649
12060 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
12061 mark the block as accessible.
12063 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
12065 * function.c (thread_prologue_and_epilogue_insns): Delete
12066 orig_entry_edge argument to try_shrink_wrapping.
12067 * shrink-wrap.c (can_get_prologue): New function.
12068 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
12069 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
12070 can_get_prologue where needed. Remove code that finds a single
12071 edge for the prologue. Remove code that tests if any reg clobbered
12072 by the prologue is live on the prologue edge. Remove code that finds
12073 the new prologue edge after duplicating blocks. Make a new prologue
12075 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
12077 2015-09-22 Jeff Law <law@redhat.com>
12079 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
12082 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
12084 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
12085 -Wtemplates, -Wnamespaces): Document.
12087 2015-09-22 Tom de Vries <tom@codesourcery.com>
12089 PR tree-optimization/67671
12090 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
12091 pointer references as restrict.
12093 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
12095 * config/nios2/nios2.c (nios2_legitimize_address): When handling
12096 'reg + reloc' cases, allow first operand to be non-REG, and use
12097 force_reg() to enforce address pattern.
12099 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
12102 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
12103 (define_mode_iterator VI12_AVX_AVX512F): New.
12104 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
12105 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
12106 (define_insn "*<code><mode>3"): ... Into new pattern using
12107 VI12_AVX_AVX512F iterators without masking.
12109 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
12111 * config.gcc: Support "skylake-avx512".
12112 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12113 PROCESSOR_SKYLAKE_AVX512.
12114 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
12115 (processor_target_table): Add "skylake-avx512".
12116 (PTA_SKYLAKE_AVX512): Define.
12117 (ix86_option_override_internal): Add "skylake_avx512".
12118 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
12119 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
12120 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
12121 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
12122 * doc/invoke.texi (skylake-avx512): New.
12124 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
12126 * config/i386/i386.md (define_insn "kunpckhi"): Fix
12127 operand in pattern.
12128 (define_insn "kunpcksi"): Ditto.
12129 (define_insn "kunpckdi"): Ditto.
12131 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
12133 * config/i386/i386.md (define_split not/xor SWI1248x): Use
12134 iterator instead of fixed modes.
12136 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12138 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
12139 Adjust declaration.
12140 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
12141 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
12142 out_result. Update to support update-fetch operations.
12143 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
12144 Adjust for change to aarch64_gen_atomic_ldop.
12145 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
12146 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
12147 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
12148 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
12149 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
12151 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12153 * config/aarch64/aarch64-protos.h
12154 (aarch64_atomic_ldop_supported_p): Declare.
12155 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
12156 (enum aarch64_atomic_load_op_code): New.
12157 (aarch64_emit_atomic_load_op): New.
12158 (aarch64_gen_atomic_ldop): Update to support load-operate
12160 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
12162 (aarch64_atomic_<atomic_optab><mode>): New.
12163 (aarch64_atomic_<atomic_optab><mode>_lse): New.
12164 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
12165 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
12166 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
12168 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12170 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
12171 (UNSPECV_ATOMIC_LDOP_OR): New.
12172 (UNSPECV_ATOMIC_LDOP_BIC): New.
12173 (UNSPECV_ATOMIC_LDOP_XOR): New.
12174 (UNSPECV_ATOMIC_LDOP_PLUS): New.
12175 (ATOMIC_LDOP): New.
12176 (atomic_ldop): New.
12177 (aarch64_atomic_load<atomic_ldop><mode>): New.
12179 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12181 * config/aarch64/aarch64.md
12182 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
12185 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12187 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
12189 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
12190 (aarch64_gen_atomic_ldop): New.
12191 (aarch64_split_atomic_op): Fix whitespace and add a comment.
12192 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
12193 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
12194 (atomic_exchange<mode>): Replace with an expander.
12195 (aarch64_atomic_exchange<mode>): New.
12196 (aarch64_atomic_exchange<mode>_lse): New.
12197 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
12198 (aarch64_atomic_swp<mode>): New.
12200 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
12202 * tree-inline.c (expand_call_inline): Use inform for extra note.
12203 Do not give a note with UNKNOWN_LOCATION.
12204 Replace input_location with gimple_location (stmt).
12205 Use true/false instead of TRUE/FALSE.
12207 2015-09-22 Tom de Vries <tom@codesourcery.com>
12209 PR tree-optimization/67666
12210 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
12211 with single field non-conservative.
12213 2015-09-21 David S. Miller <davem@davemloft.net>
12217 2015-09-11 David S. Miller <davem@davemloft.net>
12219 * config/sparc/constraints.md: Make "U" constraint a real register
12221 * config/sparc/sparc.c (TARGET_LRA_P): Define.
12222 (D_MODES, DF_MODES): Add missing cast.
12223 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12224 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12225 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12227 * config/sparc/sparc.h (PROMOTE_MODE): Define.
12228 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12229 provide these insn when flag_pic.
12231 2015-09-17 David S. Miller <davem@davemloft.net>
12233 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
12235 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
12237 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12238 (HARD_REGNO_CALLER_SAVE_MODE): Define.
12239 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12240 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12241 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12242 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12243 provide when flag_pic.
12245 2015-09-21 Jeff Law <law@redhat.com>
12247 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
12250 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12252 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
12254 2015-09-21 Richard Biener <rguenther@suse.de>
12256 * passes.c (rest_of_decl_compilation): Do not call
12257 dwarf2out_early_global_decl for aliases.
12259 2015-09-21 Richard Biener <rguenther@suse.de>
12262 * dwarf2out.c (add_location_or_const_value_attribute): Remove
12263 attribute parameter. Early exit if either DW_AT_const_value
12264 or DW_AT_location are present already.
12265 (gen_variable_die): Adjust caller.
12266 (dwarf2out_late_global_decl): Likewise.
12268 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12271 * config/sh/sh.c (sh_remove_overlapping_post_inc,
12272 sh_peephole_emit_move_insn): Add new functions.
12273 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
12274 sh_peephole_emit_move_insn): Declere them.
12275 * config/sh/sh.md: Use them in various peephole2 patterns.
12277 2015-09-21 Richard Biener <rguenther@suse.de>
12279 PR middle-end/67651
12280 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
12281 address with -fno-delete-null-pointer-checks.
12283 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
12285 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
12286 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
12287 (reduc_uplus_v16qi): Remove.
12289 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
12290 (reduc_<VEC_reduc_name>_v2df): Remove.
12291 (reduc_<VEC_reduc_name>_v4sf): Remove.
12292 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
12294 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
12295 gen_ function by removing * prefix.
12296 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
12298 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
12300 PR middle-end/60832
12301 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
12302 Print i_bound without converting it to a tree.
12304 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
12306 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
12307 operands[4] operands[5] swap with std::swap, removed tmp variable.
12308 (arm_evpc_neon_vzip): Replaced in0/in1 and
12309 out0/out1 swaps with std::swap, removed x variable.
12310 (arm_evpc_neon_vtrn): Replaced in0/int1 and
12311 out0/out1 swaos with std::swap, removed x variable.
12312 (arm_expand_vec_perm_const_1): Replaced
12313 d->op0/d->op1 swap with std::swap, removed x variable.
12314 (arm_evpc_neon_vuzp): Replaced in0/in1 and
12315 out0/out1 swaps with std::swap, removed x variable.
12317 2015-09-21 Jonathan Yong <10walls@gmail.com>
12319 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12320 sysroot/usr/lib/32api for additional win32 libraries,
12321 fixes failing Cygwin bootstrapping.
12323 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12325 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
12327 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12330 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
12331 (*mov_t_msb_neg): Rewrite negc pattern.
12333 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12335 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
12336 immediate generation code.
12338 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12340 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
12341 redundant immediate generation code.
12343 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12345 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
12346 (AARCH64_NUM_BITMASKS): Remove.
12347 (aarch64_bitmasks_cmp): Remove.
12348 (aarch64_build_bitmask_table): Remove.
12350 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12352 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
12353 slow immediate matching loops with a faster algorithm.
12355 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12357 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
12360 2015-09-20 Jeff Law <law@redhat.com>
12362 PR tree-optimization/47679
12363 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
12364 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
12365 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
12366 (thread_through_normal_block): Use record_temporary_equivalences.
12368 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
12370 * coretypes.h (gimple): Change typedef to be a forward declaration.
12371 * gimple.h (gimple_statement_base): rename to gimple.
12372 * (all functions and types using gimple): Adjust.
12373 * *.[ch]: Likewise.
12375 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
12376 David Edelsohn <dje.gcc@gmail.com>
12378 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
12379 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12380 (EH_FRAME_THROUGH_COLLECT2): Define.
12381 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12382 (ASM_OUTPUT_DWARF_PCREL): Define.
12383 (ASM_OUTPUT_DWARF_DATAREL): Define.
12385 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
12387 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
12390 2015-09-18 Jeff Law <law@redhat.com>
12392 PR tree-optimization/47679
12393 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
12395 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
12396 object. Update constructor.
12397 (pass_dominator::execute): Corresponding chagnes to declaration
12398 and initialization of avail_exprs_stack. Update constructor call
12399 for dom_opt_dom_walker object.
12400 (lookup_avail_expr, record_cond): Accept additional argument. Pass
12401 it down to children as needed.
12402 (record_equivalences_from_incoming_edge): Likewise.
12403 (eliminate_redundant_computations): Likewise.
12404 (record_equivalences_from_stmt): Likewise.
12405 (simplify_stmt_for_jump_threading): Likewise.
12406 (record_temporary_equivalences): Likewise.
12407 (optimize_stmt): Likewise.
12408 (dom_opt_dom_walker::thread_across_edge): Update access to
12409 avail_exprs_stack object and pass it to children as needed.
12410 (dom_opt_dom_walker::before_dom_children): Similarly.
12411 (dom_opt_dom_walker::after_dom_children): Similarly.
12412 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
12413 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
12414 Add avail_expr_stack argument. Pass it to children as needed.
12415 (dummy_simplify): Likewise.
12416 (simplify_control_stmt_condition): Likewise.
12417 (thread_around_empty_blocks): Likewise.
12418 (thread_through_normal_block): Likewise.
12419 (thread_across_edge): Likewise.
12420 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12421 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
12423 PR tree-optimization/47679
12424 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
12426 (dom_opt_dom_walker): New private member holding the const_and_copies
12427 object. Update constructor.
12428 (pass_dominator::execute): Corresponding changes to declaration
12429 and initialization of const_and_copies. Update constructor call
12430 for the dom_opt_dom_walker object.
12431 (record_temporary_equivalences): Accept const_and_copies argument
12432 pass it down to children as needed.
12433 (record_equality): Likewise.
12434 (record_equivalences_from_incoming_edge): Likewise.
12435 (cprop_into_successor_phis, optimize_stmt): Likewise.
12436 (eliminate_redundant_computations): Likewise.
12437 (dom_opt_dom_walker::thread_across_edge): Update access to
12438 const_and_copies object and pass it to children as needed.
12439 (dom_opt_dom_walker::before_dom_children): Similarly.
12440 (dom_opt_dom_walker::after_dom_children): Similarly.
12442 PR tree-optimization/47679
12443 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
12444 it into the avail_exprs_stack class.
12445 (pass_dominator::execute): Corresponding changes to declaration
12446 and initialization of avail_exprs. Pass avail_exprs to
12447 dump_dominator_optimization_stats.
12448 (record_cond): Extract avail_exprs from avail_exprs_stack.
12449 (lookup_avail_expr): Similarly.
12450 (htab_staticstics): Remove unnecessary prototype. Move to earlier
12452 (dump_dominator_optimization_stats): Make static and prototype.
12453 Add argument for the hash table to dump.
12454 (debug_dominator_optimization_stats): Remove.
12455 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
12457 (debug_dominator_optimization_stats): Similarly.
12458 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
12459 "void" in prototype for pop_to_marker method. Add accessor method
12460 for the underlying avail_exprs table.
12462 * tree-ssa-threadedge.c: Remove trailing whitespace.
12464 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
12466 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
12468 (pa_ldil_cint_p): Likewise.
12469 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
12470 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
12472 * config/pa/pa.md: Likewise.
12474 2015-09-18 David Malcolm <dmalcolm@redhat.com>
12476 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
12477 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
12478 (diagnostic_show_locus): Likewise.
12479 (diagnostic_print_caret_line): Likewise.
12480 * diagnostic-show-locus.c: New file.
12482 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
12484 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
12485 "back" parameter. Declare label in #if block.
12487 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
12489 PR middle-end/67619
12490 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
12491 the address to a register.
12493 2015-09-18 Jeff Law <law@redhat.com>
12495 PR tree-optimization/47679
12496 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
12497 * tree-ssa-dom.c: Remove unnecessary header includes.
12498 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
12499 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
12500 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
12501 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
12502 (pass_phi_only_cprop::execute): Likewise.
12503 (make_pass_phi_only_cprop): Likewise.
12504 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
12505 uses of file scoped statics by passing the required objects
12506 as parameters wherever needed.
12508 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
12509 David Edelsohn <dje.gcc@gmail.com>
12511 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
12512 EH_FRAME_THROUGH_COLLECT2.
12513 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
12515 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
12516 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
12517 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
12518 * except.c (switch_to_exception_section): Use a read-only section
12519 even if EH_FRAME_SECTION_NAME is undefined.
12520 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
12521 * collect2.c (write_c_file_stat): Provide dbase on AIX.
12522 (scan_prog_file): Don't export __dso_handle nor
12523 __gcc_unwind_dbase.
12524 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12525 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12526 (ASM_OUTPUT_DWARF_PCREL): Define.
12527 (ASM_OUTPUT_DWARF_DATAREL): Define.
12528 (EH_FRAME_THROUGH_COLLECT2): Define.
12529 (EH_FRAME_IN_DATA_SECTION): Delete.
12530 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
12531 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
12533 (rs6000_asm_output_dwarf_datarel): Declare.
12534 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
12535 (rs6000_aix_asm_output_dwarf_datarel): New.
12536 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
12537 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
12538 (EH_FRAME_THROUGH_COLLECT2): Define.
12539 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
12540 (EH_FRAME_THROUGH_COLLECT2): Define.
12541 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12542 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
12543 (EH_FRAME_THROUGH_COLLECT2): New.
12544 (ASM_OUTPUT_DWARF_DATAREL): New.
12545 * doc/tm.texi: Regenerate.
12547 2015-09-18 Richard Biener <rguenther@suse.de>
12549 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
12550 we're in early phase.
12551 (schedule_generic_params_dies_gen): Likewise.
12552 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
12553 work as possible, retaining unhandled cases.
12554 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
12555 clear out generic_type_instances at the end.
12556 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
12557 (dwarf2out_early_finish): ... here. Do most of
12558 gen_remaining_tmpl_value_param_die_attribute here.
12560 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
12562 PR tree-optimization/67283
12563 * tree-sra.c (type_consists_of_records_p): Rename to...
12564 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12565 (completely_scalarize_record): Rename to...
12566 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12567 (scalarize_elem): New.
12568 (analyze_all_variable_accesses): Follow renamings.
12570 2015-09-18 Richard Biener <rguenther@suse.de>
12572 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
12575 2015-09-18 Richard Biener <rguenther@suse.de>
12577 PR tree-optimization/66142
12578 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
12579 treat MEM[&x] and x the same.
12580 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
12581 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
12582 when we simplified sth.
12583 (vn_reference_maybe_forwprop_address): Likewise.
12584 (valueize_refs_1): When we simplified through
12585 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
12586 set valueized_anything to true.
12587 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
12588 one ref kills the other instead of just a offset-based test.
12589 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
12590 for the operand_equal_p test to compare bases and also compare
12593 2015-09-17 Christian Bruel <christian.bruel@st.com>
12595 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
12597 2015-09-17 Richard Henderson <rth@redhat.com>
12600 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
12601 pointers that encode the alignment of the object.
12603 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
12605 PR rtl-optimization/66790
12606 * df-problems.c (LIVE): Amend documentation.
12608 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
12610 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
12612 (GTFILES): Replace optabs.c with optabs-libfunc.c.
12613 * genopinit.c (main): Add an include guard to insn-opinit.h.
12614 Protect the rtx_code parts with NUM_RTX_CODE.
12615 * optabs.h: Split parts out to...
12616 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
12617 * optabs.c: Split parts out to...
12618 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
12619 * cilk-common.c: Include optabs-query.h rather than optabs.h.
12620 * fold-const.c: Likewise.
12621 * target-globals.c: Likewise.
12622 * tree-if-conv.c: Likewise.
12623 * tree-ssa-forwprop.c: Likewise.
12624 * tree-ssa-loop-prefetch.c: Likewise.
12625 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
12626 Remove unncessary include files.
12627 * tree-ssa-phiopt.c: Likewise.
12628 * tree-ssa-reassoc.c: Likewise.
12629 * tree-switch-conversion.c: Likewise.
12630 * tree-vect-data-refs.c: Likewise.
12631 * tree-vect-generic.c: Likewise.
12632 * tree-vect-loop.c: Likewise.
12633 * tree-vect-patterns.c: Likewise.
12634 * tree-vect-slp.c: Likewise.
12635 * tree-vect-stmts.c: Likewise.
12636 * tree-vrp.c: Likewise.
12637 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
12638 rather than optabs.h.
12639 * expr.c: Include optabs-tree.h.
12640 * function.c: Likewise.
12642 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
12644 PR middle-end/65958
12645 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
12646 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
12647 * config/arm/arm.c: Include common/common-target.h.
12648 (use_return_insn): Return 0 if the static chain register was saved
12649 above a non-APCS frame.
12650 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
12651 (struct scratch_reg): New.
12652 (get_scratch_register_on_entry): New function.
12653 (release_scratch_register_on_entry): Likewise.
12654 (arm_emit_probe_stack_range): Likewise.
12655 (output_probe_stack_range): Likewise.
12656 (arm_expand_prologue): Factor out code dealing with the IP register
12657 for nested function and adjust it for stack checking.
12658 Invoke arm_emit_probe_stack_range if static builtin stack checking
12660 (thumb1_expand_prologue): Sorry out if static builtin stack checking
12662 (arm_expand_epilogue): Add the saved static chain register, if any, to
12663 the amount of pre-pushed registers to pop.
12664 (arm_frame_pointer_required): Return true if static stack checking is
12665 enabled and we want to catch the exception with the EABI unwinder.
12666 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
12667 (UNSPEC_PROBE_STACK_RANGE): Likewise.
12668 * config/arm/arm.md (probe_stack): New insn.
12669 (probe_stack_range): Likewise.
12671 2015-09-17 Richard Biener <rguenther@suse.de>
12673 * genmatch.c (parser::parse_expr): Improve error message
12674 for mis-placed flags.
12676 2015-09-17 Richard Biener <rguenther@suse.de>
12678 * passes.c (rest_of_decl_compilation): Always call early_global_decl
12679 debug hook when we created a varpool node.
12680 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
12681 dwarf2out_early_global_decl, when not just add location or
12682 value attributes to existing DIEs.
12684 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
12686 * config/aarch64/aarch64.md (copysigndf3): New.
12687 (copysignsf3): Likewise.
12689 2015-09-17 David S. Miller <davem@davemloft.net>
12691 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
12692 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
12693 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12694 (HARD_REGNO_CALLER_SAVE_MODE): Define.
12695 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12696 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12697 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12698 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12699 provide when flag_pic.
12701 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
12703 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
12704 object_allocator change.
12706 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12708 PR tree-optimization/66388
12709 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
12710 (dump_iv): Dump no_overflow information.
12711 (alloc_iv): Initialize new field for struct iv.
12712 (mark_bivs): Count number of no_overflow bivs.
12713 (find_deriving_biv_for_expr, record_biv_for_address_use): New
12715 (idx_find_step): Call new functions above.
12716 (add_candidate_1, add_candidate): New paramter.
12717 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
12718 (get_computation_aff): Simplify convertion of cand for BIV.
12719 (get_computation_cost_at): Step cand's base if necessary.
12721 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12723 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
12725 (tree_simplify_using_condition): Ditto.
12726 (simplify_using_initial_conditions): Ditto.
12727 (loop_exits_before_overflow): Pass new argument to function
12728 simplify_using_initial_conditions. Remove case for type conversions
12730 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
12732 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
12733 in iv base using loop initial conditions.
12735 2015-09-16 Jeff Law <law@redhat.com>
12737 PR tree-optimization/47679
12738 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
12739 (free_all_edge_infos): Use it.
12740 (allocate_edge_info): Free preexisting edge info data.
12741 (pass_dominator::execute): Set up initial edge info structures.
12742 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
12743 thread_across_edge.
12744 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
12745 If non-null, then push/pop markers appropriately.
12746 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12747 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
12748 thread-across_edge.
12750 2015-09-16 James Bowman <james.bowman@ftdichip.com>
12752 * config/ft32/ft32.c: Fix the memory address space predicate.
12754 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
12757 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
12758 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12760 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
12762 * toplev.h (check_global_declaration): Remove declaration.
12763 * toplev.c (check_global_declaration): Move to ...
12764 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
12765 (analyze_functions): Update call.
12767 2015-09-16 David S. Miller <davem@davemloft.net>
12769 * lra-constraints.c (simplify_operand_subreg): Do not assume that
12770 lowpart of a SUBREG has offset zero.
12772 2015-09-16 Jeff Law <law@redhat.com>
12774 PR tree-optimization/47679
12775 * tree-ssa-dom.c (enum expr_kind): Moved from here to
12776 tree-ssa-scopedtables.h.
12777 (struct hashable_expr, class expr_hash_elt): Likewise.
12778 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
12779 Move associated methods into tree-ssa-scopedtables.c.
12780 (avail_expr_hash, initialize_expr_from_cond): Similarly.
12781 (hashable_expr_equal_p, add_expr_commutative): Likewise.
12782 (add_hashable_expr): Likewise.
12783 (record_cond): Delete element directly.
12784 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
12785 private copy ctor and assignment operator methods.
12786 (expr_elt_hasher): Inline trivial methods.
12787 (initialize_expr_from_cond): Prototype.
12788 * tree-ssa-scopedtables.c: Add necessary includes, functions and
12789 methods that were previously in tree-ssa-dom.c. Improve various
12792 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
12794 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
12796 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
12799 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12802 2015-09-16 Richard Biener <rguenther@suse.de>
12804 PR middle-end/67253
12805 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
12806 location of possibly shared trees.
12808 2015-09-16 Richard Biener <rguenther@suse.de>
12810 PR middle-end/67271
12811 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
12813 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
12815 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
12816 offset and size computations instead of HOST_WIDE_INT.
12818 2015-09-16 Richard Biener <rguenther@suse.de>
12820 PR middle-end/67442
12821 * fold-const.c (extract_muldiv_1): Properly extend multiplication
12822 result before builting a tree via wide_int_to_tree.
12824 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
12826 * Makefile.in: Add memory-block.cc
12827 (pool_allocator::initialize): Use fixed block size.
12828 (pool_allocator::release): Use memory_block_pool.
12829 (pool_allocator::allocate): Likewise.
12830 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
12832 * cfg.c (initialize_original_copy_tables): Likewise.
12833 * cselib.c (elt_list_pool, elt_loc_list_pool,
12834 cselib_val_pool): Likewise.
12835 * df-problems.c (df_chain_alloc): Likewise.
12836 * df-scan.c (df_scan_alloc): Likewise.
12837 * dse.c (cse_store_info_pool, rtx_store_info_pool,
12838 read_info_type_pool, insn_info_type_pool, bb_info_pool,
12839 group_info_pool, deferred_change_pool): Likewise.
12840 * et-forest.c (et_nodes, et_occurrences): Likewise.
12841 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
12842 ipcp_agg_lattice_pool): Likewise.
12843 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
12844 * ipa-profile.c (histogram_pool): Likewise.
12845 * ipa-prop.c (ipa_refdesc_pool): Likewise.
12846 * ira-build.c (live_range_pool, allocno_pool, object_pool,
12847 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
12848 * ira-color.c (update_cost_record_pool): Likewise.
12849 * lra-lives.c (lra_live_range_pool): Likewise.
12850 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
12851 * memory-block.cc: New file.
12852 * memory-block.h: New file.
12853 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
12854 * sched-deps.c (sched_deps_init): Likewise.
12855 * sel-sched-ir.c (sched_lists_pool): Likewise.
12856 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
12857 * tree-sra.c (access_pool): Likewise.
12858 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
12859 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
12860 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
12861 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12862 * tree-ssa-strlen.c (strinfo_pool): Likewise.
12863 * tree-ssa-structalias.c (variable_info_pool): Likewise.
12864 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
12865 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
12867 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12869 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
12871 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
12874 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12876 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
12877 to pass TLS call argument, according to current ABI.
12878 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
12879 callx0 for TLS call, according to current ABI.
12881 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12883 * tree-eh.c (lower_try_finally_dup_block): Clear location information
12884 on stack restore statements.
12885 (decide_copy_try_finally): Do not consider a stack restore statement as
12886 coming from sources.
12888 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
12890 * config/alpha/alpha.c (alpha_expand_block_clear): Use
12891 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
12893 2015-09-15 Jeff Law <law@redhat.com>
12895 PR tree-optimization/47679
12896 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
12897 methods and private members.
12898 (avail_exprs_stack): Similarly. Change type of global
12899 from a pair of expr_hash_elt_t to the new class.
12900 (expr_elt_hasher::hash): Corresponding changes.
12901 (expr_elt_hasher::equal): Similarly.
12902 (avail_expr_hash): Similarly.
12903 (pass_dominator::execute): Similarly.
12904 (dom_opt_dom_walker::thread_across_edge): Similarly.
12905 (record_cond): Similarly.
12906 (dom_opt_dom_walker::before_dom_children): Similarly.
12907 (dom_opt_dom_walker::after_dom_children): Similarly.
12908 (lookup_avail_expr): Likewise.
12909 (initialize_hash_element): Now a expr_hash_elt constructor.
12910 (initialize_hash_element_from_expr): Similarly.
12911 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
12912 (free_expr_hash_elt): Call dtor for the element.
12913 (remove_local_expressions_from_table): Now the "pop_to_marker"
12914 method in the available_exprs_stack class.
12915 (avail_expr_stack::record_expr): Method factored out.
12916 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
12918 (hashable_expr_equal_p): Fix formatting.
12920 2015-09-15 David Malcolm <dmalcolm@redhat.com>
12922 * input.h (location_get_source_line): Drop "expanded_location"
12923 param in favor of a file and line number.
12924 * input.c (location_get_source_line): Likewise.
12925 (dump_location_info): Update for change in signature of
12926 location_get_source_line.
12927 * diagnostic.c (diagnostic_print_caret_line): Likewise.
12929 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12931 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
12932 Bump to 4KB for SJLJ exceptions.
12933 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
12934 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
12935 * doc/tm.texi: Regenerate.
12937 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12939 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
12940 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
12943 2015-09-15 Richard Biener <rguenther@suse.de>
12945 PR tree-optimization/67470
12946 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
12947 structure for PHI hoisting by inserting a forwarder block
12950 2015-09-15 Christian Bruel <christian.bruel@st.com>
12952 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
12953 (arm_option_print): New function.
12955 2015-09-15 Christian Bruel <christian.bruel@st.com>
12958 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
12959 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
12960 Remove flags parameter.
12961 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
12962 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
12963 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
12964 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
12965 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
12966 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
12967 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
12968 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
12970 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12972 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
12974 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
12975 AARCH64_VALID_SIMD_DREG_MODE.
12977 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12979 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
12980 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
12981 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
12982 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
12983 aarch64_ld4_lane<mode>): Combine together, making...
12984 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12985 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12986 aarch64_st4_lane<mode>): Combine together, making...
12987 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12988 * config/aarch64/iterators.md (nregs): Add comment.
12990 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12992 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
12993 Change operand mode from <V_TWO_ELEM> to BLK.
12994 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
12995 (aarch64_vec_store_lanesoi_lane<mode): Likewise
12996 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12997 (aarch64_ld2_lane<mode>): Likewise.
12998 (aarch64_st2_lane<VQ:mode>): Likewise.
12999 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
13001 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13003 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
13004 Change operand mode from <V_FOUR_ELEM> to BLK.
13005 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
13006 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
13007 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13008 (aarch64_ld4_lane<mode>): Likewise.
13009 (aarch64_st4_lane<mode>): Likewise.
13010 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
13012 2015-09-15 Richard Biener <rguenther@suse.de>
13014 PR middle-end/67563
13015 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
13016 transfer EH info from old to new stmt.
13017 (replace_call_with_value): Likewise.
13018 (replace_call_with_call_and_fold): Likewise.
13019 (gimple_fold_builtin_memory_op): Likewise.
13020 (gimple_fold_builtin_memset): Likewise.
13021 (gimple_fold_builtin_stpcpy): Likewise.
13022 (gimple_fold_call): Likewise.
13024 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13026 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
13028 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
13029 (aarch64_simd_intEI_type_node): Likewise.
13030 (aarch64_simd_builtin_std_type): Remove EImode case.
13031 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
13032 * config/aarch64/aarch64-modes.def: Remove EImode.
13034 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13036 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
13037 Change operand mode from <V_THREE_ELEM> to BLK.
13038 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
13039 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
13040 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13041 (aarch64_ld3_lane<mode>): Likewise.
13042 (aarch64_st3_lane<mode>): Likewise.
13043 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
13045 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13047 * config/aarch64/aarch64-simd.md
13048 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
13049 Change all TImode operands to BLKmode.
13050 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
13051 Change all EImode operands to BLKmode.
13052 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
13053 Change all OImode operands to BLKmode.
13055 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
13056 and call set_mem_size.
13057 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
13059 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
13061 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13063 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
13065 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
13067 (vec_store_lanesci_lane<mode>): Rename to...
13068 (aarch64_vec_store_lanesci_lane<mode>): ...this.
13070 (vec_store_lanesxi_lane<mode>): Rename to...
13071 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
13073 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13074 aarch64_st4_lane<mode>): Follow renaming.
13076 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13078 * config/s390/s390.c (s390_const_operand_ok): Add missing
13081 2015-09-15 Richard Biener <rguenther@suse.de>
13084 * lto-streamer.h (lto_location_cache::current_sysp): Properly
13086 * lto-streamer-out.c (clear_line_info): Likewise.
13088 2015-09-15 Richard Biener <rguenther@suse.de>
13090 * doc/match-and-simplify.texi: Fix wording.
13092 2015-09-15 Bin Cheng <bin.cheng@arm.com>
13094 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
13095 unnecessary type conversion in op1.
13097 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13099 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
13100 (dup_block_and_redirect): Delete function.
13101 (can_dup_for_shrink_wrapping): New function.
13102 (fix_fake_fallthrough_edge): New function.
13103 (try_shrink_wrapping): Rewrite function.
13104 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
13106 2015-09-14 Rich Felker <dalias@libc.org>
13108 * configure.ac: Change target pattern for sh TLS support
13109 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
13110 * configure: Regenerate.
13112 2015-09-14 Jeff Law <law@redhat.com>
13114 PR tree-optimization/47679
13115 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
13116 type rather than void *.
13118 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
13121 * diagnostic.c (diagnostic_initialize): Do not set
13122 some_warnings_are_errors.
13123 (diagnostic_finish): Use DK_WERROR count instead.
13124 (diagnostic_report_diagnostic): Do not set
13125 some_warnings_are_errors.
13126 * diagnostic.h (struct diagnostic_context): Remove
13127 some_warnings_are_errors.
13129 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
13131 * config/sparc/predicates.md (const_all_ones_operand): Use
13132 CONSTM1_RTX to simplify definition.
13134 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
13137 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
13140 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
13142 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
13143 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
13144 OPT_fshow_column to handled saved option cases.
13145 (append_compiler_options): Do not skip the above added options.
13147 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13150 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
13151 nopcrelative_literal_loads.
13152 (aarch64_classify_address): Likewise.
13153 (aarch64_constant_pool_reload_icode): Define.
13154 (aarch64_secondary_reload): Handle secondary reloads for
13156 (aarch64_override_options): Handle nopcrelative_literal_loads.
13157 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
13158 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
13160 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
13161 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
13162 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
13164 * doc/invoke.texi (mpc-relative-literal-loads): Document.
13166 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
13168 PR middle-end/67401
13169 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
13170 sync_compare_and_swap_optab libcall to target_oval.
13172 2015-09-14 Marek Polacek <polacek@redhat.com>
13174 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
13176 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
13178 2015-09-11 Mark Wielaard <mjw@redhat.com>
13181 * toplev.c (check_global_declaration): Check and use
13182 warn_unused_const_variable.
13183 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
13184 (-Wunused-variable): Remove non-constant. For C implies
13185 -Wunused-const-variable.
13186 (-Wunused-const-variable): New.
13188 2015-09-14 Richard Biener <rguenther@suse.de>
13190 * doc/match-and-simplify.texi: Update for changed syntax
13191 of inner ifs and the new switch expression.
13193 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
13195 * config/i386/haswell.md: New file describing Haswell pipeline.
13196 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
13197 haswell-like processors.
13198 (ix86_reassociation_width): Increase reassociation width for 64-bit
13199 Haswell processor family.
13200 * config/i386/i386.md: Introduce haswell cpu and include new md file.
13202 2015-09-14 Richard Biener <rguenther@suse.de>
13204 * doc/match-and-simplify.texi: Fixup some formatting issues
13205 and document the 's' flag.
13207 2015-09-13 Olivier Hainque <hainque@adacore.com>
13208 Eric Botcazou <ebotcazou@adacore.com>
13210 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
13211 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
13212 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
13213 (TARGET_CPU_gr5): Likewise.
13214 (TARGET_CPU_gr6): Likewise.
13215 (MULTILIB_DEFAULTS): Likewise.
13216 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
13217 for mcpu=gr5 and mcpu=gr6.
13218 (MULTILIB_DIRNAMES): Adjust accordingly.
13220 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13222 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
13223 (mem_ref_p): Likewise.
13224 (outermost_indep_loop): Adjust.
13225 (mem_ref_in_stmt): Likewise.
13226 (determine_max_movement): Likewise.
13227 (mem_ref_alloc): Likewise.
13228 (record_mem_ref_loc): Likewise.
13229 (set_ref_stored_in_loop): Likewise.
13230 (mark_ref_stored): Likewise.
13231 (gather_mem_refs_stmt): Likewise.
13232 (mem_refs_may_alias_p): Likewise.
13233 (for_all_locs_in_loop): Likewise.
13234 (struct rewrite_mem_ref_loc): Likewise.
13235 (rewrite_mem_refs): Likewise.
13236 (struct first_mem_ref_loc_1): Likewise.
13237 (first_mem_ref_loc): Likewise.
13238 (struct sm_set_flag_if_changed): Likewise.
13239 (execute_sm_if_changed_flag_set): Likewise.
13240 (execute_sm): Likewise.
13241 (hoist_memory_references):
13242 (struct ref_always_accessed): Likewise.
13243 (ref_always_accessed_p): Likewise.
13244 (refs_independent_p): Likewise.
13245 (record_dep_loop): Likewise.
13246 (ref_indep_loop_p_1): Likewise.
13247 (ref_indep_loop_p_2): Likewise.
13248 (ref_indep_loop_p): Likewise.
13249 (can_sm_ref_p): Likewise.
13250 (find_refs_for_sm): Likewise.
13251 (tree_ssa_lim_finalize): Likewise.
13253 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13255 * dwarf2out.c (dw_attr_ref): Remove typedef.
13256 (dw_line_info_ref): Likewise.
13257 (pubname_ref): Likewise.
13258 (dw_ranges_ref): Likewise.
13259 (dw_ranges_by_label_ref): Likewise.
13260 (comdat_type_node_ref): Likewise.
13262 (get_AT_low_pc): Likewise.
13263 (get_AT_hi_pc): Likewise.
13264 (get_AT_string): Likewise.
13265 (get_AT_flag): Likewise.
13266 (get_AT_unsigned): Likewise.
13267 (get_AT_ref): Likewise.
13268 (get_AT_file): Likewise.
13269 (remove_AT): Likewise.
13270 (print_die): Likewise.
13271 (check_die): Likewise.
13272 (die_checksum): Likewise.
13273 (attr_checksum_ordered): Likewise.
13274 (struct checksum_attributes): Likewise.
13275 (collect_checksum_attributes): Likewise.
13276 (die_checksum_ordered): Likewise.
13277 (same_die_p): Likewise.
13278 (is_declaration_die): Likewise.
13279 (clone_die): Likewise.
13280 (clone_as_declaration): Likewise.
13281 (copy_declaration_context): Likewise.
13282 (break_out_comdat_types): Likewise.
13283 (copy_decls_walk): Likewise.
13284 (output_location_lists): Likewise.
13285 (external_ref_hasher::hash): Likewise.
13286 (optimize_external_refs_1): Likewise.
13287 (build_abbrev_table): Likewise.
13288 (size_of_die): Likewise.
13289 (unmark_all_dies): Likewise.
13290 (size_of_pubnames): Likewise.
13291 (output_die_abbrevs): Likewise.
13292 (output_die): Likewise.
13293 (output_pubnames): Likewise.
13294 (add_ranges_num): Likewise.
13295 (add_ranges_by_labels): Likewise.
13296 (add_high_low_attributes): Likewise.
13297 (gen_producer_string): Likewise.
13298 (dwarf2out_set_name): Likewise.
13299 (new_line_info_table): Likewise.
13300 (prune_unused_types_walk_attribs): Likewise.
13301 (prune_unused_types_update_strings): Likewise.
13302 (prune_unused_types): Likewise.
13303 (resolve_addr): Likewise.
13304 (optimize_location_lists_1): Likewise.
13305 (index_location_lists): Likewise.
13306 (dwarf2out_finish): Likewise.
13308 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13310 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
13312 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13314 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
13315 (dump_asserts_for): Adjust.
13316 (register_new_assert_for): Likewise.
13317 (process_assert_insertions): Likewise.
13318 (insert_range_assertions): Likewise.
13320 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13322 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
13323 and remove typedef.
13324 (new_temp_expr_table): Adjust.
13325 (free_temp_expr_table): Likewise.
13326 (version_to_be_replaced_p): Likewise.
13327 (make_dependent_on_partition): Likewise.
13328 (add_to_partition_kill_list): Likewise.
13329 (remove_from_partition_kill_list): Likewise.
13330 (add_dependence): Likewise.
13331 (finished_with_expr): Likewise.
13332 (process_replaceable): Likewise.
13333 (kill_expr): Likewise.
13334 (kill_virtual_exprs): Likewise.
13335 (mark_replaceable): Likewise.
13336 (find_replaceable_in_bb): Likewise.
13337 (find_replaceable_exprs): Likewise.
13338 (debug_ter): Likewise.
13340 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13342 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
13343 (struct btr_user): Rename from btr_user_s.
13344 (struct btr_def): Rename from btr_def_s.
13345 (find_btr_def_group): Adjust.
13346 (add_btr_def): Likewise.
13347 (new_btr_user): Likewise.
13348 (note_other_use_this_block): Likewise.
13349 (compute_defs_uses_and_gen): Likewise.
13350 (link_btr_uses): Likewise.
13351 (build_btr_def_use_webs): Likewise.
13352 (block_at_edge_of_live_range_p): Likewise.
13353 (btr_def_live_range): Likewise.
13354 (combine_btr_defs): Likewise.
13355 (move_btr_def): Likewise.
13356 (migrate_btr_def): Likewise.
13357 (migrate_btr_defs): Likewise.
13359 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13361 * var-tracking.c (shared_hash_def): Rename to shared_hash.
13362 (shared_hash): Remove typedef.
13363 (struct dataflow_set): Adjust.
13364 (shared_hash_unshare): Likewise.
13365 (dataflow_set_merge): Likewise.
13366 (vt_initialize): Likewise.
13367 (vt_finalize): Likewise.
13369 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13371 * var-tracking.c (struct location_chain): Rename from
13372 location_chain_def.
13373 (struct variable_part): Adjust.
13374 (variable_htab_free): Likewise.
13375 (unshare_variable): Likewise.
13376 (get_init_value): Likewise.
13377 (get_addr_from_local_cache): Likewise.
13378 (drop_overlapping_mem_locs): Likewise.
13379 (val_reset): Likewise.
13380 (struct variable_union_info): Likewise.
13381 (variable_union): Likewise.
13382 (find_loc_in_1pdv): Likewise.
13383 (insert_into_intersection): Likewise.
13384 (intersect_loc_chains): Likewise.
13385 (canonicalize_loc_order_check): Likewise.
13386 (canonicalize_values_mark): Likewise.
13387 (canonicalize_values_star): Likewise.
13388 (canonicalize_vars_star): Likewise.
13389 (variable_merge_over_cur): Likewise.
13390 (remove_duplicate_values): Likewise.
13391 (variable_post_merge_new_vals): Likewise.
13392 (variable_post_merge_perm_vals): Likewise.
13393 (find_mem_expr_in_1pdv): Likewise.
13394 (dataflow_set_preserve_mem_locs): Likewise.
13395 (dataflow_set_remove_mem_locs): Likewise.
13396 (variable_part_different_p): Likewise.
13397 (onepart_variable_different_p): Likewise.
13398 (find_src_set_src): Likewise.
13399 (dump_var): Likewise.
13400 (set_slot_part): Likewise.
13401 (clobber_slot_part): Likewise.
13402 (delete_slot_part): Likewise.
13403 (vt_expand_var_loc_chain): Likewise.
13404 (emit_note_insn_var_location): Likewise.
13405 (vt_finalize): Likewise.
13407 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13409 * dse.c (store_info_t): Remove typedef.
13410 (group_info_t): Likewise.
13411 (const_group_info_t): Likewise.
13412 (deferred_change_t): Likewise.
13413 (get_group_info): Adjust.
13414 (free_store_info): Likewise.
13415 (canon_address): Likewise.
13416 (clear_rhs_from_active_local_stores): Likewise.
13417 (record_store): Likewise.
13418 (replace_read): Likewise.
13419 (check_mem_read_rtx): Likewise.
13420 (scan_insn): Likewise.
13421 (remove_useless_values): Likewise.
13422 (dse_step1): Likewise.
13423 (dse_step2_init): Likewise.
13424 (dse_step2_nospill): Likewise.
13425 (scan_stores_nospill): Likewise.
13426 (scan_reads_nospill): Likewise.
13427 (dse_step3_exit_block_scan): Likewise.
13428 (dse_step3): Likewise.
13429 (dse_step5_nospill): Likewise.
13430 (dse_step6): Likewise.
13432 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13434 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
13435 (alias_set_entry): Remove typedef.
13436 (alias_set_subset_of): Adjust.
13437 (alias_sets_conflict_p): Likewise.
13438 (init_alias_set_entry): Likewise.
13439 (get_alias_set): Likewise.
13440 (new_alias_set): Likewise.
13441 (record_alias_subset): Likewise.
13443 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
13445 * doc/install.texi (Downloading the source): Mark up
13446 contrib/download_prerequisites properly and drop leading "./".
13448 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13450 * config/arc/arc.h: Remove define of STRUCT_VALUE.
13451 * config/lm32/lm32.h: Likewise.
13452 * config/mep/mep.h: Likewise.
13453 * config/visium/visium.h: Likewise.
13454 * system.h: Poison STRUCT_VALUE macro.
13456 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
13458 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
13459 CONSTANT_P operands.
13461 2015-09-11 David S. Miller <davem@davemloft.net>
13463 * config/sparc/constraints.md: Make "U" constraint a real register
13465 * config/sparc/sparc.c (TARGET_LRA_P): Define.
13466 (D_MODES, DF_MODES): Add missing cast.
13467 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13468 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13469 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13471 * config/sparc/sparc.h (PROMOTE_MODE): Define.
13472 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13473 provide these insn when flag_pic.
13475 2015-09-11 Jeff Law <law@redhat.com>
13477 PR tree-optimization/47679
13478 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
13479 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
13480 member with m_. Update inline member functions as necessary. Add
13482 * tree-ssa-scopedtables.c: Update const_and_copies's member
13483 functions to use m_ prefix to access the stack.
13485 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
13487 * graphite-optimize-isl.c (disable_tiling): Remove.
13488 (get_schedule_for_band): Do not use disable_tiling.
13489 (get_prevector_map): Delete function.
13490 (enable_polly_vector): Remove.
13491 (get_schedule_for_band_list): Remove dead code.
13493 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
13495 * graphite-optimize-isl.c (get_tile_map): Refactor.
13496 (get_schedule_for_band): Same.
13497 (getScheduleForBand): Same.
13498 (get_prevector_map): Same.
13499 (get_schedule_for_band_list): Same.
13500 (get_schedule_map): Same.
13501 (get_single_map): Same.
13502 (apply_schedule_map_to_scop): Same.
13503 (optimize_isl): Same.
13505 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13508 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
13510 * config/aarch64/iterators.md (GPF_TF_F16): New.
13513 2015-09-10 Nathan Sidwell <nathan@acm.org>
13515 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
13516 (nvptx_reorg): Adjust comments.
13518 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
13521 * configure.ac: Check if setenv and unsetenv are declared.
13522 * configure: Rebuild.
13523 * config.in: Rebuild.
13524 * system.h: Declare setenv and unsetenv if not declared.
13526 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13528 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
13529 commentary to simplify permute mask adjustment equation.
13530 (special_handling_values): Add SH_VPERM.
13531 (const_load_sequence_p): New function.
13532 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
13533 the mask loaded from the constant pool.
13534 (adjust_vperm): New function.
13535 (handle_special_swappables): Call adjust_vperm.
13536 (dump_swap_insn_table): Handle SH_VPERM.
13538 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
13540 * shrink-wrap.c (requires_stack_frame_p): Remove static.
13541 * shrink-wrap.h (requires_stack_frame_p): Put back.
13543 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
13545 * reload1.c (elimination_costs_in_insn): Locally turn
13546 -Wmaybe-uninitialized into a warning.
13548 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
13550 * shrink-wrap.c (requires_stack_frame_p): Make static.
13551 (prepare_shrink_wrap): Likewise.
13552 (dup_block_and_redirect): Likewise.
13553 * shrink-wrap.h: Remove declarations of those functions.
13555 2015-09-10 Mark Wielaard <mjw@redhat.com>
13557 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
13559 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
13562 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
13563 missing simplify_gen_subreg.
13565 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13567 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
13568 the vector element is bigger than 64 bit.
13570 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13572 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
13573 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
13575 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13577 * config/s390/s390.c: Add V1TImode to constant pool modes.
13579 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13582 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
13583 predicate. Set predicable_short_it attr to "no".
13585 2015-09-10 Jiong Wang <jiong.wang@arm.com>
13587 PR rtl-optimization/67421
13588 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
13589 left wide shift tranformation.
13591 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
13593 * common/config/arc/arc-common.c: Remove references to A5.
13594 * config/arc/arc-opts.h: Likewise.
13595 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
13596 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
13597 * config/arc/t-arc-newlib: Likewise.
13599 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
13601 * config/arc/arc.md (length): Fix attribute length for conditional
13602 executed instructions with long immediate.
13604 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13606 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
13607 type for second alternative.
13609 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
13611 * doc/invoke.texi (Downloading GCC): Mention
13612 contrib/download_prerequisites script.
13614 2015-09-10 Jakub Jelinek <jakub@redhat.com>
13617 * gimplify.c (gimplify_omp_for): If inner stmt is not found
13618 for combined loop, assert seen_error () and return GS_ERROR.
13620 PR middle-end/67521
13621 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
13622 if decl is already in outer->variables.
13624 PR middle-end/67517
13625 * gimplify.c (gimplify_scan_omp_clauses): Instead of
13626 asserting that decl is not specified in octx->variables,
13627 break out of the loop if it is.
13630 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
13631 iterator is not explicitly determined, but is defined inside
13632 of the combined workshare region, handle it like if it has
13633 DECL_EXPR in OMP_FOR_PRE_BODY.
13635 2015-09-09 Nathan Sidwell <nathan@acm.org>
13637 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
13638 (*cmp<mode>): Add assembler spacing.
13639 (setcc_int<mode>, set_cc_float<mode>): Likewise.
13640 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
13642 (write_func_decl_from_insn): Refactor argument loops & comma emission.
13643 (nvptx_expand_call): Likewise.
13644 (nvptx_output_call_insn): Likewise.
13645 (nvptx_reorg_subreg): Add spacing.
13647 2015-09-09 Marek Polacek <polacek@redhat.com>
13649 PR middle-end/67512
13650 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
13653 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
13656 * doc/invoke.texi ([Wsubobject-linkage]): Document.
13658 2015-09-09 Tom de Vries <tom@codesourcery.com>
13660 * params-list.h: Add missing copyright notice.
13662 2015-09-09 Nathan Sidwell <nathan@acm.org>
13664 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
13665 sel_truesi, not andsi.
13667 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13669 * config/arm/arm.md (*subsi3_compare0): Rename to...
13670 (subsi3_compare0): ... This.
13671 (modsi3): New define_expand.
13672 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
13673 when operand is power of 2.
13675 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13677 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
13678 (*neg<mode>2_compare0): Rename to...
13679 (neg<mode>2_compare0): ... This.
13680 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
13681 Move check for speed inside the if-then-elses. Reflect
13682 CSNEG sequence in MOD by power of 2 case.
13684 2015-09-09 Alan Modra <amodra@gmail.com>
13687 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
13688 reload replacement for PRE_MODIFY address reg.
13690 2015-09-09 Sebastian Pop <s.pop@samsung.com>
13692 PR tree-optimization/53852
13693 * config.in: Regenerate.
13694 * configure: Regenerate.
13695 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
13696 * graphite-optimize-isl.c (optimize_isl): Stop computation when
13697 PARAM_MAX_ISL_OPERATIONS is reached.
13698 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
13699 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
13700 result equal to isl_stat_ok as the status now can be isl_error_quota.
13701 (subtract_commutative_associative_deps): Same.
13702 (compute_deps): Same.
13704 2015-09-08 Aditya Kumar <hiraditya@msn.com>
13705 Sebastian Pop <s.pop@samsung.com>
13707 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
13708 Return the parameter if it was saved in corresponding
13709 parameter_rename_map of the region.
13710 (copy_def): Copy def from sese region to the newly created region.
13711 (copy_internal_parameters): Copy all the internal parameters defined
13712 within a region to the newly created region.
13713 (graphite_regenerate_ast_isl): Copy parameters to the new region before
13714 translating isl to gimple.
13715 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
13716 the loop-nest does not have any data-references.
13717 (build_graphite_scops): Create a scop only when there is at least one
13719 (contains_only_close_phi_nodes): Deleted.
13720 (print_graphite_scop_statistics): Deleted
13721 (print_graphite_statistics): Deleted
13722 (limit_scops): Deleted.
13723 (build_scops): Removed call to limit_scops.
13724 * sese.c (new_sese): Construct.
13725 (free_sese): Destruct.
13726 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
13728 (set_rename): Pass sese region so that parameters inside the region can
13729 be added to its parameter_rename_map.
13730 (rename_uses): Pass sese region.
13731 (graphite_copy_stmts_from_block): Do not copy parameters that have been
13732 generated in the header of the scop. For each SSA_NAME in the
13733 parameter_rename_map rename its usage.
13734 (invariant_in_sese_p_rec): Return false if tree t is defined outside
13736 (scalar_evolution_in_region): If the tree t is invariant just return t.
13737 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
13738 struct sese to keep track of all the parameters which need renaming.
13739 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
13741 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
13743 2015-09-08 Tom de Vries <tom@codesourcery.com>
13745 * Makefile.in (generated_files): Add params.list.
13746 (params.list, s-params.list): Add rule.
13747 * params.h (enum compiler_param): Include params-list.h. Move define
13748 DEFPARAM, include params.def and undef DEFPARAM ...
13749 * params-list.h: ... here. New file.
13751 2015-09-08 David Malcolm <dmalcolm@redhat.com>
13753 * pretty-print.h (printer_fn): Fix typo in comment.
13755 2015-09-07 Jeff Law <law@redhat.com>
13757 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
13759 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13761 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
13762 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
13763 (arm_neon_fp16_hw): New.
13765 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13767 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
13768 UNITS_PER_WORD >= 4.
13770 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13772 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
13773 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
13774 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
13775 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
13776 (aarch64_float_extend_lo_v2df): Rename to...
13777 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
13779 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
13780 (float_extend_lo): Add v4sf.
13782 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
13783 * config/aarch64/iterators.md (VQ_HSF): New iterator.
13784 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
13785 (Vwide): New mode_attr.
13787 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13789 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
13790 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
13791 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
13792 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
13793 V4HF and V8HF variants to iterator.
13795 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
13797 * config/aarch64/iterators.md (VDQF_F16): New.
13798 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
13800 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13802 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
13803 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13804 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
13805 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
13806 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
13807 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13808 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
13809 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
13810 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
13811 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
13812 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
13813 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13814 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
13815 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
13816 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
13817 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
13818 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
13819 vld1q_dup_f16): New.
13821 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13823 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
13824 Reparameterize to...
13825 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
13826 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
13827 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
13829 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
13831 (float_truncate_lo_): Use BUILTIN_VDF iterator.
13833 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
13835 * config/aarch64/iterators.md (VDF, Vdtype): New.
13836 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
13838 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13840 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
13841 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
13842 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
13843 Add __builtin_aarch64_simd_hf.
13844 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
13845 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
13846 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
13847 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
13848 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
13849 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
13850 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
13851 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
13852 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
13854 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
13855 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
13856 (VDC, Vdbl): Add V4HF.
13858 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13860 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
13861 V4HFmode and V8HFmode.
13862 (aarch64_split_simd_move): Add case for V8HFmode.
13863 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
13864 (aarch64_simd_builtin_std_type): Handle HFmode.
13865 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
13867 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
13868 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
13869 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
13871 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
13874 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
13875 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
13877 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
13878 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
13879 vst1q_lane_f16): New.
13880 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
13881 (VALLDI_F16, VALL_F16): New.
13882 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
13883 Add cases for V4HF and V8HF.
13884 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
13886 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13888 * config/arm/arm-builtins.c (VAR11, VAR12): New.
13889 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
13890 vld4_dup): Add v4hf variant.
13891 (vget_high, vget_low): Add v8hf variant.
13892 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
13893 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
13894 v4hf and v8hf variants.
13896 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
13898 (V_DOUBLE): Add case for V4HF.
13900 (V_HALF): Add case for V8HF.
13901 (VDQX): Add V4HF, V8HF.
13902 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
13903 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
13905 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
13906 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
13907 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
13908 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
13909 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
13910 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
13911 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
13912 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
13913 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
13915 (neon_vcreate, neon_vreinterpretv8qi<mode>,
13916 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
13917 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
13918 Change VDX to VD_RE.
13920 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
13921 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
13922 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
13924 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
13925 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
13926 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
13927 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
13928 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
13929 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
13930 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
13931 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
13932 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
13934 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13936 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
13937 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
13938 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
13939 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
13940 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13941 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
13942 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
13943 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
13944 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
13945 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
13948 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13950 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
13952 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
13954 * config/arm/arm-builtins.c (v8hf_UP): New.
13955 (arm_init_simd_builtin_types): Initialise Float16x8_t.
13957 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
13959 * config/arm/arm_neon.h (float16x8_t): New typedef.
13961 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13963 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
13964 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
13965 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
13966 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
13967 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13968 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
13969 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
13970 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
13971 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13972 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
13974 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
13976 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
13977 non-alphanumeric characters in the symbol name.
13979 2015-09-07 Marek Polacek <polacek@redhat.com>
13981 PR inline-asm/67448
13982 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
13985 2015-09-07 Marek Polacek <polacek@redhat.com>
13987 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
13989 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
13991 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
13994 2015-09-04 Jakub Jelinek <jakub@redhat.com>
13996 PR middle-end/67452
13997 * tree-ssa-live.c: Include cfgloop.h.
13998 (remove_unused_locals): Clear loop->simduid if simduid is about
13999 to be removed from cfun->local_decls.
14001 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14004 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
14007 2015-09-04 Tom de Vries <tom@codesourcery.com>
14009 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
14011 2015-09-04 Jeff Law <law@redhat.com>
14013 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
14014 unnecessary constructor. It's now trivial and implemented inside...
14015 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
14016 constructor. Add comments to various methods. Remove unused
14018 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
14019 * tree-vrp.c (identify_jump_threads): Likewise.
14020 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
14021 indentation issues.
14022 (thread_across_edge): Similarly.
14023 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
14024 arguments in constructor call.
14026 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
14028 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
14029 temp path contains a '-'.
14031 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
14032 Petr Murzin <petr.murzin@intel.com>
14033 Kirill Yukhin <kirill.yukhin@intel.com>
14035 * config/i386/i386-builtin-types.def
14036 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
14037 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
14038 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
14039 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
14040 * config/i386/i386.c
14041 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
14042 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14043 IX86_BUILTIN_SCATTERALTDIV16SI.
14044 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
14045 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
14046 __builtin_ia32_scatteraltdiv8si.
14047 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
14048 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14049 IX86_BUILTIN_SCATTERALTDIV16SI.
14050 (ix86_vectorize_builtin_scatter): New.
14051 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
14052 ix86_vectorize_builtin_scatter.
14054 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
14055 Petr Murzin <petr.murzin@intel.com>
14056 Kirill Yukhin <kirill.yukhin@intel.com>
14058 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
14059 * doc/tm.texi: Regenerate.
14060 * target.def: Add scatter builtin.
14061 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
14062 for loads/stores in case of gather/scatter accordingly.
14063 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14064 STMT_VINFO_GATHER_P(S).
14065 (vect_check_gather): Rename to ...
14066 (vect_check_gather_scatter): this.
14067 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
14068 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
14069 (vect_check_gather_scatter): Use it instead of vect_check_gather.
14070 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
14071 variable and new checkings for it accordingly.
14072 * tree-vect-stmts.c
14073 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14074 STMT_VINFO_GATHER_P(S).
14075 (vect_check_gather_scatter): Use it instead of vect_check_gather.
14076 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
14078 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
14080 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
14082 (mulv16qi3): New define_expand.
14084 2015-09-03 Martin Sebor <msebor@redhat.com>
14087 * doc/extend.texi (Other Builtins): Document when the address
14088 of a built-in function can be taken.
14090 2015-09-03 Richard Biener <rguenther@suse.de>
14092 * dwarf2out.c (flush_limbo_die_list): Split out from ...
14093 (dwarf2out_early_finish): ... here.
14094 (dwarf2out_finish): Do not call dwarf2out_early_finish but
14095 flush_limbo_die_list. Assert we have no deferred asm names.
14097 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14099 * optabs.c (expand_binop): Don't create a broadcast vector with a
14100 source element wider than the inner mode.
14102 2015-09-03 Richard Biener <rguenther@suse.de>
14104 * varasm.c (output_constant): Use fold_convert instead of
14107 2015-09-03 Tom de Vries <tom@codesourcery.com>
14109 PR tree-optimization/65637
14110 * omp-low.c (expand_omp_for_static_chunk): Handle case that
14111 fin_bb has 2 predecessors.
14113 2015-09-03 Tom de Vries <tom@codesourcery.com>
14115 PR tree-optimization/65637
14116 * omp-low.c (find_phi_with_arg_on_edge): New function.
14117 (expand_omp_for_static_chunk): Fix inner loop phi.
14119 2015-09-03 Tom de Vries <tom@codesourcery.com>
14121 PR tree-optimization/65637
14122 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
14125 2015-09-03 Tom de Vries <tom@codesourcery.com>
14127 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
14129 2015-09-03 Tom de Vries <tom@codesourcery.com>
14131 * doc/invoke.texi (parloops-chunk-size): Add item.
14132 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
14133 * tree-parloops.c: Include params.h.
14134 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
14135 param parloops-chunk-size is used.
14137 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14139 PR middle-end/67351
14140 * fold-const.c (fold_binary_loc) : Move
14141 Transform (x >> c) << c into x & (-1<<c) or
14142 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
14143 types using simplify and match.
14144 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
14145 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
14147 2015-09-03 Richard Biener <rguenther@suse.de>
14150 * tree-ssa-structalias.c (ctor_for_analysis): New function.
14151 (create_variable_info_for_1): Use ctor_for_analysis instead
14152 of get_constructor.
14153 (create_variable_info_for): Likewise.
14155 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
14158 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
14159 in new callgraph edge.
14161 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
14166 * config/aarch64/aarch64-simd.md
14167 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
14168 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
14169 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
14170 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
14172 2015-09-02 Alan Modra <amodra@gmail.com>
14174 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
14175 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
14176 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
14178 2015-09-02 Alan Modra <amodra@gmail.com>
14181 * config/rs6000/predicates.md (current_file_function_operand): Don't
14182 return true for weak symbols.
14183 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
14185 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
14186 Andrew Bennett <andrew.bennett@imgtec.com>
14188 * config/mips/mips-opts.h (mips_cb_setting): New enum.
14189 * config/mips/mips-protos.h: Add definitions for
14190 mips_output_jump and mips_output_equal_conditional_branch
14191 * config/mips/mips.c (MIPS_JR): Change to support the
14193 (mips_emit_compare): Add support for the MIPS R6 conditional
14195 (mips_process_sync_loop): Likewise.
14196 (mips_output_order_conditional_branch): Likewise.
14197 (mips16_build_call_stub): Change MIPS_CALL to
14199 (mips_print_operand_punctuation): Update 's' case to only
14200 apply to micromips r2.
14201 (mips_adjust_insn_length): Add support for forbidden slot
14203 (mips_avoid_hazard): Likewise.
14204 (mips_reorg_process_insns): Likewise.
14205 (mips_output_jump): New function.
14206 (mips_output_equal_conditional_branch): Likewise.
14207 (mips_output_conditional_branch): Use jrc/bc if compact
14208 branch support is enabled. Ensure the forbidden slots
14209 between the two branch instructions is filled with a nop.
14210 (mips_option_override): Add support to process the compact
14211 branch option and set the correct defaults. Prevent
14212 non-explict relocs being using for MIPS R6.
14213 (mips_trampoline_init): Add compact branch support.
14214 (mips_mult_zero_zero_cost): Allow zero initialisation of
14215 accumulators with TARGET_DSP.
14216 * config/mips/mips.h (TARGET_CB_NEVER): New define.
14217 (TARGET_CB_MAYBE): New define.
14218 (TARGET_CB_ALWAYS): New define.
14219 (ISA_HAS_DELAY_SLOTS): New define.
14220 (ISA_HAS_COMPACT_BRANCHES): New define.
14221 (ISA_HAS_JRC): New define.
14222 (MIPS_BRANCH_C): New define.
14223 (MIPS_CALL): Removed.
14224 (MICROMIPS_J): Removed.
14225 * config/mips/mips.md (compact_form): New attr.
14226 (hazard): Add support for forbidden slots.
14227 (define_delay): Add support for compact branches.
14228 (*branch_order<mode>): Likewise.
14229 (*branch_order<mode>_inverted): Likewise.
14230 (*branch_equality<mode>): Likewise.
14231 (*branch_equality<mode>_inverted): Likewise.
14232 (*jump_absolute): Likewise.
14233 (*jump_pic): Likewise.
14234 (indirect_jump): Use mips_output_jump to produce assembly output.
14235 (tablejump_<mode>"): Likewise.
14236 (*<optab>"): Likewise.
14237 (<optab>_internal): Likewise.
14238 (sibcall_internal): Likewise.
14239 (sibcall_value_internal): Likewise.
14240 (sibcall_value_multiple_internal): Likewise.
14241 (call_internal): Likewise.
14242 (call_split): Likewise.
14243 (call_internal_direct): Likewise.
14244 (call_direct_split): Likewise.
14245 (call_value_internal): Likewise.
14246 (call_value_split): Likewise.
14247 (call_value_internal_direct): Likewise.
14248 (call_value_direct_split): Likewise.
14249 (call_value_multiple_internal): Likewise.
14250 (call_value_multiple_split): Likewise.
14251 (mips_get_fcsr_mips16_<mode>): Likewise.
14252 (mips_set_fcsr_mips16_<mode>): Likewise.
14253 (tls_get_tp_mips16_<mode>): Likewise.
14254 * config/mips/mips.opt: Add -mcompact-branches option.
14255 * config/mips/predicates.md (order_operator): Ensure the
14256 conditional compact branches are only used if the ISA them.
14257 * doc/invoke.texi: Document -mcompact-branches option.
14259 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
14262 * lra-lives.c (process_bb_lives): Process move pseudos with the
14263 same value for copies and preferences
14264 * lra-constraints.c (match_reload): Create match reload pseudo
14265 with the same value from single dying input pseudo.
14267 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
14270 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
14272 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
14274 * trans-mem.c: Add contributed-by.
14275 * trans-mem.h: Same.
14277 2015-09-01 Richard Biener <rguenther@suse.de>
14279 * expr.c (expand_expr_real_1): For expanding TERed defs
14280 set the current location to that of the def if not UNKNOWN.
14282 2015-09-01 David Sherwood <david.sherwood@arm.com>
14284 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
14286 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14288 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
14289 then_cost, else_cost fields. Change branch_cost field to unsigned int.
14290 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
14291 Include rtl-iter.h.
14292 (noce_simple_bbs): New function.
14293 (noce_try_move): Bail if basic blocks are not simple.
14294 (noce_try_store_flag): Likewise.
14295 (noce_try_store_flag_constants): Likewise.
14296 (noce_try_addcc): Likewise.
14297 (noce_try_store_flag_mask): Likewise.
14298 (noce_try_cmove): Likewise.
14299 (noce_try_minmax): Likewise.
14300 (noce_try_abs): Likewise.
14301 (noce_try_sign_mask): Likewise.
14302 (noce_try_bitop): Likewise.
14303 (bbs_ok_for_cmove_arith): New function.
14304 (noce_emit_all_but_last): Likewise.
14305 (noce_emit_insn): Likewise.
14306 (noce_emit_bb): Likewise.
14307 (noce_try_cmove_arith): Handle non-simple basic blocks.
14308 (insn_valid_noce_process_p): New function.
14309 (contains_mem_rtx_p): Likewise.
14310 (bb_valid_for_noce_process_p): Likewise.
14311 (noce_process_if_block): Allow non-simple basic blocks
14314 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
14316 * tree-ssa-dom.c (record_equivalences_from_phis,
14317 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
14318 (lookup_avail_expr): Likewise, and remove comment and unused temp.
14320 2015-09-01 Nick Clifton <nickc@redhat.com>
14322 * config/msp430/msp430.opt (mcpu): Fix typo.
14324 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14326 * config/aarch64/aarch64.c (aarch64_set_current_function):
14327 Re-layout any vector parameters have non-simd layout.
14328 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
14330 (aarch64_simd_expand_args): Delete call to the above.
14332 2015-08-31 Mike Frysinger <vapier@gentoo.org>
14334 * doc/invoke.texi (asan-stack): Add space before option.
14336 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
14338 * tree.h (zerop): New function.
14339 * tree.c (zerop): Likewise.
14340 (element_precision): Handle expressions.
14341 * match.pd (define_predicates): Add zerop.
14342 (x <= +Inf): Fix comment.
14343 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
14344 * fold-const.c (fold_binary_loc): ... here. Remove.
14346 2015-08-31 Richard Biener <rguenther@suse.de>
14348 PR middle-end/67381
14349 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
14351 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
14353 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
14354 (CEXPI): New operator list.
14355 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
14356 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
14358 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
14360 2015-08-31 Tom de Vries <tom@codesourcery.com>
14362 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
14363 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
14365 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
14366 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
14367 (rewrite_into_loop_closed_ssa): ... here.
14368 (replace_uses_in_dominated_bbs): Remove function.
14369 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
14370 rewrite_into_loop_closed_ssa_1.
14372 2015-08-31 Michael Matz <matz@suse.de>
14374 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
14375 enter entry and exit blocks for reverse post order.
14377 2015-08-31 Richard Biener <rguenther@suse.de>
14379 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
14380 (lto_location_cache::current_sysp): Likewise.
14381 (output_block::current_sysp): Likewise.
14382 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
14383 (lto_location_cache::apply_location_cache): Properly record
14384 system header locations.
14385 (lto_location_cache::input_location): Input whether a file
14386 is a system header.
14387 * lto-streamer-out.c (lto_output_location): Stream whether a file
14388 is a system header.
14390 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14393 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
14395 2015-08-31 Tom de Vries <tom@codesourcery.com>
14397 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
14398 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
14399 Improve function header comments.
14401 2015-08-30 Michael Collison <michael.collison@linaro.org>
14404 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
14407 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14409 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
14410 special_handling bitfield.
14411 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
14412 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
14413 that represents a general xxpermdi.
14414 (insn_is_swappable_p): Add handling for vec_concat of two
14415 doublewords, which maps to a specific xxpermdi.
14416 (adjust_xxpermdi): New function.
14417 (adjust_concat): Likewise.
14418 (handle_special_swappables): Call adjust_xxpermdi and
14420 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
14422 2015-08-30 Rich Felker <dalias@libc.org>
14424 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
14425 case instead of sh[123456ble]-*-*.
14427 2015-08-29 Anatoly Sokolov <aesok@post.ru>
14429 * ira.c (print_unform_and_important_classes,
14430 print_translated_classes): Remove reg_class_names static array.
14431 (print_unform_and_important_classes): Rename to ...
14432 (print_uniform_and_important_classes): ... this.
14433 (ira_debug_allocno_classes): Update accordingly.
14435 2015-08-29 Tom de Vries <tom@codesourcery.com>
14437 PR tree-optimization/46193
14438 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
14441 2015-08-28 Jeff Law <law@redhat.com>
14444 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14445 unable to find X NE 0 in the tables, return X as the simplified
14447 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14448 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
14450 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14451 after removing the control flow statement and unnecessary edges.
14453 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
14456 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14458 PR tree-optimization/67283
14459 * tree-sra.c (type_consists_of_records_p): Rename to...
14460 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14462 (completely_scalarize_record): Rename to...
14463 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
14465 (scalarize_elem): New.
14467 2015-08-28 Jiong Wang <jiong.wang@arm.com>
14469 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
14470 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
14471 (aarch64_symbol_type): Likewise.
14472 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14474 (aarch64_expand_mov_immediate): Likewise.
14475 (aarch64_print_operand): Likewise.
14476 (aarch64_classify_tls_symbol): Likewise.
14478 2015-08-28 Richard Biener <rguenther@suse.de>
14480 * cgraphunit.c (symbol_table::compile): Move early debug generation
14482 (symbol_table::finalize_compilation_unit): ... back here and
14483 add a !seen_error () guard.
14485 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14487 * toplev.c (process_options): Do not use flag_loop_block,
14488 flag_loop_interchange, and flag_loop_strip_mine. Add check for
14489 flag_loop_optimize_isl.
14491 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14493 * Makefile.in (OBJS): Remove graphite-blocking.o and
14494 graphite-interchange.o.
14495 * common.opt (floop-strip-mine, floop-interchange, floop-block):
14496 Alias of floop-nest-optimize.
14497 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
14498 Document as alias of -floop-nest-optimize.
14499 * graphite-blocking.c: Remove.
14500 * graphite-interchange.c: Remove.
14501 * graphite-optimize-isl.c: Include dumpfile.h.
14502 (getScheduleForBand): Add dump for tiled loops. Use
14503 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
14504 * graphite-poly.c (scop_max_loop_depth): Remove.
14505 (print_scattering_function_1): Remove.
14506 (print_scattering_function): Remove.
14507 (print_scattering_functions): Remove.
14508 (debug_scattering_function): Remove.
14509 (debug_scattering_functions): Remove.
14510 (apply_poly_transforms): Remove use of flag_loop_block,
14511 flag_loop_strip_mine, and flag_loop_interchange.
14512 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
14514 (print_pdr_access_layout): Remove.
14515 (print_pdr): Print ISL representation.
14516 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
14517 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
14519 (openscop_print_pbb_domain): Remove.
14520 (print_pbb): Remove call to print_scattering_function.
14521 (openscop_print_scop_context): Remove.
14522 (print_scop_context): Do not print matrices anymore.
14523 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
14524 SCOP_TRANSFORMED_SCHEDULE.
14525 (print_isl_set): Add printing of a new line.
14526 (print_isl_map): Same.
14527 (print_isl_aff): Same.
14528 (print_isl_constraint): Same.
14529 (loop_to_lst): Remove.
14530 (scop_to_lst): Remove.
14531 (lst_indent_to): Remove.
14532 (print_lst): Remove.
14533 (debug_lst): Remove.
14534 (dot_lst_1): Remove.
14536 (reverse_loop_at_level): Remove.
14537 (reverse_loop_for_pbbs): Remove.
14538 * graphite-poly.h (pdr_dim_iter_domain): Remove.
14539 (pdr_nb_params): Remove.
14540 (pdr_alias_set_dim): Remove.
14541 (pdr_subscript_dim): Remove.
14542 (pdr_iterator_dim): Remove.
14543 (pdr_parameter_dim): Remove.
14544 (same_pdr_p): Remove.
14545 (struct poly_scattering): Remove.
14546 (struct poly_bb): Remove _original, _transformed, _saved.
14547 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
14548 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
14549 (PBB_NB_LOCAL_VARIABLES): Remove.
14550 (PBB_NB_SCATTERING_TRANSFORM): Remove.
14551 (schedule_to_scattering): Remove.
14552 (number_of_write_pdrs): Remove.
14553 (pbb_dim_iter_domain): Remove.
14554 (pbb_nb_params): Remove.
14555 (pbb_nb_scattering_orig): Remove.
14556 (pbb_nb_scattering_transform): Remove.
14557 (pbb_nb_dynamic_scattering_transform): Remove.
14558 (pbb_nb_local_vars): Remove.
14559 (pbb_iterator_dim): Remove.
14560 (pbb_parameter_dim): Remove.
14561 (psco_scattering_dim): Remove.
14562 (psct_scattering_dim): Remove.
14563 (psct_local_var_dim): Remove.
14564 (psco_iterator_dim): Remove.
14565 (psct_iterator_dim): Remove.
14566 (psco_parameter_dim): Remove.
14567 (psct_parameter_dim): Remove.
14568 (psct_dynamic_dim): Remove.
14569 (psct_static_dim): Remove.
14570 (psct_add_local_variable): Remove.
14571 (new_lst_loop): Remove.
14572 (new_lst_stmt): Remove.
14573 (free_lst): Remove.
14574 (copy_lst): Remove.
14575 (lst_add_loop_under_loop): Remove.
14576 (lst_depth): Remove.
14577 (lst_dewey_number): Remove.
14578 (lst_dewey_number_at_depth): Remove.
14579 (lst_pred): Remove.
14580 (lst_succ): Remove.
14581 (lst_find_pbb): Remove.
14582 (find_lst_loop): Remove.
14583 (lst_find_first_pbb): Remove.
14584 (lst_empty_p): Remove.
14585 (lst_find_last_pbb): Remove.
14586 (lst_contains_p): Remove.
14587 (lst_contains_pbb): Remove.
14588 (lst_create_nest): Remove.
14589 (lst_remove_from_sequence): Remove.
14590 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
14591 (lst_niter_for_loop): Remove.
14592 (pbb_update_scattering): Remove.
14593 (lst_update_scattering_under): Remove.
14594 (lst_update_scattering): Remove.
14595 (lst_insert_in_sequence): Remove.
14596 (lst_replace): Remove.
14597 (lst_substitute_3): Remove.
14598 (lst_distribute_lst): Remove.
14599 (lst_remove_all_before_including_pbb): Remove.
14600 (lst_remove_all_before_excluding_pbb): Remove.
14601 (struct scop): Remove original_schedule, transformed_schedule, and
14603 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
14604 (SCOP_SAVED_SCHEDULE): Remove.
14605 (poly_scattering_new): Remove.
14606 (poly_scattering_free): Remove.
14607 (poly_scattering_copy): Remove.
14608 (store_scattering_pbb): Remove.
14609 (store_lst_schedule): Remove.
14610 (restore_lst_schedule): Remove.
14611 (store_scattering): Remove.
14612 (restore_scattering_pbb): Remove.
14613 (restore_scattering): Remove.
14614 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
14615 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
14616 compute the scattering polyhedron dimension from the dimension of
14618 (build_scop_scattering): Update call to
14619 build_pbb_scattering_polyhedrons.
14620 (build_poly_scop): Remove call to scop_to_lst.
14621 * graphite.c (graphite_transform_loops): Add call to print_scop.
14622 (gate_graphite_transforms): Remove use of flag_loop_block,
14623 flag_loop_interchange, and flag_loop_strip_mine.
14625 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14627 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
14628 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
14629 -floop-nest-optimize.
14630 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
14631 (generate_luj_sepclass): Remove.
14632 (generate_luj_options): Remove.
14633 (set_options): Remove opt_luj.
14634 (scop_to_isl_ast): Remove opt_luj.
14635 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
14636 flag_loop_unroll_jam.
14637 (getPrevectorMap_full): Remove.
14638 (getScheduleForBandList): Remove map_sepcl.
14639 (getScheduleMap): Same.
14640 (apply_schedule_map_to_scop): Remove sepcl.
14641 (optimize_isl): Same.
14642 * graphite-poly.c (apply_poly_transforms): Remove check for
14643 flag_loop_unroll_jam.
14644 (new_poly_bb): Remove map_sepclass.
14645 * graphite-poly.h (struct poly_bb): Same.
14646 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
14647 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
14648 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
14649 * toplev.c (process_options): Remove flag_loop_unroll_jam.
14651 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
14654 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
14655 (addqi3_cc): Ditto.
14656 (UNSPEC_ADD_CARRY): Remove.
14657 (addqi3_cconly_overflow): New expander.
14658 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
14659 Adjust for changed add<mode>3_carry.
14660 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
14661 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
14662 (<plusminus_insn><mode>3_carry): Remove expander.
14663 (*<plusminus_insn><mode>3_carry): Split insn pattern to
14664 add<mode>3_carry and sub<mode>3_carry.
14665 (plusminus_carry_mnemonic): Remove code attribute.
14666 (add<mode>3_carry): Canonicalize insn pattern.
14667 (*addsi3_carry_zext): Ditto.
14668 (sub<mode>3_carry): Ditto.
14669 (*subsi3_carry_zext): Ditto.
14670 (adcx<mode>3): Remove insn pattern.
14671 (addcarry<mode>): New insn pattern.
14672 (subborrow<mode>): Ditto.
14673 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
14674 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
14675 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
14676 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
14677 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
14678 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
14679 Rewrite expander to not clobber carry flag chains.
14681 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
14683 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
14684 instead of a rotate.
14686 2015-08-27 Marek Polacek <polacek@redhat.com>
14688 PR middle-end/67005
14689 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
14690 an entry into an irreducible region.
14692 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14694 * configure: Regenerate.
14696 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14698 PR tree-optimization/67283
14699 * tree-sra.c (type_consists_of_records_p): Rename to...
14700 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14702 (completely_scalarize_record): Rename to...
14703 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14704 (scalarize_elem): New.
14706 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14708 * tree-sra.c (completely_scalarize_var): Rename to...
14709 (create_total_scalarization_access): ... Here. Drop call to
14710 completely_scalarize_record.
14712 (analyze_all_variable_accesses): Replace completely_scalarize_var
14713 with create_total_scalarization_access and completely_scalarize_record.
14715 2015-08-27 Alan Modra <amodra@gmail.com>
14718 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
14721 2015-08-27 Richard Biener <rguenther@suse.de>
14723 * passes.c (rest_of_decl_compilation): Guard early_global_decl
14724 call with !seen_error ().
14725 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
14726 early debug generation and finish...
14727 (symbol_table::compile): ... here to put it after a !seen_error ()
14730 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14732 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
14735 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14736 Andre Vieira <andre.simoesdiasvieira@arm.com>
14738 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
14739 (*cb<optab><mode>1): Likewise.
14740 (*tb<optab><mode>1): Likewise.
14741 (*cb<optab><mode>1): Likewise.
14742 * config/aarch64/iterators.md (inv_cb): New code attribute.
14743 (inv_tb): Likewise.
14744 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
14745 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
14747 2015-08-27 Richard Biener <rguenther@suse.de>
14749 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
14751 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
14753 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
14756 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14758 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
14761 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
14763 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
14764 floating point in VSX registers.
14765 (rs6000_output_move_128bit): Always print out the set insn if we
14766 can't generate an appropriate 128-bit move.
14767 (rs6000_generate_compare): Add support for IEEE 128-bit floating
14768 point in VSX registers comparisons.
14769 (rs6000_expand_float128_convert): Likewise.
14771 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
14772 predicate for only GPR hard registers.
14774 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
14775 modes to iterators. Add new iterators for moving 128-bit values in
14776 scalar FPR registers and VSX registers.
14777 (FMOVE128): Likewise.
14778 (FMOVE128_FPR): Likewise.
14779 (FMOVE128_GPR): Likewise.
14780 (FMOVE128_VSX): Likewise.
14781 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
14784 (IBM128): Likewise.
14785 (TFIFKF): Likewise.
14786 (RELOAD): Add IEEE 128-bit floating point modes.
14787 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
14788 floating point in VSX registers modes.
14789 (signbit<mode>2, IBM128 iterator): Likewise.
14790 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
14791 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14792 (negtf2): Likewise.
14793 (neg<mode>2, TFIFKF iterator): Likewise.
14794 (negtf2_internal): Likewise.
14795 (abstf2): Likewise.
14796 (abs<mode>2, TFIFKF iterator): Likewise.
14797 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
14798 VSX insn support for negate, absolute value, and negative absolute
14800 (ieee_128bit_vsx_neg<mode>2): Likewise.
14801 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
14802 (ieee_128bit_vsx_abs<mode>2): Likewise.
14803 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
14804 (ieee_128bit_vsx_nabs<mode>2): Likewise.
14805 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
14806 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
14807 floating point in VSX registers.
14808 (unpack<mode>_dm): Likewise.
14809 (unpack<mode>_nodm): Likewise.
14810 (pack<mode>): Likewise.
14811 (unpackv1ti): Likewise.
14812 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
14813 (packv1ti): Likewise.
14814 (pack<mode>, FMOVE128_VSX iterator): Likewise.
14815 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
14817 (extenddftf2_internal): Likewise.
14818 (trunctfdf2): Likewise.
14819 (trunctfdf2_internal2): Likewise.
14820 (fix_trunc_helper): Likewise.
14821 (fix_trunctfdi2"): Likewise.
14822 (floatditf2): Likewise.
14823 (floatuns<mode>tf2): Likewise.
14824 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
14825 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
14826 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
14827 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
14828 (float<SDI:mode><IFKF:mode>2): Likewise.
14829 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
14831 2015-08-26 Renlin Li <renlin.li@arm.com>
14833 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
14835 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14836 Jiong Wang <jiong.wang@arm.com>
14838 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
14839 (tlsie_tiny_<mode>): New define_insn.
14840 (tlsie_tiny_sidi): Likewise.
14841 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
14843 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
14844 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14846 (aarch64_expand_mov_immediate): Likewise.
14847 (aarch64_print_operand): Likewise.
14848 (arch64_classify_tls_symbol): Likewise.
14850 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14852 * config/arm/arm-arches.def: Replace single value flags with
14853 an initializer built from ARM_FSET_MAKE_CPU1.
14854 * config/arm/arm-cores.def: Likewise.
14855 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
14856 derivation from the ARM_CORE macro definition, use the given value
14858 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
14859 ARM_ARCH macro definition, use the given value instead.
14861 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14863 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
14865 (struct builtin_description): Replace field mask with field
14867 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
14868 (IWMMXT2_BUILTIN): Likewise.
14869 (IWMMXT2_BUILTIN2): Likewise.
14870 (FP_BUILTIN): Likewise.
14871 (CRC32_BUILTIN): Likewise.
14872 (CRYPTO_BUILTIN): Likewise.
14873 (iwmmx_mbuiltin): Likewise.
14874 (iwmmx2_mbuiltin): Likewise.
14875 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
14876 struct builtin_description.
14878 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14880 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
14881 (struct builtin_description): Change type of mask to unsigned
14883 * config/arm/arm-protos.h (insn_flags): Declare as type
14885 (tune_flags): Likewise.
14886 * config/arm/arm.c (feature_count): New.
14887 (insn_flags): Define as type arm_feature_set.
14888 (tune_flags): Likewise.
14889 (struct processors): Define field flags as type arm_feature_set.
14890 (all_cores): Update for change to struct processors.
14891 (all_architectures): Likewise.
14892 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
14894 (arm_option_override_internal): Likewise.
14895 (arm_option_override): Likewise.
14897 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14898 Jiong Wang <jiong.wang@arm.com>
14900 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
14901 tls size for tiny, small, large memory model.
14902 (aarch64_load_symref_appropriately): Support new symbol types.
14903 (aarch64_expand_mov_immediate): Likewise.
14904 (aarch64_print_operand): Likewise.
14905 (aarch64_classify_tls_symbol): Likewise.
14906 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
14907 (aarch64_symbol_type): Likewise.
14908 * config/aarch64/aarch64.md (tlsle): Deleted.
14909 (tlsle12_<mode>): New define_insn.
14910 (tlsle24_<mode>): Likewise.
14911 (tlsle32_<mode>): Likewise.
14912 (tlsle48_<mode>): Likewise.
14913 * doc/sourcebuild.texi (AArch64-specific attributes): Document
14916 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14918 * config/arm/arm-protos.h (FL_NONE): New.
14920 (arm_feature_set): New.
14921 (ARM_FSET_MAKE): New.
14922 (ARM_FSET_MAKE_CPU1): New.
14923 (ARM_FSET_MAKE_CPU2): New.
14924 (ARM_FSET_CPU1): New.
14925 (ARM_FSET_CPU2): New.
14926 (ARM_FSET_EMPTY): New.
14927 (ARM_FSET_ANY): New.
14928 (ARM_FSET_HAS_CPU1): New.
14929 (ARM_FSET_HAS_CPU2): New.
14930 (ARM_FSET_HAS_CPU): New.
14931 (ARM_FSET_ADD_CPU1): New.
14932 (ARM_FSET_ADD_CPU2): New.
14933 (ARM_FSET_DEL_CPU1): New.
14934 (ARM_FSET_DEL_CPU2): New.
14935 (ARM_FSET_UNION): New.
14936 (ARM_FSET_INTER): New.
14937 (ARM_FSET_XOR): New.
14938 (ARM_FSET_EXCLUDE): New.
14939 (AFM_FSET_IS_EMPTY): New.
14940 (ARM_FSET_CPU_SUBSET): New.
14942 2015-08-26 Jiong Wang <jiong.wang@arm.com>
14944 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14945 SYMBOL_TLSLE to SYMBOL_TLSLE24.
14946 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14948 (aarch64_expand_mov_immediate): Likewise.
14949 (aarch64_print_operand): Likewise.
14950 (aarch64_classify_symbol): Likewise.
14952 2015-08-26 Jiong Wang <jiong.wang@arm.com>
14954 * config/aarch64/aarch64.opt (mtls-size): New entry.
14955 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
14956 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
14957 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
14959 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14961 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
14962 ARM_CORE entry. Fix some white-space.
14963 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
14964 ARM_CORE definition.
14966 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14968 * fold-const.c (fold_binary_loc) : Move Optimize
14969 root(x)*root(y) as root(x*y) to match.pd.
14970 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
14971 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
14972 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
14973 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
14974 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
14975 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
14976 (mult (exps:s @0) (exps:s @1)) : New simplifier.
14977 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
14978 (rdiv @0 (exps:s @1)) : New simplifier.
14980 2015-08-25 Joseph Myers <joseph@codesourcery.com>
14982 * gcc.c (driver::finalize): Only assign to extra_specs if
14985 2015-08-25 Marek Polacek <polacek@redhat.com>
14987 PR middle-end/67330
14988 * varasm.c (declare_weak): Return after giving an error.
14990 2015-08-25 David Malcolm <dmalcolm@redhat.com>
14992 * gcc-main.c (main): Add params to driver ctor.
14993 * gcc.c (class env_manager): New.
14995 (env_manager::init): New.
14996 (env_manager::get): New.
14997 (env_manager::xput): New.
14998 (env_manager::restore): New.
14999 Poison getenv and putenv.
15000 (DEFAULT_TARGET_SYSTEM_ROOT): New.
15001 (target_system_root): Update initialization to use
15002 DEFAULT_TARGET_SYSTEM_ROOT.
15003 (struct spec_list): Add field "default_ptr".
15004 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
15005 (init_spec): Likewise.
15006 (set_spec): Clear field "default_ptr".
15007 (read_specs): Free "spec" and "buffer".
15008 (xputenv): Reimplement in terms of env_manager.
15009 (process_command): Replace ::getenv calls with calls to the
15010 env_manager singleton.
15011 (process_brace_body): Free string in three places.
15012 (driver::driver): New.
15013 (driver::~driver): New.
15014 (used_arg): Convert from a function to...
15015 (class used_arg_t): ...this class, and...
15016 (used_arg): ...this new global instance.
15017 (used_arg_t::finalize): New function.
15018 (getenv_spec_function): Add "const" to local "value". Replace
15019 ::getenv call with call to the env_manager singleton.
15020 (path_prefix_reset): New function.
15021 (driver::finalize): New function.
15022 * gcc.h (driver::driver): New.
15023 (driver::~driver): New.
15024 (driver::finalize): New.
15026 2015-08-25 Nathan Sidwell <nathan@acm.org>
15028 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
15029 target doesn't have one.
15031 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
15034 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
15036 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
15039 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
15040 a define_insn, remove second alternative.
15042 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
15043 Joseph Myers <joseph@codesourcery.com>
15045 * gcc.c (struct switchstr): Expand comment.
15047 2015-08-25 Nathan Sidwell <nathan@acm.org>
15049 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
15050 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
15052 2015-08-25 Richard Biener <rguenther@suse.de>
15054 PR middle-end/67306
15055 * genmatch.c (expr::gen_transform): Verify the result of
15056 builtin_decl_implicit.
15057 (dt_simplify::gen_1): Likewise.
15059 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
15061 * config/arm/constraints.md: Also list Cs and US ARM-specific
15062 constraints as used.
15064 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
15067 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
15069 (nonpic_symbol_mentioned_p): Likewise.
15070 (sh_delegitimize_address): Likewise.
15071 (sh_function_ok_for_sibcall): Take into account weak symbols.
15072 (sh_expand_sym_label2reg): New.
15073 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
15074 * config/sh/sh.md (UNSPEC_PCREL): New enum.
15075 (call_pcrel): Use sh_expand_sym_label2reg.
15076 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
15077 (symPCREL_label2reg) New expand.
15079 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
15081 * graphite-poly.c: Change type of region from void* to sese.
15082 * graphite-poly.h (struct scop): Changing the type of scop::region
15083 from void* to sese. Change accessor macro accordingly.
15084 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
15086 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
15088 * graphite-scop-detection.c (stmt_simple_for_scop_p):
15089 Constrain only on INTEGER_TYPE.
15091 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15094 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
15095 -mefficient-unaligned-vsx on ISA 2.7.
15097 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
15098 option to a masked option.
15100 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
15101 logic for -mefficient-unaligned-vsx so that it is set via an arch
15102 ISA option, instead of being set if -mtune=power8 is set. Move
15103 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
15104 near other default option handling.
15106 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15108 * genflags.c (gen_macro): Delete.
15109 (gen_proto): Don't create GEN.*CALL.* macros.
15110 * gensupport.h (get_file_location): Declare.
15111 * gensupport.c (rtx_locs): New variable.
15112 (read_md_rtx): Record rtx locations.
15113 (get_file_location): New function.
15114 * target-insns.def (call, call_pop, call_value, call_value_pop)
15115 (sibcall, sibcall_value): New patterns.
15116 * gentarget-def.c (parse_argument): New function.
15117 (def_target_insn): Use it. Handle optional operands. Raise an
15118 error if an .md pattern has the wrong number of operands for the
15119 pattern name. Remove the names of unused operands from the prototype.
15120 * builtins.c (expand_builtin_apply): Use targetm functions
15121 instead of HAVE_call_value and GEN_CALL_VALUE.
15122 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
15123 and sibcall_value_pop.
15124 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
15126 * config/alpha/alpha.md (untyped_call): Likewise.
15127 * config/iq2000/iq2000.md (untyped_call): Likewise.
15128 * config/m68k/m68k.md (untyped_call): Likewise.
15129 * config/mips/mips.md (untyped_call): Likewise.
15130 * config/pa/pa.md (untyped_call): Likewise.
15131 * config/rs6000/rs6000.md (untyped_call): Likewise.
15132 * config/sparc/sparc.md (untyped_call): Likewise.
15133 * config/tilegx/tilegx.md (untyped_call): Likewise.
15134 * config/tilepro/tilepro.md (untyped_call): Likewise.
15135 * config/visium/visium.md (untyped_call): Likewise.
15136 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
15137 gen_call_value instead of GEN_CALL_VALUE.
15138 * config/arm/arm.md (untyped_call): Likewise.
15139 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
15142 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15144 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
15145 (have_cbranchcc4): New variable.
15146 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
15147 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
15148 (if_convert): Initialize have_cbranchcc4.
15150 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15152 * builtins.c (expand_cmpstrn): Rename to...
15153 (expand_cmpstrn_or_cmpmem): ...this.
15154 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
15155 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
15156 Remove mode argument.
15157 (expand_builtin): Update accordingly.
15159 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15161 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
15162 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
15163 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
15164 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
15165 Add predicates for operands 0 and 3.
15166 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
15168 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
15169 immediate_operand to nonmemory_operand.
15171 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15173 * df-scan.c (df_insn_info_init_fields): New function, split out
15175 (df_insn_create_insn_record): ...here.
15176 (df_insn_info_free_fields): New function, split out from...
15177 (df_insn_info_delete): ...here.
15178 (df_insn_rescan): Use the new functions instead of freeing and
15179 reallocating the df_insn_info.
15181 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15183 * doc/install.texi (Binaries): Remove links no longer valid.
15185 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
15187 * config/nvptx/mkoffload.c (process): Replace
15188 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
15190 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
15193 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
15195 2015-08-24 Renlin Li <renlin.li@arm.com>
15197 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
15198 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
15199 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
15200 * config/arm/constraints.md ("j"): Add check for high code.
15202 2015-08-24 Tom de Vries <tom@codesourcery.com>
15204 PR tree-optimization/65468
15205 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
15208 2015-08-24 Nathan Sidwell <nathan@acm.org>
15210 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
15211 change to nvptx_type_from_mode call. Use arg_promotion for both
15212 split and non-split args.
15214 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15216 * target-insns.def (movstr): New pattern.
15217 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
15218 (expand_movstr): Use targetm rather than HAVE_movstr/
15221 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15223 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
15226 2015-08-24 Andrew Pinski <apinski@cavium.com>
15228 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
15229 AARCH64_EXTRA_TUNING_OPTION.
15230 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
15232 (aarch64_extra_tuning_flags): Base the shifted value on the index
15233 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
15234 * config/aarch64/aarch64.c: Remove the last argument to
15235 AARCH64_EXTRA_TUNING_OPTION.
15237 2015-08-23 Nathan Sidwell <nathan@acm.org>
15239 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
15241 (nvptx_declare_function_name): Insert formatting tabs for
15244 2015-08-23 Tom de Vries <tom@codesourcery.com>
15246 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
15247 parm_decl, rather than generating a dummy default def in cfun.
15248 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
15249 ssa_name from cfun and child_fn do not share a stmt as def stmt.
15250 (move_stmt_op): Handle PARM_DECl.
15251 (gather_ssa_name_hash_map_from): New function.
15252 (move_sese_region_to_fn): Add default defs for function params, and add
15253 them to vars_map. Release copied ssa names.
15254 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
15256 2015-08-23 Tom de Vries <tom@codesourcery.com>
15258 * doc/sourcebuild.texi: Rename vect_no_int_max with
15259 vect_no_int_min_max. Update description.
15261 2015-08-22 Andrew Pinski <apinski@cavium.com>
15263 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
15264 * config/aarch64/aarch64-protos.h
15265 (aarch64_fusion_pairs_index): New enum.
15266 (aarch64_fusion_pairs): Base the shifted value on the index instead
15267 Rewrite AARCH64_FUSE_ALL to be based on the end index.
15268 of the argument to AARCH64_FUSION_PAIR.
15269 * config/aarch64/aarch64.c: Remove the last argument to
15270 AARCH64_FUSION_PAIR.
15272 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
15274 * dominance.c (new_zero_array): Define.
15275 (dom_info): Redefine as class with proper encapsulation.
15276 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
15278 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
15279 allocations/deallocations. Pass function as parameter (instead of
15281 (dom_info::get_idom): Define accessor method.
15282 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
15283 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
15284 (calculate_dominance_info): Adjust to use dom_info class.
15285 (verify_dominators): Likewise.
15287 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
15289 * print-rtl.c (print_rtx): Check the correct range for
15290 flag_dump_unnumbered_links to behave as documented.
15292 PR rtl-optimization/67227
15293 PR rtl-optimization/64164
15294 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
15295 (nonoverlapping_memrefs_p): Test offsets and sizes when given
15296 identical gimple_reg exprs.
15298 2015-08-21 Nathan Sidwell <nathan@acm.org>
15300 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
15302 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
15303 crtl->stack_alignment_needed to determine alignment.
15304 (nvptx_get_drap_rtx): New.
15305 (TARGET_GET_DRAP_RTX): Override.
15306 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
15308 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15310 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
15312 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15314 * configure.ac: Remove uwin* cases.
15315 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
15316 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
15317 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
15318 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
15319 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
15320 i[34567]86-*-uwin*, powerpc-*-beos*.
15322 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
15324 * gencodes.c (gencodes): Print the comma for the preceding
15325 enum value rather than the current one. Use aliased enum values
15326 rather than #defines for compiled-out patterns.
15327 (main): Update accordingly. Replace LAST_INSN_CODE with
15329 * lra.c (insn_code_data): Update accordingly.
15330 (finish_insn_code_data_once, get_static_insn_data): Likewise.
15331 * recog.h (target_recog): Likewise.
15332 (preprocess_insn_constraints): Change parameter to unsigned int.
15333 * recog.c (preprocess_insn_constraints): Likewise.
15334 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
15335 * tree-vect-stmts.c (vectorizable_operation): Simplify.
15337 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
15339 PR rtl-optimization/61657
15340 * loop-iv.c (iv_number_of_iterations): Declare up and down as
15341 unsigned. Remove superflous uint64_t cast.
15343 2014-08-21 Felix Yang <felix.yang@huawei.com>
15344 Jiji Jiang <jiangjiji@huawei.com>
15346 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
15347 argument and get builtin function code directly from CALL.
15348 (gimple_stringop_fixed_value): Modified accordingly.
15349 (gimple_stringops_transform, gimple_stringops_values_to_profile):
15350 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
15352 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
15354 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
15356 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15358 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
15360 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
15361 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
15362 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
15363 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
15364 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
15365 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
15366 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
15367 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
15368 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
15369 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
15371 * match.pd (SIN ) : New Operator.
15372 (TAN) : New Operator.
15373 (mult (SQRT@1 @0) @1) : New simplifier.
15374 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
15375 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15376 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15377 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
15378 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
15379 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
15380 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
15381 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
15382 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
15383 (rdiv @0 (POW:s @1 @2)) : New simplifier.
15385 2015-08-21 Bin Cheng <bin.cheng@arm.com>
15387 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
15388 loop if EXPR is simplified to const value.
15390 2015-08-21 Yury Gribov <y.gribov@samsung.com>
15392 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
15393 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
15395 2015-08-21 Richard Biener <rguenther@suse.de>
15397 PR middle-end/67285
15398 * gimple-fold.c (replace_stmt_with_simplification): Assert
15399 seq is empty when replacing a call with itself but different
15401 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
15402 a call require that it is const.
15404 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15406 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
15407 * builtins.c (get_object_alignment_2): Adjust.
15408 * varasm.c (align_variable): Likewise.
15409 (get_variable_align): Likewise.
15410 (build_constant_desc): Likewise.
15411 (force_const_mem): Likewise.
15412 * doc/tm.texi.in: Likewise.
15413 * doc/tm.texi: Regenerate.
15415 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15417 * genconfig.c (main): Always define HAVE_cc0.
15418 * recog.c (rest_of_handle_peephole2): Adjust.
15420 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15422 * reorg.c (relax_delay_slots): Don't use #if to check value of
15425 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15427 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
15428 * targhooks.c (default_have_conditional_execution): Adjust.
15430 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
15432 * rtl.h (rtvec_all_equal_p): Declare.
15433 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
15434 * rtl.c (rtvec_all_equal_p): New function.
15435 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
15436 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
15437 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
15438 * config/arm/arm.c (neon_vdup_constant): Likewise.
15439 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
15440 * config/tilegx/constraints.md (W, Y): Likewise.
15441 * config/tilepro/constraints.md (W, Y): Likewise.
15442 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
15443 (classify_immediate): Use unwrap_const_vec_duplicate.
15444 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
15445 (reg_or_v2s8bit_operand): Likewise.
15446 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
15447 (reg_or_v4s8bit_operand): Likewise.
15449 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15451 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
15452 (vec_shasigma_be): New #define.
15453 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
15454 (VPMSUMH): Likewise.
15455 (VPMSUMW): Likewise.
15456 (VPMSUMD): Likewise.
15457 (VPMSUM): New BU_P8V_OVERLOAD_2.
15458 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
15459 entries for VEC_MADD and VEC_VPMSUM.
15461 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
15463 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
15464 Multiply argument avr_n_flash by 64 to match unit of "KiB".
15465 (avr_pgm_check_var_decl): Same.
15467 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
15469 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
15470 initialization of HFmode scalar type (float16_t) to...
15471 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
15474 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
15476 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
15477 having an -mfp16-format.
15479 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
15481 * config/i386/predicates.md (vector_all_ones_operand): Use
15482 CONSTM1_RTX to simplify definition.
15484 2015-08-20 Richard Biener <rguenther@suse.de>
15486 * toplev.c (compile_file): Remove loop calling late_global_decl
15488 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
15489 on decls we assembled.
15491 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
15493 * common/config/aarch64/aarch64-common.c
15494 (AARCH64_CPU_NAME_LENGTH): Delete.
15495 (aarch64_option_extension): New.
15496 (all_extensions): Likewise.
15497 (processor_name_to_arch): Likewise.
15498 (arch_to_arch_name): Likewise.
15500 (all_architectures): Likewise.
15501 (aarch64_get_extension_string_for_isa_flags): Likewise.
15502 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
15503 architecture names.
15504 * config/aarch64/aarch64-protos.h
15505 (aarch64_get_extension_string_for_isa_flags): New.
15506 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
15507 (aarch64_option_print): Get the string to print from
15508 aarch64_get_extension_string_for_isa_flags.
15509 (aarch64_declare_function_name): Likewise.
15510 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
15511 (MCPU_TO_MARCH_SPEC): This.
15512 (ASM_CPU_SPEC): Use it.
15513 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
15514 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
15515 (EXTRA_SPEC_FUNCTIONS): Use it.
15517 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
15519 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
15520 expansion when !ISA_HAS_LWL_LWR.
15521 (mips_block_move_straight): Update the size of elements copied to
15522 account for alignment when !ISA_HAS_LWL_LWR.
15523 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
15525 2015-08-19 Jiong Wang <jiong.wang@arm.com>
15527 * expr.c (expand_expr_real_2): Check gimple statement during
15528 LSHIFT_EXPR expand.
15530 2015-08-19 Magnus Granberg <zorry@gentoo.org>
15532 * common.opt (fstack-protector): Initialize to -1.
15533 (fstack-protector-all): Likewise.
15534 (fstack-protector-strong): Likewise.
15535 (fstack-protector-explicit): Likewise.
15536 * configure.ac: Add --enable-default-ssp.
15537 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
15538 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
15540 * doc/install.texi: Document --enable-default-ssp.
15541 * config.in: Regenerated.
15542 * configure: Likewise.
15544 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
15546 PR rtl-optimization/64164
15547 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
15548 (parm_in_stack_slot_p): ... this. Disregard mode, what
15549 matters is whether the parm will live in a pseudo or a stack
15551 (expand_one_ssa_partition): Deal with params without a default
15552 def. Disregard mode.
15553 * cfgexpand.h: Renamed function declaration.
15554 * tree-ssa-coalesce.c: Adjust.
15555 * function.c (split_complex_args): Allocate stack slot for
15556 unassigned parms before splitting.
15557 (parm_in_unassigned_mem_p): New. Use it instead of
15558 parm_maybe_byref_p throughout this file.
15559 (assign_parm_setup_block): Use it. Accept pseudos in the
15560 expand-assigned rtl.
15561 (assign_parm_setup_reg): Drop BLKmode requirement.
15562 (assign_parm_setup_stack): Allocate and fill in the address of
15563 unassigned MEM parms.
15565 2015-08-19 David Sherwood <david.sherwood@arm.com>
15567 * genmodes.c (emit_mode_unit_size_inline): New function.
15568 (emit_mode_unit_precision_inline): New function.
15569 (emit_insn_modes_h): Emit new #define. Emit new functions.
15570 (emit_mode_unit_size): New function.
15571 (emit_mode_unit_precision): New function.
15572 (emit_mode_adjustments): Add mode_unit_size adjustments.
15573 (emit_insn_modes_c): Emit new arrays.
15574 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
15575 use new inline methods.
15577 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15579 * config/aarch64/aarch64.c (bit_count): Delete prototype
15581 (aarch64_print_operand): Use popcount_hwi instead of the above.
15583 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15585 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
15588 2015-08-19 Marek Polacek <polacek@redhat.com>
15590 PR middle-end/67133
15591 * gimple-ssa-isolate-paths.c
15592 (insert_trap_and_remove_trailing_statements): Rename to ...
15593 (insert_trap): ... this. Don't remove trailing statements; split
15595 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
15597 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
15600 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
15601 conditionalize the whole on __GNUC__. Add fallback code
15602 depending neither on undefined nor implementation-defined behaviour.
15604 2015-08-19 Jiong Wang <jiong.wang@arm.com>
15606 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
15607 whitespaces with tab.
15609 2015-08-19 Florian Weimer <fweimer@redhat.com>
15611 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
15612 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
15613 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
15614 Move Name_Ids instantiation to the Prj.Proc package, to avoid
15617 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15619 * config/arm/arm.c (bounds_check): Use %wd print format
15620 for HOST_WIDE_INT arguments.
15622 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
15624 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
15625 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
15626 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
15627 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
15628 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
15629 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
15630 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
15631 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
15632 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
15635 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
15637 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
15638 function.c, graphite-scop-detection.c, haifa-sched.c,
15639 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
15640 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
15641 varasm.c: Remove typedefs of structs.
15643 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15645 * config/rs6000/altivec.h (vec_adde): New define.
15646 (vec_addec): Likewise.
15647 (vec_double): Likewise.
15648 (vec_bperm): Likewise.
15649 (vec_gb): Likewise.
15650 * config/rs6000/rs6000-builtin.def (ADDE): New
15651 BU_ALTIVEC_OVERLOAD_3.
15653 (DOUBLE): New BU_VSX_OVERLOAD_1.
15654 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
15655 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
15656 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
15657 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
15658 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
15659 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
15660 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
15661 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
15662 and P8V_BUILTIN_VEC_VBPERMQ.
15664 2015-08-18 Jason Merrill <jason@redhat.com>
15666 * print-tree.c (print_node): Handle TREE_BINFO.
15668 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15670 PR middle-end/36757
15671 * builtins.c (expand_builtin_signbit): Add asserts to make sure
15672 we can expand BUILT_IN_SIGNBIT inline.
15673 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
15674 * doc/extend.texi: Document the type-generic __builtin_signbit.
15676 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
15678 PR rtl-optimization/67218
15679 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
15680 (simplify_unary_operation_1): Use it.
15682 2015-08-18 Marek Polacek <polacek@redhat.com>
15684 PR middle-end/67222
15685 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
15686 if the call isn't valid.
15687 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
15688 gimple_call_builtin_p.
15689 (call_may_clobber_ref_p_1): Likewise.
15690 (stmt_kills_ref_p): Likewise.
15692 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
15694 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
15695 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
15696 (mips_hard_regno_scratch_ok): Likewise.
15697 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
15698 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
15700 2015-08-18 Bin Cheng <bin.cheng@arm.com>
15702 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
15703 (determine_value_range): Call refine_value_range_using_guard for
15704 each loop initial condition to improve value range.
15706 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
15708 * config/i386/i386.c: Remove include of fibheap.h.
15710 2015-08-17 Richard Biener <rguenther@suse.de>
15712 PR tree-optimization/67221
15713 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
15714 (sccvn_dom_walker::before_dom_children): Mark backedges of
15715 non-executable blocks as not executable.
15717 2015-08-17 David Sherwood <david.sherwood@arm.com>
15719 * config/arm/arm.c (neon_element_bits): Replace call to
15720 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
15721 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
15722 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
15723 (neon_vdup_lane<mode>): Likewise.
15724 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
15725 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
15726 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
15727 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
15728 * config/spu/spu.c (arith_immediate_p): Likewise.
15729 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
15730 * expr.c (expand_expr_real_2): Likewise.
15731 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
15732 * simplify-rtx.c (simplify_immed_subreg): Likewise.
15733 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
15734 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
15736 * fold-const.c (fold_binary_loc): Replace call to
15737 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
15738 GET_MODE_UNIT_PRECISION (m).
15740 2015-08-17 Mike Stump <mikestump@comcast.net>
15742 * config/arm/arm.c (arm_block_move_unaligned_straight):
15743 Emit normal move instead of unaligned load when source or destination
15744 are appropriately aligned.
15746 2015-08-17 Richard Biener <rguenther@suse.de>
15747 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15749 PR middle-end/16107
15750 * match.pd (div (coss (op @0) : New simplifier.
15752 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
15754 PR rtl-optimization/64164
15756 PR middle-end/66983
15757 PR rtl-optimization/67000
15758 PR middle-end/67034
15759 PR middle-end/67035
15760 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15761 * tree-ssa-copyrename.c: Removed.
15762 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15763 -ftree-coalesce-vars.
15764 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15765 * common.opt (ftree-copyrename): Ignore.
15766 (ftree-coalesce-inlined-vars): Likewise.
15767 * doc/invoke.texi: Remove the ignored options above.
15768 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15769 * tree-ssa-coalesce.h: ... here.
15770 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15771 headers required by it.
15772 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15773 across variables when flag_tree_coalesce_vars. Check register
15774 use and promoted modes to allow coalescing. Do not coalesce
15775 maybe-byref parms with SSA_NAMEs of other variables, or
15776 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
15777 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15778 with its member functions to tree-ssa-coalesce.c.
15779 (var_map_base_init): Likewise. Renamed to
15780 compute_samebase_partition_bases.
15781 (partition_view_normal): Drop want_bases parameter.
15782 (partition_view_bitmap): Likewise.
15783 * tree-ssa-live.h: Adjust declarations.
15784 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
15785 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15786 default defs at the entry point.
15787 (dump_part_var_map): New.
15788 (compute_optimized_partition_bases): New, called by...
15789 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15790 of compute_samebase_partition_bases. Adjust.
15791 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15792 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
15793 (ssa_default_def_partition): New.
15794 (get_rtl_for_parm_ssa_default_def): New.
15795 (align_local_variable, add_stack_var): Support anonymous SSA
15797 (defer_stack_allocation): Likewise. Declare earlier.
15798 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15799 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15800 Do no record deferred-allocation marker in
15801 SA.partition_to_pseudo.
15802 (expand_stack_vars): Adjust check for the marker in it.
15803 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15804 redundant MEM attr setting.
15805 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15807 (expand_one_stack_var): ... this. New wrapper to check and
15808 skip already expanded SSA partitions.
15809 (record_alignment_for_reg_var): New, factored out of...
15810 (expand_one_var): ... this.
15811 (expand_one_ssa_partition): New.
15812 (adjust_one_expanded_partition_var): New.
15813 (expand_one_register_var): Check and skip already expanded SSA
15815 (expand_used_vars): Don't create DECLs for anonymous SSA
15816 names. Expand all SSA partitions, then adjust all SSA names.
15817 (pass::execute): Replace the loops that set
15818 SA.partition_to_pseudo from partition leaders and cleared
15819 DECL_RTL for multi-location variables, and that which used to
15820 rename vars and set attrs, with one that clears DECL_RTL and
15821 checks that PARMs and RESULTs default_defs match DECL_RTL.
15822 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15823 * emit-rtl.c: Include stor-layout.h.
15824 (set_reg_attrs_for_parm): Handle NULL decl.
15825 (set_reg_attrs_for_decl_rtl): Take mode from expression if
15827 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
15828 rather than its possibly-NULL DECL.
15829 * explow.c (promote_ssa_mode): New.
15830 * explow.h (promote_ssa_mode): Declare.
15831 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15832 (read_complex_part): Export.
15833 * expr.h (read_complex_part): Declare.
15834 * cfgexpand.h (parm_maybe_byref_p): Declare.
15835 * function.c: Include cfgexpand.h.
15836 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15837 (use_register_for_parm_decl): Wrapper for the above to
15838 special-case the result_ptr.
15839 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15840 (split_complex_args): Take assign_parm_data_all argument.
15841 Pass it to rtl_for_parm. Set up rtl and context for split
15842 args. Reset complex parm before fetching its default decl
15844 (assign_parms_unsplit_complex): Use the default-def complex
15845 parm rtl if it matches the components.
15846 (assign_parms_augmented_arg_list): Adjust.
15847 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15848 multiple locations. Recognize split complex args.
15849 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15850 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15851 (assign_parm_setup_block): Prefer SSA-assigned location, and
15852 fill in its address if the memory location of a maybe-byref
15853 parm was not assigned by cfgexpand.
15854 (assign_parm_setup_reg): Likewise. Adjust its mode as
15855 needed. Use entry_parm for equiv if stack_parm is NULL. Make
15856 sure passed_pointer parms don't need conversion. Copy address
15857 or value as needed.
15858 (assign_parm_setup_stack): Prefer SSA-assigned location.
15859 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15860 rtl before testing for pointer bounds. Special-case result_ptr.
15861 (expand_function_start): Maybe reset DECL_RTL of result.
15862 Prefer SSA-assigned location for result and static chain.
15863 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
15864 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
15865 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15866 anonymous SSA names. Use promote_ssa_mode.
15867 (get_temp_reg): Likewise.
15868 (remove_ssa_form): Adjust.
15869 * stor-layout.c (layout_decl): Don't set mem attributes of
15871 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15872 and get its reg_usage for reg invalidation.
15873 (compute_bb_dataflow): Pass it insn.
15874 (emit_notes_in_bb): Likewise.
15876 2015-08-14 Marek Polacek <polacek@redhat.com>
15878 * tree-core.h (tree_base): Fix typo.
15880 2015-08-14 Marek Polacek <polacek@redhat.com>
15882 PR middle-end/67133
15883 * gimple.c (infer_nonnull_range_by_attribute): Check that the
15884 nonnull argument position is not outside function arguments.
15886 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
15889 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
15890 'lconst_atomic' with 'const_atomic'.
15891 (atomic_fetch_<optab><mode>): Likewise.
15892 (atomic_<optab>_fetch<mode>): Likewise.
15893 * config/aarch64/iterators.md (lconst-atomic): Move below
15895 (const_atomic): New.
15897 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
15898 Bernd Schmidt <bernds@codesourcery.com>
15900 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
15902 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
15903 (DWARF2_DEBUGGING_INFO): Don't define.
15904 * debug.h (dwarf2_lineno_debug_hooks): Declare.
15905 * toplev.c (process_options): Add a case for it.
15906 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
15907 (dwarf2out_init): Skip most initializations if
15908 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
15910 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
15911 DWARF2_LINENO_DEBUGGING_INFO.
15912 * opts.c (set_debug_level): Likewise.
15914 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
15916 * config/arm/types.md (is_neon_type): Add missing types.
15918 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
15920 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
15922 * config/i386/i386.c (PTA_SKYLAKE): New macros.
15923 (processor_alias_table): Add skylake description.
15924 (enum processor_model): Add skylake processor.
15925 (arch_names_table): Add skylake record.
15926 * doc/invoke.texi: Add skylake item.
15928 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
15930 * ira-int.h: Include recog.h.
15931 * ira-build.c: Don't include recog.h.
15932 * ira-color.c: Likewise.
15933 * ira-conflicts.c: Likewise.
15934 * ira-costs.c: Likewise.
15935 * ira-emit.c: Likewise.
15936 * ira-lives.c: Likewise.
15938 * sched-deps.c: Likewise.
15939 * sel-sched.c: Likewise.
15940 * target-globals.c: Likewise.
15942 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
15945 * reload1.c (elimination_costs_in_insn): Make it obvious to the
15946 compiler that the n_dups and n_operands loop bounds are invariant.
15948 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15950 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
15951 expressions in A and B.
15953 2015-08-13 Richard Biener <rguenther@suse.de>
15955 * tree.c (nonnull_arg_p): Move from ...
15956 * tree-vrp.c (nonnull_arg_p): ... here.
15957 * tree.h (nonnull_arg_p): Declare.
15958 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
15959 here, register ptr != 0 for nonnull_arg_p pointer arguments.
15960 Properly initialize static chain and by-reference result pointer.
15961 (run_scc_vn): Adjust.
15963 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
15965 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
15968 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
15970 * config/aarch64/aarch64-protos.h
15971 (aarch64_gen_atomic_cas): Declare.
15972 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
15973 Choose appropriate instruction pattern for the target.
15974 (aarch64_gen_atomic_cas): New.
15975 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
15976 (atomic_compare_and_swap<mode>_1): Rename to
15977 aarch64_compare_and_swap<mode>. Fix some indentation.
15978 (aarch64_compare_and_swap<mode>_lse): New.
15979 (aarch64_atomic_cas<mode>): New.
15981 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
15983 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
15986 2015-08-13 Richard Biener <rguenther@suse.de>
15988 PR tree-optimization/67191
15989 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
15990 assert we value-numbered last stmts operand because it can validly
15991 trigger for unreachable code.
15993 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15995 PR rtl-optimization/67103
15996 * ifcvt.c (noce_try_store_flag_constants): Move
15997 x = (-(test != 0) & (b - a)) + a transformation to...
15998 (noce_try_cmove): ... Here. Try it if normal conditional
16001 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
16003 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
16005 * config/mips/mips.md (processor): Remove w32 and w64.
16007 2015-08-13 Richard Biener <rguenther@suse.de>
16009 PR tree-optimization/66502
16010 PR tree-optimization/67167
16011 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
16012 backedge arguments.
16013 (vn_phi_lookup): Adjust.
16014 (vn_phi_insert): Likewise.
16015 (visit_phi): Prefer to value-number to another PHI node
16016 over value-numbering to a PHI argument.
16017 (init_scc_vn): Mark DFS back edges.
16019 2015-08-13 Richard Biener <rguenther@suse.de>
16021 * gimple.h (gcall::code_): New constant static member.
16022 (gcond::code_): Likewise.
16023 * gimple.c (gcall::code_): Define.
16024 (gcond::code_): Likewise.
16025 (is_a_helper <const gcond *>): Add.
16026 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
16027 and forward to a new gcall overload with less checking and a
16028 cheaper way to access the operand.
16029 (gimple_call_lhs_ptr): Likewise.
16030 (gimple_call_set_lhs): Likewise.
16031 (gimple_call_internal_p): Likewise.
16032 (gimple_call_with_bounds_p): Likewise.
16033 (gimple_call_set_with_bounds): Likewise.
16034 (gimple_call_internal_fn): Likewise.
16035 (gimple_call_set_ctrl_altering): Likewise.
16036 (gimple_call_ctrl_altering_p): Likewise.
16037 (gimple_call_fntype): Likewise.
16038 (gimple_call_fn): Likewise.
16039 (gimple_call_fn_ptr): Likewise.
16040 (gimple_call_set_fndecl): Likewise.
16041 (gimple_call_fndecl): Likewise.
16042 (gimple_call_chain): Likewise.
16043 (gimple_call_num_args): Likewise.
16044 (gimple_call_arg): Likewise.
16045 (gimple_call_arg_ptr): Likewise.
16046 (gimple_call_set_arg): Likewise.
16047 (gimple_call_noreturn_p): Likewise.
16048 (gimple_cond_code): Likewise.
16049 (gimple_cond_lhs): Likewise.
16050 (gimple_cond_rhs): Likewise.
16051 (gimple_has_lhs): Reduce checking.
16053 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16055 PR middle-end/25529
16056 * match.pd (div (mult @0 @1) @1) : New simplifier.
16058 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16061 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
16062 predicate to allow construction of vector constants using the
16063 VSLDOI vector shift instruction.
16065 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
16068 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
16069 the number of bytes to be shifted left and filled in with either
16070 all zero or all one bits.
16071 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
16073 (output_vec_const_move): On power8, generate XXLORC to generate
16074 a vector constant with all 1's. Do a split if we need to use a
16075 VSLDOI instruction.
16077 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
16078 properly test for the MSB.
16080 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
16081 vector constants that can be created with VSLDOI.
16083 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
16086 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16087 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16088 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16089 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16090 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16091 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16092 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16093 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16094 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16096 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
16098 * config/xtensa/constraints.md (define_constraint "Y"): New
16100 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
16101 * config/xtensa/linux.h (ASM_SPEC): Likewise.
16102 * config/xtensa/predicates.md (move_operand): Match constants
16103 and symbols in the presence of TARGET_AUTO_LITPOOLS.
16104 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
16105 immediate references to TLS data.
16106 (xtensa_emit_move_sequence): Don't force constants to memory in
16107 the presence of TARGET_AUTO_LITPOOLS.
16108 (print_operand): Add 'y' format, same as default, but capable of
16109 printing SF mode constants as well.
16110 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
16111 (movsf_internal): Add movi pattern that loads literal.
16112 (movsf, movdf): Don't force constants to memory in the presence
16113 of TARGET_AUTO_LITPOOLS.
16114 (movdf_internal): Add 'Y' constraint.
16115 * config/xtensa/xtensa.opt (mauto-litpools): New option.
16116 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
16118 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
16120 * config/arm/arm-fpus.def: Replace booleans with feature flags.
16122 * config/arm/arm.c (ARM_FPU): Update macro.
16123 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
16124 (TARGET_FP16): Likewise.
16125 (TARGET_CRYPTO): Likewise.
16126 (TARGET_NEON): Likewise.
16127 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
16130 2015-08-12 Tom de Vries <tom@codesourcery.com>
16134 * doc/install.texi: Remove --with_host_libstdcxx item. Update
16135 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
16136 accordingly. Mention default for --with-stage1-ldflags.
16138 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
16140 * config/arm/arm.h (arm_fpu_feature_set): New.
16141 (ARM_FPU_FSET_HAS): New.
16142 (FPU_FL_NONE): New.
16143 (FPU_FL_NEON): New.
16144 (FPU_FL_FP16): New.
16145 (FPU_FL_CRYPTO): New.
16147 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16149 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
16150 after -mcmodel=large -fPIC sorry.
16152 2015-08-12 Richard Biener <rguenther@suse.de>
16154 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
16155 comparison operand order and commutative ternary op operand order.
16156 (sccvn_dom_walker::cond_stack): New state to track temporary
16158 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
16160 (sccvn_dom_walker::record_cond): Add a single temporary conditional
16162 (sccvn_dom_walker::record_conds): Add a temporary conditional
16163 expressions and all related expressions also true/false.
16164 (sccvn_dom_walker::before_dom_children): Record temporary
16165 expressions based on the controlling condition of a single
16166 predecessor. When trying to simplify a conditional statement
16167 lookup expressions we might have inserted earlier.
16169 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
16172 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
16173 to ARM core registers.
16175 2015-08-12 Nathan Sidwell <nathan@acm.org>
16177 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
16178 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
16180 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
16182 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
16183 line with comments.
16184 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
16186 2015-08-12 Richard Biener <rguenther@suse.de>
16188 * gimple.h (remove_pointer): New trait.
16189 (GIMPLE_CHECK2): New inline template function.
16190 (gassign::code_): New constant static member.
16191 (is_a_helper<const gassign *>): Add.
16192 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
16193 and forward to a new gassign overload with less checking and a
16194 cheaper way to access the operand.
16195 (gimple_assign_lhs_ptr): Likewise.
16196 (gimple_assign_set_lhs): Likewise.
16197 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
16199 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
16201 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
16203 (gimple_assign_rhs_code): Likewise.
16204 * gimple.c (gassign::code_): Define.
16206 2015-08-12 Richard Biener <rguenther@suse.de>
16208 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16209 Eliminate edges marked as not executable by SCCVN.
16210 * tree-ssa-sccvn.c: Include gimple-iterator.h.
16211 (cond_dom_walker): Rename to sccvn_dom_walker.
16212 (sccvn_dom_walker::before_dom_children): Value-number defs
16214 (run_scc_vn): Remove loop value-numbering all SSA names.
16215 Drop not visited SSA names to varying.
16217 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
16219 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16220 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16221 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16222 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16223 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16224 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16225 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16226 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16227 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16229 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
16232 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
16233 to enum feature_priority and feature_list.
16234 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
16235 and isa_names_table.
16237 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
16239 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
16240 vect_induction_def.
16242 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16246 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
16247 account when deciding what was the command-line status.
16249 2015-08-11 Nathan Sidwell <nathan@acm.org>
16251 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
16253 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
16254 we're not the only contributor to target phi.
16256 2015-08-11 Jiong Wang <jiong.wang@arm.com>
16258 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
16261 2015-08-11 Tom de Vries <tom@codesourcery.com>
16263 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
16265 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
16267 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
16269 * config/i386/i386.md (cpu): Remove knl.
16271 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
16274 PR middle-end/66332
16275 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
16276 open-coded sequence.
16277 * omp-low.c (oacc_process_reduction_data): Remove handline of
16278 GOMP_DEVICE_HOST_NONSHM.
16280 * lto-streamer-in.c (lto_input_mode_table): Adjust to
16281 GET_MODE_INNER changes.
16283 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
16284 Ilya Verbin <ilya.verbin@intel.com>
16286 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
16288 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
16290 * doc/options.texi (EnabledBy): Document that the argument must be
16292 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
16293 Not enabled by -Wall.
16294 * optc-gen.awk: Give nicer error messages. Detect if the argument
16295 of EnabledBy is not a Common option.
16296 * common.opt (Wnull-dereference): Not enabled by -Wall.
16297 * opt-functions.awk (lang_enabled_by): Nicer error messages.
16299 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
16301 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
16302 model == 0x4f as Broadwell.
16304 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16306 PR rtl-optimization/67028
16307 * combine.c (simplify_comparison): Fix comment. Rearrange code.
16308 Add test to see if a const_int fits in the new mode.
16310 2015-08-07 DJ Delorie <dj@redhat.com>
16312 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
16314 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
16316 PR rtl-optimization/67029
16317 * ira-color.c: Include "recog.h" before including "ira-int.h".
16318 * target-globals.c: Likewise.
16319 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
16320 adds an alternative_mask argument and use it instead of
16321 preferred_alternatives.
16322 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
16323 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
16324 * sched-deps.c: Include "ira-int.h" after including "ira.h".
16325 (sched_analyze_insn): Update call to
16326 ira_implicitly_set_insn_hard_regs.
16327 * sel-sched.c: Include "ira-int.h" after including "ira.h".
16328 (implicit_clobber_conflict_p): Update call to
16329 ira_implicitly_set_insn_hard_regs.
16331 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
16333 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
16335 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
16338 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
16339 currently_expanding_to_rtl is set.
16341 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
16343 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
16344 * configure: Regenerate.
16346 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16347 Jiong Wang <jiong.wang@arm.com>
16349 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
16350 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
16351 (REG_CLASS_NAMES): Likewise.
16352 (REG_CLASS_CONTENTS): Likewise.
16353 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
16354 (aarch64_register_move_cost): Likewise.
16355 (aarch64_load_symref_appropriately): Invoke the new added pattern if
16357 * config/aarch64/constraints.md (Uc0): New constraint.
16359 2015-08-06 Jiong Wang <jiong.wang@arm.com>
16361 * config/aarch64/constraints.md (Usf): Add the test of
16362 aarch64_is_noplt_call_p.
16364 2015-08-06 Jiong Wang <jiong.wang@arm.com>
16366 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
16368 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
16369 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
16370 (call_symbol): Likewise.
16372 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
16374 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
16375 for vectorizing multiplication patterns.
16376 * tree-vectorizer.h: Adjust the number of patterns.
16378 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
16380 * config/i386/sse.md (*vec_concatv2df): Declare added
16381 alternatives as sselog type.
16383 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16385 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
16388 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16390 * config/s390/s390.c (s390_expand_tbegin): Expand either
16391 tbegin_1_z13 or tbegin_1 depending on VX flag.
16392 * config/s390/s390.md ("tbegin_1_z13"): New expander.
16394 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16396 * config/s390/s390.opt: Clarify description for -mzvector
16397 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
16400 2015-08-06 Richard Biener <rguenther@suse.de>
16402 * gimple.h (gimple_call_set_fn): Access op member directly.
16403 (gimple_call_chain_ptr): Likewise.
16404 (gimple_call_set_chain): Likewise.
16405 (gimple_cond_lhs_ptr): Likewise.
16406 (gimple_cond_set_lhs): Likewise.
16407 (gimple_cond_rhs_ptr): Likewise.
16408 (gimple_cond_set_rhs): Likewise.
16409 (gimple_cond_true_label): Likewise.
16410 (gimple_cond_set_true_label): Likewise.
16411 (gimple_cond_set_false_label): Likewise.
16412 (gimple_cond_false_label): Likewise.
16413 (gimple_label_label): Likewise.
16414 (gimple_label_set_label): Likewise.
16415 (gimple_goto_set_dest): Likewise.
16416 (gimple_asm_input_op): Likewise.
16417 (gimple_asm_input_op_ptr): Likewise.
16418 (gimple_asm_set_input_op): Likewise.
16419 (gimple_asm_output_op): Likewise.
16420 (gimple_asm_output_op_ptr): Likewise.
16421 (gimple_asm_set_output_op): Likewise.
16422 (gimple_asm_clobber_op): Likewise.
16423 (gimple_asm_set_clobber_op): Likewise.
16424 (gimple_asm_label_op): Likewise.
16425 (gimple_asm_set_label_op): Likewise.
16426 (gimple_switch_index): Likewise.
16427 (gimple_switch_index_ptr): Likewise.
16428 (gimple_return_retval_ptr): Likewise.
16429 (gimple_return_retval): Likewise.
16430 (gimple_return_set_retval): Likewise.
16431 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
16432 (gimple_switch_label): Likewise.
16433 (gimple_switch_set_label): Likewise.
16435 2015-08-06 Richard Biener <rguenther@suse.de>
16437 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
16438 bool comparison canonicalization and restrict to integers.
16440 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
16442 * coretypes.h (enum symbol_visibility): Relocate here.
16443 * flag-types.h (enum symbol_visibility): Remove.
16444 * tree-core.h (enum symbol_visibility): Remove.
16446 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
16449 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
16450 for no_split_stack function attribute along with
16452 (rs6000_expand_split_stack_prologue): Likewise.
16454 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
16455 Jeff Law <law@redhat.com>
16458 * doc/invoke.texi (Wnull-dereference): New.
16459 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
16460 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
16461 Warn for potential NULL dereferences.
16462 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
16463 * ubsan.c (instrument_nonnull_arg): Call
16464 infer_nonnull_range_by_attribute.
16465 (instrument_nonnull_return): Likewise.
16466 * common.opt (Wnull-dereference); New.
16467 * gimple.c (infer_nonnull_range): Remove bool arguments.
16468 (infer_nonnull_range_by_dereference): New.
16469 (infer_nonnull_range_by_attribute): New.
16470 * gimple.h: Update declarations.
16472 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16474 * gensupport.c (sequence_num): Replace with...
16475 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
16476 ...these new variables.
16477 (init_rtx_reader_args_cb): Update accordingly.
16478 (get_num_code_insns): Likewise.
16479 (read_md_rtx): Rework to use a while loop and get_c_test.
16480 Use the new counters. Remove redundant DEFINE_SUBST case.
16481 * genoutput.c (gen_split): Delete.
16482 (main): Don't call it.
16484 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16486 * gensupport.h (get_c_test): Declare.
16487 * gensupport.c (get_c_test): New function.
16488 * genconditions.c (main): Use it.
16489 * genrecog.c (validate_pattern): Likewise.
16490 (match_pattern_1): Likewise. Remove c_test argument.
16491 (match_pattern): Update accordingly and remove c_test argument.
16492 (main): Update accordingly.
16494 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16496 * gensupport.h (get_num_insn_codes): Declare.
16497 * gensupport.c (get_num_insn_codes): New function.
16498 * genattrtab.c (optimize_attrs): Rename max_insn_code to
16500 (main): Likewise. Use get_num_insn_codes.
16501 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
16503 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16505 PR middle-end/66311
16506 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
16507 is zero- rather than sign-extended.
16509 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16511 * target-insns.def (can_extend): Delete.
16513 2015-08-05 Richard Biener <rguenther@suse.de>
16515 PR tree-optimization/67121
16516 * tree-if-conv.c (combine_blocks): Clear range-info produced
16517 by stmts no longer executed conditionally.
16519 2015-08-05 Nick Clifton <nickc@redhat.com>
16521 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
16522 to allow identical far pointers to remain.
16524 2015-08-05 Richard Biener <rguenther@suse.de>
16526 PR middle-end/67120
16527 * match.pd: Compare address bases with == if they are decls
16528 or SSA names, not operand_equal_p. Otherwise fail.
16530 2015-08-05 Richard Biener <rguenther@suse.de>
16532 PR tree-optimization/67055
16533 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
16536 * g++.dg/torture/pr67055.C: New testcase.
16538 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
16540 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
16542 (define_attr "enabled"): Handle avx521vl and noavx512vl.
16543 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
16544 AVX-512 alternative out of SSE.
16545 (define_insn "*vec_concatv2df"): Ditto.
16547 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
16549 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
16550 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
16551 CODE_FOR_avx_ptestv4di.
16552 * config/i386/sse.md (define_mode_iterator V_AVX): New.
16553 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
16554 (define_insn "avx_ptest256"): Merge this ...
16555 (define_insn "sse4_1_ptest"): And this ...
16556 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
16558 2015-08-05 Richard Biener <rguenther@suse.de>
16560 PR tree-optimization/67109
16561 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
16562 against too big groups. Print whether this is a load or store
16563 group. Rename from ...
16564 (vect_analyze_group_access): ... this which is now a wrapper
16565 dissolving an invalid group.
16566 (vect_analyze_data_ref_accesses): Print whether this is a load
16569 2015-08-05 Richard Biener <rguenther@suse.de>
16571 PR middle-end/67107
16572 * match.pd: Guard const_binop result checking against NULL_TREE
16575 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
16577 * cse.c (cse_insn): Restoring old behaviour for src_eqv
16578 when dest and value in the REG_EQUAL are same and dest
16579 is STRICT_LOW_PART.
16581 2015-08-04 Anatoly Sokolov <aesok@post.ru>
16583 * config/moxie/moxie.h (PRINT_OPERAND,
16584 PRINT_OPERAND_ADDRESS): Remove macros.
16585 * config/moxie/moxie-protos.h (moxie_print_operand,
16586 moxie_print_operand_address): Remove declaration.
16587 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
16588 TARGET_PRINT_OPERAND_ADDRESS): Define.
16589 (moxie_print_operand, moxie_print_operand_address): Make static.
16591 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16594 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
16595 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
16597 2015-08-04 Richard Biener <rguenther@suse.de>
16599 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
16601 (dt_operand::gen_gimple_expr): Adjust.
16603 2015-08-04 Richard Biener <rguenther@suse.de>
16605 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
16606 bool compares on RHS.
16607 * match.pd: Add X ==/!= !X is false/true pattern.
16609 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
16611 * config/aarch64/aarch64.c: Change inner loop statement cost
16612 to be consistent with other targets.
16614 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
16616 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
16619 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
16621 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
16622 (machine_function): Remove pseudos field.
16624 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16626 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16627 Exit early and use target_option_current_node if processing current
16630 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16632 * doc/extend.texi (AArch64 Function Attributes): New node.
16633 (AArch64 Pragmas): Likewise.
16635 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16637 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16638 Initialize simd builtins if TARGET_SIMD.
16639 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
16640 Make sure that the builtins are initialized only once no matter how
16641 many times the function is called.
16642 (aarch64_init_builtins): Unconditionally initialize crc builtins.
16643 (aarch64_relayout_simd_param): New function.
16644 (aarch64_simd_expand_args): Use above during argument expansion.
16645 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
16646 simd builtins if TARGET_SIMD.
16647 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
16649 (aarch64_relayout_simd_types): Likewise.
16651 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16653 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
16654 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
16655 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
16656 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16658 (aarch64_reset_previous_fndecl): New function.
16659 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
16661 * config/aarch64/aarch64-c.c: New file.
16662 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
16663 Push and pop options at beginning and end. Remove ifdef
16664 __ARM_FEATURE_CRC32.
16665 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
16666 Add pragma +nothing+simd and +nothing+crypto where appropriate.
16667 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
16668 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
16670 (aarch64_register_pragmas): Likewise.
16671 (aarch64_reset_previous_fndecl): Likewise.
16672 (aarch64_process_target_attr): Likewise.
16673 (aarch64_override_options_internal): Likewise.
16675 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16677 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
16679 (aarch64_can_inline_p): Likewise.
16680 (TARGET_CAN_INLINE_P): Define.
16682 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16684 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
16685 Remove static. Handle OPT_mgeneral_regs_only,
16686 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
16687 OPT_momit_leaf_frame_pointer.
16688 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
16689 (aarch64_attr_opt_type): New enum.
16690 (aarch64_attribute_info): New struct.
16691 (aarch64_handle_attr_arch): New function.
16692 (aarch64_handle_attr_cpu): Likewise.
16693 (aarch64_handle_attr_tune): Likewise.
16694 (aarch64_handle_attr_isa_flags): Likewise.
16695 (aarch64_attributes): New table.
16696 (aarch64_process_one_target_attr): New function.
16697 (num_occurences_in_str): Likewise.
16698 (aarch64_process_target_attr): Likewise.
16699 (aarch64_option_valid_attribute_p): Likewise.
16700 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16701 * config/aarch64/aarch64-protos.h: Include input.h
16702 (aarch64_handle_option): Declare prototype.
16704 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16706 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
16707 * config/aarch64/aarch64.c: Include target-globals.h
16708 (aarch64_previous_fndecl): New variable.
16709 (aarch64_set_current_function): New function.
16710 (TARGET_SET_CURRENT_FUNCTION): Define.
16712 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16714 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
16715 (explicit_arch): Likewise.
16716 (x_aarch64_isa_flags): Likewise.
16717 (mgeneral-regs-only): Mark as Save.
16718 (mfix-cortex-a53-835769): Likewise.
16719 (mcmodel=): Likewise.
16720 (mstrict-align): Likewise.
16721 (momit-leaf-frame-pointer): Likewise.
16722 (mtls-dialect): Likewise.
16723 (master=): Likewise.
16724 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
16725 (aarch64_isa_flags): Remove extern declaration.
16726 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
16727 to indicate success or failure.
16728 (aarch64_validate_march): Likewise.
16729 (aarch64_validate_mtune): Likewise.
16730 (aarch64_isa_flags): Delete.
16731 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
16732 instead of aarch64_isa_flags.
16733 (aarch64_get_tune_cpu): New function.
16734 (aarch64_get_arch): Likewise.
16735 (aarch64_override_options): Use above and set up explicit_tune_core
16737 (aarch64_print_extension): Move earlier in file. Add isa_flags
16738 argument and use that instead of the global aarch64_isa_flags.
16739 (aarch64_option_save): New function.
16740 (aarch64_option_restore): Likewise.
16741 (aarch64_option_print): Likewise.
16742 (aarch64_declare_function_name): Likewise.
16743 (aarch64_start_file): Delete.
16744 (TARGET_ASM_FILE_START): Do not define.
16745 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
16746 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
16749 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16751 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
16752 flag_omit_leaf_frame_pointer to 2.
16754 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16756 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
16758 (TARGET_FIX_ERR_A53_835769): New macro.
16759 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16760 handling of opts->x_aarch64_fix_a53_err835769.
16761 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
16762 than aarch64_fix_a53_err835769.
16763 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
16764 * config/aarch64/aarch64-linux.h: Likewise.
16766 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
16768 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
16769 ix86_expand_int_movcc as boolean.
16771 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16773 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
16774 (aarch64_cpu_string): Likewise.
16775 (aarch64_tune_string): Likewise.
16776 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
16777 (aarch64_parse_extension): Return aarch64_parse_opt_result.
16778 Add extra argument to put result into.
16779 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
16780 (aarch64_parse_cpu): Add arguments to put results into. Return
16781 aarch64_parse_opt_result.
16782 (aarch64_parse_tune): Likewise.
16783 (aarch64_override_options_after_change_1): New function.
16784 (aarch64_override_options_internal): New function.
16785 (aarch64_validate_mcpu): Likewise.
16786 (aarch64_validate_march): Likewise.
16787 (aarch64_validate_mtune): Likewise.
16788 (aarch64_override_options): Update to reflect above changes.
16789 Move some logic into aarch64_override_options_internal.
16790 Initialize target_option_default_node and target_option_current_node.
16791 (aarch64_override_options_after_change): Move logic into
16792 aarch64_override_options_after_change_1 and call it with global_options.
16793 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
16794 flag values from that.
16796 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16798 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16799 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
16800 * config/aarch64/aarch64.c (struct processor): Add arch field.
16801 (all_architectures): Handle above, move above all_cores.
16802 (all_cores): Handle above.
16803 (aarch64_parse_arch): Handle above changes.
16804 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
16805 above. Update comments.
16806 (armv8.1-a): Likewise.
16807 * config/aarch64/aarch64-cores.def: Update according to above.
16808 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
16809 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
16810 aarch64_arch_driver_info.
16812 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16814 * config/aarch64/aarch64.c (struct processor): Add ident field.
16815 Rename core sched_core.
16816 (all_cores): Handle above changes.
16817 (all_architectures): Likewise.
16818 (aarch64_parse_arch): Likewise.
16819 (aarch64_override_options): Likewise.
16821 2015-08-04 Richard Biener <rguenther@suse.de>
16823 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16824 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
16825 comparisons embedded in [VEC_]COND_EXPRs.
16827 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
16829 * tree-if-conv.c: Fix various typos in comments.
16830 * tree-vect-stmts.c: Likewise.
16832 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
16834 PR tree-optimization/67043
16835 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
16836 preheader after hoisting invariant in it.
16837 (find_defs): Force recomputation of all luids.
16839 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
16841 * config/rs6000/htm.md (tabort.): Restrict the source operand to
16842 using a base register.
16844 2015-08-03 David Malcolm <dmalcolm@redhat.com>
16846 * main.c (main): Pass in NULL for toplev's external_timer.
16847 * timevar.c: Include coretypes.h.
16848 (class timer::named_items): New.
16849 (timer::named_items::named_items): New.
16850 (timer::named_items::~named_items): New.
16851 (timer::named_items::push): New.
16852 (timer::named_items::pop): New.
16853 (timer::named_items::print): New.
16854 (timer::timer): Initialize field "m_jit_client_items".
16855 (timer::~timer): New.
16856 (timer::push): Move bulk of implementation to...
16857 (timer::push_internal): ...here. New function.
16858 (timer::pop): Move bulk of implementation to...
16859 (timer::pop_internal): ...here. New function.
16860 (timer::push_client_item): New.
16861 (timer::pop_client_item): New.
16862 (timer::print_row): New function, taken from timer::print.
16863 (timer::print): Print "GCC items" header if we also have client
16864 items. Move row-printing to timer::print_row. Print any client
16866 (timer::get_topmost_item_name): New method.
16867 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
16868 (TV_JIT_CLIENT_CODE): New.
16869 * timevar.h (timer::push_client_item): New declaration.
16870 (timer::pop_client_item): New declaration.
16871 (timer::get_topmost_item_name): New method.
16872 (timer::push_internal): New declaration.
16873 (timer::pop_internal): New declaration.
16874 (timer::print_row): New declaration.
16875 (timer::named_items): New declaration.
16876 (timer::m_jit_client_items): New field.
16877 (timer): Add friend class named_items.
16878 (auto_timevar::auto_timevar): Add timer param.
16879 (auto_timevar::~auto_timevar): Use field "m_timer".
16880 (auto_timevar::m_timer): New field.
16881 * toplev.c (initialize_rtl): Add g_timer as param when
16882 constructing auto_timevar instance.
16883 (toplev::toplev): Add "external_timer" param, and use it to
16884 initialize the "g_timer" global if non-NULL.
16885 (toplev::~toplev): If this created "g_timer", delete it.
16886 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
16887 with "external_timer" timer *.
16889 2015-08-03 Alexander Basov <coohpt@gmail.com>
16891 PR middle-end/64744
16892 PR middle-end/48470
16893 PR middle-end/43404
16894 * cfgexpand.c (expand_one_var): Add check if stack is going to
16895 be used in naked function.
16896 * expr.c (expand_expr_addr_expr_1): Remove excess checking
16897 whether expression should not reside in MEM.
16898 * function.c (use_register_for_decl): Do not use registers for
16899 non-register things (volatile, float, BLKMode) in naked functions.
16901 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
16904 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
16905 Adjust splits to match new pattern.
16907 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16909 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
16912 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
16913 point in VSX registers.
16915 * config/rs6000/constraints.md (wb constraint): Document unused
16917 (we constraint): Likewise.
16918 (wo constraint): Likewise.
16919 (wp constraint): New constraint for IEEE 128-bit floating point in
16921 (wq constraint): Likewise.
16923 * config/rs6000/predicates.md (easy_fp_constant): Add support for
16924 IEEE 128-bit floating point in VSX registers.
16925 (easy_scalar_constant): Likewise.
16927 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
16928 constraints (wp, wq) for IEEE 128-bit floating point in VSX
16930 (rs6000_init_hard_regno_mode_ok): Likewise.
16932 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
16933 floating point in VSX registers.
16936 (VSX_M2): Likewise.
16942 (vsx_le_permute_<mode>): Add support to properly swap bytes for
16943 IEEE 128-bit floating point in VSX registers on little endian.
16944 (vsx_le_undo_permute_<mode>): Likewise.
16945 (vsx_le_perm_load_<mode>): Likewise.
16946 (vsx_le_perm_store_<mode>): Likewise.
16947 (splitters for IEEE 128-bit fp moves): Likewise.
16949 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
16952 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
16953 floating point in VSX registers.
16956 * doc/md.text (Machine Constraints): Document wp and wq
16957 constraints on PowerPC.
16959 2015-08-03 Jeff Law <law@redhat.com>
16961 PR middle-end/66314
16962 PR gcov-profile/66899
16963 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
16964 iterate over the jump threading paths when an element in the
16965 jump threading paths array is eliminated.
16967 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
16969 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
16971 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
16973 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
16974 is_use_properly_guarded the variable def_preds. Free its
16975 contents before returning.
16976 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
16977 (is_use_properly_guarded): Replace local variable def_preds with
16978 a parameter. Adjust accordingly. Only update *def_preds if it's
16981 2015-08-03 Richard Biener <rguenther@suse.de>
16983 * genmatch.c (simplify::for_subst_vec): New member.
16984 (binary_ok): New helper for for lowering.
16985 (lower_for): Delay substituting operators into result expressions
16986 if we can merge the results eventually again.
16987 (capture_info::walk_result): Adjust for user_id appearing as
16988 result expression operator.
16989 (expr::gen_transform): Likewise.
16990 (dt_simplify::gen_1): Likewise.
16991 (dt_simplify::gen): Pass not substituted operators to tail
16992 functions or initialize local variable with it.
16993 (decision_tree::gen): Adjust function signature.
16994 * match.pd: Fix tests against global code and add default
16995 cases to switch stmts.
16997 2015-08-03 Richard Biener <rguenther@suse.de>
16999 * genmatch.c (dt_simplify::gen): Create captures array
17000 with an initializer.
17002 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17004 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
17005 the host compiler is affected by placement new aliasing bug.
17006 * configure: Regenerate.
17007 * Makefile.in (ALIASING_FLAGS): New variable.
17008 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
17010 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
17013 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
17014 (negmulsf3_vfp): Likewise.
17015 (muldf3negdf_vfp): Disable for -frounding-math.
17016 (mulsf3negsf_vfp): Likewise.
17017 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
17018 fix MULT cost with -frounding-math.
17020 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17022 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
17023 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
17024 explicit. Prefer to add the flag whenever possible.
17025 (noce_process_if_block): Try noce_try_store_flag_constants before
17028 2015-08-03 Richard Biener <rguenther@suse.de>
17030 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
17031 New hash-map to record equivalent transforms.
17032 (dt_node::analyze): Populate the equivalent transforms hash-map.
17033 (dt_simplify::info): Add reference to hash-map entry.
17034 (dt_simplify::gen): If we have split out a function for the
17035 transform, generate a call to it.
17036 (sinfo_hashmap_traits::hash): New function.
17037 (compare_op): New helper function for ...
17038 (sinfo_hashmap_traits::equal_keys): ... this new function.
17039 (decision_tree::gen): Split out common equivalent transforms
17042 2015-08-03 Richard Biener <rguenther@suse.de>
17044 * gimple-fold.c (fold_gimple_assign): Remove folding of
17045 the comparison in COND_EXPRs.
17047 2015-08-03 Richard Biener <rguenther@suse.de>
17049 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
17050 on the rhs of assignments first simplify the embedded
17053 2015-08-03 Richard Biener <rguenther@suse.de>
17055 PR tree-optimization/66917
17056 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
17058 (DR_VECT_AUX): New macro.
17059 (set_dr_misalignment): Adjust.
17060 (dr_misalignment): Likewise.
17061 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17062 Compute whether the base is at least element aligned.
17063 * tree-vect-stmts.c (ensure_base_align): Adjust.
17064 (vectorizable_store): If the base is not element aligned
17065 preserve alignment of the original access if misalignment is unknown.
17066 (vectorizable_load): Likewise.
17068 2015-08-02 Martin Sebor <msebor@redhat.com>
17070 * c-family/c.opt (-Wframe-address): New warning option.
17071 * doc/invoke.texi (Wframe-address): Document it.
17072 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
17073 Clarify possible effects of calling the functions with non-zero
17074 arguments and mention -Wframe-address.
17075 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
17077 2015-08-01 Michael Collison <michael.collison@linaro.org
17078 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17080 * config/arm/arm.md (*arm_smin_cmp): New pattern.
17081 (*arm_umin_cmp): Likewise.
17083 2015-08-01 Caroline Tice <cmtice@google.com>
17086 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
17088 (vtbl_find_mangled_name): New function.
17089 (vtbl_register_mangled_name): New function.
17090 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
17091 mangled name in mangled name vectors.
17092 (find_or_create_vtbl_map_node): Ditto.
17093 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
17094 update recursion_depth on function entry; pass it to every recursive
17095 call; automatically exit if depth > 25 (give up looking at that point).
17096 (verify_bb_vtables): Initialize recursion_depth and pass it to
17097 var_is_used_for_virtual_call_p.
17098 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
17099 global variable decls.
17100 (vtbl_register_mangled_name): New extern function decl.
17102 2015-08-01 Tom de Vries <tom@codesourcery.com>
17104 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
17106 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
17108 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
17109 operation_no_trapping_overflow. Allow non-overflow operations.
17110 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
17113 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
17116 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
17118 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17120 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
17121 Enable for TARGET_32BIT.
17122 (*if_move_neg): Likewise.
17124 2015-07-31 Nick Clifton <nickc@redhat.com>
17126 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
17127 Returns true for __model__.
17128 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17130 2015-07-31 Alan Modra <amodra@gmail.com>
17133 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
17134 (rs6000_emit_prologue): Set it.
17135 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
17137 2015-07-31 Richard Biener <rguenther@suse.de>
17139 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
17140 -> X == (C1 ^ C2) which is already implemented in match.pd.
17141 Remove redundant dispatching to fold_relational_const.
17142 Move unordered self and NaN compares ...
17143 * match.pd: ... as patterns here. Remove some stray captures
17146 2015-07-31 Petr Murzin <petr.murzin@intel.com>
17148 * config/i386/i386.c
17149 (bdesc_special_args): Convert mask type from signed to unsigned for
17151 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
17152 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
17153 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
17154 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
17155 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
17156 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
17157 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
17158 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
17159 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
17160 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
17161 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
17162 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
17163 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
17164 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
17165 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
17166 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
17167 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
17168 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
17169 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
17170 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
17171 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
17172 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
17173 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
17174 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
17175 * config/i386/i386-builtin-types.def
17176 (V16QI_FTYPE_V16SI): Remove.
17177 (V8DF_FTYPE_V8SI): Ditto.
17178 (V8HI_FTYPE_V8DI): Ditto.
17179 (V8SI_FTYPE_V8DI): Ditto.
17180 (V8SF_FTYPE_V8DF): Ditto.
17181 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
17182 (V16HI_FTYPE_V16SI): Ditto.
17183 (V16SF_FTYPE_V16HI): Ditto.
17184 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
17185 (V16SF_FTYPE_V16SI): Ditto.
17186 (V4DI_FTYPE_V4DI): Ditto.
17187 (V16SI_FTYPE_V16SF): Ditto.
17188 (V16SF_FTYPE_FLOAT): Ditto.
17189 (V8DF_FTYPE_DOUBLE): Ditto.
17190 (V8DI_FTYPE_INT64): Ditto.
17191 (V8DI_FTYPE_V4DI): Ditto.
17192 (V16QI_FTYPE_V8DI): Ditto.
17193 (UINT_FTYPE_V4SF): Ditto.
17194 (UINT64_FTYPE_V4SF): Ditto.
17195 (UINT_FTYPE_V2DF): Ditto.
17196 (UINT64_FTYPE_V2DF): Ditto.
17197 (V16SI_FTYPE_V16SI): Ditto.
17198 (V8DI_FTYPE_V8DI): Ditto.
17199 (V16SI_FTYPE_PV4SI): Ditto.
17200 (V16SF_FTYPE_PV4SF): Ditto.
17201 (V8DI_FTYPE_PV2DI): Ditto.
17202 (V8DF_FTYPE_PV2DF): Ditto.
17203 (V4DI_FTYPE_PV2DI): Ditto.
17204 (V4DF_FTYPE_PV2DF): Ditto.
17205 (V16SI_FTYPE_PV2SI): Ditto.
17206 (V16SF_FTYPE_PV2SF): Ditto.
17207 (V8DI_FTYPE_PV4DI): Ditto.
17208 (V8DF_FTYPE_PV4DF): Ditto.
17209 (V8SF_FTYPE_FLOAT): Ditto.
17210 (V4SF_FTYPE_FLOAT): Ditto.
17211 (V4DF_FTYPE_DOUBLE): Ditto.
17212 (V8SF_FTYPE_PV4SF): Ditto.
17213 (V8SI_FTYPE_PV4SI): Ditto.
17214 (V4SI_FTYPE_PV2SI): Ditto.
17215 (V8SF_FTYPE_PV2SF): Ditto.
17216 (V8SI_FTYPE_PV2SI): Ditto.
17217 (V16SF_FTYPE_PV8SF): Ditto.
17218 (V16SI_FTYPE_PV8SI): Ditto.
17219 (V8DI_FTYPE_V8SF): Ditto.
17220 (V4DI_FTYPE_V4SF): Ditto.
17221 (V2DI_FTYPE_V4SF): Ditto.
17222 (V64QI_FTYPE_QI): Ditto.
17223 (V32HI_FTYPE_HI): Ditto.
17224 (V8UHI_FTYPE_V8UHI): Ditto.
17225 (V16UHI_FTYPE_V16UHI): Ditto.
17226 (V32UHI_FTYPE_V32UHI): Ditto.
17227 (V2UDI_FTYPE_V2UDI): Ditto.
17228 (V4UDI_FTYPE_V4UDI): Ditto.
17229 (V8UDI_FTYPE_V8UDI): Ditto.
17230 (V4USI_FTYPE_V4USI): Ditto.
17231 (V8USI_FTYPE_V8USI): Ditto.
17232 (V16USI_FTYPE_V16USI): Ditto.
17233 (V2DF_FTYPE_V2DF_UINT64): Ditto.
17234 (V2DI_FTYPE_V2DF_V2DF): Ditto.
17235 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
17236 (V8DF_FTYPE_V8DF_V8DI): Ditto.
17237 (V4SF_FTYPE_V4SF_UINT64): Ditto.
17238 (V4SI_FTYPE_V4SF_V4SF): Ditto.
17239 (V16SF_FTYPE_V16SF_V16SI): Ditto.
17240 (V64QI_FTYPE_V32HI_V32HI): Ditto.
17241 (V32HI_FTYPE_V16SI_V16SI): Ditto.
17242 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
17243 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
17244 (V32HI_FTYPE_V64QI_V64QI): Ditto.
17245 (V32HI_FTYPE_V32HI_V32HI): Ditto.
17246 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
17247 (V16SI_FTYPE_V16SI_V4SI): Ditto.
17248 (V16SI_FTYPE_V16SI_V16SI): Ditto.
17249 (V16SI_FTYPE_V32HI_V32HI): Ditto.
17250 (V16SI_FTYPE_V16SI_SI): Ditto.
17251 (V8DI_FTYPE_V8DI_V8DI): Ditto.
17252 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
17253 (V8DI_FTYPE_V16SI_V16SI): Ditto.
17254 (V8DI_FTYPE_V8DI_V2DI): Ditto.
17255 (QI_FTYPE_QI): Ditto.
17256 (SI_FTYPE_SI): Ditto.
17257 (DI_FTYPE_DI): Ditto.
17258 (QI_FTYPE_QI_QI): Ditto.
17259 (QI_FTYPE_QI_INT): Ditto.
17260 (HI_FTYPE_HI_INT): Ditto.
17261 (SI_FTYPE_SI_INT): Ditto.
17262 (DI_FTYPE_DI_INT): Ditto.
17263 (HI_FTYPE_V16QI_V16QI): Ditto.
17264 (SI_FTYPE_V32QI_V32QI): Ditto.
17265 (DI_FTYPE_V64QI_V64QI): Ditto.
17266 (QI_FTYPE_V8HI_V8HI): Ditto.
17267 (HI_FTYPE_V16HI_V16HI): Ditto.
17268 (SI_FTYPE_V32HI_V32HI): Ditto.
17269 (QI_FTYPE_V4SI_V4SI): Ditto.
17270 (QI_FTYPE_V8SI_V8SI): Ditto.
17271 (QI_FTYPE_V2DI_V2DI): Ditto.
17272 (QI_FTYPE_V4DI_V4DI): Ditto.
17273 (QI_FTYPE_V8DI_V8DI): Ditto.
17274 (HI_FTYPE_V16SI_V16SI): Ditto.
17275 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
17276 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
17277 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
17278 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
17279 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
17280 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
17281 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
17282 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
17283 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
17284 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
17285 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
17286 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
17287 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
17288 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
17289 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
17290 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
17291 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
17292 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
17293 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
17294 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
17295 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
17296 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
17297 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
17298 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
17299 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
17300 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
17301 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
17302 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
17303 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
17304 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
17305 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
17306 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
17307 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
17308 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
17309 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
17310 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
17311 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
17312 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
17313 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
17314 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
17315 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
17316 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
17317 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
17318 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
17319 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
17320 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
17321 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
17322 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
17323 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
17324 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
17325 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
17326 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
17327 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
17328 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
17329 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
17330 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
17331 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
17332 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
17333 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
17334 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
17335 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
17336 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
17337 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
17338 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
17339 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
17340 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
17341 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
17342 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
17343 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
17344 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
17345 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
17346 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
17347 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
17348 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
17349 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
17350 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
17351 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
17352 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
17353 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
17354 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
17355 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
17356 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
17357 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
17358 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
17359 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
17360 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
17361 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
17362 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
17363 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
17364 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
17365 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
17366 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
17367 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
17368 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
17369 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
17370 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
17371 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
17372 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
17373 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
17374 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
17375 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
17376 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
17377 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
17378 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
17379 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
17380 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
17381 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
17382 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
17383 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
17384 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
17385 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
17386 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
17387 (HI_FTYPE_HI): Ditto.
17388 (HI_FTYPE_V16QI): Ditto.
17389 (SI_FTYPE_V32QI): Ditto.
17390 (DI_FTYPE_V64QI): Ditto.
17391 (QI_FTYPE_V8HI): Ditto.
17392 (HI_FTYPE_V16HI): Ditto.
17393 (SI_FTYPE_V32HI): Ditto.
17394 (QI_FTYPE_V4SI): Ditto.
17395 (QI_FTYPE_V8SI): Ditto.
17396 (HI_FTYPE_V16SI): Ditto.
17397 (QI_FTYPE_V2DI): Ditto.
17398 (QI_FTYPE_V4DI): Ditto.
17399 (QI_FTYPE_V8DI): Ditto.
17400 (V16QI_FTYPE_HI): Ditto.
17401 (V32QI_FTYPE_SI): Ditto.
17402 (V64QI_FTYPE_DI): Ditto.
17403 (V8HI_FTYPE_QI): Ditto.
17404 (V16HI_FTYPE_HI): Ditto.
17405 (V32HI_FTYPE_SI): Ditto.
17406 (V4SI_FTYPE_QI): Ditto.
17407 (V4SI_FTYPE_HI): Ditto.
17408 (V8SI_FTYPE_QI): Ditto.
17409 (V8SI_FTYPE_HI): Ditto.
17410 (V2DI_FTYPE_QI): Ditto.
17411 (V4DI_FTYPE_QI): Ditto.
17412 (HI_FTYPE_HI_HI): Ditto.
17413 (SI_FTYPE_SI_SI): Ditto.
17414 (DI_FTYPE_DI_DI): Ditto.
17415 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
17416 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
17417 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
17418 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
17419 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
17420 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
17421 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
17422 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
17423 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
17424 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
17425 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
17426 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
17427 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
17428 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
17429 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
17430 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
17431 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
17432 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
17433 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
17434 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
17435 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
17436 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
17437 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
17438 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
17439 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
17440 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
17441 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
17442 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
17443 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
17444 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
17445 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
17446 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
17447 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
17448 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
17449 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
17450 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
17451 (V16SI_FTYPE_HI): Ditto.
17452 (V8DI_FTYPE_QI): Ditto.
17453 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
17454 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
17455 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
17456 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
17457 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
17458 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
17459 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
17460 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
17461 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
17462 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
17463 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
17464 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
17465 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
17466 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
17467 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
17468 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
17469 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
17470 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
17471 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
17472 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
17473 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
17474 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
17475 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
17476 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
17477 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
17478 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
17479 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
17480 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
17481 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
17482 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
17483 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
17484 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
17485 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
17486 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
17487 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
17488 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
17489 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
17490 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
17491 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
17492 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
17493 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
17494 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
17495 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
17496 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
17497 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
17498 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
17499 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
17500 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
17501 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
17502 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
17503 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
17504 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
17505 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
17506 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
17507 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
17508 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
17509 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
17510 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
17511 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
17512 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
17513 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
17514 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
17515 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
17516 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
17517 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
17518 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
17519 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
17520 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
17521 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
17522 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
17523 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
17524 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
17525 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
17526 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
17527 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
17528 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
17529 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
17530 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
17531 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
17532 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
17533 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
17534 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
17535 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
17536 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
17537 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
17538 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
17539 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
17540 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
17541 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
17542 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
17543 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
17544 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
17545 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
17546 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
17547 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
17548 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
17549 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
17550 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
17551 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
17552 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
17553 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
17554 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
17555 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
17556 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
17557 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
17558 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
17559 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
17560 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
17561 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
17562 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
17563 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
17564 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
17565 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
17566 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
17567 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
17568 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
17569 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
17570 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
17571 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
17572 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
17573 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
17574 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
17575 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
17576 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
17577 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
17578 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
17579 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
17580 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
17581 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
17582 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
17583 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
17584 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
17585 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
17586 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
17587 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
17588 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
17589 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
17590 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
17591 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
17592 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
17593 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
17594 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
17595 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
17596 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
17597 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
17598 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
17599 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
17600 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
17601 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
17602 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
17603 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
17604 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
17605 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
17606 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
17607 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
17608 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
17609 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
17610 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
17611 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
17612 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
17613 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
17614 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
17615 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
17616 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
17617 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
17618 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
17619 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
17620 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
17621 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
17622 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
17623 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
17624 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
17625 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
17626 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
17627 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
17628 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
17629 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
17630 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
17631 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
17632 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
17633 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
17634 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
17635 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
17636 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
17637 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
17638 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
17639 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
17640 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
17641 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
17642 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
17643 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
17644 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
17645 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
17646 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
17647 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
17648 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
17649 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
17650 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
17651 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
17652 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
17653 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
17654 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
17655 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
17656 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
17657 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
17658 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
17659 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
17660 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
17661 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
17662 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
17663 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
17664 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
17665 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
17666 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
17667 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
17668 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
17669 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
17670 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
17671 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
17672 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
17673 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
17674 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
17675 (QI_FTYPE_V8DF_INT_QI): Ditto.
17676 (QI_FTYPE_V4DF_INT_QI): Ditto.
17677 (QI_FTYPE_V2DF_INT_QI): Ditto.
17678 (HI_FTYPE_V16SF_INT_HI): Ditto.
17679 (QI_FTYPE_V8SF_INT_QI): Ditto.
17680 (QI_FTYPE_V4SF_INT_QI): Ditto.
17681 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
17683 2015-07-31 Richard Biener <rguenther@suse.de>
17685 * gimple-fold.c (fold_gimple_assign): Remove folding of
17688 2015-07-31 Tom de Vries <tom@codesourcery.com>
17690 PR tree-optimization/66846
17691 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
17692 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
17693 (expand_omp_target) [ENABLE_CHECKING]: Same.
17694 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
17695 cfun if !LOOPS_NEED_FIXUP.
17696 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
17697 that omp_for already has its own loop struct.
17698 * tree-parloops.c (create_phi_for_local_result)
17699 (create_call_for_reduction): Handle simple latch bb.
17700 (create_parallel_loop): Add simple latch bb to preserve
17701 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
17702 (gen_parallel_loop): Remove call to cancel_loop_tree.
17703 (parallelize_loops): Skip loops that are inner loops of parallelized
17705 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
17706 verify_loop_structure.
17708 2015-07-30 Anatoly Sokolov <aesok@post.ru>
17710 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
17711 * config/v850/v850.md (RV_REGNUM): New constants.
17712 * config/v850/v850.c (v850_libcall_value): New functions.
17713 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
17714 (TARGET_LIBCALL_VALUE): Define.
17716 2015-07-30 Anatoly Sokolov <aesok@post.ru>
17718 * rtl.h (lowpart_subreg): Move in file.
17719 * loop-iv.c (lowpart_subreg): Move to...
17720 * simplify-rtx.c (lowpart_subreg): ...here.
17721 (simplify_binary_operation_1): Use lowpart_subreg instead of
17722 simplify_gen_subreg.
17723 * expr.c (expand_expr_real_2): Ditto.
17724 * emit-rtl.c (gen_lowpart_common): Ditto.
17725 * combine.c (gen_lowpart_for_combine): Ditto.
17726 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
17727 expand_debug_source_expr): Ditto.
17729 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
17731 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
17732 (expand_builtin_atomic_clear): Remove support for atomic_clear
17735 2015-07-30 Richard Biener <rguenther@suse.de>
17737 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
17738 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
17739 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
17740 redundant operand canonicalization.
17742 2015-07-30 David Sherwood <david.sherwood@arm.com>
17744 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
17745 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
17746 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
17747 * config/arm/arm.c (neon_valid_immediate): Likewise.
17748 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
17749 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
17750 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
17751 (expand_vec_perm_vpshufb2_vpermq): Likewise.
17752 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
17753 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
17754 * config/i386/sse.md
17755 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
17756 (*ssse3_palignr<mode>_perm): Likewise.
17757 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
17758 * config/spu/spu.c (arith_immediate_p): Likewise.
17759 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17760 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
17762 2015-07-30 Richard Biener <rguenther@suse.de>
17764 * genmatch.c (decision_tree::gen_gimple): Merge with ...
17765 (decision_tree::gen_generic): ... this into ...
17766 (decision_tree::gen): ... this.
17767 (main): Adjust callers.
17769 2015-07-30 Richard Biener <rguenther@suse.de>
17771 * genmatch.c (verbose): New global.
17772 (warning_at): Add overload with source_location.
17773 (capture_info::capture_info): Add bool whether generating gimple
17774 or generic. Add gimple member.
17775 (capture_info::cinfo): Add capture member.
17776 (capture_info::walk_match): Record capture. Warn on
17777 non-captured leafs.
17778 (capture_info::walk_c_expr): Add more fragments captures cannot
17779 escape through. Warn on escaped captures.
17780 (dt_simplify::gen_1): Warn on operands we force to have no
17782 (main): Initialize verbose.
17783 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
17785 2015-07-30 Richard Biener <rguenther@suse.de>
17787 PR middle-end/67053
17788 * match.pd: Allow both operands to independently have conversion
17789 when simplifying compares of addresses.
17791 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
17795 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
17796 around those cases that need one.
17798 2015-07-29 Aditya Kumar <hiraditya@msn.com>
17800 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
17802 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
17804 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
17805 New. Copied from config/i386/gnu-user.h.
17806 (ASM_COMMENT_START): Likewise.
17807 (DBX_REGISTER_NUMBER): Likewise.
17809 2015-07-29 Richard Biener <rguenther@suse.de>
17811 * gimple-fold.c (fold_gimple_cond): Remove.
17812 (fold_stmt_1): Do not call it.
17814 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
17816 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
17817 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
17819 * config/aarch64/aarch64-modes.def: Add HFmode.
17821 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17822 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
17824 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
17825 aarch64_promoted_type): New.
17827 (aarch64_float_const_representable_p): Disable HFmode.
17828 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
17829 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
17830 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
17832 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
17833 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
17835 * config/aarch64/iterators.md (GPF_F16): New.
17837 2015-07-29 Richard Biener <rguenther@suse.de>
17839 * match.pd: Merge address comparison patterns and make them
17840 handle some more cases.
17842 2015-07-29 Richard Biener <rguenther@suse.de>
17844 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
17845 (parser::parse_capture): Add bool argument on whether to reject
17847 (parser::parse_expr): Adjust.
17848 (parser::parse_op): Likewise.
17849 (parser::parse_pattern): Likewise.
17851 2015-07-29 Richard Biener <rguenther@suse.de>
17853 * gimple-fold.c (has_use_on_stmt): New function.
17854 (replace_stmt_with_simplification): Use it to allow
17855 abnormals originally referenced in the stmt.
17856 (fold_stmt_1): Canonicalize operand order.
17858 2015-07-28 David Sherwood <david.sherwood@arm.com>
17860 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
17861 GET_MODE_INNER unconditionally.
17862 * config/spu/spu.c (arith_immediate_p): Likewise.
17863 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
17864 * expmed.c (synth_mult): Remove check for VOIDmode result from
17866 (expand_mult_const): Likewise.
17867 * fold-const.c (fold_binary_loc): Replace call to element_precision
17868 with call to GET_MODE_PRECISION.
17869 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
17871 (emit_mode_inner): Likewise.
17872 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
17874 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
17875 (GET_MODE_UNIT_PRECISION): Likewise.
17876 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
17877 * simplify-rtx.c (simplify_immed_subreg): Likewise.
17878 * stor-layout.c (bitwise_type_for_mode): Update assert.
17879 (element_precision): Remove.
17881 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17883 * target-insns.def (reload_load_address): New targetm instruction
17885 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
17887 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17889 * target-insns.def (atomic_test_and_set): New targetm instruction
17891 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
17892 HAVE_*/gen_* interface.
17894 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17896 * target-insns.def (can_extend, ptr_extend): New targetm instruction
17898 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
17899 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
17900 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
17901 * rtlanal.c (nonzero_bits1): Likewise.
17902 (num_sign_bit_copies1): Likewise.
17904 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17906 * target-insns.def (eh_return): New targetm instruction pattern.
17907 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
17909 * function.c (thread_prologue_and_epilogue_insns): Remove
17910 preprocessor condition.
17912 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17914 * target-insns.def (indirect_jump): New targetm instruction pattern.
17915 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
17918 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17920 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
17921 instead of nonimmediate_operand. Remove C condiition.
17923 2015-07-28 Richard Biener <rguenther@suse.de>
17925 * match.pd: Add more simplification of address comparisons.
17927 2015-07-28 Richard Biener <rguenther@suse.de>
17929 * match.pd: Re-order two cases in comparison with max/min
17930 value simplification to make it apply for bools.
17932 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17934 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
17935 Handle simple SIGN_EXTEND or ZERO_EXTEND.
17936 (aarch64_rtx_costs): Properly strip extend or extract before
17937 passing down to rtx costs again.
17939 2015-07-28 Nick Clifton <nickc@redhat.com>
17941 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
17942 Optimizes the case where -mes0 is active and a constant symbolic
17944 * config/rl78/rl78-protos.h: Prototype the new function.
17945 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
17947 2015-07-28 Tom de Vries <tom@codesourcery.com>
17949 * tree-parloops.c (reduc_stmt_res): New function.
17950 (initialize_reductions, add_field_for_reduction)
17951 (create_phi_for_local_result, create_loads_for_reductions)
17952 (create_stores_for_reduction, build_new_reduction): Handle case that
17953 reduc_stmt is a phi.
17954 (gather_scalar_reductions): Allow double_reduc reductions.
17956 2015-07-28 Richard Biener <rguenther@suse.de>
17958 * fold-const.c (fold_comparison): Remove equality folding
17959 of decl addresses ...
17960 * match.pd: ... here and merge with existing pattern.
17962 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
17964 PR tree-optimization/66828
17965 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
17966 from int64_t to uint64_t.
17968 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
17970 * opts-common.c (read_cmdline_option): List DriverOnly enum values
17971 as valid only in the error message of the driver, not in the
17972 messages of the language compilers.
17974 2015-07-27 Tom de Vries <tom@codesourcery.com>
17976 * tree-parloops.c (gather_scalar_reductions): Simplify function
17979 2015-07-27 Marek Polacek <polacek@redhat.com>
17981 * ipa-devirt.c (types_same_for_odr): Fix typo.
17983 2015-07-27 Jason Merrill <jason@redhat.com>
17986 * dwarf2out.c (gen_inlined_subroutine_die): Check
17987 cgraph_function_possibly_inlined_p.
17989 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
17991 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
17992 Place integer variant first.
17993 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17995 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
17998 * config/arm/arm-builtins.c (enum arm_builtins):
17999 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
18000 (ARM_BUILTIN_NEON_BASE): Rename macro to....
18001 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
18002 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
18003 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
18005 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
18008 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
18009 Add qualifier_lane_index.
18010 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
18011 (arm_getlane_qualifiers): Use qualifier_lane_index.
18012 (arm_lanemac_qualifiers): Rename to...
18013 (arm_mac_n_qualifiers): ...this.
18014 (LANEMAC_QUALIFIERS): Rename to...
18015 (MAC_N_QUALIFIERS): ...this.
18016 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
18017 (arm_setlane_qualifiers): Use qualifier_lane_index.
18018 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
18019 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
18020 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
18021 (arm_expand_neon_builtin): Handle qualifier_lane_index.
18023 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
18024 * config/arm/arm.c (bounds_check): Likewise, improve error message.
18025 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
18026 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
18027 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
18028 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
18029 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
18030 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
18031 qualifiers to TERNOP_IMM.
18032 (vdup_lane): Change qualifiers to GETLANE.
18033 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
18034 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
18035 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
18036 vqdmlsl_n): Change qualifiers to MAC_N.
18038 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
18039 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
18040 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
18041 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
18042 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
18043 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
18044 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
18045 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
18046 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
18047 Remove call to neon_lane_bounds.
18049 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
18051 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
18052 Place integer variant first.
18054 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
18056 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
18057 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
18058 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
18059 for armv6kz targets.
18060 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
18061 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
18062 (FL_FOR_ARCH6ZK): Remove.
18063 (FL_FOR_ARCH6KZ): New.
18064 (arm_arch6zk): New declaration.
18065 * config/arm/arm-tables.opt: Regenerate.
18066 * config/arm/arm.c (arm_arch6kz): New.
18067 (arm_option_override): Set arm_arch6kz.
18068 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
18069 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
18070 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
18072 2015-07-27 Marek Polacek <polacek@redhat.com>
18076 * doc/invoke.texi: Document -Wtautological-compare.
18078 2015-07-27 Richard Biener <rguenther@suse.de>
18080 * genmatch.c (decision_tree::gen_gimple): Split out large
18081 subtrees into separate functions.
18082 (decision_tree::gen_generic): Likewise.
18084 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
18086 * config/alpha/alpha.c: Use SUBREG_P predicate.
18087 * config/alpha/predicates.md: Ditto.
18089 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
18091 * config.host (s390*-*-*): Include driver-native.c only when
18092 building with s390* as host *and* target.
18094 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
18097 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
18098 T bit register modified_between_p check.
18100 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18102 * config/i386/i386.c: Use SUBREG_P predicate.
18103 * config/i386/i386.md: Ditto.
18104 * config/i386/sse.md: Ditto.
18105 * config/i386/predicates.md: Ditto.
18107 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18110 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
18111 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
18113 2015-07-25 Sebastian Pop <s.pop@samsung.com>
18115 * Makefile.in: Remove use of TREEBROWSER.
18116 * config.in: Regenerated.
18117 * configure: Regenerated.
18118 * configure.ac: Remove definition of TREEBROWSER.
18119 * tree-browser.c: Removed.
18120 * tree-browser.def: Removed.
18122 2015-07-25 Sebastian Pop <s.pop@samsung.com>
18124 * graphite-scop-detection.c: Include gimple-pretty-print.h.
18125 (stmt_simple_for_scop_p): Print when a stmt is not handled in
18127 (scopdet_basic_block_info): Print when a loop or bb cannot be
18128 represented in Graphite.
18130 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18133 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
18134 execution guard when min_size is less than size_needed.
18136 2015-07-25 Sebastian Pop <s.pop@samsung.com>
18138 * doc/install.texi: Document supported versions of ISL.
18140 2015-07-25 Jeff Law <law@redhat.com>
18144 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18145 unable to find X NE 0 in the tables, return X as the simplified
18147 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18148 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
18149 to VISISTED_BBS. */
18150 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18151 after removing the control flow statement and unnecessary edges.
18153 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
18156 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
18158 PR rtl-optimization/64164
18159 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18160 * tree-ssa-copyrename.c: Removed.
18161 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18162 -ftree-coalesce-vars.
18163 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18164 * common.opt (ftree-copyrename): Ignore.
18165 (ftree-coalesce-inlined-vars): Likewise.
18166 * doc/invoke.texi: Remove the ignored options above.
18167 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18168 * tree-ssa-coalesce.h: ... here.
18169 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18170 headers required by it.
18171 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18172 across variables when flag_tree_coalesce_vars. Check register
18173 use and promoted modes to allow coalescing. Moved to
18174 tree-ssa-coalesce.c.
18175 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18176 with its member functions to tree-ssa-coalesce.c.
18177 (var_map_base_init): Likewise. Renamed to
18178 compute_samebase_partition_bases.
18179 (partition_view_normal): Drop want_bases parameter.
18180 (partition_view_bitmap): Likewise.
18181 * tree-ssa-live.h: Adjust declarations.
18182 * tree-ssa-coalesce.c: Include explow.h.
18183 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18184 default defs at the entry point.
18185 (dump_part_var_map): New.
18186 (compute_optimized_partition_bases): New, called by...
18187 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18188 of compute_samebase_partition_bases. Adjust.
18189 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18190 * cfgexpand.c (leader_merge): New.
18191 (get_rtl_for_parm_ssa_default_def): New.
18192 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18193 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18194 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18195 redundant MEM attr setting.
18196 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18198 (expand_one_stack_var): ... this. New wrapper to check and
18199 skip already expanded SSA partitions.
18200 (record_alignment_for_reg_var): New, factored out of...
18201 (expand_one_var): ... this.
18202 (expand_one_ssa_partition): New.
18203 (adjust_one_expanded_partition_var): New.
18204 (expand_one_register_var): Check and skip already expanded SSA
18206 (expand_used_vars): Don't create DECLs for anonymous SSA
18207 names. Expand all SSA partitions, then adjust all SSA names.
18208 (pass::execute): Replace the loops that set
18209 SA.partition_to_pseudo from partition leaders and cleared
18210 DECL_RTL for multi-location variables, and that which used to
18211 rename vars and set attrs, with one that clears DECL_RTL and
18212 checks that PARMs and RESULTs default_defs match DECL_RTL.
18213 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18214 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18215 * explow.c (promote_ssa_mode): New.
18216 * explow.h (promote_ssa_mode): Declare.
18217 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18218 * function.c: Include cfgexpand.h.
18219 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18220 (use_register_for_parm_decl): Wrapper for the above to
18221 special-case the result_ptr.
18222 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18223 (split_complex_args): Take assign_parm_data_all argument.
18224 Pass it to rtl_for_parm. Set up rtl and context for split
18226 (assign_parms_augmented_arg_list): Adjust.
18227 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18228 multiple locations. Recognize split complex args.
18229 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18230 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18231 (assign_parm_setup_block): Prefer SSA-assigned location.
18232 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18233 if stack_parm is NULL.
18234 (assign_parm_setup_stack): Prefer SSA-assigned location.
18235 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18236 rtl before testing for pointer bounds. Special-case result_ptr.
18237 (expand_function_start): Maybe reset DECL_RTL of result.
18238 Prefer SSA-assigned location for result and static chain.
18239 Factor out DECL_RESULT and SET_DECL_RTL.
18240 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18241 anonymous SSA names. Use promote_ssa_mode.
18242 (get_temp_reg): Likewise.
18243 (remove_ssa_form): Adjust.
18244 * stor-layout.c (layout_decl): Don't set mem attributes of
18246 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18247 and get its reg_usage for reg invalidation.
18248 (compute_bb_dataflow): Pass it insn.
18249 (emit_notes_in_bb): Likewise.
18251 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18253 * config/i386/i386.c (ix86_va_start): Remove
18254 unneeded !TARGET_64BIT check.
18255 (ix86_gimplify_va_arg): Ditto.
18257 2015-07-24 Tom de Vries <tom@codesourcery.com>
18259 * graphite-sese-to-poly.c (build_poly_scop): Always call
18260 rewrite_commutative_reductions_out_of_ssa.
18262 2015-07-24 Tom de Vries <tom@codesourcery.com>
18264 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
18265 flag_associative_math to FLOAT_TYPE_P. Honour
18266 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
18268 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
18271 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
18272 and "%qD" in warning_at instead of "%q+D" in warning.
18274 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
18276 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
18277 (ix86_function_abi): Cleanup.
18279 2015-07-24 Michael Darling <darlingm@gmail.com>
18282 * acinclude.m4: Reflects renaming of configure.in to configure.ac
18283 * configure: Likewise
18284 * configure.ac: Likewise
18285 * doc/install.texi: Likewise
18286 * doc/tm.texi: Likewise
18287 * doc/tm.texi.in: Likewise
18289 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18291 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
18292 manually swapping values.
18293 * cse.c (fold_rtx): Likewise.
18294 * lra-eliminations.c (form_sum): Likewise.
18296 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
18299 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
18300 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
18301 (*jcc_1, *jcc_2, jump, simple_return_internal)
18302 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
18303 Set length_nobnd attribute instead of length attribute.
18304 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
18305 (length_nobnd): Remove attribute.
18306 (length): Remove length_nobnd processing.
18308 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
18310 * gimplify.c (omp_default_clause): New function. Reorganize flow
18311 for clarity. Broken out of ...
18312 (omp_notice_variable): ... here.
18314 2015-07-24 Gary Funck <gary@intrepid.com>
18316 PR middle-end/66984
18317 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
18318 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
18320 2015-07-24 Tom de Vries <tom@codesourcery.com>
18322 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
18323 exit-first loop transform.
18325 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
18328 * tree-cfg.c (struct replace_decls_d): New struct.
18329 (replace_block_vars_by_duplicates_1): New function.
18330 (replace_block_vars_by_duplicates): Use it to replace the decls
18331 in the value exprs by duplicates.
18333 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18335 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
18336 -shared, -symbolic, -rdynamic.
18338 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18341 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
18342 -dynamic-linker within %{!static %{!shared, and -rdynamic within
18345 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
18348 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
18349 edge summary is available.
18351 2015-07-24 Richard Biener <rguenther@suse.de>
18353 * genmatch.c (struct dt_node): Add statistic fields.
18354 (dt_node::analyze): New method.
18355 (decision_tree::gen_gimple): Call analyze on the root node
18356 and print statistics to stderr.
18357 (decision_tree::gen_generic): Likewise.
18359 2015-07-24 Richard Biener <rguenther@suse.de>
18361 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
18362 against the highest or lowest possible integer ...
18363 * match.pd: ... as patterns here.
18365 2015-07-24 Richard Biener <rguenther@suse.de>
18367 * genmatch.c (struct capture_info): Add same_as field.
18368 (capture_info::capture_info): Initialize same_as.
18369 (capture_info::walk_match): Compute same_as.
18370 (capture_info::walk_result): Compute stuff for the leader.
18371 (capture_info::walk_c_expr): Likewise.
18372 (dt_simplify::gen_1): Only look at leaders when deciding
18373 to force no side-effects or emit side-effects of omitted operands.
18375 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18377 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
18378 reg note to the GPR -> FPR save instructions.
18380 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18382 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
18384 (s390_expand_insv): Don't generate risbg pattern for constant zero
18386 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
18387 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
18390 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18392 * config/s390/s390.c (s390_reorg): Clean up handling of processors
18395 (s390_issue_rate): Likewise.
18396 (s390_sched_reorder): Likewise.
18397 (s390_sched_variable_issue): Likewise.
18398 (s390_loop_unroll_adjust): Likewise.
18399 (s390_option_override): Likewise.
18401 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18403 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
18404 processor capabilities with -march=native.
18405 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
18406 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
18407 (S390_TARGET_BITS_STRING): Macro to simplify specs.
18409 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18411 * config/s390/s390.c (s390_issue_rate): Handle
18412 PROCESSOR_2094_Z9_EC.
18413 (s390_option_override): Likewise.
18414 (s390_adjust_priority): Likewise.
18416 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18418 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
18419 when cross compiling.
18421 2015-07-24 Richard Biener <rguenther@suse.de>
18423 * fold-const.c (maybe_canonicalize_comparison_1): Move
18424 A code CST canonicalization ...
18425 * match.pd: ... to a pattern here.
18427 2015-07-24 Jiong Wang <jiong.wang@arm.com>
18430 2015-07-22 Jiong Wang <jiong.wang@arm.com>
18432 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18433 (HONOR_REG_ALLOC_ORDER): Define.
18435 2015-07-24 Richard Biener <rguenther@suse.de>
18437 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
18438 * fold-const.c (fold_comparison): Move parameter does not
18439 alias &local simplification ...
18440 * match.pd: ... as a pattern here.
18442 2015-07-24 Richard Biener <rguenther@suse.de>
18444 * gimple-fold.c (replace_stmt_with_simplification): Special-case
18445 valueizing call operands.
18446 * gimple-match-head.c (maybe_push_res_to_seq): Take
18447 number of call arguments from ops array.
18448 (do_valueize): New function.
18449 (gimple_simplify): Return true if valueization changed
18450 any operand even if the result didn't simplify further.
18452 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18454 PR middle-end/25530
18455 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
18457 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18459 PR middle-end/25529
18460 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
18462 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18464 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
18467 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18469 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
18472 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
18474 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
18475 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
18477 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
18478 ms_va_list_type_node initialization.
18480 2015-07-23 Jeff Law <law@redhat.com>
18483 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18484 unable to find X NE 0 in the tables, return X as the simplified
18486 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18487 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
18488 to VISISTED_BBS. */
18489 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18490 after removing the control flow statement and unnecessary edges.
18492 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
18494 * tree-pass.h (get_current_pass_name): Removed.
18496 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
18498 PR rtl-optimization/64164
18499 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18500 * tree-ssa-copyrename.c: Removed.
18501 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18502 -ftree-coalesce-vars.
18503 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18504 * common.opt (ftree-copyrename): Ignore.
18505 (ftree-coalesce-inlined-vars): Likewise.
18506 * doc/invoke.texi: Remove the ignored options above.
18507 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18508 * tree-ssa-coalesce.h: ... here.
18509 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18510 headers required by it.
18511 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18512 across variables when flag_tree_coalesce_vars. Check register
18513 use and promoted modes to allow coalescing. Moved to
18514 tree-ssa-coalesce.c.
18515 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18516 with its member functions to tree-ssa-coalesce.c.
18517 (var_map_base_init): Likewise. Renamed to
18518 compute_samebase_partition_bases.
18519 (partition_view_normal): Drop want_bases parameter.
18520 (partition_view_bitmap): Likewise.
18521 * tree-ssa-live.h: Adjust declarations.
18522 * tree-ssa-coalesce.c: Include explow.h.
18523 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18524 default defs at the entry point.
18525 (dump_part_var_map): New.
18526 (compute_optimized_partition_bases): New, called by...
18527 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18528 of compute_samebase_partition_bases. Adjust.
18529 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18530 * cfgexpand.c (leader_merge): New.
18531 (get_rtl_for_parm_ssa_default_def): New.
18532 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18533 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18534 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18535 redundant MEM attr setting.
18536 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18538 (expand_one_stack_var): ... this. New wrapper to check and
18539 skip already expanded SSA partitions.
18540 (record_alignment_for_reg_var): New, factored out of...
18541 (expand_one_var): ... this.
18542 (expand_one_ssa_partition): New.
18543 (adjust_one_expanded_partition_var): New.
18544 (expand_one_register_var): Check and skip already expanded SSA
18546 (expand_used_vars): Don't create DECLs for anonymous SSA
18547 names. Expand all SSA partitions, then adjust all SSA names.
18548 (pass::execute): Replace the loops that set
18549 SA.partition_to_pseudo from partition leaders and cleared
18550 DECL_RTL for multi-location variables, and that which used to
18551 rename vars and set attrs, with one that clears DECL_RTL and
18552 checks that PARMs and RESULTs default_defs match DECL_RTL.
18553 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18554 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18555 * explow.c (promote_ssa_mode): New.
18556 * explow.h (promote_ssa_mode): Declare.
18557 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18558 * function.c: Include cfgexpand.h.
18559 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18560 (use_register_for_parm_decl): Wrapper for the above to
18561 special-case the result_ptr.
18562 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18563 (split_complex_args): Take assign_parm_data_all argument.
18564 Pass it to rtl_for_parm. Set up rtl and context for split
18566 (assign_parms_augmented_arg_list): Adjust.
18567 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18568 multiple locations. Recognize split complex args.
18569 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18570 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18571 (assign_parm_setup_block): Prefer SSA-assigned location.
18572 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18573 if stack_parm is NULL.
18574 (assign_parm_setup_stack): Prefer SSA-assigned location.
18575 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18576 rtl before testing for pointer bounds. Special-case result_ptr.
18577 (expand_function_start): Maybe reset DECL_RTL of result.
18578 Prefer SSA-assigned location for result and static chain.
18579 Factor out DECL_RESULT and SET_DECL_RTL.
18580 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18581 anonymous SSA names. Use promote_ssa_mode.
18582 (get_temp_reg): Likewise.
18583 (remove_ssa_form): Adjust.
18584 * stor-layout.c (layout_decl): Don't set mem attributes of
18586 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18587 and get its reg_usage for reg invalidation.
18588 (compute_bb_dataflow): Pass it insn.
18589 (emit_notes_in_bb): Likewise.
18591 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
18594 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
18596 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
18597 (rs6000_emit_2insn_and): Handle dot forms.
18598 * config/rs6000/rs6000.md (and<mode>3): Adjust.
18599 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
18600 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
18602 2015-07-23 Richard Biener <rguenther@suse.de>
18604 * generic-match-head.c: Include cgraph.h.
18605 * gimple-match-head.c: Likewise.
18606 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
18608 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
18609 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
18612 2015-07-23 Richard Biener <rguenther@suse.de>
18614 * gimple-fold.c (fold_gimple_cond): Do not require folding
18615 results to pass valid_gimple_rhs_p.
18616 * tree-cfg.h (fold_cond_expr_cond): Remove.
18617 * tree-cfg.c (fold_cond_expr_cond): Likewise.
18618 (make_edges): Do not call it.
18619 * tree-inline.c (tree_function_versioning): Likewise.
18621 2015-07-23 Tom de Vries <tom@codesourcery.com>
18623 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
18624 vect_force_simple_reduction.
18625 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
18626 (vect_is_simple_reduction_1): Add and handle
18627 need_wrapping_integral_overflow parameter.
18628 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
18629 need_wrapping_integral_overflow parameter.
18630 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
18631 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
18634 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
18636 PR tree-optimization/66926,66951
18637 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
18638 INNER_LOOP and fix up condition for renaming virtual operands.
18640 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18642 * combine.c (try_combine): Use std::swap instead of manually
18645 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
18647 * config/mips/i6400.md: New file.
18648 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
18649 (mips64r6): Likewise.
18651 * config/mips/mips-tables.opt: Regenerate.
18652 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
18653 (mips_issue_rate): Add support for i6400.
18654 (mips_multipass_dfa_lookahead): Likewise.
18655 * config/mips/mips.h (TUNE_I6400): Define.
18656 * config/mips/mips.md: Include i6400.md.
18657 (processor): Add i6400.
18658 * doc/invoke.texi (-march=@var{arch}): Add i6400.
18660 2015-07-23 Richard Biener <rguenther@suse.de>
18662 PR middle-end/66916
18663 * match.pd: Guard widen and sign-change comparison simplification
18666 2015-07-23 Richard Biener <rguenther@suse.de>
18668 PR tree-optimization/66945
18669 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
18670 ::before_dom_children): Force the propagators idea of
18671 non-executable edges to materialize, not what the folder
18674 2015-07-23 Richard Biener <rguenther@suse.de>
18676 * gimple.h (gimple_cond_make_false): Use 0 != 0.
18677 (gimple_cond_make_true): Use 1 != 0.
18679 2015-07-22 DJ Delorie <dj@redhat.com>
18681 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
18684 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
18685 (ashrhi3): Likewise.
18686 (lshrhi3): Likewise.
18687 (movhi): Take advantage of zero-extend to load small constants.
18688 (movpsi): Likewise.
18689 (and<mode>3): Likewise.
18690 (zero_extendqihi2): Likewise.
18691 (zero_extendqisi2): New.
18692 * config/msp430/constraints.md (N,O): New.
18693 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
18695 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
18698 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
18699 to enum feature_priority and feature_list.
18700 (fold_builtin_cpu): Add F_AES to enum processor_features
18701 and isa_names_table.
18703 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
18706 * config/i386/linux-common.h (MPX_SPEC): Use linker option
18707 for 64bit target only.
18709 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
18711 * config/nvptx/nvptx.c: Expand some comments.
18713 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
18715 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
18716 (cortex_a53_advsimd): ...This.
18718 2015-07-22 Richard Biener <rguenther@suse.de>
18720 * genmatch.c (expr::gen_transform): Clarify error message
18721 and display location.
18723 2015-07-22 Richard Biener <rguenther@suse.de>
18725 * genmatch.c (struct operand): Add location member.
18726 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
18728 (struct simplify): Remove match_location and result_location
18730 (elsehwere): Adjust.
18732 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
18734 * config/mips/m5100.md: New file.
18735 * config/mips/mips-cpus.def (m5100, m5101): Define.
18736 * config/mips/mips-tables.opt: Regenerate.
18737 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
18738 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
18739 -march=m5101 to -mips32r5.
18740 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
18741 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
18743 * config/mips/mips.md: Include m5100.md.
18744 (processor): Add m5100.
18745 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
18747 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
18749 * config/mips/mips-cpus.def (interaptiv): Define.
18750 * config/mips/mips-tables.opt: Regenerate.
18751 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
18753 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
18754 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
18756 2015-07-22 Jiong Wang <jiong.wang@arm.com>
18759 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18760 (HONOR_REG_ALLOC_ORDER): Define.
18762 2015-07-22 Richard Biener <rguenther@suse.de>
18764 PR tree-optimization/66952
18765 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
18766 blocks we end up executing unconditionally reset all SSA
18767 info such as range and alignment.
18768 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
18769 * tree-ssanames.c (reset_flow_sensitive_info): New function.
18771 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
18773 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
18776 2015-07-22 Richard Biener <rguenther@suse.de>
18778 * genmatch.c (parser::parse_result): Properly handle
18779 match with result operands and conditions.
18781 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
18784 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18785 Add qualifier_struct_load_store_lane_index.
18786 (aarch64_types_loadstruct_lane_qualifiers): Use
18787 qualifier_struct_load_store_lane_index for lane index argument for
18789 (aarch64_types_storestruct_lane_qualifiers): Ditto.
18790 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18791 (aarch64_simd_expand_args): Add new argument describing mode of
18792 builtin. Check lane bounds for arguments with
18793 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18794 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
18795 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18796 (aarch64_simd_expand_builtin): Handle arguments with
18797 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
18798 aarch64_simd_expand_args.
18799 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
18800 vst[234]_lane with BUILTIN_VALLDIF.
18801 * config/aarch64/aarch64-simd.md:
18802 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
18803 endianness reversal on lane index.
18804 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
18805 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
18806 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
18807 (vec_store_lanesci_lane<mode>): Ditto.
18808 (vec_store_lanesxi_lane<mode>): Ditto.
18809 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
18810 reversal of lane index.
18811 (aarch64_ld3_lane<mode>): Ditto.
18812 (aarch64_ld4_lane<mode>): Ditto.
18813 (aarch64_st2_lane<mode>): Ditto.
18814 (aarch64_st3_lane<mode>): Ditto.
18815 (aarch64_st4_lane<mode>): Ditto.
18816 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
18817 to qmode. Add new mode parameter. Update uses.
18818 (__LD3_LANE_FUNC): Ditto.
18819 (__LD4_LANE_FUNC): Ditto.
18820 (__ST2_LANE_FUNC): Ditto.
18821 (__ST3_LANE_FUNC): Ditto.
18822 (__ST4_LANE_FUNC): Ditto.
18824 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
18826 * doc/invoke.texi (Language Independent Options): Rename node to
18827 Diagnostic Message Formatting Options.
18829 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
18832 * lra-remat.c (operand_to_remat): Prevent using insns with input
18833 subregs processed separately by IRA.
18835 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
18837 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
18839 (single_imm_use): Check for iterator node.
18840 (num_imm_uses): Likewise.
18841 * tree-ssa-operands.c (has_zero_uses_1): Delete.
18842 (single_imm_use_1): Check for iterator node.
18844 2015-07-21 Mike Frysinger <vapier@gentoo.org>
18845 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18847 * configure.ac: Add check for new options in isl-0.15.
18848 * config.in, configure: Rebuilt.
18849 * graphite-blocking.c: Include <isl/constraint.h>
18850 * graphite-interchange.c, graphite-poly.c: Likewise.
18851 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
18852 * graphite.c: Likewise.
18853 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
18855 * graphite-dependences.c: Include <isl/constraint.h>.
18856 (max_number_of_out_dimensions): Returns isl_stat.
18857 (extend_schedule_1): Likewise
18858 (extend_schedule): Corresponding changes.
18859 * graphite-optimize-isl.c: Include <isl/constraint.h> and
18861 (getSingleMap): Change return type of isl_stat.
18862 (optimize_isl): Conditionally use
18863 isl_options_set_schedule_serialize_sccs.
18864 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
18865 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
18867 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
18870 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
18871 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
18873 2015-07-21 Richard Biener <rguenther@suse.de>
18875 PR tree-optimization/66948
18876 * genmatch.c (capture_info::walk_match): Also recurse to
18877 captures. Properly compute expr state from captures of
18879 * match.pd: Add single-use guards to
18880 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
18882 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
18884 * config/nvptx/mkoffload.c (process): Add static destructor call.
18886 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18888 PR middle-end/66915
18889 * match.pd (A - B -> A + (-B)): Don't allow folding
18890 when type if a fixed-point type.
18892 2015-07-20 DJ Delorie <dj@redhat.com>
18894 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
18895 (iorqi3_real): Likewise for set1.
18897 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
18899 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
18902 2015-07-20 Aditya Kumar <hiraditya@msn.com>
18904 * graphite-isl-ast-to-gimple.c:
18905 Refactor so that each function can access 'region'. This will help
18906 maintain a parameter rename_map within a region.
18908 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18910 * config/rs6000/rs6000.md (*lt0_disi): New.
18912 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18915 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
18916 "available letters" comment.
18917 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
18918 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
18919 and_2rld_operand): Delete.
18920 (and_operand): Adjust.
18921 (rotate_mask_operator): New.
18922 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
18923 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
18924 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
18925 extract_ME): Delete.
18926 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18927 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
18928 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
18929 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18930 rs6000_emit_2insn_and): New.
18931 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
18932 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
18933 includes_rldic_lshift_p, includes_rldicr_lshift_p,
18934 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
18935 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18936 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
18937 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
18938 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18939 rs6000_emit_2insn_and): New.
18940 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
18941 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
18943 <NOT>: Don't fall through to next case.
18944 <AND>: Handle the various rotate-and-mask cases directly.
18945 <IOR>: Always cost as one insn.
18946 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
18947 (and<mode>3): Adjust expander for the new patterns.
18948 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
18949 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
18950 (*and<mode>3_imm_dot_shifted): New.
18951 (*and<mode>3_mask): Delete, rewrite as ...
18952 (and<mode>3_mask): ... New.
18953 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
18954 (andsi3_internal0_nomc): Delete.
18955 (*andsi3_internal6): Delete.
18956 (*and<mode>3_2insn): New.
18957 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18958 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18959 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
18960 *insvdi_internal3): Delete.
18961 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
18962 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
18963 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
18964 *ior<mode>_mask): New.
18965 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
18966 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18967 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18968 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18970 (ashr<mode>3): Delete expander.
18971 (*ashr<mode>3): Rename to ...
18972 (ashr<mode>3): ... This.
18973 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
18974 (*rotldi3_internal4, *rotldi3_internal5 and split,
18975 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
18976 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
18977 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
18978 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
18979 (splitter for loading a mask): Adjust.
18980 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
18982 2015-07-20 Marek Polacek <polacek@redhat.com>
18984 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
18985 output_add_clobbers, output_added_clobbers_hard_reg_p,
18986 gen_rtx_scratch): Remove declarations.
18988 2015-07-20 Marek Polacek <polacek@redhat.com>
18991 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
18993 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18995 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
18996 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
18998 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19000 * combine.c (combine_simplify_rtx): Move simplification step
19001 before various transformations/substitutions.
19003 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
19005 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
19006 (struct int_traits): Likewise.
19008 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19010 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
19011 function to vmsdbgout_function_decl.
19013 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
19016 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
19017 from misaligned positions.
19018 (ix86_expand_pinsr): Reject insertions to misaligned positions.
19020 2015-07-18 Sebastian Pop <s.pop@samsung.com>
19022 PR middle-end/46851
19023 PR middle-end/60340
19024 * Makefile.in: Removed omega.o.
19025 * common.opt: Document flag fcheck-data-deps as deprecated.
19026 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
19027 its associated params: omega-max-vars, omega-max-geqs,
19028 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
19029 omega-max-keys, omega-eliminate-redundant-constraints.
19030 * doc/loop.texi: Remove all the section on Omega.
19031 * graphite-blocking.c: Include missing params.h: it used to be
19032 included through tree-data-ref.h and omega.h.
19033 * graphite-isl-ast-to-gimple.c: Same.
19034 * graphite-optimize-isl.c: Same.
19035 * graphite-sese-to-poly.c: Same.
19036 * graphite.c: Same.
19039 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
19040 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
19041 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
19042 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
19043 * passes.def: Remove pass_check_data_deps.
19044 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
19045 (dump_conflict_function): Same.
19046 (dump_subscript): Same.
19047 (print_direction_vector): Same.
19048 (print_dir_vectors): Same.
19049 (print_lambda_vector): Same.
19050 (print_dist_vectors): Same.
19051 (dump_data_dependence_relation): Same.
19052 (dump_data_dependence_relations): Same.
19053 (dump_dist_dir_vectors): Same.
19055 (init_omega_eq_with_af): Removed.
19056 (omega_extract_distance_vectors): Removed.
19057 (omega_setup_subscript): Removed.
19058 (init_omega_for_ddr_1): Removed.
19059 (init_omega_for_ddr): Removed.
19060 (ddr_consistent_p): Removed.
19061 (compute_affine_dependence): Do not use omega to check data
19063 (compute_data_dependences_for_bb): Removed.
19064 (analyze_all_data_dependences): Removed.
19065 (tree_check_data_deps): Removed.
19066 * tree-data-ref.h: Do not include omega.h.
19067 (compute_data_dependences_for_bb): Removed.
19068 (tree_check_data_deps): Removed.
19069 * tree-ssa-loop.c (pass_check_data_deps): Removed.
19070 (make_pass_check_data_deps): Removed.
19071 * tree-ssa-phiopt.c: Include params.h.
19072 * tree-vect-data-refs.c: Same.
19073 * tree-vect-slp.c: Same.
19075 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
19077 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
19078 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
19079 (mem->fpreg splitters): Ditto.
19080 (general_operand->nonimmediate_operand splitter): Use explicit modes.
19081 Disable DFmode for TARGET_64BIT.
19083 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
19086 * config/i386/i386.c (ix86_expand_prologue): Replicate static
19087 chain on the stack.
19089 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
19091 * config/nvptx/mkoffload.c (process): Constify host data.
19092 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19093 Constify host data.
19094 (generate_host_descr_file): Likewise.
19096 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
19097 Sebastian Pop <s.pop@samsung.com>
19099 PR middle-end/61929
19100 * graphite-dependences.c (add_pdr_constraints): Renamed
19101 pdr->extent to pdr->subscript_sizes.
19102 * graphite-interchange.c (build_linearized_memory_access): Add
19103 back all gcc_assert's that the "isl_int to isl_val conversion"
19104 patch has removed. Refactored.
19105 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
19106 * graphite-poly.c (new_poly_dr): Same.
19107 (free_poly_dr): Same.
19108 * graphite-poly.h (struct poly_dr): Same.
19109 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
19110 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
19111 * graphite-scop-detection.h: Fix space.
19112 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
19113 back all gcc_assert's removed by a previous patch.
19114 (wrap): Remove the_isl_ctx global variable that the same patch has
19116 (build_loop_iteration_domains): Same.
19117 (add_param_constraints): Same.
19118 (pdr_add_data_dimensions): Same. Refactored.
19119 (build_poly_dr): Renamed extent to subscript_sizes.
19121 2015-07-17 Marek Polacek <polacek@redhat.com>
19123 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
19124 * match.pd: ... here.
19126 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
19128 * config/nvptx/mkoffload.c (process): Constify target data.
19129 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19130 Constify target data.
19131 (generate_target_offloadend_file): Likewise.
19133 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
19135 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
19136 to allow renaming of PHI arguments on edges incoming from outer
19137 loop header, add corresponding check before start PHI iterator.
19138 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
19139 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
19140 with true force_vectorize. Set-up dominator for outer loop too.
19141 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
19142 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
19143 was marked with force_vectorize and has restricted cfg.
19144 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
19146 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
19147 do peeling for outer loops.
19149 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
19150 Matthias Klose <doko@ubuntu.com>
19152 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
19153 build-sysroot, sysroot from the `Miscenalleous configure options' to
19154 the `Directories' section and strip trailing `/' from with_sysroot.
19155 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
19156 * configure: Regenerated.
19158 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
19161 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
19162 (TARGET_HARD_DF_REGS): Ditto.
19163 (TARGET_HARD_XF_REGS): Ditto.
19164 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
19165 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
19166 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
19167 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
19168 (*movsf_internal): Add alternatives 16 and 17. Enable
19169 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
19171 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
19173 PR rtl-optimization/66891
19174 * calls.c (expand_call): Wrap precompute_register_parameters with
19175 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
19177 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
19179 * config/nvptx/mkoffload.c (process): Constify mapping variables.
19180 Define target data struct and initialize it.
19182 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
19184 PR rtl-optimization/66626
19185 * ira.h (emit-rtl.h): Include.
19186 (non_spilled_static_chain_regno_p): New.
19187 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
19188 unless it is non spilled static chain pseudo.
19189 (assign_hard_rego): Spill memory profitable allocno unless it is
19190 non spilled static chain pseudo.
19191 (allocno_spill_priority_compare): Put non spilled static chain
19192 pseudo at the end of sorted array.
19193 (improve_allocation): Do nothing if we have static chain and
19195 (allocno__priority_compare_func): Put non spilled static chain
19196 pseudo at the beginning of sorted array.
19197 (move_spill_restore): Ignore non spilled static chain pseudo.
19198 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
19199 to non spilled static chain pseudo.
19200 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
19201 pseudo at the beginning of sorted array.
19202 (spill_for): Spill non spilled static chain pseudo last.
19203 * lra-constraints.c (lra_constraints): Remove static chain pseudo
19204 check for equivalence.
19206 2015-07-16 Martin Liska <mliska@suse.cz>
19209 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
19210 dst_ctx if it does not exist.
19212 2015-07-16 Martin Liska <mliska@suse.cz>
19214 * hash-set.h (remove): New function.
19215 (iterator): New iteration class for hash_set.
19217 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19219 * genattrtab.c (make_canonical): Add a file_location parameter.
19220 Use fatal_at rather than fatal.
19221 (get_attr_value): Likewise. Update call to make_canonical.
19222 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
19223 (make_internal_attr): Update calls accordingly.
19225 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19227 * read-md.h (message_with_line, error_with_line): Delete.
19228 * read-md.c (message_with_line, error_with_line): Delete.
19229 * gensupport.h: Include read-md.h.
19230 (md_rtx_info): New structure.
19231 (read_md_rtx): Use it. Return a bool success value.
19232 * gensupport.c (read_md_rtx): Likewise.
19233 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
19234 (main): Update after interface changes.
19235 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
19236 (main): Update after interface changes.
19237 * genattrtab.c (insn_code_number): Delete.
19238 (optimize_attrs): Add a max_insn_code parameter and use it instead
19239 of insn_code_number.
19240 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
19241 Use *_at rather than *_with_line functions.
19242 (gen_insn): Likewise.
19243 (gen_delay): Likewise.
19244 (gen_insn_reserv): Likewise.
19245 (gen_bypass): Take an md_rtx_info rather than an rtx.
19246 (main): Update after interface changes. Use a local max_insn_code
19247 variable instead of insn_code_number.
19248 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
19249 an rtx. Use fatal_at rather than fatal.
19250 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
19251 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
19252 (gen_absence_set, gen_final_absence_set, gen_automaton)
19253 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
19254 (main): Update after interface changes.
19255 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
19257 (main): Update after interface changes.
19258 * genconditions.c (main): Use new read_md_rtx interface.
19259 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
19260 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
19261 (main): Update after interface changes.
19262 * genemit.c (insn_code_number, insn_index_number): Delete.
19263 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19264 Use fatal_at rather than fatal.
19265 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
19267 (gen_split): Likewise.
19268 (main): Update after interface changes.
19269 * genextract.c (line_no): Delete.
19270 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19271 Update call to walk_rtx.
19272 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
19273 rather than message_with_line.
19274 (walk_rtx): Add an md_rtx_info argument. Update call to
19275 VEC_safe_set_locstr.
19276 (main): Update after interface changes.
19277 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
19278 and lineno. Use error_at rather than separate message_with_line
19279 calls and have_error assignments.
19280 (main): Update after interface changes.
19281 * genmddump.c (main): Use new read_md_rtx interface.
19282 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
19283 (main): Update after interface changes.
19284 * genoutput.c (next_code_number): Delete.
19285 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19286 (gen_peephole, gen_expand, gen_split): Likewise.
19287 (note_constraint): Likewise. Use *_at rather than *_with_line
19289 (main): Update after interface changes.
19290 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
19292 (main): Update after interface changes.
19293 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
19294 than an rtx and lineno.
19295 (process_define_constraint): Likewise.
19296 (process_define_register_constraint): Likewise.
19297 (main): Update after interface changes.
19298 * genrecog.c (next_insn_code, pattern_lineno): Delete.
19299 (validate_pattern): Replace top-level rtx with an md_rtx_info.
19300 Use *_at rather than *_with_line functions.
19301 (match_pattern_2): Likewise.
19302 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
19303 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
19304 Use *_at rather than *_with_line functions.
19305 * gentarget-def.c (add_insn): New function.
19306 (main): Use it. Use new read_md_rtx interface.
19308 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19310 * gensupport.h (compute_test_codes): Take a file_location rather
19311 than a line number.
19312 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
19313 rather than *_with_line functions.
19314 (process_define_predicate): Update call to compute_test_codes.
19315 * genpreds.c (validate_exp): Take a file_location rather than a
19316 line number. Use *_at functions rather than *_with_line functions.
19317 (process_define_predicate): Update call to validate_exp.
19318 (constraint_data): Replace lineno field with a file_location.
19319 (add_constraint): Take a file_location rather than a line number.
19320 Use *_at functions rather than *_with_line functions. Fix error
19321 message for address constraints. Update after changes to
19322 validate_exp, constraint_data and compute_test_codes.
19323 (process_define_constraint): Update accordingly.
19324 (process_define_register_constraint): Likewise.
19326 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19328 * genoutput.c (data): Use a file_location to record the source
19331 (idata, idata_end): Remove initialization.
19332 (constraint_data): Replace lineno with a file_location.
19333 (output_insn_data): Update after changes to data.
19334 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
19335 (scan_operands): Likewise, using *_at rather than *_with_line
19337 (process_template): Likewise.
19338 (validate_insn_alternatives): Likewise.
19339 (validate_insn_operands): Likewise.
19340 (validate_optab_operands): Likewise.
19341 (init_insn_for_nothing): Initialize idata and idata_end.
19342 (note_constraint): Update after changes to constraint_data,
19343 using at rather than with_line functions.
19344 (mdep_constraint_len): Take a file_location rather than a
19345 line number. Use at rather than with_line functions.
19347 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19349 * read-md.h (fatal_at): Declare.
19350 * read-md.c (fatal_at): New function.
19351 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
19352 to record the source position.
19353 (check_attr_test): Take a file_location instead of a line number.
19354 Use fatal_at instead of fatal.
19355 (check_attr_value): Update after above changes, using "at"
19356 rather than "with_line" reporting functions.
19357 (convert_set_attr_alternative): Likewise.
19358 (gen_attr): Likewise.
19359 (check_defs): Likewise. Don't assign to read_md_filename.
19360 (gen_insn): Update initialization after above changes.
19361 (gen_delay): Likewise.
19362 (write_insn_cases): Print the filename for a define_peephole.
19363 (gen_insn_reserv): Take a line number as argument and update
19364 the call to check_attr_test.
19365 (main): Pass a line number to gen_insn_reserv.
19367 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19369 * read-md.h (file_location): New structure.
19370 (directive_handler_t): Take a file_location rather than a line number.
19371 (message_at, error_at): Declare.
19372 (read_skip_construct): Delete.
19373 * read-md.c (message_with_line_1): Replace with...
19374 (message_at_1): ...this new function.
19375 (message_at, error_at): New functions.
19376 (message_with_line, error_with_line): Update to use message_at_1.
19377 (handle_enum): Take a file_location rather than a line number
19378 and use error_at for error reporting.
19379 (handle_include): Likewise.
19380 (read_skip_construct): Likewise. Make static.
19381 (handle_file): Update after above changes. Pass a file_location
19382 rather than a line number to handle_directive.
19383 * gensupport.c (queue_elem): Replace separate filename and lineno
19384 with a file_location.
19385 (queue_pattern): Replace filename and lineno arguments with a
19386 file_location. Update after change to queue_elem.
19387 (process_define_predicate): Replace lineno argument with a
19388 file_location and use error_at for error reporting. Update
19389 after above changes.
19390 (process_rtx): Likewise.
19391 (subst_pattern_match): Likewise.
19392 (get_alternatives_number): Likewise.
19393 (alter_predicate_for_insn): Likewise.
19394 (rtx_handle_directive): Likewise.
19395 (is_predicable): Update after above changes, using error_at rather
19396 than error_with_line.
19397 (has_subst_attribute): Likewise.
19398 (identify_predicable_attribute): Likewise.
19399 (alter_attrs_for_subst_insn): Likewise.
19400 (process_one_cond_exec): Likewise.
19401 (process_substs_on_one_elem): Likewise.
19402 (process_define_subst): Likewise.
19403 (check_define_attr_duplicates): Likewise.
19404 (read_md_rtx): Update after change to queue_elem.
19406 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19408 * genoutput.c (next_index_number): Delete.
19409 (data): Remove index_number.
19410 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
19411 (main): Remove manipulation of next_index_number.
19413 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19415 * genattrtab.c (check_attr_value): Remove handling of null attrs.
19416 (make_canonical): Likewise.
19418 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
19420 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
19421 instead of adjust_address_nv.
19422 (restore_stack_nonlocal): Likewise.
19423 (nonlocal_goto): Likewise.
19425 2015-07-16 Tom de Vries <tom@codesourcery.com>
19427 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
19428 not have a corresponding loop header phi.
19430 2015-07-16 Tom de Vries <tom@codesourcery.com>
19432 * tree-parloops.c (create_loads_for_reductions): Handle case that
19433 reduction is unused.
19435 2015-07-16 Richard Biener <rguenther@suse.de>
19437 PR tree-optimization/66894
19438 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
19439 about deriving NE_EXPR from truncated values.
19441 2015-07-16 Martin Liska <mliska@suse.cz>
19444 (object_allocator): Add new class.
19445 (pool_allocator::initialize): Use the underlying class.
19446 (pool_allocator::allocate): Likewise.
19447 (pool_allocator::remove): Likewise.
19448 (operator new): A new generic allocator.
19449 * asan.c (struct asan_mem_ref): Remove unused members.
19450 (asan_mem_ref_new): Replace new operator with
19451 object_allocator::allocate.
19452 (free_mem_ref_resources): Change deallocation.
19453 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
19454 with object_allocator.
19455 * config/sh/sh.c (add_constant): Replace new operator with
19456 object_allocator::allocate.
19457 (sh_reorg): Change call to a release method.
19458 * cselib.c (struct elt_list): Remove unused members.
19459 (new_elt_list): Replace new operator with
19460 object_allocator::allocate.
19461 (new_elt_loc_list): Likewise.
19462 (new_cselib_val): Likewise.
19463 (unchain_one_elt_list): Change delete operator with remove method.
19464 (unchain_one_elt_loc_list): Likewise.
19465 (unchain_one_value): Likewise.
19466 (cselib_finish): Release newly added static allocators.
19467 * cselib.h (struct cselib_val): Remove unused members.
19468 (struct elt_loc_list): Likewise.
19469 * df-problems.c (df_chain_alloc): Replace pool_allocator with
19471 * df-scan.c (struct df_scan_problem_data): Likewise.
19472 (df_scan_alloc): Likewise.
19473 * df.h (struct dataflow): Likewise.
19474 * dse.c (struct read_info_type): Likewise.
19475 (struct insn_info_type): Likewise.
19476 (struct dse_bb_info_type): Likewise.
19477 (struct group_info): Likewise.
19478 (struct deferred_change): Likewise.
19479 (get_group_info): Likewise.
19480 (delete_dead_store_insn): Likewise.
19481 (free_read_records): Likewise.
19482 (replace_read): Likewise.
19483 (check_mem_read_rtx): Likewise.
19484 (scan_insn): Likewise.
19485 (dse_step1): Likewise.
19486 (dse_step7): Likewise.
19487 * et-forest.c (struct et_occ): Remove unused members.
19488 (et_new_occ): Use allocate instead of new operator.
19489 (et_new_tree): Likewise.
19490 (et_free_tree): Call release method explicitly.
19491 (et_free_tree_force): Likewise.
19492 (et_free_pools): Likewise.
19493 (et_split): Use remove instead of delete operator.
19494 * et-forest.h (struct et_node): Remove unused members.
19495 * ipa-cp.c: Change pool_allocator to object_allocator.
19496 * ipa-inline-analysis.c: Likewise.
19497 * ipa-profile.c: Likewise.
19498 * ipa-prop.c: Likewise.
19499 * ipa-prop.h: Likewise.
19500 * ira-build.c (initiate_cost_vectors): Cast return value.
19501 (ira_allocate_cost_vector): Likewise.
19502 * ira-color.c (struct update_cost_record): Remove unused members.
19503 * lra-int.h (struct lra_live_range): Likewise.
19504 (struct lra_copy): Likewise.
19505 (struct lra_insn_reg): Likewise.
19506 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
19507 * lra.c (new_insn_reg): Replace new operator with allocate method.
19508 (free_insn_regs): Same for operator delete.
19509 (finish_insn_regs): Release new static allocator.
19510 (finish_insn_recog_data): Likewise.
19511 (lra_free_copies): Replace delete operator with remove method.
19512 (lra_create_copy): Replace operator new with allocate method.
19513 (invalidate_insn_data_regno_info): Same for remove method.
19514 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
19515 (free_debug_insn_changes): Replace delete operator with remove method.
19516 (replace_oldest_value_reg): Replace operator new with allocate method.
19517 (pass_cprop_hardreg::execute): Release new static variable.
19518 * sched-deps.c (sched_deps_init): Change pool_allocator to
19520 * sel-sched-ir.c: Likewise.
19521 * sel-sched-ir.h: Likewise.
19522 * stmt.c (expand_case): Likewise.
19523 (expand_sjlj_dispatch_table): Likewise.
19524 * tree-sra.c (struct access): Remove unused members.
19525 (struct assign_link): Likewise.
19526 (sra_deinitialize): Release newly added static pools.
19527 (create_access_1):Replace operator new with allocate method.
19528 (build_accesses_from_assign): Likewise.
19529 (create_artificial_child_access): Likewise.
19530 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
19531 pool_allocator to object_allocator.
19532 * tree-ssa-pre.c: Likewise.
19533 * tree-ssa-reassoc.c: Likewise.
19534 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
19535 * tree-ssa-strlen.c: Likewise.
19536 * tree-ssa-structalias.c: Likewise.
19537 * var-tracking.c (onepart_pool_allocate): New function.
19538 (unshare_variable): Use the newly added function.
19539 (variable_merge_over_cur): Likewise.
19540 (variable_from_dropped): Likewise.
19541 (variable_was_changed): Likewise.
19542 (set_slot_part): Likewise.
19543 (emit_notes_for_differences_1): Likewise.
19544 (vt_finalize): Release newly added static pools.
19546 2015-07-16 Martin Jambor <mjambor@suse.cz>
19548 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
19549 all uses. Fix two typos in its general comment.
19550 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
19552 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
19554 * config/i386/linux-common.h (LINK_MPX): New.
19555 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
19556 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
19557 indicating '-z bndplt' support by linker.
19558 * configure: Regenerate.
19559 * config.in: Regenerate.
19561 2015-07-16 Richard Biener <rguenther@suse.de>
19563 * fold-const.c (fold_widened_comparison): Remove.
19564 (fold_sign_changed_comparison): Likewise.
19565 (fold_comparison): Move widened and sign-changed comparison
19567 * match.pd: ... to patterns here.
19568 * generic-match-head.c: Include target.h.
19569 * gimple-match-head.c: Likewise.
19571 2015-07-16 Richard Biener <rguenther@suse.de>
19573 * tree-ssa-dom.c (dom_valueize): New function.
19574 (record_temporary_equivalences): Also record equivalences
19575 for dominating stmts that have uses of equivalences we are
19578 2015-07-16 Bin Cheng <bin.cheng@arm.com>
19580 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
19581 add_autoinc_candidates.
19582 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
19583 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
19584 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
19585 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
19587 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
19588 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
19589 Remove parameter struct iv*. Call add_autoinc_candidates here.
19590 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
19591 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
19593 (find_iv_candidates): Call new functions.
19595 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
19597 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
19598 uninitialized-variable warning.
19600 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
19603 * config/sh/sh.md (movdi): Split simple reg move to two movsi
19604 when the destination is R0.
19606 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
19609 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
19610 * config/i386/i386.c (ix86_expand_pextr): New function.
19611 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
19612 for non-lowpart subregs.
19613 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
19614 (insv<mode>): Use SWI248 mode iterator.
19615 (insv<mode>_1): Ditto.
19617 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19618 Sebastian Pop <s.pop@samsung.com>
19620 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
19621 iterator to use_stmt.
19623 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19624 Sebastian Pop <s.pop@samsung.com>
19626 * graphite-scop-detection.c (build_scops_1): Discard scops for
19629 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19630 Sebastian Pop <s.pop@samsung.com>
19632 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
19633 case of a return statement in scop.
19635 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19636 Sebastian Pop <s.pop@samsung.com>
19638 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
19639 INTEGER_TYPE parameters.
19640 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
19641 VECTOR_CST in scan_tree_for_params.
19642 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
19644 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
19646 * gimple-pretty-print.h: Don't include pretty-print.h.
19647 * tree-streamer.h: Don't include lto-streamer.h.
19648 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
19649 * gimple-streamer-in.c: Remove redundant includes.
19650 * gimple-streamer-out.c: Likewise.
19651 * ipa-devirt.c: Likewise.
19652 * ipa-icf.c: Likewise.
19653 * ipa-inline-analysis.c: Likewise.
19654 * ipa-polymorphic-call.c: Likewise.
19655 * ipa-profile.c: Likewise.
19656 * ipa-prop.c: Likewise.
19657 * ipa-pure-const.c: Likewise.
19658 * lto-cgraph.c: Likewise.
19659 * lto-streamer-in.c: Likewise.
19660 * lto-streamer-out.c: Likewise.
19661 * lto-streamer.c: Likewise.
19662 * tree-streamer-in.c: Likewise.
19663 * tree-streamer-out.c: Likewise.
19664 * tree-streamer.c: Likewise.
19666 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
19668 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
19670 * opts.c: Remove multiline #include comment.
19672 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
19674 * config/nvptx/mkoffload.c (process): Add C++ protection to
19677 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19680 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
19681 null before IEEE 128-bit floating point support patch.
19683 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19685 * simplify-rtx.c (simplify_ternary_operation): Add simplification
19686 for (!c) != {0,...,0} ? a : b for vector modes.
19688 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
19689 Martin Jambor <mjambor@suse.cz>
19691 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
19692 struct func_body_info* instead of struct ipa_node_params*, expecting
19693 fbi->info to be filled in. Replace throughout. Adjust call to
19694 ipa_load_from_parm_agg.
19695 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
19696 instead of struct ipa_node_params*. Adjust calls to other functions
19697 so that they pass either fbi or fbi->info.
19698 (set_switch_stmt_execution_predicate): Likewise.
19699 (will_be_nonconstant_predicate): Likewise.
19700 (compute_bb_predicates): Likewise.
19701 (estimate_function_body_sizes): Move asserts earlier. Fill in
19702 struct func_body_info, replace parms_info with fbi.info. Adjust
19703 calls to functions that now accept struct func_body_info.
19704 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
19705 (struct func_body_info): Likewise.
19706 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
19707 remove static. Adjust callers.
19708 (ipa_load_from_parm_agg): Remove.
19709 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
19710 (func_body_info): Likewise.
19711 (ipa_load_from_parm_agg): Adjust prototype.
19713 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19715 * gensupport.c (rtx_handle_directive): Adjust.
19716 * read-rtl.c (apply_iterators): Take vector to add rtxs to
19717 instead of expr list rtx.
19718 (add_define_attr_for_define_subst): Likewise.
19719 (add_define_subst_attr): Likewise.
19720 (read_subst_mapping): Likewise.
19721 (read_rtx): Likewise.
19722 * rtl.h (read_rtx): Adjust.
19724 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19726 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
19728 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19731 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
19732 (*tls_local_dynamic_base_64_<mode>): Ditto.
19733 (*tls_local_dynamic_base_64_largepic): Ditto.
19734 (tls_global_dynamic_64_<mode>): Update expander pattern.
19735 (tls_local_dynamic_base_64_<mode>): Ditto.
19737 2015-07-15 Richard Biener <rguenther@suse.de>
19739 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
19740 and bool_var == 1 -> bool_var simplifications ...
19741 * match.pd: ... to patterns here. Factor out negate_expr_p
19742 cases from the A - B -> A + (-B) patterns as negate_expr_p
19743 predicate and add a -(A + B) -> (-B) - A pattern.
19745 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
19747 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
19749 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
19750 Robert Suchanek <robert.suchanek@imgtec.com>
19752 * config/mips/mips.c (mips_int_mask): New enum.
19753 (mips_shadow_set): Likewise.
19754 (int_mask): New variable.
19755 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
19756 (machine_function): Add int_mask and use_shadow_register_set.
19757 (mips_attribute_table): Add attribute handlers for interrupt and
19758 use_shadow_register_set.
19759 (mips_interrupt_mask): New static function.
19760 (mips_handle_interrupt_attr): Likewise.
19761 (mips_handle_use_shadow_register_set_attr): Likewise.
19762 (mips_use_shadow_register_set): Change return type to enum
19763 mips_shadow_set. Add argument handling for use_shadow_register_set
19765 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
19766 compare with mips_shadow_set enum.
19767 (mips_compute_frame_info): Add interrupt mask and
19768 use_shadow_register_set to per-function information structure.
19769 Add a stack slot for EPC unconditionally.
19770 (mips_expand_prologue): Compare use_shadow_register_set value
19771 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
19772 masked interrupt register but in EIC mode use K0 and save Cause in K0.
19773 EPC saved and restored unconditionally. Use PMODE_INSN macro when
19774 copying the stack pointer from the shadow register set.
19775 * config/mips/mips.h (SR_IM0): New define.
19776 * config/mips/mips.md (mips_rdpgpr): Rename to...
19777 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
19778 * doc/extend.texi (Declaring Attributes of Functions): Document
19779 optional arguments for interrupt and use_shadow_register_set
19782 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
19784 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
19785 interrupt attribute.
19786 (mips_expand_prologue): Disable the floating point unit in an ISR.
19787 * config/mips/mips.h (SR_COP1): New define.
19789 2015-07-15 Richard Biener <rguenther@suse.de>
19791 * genmatch.c (parser::peek, parser::peek_ident): Add argument
19792 to tell how many tokens to peek ahead (default 1).
19793 (parser::eat_token, parser::eat_ident): Return token consumed.
19794 (parser::parse_result): Parse new switch statement.
19795 * match.pd: Use case statements where appropriate.
19797 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19799 PR rtl-optimization/58066
19800 * calls.c (expand_call): Precompute register parameters before stack
19801 alignment is performed.
19803 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19805 PR rtl-optimization/66838
19806 * postreload.c (reload_cse_move2add): Also process
19807 CALL_INSN_FUNCTION_USAGE when resetting information of
19808 call-clobbered registers.
19810 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19811 Cesar Philippidis <cesar@codesourcery.com>
19812 Chung-Lin Tang <cltang@codesourcery.com>
19814 * config/nios2/constraints.md (U, v): New constraints.
19815 * config/nios2/predicates.md (rdprs_dcache_operand): New.
19816 (ldstex_memory_operand): New.
19817 * config/nios2/sync.md: New file.
19818 * config/nios2/nios2.md (unspecv): Add new builtin function
19820 (rdprs, flushd, flushda, wrpie, eni): New patterns.
19821 (top-level): Include sync.md.
19822 * config/nios2/nios2.c (N2_FTYPES): Add function types for
19824 (N2_BUILTINS): Add arch field setting, add new builtins.
19825 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
19827 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
19828 Also handle ldex/stex/ldsex/stsex builtins.
19829 (nios2_expand_rdprs_builtin): New function.
19830 (nios2_expand_cache_builtin): New function.
19831 (nios2_expand_wrpie_builtin): New function.
19832 (nios2_expand_eni_builtin): New function.
19833 (nios2_expand_builtin): Add arch field handling and new builtin
19835 * doc/extend.texi (Altera Nios II Built-in Functions): Document
19837 * doc/md.texi (Machine Constraints): Document U and v constraints.
19839 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19840 Cesar Philippidis <cesar@codesourcery.com>
19841 Chung-Lin Tang <cltang@codesourcery.com>
19843 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
19844 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
19845 callee_save_reg_size and uses_anonymous_args fields.
19846 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
19847 (nios2_create_cfa_notes): New function.
19848 (nios2_adjust_stack): New function for adjusting stack.
19849 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
19850 Use nios2_adjust_stack.
19851 (nios2_expand_epilogue): Likewise.
19852 (nios2_expand_return): New function.
19853 (nios2_can_use_return_insn): Update for CDX pop.n usage.
19854 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
19855 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
19856 * config/nios2/nios2.md (return): Use nios2_expand_return.
19858 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19859 Cesar Philippidis <cesar@codesourcery.com>
19860 Chung-Lin Tang <cltang@codesourcery.com>
19862 * config/nios2/predicates.md (pop_operation): New.
19863 (ldwm_operation, stwm_operation): New.
19864 (nios2_hard_register_operand): New.
19865 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
19866 (ldstwm_operation_p): Declare.
19867 (gen_ldstwm_peep): Declare.
19868 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
19869 (base_reg_adjustment_p): New.
19870 (pop_operation_p): New.
19871 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
19872 (nios2_ldstwm_regset_p): New.
19873 (ldstwm_operation_p): New.
19875 (nios2_ldst_parallel): New.
19876 (struct ldswm_operand): Declare.
19877 (compare_ldstwm_operands): New.
19878 (can_use_cdx_ldstw): New.
19879 (gen_ldstwm_peep): New.
19880 * config/nios2/nios2-ldstwm.sml: New.
19881 * config/nios2/nios2.md: Include ldstwm.md.
19882 * config/nios2/ldstwm.md: Generated.
19884 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19885 Cesar Philippidis <cesar@codesourcery.com>
19886 Chung-Lin Tang <cltang@codesourcery.com>
19888 * config/nios2/nios2.h (LABEL_ALIGN): Define.
19889 (REG_ALLOC_ORDER): Define.
19890 (ADJUST_REG_ALLOC_ORDER): Define.
19891 (HONOR_REG_ALLOC_ORDER): Define.
19892 (CDX_REG_P): Define.
19893 (ANDCLEAR_INT): Define.
19894 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
19895 (nios2_label_align): Declare.
19896 (nios2_cdx_narrow_form_p): Declare.
19897 (nios2_adjust_reg_alloc_order): Declare.
19898 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
19900 (nios2_large_unspec_reloc_p): New function, split from...
19901 (nios2_legitimate_pic_operand_p): ...here.
19902 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
19903 (nios2_print_operand_punct_valid_p): New.
19904 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
19905 (split_mem_address): New.
19906 (split_alu_insn): New.
19908 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
19909 (enum nios2_add_insn_kind): New.
19910 (nios2_add_insn_names, nios2_add_insn_narrow): New.
19911 (nios2_add_insn_classify): New.
19912 (nios2_add_insn_asm): New.
19913 (nios2_cdx_narrow_form_p): New.
19914 (label_align, min_labelno, max_labelno): New.
19915 (nios2_reorg): New.
19916 (nios2_label_align): New.
19917 (nios2_adjust_reg_alloc_order): New.
19918 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19919 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19920 * config/nios2/constraints.md (P): New constraint.
19921 * config/nios2/predicates.md (const_and_operand): New.
19922 (and_operand): New.
19923 (stack_memory_operand): New.
19924 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
19925 (length): Update to use nios2_cdx_narrow_form_p().
19926 (type): Add new insn type values.
19927 (control, alu, st, ld, shift): Update insn reservations with
19928 new insn type values.
19929 (*high, *lo_sum): Define new insn patterns for constant generation.
19930 (movqi_internal, movhi_internal, movsi_internal): Reduce
19931 alternatives, update asm template to handle CDX variants, update
19933 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
19934 template, update type attributes.
19935 (extendhisi2, extendqi<mode>2): Likewise.
19936 (addsi3): Change to use function for asm string.
19937 (subsi3): Add CDX notation to asm template, update type attributes.
19938 (negsi3, one_cmplsi3): Likewise.
19939 (andsi3): New pattern, specialized from logical patterns.
19940 (<code>si3): Remove and case, combine alternatives, update asm
19942 (<shift_op>si3): Add CDX notation, update type attributes.
19943 (rotrsi3): Update type attribute.
19944 (*merge, extzv, insv): New insn patterns.
19945 (return): Change to define_expand.
19946 (simple_return): Add CDX notation, update type attributes.
19947 (indirect_jump): Add CDX notation.
19948 (jump): Update asm cases, update length attribute expression.
19949 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
19950 (nios2_cbranch): Update asm cases and length attribute expression
19951 to handle CDX variants.
19952 (nios2_cmp<code>): Update asm template.
19953 (nop): Add CDX notation, update type attributes.
19954 (trap): Add CDX notation.
19955 (ctrapsi4): Update asm cases and length attribute expression to
19956 handle CDX variant.
19957 * doc/md.texi (Machine Constraints): Document P constraint.
19959 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19960 Cesar Philippidis <cesar@codesourcery.com>
19961 Chung-Lin Tang <cltang@codesourcery.com>
19963 * config/nios2/nios2.h (SMALL_INT12): New macro.
19964 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
19965 (nios2_valid_addr_expr_p): Use it.
19966 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
19967 with implicit "io" instructions on R2.
19968 * config/nios2/constraints.md (w): New constraint.
19969 * config/nios2/predicates.md (ldstio_memory_operand): New.
19970 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
19971 operand predicate and constraint.
19972 (ld<bh>io_signed, st<bhw>io>): Likewise.
19973 * doc/md.texi (Machine Constraints): Document w constraint.
19975 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19976 Cesar Philippidis <cesar@codesourcery.com>
19977 Chung-Lin Tang <cltang@codesourcery.com>
19979 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
19980 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
19981 Nios II architecture level.
19982 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
19983 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
19984 (OPTION_DEFAULT_SPECS): Define.
19985 (ASM_SPEC): Add -march= spec strings.
19986 * config/nios2/nios2.c (nios2_option_override): Check for
19987 conflicts involving new options.
19988 * config.gcc (nios2*-*-*): Support --with-arch=.
19989 * doc/invoke.texi (Option Summary, Nios II Options): Document
19990 -march=, -mbmx, and -mcdx.
19992 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
19994 PR rtl-optimization/66626
19995 * lra-constraints.c (lra_constraints): Prevent equivalence
19996 substitution for static chain pseudo in functions with nonlocal
19999 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20001 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
20002 (nios2_emit_stack_limit_check): Add size parameter. Handle
20003 -fstack-limit-symbol as well as -fstack-limit-register.
20004 (nios2_expand_prologue): Emit only a single stack limit check,
20005 even if multiple stack adjustments are required.
20006 (nios2_option_override): Diagnose unsupported combination of -fpic
20007 and -stack-limit-symbol.
20009 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
20011 * Makefile.in (top_srcdir): New.
20012 * configure.ac: Use AM_ZLIB.
20013 * configure: Regeneated.
20015 2015-07-14 Matthias Klose <doko@ubuntu.com>
20018 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
20020 2015-07-14 Richard Biener <rguenther@suse.de>
20022 PR tree-optimization/66863
20023 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
20024 what we record for conversion use stmt lhs inequalities.
20026 2015-07-14 Richard Biener <rguenther@suse.de>
20028 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
20029 (decision_tree::gen_gimple): Likewise.
20031 2015-07-14 Tom de Vries <tom@codesourcery.com>
20033 * gcc.c (greater_than_spec_func): Declare forward.
20034 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
20035 -ftree-parallelize-loops={0,1}.
20036 (static_spec_functions): Add greater_than_spec_func function with name
20038 (greater_than_spec_func): New function.
20040 2015-07-14 Richard Biener <rguenther@suse.de>
20042 * tree-ssa-dom.c (record_temporary_equivalences): Merge
20043 wideing type conversion case from record_equivalences_from_incoming_edge
20044 and use record_equality to record equivalences.
20045 (record_equivalences_from_incoming_edge): Call
20046 record_temporary_equivalences.
20048 2015-07-14 Richard Biener <rguenther@suse.de>
20050 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
20051 (struct if_expr): New.
20052 (struct with_expr): Likewise.
20053 (is_a_helper): Add helpers for if_expr and with_expr.
20054 (struct simplify): Add simplify_kind enum and member. Remove
20056 (simplify::simplify): Adjust.
20057 (lower_commutative): Adjust.
20058 (lower_opt_convert): Likewise.
20059 (lower_cond): Likewise.
20060 (replace_id): Handle with_expr and if_expr.
20061 (lower_for): Adjust.
20062 (dt_simplify::gen_1): New recursive worker, split out from ...
20063 (dt_simplify::gen): ... here. Deal with if and with expansion
20065 (capture_info::capture_info): Take context argument
20066 (capture_info::walk_result): Only analyze specific result.
20067 (parser::parse_result): New function.
20068 (parser::parse_simplify): Adjust to parse ifs with then end
20070 (parser::parse_if): Simplify.
20071 (parser::parse_pattern): Pass down simplify kind.
20072 * match.pd: Convert if structure to new syntax.
20074 2015-07-13 Marek Polacek <polacek@redhat.com>
20076 * rtl.c (rtx_equal_p_cb): Fix typo.
20078 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
20080 * omega.h: Don't include config.h, don't include params.h again if
20081 omega.h has already been included.
20082 * graphite-poly.h: Include sese.h.
20083 * graphite.c: Don't include sese.h, remove needless includes and
20084 minimize includes outside #ifdef HAVE_isl block.
20085 * graphite-blocking.c: Don't include sese.h, remove needless includes,
20086 and wrap entire file in #ifdef HAVE_isl
20087 * graphite-dependences.c: Likewise.
20088 * graphite-interchange.c: Likewise.
20089 * graphite-isl-ast-to-gimple.c: Likewise.
20090 * graphite-optimize-isl.c: Likewise.
20091 * graphite-poly.c: Likewise.
20092 * graphite-scop-detection.c: Likewise.
20093 * graphite-sese-to-poly.c: Likewise.
20095 2015-07-13 Tom de Vries <tom@codesourcery.com>
20097 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
20099 2015-07-13 Renlin Li <renlin.li@arm.com>
20102 * simplify-rtx.c (simplify_const_relational_operation): Add
20103 side_effects_p checks.
20105 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
20107 * bitmap.h: Fix double word typos.
20108 * builtins.c: Same.
20110 * cfgloopmanip.c: Same.
20113 * cgraphclones.c: Same.
20115 * config/aarch64/aarch64-protos.h: Same.
20116 * config/aarch64/aarch64.c: Same.
20117 * config/aarch64/aarch64.md: Same.
20118 * config/arm/arm.md: Same.
20119 * config/arm/arm1020e.md: Same.
20120 * config/arm/arm1026ejs.md: Same.
20121 * config/arm/arm926ejs.md: Same.
20122 * config/arm/fa526.md: Same.
20123 * config/arm/fa606te.md: Same.
20124 * config/arm/fa626te.md: Same.
20125 * config/arm/fa726te.md: Same.
20126 * config/arm/fmp626.md: Same.
20127 * config/darwin.c: Same.
20128 * config/epiphany/epiphany.c: Same.
20129 * config/frv/frv.c: Same.
20130 * config/ft32/ft32.c: Same.
20131 * config/gnu-user.h: Same.
20132 * config/h8300/constraints.md: Same.
20133 * config/i386/i386.c: Same.
20134 * config/i386/i386.md: Same.
20135 * config/iq2000/iq2000.md: Same.
20136 * config/mips/mips.c: Same.
20137 * config/mmix/mmix.md: Same.
20138 * config/moxie/moxie.c: Same.
20139 * config/nds32/nds32.md: Same.
20140 * config/pa/pa.h: Same.
20141 * config/rs6000/aix.h: Same.
20142 * config/rs6000/rs6000.h: Same.
20143 * config/sh/sh.c: Same.
20144 * config/tilegx/tilegx.md: Same.
20145 * config/tilepro/gen-mul-tables.cc: Same.
20148 * doc/invoke.texi: Same.
20150 * dwarf2out.c: Same.
20153 * genmatch.c: Same.
20154 * gimplify.c: Same.
20155 * hash-table.h: Same.
20156 * internal-fn.c: Same.
20158 * ipa-devirt.c: Same.
20161 * ipa-profile.c: Same.
20162 * ipa-prop.c: Same.
20163 * ipa-prop.h: Same.
20166 * reg-stack.c: Same.
20167 * regcprop.c: Same.
20172 * tree-inline.c: Same.
20173 * tree-sra.c: Same.
20174 * tree-ssa-dom.c: Same.
20175 * tree-ssa-loop-ivopts.c: Same.
20176 * tree-ssa-structalias.c: Same.
20177 * tree-ssa-tail-merge.c: Same.
20178 * tree-ssa-ter.c: Same.
20179 * tree-ssa-threadupdate.c: Same.
20180 * tree-ssa-uninit.c: Same.
20181 * tree-ssanames.c: Same.
20182 * tree-vect-loop-manip.c: Same.
20183 * tree-vrp.c: Same.
20185 * valtrack.c: Same.
20188 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20190 PR middle-end/66726
20191 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
20192 tree_ssa_phiopt_worker): Call it.
20194 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20196 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
20197 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
20200 2015-07-11 Marek Polacek <polacek@redhat.com>
20202 PR middle-end/66353
20203 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
20204 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
20205 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
20206 rather than bb_has_abnormal_call_pred.
20207 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
20208 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
20209 rather than bb_has_abnormal_call_pred.
20211 2015-07-10 Anatoly Sokolov <aesok@post.ru>
20213 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
20214 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
20215 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20216 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
20217 v850_legitimate_address_p): New functions.
20218 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20220 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
20223 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
20224 indirect sibcall with register arguments if register available
20225 for argument passing.
20226 (init_cumulative_args): Set cfun->machine->arg_reg_available
20227 to (cum->nregs > 0) or to true if function has a variable
20229 (function_arg_advance_32): Set cfun->machine->arg_reg_available
20230 to false if cum->nregs <= 0.
20231 * config/i386/i386.h (machine_function): Add arg_reg_available.
20233 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
20235 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
20236 and gen_higpart instead of gen_rtx_SUBREG.
20237 * config/i386/i386.md
20238 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
20239 (read-modify peephole2): Use gen_lowpart instead of
20240 gen_rtx_SUBREG for operand 5.
20242 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
20244 * config/tilepro/gen-mul-tables.cc (main): Change include list for
20246 * config/tilepro/mul-tables.c: Regenerate.
20247 * config/tilegx/mul-tables.c: Regenerate.
20249 2015-07-10 Richard Biener <rguenther@suse.de>
20251 * fold-const.c (distribute_bit_expr): Remove.
20252 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
20253 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
20254 to A & (B | C) and simplifying A << C1 << C2 to ...
20255 * match.pd: ... patterns here.
20257 2015-07-10 Jiong Wang <jiong.wang@arm.com>
20259 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
20260 Mark mem as READONLY and NOTRAP for PIC symbol.
20262 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
20264 * gimple-predict.h: New file.
20265 (gimple_predict_predictor, gimple_predict_set_predictor,
20266 gimple_predict_outcome, gimple_predict_set_outcome,
20267 gimple_build_predict): Relocate here.
20268 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
20269 gimple_predict_outcome, gimple_predict_set_outcome): Move to
20271 * gimple.c (gimple_build_predict): Move to gimple-predict.h
20272 * basic-block.h: Don't include cfghooks.h.
20273 * backend.h: Don't include predict.h.
20274 * cfghooks.h: Include predict.h.
20275 * gimple-pretty-print.c: Include gimple-predict.h.
20276 * gimplify.c: Likwise.
20277 * predict.c: Adjust includes.
20278 * tree-inline.c: Likewise.
20279 * asan.c: Likewise.
20280 * auto-inc-dec.c: Likewise.
20281 * auto-profile.c: Likewise.
20282 * bb-reorder.c: Likewise.
20283 * builtins.c: Likewise.
20284 * caller-save.c: Likewise.
20285 * calls.c: Likewise.
20286 * cfganal.c: Likewise.
20287 * cfgbuild.c: Likewise.
20289 * cfgcleanup.c: Likewise.
20290 * cfgexpand.c: Likewise.
20291 * cfghooks.c: Likewise.
20292 * cfgloopanal.c: Likewise.
20293 * cfgloop.c: Likewise.
20294 * cfgloopmanip.c: Likewise.
20295 * cfgrtl.c: Likewise.
20296 * cgraph.c: Likewise.
20297 * cgraphunit.c: Likewise.
20298 * combine.c: Likewise.
20299 * cprop.c: Likewise.
20302 * dojump.c: Likewise.
20304 * except.c: Likewise.
20305 * expmed.c: Likewise.
20306 * expr.c: Likewise.
20307 * final.c: Likewise.
20308 * fold-const.c: Likewise.
20309 * function.c: Likewise.
20310 * fwprop.c: Likewise.
20311 * gcc-plugin.h: Likewise.
20312 * gcse.c: Likewise.
20313 * genattrtab.c: Likewise.
20314 * genemit.c: Likewise.
20315 * gengtype.c: Likewise.
20316 * genopinit.c: Likewise.
20317 * genoutput.c: Likewise.
20318 * genpreds.c: Likewise.
20319 * genrecog.c: Likewise.
20320 * gimple-fold.c: Likewise.
20321 * gimple-iterator.c: Likewise.
20322 * gimple-ssa-isolate-paths.c: Likewise.
20323 * gimple-ssa-strength-reduction.c: Likewise.
20324 * graph.c: Likewise.
20325 * graphite-blocking.c: Likewise.
20326 * graphite.c: Likewise.
20327 * graphite-dependences.c: Likewise.
20328 * graphite-interchange.c: Likewise.
20329 * graphite-isl-ast-to-gimple.c: Likewise.
20330 * graphite-optimize-isl.c: Likewise.
20331 * graphite-poly.c: Likewise.
20332 * graphite-scop-detection.c: Likewise.
20333 * graphite-sese-to-poly.c: Likewise.
20334 * haifa-sched.c: Likewise.
20335 * ifcvt.c: Likewise.
20336 * internal-fn.c: Likewise.
20337 * ipa-cp.c: Likewise.
20338 * ipa-profile.c: Likewise.
20339 * ipa-split.c: Likewise.
20340 * ipa-utils.c: Likewise.
20341 * ira-build.c: Likewise.
20342 * ira-color.c: Likewise.
20343 * ira-conflicts.c: Likewise.
20344 * ira-costs.c: Likewise.
20345 * ira-emit.c: Likewise.
20346 * ira-lives.c: Likewise.
20347 * jump.c: Likewise.
20348 * loop-doloop.c: Likewise.
20349 * loop-init.c: Likewise.
20350 * loop-invariant.c: Likewise.
20351 * loop-unroll.c: Likewise.
20352 * lower-subreg.c: Likewise.
20353 * lra-assigns.c: Likewise.
20355 * lra-coalesce.c: Likewise.
20356 * lra-constraints.c: Likewise.
20357 * lra-lives.c: Likewise.
20358 * lto-cgraph.c: Likewise.
20359 * lto-streamer-in.c: Likewise.
20360 * mode-switching.c: Likewise.
20361 * modulo-sched.c: Likewise.
20362 * omp-low.c: Likewise.
20363 * optabs.c: Likewise.
20364 * passes.c: Likewise.
20365 * postreload.c: Likewise.
20366 * postreload-gcse.c: Likewise.
20367 * profile.c: Likewise.
20368 * recog.c: Likewise.
20369 * regstat.c: Likewise.
20370 * reload1.c: Likewise.
20371 * reorg.c: Likewise.
20372 * rtlanal.c: Likewise.
20373 * sched-ebb.c: Likewise.
20374 * sel-sched-ir.c: Likewise.
20375 * sese.c: Likewise.
20376 * shrink-wrap.c: Likewise.
20377 * simplify-rtx.c: Likewise.
20378 * stmt.c: Likewise.
20379 * store-motion.c: Likewise.
20380 * tracer.c: Likewise.
20381 * trans-mem.c: Likewise.
20382 * tree-call-cdce.c: Likewise.
20383 * tree-cfg.c: Likewise.
20384 * tree-cfgcleanup.c: Likewise.
20385 * tree-chkp.c: Likewise.
20386 * tree-complex.c: Likewise.
20387 * tree-eh.c: Likewise.
20388 * tree-if-conv.c: Likewise.
20389 * tree-loop-distribution.c: Likewise.
20390 * tree-outof-ssa.c: Likewise.
20391 * tree-parloops.c: Likewise.
20392 * tree-predcom.c: Likewise.
20393 * tree-pretty-print.c: Likewise.
20394 * tree-profile.c: Likewise.
20395 * tree-sra.c: Likewise.
20396 * tree-ssa.c: Likewise.
20397 * tree-ssa-coalesce.c: Likewise.
20398 * tree-ssa-dce.c: Likewise.
20399 * tree-ssa-dom.c: Likewise.
20400 * tree-ssa-forwprop.c: Likewise.
20401 * tree-ssa-ifcombine.c: Likewise.
20402 * tree-ssa-loop-ch.c: Likewise.
20403 * tree-ssa-loop-im.c: Likewise.
20404 * tree-ssa-loop-ivcanon.c: Likewise.
20405 * tree-ssa-loop-ivopts.c: Likewise.
20406 * tree-ssa-loop-manip.c: Likewise.
20407 * tree-ssa-loop-prefetch.c: Likewise.
20408 * tree-ssa-loop-unswitch.c: Likewise.
20409 * tree-ssa-math-opts.c: Likewise.
20410 * tree-ssa-phiopt.c: Likewise.
20411 * tree-ssa-pre.c: Likewise.
20412 * tree-ssa-reassoc.c: Likewise.
20413 * tree-ssa-sink.c: Likewise.
20414 * tree-ssa-tail-merge.c: Likewise.
20415 * tree-ssa-threadedge.c: Likewise.
20416 * tree-ssa-threadupdate.c: Likewise.
20417 * tree-switch-conversion.c: Likewise.
20418 * tree-tailcall.c: Likewise.
20419 * tree-vect-data-refs.c: Likewise.
20420 * tree-vect-loop.c: Likewise.
20421 * tree-vect-loop-manip.c: Likewise.
20422 * tree-vectorizer.c: Likewise.
20423 * tree-vrp.c: Likewise.
20424 * ubsan.c: Likewise.
20425 * value-prof.c: Likewise.
20426 * varasm.c: Likewise.
20427 * var-tracking.c: Likewise.
20428 * config/aarch64/aarch64-builtins.c: Likewise.
20429 * config/aarch64/aarch64.c: Likewise.
20430 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20431 * config/alpha/alpha.c: Likewise.
20432 * config/arc/arc.c: Likewise.
20433 * config/arm/arm.c: Likewise.
20434 * config/avr/avr.c: Likewise.
20435 * config/bfin/bfin.c: Likewise.
20436 * config/c6x/c6x.c: Likewise.
20437 * config/cr16/cr16.c: Likewise.
20438 * config/cris/cris.c: Likewise.
20439 * config/darwin.c: Likewise.
20440 * config/darwin-c.c: Likewise.
20441 * config/epiphany/epiphany.c: Likewise.
20442 * config/epiphany/mode-switch-use.c: Likewise.
20443 * config/epiphany/resolve-sw-modes.c: Likewise.
20444 * config/fr30/fr30.c: Likewise.
20445 * config/frv/frv.c: Likewise.
20446 * config/ft32/ft32.c: Likewise.
20447 * config/h8300/h8300.c: Likewise.
20448 * config/i386/i386.c: Likewise.
20449 * config/i386/winnt.c: Likewise.
20450 * config/ia64/ia64.c: Likewise.
20451 * config/iq2000/iq2000.c: Likewise.
20452 * config/lm32/lm32.c: Likewise.
20453 * config/m32c/m32c.c: Likewise.
20454 * config/m32r/m32r.c: Likewise.
20455 * config/m68k/m68k.c: Likewise.
20456 * config/mcore/mcore.c: Likewise.
20457 * config/mep/mep.c: Likewise.
20458 * config/microblaze/microblaze.c: Likewise.
20459 * config/mips/mips.c: Likewise.
20460 * config/mmix/mmix.c: Likewise.
20461 * config/mn10300/mn10300.c: Likewise.
20462 * config/moxie/moxie.c: Likewise.
20463 * config/msp430/msp430.c: Likewise.
20464 * config/nds32/nds32.c: Likewise.
20465 * config/nds32/nds32-cost.c: Likewise.
20466 * config/nds32/nds32-fp-as-gp.c: Likewise.
20467 * config/nds32/nds32-intrinsic.c: Likewise.
20468 * config/nds32/nds32-isr.c: Likewise.
20469 * config/nds32/nds32-md-auxiliary.c: Likewise.
20470 * config/nds32/nds32-memory-manipulation.c: Likewise.
20471 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20472 * config/nds32/nds32-predicates.c: Likewise.
20473 * config/nios2/nios2.c: Likewise.
20474 * config/nvptx/nvptx.c: Likewise.
20475 * config/pa/pa.c: Likewise.
20476 * config/pdp11/pdp11.c: Likewise.
20477 * config/rl78/rl78.c: Likewise.
20478 * config/rs6000/rs6000.c: Likewise.
20479 * config/rx/rx.c: Likewise.
20480 * config/s390/s390.c: Likewise.
20481 * config/sh/sh.c: Likewise.
20482 * config/sh/sh-mem.cc: Likewise.
20483 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20484 * config/sh/sh_treg_combine.cc: Likewise.
20485 * config/sparc/sparc.c: Likewise.
20486 * config/spu/spu.c: Likewise.
20487 * config/stormy16/stormy16.c: Likewise.
20488 * config/tilegx/tilegx.c: Likewise.
20489 * config/tilepro/tilepro.c: Likewise.
20490 * config/v850/v850.c: Likewise.
20491 * config/vax/vax.c: Likewise.
20492 * config/visium/visium.c: Likewise.
20493 * config/xtensa/xtensa.c: Likewise.
20495 2015-07-10 Richard Biener <rguenther@suse.de>
20497 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
20498 (decision_tree::gen_gimple): Likewise.
20499 (decision_tree::gen_generic): Likewise.
20501 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
20504 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
20505 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
20507 2015-07-10 Jakub Jelinek <jakub@redhat.com>
20509 PR middle-end/66820
20510 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
20511 or ORT_TASK contexts.
20512 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
20515 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20517 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
20520 2015-07-10 Tom de Vries <tom@codesourcery.com>
20522 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
20523 insert nit + 1 bound.
20525 2015-07-10 Richard Biener <rguenther@suse.de>
20527 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
20528 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
20529 (if_convertible_loop_p_1): For this always compute bb predicates.
20530 (if_convertible_loop_p): And free them.
20532 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20534 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
20537 2015-07-10 Richard Biener <rguenther@suse.de>
20539 PR tree-optimization/66823
20540 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
20541 inverted predicate.
20543 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
20545 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
20546 to handle mips[32|64]r3 and mips[32|64]r5.
20548 2015-07-09 Jakub Jelinek <jakub@redhat.com>
20550 PR middle-end/66633
20551 * tree-nested.c (get_static_chain): Or in a flag into
20552 info->static_chain_added.
20553 (get_frame_field, get_nonlocal_debug_decl): Likewise.
20554 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
20555 2015-07-01 changes.
20556 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
20557 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
20560 PR tree-optimization/66718
20561 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
20563 (vect_simd_lane_linear): New function.
20564 (vectorizable_simd_clone_call): Support using linear arguments for
20565 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
20567 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20570 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
20572 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
20574 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
20575 Use machine mode, not enum machine_mode in the prototype.
20577 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
20578 classify 128-bit floating point support.
20579 (FLOAT128_IBM_P): Likewise.
20580 (FLOAT128_VECTOR_P): Likewise.
20581 (FLOAT128_2REG_P): Likewise.
20582 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
20583 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
20584 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
20585 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
20587 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
20588 tests against TFmode/TDmode, since those modes do not use VSX
20590 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
20592 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
20593 tests against TFmode, etc.
20594 (invalid_e500_subreg): Add tests against IFmode/KFmode.
20595 (reg_offset_addressing_ok_p): Likewise.
20596 (rs6000_legitimate_offset_address_p): Likewise.
20597 (rs6000_legitimize_address): Likewise.
20598 (rs6000_legitimize_reload_address): Likewise.
20599 (rs6000_legitimate_address_p): Clean up tests against TFmode and
20600 TDmode to use the new helper macros, which will include IFmode and
20602 (rs6000_emit_move): Likewise.
20603 (rs6000_darwin64_record_arg_recurse): Likewise.
20604 (print_operand): Likewise.
20605 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
20606 that uses a single vector register as a vector and not as a
20607 floating point register in terms of the calling sequence.
20608 (rs6000_discover_homogeneous_aggregate): Likewise.
20609 (rs6000_return_in_memory): Likewise.
20610 (init_cumulative_args): Likewise.
20611 (rs6000_function_arg_boundary): Likewise.
20612 (rs6000_function_arg_advance_1): Likewise.
20613 (rs6000_function_arg): Likewise.
20614 (rs6000_pass_by_reference): Likewise.
20615 (rs6000_gimplify_va_arg): Likewise.
20616 (rs6000_secondary_reload_memory): Use machine_mode not enum
20618 (rs6000_split_multireg_move): Use new helper macros.
20619 (spe_func_has_64bit_regs_p): Likewise.
20620 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
20621 (output_toc): Use new helper macros.
20622 (rs6000_register_move_cost): Likewise.
20623 (rs6000_function_value): Add IEEE 128-bit floating point calling
20625 (rs6000_libcall_value): Likewise.
20626 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
20627 floating point support.
20628 (rs6000_vector_mode_supported_p): Likewise.
20630 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
20632 PR rtl-optimization/66782
20633 * lra-int.h (struct lra_insn_recog_data): Add comment about
20634 clobbered hard regs for arg_hard_regs.
20635 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
20636 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
20637 Add condition for processing used hard regs.
20638 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
20639 Process clobbered hard regs.
20641 2015-07-09 Michael Matz <matz@suse.de>
20643 * genmatch.c (fprintf_indent): New function.
20644 (operand::gen_transform): Add indent parameter.
20645 (expr::gen_transform, c_expr::gen_transform,
20646 capture::gen_transform): Ditto and use fprintf_indent.
20647 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
20648 (dt_operand::gen, dt_operand::gen_predicate,
20649 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
20650 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
20651 (decision_tree::gen_gimple): Adjust calls and indent generated
20653 (decision_tree::gen_generic): Ditto.
20654 (write_predicate): Ditto.
20656 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20659 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
20660 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
20661 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
20662 {GENERAL,SSE,MMX}_REG_P where appropriate.
20664 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
20666 * lto-streamer.h: Don't include target.h and alloc-pool.h.
20667 * builtins.c: Adjust includes.
20668 * gimple.c: Likewise.
20669 * ipa-icf.c: Likewise.
20670 * lto-opts.c: Likewise.
20671 * ipa-reference.c: Likewise.
20672 * lto-section-out.c: Likewise.
20673 * lto-streamer-in.c: Likewise.
20674 * lto-streamer-out.c: Likewise.
20675 * opts-global.c: Likewise.
20676 * symtab.c: Likewise.
20677 * tree-chkp.c: Likewise.
20678 * tree-ssa-live.c: Likewise.
20679 * tree-streamer-in.c: Likewise.
20680 * tree-streamer-out.c: Likewise.
20681 * config/darwin.c: Likewise.
20682 * config/i386/winnt.c: Likewise.
20684 2015-07-09 Richard Biener <rguenther@suse.de>
20686 * genmatch.c (struct expr): Add force_single_use flag.
20687 (expr::expr): Add copy constructor.
20688 (capture_info::walk_match): Gather force_single_use captures.
20689 (expr::gen_transform): Use possibly NULLified sequence.
20690 (dt_simplify::gen): Apply single-use restrictions by NULLifying
20691 seq if any constrained expr is not single-use.
20692 (parser::parse_expr): Refactor to allow multiple flags. Handle
20693 's' flag to force an expression have a single-use if the pattern
20694 simplifies to more than one statement.
20695 * match.pd: Convert most single_use conditionals to :s flags.
20697 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20699 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
20700 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20701 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
20703 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
20705 * flags.h: Don't include flag-types.h or options.h.
20706 * opts-common.c: Adjust includes.
20707 * opts-global.c: Likewise.
20708 * common/config/epiphany/epiphany-common.c: Likewise.
20710 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20713 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
20716 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20719 * config/i386/i386.c (ix86_return_in_memory): Return true
20720 if int_size_in_bytes returns negative for IA MCU.
20722 2015-07-09 Marek Polacek <polacek@redhat.com>
20724 PR tree-optimization/66718
20725 * Makefile.in (OBJS): Add gimple-laddress.o.
20726 * passes.def: Schedule pass_laddress.
20727 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
20728 * tree-pass.h (make_pass_laddress): Declare.
20729 * gimple-laddress.c: New file.
20731 2015-07-09 Richard Biener <rguenther@suse.de>
20733 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
20735 2015-07-09 Richard Biener <rguenther@suse.de>
20737 PR tree-optimization/66807
20738 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
20740 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
20742 * function.c (stack_protect_epilogue): Use if rather than switch for
20743 check targetm.have_stack_protect_test.
20745 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20747 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
20748 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
20749 * config/arc/arc.h: Likewise.
20750 * config/arm/arm.h: Likewise.
20751 * config/bfin/bfin.h: Likewise.
20752 * config/epiphany/epiphany.h: Likewise.
20753 * config/frv/frv.h: Likewise.
20754 * config/ia64/ia64.h: Likewise.
20755 * config/iq2000/iq2000.h: Likewise.
20756 * config/lm32/lm32.h: Likewise.
20757 * config/m32r/m32r.h: Likewise.
20758 * config/mcore/mcore.h: Likewise.
20759 * config/mep/mep.h: Likewise.
20760 * config/microblaze/microblaze.h: Likewise.
20761 * config/mips/mips.h: Likewise.
20762 * config/mmix/mmix.h: Likewise.
20763 * config/mn10300/mn10300.h: Likewise.
20764 * config/nds32/nds32.h: Likewise.
20765 * config/nios2/nios2.h: Likewise.
20766 * config/pa/pa.h: Likewise.
20767 * config/rl78/rl78.h: Likewise.
20768 * config/sh/sh.h: Likewise.
20769 * config/sparc/sparc.h: Likewise.
20770 * config/stormy16/stormy16.h: Likewise.
20771 * config/tilegx/tilegx.h: Likewise.
20772 * config/tilepro/tilepro.h: Likewise.
20773 * config/v850/v850.h: Likewise.
20774 * config/xtensa/xtensa.h: Likewise.
20775 * doc/tm.texi: Regenerate.
20776 * doc/tm.texi.in: Adjust.
20777 * combine.c (simplify_set): Likewise.
20778 (simplify_comparison): Likewise.
20779 * expr.c (store_constructor): Likewise.
20780 * internal-fn.c (expand_arith_overflow): Likewise.
20781 * reload.c (push_reload): Likewise.
20782 (find_reloads): Likewise.
20783 (find_reloads_subreg_address): Likewise.
20784 * reload1.c (eliminate_regs_1): Likewise.
20785 * rtlanal.c (nonzero_bits1): Likewise.
20786 (num_sign_bit_copies1): Likewise.
20787 * simplify-rtx.c (simplify_truncation): Likewise.
20789 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20791 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
20792 of AUTO_INC_DEC with the preprocessor.
20793 * combine.c (combine_instructions): Likewise.
20794 (can_combine_p): Likewise.
20795 (try_combine): Likewise.
20796 * emit-rtl.c (try_split): Likewise.
20797 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20798 * lower-subreg.c (resolve_simple_move): Likewise.
20799 * lra.c (update_inc_notes): Likewise.
20800 * recog.c (asm_operand_ok): Likewise.
20801 (constrain_operands): Likewise.
20802 * regrename.c (scan_rtx_address): Likewise.
20803 * reload.c (update_auto_inc_notes): Likewise.
20804 (reg_inc_found_and_valid_p): Likewise.
20805 * reload1.c (reload): Likewise.
20806 (emit_input_reload_insns): Likewise.
20807 (delete_output_reload): Likewise.
20808 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20809 * valtrack.c (cleanup_auto_inc_dec): Likewise.
20811 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20813 * rtl.h: Always define AUTO_INC_DEC.
20814 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
20815 * combine.c (combine_instructions): Likewise.
20816 (can_combine_p): Likewise.
20817 (try_combine): Likewise.
20818 * emit-rtl.c (try_split): Likewise.
20819 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20820 * lower-subreg.c (resolve_simple_move): Likewise.
20821 * lra.c (update_inc_notes): Likewise.
20822 * recog.c (asm_operand_ok): Likewise.
20823 (constrain_operands): Likewise.
20824 * regrename.c (scan_rtx_address): Likewise.
20825 * reload.c (update_auto_inc_notes): Likewise.
20826 (find_equiv_reg): Likewise.
20827 * reload1.c (reload): Likewise.
20828 (reload_as_needed): Likewise.
20829 (choose_reload_regs): Likewise.
20830 (emit_input_reload_insns): Likewise.
20831 (delete_output_reload): Likewise.
20832 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20833 * valtrack.c (cleanup_auto_inc_dec): Likewise.
20835 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20837 * combine.c (can_combine_def_p): Don't check the value of
20838 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
20839 (combinable_i3pat): Likewise.
20840 (mark_used_regs_combine): Likewise.
20841 * regrename.c (rename_chains): Likewise.
20842 * reload.c (find_reloads_address): Likewise.
20843 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20845 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20847 * combine.c (update_rsp_from_reg_equal): Don't check if
20848 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
20849 (reg_nonzero_bits_for_combine): Likewise.
20850 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
20852 * config/frv/frv.h: Likewise.
20853 * config/lm32/lm32.h: Likewise.
20854 * config/mep/mep.h: Likewise.
20855 * config/mips/mips.h: Likewise.
20856 * config/rs6000/rs6000.h: Likewise.
20857 * config/sh/sh.h: Likewise.
20858 * config/tilegx/tilegx.h (enum reg_class): Likewise.
20859 * config/tilepro/tilepro.h: Likewise.
20860 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
20861 * doc/tm.texi: Regenerate.
20862 * doc/tm.texi.in: Adjust.
20863 * rtlanal.c (nonzero_bits1): Likewise.
20865 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20867 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
20868 with the preprocessor.
20869 (combine_instructions): Likewise.
20870 (try_combine): Likewise.
20872 (distribute_notes): Likewise.
20874 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20876 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
20878 (simplify_set): Likewise.
20879 * cse.c (cse_insn): Likewise.
20880 * fold-const.c (fold_single_bit_test): Likewise.
20881 (fold_unary_loc): Likewise.
20882 * postreload.c (reload_cse_simplify_set): Likewise.
20883 (reload_cse_simplify_operands): Likewise.
20885 2015-07-08 Jiong Wang <jiong.wang@arm.com>
20887 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
20888 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
20890 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20893 * config/i386/x86intrin.h: Include <adxintrin.h> even if
20894 __iamcu__ is defined.
20896 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20898 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
20900 2015-07-08 Iain Sandoe <iain@codesourcery.com>
20903 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
20904 names from preservation.
20906 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20909 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
20911 (function_arg_advance_32): Don't pass vectors in registers for
20913 (function_arg_32): Likewise.
20914 (ix86_return_in_memory): Don't return vectors in registers for
20917 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
20919 PR middle-end/66334
20920 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
20921 hard regno live at the start of BB with incoming abnormal edges.
20922 * lra-lives.c (process_bb_lives): Ditto.
20924 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
20927 * config/nvptx/mkoffload.c (main): Create an offload image only in
20928 64-bit configurations.
20930 2015-07-08 Martin Liska <mliska@suse.cz>
20933 * tree-sra.c (create_access_1): Call ctor without brackets.
20934 (create_artificial_child_access): Likewise.
20936 2015-07-08 Richard Biener <rguenther@suse.de>
20938 PR tree-optimization/66793
20939 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
20940 Properly split the block after stmts ending it.
20942 2015-07-08 Richard Biener <rguenther@suse.de>
20944 PR tree-optimization/66794
20945 * passes.c (execute_function_todo): Assert that post-dominators
20947 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
20948 Free post-dominators.
20950 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20952 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
20955 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20957 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
20958 more than or equal 8 and less than 32 when optimizing for size.
20960 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20962 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
20963 COSTS_N_INSNS (1) and increment it appropriately throughout the
20966 2015-07-08 Richard Biener <rguenther@suse.de>
20968 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
20970 2015-07-08 Alan Modra <amodra@gmail.com>
20972 * target.def (rtx_costs): Remove "code" param, add "mode".
20973 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
20974 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
20975 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
20976 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
20977 call. Track mode when given in rtx.
20978 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
20979 (default_address_cost): Pass Pmode to rtx_cost.
20980 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
20981 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
20983 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
20984 (notreg_cost): Add mode param. Use it.
20985 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
20986 mode param and pass to set_src_cost. Update all calls.
20987 (hash_scan_set): Formatting.
20988 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
20989 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
20991 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
20992 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
20993 emit_store_flag): Update set_src_cost and rtx_cost calls.
20994 * auto-inc-dec.c (attempt_change): Likewise.
20995 * calls.c (precompute_register_parameters): Likewise.
20996 * combine.c (expand_compound_operation, make_extraction,
20997 force_to_mode, distribute_and_simplify_rtx): Likewise.
20998 * dojump.c (prefer_and_bit_test): Likewise.
20999 * dse.c (find_shift_sequence): Likewise.
21000 * expr.c (compress_float_constant): Likewise.
21001 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
21002 * ifcvt.c (noce_try_sign_mask): Likewise.
21003 * loop-doloop.c (doloop_optimize): Likewise.
21004 * loop-invariant.c (create_new_invariant): Likewise.
21005 * lower-subreg.c (shift_cost, compute_costs): Likewise.
21006 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
21007 lshift_cheap_p): Likewise.
21008 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
21009 try_replace_in_use, reload_cse_move2add): Likewise.
21010 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
21012 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21013 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21014 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
21015 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21016 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
21017 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
21019 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
21020 * config/arc/arc.c (arc_rtx_costs): Likewise.
21021 * config/arm/arm.c (arm_rtx_costs): Likewise.
21022 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
21023 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
21024 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
21025 * config/cris/cris.c (cris_rtx_costs): Likewise.
21026 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
21027 * config/frv/frv.c (frv_rtx_costs): Likewise.
21028 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
21029 * config/i386/i386.c (ix86_rtx_costs): Likewise.
21030 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
21031 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
21032 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
21033 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
21034 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
21035 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
21036 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
21037 * config/mep/mep.c (mep_rtx_cost): Likewise.
21038 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
21039 * config/mips/mips.c (mips_rtx_costs): Likewise.
21040 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
21041 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
21042 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
21043 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
21044 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
21045 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
21046 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
21047 * config/pa/pa.c (hppa_rtx_costs): Likewise.
21048 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
21049 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
21050 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
21051 * config/s390/s390.c (s390_rtx_costs): Likewise.
21052 * config/sh/sh.c (sh_rtx_costs): Likewise.
21053 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
21054 * config/spu/spu.c (spu_rtx_costs): Likewise.
21055 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
21056 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
21057 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
21058 * config/v850/v850.c (v850_rtx_costs): Likewise.
21059 * config/vax/vax.c (vax_rtx_costs): Likewise.
21060 * config/visium/visium.c (visium_rtx_costs): Likewise.
21061 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
21062 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
21063 "code" param, and pass as outer_code to first rtx_cost call. Pass
21064 mode to rtx_cost calls.
21065 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
21067 (aarch64_rtx_costs_wrapper): Update.
21068 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
21069 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
21071 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
21072 and rtx_cost calls.
21073 (avr_operand_rtx_cost): Similarly.
21074 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
21075 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
21076 * config/mips/mips.c (mips_stack_address_p): Comment typo.
21077 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
21078 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
21079 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
21081 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
21082 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
21083 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
21084 * doc/tm.texi: Regenerate.
21086 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
21088 * tree-core.h: Include symtab.h.
21089 * rtl.h: Include hard-reg-set.h but not flags.h.
21090 (HARD_CONST): Remove condition compilation involving HARD_CONST since
21091 hard-reg-set.h is always included.
21092 * regs.h: Don't include hard-reg-set.h or rtl.h.
21093 * cfg.h: Include dominance.h.
21094 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
21095 * backend.h: New. Aggregate commonly used backend header files.
21096 * gimple-ssa.h: Don't include tree-hasher.h.
21097 * ssa.h: New. Aggregate commonly used SSA header files.
21098 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
21099 * sel-sched-ir.h: Flatten includes.
21100 * lra-int.h: Flatten completely.
21101 * sel-sched-dump.h: Flatten includes.
21102 * ira-int.h: Flatten includes.
21103 * gimple-streamer.h: Remove all includes.
21104 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
21105 * resource.h: Flatten hard-reg-set.h and df.h.
21106 * sched-int.h: Flatten insn-arrt.h and df.h.
21107 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
21108 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
21109 * genattrtab.c (write_header): Adjust generated includes.
21110 * genautomata.c (main): Likewise.
21111 * genconditions.c (write-header): Likewise.
21112 * genemit.c (main): Likewise.
21113 * gengtype.c (open_base_files): Likewise.
21114 * genopinit.c (main): Likewise.
21115 * genoutput.c (output_prologue): Likewise.
21116 * genpeep.c (main): Likewise.
21117 * genpreds.c (write_insn_preds_c): Likewise.
21118 * genrecog.c (write_header): Likewise.
21119 * alias.c: Adjust includes.
21120 * asan.c: Likewise.
21121 * attribs.c: Likewise.
21122 * auto-inc-dec.c: Likewise.
21123 * auto-profile.c: Likewise.
21124 * bb-reorder.c: Likewise.
21125 * bt-load.c: Likewise.
21126 * builtins.c: Likewise.
21127 * caller-save.c: Likewise.
21128 * calls.c: Likewise.
21129 * ccmp.c: Likewise.
21131 * cfganal.c: Likewise.
21132 * cfgbuild.c: Likewise.
21133 * cfgcleanup.c: Likewise.
21134 * cfgexpand.c: Likewise.
21135 * cfghooks.c: Likewise.
21136 * cfgloop.c: Likewise.
21137 * cfgloopanal.c: Likewise.
21138 * cfgloopmanip.c: Likewise.
21139 * cfgrtl.c: Likewise.
21140 * cgraph.c: Likewise.
21141 * cgraphbuild.c: Likewise.
21142 * cgraphclones.c: Likewise.
21143 * cgraphunit.c: Likewise.
21144 * cilk-common.c: Likewise.
21145 * combine-stack-adj.c: Likewise.
21146 * combine.c: Likewise.
21147 * compare-elim.c: Likewise.
21148 * convert.c: Likewise.
21149 * coverage.c: Likewise.
21150 * cppbuiltin.c: Likewise.
21151 * cprop.c: Likewise.
21153 * cselib.c: Likewise.
21154 * data-streamer-in.c: Likewise.
21155 * data-streamer-out.c: Likewise.
21156 * data-streamer.c: Likewise.
21157 * dbxout.c: Likewise.
21160 * debug.c: Likewise.
21161 * df-core.c: Likewise.
21162 * df-problems.c: Likewise.
21163 * df-scan.c: Likewise.
21165 * dojump.c: Likewise.
21166 * dominance.c: Likewise.
21167 * domwalk.c: Likewise.
21168 * double-int.c: Likewise.
21170 * dumpfile.c: Likewise.
21171 * dwarf2asm.c: Likewise.
21172 * dwarf2cfi.c: Likewise.
21173 * dwarf2out.c: Likewise.
21174 * emit-rtl.c: Likewise.
21175 * et-forest.c: Likewise.
21176 * except.c: Likewise.
21177 * explow.c: Likewise.
21178 * expmed.c: Likewise.
21179 * expr.c: Likewise.
21180 * final.c: Likewise.
21181 * fixed-value.c: Likewise.
21182 * fold-const.c: Likewise.
21183 * function.c: Likewise.
21184 * fwprop.c: Likewise.
21185 * gcc-plugin.h: Likewise.
21186 * gcse-common.c: Likewise.
21187 * gcse.c: Likewise.
21188 * generic-match-head.c: Likewise.
21189 * ggc-page.c: Likewise.
21190 * gimple-builder.c: Likewise.
21191 * gimple-expr.c: Likewise.
21192 * gimple-fold.c: Likewise.
21193 * gimple-iterator.c: Likewise.
21194 * gimple-low.c: Likewise.
21195 * gimple-match-head.c: Likewise.
21196 * gimple-pretty-print.c: Likewise.
21197 * gimple-ssa-isolate-paths.c: Likewise.
21198 * gimple-ssa-strength-reduction.c: Likewise.
21199 * gimple-streamer-in.c: Likewise.
21200 * gimple-streamer-out.c: Likewise.
21201 * gimple-walk.c: Likewise.
21202 * gimple.c: Likewise.
21203 * gimplify-me.c: Likewise.
21204 * gimplify.c: Likewise.
21205 * godump.c: Likewise.
21206 * graph.c: Likewise.
21207 * graphite-blocking.c: Likewise.
21208 * graphite-dependences.c: Likewise.
21209 * graphite-interchange.c: Likewise.
21210 * graphite-isl-ast-to-gimple.c: Likewise.
21211 * graphite-optimize-isl.c: Likewise.
21212 * graphite-poly.c: Likewise.
21213 * graphite-scop-detection.c: Likewise.
21214 * graphite-sese-to-poly.c: Likewise.
21215 * graphite.c: Likewise.
21216 * haifa-sched.c: Likewise.
21217 * hw-doloop.c: Likewise.
21218 * ifcvt.c: Likewise.
21219 * init-regs.c: Likewise.
21220 * internal-fn.c: Likewise.
21221 * ipa-chkp.c: Likewise.
21222 * ipa-comdats.c: Likewise.
21223 * ipa-cp.c: Likewise.
21224 * ipa-devirt.c: Likewise.
21225 * ipa-icf-gimple.c: Likewise.
21226 * ipa-icf.c: Likewise.
21227 * ipa-inline-analysis.c: Likewise.
21228 * ipa-inline-transform.c: Likewise.
21229 * ipa-inline.c: Likewise.
21230 * ipa-polymorphic-call.c: Likewise.
21231 * ipa-profile.c: Likewise.
21232 * ipa-prop.c: Likewise.
21233 * ipa-pure-const.c: Likewise.
21234 * ipa-ref.c: Likewise.
21235 * ipa-reference.c: Likewise.
21236 * ipa-split.c: Likewise.
21237 * ipa-utils.c: Likewise.
21238 * ipa-visibility.c: Likewise.
21240 * ira-build.c: Likewise.
21241 * ira-color.c: Likewise.
21242 * ira-conflicts.c: Likewise.
21243 * ira-costs.c: Likewise.
21244 * ira-emit.c: Likewise.
21245 * ira-lives.c: Likewise.
21247 * jump.c: Likewise.
21248 * langhooks.c: Likewise.
21250 * loop-doloop.c: Likewise.
21251 * loop-init.c: Likewise.
21252 * loop-invariant.c: Likewise.
21253 * loop-iv.c: Likewise.
21254 * loop-unroll.c: Likewise.
21255 * lower-subreg.c: Likewise.
21256 * lra-assigns.c: Likewise.
21257 * lra-coalesce.c: Likewise.
21258 * lra-constraints.c: Likewise.
21259 * lra-eliminations.c: Likewise.
21260 * lra-lives.c: Likewise.
21261 * lra-remat.c: Likewise.
21262 * lra-spills.c: Likewise.
21264 * lto-cgraph.c: Likewise.
21265 * lto-compress.c: Likewise.
21266 * lto-opts.c: Likewise.
21267 * lto-section-in.c: Likewise.
21268 * lto-section-out.c: Likewise.
21269 * lto-streamer-in.c: Likewise.
21270 * lto-streamer-out.c: Likewise.
21271 * lto-streamer.c: Likewise.
21273 * mode-switching.c: Likewise.
21274 * modulo-sched.c: Likewise.
21275 * omega.c: Likewise.
21276 * omp-low.c: Likewise.
21277 * optabs.c: Likewise.
21278 * opts-global.c: Likewise.
21279 * passes.c: Likewise.
21280 * plugin.c: Likewise.
21281 * postreload-gcse.c: Likewise.
21282 * postreload.c: Likewise.
21283 * predict.c: Likewise.
21284 * print-rtl.c: Likewise.
21285 * print-tree.c: Likewise.
21286 * profile.c: Likewise.
21287 * real.c: Likewise.
21288 * realmpfr.c: Likewise.
21289 * recog.c: Likewise.
21291 * reg-stack.c: Likewise.
21292 * regcprop.c: Likewise.
21293 * reginfo.c: Likewise.
21294 * regrename.c: Likewise.
21295 * regstat.c: Likewise.
21296 * reload.c: Likewise.
21297 * reload1.c: Likewise.
21298 * reorg.c: Likewise.
21299 * resource.c: Likewise.
21300 * rtl-chkp.c: Likewise.
21301 * rtlanal.c: Likewise.
21302 * rtlhooks.c: Likewise.
21303 * sanopt.c: Likewise.
21304 * sched-deps.c: Likewise.
21305 * sched-ebb.c: Likewise.
21306 * sched-rgn.c: Likewise.
21307 * sched-vis.c: Likewise.
21308 * sdbout.c: Likewise.
21309 * sel-sched-dump.c: Likewise.
21310 * sel-sched-ir.c: Likewise.
21311 * sel-sched.c: Likewise.
21312 * sese.c: Likewise.
21313 * shrink-wrap.c: Likewise.
21314 * simplify-rtx.c: Likewise.
21315 * stack-ptr-mod.c: Likewise.
21316 * stmt.c: Likewise.
21317 * stor-layout.c: Likewise.
21318 * store-motion.c: Likewise.
21319 * stringpool.c: Likewise.
21320 * symtab.c: Likewise.
21321 * target-globals.c: Likewise.
21322 * targhooks.c: Likewise.
21323 * toplev.c: Likewise.
21324 * tracer.c: Likewise.
21325 * trans-mem.c: Likewise.
21326 * tree-affine.c: Likewise.
21327 * tree-browser.c: Likewise.
21328 * tree-call-cdce.c: Likewise.
21329 * tree-cfg.c: Likewise.
21330 * tree-cfgcleanup.c: Likewise.
21331 * tree-chkp-opt.c: Likewise.
21332 * tree-chkp.c: Likewise.
21333 * tree-chrec.c: Likewise.
21334 * tree-complex.c: Likewise.
21335 * tree-data-ref.c: Likewise.
21336 * tree-dfa.c: Likewise.
21337 * tree-diagnostic.c: Likewise.
21338 * tree-dump.c: Likewise.
21339 * tree-eh.c: Likewise.
21340 * tree-emutls.c: Likewise.
21341 * tree-if-conv.c: Likewise.
21342 * tree-inline.c: Likewise.
21343 * tree-into-ssa.c: Likewise.
21344 * tree-iterator.c: Likewise.
21345 * tree-loop-distribution.c: Likewise.
21346 * tree-nested.c: Likewise.
21347 * tree-nrv.c: Likewise.
21348 * tree-object-size.c: Likewise.
21349 * tree-outof-ssa.c: Likewise.
21350 * tree-parloops.c: Likewise.
21351 * tree-phinodes.c: Likewise.
21352 * tree-predcom.c: Likewise.
21353 * tree-pretty-print.c: Likewise.
21354 * tree-profile.c: Likewise.
21355 * tree-scalar-evolution.c: Likewise.
21356 * tree-sra.c: Likewise.
21357 * tree-ssa-address.c: Likewise.
21358 * tree-ssa-alias.c: Likewise.
21359 * tree-ssa-ccp.c: Likewise.
21360 * tree-ssa-coalesce.c: Likewise.
21361 * tree-ssa-copy.c: Likewise.
21362 * tree-ssa-copyrename.c: Likewise.
21363 * tree-ssa-dce.c: Likewise.
21364 * tree-ssa-dom.c: Likewise.
21365 * tree-ssa-dse.c: Likewise.
21366 * tree-ssa-forwprop.c: Likewise.
21367 * tree-ssa-ifcombine.c: Likewise.
21368 * tree-ssa-live.c: Likewise.
21369 * tree-ssa-loop-ch.c: Likewise.
21370 * tree-ssa-loop-im.c: Likewise.
21371 * tree-ssa-loop-ivcanon.c: Likewise.
21372 * tree-ssa-loop-ivopts.c: Likewise.
21373 * tree-ssa-loop-manip.c: Likewise.
21374 * tree-ssa-loop-niter.c: Likewise.
21375 * tree-ssa-loop-prefetch.c: Likewise.
21376 * tree-ssa-loop-unswitch.c: Likewise.
21377 * tree-ssa-loop.c: Likewise.
21378 * tree-ssa-math-opts.c: Likewise.
21379 * tree-ssa-operands.c: Likewise.
21380 * tree-ssa-phiopt.c: Likewise.
21381 * tree-ssa-phiprop.c: Likewise.
21382 * tree-ssa-pre.c: Likewise.
21383 * tree-ssa-propagate.c: Likewise.
21384 * tree-ssa-reassoc.c: Likewise.
21385 * tree-ssa-sccvn.c: Likewise.
21386 * tree-ssa-scopedtables.c: Likewise.
21387 * tree-ssa-sink.c: Likewise.
21388 * tree-ssa-strlen.c: Likewise.
21389 * tree-ssa-structalias.c: Likewise.
21390 * tree-ssa-tail-merge.c: Likewise.
21391 * tree-ssa-ter.c: Likewise.
21392 * tree-ssa-threadedge.c: Likewise.
21393 * tree-ssa-threadupdate.c: Likewise.
21394 * tree-ssa-uncprop.c: Likewise.
21395 * tree-ssa-uninit.c: Likewise.
21396 * tree-ssa.c: Likewise.
21397 * tree-ssanames.c: Likewise.
21398 * tree-stdarg.c: Likewise.
21399 * tree-streamer-in.c: Likewise.
21400 * tree-streamer-out.c: Likewise.
21401 * tree-streamer.c: Likewise.
21402 * tree-switch-conversion.c: Likewise.
21403 * tree-tailcall.c: Likewise.
21404 * tree-vect-data-refs.c: Likewise.
21405 * tree-vect-generic.c: Likewise.
21406 * tree-vect-loop-manip.c: Likewise.
21407 * tree-vect-loop.c: Likewise.
21408 * tree-vect-patterns.c: Likewise.
21409 * tree-vect-slp.c: Likewise.
21410 * tree-vect-stmts.c: Likewise.
21411 * tree-vectorizer.c: Likewise.
21412 * tree-vrp.c: Likewise.
21413 * tree.c: Likewise.
21414 * tsan.c: Likewise.
21415 * ubsan.c: Likewise.
21416 * valtrack.c: Likewise.
21417 * value-prof.c: Likewise.
21418 * var-tracking.c: Likewise.
21419 * varasm.c: Likewise.
21420 * varpool.c: Likewise.
21421 * vmsdbgout.c: Likewise.
21422 * vtable-verify.c: Likewise.
21424 * wide-int.cc: Likewise.
21425 * xcoffout.c: Likewise.
21426 * config/aarch64/aarch64-builtins.c: Likewise.
21427 * config/aarch64/aarch64.c: Likewise.
21428 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21429 * config/alpha/alpha.c: Likewise.
21430 * config/arc/arc.c: Likewise.
21431 * config/arm/aarch-common.c: Likewise.
21432 * config/arm/arm-builtins.c: Likewise.
21433 * config/arm/arm-c.c: Likewise.
21434 * config/arm/arm.c: Likewise.
21435 * config/avr/avr-c.c: Likewise.
21436 * config/avr/avr-log.c: Likewise.
21437 * config/avr/avr.c: Likewise.
21438 * config/bfin/bfin.c: Likewise.
21439 * config/c6x/c6x.c: Likewise.
21440 * config/cr16/cr16.c: Likewise.
21441 * config/cris/cris.c: Likewise.
21442 * config/darwin-c.c: Likewise.
21443 * config/darwin.c: Likewise.
21444 * config/epiphany/epiphany.c: Likewise.
21445 * config/epiphany/mode-switch-use.c: Likewise.
21446 * config/epiphany/resolve-sw-modes.c: Likewise.
21447 * config/fr30/fr30.c: Likewise.
21448 * config/frv/frv.c: Likewise.
21449 * config/ft32/ft32.c: Likewise.
21450 * config/h8300/h8300.c: Likewise.
21451 * config/i386/i386-c.c: Likewise.
21452 * config/i386/i386.c: Likewise.
21453 * config/i386/msformat-c.c: Likewise.
21454 * config/i386/winnt-cxx.c: Likewise.
21455 * config/i386/winnt-stubs.c: Likewise.
21456 * config/i386/winnt.c: Likewise.
21457 * config/ia64/ia64-c.c: Likewise.
21458 * config/ia64/ia64.c: Likewise.
21459 * config/iq2000/iq2000.c: Likewise.
21460 * config/lm32/lm32.c: Likewise.
21461 * config/m32c/m32c-pragma.c: Likewise.
21462 * config/m32c/m32c.c: Likewise.
21463 * config/m32r/m32r.c: Likewise.
21464 * config/m68k/m68k.c: Likewise.
21465 * config/mcore/mcore.c: Likewise.
21466 * config/mep/mep-pragma.c: Likewise.
21467 * config/mep/mep.c: Likewise.
21468 * config/microblaze/microblaze-c.c: Likewise.
21469 * config/microblaze/microblaze.c: Likewise.
21470 * config/mips/mips.c: Likewise.
21471 * config/mmix/mmix.c: Likewise.
21472 * config/mn10300/mn10300.c: Likewise.
21473 * config/moxie/moxie.c: Likewise.
21474 * config/msp430/msp430-c.c: Likewise.
21475 * config/msp430/msp430.c: Likewise.
21476 * config/nds32/nds32-cost.c: Likewise.
21477 * config/nds32/nds32-fp-as-gp.c: Likewise.
21478 * config/nds32/nds32-intrinsic.c: Likewise.
21479 * config/nds32/nds32-isr.c: Likewise.
21480 * config/nds32/nds32-md-auxiliary.c: Likewise.
21481 * config/nds32/nds32-memory-manipulation.c: Likewise.
21482 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21483 * config/nds32/nds32-predicates.c: Likewise.
21484 * config/nds32/nds32.c: Likewise.
21485 * config/nios2/nios2.c: Likewise.
21486 * config/nvptx/nvptx.c: Likewise.
21487 * config/pa/pa.c: Likewise.
21488 * config/pdp11/pdp11.c: Likewise.
21489 * config/rl78/rl78-c.c: Likewise.
21490 * config/rl78/rl78.c: Likewise.
21491 * config/rs6000/rs6000-c.c: Likewise.
21492 * config/rs6000/rs6000.c: Likewise.
21493 * config/rx/rx.c: Likewise.
21494 * config/s390/s390-c.c: Likewise.
21495 * config/s390/s390.c: Likewise.
21496 * config/sh/sh-c.c: Likewise.
21497 * config/sh/sh-mem.cc: Likewise.
21498 * config/sh/sh.c: Likewise.
21499 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21500 * config/sh/sh_treg_combine.cc: Likewise.
21501 * config/sol2-c.c: Likewise.
21502 * config/sol2-cxx.c: Likewise.
21503 * config/sol2-stubs.c: Likewise.
21504 * config/sol2.c: Likewise.
21505 * config/sparc/sparc-c.c: Likewise.
21506 * config/sparc/sparc.c: Likewise.
21507 * config/spu/spu-c.c: Likewise.
21508 * config/spu/spu.c: Likewise.
21509 * config/stormy16/stormy16.c: Likewise.
21510 * config/tilegx/mul-tables.c: Likewise.
21511 * config/tilegx/tilegx-c.c: Likewise.
21512 * config/tilegx/tilegx.c: Likewise.
21513 * config/tilepro/mul-tables.c: Likewise.
21514 * config/tilepro/tilepro-c.c: Likewise.
21515 * config/tilepro/tilepro.c: Likewise.
21516 * config/v850/v850-c.c: Likewise.
21517 * config/v850/v850.c: Likewise.
21518 * config/vax/vax.c: Likewise.
21519 * config/visium/visium.c: Likewise.
21520 * config/vms/vms-c.c: Likewise.
21521 * config/vms/vms.c: Likewise.
21522 * config/vxworks.c: Likewise.
21523 * config/xtensa/xtensa.c: Likewise.
21525 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
21527 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
21528 Remove operand constraints. Change operand 2 predicate to
21529 nonmemory operand. Limit const_int values to mode bitsize. Only
21530 allow const_int values less than 32 when optimizing for size.
21531 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
21532 Remove operand constraints.
21533 (*bt<mode>): Use SImode for const_int values less than 32.
21534 (regmode): Remove mode attribute.
21536 2015-07-07 Anatoly Sokolov <aesok@post.ru>
21538 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21539 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
21540 moxie_legitimate_address_p): New functions.
21541 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21543 2015-07-07 Tom de Vries <tom@codesourcery.com>
21545 PR tree-optimization/66642
21546 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
21547 header comment. Rename split_edge variable to edge_at_split. Split
21548 exit edge to create new loop exit bb. Insert loop exit phis in new
21551 2015-07-07 Tom de Vries <tom@codesourcery.com>
21553 * tree-cfg.c (get_virtual_phi): New function.
21554 * tree-cfg.h (get_virtual_phi): Declare.
21555 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
21556 (rewrite_virtuals_into_loop_closed_ssa): New function.
21557 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
21559 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
21560 (transform_to_exit_first_loop_alt): Use
21561 rewrite_virtuals_into_loop_closed_ssa.
21563 2015-07-07 Richard Biener <rguenther@suse.de>
21565 * fold-const.c (fold_binary_loc): Move
21566 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
21567 * match.pd: ... here.
21568 Add (X * C1) % C2 -> 0 simplification pattern derived from
21571 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
21574 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
21575 change for target/65249.
21577 2015-07-07 Paulo Matos <pmatos@broadcom.com>
21579 * symtab.c (address_matters_1): Fix typo in comment above.
21580 (can_increase_alignment_p): Likewise.
21582 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21584 * function.c (free_after_compilation): Clear PROP_cfg in
21585 f->curr_properties.
21587 2015-07-07 Richard Biener <rguenther@suse.de>
21589 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
21591 (add_control_edge): Remove excessive vertical space in dumping.
21592 (process_ssa_edge_worklist): Simulate at most one statement and
21593 return whether we did. Do not simulate PHIs if they are in a
21594 BB not yet simulated.
21595 (ssa_propagate): Adjust to always drain the BB worklist whenever
21596 a BB is available there, likewise the VARYING edges list before
21597 the interesting edge list.
21599 2015-07-07 Christian Bruel <christian.bruel@st.com>
21602 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
21604 2015-07-07 Richard Biener <rguenther@suse.de>
21606 PR middle-end/66739
21607 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
21610 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
21612 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
21613 modes for operands 0 and 3. Use SImode for operands 2 and 3.
21614 Copy operand 0 to a temporary if !ext_register_operand. Remove
21615 ancient extract_bit_field workaround.
21616 (insv<mode>_1): Rename from mov<mode>_insv_1.
21617 (*insvqi): Rename from *movqi_insv_2.
21618 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
21619 for renamed insvsi_1.
21620 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
21622 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
21624 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
21625 call to nvptx_reorg_subreg.
21627 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
21629 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
21630 * graphite-dependencies.c, graphite-interchange.c,
21631 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
21632 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
21635 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
21637 * match.pd: Remove element_mode inside HONOR_*.
21638 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
21639 (~X | X -> -1, ~X ^ X -> -1): Merge.
21640 * tree.c (build_each_one_cst): New function.
21641 * tree.h (build_each_one_cst): Likewise.
21643 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21645 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21648 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
21650 * config.gcc <mips*-*-*>: Add fused-madd.opt.
21651 * config/mips/mips.opt (mfused-madd): Remove.
21652 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
21653 * config/mips/mips.h (TARGET_MIPS8000): New.
21654 (ISA_HAS_FP_MADD4_MSUB4): Remove.
21655 (ISA_HAS_FP_MADDF_MSUBF): Remove.
21656 (ISA_HAS_FP_MADD3_MSUB3): Remove.
21657 (ISA_HAS_NMADD4_NMSUB4): Remove.
21658 (ISA_HAS_NMADD3_NMSUB3): Remove.
21659 (ISA_HAS_FUSED_MADD4): New.
21660 (ISA_HAS_UNFUSED_MADD4): New.
21661 (ISA_HAS_FUSED_MADDF): New.
21662 (ISA_HAS_FUSED_MADD3): New.
21663 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
21664 (*fma<mode>4_madd3) New.
21665 (*fma<mode>4_madd4) New.
21666 (*fma<mode>4_maddf) New.
21668 (*fms<mode>4_msub3) New.
21669 (*fms<mode>4_msub4) New.
21671 (*fnma<mode>4_nmadd3) New.
21672 (*fnma<mode>4_nmadd4) New.
21674 (*fnms<mode>4_nmsub3) New.
21675 (*fnms<mode>4_nmsub4) New.
21676 (*madd4<mode>) Modify to be unfused only.
21677 (*msub4<mode>) Modify to be unfused only.
21678 (*nmadd4<mode>) Modify to be unfused only.
21679 (*nmsub4<mode>) Modify to be unfused only.
21680 (*madd3<mode>) Remove.
21681 (*msub3<mode>) Remove.
21682 (*nmadd3<mode>) Remove.
21683 (*nmsub3<mode>) Remove.
21684 (*nmadd3<mode>_fastmath) Remove.
21685 (*nmsub3<mode>_fastmath) Remove.
21686 (*nmadd4<mode>_fastmath) Update condition.
21687 (*nmsub4<mode>_fastmath) Update condition.
21689 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21692 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
21693 alignment attribute, exploring one level down for records and arrays.
21695 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
21697 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
21698 modes for operands 0 and 1. Use SImode for operands 2 and 3.
21699 Copy operand 1 to a temporary if !ext_register_operand. Remove
21700 ancient extract_bit_field workaround.
21701 (*extv<mode>): Rename from *mov<mode>_extv_1.
21702 (*extvqi): Rename from *movqi_extv_1.
21703 (extzv<mode>): Rename from extzv. Use SWI248 modes for
21704 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
21705 to a temporary if !ext_register_operand. Remove ancient
21706 extract_bit_field workaround.
21707 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
21708 (*extzvqi): Rename from *movqi_extzv_2.
21709 (*testqi_ext_3): Remove modes from const_int_operand predicated
21710 operands. Add "n" constraint.
21711 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
21712 operand. Add "J" constraint.
21713 (*btsq, *btrq, *btcq peephole2s): Remove mode from
21714 const_0_to_63 predicated operand.
21715 (regmode): New insn attribute.
21716 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
21717 to nonmemory_operand. Use regmode insn attribute.
21718 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
21719 (*jcc_bt<mode>_mask): Remove mode from operand 3.
21720 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
21721 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
21722 operands. Use "N" constraint instead of "n".
21724 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21726 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
21728 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21731 * config/i386/i386.c (iamcu_cost): New.
21732 (m_IAMCU): Likewise.
21733 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
21734 (processor_target_table): Add an entry for "iamcu".
21735 (processor_alias_table): Likewise.
21736 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
21737 (ix86_adjust_cost): Likewise.
21738 (ia32_multipass_dfa_lookahead): Likewise.
21739 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
21740 * config/i386/x86-tune.def: Updated for m_IAMCU.
21742 2015-07-06 Richard Biener <rguenther@suse.de>
21744 PR tree-optimization/66772
21745 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
21746 values are available in the PHI node BB when there are
21747 still unexecutable edges.
21749 2015-07-06 Richard Biener <rguenther@suse.de>
21751 PR tree-optimization/66767
21752 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
21753 Make sure to build the alignment test on a SSA name without
21754 final alignment info valid only if the alignment test
21757 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
21760 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
21761 loop start when inserting LSETUP.
21763 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21766 * config/i386/i386.c (ix86_option_override_internal): Allow
21767 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
21769 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21771 * read-md.c (decimal_string): Rename to ...
21772 (md_decimal_string): ... this.
21773 (handle_enum): Reflect this.
21775 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
21778 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
21780 2015-07-06 Richard Biener <rguenther@suse.de>
21782 PR middle-end/66759
21783 * match.pd: Add missing constraint of y to REAL_CST in
21784 REAL_CST - x CMP y to y - CST CMP x simplification.
21786 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
21788 PR tree-optimization/66757
21789 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
21791 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
21792 Sandra Loosemore <sandra@codesourcery.com>
21794 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
21795 Delete extern declaration.
21796 (gprel_constant_p): Add extern declaration.
21797 * config/nios2/constraints.md ("S"): Use gprel_constant_p
21798 instead of nios2_symbol_ref_in_small_data_p.
21799 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
21800 (nios2_symbol_ref_in_small_data_p): Make static.
21801 (gprel_constant_p): Make non-static.
21803 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
21805 * doc/fragments.texi (Target Fragment): Convert debian.org
21807 * doc/install.texi (Configuration): Ditto.
21809 2015-07-05 Jakub Jelinek <jakub@redhat.com>
21811 PR tree-optimization/66718
21812 * tree-vect-stmts.c (vectorizable_call): Replace uses of
21813 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
21815 PR tree-optimization/66718
21816 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
21817 vectorizable_load, vectorizable_condition): Move vectype,
21818 nunits, ncopies computation after checking what kind of statement
21821 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21823 * target-insns.def (extv, extzv, insv): New targetm instruction
21825 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
21827 * recog.c (simplify_while_replacing): Likewise.
21829 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21831 * target-insns.def (doloop_begin, doloop_end): New targetm
21832 instruction patterns.
21833 * loop-init.c: Include target.h.
21834 (pass_loop2::gate): Use the new targetm patterns instead of
21835 HAVE_*/gen_* interface.
21836 (pass_rtl_doloop::gate): Likewise.
21837 (pass_rtl_doloop::execute): Remove preprocessor condition.
21838 * hw-doloop.c: Build unconditionally.
21839 * loop-doloop.c: Likewise.
21840 (doloop_optimize): Use the new targetm patterns instead of
21841 HAVE_*/gen_* interface.
21842 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
21843 * modulo-sched.c (doloop_register_get): Likewise.
21845 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21847 * target-insns.def (clear_cache): New targetm instruction pattern.
21848 * builtins.c (expand_builtin___clear_cache): Use it instead of
21849 HAVE_*/gen_* interface.
21851 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21853 * target-insns.def (allocate_stack, check_stack, probe_stack)
21854 (probe_stack_address, split_stack_prologue, split_stack_space_check):
21855 New targetm instruction patterns.
21856 * explow.c (allocate_dynamic_stack_space): Use them instead of
21857 HAVE_*/gen_* interface.
21858 (emit_stack_probe): Likewise.
21859 (probe_stack_range): Likewise.
21860 * function.c (thread_prologue_and_epilogue_insns): Likewise.
21862 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21864 * target-insns.def (stack_protect_set, stack_protect_test): New
21865 targetm instruction patterns.
21866 * cfgexpand.c (stack_protect_prologue): Use them instead of
21867 HAVE_*/gen_* interface.
21868 * function.c (stack_protect_epilogue): Likewise.
21870 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21872 * expr.h (gen_move_insn_uncast): Delete.
21873 * expr.c (gen_move_insn_uncast): Delete.
21875 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21877 * target-insns.def (restore_stack_block, restore_stack_function)
21878 (restore_stack_nonlocal, save_stack_block, save_stack_function)
21879 (save_stack_nonlocal): New targetm instruction patterns.
21880 * builtins.c (expand_builtin_apply): Use them instead of
21881 HAVE_*/gen_* interface.
21882 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
21884 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21886 * target-insns.def (trap): New targetm instruction pattern.
21887 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
21889 * explow.c (allocate_dynamic_stack_space): Likewise.
21890 * ifcvt.c (find_if_header): Likewise.
21892 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21894 * target-insns.def (prefetch): New targetm instruction pattern.
21895 * tree-ssa-loop-prefetch.c: Include targeth.
21896 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
21897 of HAVE_*/gen_* interface.
21898 * builtins.c (expand_builtin_prefetch): Likewise.
21899 * toplev.c (process_options): Likewise.
21901 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21903 * target-insns.def (untyped_call, untyped_return): New targetm
21904 instruction patterns.
21905 * builtins.c (expand_builtin_apply): Use them instead of
21906 HAVE_*/gen_* interface.
21907 (result_vector): Define unconditionally.
21909 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21911 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
21912 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
21913 (nonlocal_goto_receiver): New targetm instruction patterns.
21914 * builtins.c (expand_builtin_setjmp_setup): Use them instead
21915 of HAVE_*/gen_* interface.
21916 (expand_builtin_setjmp_receiver): Likewise.
21917 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
21918 * except.c (expand_dw2_landing_pad_for_region): Likewise.
21920 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21922 * target.def: Add code_for_* hooks.
21923 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
21924 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
21925 * target-insns.def (casesi, tablejump): New targetm instruction
21927 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
21928 (do_tablejump): Likewise.
21929 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
21930 (expand_sjlj_dispatch_table): Likewise.
21931 * targhooks.c (default_case_values_threshold): Likewise.
21933 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
21935 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
21936 Use rtx_insn * instead of rtx.
21937 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
21938 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
21939 (nios2_call_tls_get_addr): Likewise.
21940 (nios2_emit_expensive_div): Likewise.
21941 (nios2_emit_move_sequence): Change return type to bool.
21942 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
21943 Change return type to bool.
21945 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
21948 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
21950 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
21953 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
21954 of register_operand. Remove constraint.
21956 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
21958 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
21959 the first argument.
21961 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
21963 * attribs.c (decl_attributes): Guard inform with the return value
21964 of the preceding warning.
21966 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
21968 * doc/invoke.texi (moverride): Move to correct section.
21970 2015-07-03 Richard Biener <rguenther@suse.de>
21972 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
21974 (dt_operand::gen_gimple_expr): After valueizing operands
21975 re-canonicalize operand order for commutative tree codes.
21977 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
21980 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
21982 (__crc32w): Likewise.
21983 (__crc32d): Likewise.
21984 (__rdpmc): Likewise.
21985 (__rdtscp): Likewise.
21986 (_rdpmc): Likewise.
21987 (_rdtscp): Likewise.
21988 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
21991 2015-07-03 Richard Biener <rguenther@suse.de>
21993 * fold-const.c (fold_mathfn_compare): Remove.
21994 (fold_inf_compare): Likewise.
21995 (fold_comparison): Move floating point comparison simplifications...
21996 * match.pd: ... to patterns here. Introduce simple_comparisons
21997 operator list and use it for patterns formerly in fold_comparison.
21999 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22001 PR tree-optimization/66119
22002 * toplev.c (process_options): Don't set up default values for
22003 the sra_max_scalarization_size_{speed,size} parameters.
22004 * tree-sra (analyze_all_variable_accesses): If no values
22005 have been set for the sra_max_scalarization_size_{speed,size}
22006 parameters, call get_move_ratio to get target defaults.
22008 2015-07-03 Richard Biener <rguenther@suse.de>
22010 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
22011 * match.pd: ... here.
22013 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
22016 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
22017 is not actually the default on FreeBSD.
22019 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22021 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
22023 (CMPGE_8HI): Likewise.
22024 (CMPGE_4SI): Likewise.
22025 (CMPGE_2DI): Likewise.
22026 (CMPGE_U16QI): Likewise.
22027 (CMPGE_U8HI): Likewise.
22028 (CMPGE_U4SI): Likewise.
22029 (CMPGE_U2DI): Likewise.
22030 (CMPLE_16QI): Likewise.
22031 (CMPLE_8HI): Likewise.
22032 (CMPLE_4SI): Likewise.
22033 (CMPLE_2DI): Likewise.
22034 (CMPLE_U16QI): Likewise.
22035 (CMPLE_U8HI): Likewise.
22036 (CMPLE_U4SI): Likewise.
22037 (CMPLE_U2DI): Likewise.
22038 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22039 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
22040 ALTIVEC_BUILTIN_VEC_CMPLE.
22041 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
22042 floating-point vector modes.
22043 (vector_nlt<mode>): New define_expand.
22044 (vector_nltu<mode>): Likewise.
22045 (vector_ngt<mode>): Likewise.
22046 (vector_ngtu<mode>): Likewise.
22048 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
22050 PR rtl-optimization/66706
22051 * combine.c (make_compound_operation): If an AND of SUBREG of
22052 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
22054 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
22056 * tree-pass.h (make_pass_ch_vect): New.
22057 * passes.def: Add pass_ch_vect just before pass_if_conversion.
22059 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
22060 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
22061 make_pass_ch_vect): New.
22062 (pass_ch): Extend ch_base.
22064 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
22065 (ch_base::copy_headers): ...here.
22067 2015-07-02 Richard Biener <rguenther@suse.de>
22069 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
22070 * fold-const.c (get_pointer_modulus_and_residue): Remove.
22071 (fold_binary_loc): Implement (T)ptr & CST in terms of
22072 get_pointer_alignment_1.
22073 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
22074 Make sure to build the alignment test on a SSA name without
22075 final alignment info valid only after the prologue.
22077 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
22079 * config/cris/cris.md ("epilogue"): Remove condition.
22080 ("prologue"): Ditto.
22082 2015-07-02 Richard Biener <rguenther@suse.de>
22084 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
22085 parameter to record a condition that is false.
22086 (record_conditions): When recording an extra NE_EXPR that is
22087 true also record a EQ_EXPR that is false.
22089 2015-07-02 Bin Cheng <bin.cheng@arm.com>
22091 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
22092 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
22093 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
22094 (set_iv, find_interesting_uses_address, add_candidate_1): New
22095 argument to alloc_iv.
22096 (find_interesting_uses_op, find_interesting_uses_cond): Don't
22097 duplicate struct iv.
22098 (free_loop_data): Don't free struct iv explicitly.
22099 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
22101 2015-07-01 DJ Delorie <dj@redhat.com>
22103 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
22105 (SUPPORTS_DISCRIMINATOR): Define.
22107 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
22110 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
22111 there are no CALLs in the same pattern.
22113 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
22115 PR rtl-optimization/61047
22116 * rtlanal.c (get_initial_register_offset): New function.
22117 (rtx_addr_can_trap_p_1): Check offsets of stack references.
22119 2015-07-01 Richard Biener <rguenther@suse.de>
22121 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
22122 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
22123 ~X CMP C -> X CMP' ~C to ...
22124 * match.pd: ... patterns here.
22126 2015-07-01 Nick Clifton <nickc@redhat.com>
22128 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
22129 a 16-bit value into a 20-bit memory slot.
22131 2015-07-01 Jiong Wang <jiong.wang@arm.com>
22133 * doc/sourcebuild.texi (AArch64-specific attributes): Document
22134 "aarch64_tiny", "aarch64_small", "aarch64_large",
22135 "aarch64_little_endian", "aarch64_big_endian".
22137 2015-07-01 Jiong Wang <jiong.wang@arm.com>
22139 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
22140 Document "aarch64_small_fpic".
22142 2015-07-01 Jiong Wang <jiong.wang@arm.com>
22144 * configure.ac: Add check for aarch64 assembler -fpic relocation
22146 * configure: Regenerate.
22147 * config.in: Regenerate.
22148 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
22149 to -fPIC if not support of -fpic relocation modifier in assembler.
22151 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
22154 * rtl.c (classify_insn): Handle returns in PARALLELs.
22156 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
22158 PR middle-end/66633
22159 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
22160 to true if the function is nested and if not optimizing.
22161 (convert_local_omp_clauses): Initialize need_frame to true if the
22162 function contains nested functions and if not optimizing.
22164 2015-07-01 Richard Biener <rguenther@suse.de>
22166 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
22167 (X & Y) ^ Y -> ~X & Y transforms to ...
22168 * match.pd: ... here.
22170 2015-07-01 Richard Biener <rguenther@suse.de>
22172 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
22173 of converts to avoid uninteresting noise from the conversion
22174 simplifying patterns.
22176 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
22178 * config/c6x/c6x.c (try_rename_operands): Do not depend on
22179 gcc_assert evaluating its argument for side-effect.
22181 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
22184 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
22187 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
22189 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
22190 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
22191 (hash_scc): Add this_ref_p and ref_p parameters and pass them
22192 to the inner DFS walk.
22194 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22196 * target-insns.def (jump): New targetm instruction pattern.
22197 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
22198 instead of gen_jump.
22199 (fix_up_crossing_landing_pad): Likewise.
22200 (add_labels_and_missing_jumps): Likewise.
22201 (fix_crossing_conditional_branches): Likewise.
22202 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
22203 (force_nonfallthru_and_redirect): Likewise.
22204 * cse.c (cse_insn): Likewise.
22205 * expmed.c (expand_divmod): Likewise.
22206 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
22207 * haifa-sched.c (init_before_recovery): Likewise.
22208 (sched_create_recovery_edges): Likewise.
22209 * ifcvt.c (find_cond_trap): Likewise.
22210 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
22211 (expand_float, expand_fix): Likewise.
22212 * stmt.c (emit_jump): Likewise.
22214 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22216 * defaults.h (HAVE_load_multiple, gen_load_multiple)
22217 (HAVE_store_multiple, gen_store_multiple): Delete.
22218 * target-insns.def (load_multiple, store_multiple): New targetm
22219 instruction patterns.
22220 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
22221 of HAVE_*/gen_* interface.
22223 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22225 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
22226 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
22227 (gen_mem_signal_fence): Delete.
22228 * target-insns.def (mem_signal_fence, mem_thread_fence)
22229 (memory_barrier): New targetm instruction patterns.
22230 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
22232 (expand_mem_signal_fence): Likewise.
22234 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22236 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
22237 * target-insns.def (epilogue, prologue, sibcall_prologue): New
22238 targetm instruction patterns.
22239 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
22241 * calls.c (expand_call): Likewise.
22242 * cfgrtl.c (cfg_layout_finalize): Likewise.
22243 * df-scan.c (df_get_entry_block_def_set): Likewise.
22244 (df_get_exit_block_use_set): Likewise.
22245 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
22246 * final.c (final_start_function): Likewise.
22247 * function.c (thread_prologue_and_epilogue_insns): Likewise.
22248 (reposition_prologue_and_epilogue_notes): Likewise.
22249 * reorg.c (find_end_label): Likewise.
22250 * toplev.c (process_options): Likewise.
22252 2015-06-30 David Malcolm <dmalcolm@redhat.com>
22254 * typed-splay-tree.h: New file.
22256 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
22259 * lra-int.h (lra_substitute_pseudo): Add a parameter.
22260 (lra_substitute_pseudo_within_insn): Ditto.
22261 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
22263 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
22264 to lra_substitute_pseudo.
22265 * lra-lives.c (process_bb_lives): Add an argument to
22266 lra_substitute_pseudo_within_insn call.
22267 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
22268 argument to lra_substitute_pseudo and
22269 lra_substitute_pseudo_within_insn calls.
22270 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
22272 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
22274 * configure: Regenerated.
22276 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
22278 * config.gcc: Support i[34567]86-*-elfiamcu target.
22279 * config/i386/iamcu.h: New.
22280 * config/i386/i386.opt: Add -miamcu.
22281 * doc/invoke.texi: Document -miamcu.
22282 * common/config/i386/i386-common.c (ix86_handle_option): Turn
22283 off x87/MMX/SSE/AVX codegen for -miamcu.
22284 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22285 __iamcu/__iamcu__ for -miamcu.
22286 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
22287 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
22288 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
22289 * config/i386/i386.c (ix86_option_override_internal): Ignore and
22290 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
22291 MCU by default. Default long double to 64-bit for Intel MCU.
22292 Turn on -freg-struct-return for Intel MCU. Issue an error when
22293 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
22295 (function_arg_advance_32): Pass value whose size is no larger
22296 than 8 bytes in registers for Intel MCU.
22297 (function_arg_32): Likewise.
22298 (ix86_return_in_memory): Return value whose size is no larger
22299 than 8 bytes in registers for Intel MCU.
22300 (iamcu_alignment): New function.
22301 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
22303 (ix86_local_alignment): Don't increase alignment for Intel MCU.
22304 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
22307 2015-06-30 Marek Polacek <polacek@redhat.com>
22309 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
22310 both operands of the resulting expression.
22312 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
22313 the final expression with the operand's type and then convert
22314 it to the type of the expression.
22316 2015-06-30 Richard Biener <rguenther@suse.de>
22318 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
22319 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
22320 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
22321 * match.pd: ... to patterns here.
22323 2015-06-30 Richard Biener <rguenther@suse.de>
22325 PR tree-optimization/66704
22326 * tree-vect-data-refs.c (vect_setup_realignment): Use
22327 make_ssa_name for non-SSA name source.
22329 2015-06-30 Jakub Jelinek <jakub@redhat.com>
22331 PR middle-end/66702
22332 * omp-low.c (simd_clone_adjust): Handle addressable linear
22333 or uniform parameters or non-gimple type uniform parameters.
22335 2015-06-30 Richard Biener <rguenther@suse.de>
22337 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
22338 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
22339 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
22340 * match.pd: ... here.
22341 Add a few cases of A - B -> A + (-B) when B "easily" negates.
22342 Move (x & y) | x -> x and friends before
22343 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
22345 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
22347 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
22348 -mfix-ut699 is not specified.
22349 (leon3_load): Rename into...
22350 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
22353 2015-06-30 Marek Polacek <polacek@redhat.com>
22355 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
22356 * match.pd: ... here.
22358 2015-06-30 Richard Biener <rguenther@suse.de>
22360 * target-insns.def (canonicalize_funcptr_for_compare): Add.
22361 * fold-const.c (build_range_check): Replace uses of
22362 HAVE_canonicalize_funcptr_for_compare.
22363 (fold_widened_comparison): Likewise.
22364 (fold_sign_changed_comparison): Likewise.
22365 * dojump.c: Include "target.h".
22366 (do_compare_and_jump): Replace uses of
22367 HAVE_canonicalize_funcptr_for_compare and
22368 gen_canonicalize_funcptr_for_compare.
22369 * expr.c (do_store_flag): Likewise.
22371 2015-06-30 Tom de Vries <tom@codesourcery.com>
22373 PR tree-optimization/66652
22374 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
22375 max_loop_iterations to determine if nit + 1 overflows.
22377 2015-06-30 Richard Biener <rguenther@suse.de>
22379 * tree-vrp.c (register_edge_assert_for_2): Also register
22380 asserts for dominating conversion results.
22382 2015-06-30 Bin Cheng <bin.cheng@arm.com>
22384 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
22385 field in struct iv.
22387 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
22390 * configure.ac: Fix filds and fildq test for 64-bit.
22391 * configure: Regenerated.
22393 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
22395 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
22396 (nvptx_reorg): Here. Keep the non-subreg pieces.
22398 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
22400 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
22401 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22403 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
22405 * config/i386/i386.md (*jcc_1): Use %! in asm template.
22406 Set attribute "length_nobnd" instead of "length".
22409 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
22411 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
22413 * config/nios2/nios2.c (nios2_delegitimize_address): Make
22414 assert less restrictive.
22416 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
22419 * cgraphunit.c (cgraph_node::finalize_function): Do not call
22420 do_warn_unused_parameter.
22421 * function.c (do_warn_unused_parameter): Move from here.
22422 * function.h (do_warn_unused_parameter): Do not declare.
22424 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22427 * gcc.target/arm/armv-sync-comp-swap.c: New.
22428 * gcc.target/arm/armv-sync-op-acquire.c: New.
22429 * gcc.target/arm/armv-sync-op-full.c: New.
22430 * gcc.target/arm/armv-sync-op-release.c: New.
22432 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22435 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
22436 initial acquire barrier with final barrier.
22438 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22441 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
22442 initial acquire barrier with final barrier.
22444 2015-06-29 Richard Henderson <rth@redhat.com>
22446 * config/i386/constraints.md (Bf): New constraint.
22447 * config/i386/i386-c.c (ix86_target_macros): Define
22448 __GCC_ASM_FLAG_OUTPUTS__.
22449 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
22451 * doc/extend.texi (FlagOutputOperands): Document them.
22453 2015-06-29 Jiong Wang <jiong.wang@arm.com>
22455 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
22456 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
22458 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
22459 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
22460 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
22461 (aarch64_symbol_context): Ditto.
22462 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
22463 and use new pattern name.
22464 (aarch64_expand_mov_immediate): Ditto.
22465 (aarch64_print_operand): Ditto.
22466 (aarch64_classify_tls_symbol): Ditto.
22468 2015-06-29 Marek Polacek <polacek@redhat.com>
22469 Marc Glisse <marc.glisse@inria.fr>
22471 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
22472 * match.pd: ... pattern here.
22474 2015-06-29 Tom de Vries <tom@codesourcery.com>
22476 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
22477 function structure.
22479 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22481 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
22482 feature description, split out the native option, add a link to
22483 the feature documentation, rearrange and slightly rewrite text.
22484 (Aarch64 options, -mcpu): Likewise.
22485 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
22486 +rdma implies Adv. SIMD.
22488 2015-06-29 Marek Polacek <polacek@redhat.com>
22491 * function.c (stack_protect_epilogue): Remove a cast to int.
22492 * doc/invoke.texi: Update -Wswitch-bool description.
22494 2015-06-29 Richard Biener <rguenther@suse.de>
22496 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
22497 * fold-const.c (fold_binary_loc): Move &A - &B simplification
22498 via ptr_difference_const ...
22499 * match.pd: ... here.
22500 When matching (X ^ Y) == Y also match with swapped operands.
22502 2015-06-29 Richard Biener <rguenther@suse.de>
22504 * lto-streamer.h (LTO_major_version): Bump to 5.
22506 2015-06-29 Richard Biener <rguenther@suse.de>
22508 PR tree-optimization/66677
22509 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
22510 STMT_VINFO_VEC_STMT clobbering less strict.
22512 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
22514 PR middle-end/64130
22515 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
22516 division, compute max and min when value ranges for dividend and
22517 divisor are available.
22519 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
22520 Sandra Loosemore <sandra@codesourcery.com>
22522 * regrename.h (regrename_do_replace): Change to return bool.
22523 * regrename.c (rename_chains): Check return value of
22524 regname_do_replace.
22525 (regrename_do_replace): Re-validate the modified insns and
22526 return bool status.
22527 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
22528 Update to match rename_chains changes.
22529 * config/c6x/c6x.c (try_rename_operands): Assert that
22530 regrename_do_replace returns true.
22532 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
22534 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
22535 operand 2 here. Use copy_addr_to_reg to copy non-index
22536 register operand 2 to a temporary.
22537 (<mode>_stx): Ditto for operand 1.
22538 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
22539 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
22540 (ix86_store_bounds): Ditto.
22542 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
22544 * print-tree.c (print_node) [TREE_VEC]: Print its length.
22546 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
22548 * gimple.c (gimple_call_set_fndecl): Remove.
22549 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
22550 build1_loc directly instead of build_fold_addr_expr_loc.
22552 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
22554 * hash-map.h (hash_map::traverse): Use the definition of the
22555 Key typedef rather than the typedef itself.
22557 2015-06-26 Martin Jambor <mjambor@suse.cz>
22560 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
22561 NULL instead of calling dump_enabled_p.
22563 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22565 * config/aarch64/aarch64.opt: (override): New.
22566 * doc/invoke.texi (override): Document.
22567 * config/aarch64/aarch64.c (aarch64_flag_desc): New
22568 (aarch64_fusible_pairs): Likewise.
22569 (aarch64_tuning_flags): Likewise.
22570 (aarch64_tuning_override_function): Likewise.
22571 (aarch64_tuning_override_functions): Likewise.
22572 (aarch64_parse_one_option_token): Likewise.
22573 (aarch64_parse_boolean_options): Likewise.
22574 (aarch64_parse_fuse_string): Likewise.
22575 (aarch64_parse_tune_string): Likewise.
22576 (aarch64_parse_one_override_token): Likewise.
22577 (aarch64_parse_override_string): Likewise.
22578 (aarch64_override_options): Parse the -override string if it
22581 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22583 * config/aarch64/aarch64-protos.h (tune_params): Remove
22584 const from members.
22585 (aarch64_tune_params): Remove const, change to no longer be
22587 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
22588 change to no longer be a pointer, initialize to generic_tunings.
22589 (aarch64_min_divisions_for_recip_mul): Change dereference of
22590 aarch64_tune_params to member access.
22591 (aarch64_reassociation_width): Likewise.
22592 (aarch64_rtx_mult_cost): Likewise.
22593 (aarch64_address_cost): Likewise.
22594 (aarch64_branch_cost): Likewise.
22595 (aarch64_rtx_costs): Likewise.
22596 (aarch64_register_move_cost): Likewise.
22597 (aarch64_memory_move_cost): Likewise.
22598 (aarch64_sched_issue_rate): Likewise.
22599 (aarch64_builtin_vectorization_cost): Likewise.
22600 (aarch64_override_options): Take a copy of the selected tuning
22601 struct in to aarch64_tune_params, rather than just setting
22602 a pointer, change dereferences of aarch64_tune_params to member
22604 (aarch64_override_options_after_change): Change dereferences of
22605 aarch64_tune_params to member access.
22606 (aarch64_macro_fusion_p): Likewise.
22607 (aarch_macro_fusion_pair_p): Likewise.
22608 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
22610 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22612 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
22613 (aarch64_tune_flags): Likewise.
22614 (AARCH64_TUNE_FMA_STEERING): Likewise.
22615 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
22616 to AARCH64_FL_USE_FMA_STEERING_PASS.
22617 (cortex-a57.cortex-a53): Likewise.
22618 (cortex-a72): Use cortexa72_tunings.
22619 (cortex-a72.cortex-a53): Likewise.
22620 (exynos-m1): Likewise.
22621 * config/aarch64/aarch64-protos.h (tune_params): Add
22622 a field: extra_tuning_flags.
22623 * config/aarch64/aarch64-tuning-flags.def: New.
22624 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
22625 (aarch64_extra_tuning_flags): Likewise.
22626 (aarch64_tune_params): Declare here.
22627 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
22628 (cortexa53_tunings): Likewise.
22629 (cortexa57_tunings): Likewise.
22630 (thunderx_tunings): Likewise.
22631 (xgene1_tunings): Likewise.
22632 (cortexa72_tunings): New.
22633 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
22634 (gate): Check against aarch64_tune_params.
22635 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
22638 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22640 * config/aarch64/aarch64-fusion-pairs.def: New.
22641 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
22642 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
22643 aarch64_fusion_pairs.
22644 (AARCH64_FUSE_MOV_MOVK): Likewise.
22645 (AARCH64_FUSE_ADRP_ADD): Likewise.
22646 (AARCH64_FUSE_MOVK_MOVK): Likewise.
22647 (AARCH64_FUSE_ADRP_LDR): Likewise.
22648 (AARCH64_FUSE_CMP_BRANCH): Likewise.
22650 2015-06-26 Jiong Wang <jiong.wang@arm.com>
22652 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
22653 SYMBOL_SMALL_GOT_28K.
22654 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
22655 relocation modifiers.
22656 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
22657 (ldr_got_small_28k_<mode>): New.
22658 (ldr_got_small_28k_sidi): New.
22659 * config/aarch64/iterators.md (got_modifier): New mode iterator.
22660 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
22661 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
22662 SYMBOL_SMALL_GOT_28K.
22663 (aarch64_rtx_costs): Add costs for new instruction sequences.
22664 (initialize_aarch64_code_model): Initialize new model.
22665 (aarch64_classify_symbol): Recognize new model and new symbol classification.
22666 (aarch64_asm_preferred_eh_data_format): Support new model.
22667 (aarch64_load_symref_appropriately): Generate new instruction
22668 sequences for -fpic.
22669 (TARGET_USE_PSEUDO_PIC_REG): New definition.
22670 (aarch64_use_pseudo_pic_reg): New function.
22672 2015-06-26 Jiong Wang <jiong.wang@arm.com>
22674 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
22675 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
22676 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
22677 (aarch64_expand_mov_immediate): Ditto.
22678 (aarch64_print_operand): Ditto.
22679 (aarch64_classify_symbol): Ditto.
22681 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
22683 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
22685 2015-06-26 Bin Cheng <bin.cheng@arm.com>
22688 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
22689 assertion failed. Remove assertion itself.
22691 2015-06-26 Richard Biener <rguenther@suse.de>
22693 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
22694 and -A CMP CST -> A CMP -CST which is redundant with a pattern
22696 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
22697 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
22698 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
22699 * match.pd: ... patterns here.
22701 2015-06-26 Marek Polacek <polacek@redhat.com>
22703 * match.pd ((x | y) & ~(x & y) -> x ^ y,
22704 (x | y) & (~x ^ y) -> x & y): New patterns.
22706 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
22708 * rtl.h (emit): Add an optional boolean parameter to control
22709 whether barriers are emitted.
22710 * emit-rtl.c (emit): Likewise.
22711 * gensupport.c (get_emit_function): Return null rather than "emit".
22712 * genemit.c (gen_emit_seq): Handle the null return value.
22713 Don't emit barriers after the final instruction in the sequence.
22714 * gentarget-def.c (main): Don't emit barriers after the instruction.
22716 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22718 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
22719 TARGET_UNIFIED_ASM.
22721 2015-06-26 Richard Biener <rguenther@suse.de>
22723 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
22725 2015-06-26 Richard Biener <rguenther@suse.de>
22727 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
22728 irrespective on whether the inner operation has a single use
22729 of both off are constant.
22731 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
22732 Segher Boessenkool <segher@kernel.crashing.org>
22735 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
22736 before doing PUT_MODE or PUT_CODE on operands to avoid
22737 in-place RTX modification.
22739 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22741 * gentarget-def.c (def_target_insn): Cast return of strtol to
22744 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22746 * gimple.h (gimple_call_set_fn): Move inline function.
22747 * gimple.c (gimple_call_set_fn): Relocate here.
22749 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
22753 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
22754 the replacement insn will work.
22756 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22758 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
22761 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22763 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
22764 * cgraph.h: Include ipa-ref.h and plugin-api.h.
22765 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
22766 (symtab_node::address_can_be_compared_p): Move function.
22767 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
22769 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
22770 * auto-profile.c: Likewise.
22771 * bb-reorder.c: Likewise.
22772 * builtins.c: Likewise.
22773 * calls.c: Likewise.
22774 * cfgexpand.c: Likewise.
22775 * cgraphbuild.c: Likewise.
22776 * cgraphclones.c: Likewise.
22777 * cgraphunit.c: Likewise.
22778 * combine.c: Likewise.
22779 * coverage.c: Likewise.
22780 * data-streamer-in.c: Likewise.
22781 * data-streamer-out.c: Likewise.
22782 * data-streamer.c: Likewise.
22783 * dbxout.c: Likewise.
22784 * dwarf2out.c: Likewise.
22785 * except.c: Likewise.
22786 * expr.c: Likewise.
22787 * final.c: Likewise.
22788 * fold-const.c: Likewise.
22789 * ggc-page.c: Likewise.
22790 * gimple-fold.c: Likewise.
22791 * gimple-iterator.c: Likewise.
22792 * gimple-pretty-print.c: Likewise.
22793 * gimple-streamer-in.c: Likewise.
22794 * gimple-streamer-out.c: Likewise.
22795 * gimple.c: Likewise.
22796 * gimplify.c: Likewise.
22797 * ipa-chkp.c: Likewise.
22798 * ipa-comdats.c: Likewise.
22799 * ipa-cp.c: Likewise.
22800 * ipa-devirt.c: Likewise.
22801 * ipa-icf-gimple.c: Likewise.
22802 * ipa-icf.c: Likewise.
22803 * ipa-inline-analysis.c: Likewise.
22804 * ipa-inline-transform.c: Likewise.
22805 * ipa-inline.c: Likewise.
22806 * ipa-polymorphic-call.c: Likewise.
22807 * ipa-profile.c: Likewise.
22808 * ipa-prop.c: Likewise.
22809 * ipa-pure-const.c: Likewise.
22810 * ipa-ref.c: Likewise.
22811 * ipa-reference.c: Likewise.
22812 * ipa-split.c: Likewise.
22813 * ipa-utils.c: Likewise.
22814 * ipa-visibility.c: Likewise.
22816 * langhooks.c: Likewise.
22817 * lto-cgraph.c: Likewise.
22818 * lto-compress.c: Likewise.
22819 * lto-opts.c: Likewise.
22820 * lto-section-in.c: Likewise.
22821 * lto-section-out.c: Likewise.
22822 * lto-streamer-in.c: Likewise.
22823 * lto-streamer-out.c: Likewise.
22824 * lto-streamer.c: Likewise.
22825 * omp-low.c: Likewise.
22826 * opts-global.c: Likewise.
22827 * passes.c: Likewise.
22828 * predict.c: Likewise.
22829 * print-tree.c: Likewise.
22830 * profile.c: Likewise.
22832 * sanopt.c: Likewise.
22833 * stor-layout.c: Likewise.
22834 * symtab.c: Likewise.
22835 * toplev.c: Likewise.
22836 * trans-mem.c: Likewise.
22837 * tree-cfg.c: Likewise.
22838 * tree-chkp.c: Likewise.
22839 * tree-eh.c: Likewise.
22840 * tree-emutls.c: Likewise.
22841 * tree-inline.c: Likewise.
22842 * tree-nested.c: Likewise.
22843 * tree-parloops.c: Likewise.
22844 * tree-pretty-print.c: Likewise.
22845 * tree-profile.c: Likewise.
22846 * tree-sra.c: Likewise.
22847 * tree-ssa-alias.c: Likewise.
22848 * tree-ssa-live.c: Likewise.
22849 * tree-ssa-loop-ivcanon.c: Likewise.
22850 * tree-ssa-loop-ivopts.c: Likewise.
22851 * tree-ssa-pre.c: Likewise.
22852 * tree-ssa-sccvn.c: Likewise.
22853 * tree-ssa-strlen.c: Likewise.
22854 * tree-ssa-structalias.c: Likewise.
22855 * tree-streamer-in.c: Likewise.
22856 * tree-streamer-out.c: Likewise.
22857 * tree-streamer.c: Likewise.
22858 * tree-switch-conversion.c: Likewise.
22859 * tree-tailcall.c: Likewise.
22860 * tree-vect-data-refs.c: Likewise.
22861 * tree-vect-stmts.c: Likewise.
22862 * tree-vectorizer.c: Likewise.
22863 * tree.c: Likewise.
22864 * tsan.c: Likewise.
22865 * ubsan.c: Likewise.
22866 * value-prof.c: Likewise.
22867 * varasm.c: Likewise.
22868 * varpool.c: Likewise.
22869 * config/arm/arm.c: Likewise.
22870 * config/bfin/bfin.c: Likewise.
22871 * config/c6x/c6x.c: Likewise.
22872 * config/cris/cris.c: Likewise.
22873 * config/darwin-c.c: Likewise.
22874 * config/darwin.c: Likewise.
22875 * config/i386/i386.c: Likewise.
22876 * config/i386/winnt.c: Likewise.
22877 * config/microblaze/microblaze.c: Likewise.
22878 * config/mips/mips.c: Likewise.
22879 * config/rs6000/rs6000.c: Likewise.
22880 * config/rx/rx.c: Likewise.
22881 * config/s390/s390.c: Likewise.
22882 * config/tilegx/mul-tables.c: Likewise.
22884 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22886 * config/aarch64/aarch64.c, config/alpha/alpha.c,
22887 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
22888 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
22889 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
22890 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22891 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22892 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22893 config/microblaze/microblaze.c, config/mips/mips.c,
22894 config/mmix/mmix.c, config/mn10300/mn10300.c,
22895 config/moxie/moxie.c, config/msp430/msp430.c,
22896 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22897 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22898 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22899 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22900 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22901 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22902 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
22903 target-def.h include.
22904 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
22906 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22908 * Makefile.in (TARGET_DEF): Add target-insns.def.
22909 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
22910 (build/gentarget-def.o): New rule.
22911 (genprogrtl): Add target-def.
22912 * target-insns.def, gentarget-def.c: New files.
22913 * target.def: Add targetm.have_* and targetm.gen_* hooks,
22914 based on the contents of target-insns.def.
22915 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
22916 (HAVE_return, gen_return): Delete.
22917 * target-def.h: Include insn-target-def.h.
22918 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
22919 instead of direct calls. Rely on them to do the appropriate assertions.
22920 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
22921 (convert_jumps_to_returns): Use targetm interface instead of
22923 (thread_prologue_and_epilogue_insns): Likewise.
22924 * reorg.c (find_end_label, dbr_schedule): Likewise.
22925 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
22926 * shrink-wrap.c (convert_to_simple_return): Likewise.
22927 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
22929 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22931 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
22932 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22933 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
22934 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
22935 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22936 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22937 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22938 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
22939 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
22940 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22941 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22942 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22943 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22944 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22945 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22946 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
22949 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22951 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
22952 (unbounded_int_hashmap_traits::key_type): Likewise.
22953 * hash-map.h (hash_map): Get the key type from the traits.
22954 * hash-traits.h (default_hash_traits): By default, inherit from the
22955 template parameter.
22956 * alias.c (alias_set_traits): Delete.
22957 (alias_set_entry_d::children): Use alias_set_hash as the first
22958 template parameter.
22959 (record_alias_subset): Update accordingly.
22960 * except.c (tree_hash_traits): Delete.
22961 (type_to_runtime_map): Use tree_hash as the first template parameter.
22962 (init_eh): Update accordingly.
22963 * genmatch.c (capture_id_map_hasher): Delete.
22964 (cid_map_t): Use nofree_string_hash as first template parameter.
22965 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
22966 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
22967 Use symbol_compare_hash as the first template parameter in
22968 subdivide_hash_map.
22969 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
22970 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
22971 template parameter.
22972 * passes.c (pass_registry_hasher): Delete.
22973 (name_to_pass_map): Use nofree_string_hash as the first template
22975 (register_pass_name): Update accordingly.
22976 * sanopt.c (sanopt_tree_map_traits): Delete.
22977 (sanopt_tree_triplet_map_traits): Delete.
22978 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
22979 template parameter.
22980 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
22981 the first template parameter.
22982 * sese.c (rename_map_hasher): Delete.
22983 (rename_map_type): Use tree_ssa_name_hash as the first template
22985 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
22986 (function_summary::m_map): Use map_hash as the first template
22988 (function_summary::release): Update accordingly.
22989 * tree-if-conv.c (phi_args_hash_traits): Delete.
22990 (predicate_scalar_phi): Use tree_operand_hash as the first template
22991 parameter to phi_arg_map.
22992 * tree-inline.h (dependence_hasher): Delete.
22993 (copy_body_data::dependence_map): Use dependence_hash as the first
22994 template parameter.
22995 * tree-inline.c (remap_dependence_clique): Update accordingly.
22996 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
22997 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
22999 (addr_stridxptr): Update accordingly.
23000 * value-prof.c (profile_id_traits): Delete.
23001 (cgraph_node_map): Use profile_id_hash as the first template
23003 (init_node_map): Update accordingly.
23004 * config/alpha/alpha.c (string_traits): Delete.
23005 (machine_function::links): Use nofree_string_hash as the first
23006 template parameter.
23007 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
23008 * config/m32c/m32c.c (pragma_traits): Delete.
23009 (pragma_htab): Use nofree_string_hash as the first template parameter.
23010 (m32c_note_pragma_address): Update accordingly.
23011 * config/mep/mep.c (pragma_traits): Delete.
23012 (pragma_htab): Use nofree_string_hash as the first template parameter.
23013 (mep_note_pragma_flag): Update accordingly.
23014 * config/mips/mips.c (mips16_flip_traits): Delete.
23015 (mflip_mips16_htab): Use nofree_string_hash as the first template
23017 (mflip_mips16_use_mips16_p): Update accordingly.
23018 (local_alias_traits): Delete.
23019 (mips16_local_aliases): Use nofree_string_hash as the first template
23021 (mips16_local_alias): Update accordingly.
23023 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23025 * hash-map-traits.h (default_hashmap_traits): Delete.
23027 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23029 * hash-map-traits.h (unbounded_hashmap_traits): New class.
23030 (unbounded_int_hashmap_traits): Likewise.
23031 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
23033 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23035 * ipa-icf.h (symbol_compare_hash): New class.
23036 (symbol_compare_hashmap_traits): Use it.
23037 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
23038 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
23039 (mem_alloc_description::reverse_mem_map_t): Remove redundant
23040 default_hashmap_traits.
23041 * sanopt.c (sanopt_tree_triplet_hash): New class.
23042 (sanopt_tree_triplet_map_traits): Use it.
23044 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23046 * gengtype-parse.c (require_template_declaration): Allow '+' in
23047 template parameters. Consolidate cases.
23048 * hash-traits.h (int_hash): New class.
23049 * alias.c (alias_set_hash): New structure.
23050 (alias_set_traits): Use it.
23051 * symbol-summary.h (function_summary::map_hash): New class.
23052 (function_summary::summary_hashmap_traits): Use it.
23053 * tree-inline.h (dependence_hash): New class.
23054 (dependence_hasher): Use it.
23055 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
23056 * value-prof.c (profile_id_hash): New class.
23057 (profile_id_traits): Use it.
23059 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23061 * config/mips/mips.c (mips16_flip_traits): Use it.
23062 (local_alias_traits, mips16_local_aliases): Convert from a map of
23063 rtxes to a map of symbol names.
23064 (mips16_local_alias): Update accordingly.
23066 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23068 * hash-traits.h (string_hash, nofree_string_hash): New classes.
23069 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
23070 * passes.c (pass_registry_hasher): Likewise.
23071 * config/alpha/alpha.c (string_traits): Likewise.
23072 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
23073 * config/m32c/m32c.c (pragma_traits): Likewise.
23074 * config/mep/mep.c (pragma_traits): Likewise.
23076 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23078 * tree-hash-traits.h (tree_hash): New class.
23079 * except.c: Include tree-hash-traits.h.
23080 (tree_hash_traits): Use tree_hash.
23082 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23084 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
23085 * sese.c: Include tree-hash-traits.h.
23086 (rename_map_hasher): Use tree_ssa_name_hasher.
23088 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23090 * tree-hash-traits.h (tree_decl_hash): New class.
23091 * tree-ssa-strlen.c: Include tree-hash-traits.h.
23092 (stridxlist_hash_traits): Use tree_decl_hash.
23094 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23096 * tree-hash-traits.h: New file.
23097 (tree_operand_hash): New class.
23098 * sanopt.c: Include tree-hash-traits.h.
23099 (sanopt_tree_map_traits): Use tree_operand_hash.
23100 * tree-if-conv.c: Include tree-hash-traits.h.
23101 (phi_args_hash_traits): Use tree_operand_hash.
23102 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
23103 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
23105 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23107 * hash-map-traits.h: Include hash-traits.h.
23108 (simple_hashmap_traits): New class.
23109 * mem-stats.h (hash_map): Change the default traits to
23110 simple_hashmap_traits<default_hash_traits<Key> >.
23112 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23114 * hash-table.h: Update comments.
23116 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23118 * hash-traits.h (default_hash_traits): New structure.
23119 * hash-set.h (default_hashset_traits): Delete.
23120 (hash_set): Use default_hash_traits<Key> instead of
23121 default_hashset_traits. Delete hash_entry type and use Key directly.
23122 * ipa-devirt.c (pair_traits): Delete.
23123 (default_hash_traits <type_pair>): Override.
23124 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
23125 (odr_types_equivalent_p, add_type_duplicate): Likewise.
23127 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23129 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
23131 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23133 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
23134 (has_is_empty, is_empty_helper): Delete.
23135 (has_mark_deleted, mark_deleted_helper): Delete.
23136 (has_mark_empty, mark_empty_helper): Delete.
23137 (hash_table::is_deleted): Call the Descriptor unconditionally.
23138 (hash_table::is_empty): Likewise.
23139 (hash_table::mark_deleted): Likewise.
23140 (hash_table::mark_empty): Likewise.
23142 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23144 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
23145 redundant typedefs and members.
23146 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
23147 redundant typedefs.
23148 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
23149 * ipa-devirt.c (odr_name_hasher): Likewise.
23150 (polymorphic_call_target_hasher): Likewise.
23151 * ira-costs.c (cost_classes_hasher): Likewise.
23152 * statistics.c (stats_counter_hasher): Likewise.
23153 * trans-mem.c (log_entry_hasher): Likewise.
23154 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
23155 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
23156 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
23157 * var-tracking.c (variable_hasher): Likewise.
23158 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
23159 Remove redundant typedefs and members.
23161 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23163 * hash-traits.h (ggc_cache_hasher): Rename to...
23164 (ggc_cache_remove): ...this and remove typedefs.
23165 (ggc_cache_ptr_hash): New class.
23166 * hash-table.h: Update commentary.
23167 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
23168 rather than ggc_cache_hasher.
23169 (const_wide_int_hasher, reg_attr_hasher): Likewise.
23170 (const_double_hasher, const_fixed_hasher): Likewise.
23171 * function.c (insn_cache_hasher): Likewise.
23172 * trans-mem.c (tm_wrapper_hasher): Likewise.
23173 * tree.h (tree_decl_map_cache_hasher): Likewise.
23174 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
23175 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
23176 * ubsan.c (tree_type_map_cache_hasher): Likewise.
23177 * varasm.c (tm_clone_hasher): Likewise.
23178 * config/i386/i386.c (dllimport_hasher): Likewise.
23179 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
23180 (tree_hasher): Likewise.
23182 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23184 * hash-traits.h (ggc_hasher): Rename to...
23185 (ggc_remover): ...this and remove typedefs.
23186 (ggc_cache_hasher): Update accordingly. Add typedefs.
23187 (ggc_ptr_hash): New class.
23188 * hash-table.h: Update comment.
23189 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
23191 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
23192 (tree_descriptor_hasher): Likewise.
23193 * cgraph.c (function_version_hasher): Likewise.
23194 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
23195 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
23196 (dw_loc_list_hasher, addr_hasher): Likewise.
23197 * function.h (used_type_hasher): Likewise.
23198 * function.c (temp_address_hasher): Likewise.
23199 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
23200 * libfuncs.h (libfunc_hasher): Likewise.
23201 * lto-streamer.h (decl_state_hasher): Likewise.
23202 * optabs.c (libfunc_decl_hasher): Likewise.
23203 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
23204 * varasm.c (section_hasher, object_block_hasher): Likewise.
23205 (const_rtx_desc_hasher): Likewise.
23206 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
23207 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
23209 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23211 * hash-traits.h (free_ptr_hash): New class.
23212 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
23213 rather than typed_free_remove. Remove redudant typedefs.
23214 (external_ref_hasher): Likewise.
23215 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
23216 (ehspec_hasher): Likewise.
23217 * ggc-common.c (saving_hasher): Likewise.
23218 * gimplify.c (gimplify_hasher): Likewise.
23219 * haifa-sched.c (delay_i2_hasher): Likewise.
23220 * loop-invariant.c (invariant_expr_hasher): Likewise.
23221 * loop-iv.c (biv_entry_hasher): Likewise.
23222 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
23223 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
23224 * tree-cfg.c (locus_discrim_hasher): Likewise.
23225 * tree-eh.c (finally_tree_hasher): Likewise.
23226 * tree-into-ssa.c (var_info_hasher): Likewise.
23227 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
23228 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
23229 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
23230 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
23231 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
23232 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
23233 (shared_bitmap_hasher): Likewise.
23234 * tree-ssa-threadupdate.c (redirection_data): Likewise.
23235 * tree-vectorizer.h (peel_info_hasher): Likewise.
23236 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
23237 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
23239 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23241 * hash-table.h: Update comments.
23242 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
23243 (nofree_ptr_hash): New class.
23244 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
23245 than typed_noop_remove. Remove redudant typedefs.
23246 * attribs.c (attribute_hasher): Likewise.
23247 * cfg.c (bb_copy_hasher): Likewise.
23248 * cselib.c (cselib_hasher): Likewise.
23249 * dse.c (invariant_group_base_hasher): Likewise.
23250 * dwarf2cfi.c (trace_info_hasher): Likewise.
23251 * dwarf2out.c (macinfo_entry_hasher): Likewise.
23252 (comdat_type_hasher, loc_list_hasher): Likewise.
23253 * gcse.c (pre_ldst_expr_hasher): Likewise.
23254 * genmatch.c (id_base): Likewise.
23255 * genrecog.c (test_pattern_hasher): Likewise.
23256 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
23257 * haifa-sched.c (delay_i1_hasher): Likewise.
23258 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
23259 * ipa-icf.h (congruence_class_group_hash): Likewise.
23260 * ipa-profile.c (histogram_hash): Likewise.
23261 * ira-color.c (allocno_hard_regs_hasher): Likewise.
23262 * lto-streamer.h (string_slot_hasher): Likewise.
23263 * lto-streamer.c (tree_entry_hasher): Likewise.
23264 * plugin.c (event_hasher): Likewise.
23265 * postreload-gcse.c (expr_hasher): Likewise.
23266 * store-motion.c (st_expr_hasher): Likewise.
23267 * tree-sra.c (uid_decl_hasher): Likewise.
23268 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
23269 (ssa_name_var_hash): Likewise.
23270 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
23271 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
23272 * tree-ssa-pre.c (pre_expr_d): Likewise.
23273 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
23274 * vtable-verify.h (registration_hasher): Likewise.
23275 * vtable-verify.c (vtbl_map_hasher): Likewise.
23276 * config/arm/arm.c (libcall_hasher): Likewise.
23277 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
23278 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
23279 * config/sol2.c (comdat_entry_hasher): Likewise.
23280 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
23281 (print_fold_checksum, fold_checksum_tree): Likewise.
23282 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
23283 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
23284 (fold_build_call_array_loc): Likewise.
23285 * tree-ssa-ccp.c (gimple_htab): Likewise.
23286 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
23287 rather than pointer_type.
23289 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23291 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
23292 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
23294 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23296 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
23297 (ggc_hasher::ggc_mx): Likewise.
23298 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
23299 that duplicate ggc_hasher ones.
23301 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23303 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
23304 (gt_cleare_cache): Check here for deleted and empty entries.
23305 Replace handle_cache_entry with a call to keep_cache_entry.
23306 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
23307 (ggc_cache_hasher::keep_cache_entry): New function.
23308 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
23309 (tm_wrapper_hasher::keep_cache_entry): New function.
23310 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
23311 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23312 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
23313 (type_cache_hasher::keep_cache_entry): New function.
23314 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
23315 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23316 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
23317 (tree_type_map_cache_hasher::keep_cache_entry): New function.
23318 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
23319 (tm_clone_hasher::keep_cache_entry): New function.
23320 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
23321 (dllimport_hasher::keep_cache_entry): New function.
23323 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23325 * hash-table.h: Include hash-traits.h.
23326 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
23327 (ggc_cache_hasher): Move to...
23328 * hash-traits.h: ...this new file.
23330 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23332 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
23333 struct cl_optimization.
23334 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
23335 * tree.c (make_node_stat): Allocate cl_optimization struct.
23336 (copy_node_stat): Allocate and copy cl_optimization struct.
23338 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23340 * function.h (struct incoming_args): Move struct.
23341 (pass_by_reference, reference_callee_copied): Remove prototypes.
23342 * emit-rtl.h (struct incoming_args): Relocate struct here.
23343 * calls.h (pass_by_reference, reference_callee_copied): Relocate
23345 * function.c (pass_by_reference, reference_callee_copied): Move.
23346 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
23347 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
23348 * ipa-chkp.c: Include calls.h.
23350 2015-06-25 Andrew Macleod <amacleod@redhat.com>
23352 * alias.h (alias_set_type): Move typedef.
23353 * coretypes.h (alias_set_type): Relocate typedef here.
23354 * rtl.h: Don't include alias.h.
23356 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23358 * cgraph.h (cgraph_rtl_info): Move to rtl.h
23359 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
23361 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
23362 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
23364 * calls.c: Include hard-reg-set.h before rtl.h.
23367 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23368 Vladimir Makarov <vmakarov@redhat.com>
23370 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
23373 2015-06-25 Richard Biener <rguenther@suse.de>
23375 * fold-const.c (fold_binary_loc): Move simplification of
23376 (X <<>> C1) & C2 ...
23377 * match.pd: ... here.
23379 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
23381 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
23383 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23385 * match.pd: Add patterns for vec_conds between 1 and 0.
23387 2015-06-25 Richard Biener <rguenther@suse.de>
23389 * tree-vect-stmts.c (vectorizable_conversion): Do not set
23390 STMT_VINFO_VEC_STMT for SLP.
23391 (vectorizable_store): Likewise.
23392 (vectorizable_load): Likewise.
23393 (vect_transform_stmt): Catch SLP vectorization clobbering
23394 STMT_VINFO_VEC_STMT.
23396 2015-06-25 Richard Biener <rguenther@suse.de>
23398 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
23400 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
23401 cleanup resulting dead code and parameters.
23402 (vect_transform_slp_perm_load): Adjust.
23404 2015-06-25 Nick Clifton <nickc@redhat.com>
23406 * config/bfin/bfin.c (bfin_expand_prologue): Set
23407 current_function_static_stack_size if flag_stack_usage_info is set.
23408 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
23409 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
23410 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
23411 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
23413 2015-06-25 Tom de Vries <tom@codesourcery.com>
23415 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
23416 comment that the generated IV is unsigned.
23418 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23421 * config/arm/arm.c (arm_dbx_register_number): Return
23422 DWARF_FRAME_REGISTERS by default.
23424 2015-06-25 Tom de Vries <tom@codesourcery.com>
23426 * dominance.c (calculate_dominance_info): Fix verify_dominators call
23427 argument. Call verify_dominator when reusing dominator info.
23429 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
23432 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
23433 an additional element of the unspec vector. Modify indices
23435 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
23436 * config/sh/sh.c (prepare_move_operands): Pass incremented
23437 const_int to gen_GOTaddr2picreg.
23438 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
23440 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23442 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
23443 Condition on TARGET_FLOAT.
23445 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23447 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
23450 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23452 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
23454 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
23455 aarch64_err_no_fpadvsimd.
23457 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
23458 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
23459 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
23460 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
23461 Turn error into assert, test TARGET_FLOAT.
23462 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
23465 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
23468 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
23470 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
23472 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
23474 2015-06-24 Renlin Li <renlin.li@arm.com>
23476 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
23477 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
23479 2015-06-24 Richard Biener <rguenther@suse.de>
23481 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
23483 (lower_opt_convert): Support lowering of conditional view_convert.
23484 (parser::parse_operation): Likewise.
23485 (parser::parse_for): Likewise.
23487 2015-06-24 Renlin Li <renlin.li@arm.com>
23489 * varasm.c (emit_local): Use unsigned int for align variable.
23491 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23494 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
23495 for negative numbers.
23497 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23499 PR rtl-optimization/66306
23500 * reload.c (find_reloads): Swap the match_dup info for
23501 commutative operands.
23503 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23505 * config/s390/vx-builtins.md
23506 ("vec_scatter_element<mode>_<non_vec_int>")
23507 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
23508 attribute with bhfgq.
23510 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23512 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
23514 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23516 * config/s390/s390-builtin-types.def: Add flag to indicate the
23517 options under which the function type is needed.
23518 * config/s390/s390-builtins.def: Add flag to indicate the options
23519 under which the builtin is enabled.
23520 * config/s390/s390-builtins.h: Add flags parameter to macro
23522 (bflags_for_builtin): New function.
23523 (flags_for_builtin): Renamed to ...
23524 (opflags_for_builtin): ... this.
23525 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
23526 flags_for_builtin to bflags_for_builtin and
23527 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
23528 * config/s390/s390.c: Add initialization of bflags_builtin and
23529 opflags_builtin arrays.
23530 Remove code for flags_builtin.
23531 (s390_init_builtins): Only create builtin function types if one of
23532 their flags is active.
23533 Only create builtins if all of their flags are active.
23534 (s390_expand_builtin): Rename flags_for_builtin to
23535 opflags_for_builtin.
23537 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23539 * config/s390/vecintrin.h: Remove internal builtins.
23541 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23543 * config/s390/s390.c (s390_secondary_reload): Fix check for
23544 GENERAL_REGS register class.
23546 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23548 * config/s390/s390.c (s390_support_vector_misalignment): Call
23549 default implementation for !TARGET_VX.
23551 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23553 * config/s390/s390.c (s390_legitimate_constant_p): Add
23556 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23558 * config/s390/s390.c (s390_vector_abi): New variable definition.
23559 (s390_check_type_for_vector_abi): New function.
23560 (TARGET_ASM_FILE_END): New macro definition.
23561 (s390_asm_file_end): New function.
23562 (s390_function_arg): Call s390_check_type_for_vector_abi.
23563 (s390_gimplify_va_arg): Likewise.
23564 * configure: Regenerate.
23565 * configure.ac: Check for .gnu_attribute Binutils feature.
23567 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
23570 * config/bfin/bfin.c (hwloop_optimize): Initialize
23571 JUMP_LABEL for newly created jump.
23573 2015-06-23 Tristan Gingold <gingold@adacore.com>
23575 * collect-utils.c (collect_wait): Unlink the response file here
23577 (do_wait): ...here.
23578 (utils_cleanup): ...and here.
23580 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
23582 * df-scan.c: Don't include target-def.h.
23583 * targhooks.c: Likewise.
23584 * config/arm/arm-c.c: Likewise.
23585 * config/i386/i386-c.c: Likewise.
23586 * config/nds32/nds32-cost.c: Likewise.
23587 * config/nds32/nds32-fp-as-gp.c: Likewise.
23588 * config/nds32/nds32-intrinsic.c: Likewise.
23589 * config/nds32/nds32-isr.c: Likewise.
23590 * config/nds32/nds32-md-auxiliary.c: Likewise.
23591 * config/nds32/nds32-memory-manipulation.c: Likewise.
23592 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23593 * config/nds32/nds32-predicates.c: Likewise.
23595 2015-06-23 Richard Biener <rguenther@suse.de>
23597 PR tree-optimization/66636
23598 * tree-vect-stmts.c (vectorizable_store): Properly compute the
23599 def type for further defs for strided stores.
23601 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
23603 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
23604 conditional selects.
23605 (setcc_int<mode>, setcc_float<mode>): Reformat.
23607 2015-06-23 Marek Polacek <polacek@redhat.com>
23609 * match.pd ((x + y) - (x | y) -> x & y,
23610 (x + y) - (x & y) -> x | y): New patterns.
23612 2015-06-23 Ludovic Courtès <ludo@gnu.org>
23615 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
23616 '-dynamic-linker' within %{!shared: ...}.
23618 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
23621 * config/i386/predicates.md (addsub_vm_operator): New predicate.
23622 (addsub_vs_operator): Ditto.
23623 (addsub_vs_parallel): Ditto.
23624 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
23625 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
23626 Put minus RTX before plus and adjust vec_merge selector.
23627 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
23628 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
23629 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
23630 (addsub vec_merge splitters): New combiner splitters.
23631 (addsub vec_select/vec_concat splitters): Ditto.
23633 2015-06-23 Bin Cheng <bin.cheng@arm.com>
23635 PR tree-optimization/66449
23636 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
23637 POINTER_PLUS_EXPR for pointers.
23639 2015-06-23 Alan Modra <amodra@gmail.com>
23641 * rtlanal.c (commutative_operand_precedence): Correct comments.
23642 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
23643 declaration. Return an int. Distinguish REG,REG return from
23645 (struct simplify_plus_minus_op_data): Make local to function.
23646 (simplify_plus_minus): Don't set canonicalized if merely sorting
23647 registers. Avoid packing ops if nothing changes. White space fixes.
23649 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
23651 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
23652 -fdump-ada-spec is passed but not if -fsyntax-only is.
23654 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
23657 * lra-lives.c (process_bb_lives): Check insn copying the same
23658 reload pseudo and don't create a copy for it.
23660 2015-06-22 Tom de Vries <tom@codesourcery.com>
23662 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
23665 2015-06-22 Tom de Vries <tom@codesourcery.com>
23667 * builtins.def (DEF_GOMP_BUILTIN): Test
23668 'flag_tree_parallelize_loops > 1' instead of
23669 'flag_tree_parallelize_loops'. Test flag_cilkplus.
23671 2015-06-22 Tom de Vries <tom@codesourcery.com>
23673 * dominance.c (calculate_dominance_info): Verify dominators if
23676 2015-06-22 Marek Polacek <polacek@redhat.com>
23678 * match.pd ((x ^ y) ^ (x | y) -> x & y,
23679 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
23680 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
23681 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
23683 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
23686 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
23687 cost of embedded comparison.
23689 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23692 * config/rs6000/predicates.md (altivec_register_operand): Permit
23693 virtual stack registers.
23694 (vsx_register_operand): Likewise.
23695 (vfloat_operand): Likewise.
23696 (vint_operand): Likewise.
23697 (vlogical_operand): Likewise.
23699 2015-06-22 Richard Biener <rguenther@suse.de>
23701 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
23702 and single_scalar_iteration_cost members.
23703 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
23704 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
23705 (vect_get_single_scalar_iteration_cost): Remove.
23706 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
23707 Use LOOP_VINFO_SCALAR_ITERATION_COST.
23708 * tree-vect-loop.c (destroy_loop_vec_info): Free
23710 (vect_get_single_scalar_iteration_cost): Compute result into
23711 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
23712 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
23713 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
23714 (vect_estimate_min_profitable_iters): Use them.
23716 2015-06-22 Christian Bruel <christian.bruel@st.com>
23719 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
23720 (TARGET_INSERT_ATTRIBUTES): Define.
23721 (thumb_flipper): New var.
23722 * config/arm/arm.opt (-mflip-thumb): New switch.
23724 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23725 Martin Liska <mliska@suse.cz>
23728 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
23729 construction of arg_types.
23730 (sem_function::sem_function): Likewise.
23731 (sem_function::~sem_function): Remove destruction of arg_types.
23732 (sem_function::compatible_parm_types_p): New function.
23733 (sem_function::equals_wpa): Reorg matching of return values
23734 and parameter types.
23735 (sem_function::equals_private): Reorg mathcing of argument types.
23736 (sem_function::parse_tree_args): Remove.
23737 * ipa-icf.h (init_wpa): Do not call it.
23738 (parse_tree_args): Remove.
23739 (compatible_parm_types_p): Declare.
23740 (result_type): Remove.
23741 (arg_types): Remove.
23743 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23746 * ipa-polymorphic-call.c
23747 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
23748 initializing alias oracle; fix formating; set base_alias_set if it
23751 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
23753 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
23754 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
23755 (find_inc): Likewise.
23756 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
23758 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
23759 * df-scan.c (df_swap_refs): Remove.
23760 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
23761 * dominance.c (link_roots): Use std::swap instead of manually swapping.
23762 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
23763 * fold-const.c (fold_relational_const): Likewise.
23764 * genattrtab.c (simplify_test_exp): Likewise.
23765 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
23766 gimple_simplify): Likewise.
23767 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
23768 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
23769 * ipa-devirt.c (add_type_duplicate): Likewise.
23770 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
23771 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
23772 * lra.c (lra_create_copy): Likewise.
23773 * lto-streamer-out.c (DFS::DFS): Likewise.
23774 * modulo-sched.c (get_sched_window): Likewise.
23775 * omega.c (omega_pretty_print_problem): Likewise.
23776 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
23777 * reload1.c (reloads_unique_chain_p): Likewise.
23778 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
23779 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
23781 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
23783 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
23784 predicate_mem_writes): Likewise.
23785 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
23786 * tree-predcom.c (combine_chains): Likewise.
23787 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
23788 refs_may_alias_p_1): Likewise.
23789 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
23790 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23791 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
23792 number_of_iterations_cond): Likewise.
23793 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23794 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
23795 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
23796 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
23797 * tree-vrp.c (extract_range_from_binary_expr_1,
23798 extract_range_from_unary_expr_1): Likewise.
23800 2015-06-20 Marek Polacek <polacek@redhat.com>
23802 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
23804 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
23807 * config/sh/sh.c (prepare_move_operands): Replace subreg
23808 index term with R0 for base and index addressing.
23810 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
23812 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
23814 (movsf_aarch64): Change condition from register_operand to
23815 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
23816 load1. Change type for alternative 7 to store1.
23817 (movdf_aarch64): Likewise.
23819 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
23821 * config/vax/vax.md: Adjust sign/zero extend patterns to
23822 handle SUBREGs in operands[1].
23824 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23826 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
23827 of manually swapping.
23828 (expand_vec_perm_interleave2): Likewise.
23830 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
23832 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
23833 reuse bounds created for abnormal ssa names.
23835 2015-06-19 Jakub Jelinek <jakub@redhat.com>
23837 * config/nvptx/nvptx.md (allocate_stack): Rename to...
23838 (allocate_stack_<mode>): ... this, and add :P on both
23839 match_operand and unspec.
23840 (allocate_stack): New expander.
23842 2015-06-19 Christian Bruel <christian.bruel@st.com>
23846 * config/arm/arm.c (arm_set_current_function): Handle
23847 explicit default options.
23849 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
23851 * config/i386/i386.md (*movsicc_noc_zext): New insn.
23852 (zero-extended cmove with mem peephole2): New pattern.
23853 (cmove with mem peephole2): Merge patterns.
23855 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
23857 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
23859 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
23861 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
23862 * config/mips/mips.md (*madd4<mode>): Ditto.
23863 (*nmadd3<mode>) Ditto.
23864 (*nmadd4<mode>_fastmath): Ditto.
23865 (*nmadd3<mode>_fastmath): Ditto.
23866 (*nmsub4<mode>): Ditto.
23867 (*nmsub3<mode>): Ditto.
23868 (*nmsub4<mode>_fastmath): Ditto.
23869 (*nmsub3<mode>_fastmath): Ditto.
23871 2015-06-18 Michael Matz <matz@suse.de>
23873 PR middle-end/66253
23874 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
23875 grouped strided stores.
23876 (vectorizable_load): Don't use the DR from first_stmt in
23877 the non-SLP grouped strided case.
23879 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23882 * function.c (assign_bounds): Add arguments assign_regs,
23883 assign_special, assign_bt.
23884 (assign_parms): For vararg functions handle bounds in BT
23885 and special slots after incoming vararg bounds.
23887 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23889 PR middle-end/66568
23890 * cfgexpand.c (expand_return): Handle missing bounds.
23891 (expand_gimple_stmt_1): Likewise.
23892 * tree-chkp.c (chkp_expand_zero_bounds): New.
23893 * tree-chkp.h (chkp_expand_zero_bounds): New.
23895 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23897 PR middle-end/66567
23898 * ipa-chkp.c (chkp_maybe_create_clone): Require
23899 functions to be instrumentable.
23900 * tree-chkp.c (chkp_replace_function_pointer): Use
23901 chkp_instrumentable_p instead of attribute check.
23903 2015-06-18 Richard Biener <rguenther@suse.de>
23905 PR tree-optimization/66510
23906 * tree-vect-stmts.c (vectorizable_load): Properly compute the
23907 number of vector loads for SLP permuted loads.
23908 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
23909 check the stride for loop vectorization.
23910 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
23911 vectorization factor.
23912 (vect_analyze_group_access): If the group size is not a power
23913 of two require a epilogue loop.
23914 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
23915 compute and optimizing and alias test pruning after final
23916 vectorization factor computation.
23917 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
23919 (vect_transform_slp_perm_load): Properly compute the original
23920 number of vector load stmts.
23922 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
23924 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
23925 "unlikely character , in @var" warning.
23927 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
23929 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
23930 (ix86_function_arg_advance): Ditto.
23931 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
23933 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23935 * function.h (struct rtl_data): Remove struct and accessor macros.
23936 * emit-rtl.h (struct rtl_data): Relocate to here.
23937 * Makefile.in (GTFILES): Add emit-rtl.h.
23938 * df-core.c: Include emit-rtl.h.
23939 * genattrtab.c: Likewise.
23940 * genconditions.c: Likewise.
23941 * genpreds.c: Likewise.
23942 * genrecog.c: Likewise.
23943 * regcprop.c: Likewise.
23944 * resource.c: Likewise.
23945 * sched-rgn.c: Likewise.
23946 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23947 * config/i386/winnt.c: Likewise.
23949 2015-06-17 Jakub Jelinek <jakub@redhat.com>
23951 PR middle-end/66429
23952 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
23953 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
23954 and has_force_vectorize_loops flags from cfun into
23956 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
23957 if simduid is non-NULL.
23958 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
23959 * passes.def (pass_simduid_cleanup): Add new pass after loop
23961 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
23962 indirection from htab argument's type.
23963 (shrink_simd_arrays): New function.
23964 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
23965 Don't call adjust_simduid_builtins if there are no loops.
23966 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
23967 (pass_simduid_cleanup::execute): New method.
23968 (make_pass_simduid_cleanup): New function.
23970 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
23972 * tree-core.h (tree_target_option): Make opts field a pointer to a
23973 cl_target_option instead of an instance of the struct.
23974 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
23976 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
23977 TARGET_OPTION_NODE.
23978 (copy_node_stat): Allocate and copy struct cl_target_option.
23980 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23982 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
23983 Remove conditional exposure of prototypes.
23984 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
23985 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
23986 definitions in tree.h with functions.
23987 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
23989 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
23991 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
23993 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
23994 (*cmp<mode>_signed): ... this.
23995 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
23996 (*cmp<mode>_unsigned): ... this. Remove %b.
23998 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24000 * coretypes.h: Include input.h and as-a.h.
24001 * rtl.h: Include input.h and as-a.h for generator files.
24002 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
24003 * vec.c: Don't include diagnostic-core.h.
24004 * alias.c: Do not include input.h, line-map.h or is-a.h.
24005 * asan.c: Likewise.
24006 * attribs.c: Likewise.
24007 * auto-inc-dec.c: Likewise.
24008 * auto-profile.c: Likewise.
24009 * bb-reorder.c: Likewise.
24010 * bt-load.c: Likewise.
24011 * builtins.c: Likewise.
24012 * caller-save.c: Likewise.
24013 * calls.c: Likewise.
24014 * ccmp.c: Likewise.
24016 * cfganal.c: Likewise.
24017 * cfgbuild.c: Likewise.
24018 * cfgcleanup.c: Likewise.
24019 * cfgexpand.c: Likewise.
24020 * cfghooks.c: Likewise.
24021 * cfgloop.c: Likewise.
24022 * cfgloop.h: Likewise.
24023 * cfgloopanal.c: Likewise.
24024 * cfgloopmanip.c: Likewise.
24025 * cfgrtl.c: Likewise.
24026 * cgraph.c: Likewise.
24027 * cgraphbuild.c: Likewise.
24028 * cgraphclones.c: Likewise.
24029 * cgraphunit.c: Likewise.
24030 * cilk-common.c: Likewise.
24031 * combine-stack-adj.c: Likewise.
24032 * combine.c: Likewise.
24033 * compare-elim.c: Likewise.
24034 * convert.c: Likewise.
24035 * coverage.c: Likewise.
24036 * cppbuiltin.c: Likewise.
24037 * cprop.c: Likewise.
24039 * cselib.c: Likewise.
24040 * data-streamer-in.c: Likewise.
24041 * data-streamer-out.c: Likewise.
24042 * data-streamer.c: Likewise.
24043 * dbxout.c: Likewise.
24046 * debug.c: Likewise.
24047 * df-core.c: Likewise.
24048 * df-problems.c: Likewise.
24049 * df-scan.c: Likewise.
24052 * diagnostic-core.h: Likewise.
24053 * diagnostic.c: Likewise.
24054 * dojump.c: Likewise.
24055 * dominance.c: Likewise.
24056 * domwalk.c: Likewise.
24057 * double-int.c: Likewise.
24059 * dumpfile.c: Likewise.
24060 * dumpfile.h: Likewise.
24061 * dwarf2asm.c: Likewise.
24062 * dwarf2cfi.c: Likewise.
24063 * dwarf2out.c: Likewise.
24064 * emit-rtl.c: Likewise.
24065 * et-forest.c: Likewise.
24066 * except.c: Likewise.
24067 * explow.c: Likewise.
24068 * expmed.c: Likewise.
24069 * expr.c: Likewise.
24070 * final.c: Likewise.
24071 * fixed-value.c: Likewise.
24072 * fold-const.c: Likewise.
24073 * function.c: Likewise.
24074 * fwprop.c: Likewise.
24075 * gcc-plugin.h: Likewise.
24076 * gcse.c: Likewise.
24077 * generic-match-head.c: Likewise.
24078 * ggc-page.c: Likewise.
24079 * gimple-builder.c: Likewise.
24080 * gimple-expr.c: Likewise.
24081 * gimple-fold.c: Likewise.
24082 * gimple-iterator.c: Likewise.
24083 * gimple-low.c: Likewise.
24084 * gimple-match-head.c: Likewise.
24085 * gimple-pretty-print.c: Likewise.
24086 * gimple-ssa-isolate-paths.c: Likewise.
24087 * gimple-ssa-strength-reduction.c: Likewise.
24088 * gimple-streamer-in.c: Likewise.
24089 * gimple-streamer-out.c: Likewise.
24090 * gimple-streamer.h: Likewise.
24091 * gimple-walk.c: Likewise.
24092 * gimple.c: Likewise.
24093 * gimplify-me.c: Likewise.
24094 * gimplify.c: Likewise.
24095 * godump.c: Likewise.
24096 * graph.c: Likewise.
24097 * graphite-blocking.c: Likewise.
24098 * graphite-dependences.c: Likewise.
24099 * graphite-interchange.c: Likewise.
24100 * graphite-isl-ast-to-gimple.c: Likewise.
24101 * graphite-optimize-isl.c: Likewise.
24102 * graphite-poly.c: Likewise.
24103 * graphite-scop-detection.c: Likewise.
24104 * graphite-sese-to-poly.c: Likewise.
24105 * graphite.c: Likewise.
24106 * haifa-sched.c: Likewise.
24107 * hw-doloop.c: Likewise.
24108 * ifcvt.c: Likewise.
24109 * init-regs.c: Likewise.
24110 * input.c: Likewise.
24111 * internal-fn.c: Likewise.
24112 * ipa-chkp.c: Likewise.
24113 * ipa-comdats.c: Likewise.
24114 * ipa-cp.c: Likewise.
24115 * ipa-devirt.c: Likewise.
24116 * ipa-icf-gimple.c: Likewise.
24117 * ipa-icf.c: Likewise.
24118 * ipa-inline-analysis.c: Likewise.
24119 * ipa-inline-transform.c: Likewise.
24120 * ipa-inline.c: Likewise.
24121 * ipa-polymorphic-call.c: Likewise.
24122 * ipa-profile.c: Likewise.
24123 * ipa-prop.c: Likewise.
24124 * ipa-pure-const.c: Likewise.
24125 * ipa-ref.c: Likewise.
24126 * ipa-reference.c: Likewise.
24127 * ipa-split.c: Likewise.
24128 * ipa-utils.c: Likewise.
24129 * ipa-visibility.c: Likewise.
24131 * ira-build.c: Likewise.
24132 * ira-color.c: Likewise.
24133 * ira-conflicts.c: Likewise.
24134 * ira-costs.c: Likewise.
24135 * ira-emit.c: Likewise.
24136 * ira-lives.c: Likewise.
24138 * jump.c: Likewise.
24139 * langhooks.c: Likewise.
24141 * loop-doloop.c: Likewise.
24142 * loop-init.c: Likewise.
24143 * loop-invariant.c: Likewise.
24144 * loop-iv.c: Likewise.
24145 * loop-unroll.c: Likewise.
24146 * lower-subreg.c: Likewise.
24147 * lra-assigns.c: Likewise.
24148 * lra-coalesce.c: Likewise.
24149 * lra-constraints.c: Likewise.
24150 * lra-eliminations.c: Likewise.
24151 * lra-lives.c: Likewise.
24152 * lra-remat.c: Likewise.
24153 * lra-spills.c: Likewise.
24155 * lto-cgraph.c: Likewise.
24156 * lto-compress.c: Likewise.
24157 * lto-opts.c: Likewise.
24158 * lto-section-in.c: Likewise.
24159 * lto-section-out.c: Likewise.
24160 * lto-streamer-in.c: Likewise.
24161 * lto-streamer-out.c: Likewise.
24162 * lto-streamer.c: Likewise.
24164 * mode-switching.c: Likewise.
24165 * modulo-sched.c: Likewise.
24166 * omega.c: Likewise.
24167 * omp-low.c: Likewise.
24168 * optabs.c: Likewise.
24169 * opts-global.c: Likewise.
24170 * opts.h: Likewise.
24171 * passes.c: Likewise.
24172 * plugin.c: Likewise.
24173 * postreload-gcse.c: Likewise.
24174 * postreload.c: Likewise.
24175 * predict.c: Likewise.
24176 * pretty-print.h: Likewise.
24177 * print-rtl.c: Likewise.
24178 * print-tree.c: Likewise.
24179 * profile.c: Likewise.
24180 * real.c: Likewise.
24181 * realmpfr.c: Likewise.
24182 * recog.c: Likewise.
24184 * reg-stack.c: Likewise.
24185 * regcprop.c: Likewise.
24186 * reginfo.c: Likewise.
24187 * regrename.c: Likewise.
24188 * regstat.c: Likewise.
24189 * reload.c: Likewise.
24190 * reload1.c: Likewise.
24191 * reorg.c: Likewise.
24192 * resource.c: Likewise.
24193 * rtl-chkp.c: Likewise.
24194 * rtl-error.c: Likewise.
24195 * rtlanal.c: Likewise.
24196 * rtlhooks.c: Likewise.
24197 * sanopt.c: Likewise.
24198 * sched-deps.c: Likewise.
24199 * sched-ebb.c: Likewise.
24200 * sched-rgn.c: Likewise.
24201 * sched-vis.c: Likewise.
24202 * sdbout.c: Likewise.
24203 * sel-sched-dump.c: Likewise.
24204 * sel-sched-ir.c: Likewise.
24205 * sel-sched.c: Likewise.
24206 * sese.c: Likewise.
24207 * shrink-wrap.c: Likewise.
24208 * simplify-rtx.c: Likewise.
24209 * stack-ptr-mod.c: Likewise.
24210 * statistics.c: Likewise.
24211 * stmt.c: Likewise.
24212 * stor-layout.c: Likewise.
24213 * store-motion.c: Likewise.
24214 * streamer-hooks.c: Likewise.
24215 * stringpool.c: Likewise.
24216 * symtab.c: Likewise.
24217 * target-globals.c: Likewise.
24218 * targhooks.c: Likewise.
24219 * toplev.c: Likewise.
24220 * tracer.c: Likewise.
24221 * trans-mem.c: Likewise.
24222 * tree-affine.c: Likewise.
24223 * tree-browser.c: Likewise.
24224 * tree-call-cdce.c: Likewise.
24225 * tree-cfg.c: Likewise.
24226 * tree-cfgcleanup.c: Likewise.
24227 * tree-chkp-opt.c: Likewise.
24228 * tree-chkp.c: Likewise.
24229 * tree-chrec.c: Likewise.
24230 * tree-complex.c: Likewise.
24231 * tree-data-ref.c: Likewise.
24232 * tree-dfa.c: Likewise.
24233 * tree-diagnostic.c: Likewise.
24234 * tree-dump.c: Likewise.
24235 * tree-eh.c: Likewise.
24236 * tree-emutls.c: Likewise.
24237 * tree-if-conv.c: Likewise.
24238 * tree-inline.c: Likewise.
24239 * tree-into-ssa.c: Likewise.
24240 * tree-iterator.c: Likewise.
24241 * tree-loop-distribution.c: Likewise.
24242 * tree-nested.c: Likewise.
24243 * tree-nrv.c: Likewise.
24244 * tree-object-size.c: Likewise.
24245 * tree-outof-ssa.c: Likewise.
24246 * tree-parloops.c: Likewise.
24247 * tree-phinodes.c: Likewise.
24248 * tree-predcom.c: Likewise.
24249 * tree-pretty-print.c: Likewise.
24250 * tree-profile.c: Likewise.
24251 * tree-scalar-evolution.c: Likewise.
24252 * tree-sra.c: Likewise.
24253 * tree-ssa-address.c: Likewise.
24254 * tree-ssa-alias.c: Likewise.
24255 * tree-ssa-ccp.c: Likewise.
24256 * tree-ssa-coalesce.c: Likewise.
24257 * tree-ssa-copy.c: Likewise.
24258 * tree-ssa-copyrename.c: Likewise.
24259 * tree-ssa-dce.c: Likewise.
24260 * tree-ssa-dom.c: Likewise.
24261 * tree-ssa-dse.c: Likewise.
24262 * tree-ssa-forwprop.c: Likewise.
24263 * tree-ssa-ifcombine.c: Likewise.
24264 * tree-ssa-live.c: Likewise.
24265 * tree-ssa-loop-ch.c: Likewise.
24266 * tree-ssa-loop-im.c: Likewise.
24267 * tree-ssa-loop-ivcanon.c: Likewise.
24268 * tree-ssa-loop-ivopts.c: Likewise.
24269 * tree-ssa-loop-manip.c: Likewise.
24270 * tree-ssa-loop-niter.c: Likewise.
24271 * tree-ssa-loop-prefetch.c: Likewise.
24272 * tree-ssa-loop-unswitch.c: Likewise.
24273 * tree-ssa-loop.c: Likewise.
24274 * tree-ssa-math-opts.c: Likewise.
24275 * tree-ssa-operands.c: Likewise.
24276 * tree-ssa-phiopt.c: Likewise.
24277 * tree-ssa-phiprop.c: Likewise.
24278 * tree-ssa-pre.c: Likewise.
24279 * tree-ssa-propagate.c: Likewise.
24280 * tree-ssa-reassoc.c: Likewise.
24281 * tree-ssa-sccvn.c: Likewise.
24282 * tree-ssa-scopedtables.c: Likewise.
24283 * tree-ssa-sink.c: Likewise.
24284 * tree-ssa-strlen.c: Likewise.
24285 * tree-ssa-structalias.c: Likewise.
24286 * tree-ssa-tail-merge.c: Likewise.
24287 * tree-ssa-ter.c: Likewise.
24288 * tree-ssa-threadedge.c: Likewise.
24289 * tree-ssa-threadupdate.c: Likewise.
24290 * tree-ssa-uncprop.c: Likewise.
24291 * tree-ssa-uninit.c: Likewise.
24292 * tree-ssa.c: Likewise.
24293 * tree-ssanames.c: Likewise.
24294 * tree-stdarg.c: Likewise.
24295 * tree-streamer-in.c: Likewise.
24296 * tree-streamer-out.c: Likewise.
24297 * tree-streamer.c: Likewise.
24298 * tree-switch-conversion.c: Likewise.
24299 * tree-tailcall.c: Likewise.
24300 * tree-vect-data-refs.c: Likewise.
24301 * tree-vect-generic.c: Likewise.
24302 * tree-vect-loop-manip.c: Likewise.
24303 * tree-vect-loop.c: Likewise.
24304 * tree-vect-patterns.c: Likewise.
24305 * tree-vect-slp.c: Likewise.
24306 * tree-vect-stmts.c: Likewise.
24307 * tree-vectorizer.c: Likewise.
24308 * tree-vrp.c: Likewise.
24309 * tree.c: Likewise.
24310 * tsan.c: Likewise.
24311 * ubsan.c: Likewise.
24312 * valtrack.c: Likewise.
24313 * value-prof.c: Likewise.
24314 * var-tracking.c: Likewise.
24315 * varasm.c: Likewise.
24316 * varpool.c: Likewise.
24317 * vmsdbgout.c: Likewise.
24318 * vtable-verify.c: Likewise.
24320 * wide-int.cc: Likewise.
24321 * xcoffout.c: Likewise.
24322 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
24323 * common/common-targhooks.c: Likewise.
24324 * config/aarch64/aarch64-builtins.c: Likewise.
24325 * config/aarch64/aarch64.c: Likewise.
24326 * config/alpha/alpha.c: Likewise.
24327 * config/arc/arc.c: Likewise.
24328 * config/arm/aarch-common.c: Likewise.
24329 * config/arm/arm-builtins.c: Likewise.
24330 * config/arm/arm-c.c: Likewise.
24331 * config/arm/arm.c: Likewise.
24332 * config/avr/avr-c.c: Likewise.
24333 * config/avr/avr-log.c: Likewise.
24334 * config/avr/avr.c: Likewise.
24335 * config/bfin/bfin.c: Likewise.
24336 * config/c6x/c6x.c: Likewise.
24337 * config/cr16/cr16.c: Likewise.
24338 * config/cris/cris.c: Likewise.
24339 * config/darwin-c.c: Likewise.
24340 * config/darwin.c: Likewise.
24341 * config/default-c.c: Likewise.
24342 * config/epiphany/epiphany.c: Likewise.
24343 * config/epiphany/mode-switch-use.c: Likewise.
24344 * config/epiphany/resolve-sw-modes.c: Likewise.
24345 * config/fr30/fr30.c: Likewise.
24346 * config/frv/frv.c: Likewise.
24347 * config/ft32/ft32.c: Likewise.
24348 * config/glibc-c.c: Likewise.
24349 * config/h8300/h8300.c: Likewise.
24350 * config/i386/i386-c.c: Likewise.
24351 * config/i386/i386.c: Likewise.
24352 * config/i386/msformat-c.c: Likewise.
24353 * config/i386/winnt-cxx.c: Likewise.
24354 * config/i386/winnt-stubs.c: Likewise.
24355 * config/i386/winnt.c: Likewise.
24356 * config/ia64/ia64-c.c: Likewise.
24357 * config/ia64/ia64.c: Likewise.
24358 * config/iq2000/iq2000.c: Likewise.
24359 * config/lm32/lm32.c: Likewise.
24360 * config/m32c/m32c-pragma.c: Likewise.
24361 * config/m32c/m32c.c: Likewise.
24362 * config/m32r/m32r.c: Likewise.
24363 * config/m68k/m68k.c: Likewise.
24364 * config/mcore/mcore.c: Likewise.
24365 * config/mep/mep-pragma.c: Likewise.
24366 * config/mep/mep.c: Likewise.
24367 * config/microblaze/microblaze-c.c: Likewise.
24368 * config/microblaze/microblaze.c: Likewise.
24369 * config/mips/mips.c: Likewise.
24370 * config/mmix/mmix.c: Likewise.
24371 * config/mn10300/mn10300.c: Likewise.
24372 * config/moxie/moxie.c: Likewise.
24373 * config/msp430/msp430-c.c: Likewise.
24374 * config/msp430/msp430.c: Likewise.
24375 * config/nds32/nds32-cost.c: Likewise.
24376 * config/nds32/nds32-fp-as-gp.c: Likewise.
24377 * config/nds32/nds32-intrinsic.c: Likewise.
24378 * config/nds32/nds32-isr.c: Likewise.
24379 * config/nds32/nds32-md-auxiliary.c: Likewise.
24380 * config/nds32/nds32-memory-manipulation.c: Likewise.
24381 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24382 * config/nds32/nds32-predicates.c: Likewise.
24383 * config/nds32/nds32.c: Likewise.
24384 * config/nios2/nios2.c: Likewise.
24385 * config/nvptx/nvptx.c: Likewise.
24386 * config/pa/pa.c: Likewise.
24387 * config/pdp11/pdp11.c: Likewise.
24388 * config/rl78/rl78-c.c: Likewise.
24389 * config/rl78/rl78.c: Likewise.
24390 * config/rs6000/rs6000-c.c: Likewise.
24391 * config/rs6000/rs6000.c: Likewise.
24392 * config/rx/rx.c: Likewise.
24393 * config/s390/s390-c.c: Likewise.
24394 * config/s390/s390.c: Likewise.
24395 * config/sh/sh-c.c: Likewise.
24396 * config/sh/sh-mem.cc: Likewise.
24397 * config/sh/sh.c: Likewise.
24398 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24399 * config/sh/sh_treg_combine.cc: Likewise.
24400 * config/sol2-c.c: Likewise.
24401 * config/sol2-cxx.c: Likewise.
24402 * config/sol2-stubs.c: Likewise.
24403 * config/sol2.c: Likewise.
24404 * config/sparc/sparc-c.c: Likewise.
24405 * config/sparc/sparc.c: Likewise.
24406 * config/spu/spu-c.c: Likewise.
24407 * config/spu/spu.c: Likewise.
24408 * config/stormy16/stormy16.c: Likewise.
24409 * config/tilegx/mul-tables.c: Likewise.
24410 * config/tilegx/tilegx-c.c: Likewise.
24411 * config/tilegx/tilegx.c: Likewise.
24412 * config/tilepro/mul-tables.c: Likewise.
24413 * config/tilepro/tilepro-c.c: Likewise.
24414 * config/tilepro/tilepro.c: Likewise.
24415 * config/v850/v850-c.c: Likewise.
24416 * config/v850/v850.c: Likewise.
24417 * config/vax/vax.c: Likewise.
24418 * config/visium/visium.c: Likewise.
24419 * config/vms/vms-c.c: Likewise.
24420 * config/vms/vms.c: Likewise.
24421 * config/vxworks.c: Likewise.
24422 * config/winnt-c.c: Likewise.
24423 * config/xtensa/xtensa.c: Likewise.
24425 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
24427 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
24429 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
24431 2015-06-17 Richard Biener <rguenther@suse.de>
24433 PR tree-optimization/66251
24434 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
24435 stmts for SLP strided stores.
24438 2015-05-22 Richard Biener <rguenther@suse.de>
24440 PR tree-optimization/66251
24441 * tree-vect-stmts.c (vectorizable_conversion): Properly
24442 set STMT_VINFO_VEC_STMT even for the SLP case.
24444 2015-05-26 Michael Matz <matz@suse.de>
24446 PR middle-end/66251
24447 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
24448 STMT_VINFO_VEC_STMT, also with SLP.
24450 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
24453 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
24454 (*avx_addsubv4df3_1s): Ditto.
24455 (*sse3_addsubv2df3_1): Ditto.
24456 (*sse3_addsubv2df3_1s): Ditto.
24457 (*avx_addsubv8sf3_1): Ditto.
24458 (*avx_addsubv8sf3_1s): Ditto.
24459 (*sse3_addsubv4sf3_1): Ditto.
24460 (*sse3_addsubv4sf3_1s): Ditto.
24462 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
24464 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
24465 (SYSROOT_SUFFIX_SPEC): Update.
24466 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
24467 (STARTFILE_PREFIX_SPEC): Update.
24468 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
24469 (MULTILIB_REQUIRED): New.
24470 (MULTILIB_OSDIRNAMES): New.
24471 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
24472 (MULTILIB_REQUIRED): New.
24473 (MULTILIB_OSDIRNAMES): New.
24475 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
24477 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
24478 * config/aarch64/aarch64-options-extensions.def: Update "fP",
24479 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
24480 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
24481 (AARCH64_FL_PAN): New.
24482 (AARCH64_FL_LOR): New.
24483 (AARCH64_FL_RDMA): New.
24484 (AARCH64_FL_FOR_ARCH8_1): New.
24485 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
24486 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
24488 2015-06-16 Martin Liska <mliska@suse.cz>
24490 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
24491 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
24494 2015-06-16 Richard Biener <rguenther@suse.de>
24496 * tree-vect-stmts.c (vectorizable_store): Adjust.
24497 (vectorizable_load): Likewise.
24498 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
24500 (vect_create_data_ref_ptr): Likewise.
24501 (bump_vector_ptr): Adjust.
24503 2015-06-16 Richard Biener <rguenther@suse.de>
24505 * tree-vect-stmts.c (vectorizable_load): Properly start loads
24506 with the first element if this is grouped loads.
24508 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
24510 * config/arm/arm-protos.h (struct tune_params): Rename
24511 log_op_non_sc to log_op_non_short_circuit, and rename enum
24512 values to expand SC to SHORT_CIRCUIT.
24513 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
24514 to LOG_OP_NON_SHORT_CIRCUIT.
24515 (arm_fastmul_tune):Likewise
24516 (arm_strongarm_tune): Likewise.
24517 (arm_xscale_tune): Likewise.
24518 (arm_9e_tune): Likewise.
24519 (arm_marvell_pj4_tune): Likewise.
24520 (arm_v6t2_tune): Likewise.
24521 (arm_cortex_tune): Likewise.
24522 (arm_cortex_a8_tune): Likewise.
24523 (arm_cortex_a7_tune): Likewise.
24524 (arm_cortex_a15_tune): Likewise.
24525 (arm_cortex_a53_tune): Likewise.
24526 (arm_cortex_a57_tune): Likewise.
24527 (arm_xgene1_tune): Likewise.
24528 (arm_cortex_a5_tune): Likewise.
24529 (arm_cortex_a9_tune): Likewise.
24530 (arm_cortex_a12_tune): Likewise.
24531 (arm_v7m_tune): Likewise.
24532 (arm_cortex_m7_tune): Likewise.
24533 (arm_v6m_tune): Likewise.
24534 (arm_fa726te_tune): Likewise.
24536 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
24538 * altivec.md: Delete UNSPEC_VMLADDUHM.
24539 (mulv4si3_p8): New pattern.
24540 (mulv4si3): Use it for POWER8.
24541 (mulv8hi3): Use vmladduhm with zero addend.
24542 (altivec_vmladduhm): Descriptive RTL.
24544 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
24546 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
24547 to use neon_move instead of mov_imm.
24548 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
24549 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
24551 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
24552 aarch64_float_const_zero_rtx_p check before TFmode check.
24553 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
24555 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
24556 code and attributes to match. Change condition from register_operand
24557 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
24558 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
24561 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
24564 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
24565 there is no parent.
24567 2015-06-14 Shiva Chen <shiva0217@gmail.com>
24569 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
24570 HOST_WIDE_INT parameter.
24572 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
24575 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
24576 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
24578 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
24580 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
24582 * rtl.h (classify_insn): Declare.
24583 * emit-rtl.c (classify_insn): Move to...
24584 * rtl.c: ...here and add generator support.
24585 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
24586 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
24587 * genemit.c (gen_emit_seq): New function.
24588 (gen_expand, gen_split): Use it.
24590 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
24592 * tree.c (make_vector_stat): Fix comment to state that the
24593 function returns a VECTOR_CST.
24595 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
24597 * gensupport.h (add_implicit_parallel): Declare.
24598 * genrecog.c (add_implicit_parallel): Move to...
24599 * gensupport.c (add_implicit_parallel): ...here.
24600 (process_one_cond_exec): Use it.
24601 * genemit.c (gen_insn): Likewise.
24603 2015-06-13 Iain Sandoe <iain@codesourcery.com>
24606 * passes.c (rest_of_decl_compilation): Do not register globals for
24607 early debug if they are declared in built-ins.
24609 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
24611 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
24613 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24615 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
24617 (noce_try_cmove_arith): Likewise.
24618 (noce_get_alt_condition): Likewise.
24620 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24622 * common/config/i386/i386-common.c
24623 (OPTION_MASK_ISA_MWAITX_SET): New.
24624 (ix86_handle_option): Handle mwaitx.
24625 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
24626 (x86_64-*-*): Likewise.
24627 * config/i386/mwaitxintrin.h: New header.
24628 * config/i386/cpuid.h (bit_MWAITX): Define.
24629 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24631 * config/i386/i386.opt (mwaitx): New.
24632 * config/i386/i386-builtin-types.def
24633 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
24634 * config/i386/i386-c.c: Define __MWAITX__ if needed.
24635 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
24637 (ix86_option_override_internal): Handle new option.
24638 (processor_alias_table): Added PTA_MWAITX.
24639 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
24640 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
24641 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
24642 IX86_BUILTIN_MONITORX built-ins.
24643 * config/i386/i386.h (TARGET_MWAITX): New.
24644 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
24646 (mwaitx): New pattern.
24647 (monitorx_<mode>): New pattern.
24648 * config/i386/x86intrin.h: Include mwaitxintrin.h.
24649 * doc/extend.texi: Document monitorx and mwaitx builtins.
24650 * doc/invoke.texi: Document -mmwaitx option.
24652 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
24654 * emit-rtl.c (need_atomic_barrier_p): Mask model with
24655 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
24657 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
24659 * dbxout.c (xcoff_debug_hooks): Provide a function for
24660 register_main_translation_unit hook.
24662 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
24664 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
24665 variants cases from switch.
24666 (rs6000_post_atomic_barrier): Same.
24667 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
24668 (rs6000_expand_atomic_exchange): Same.
24669 (rs6000_expand_atomic_op): Same.
24670 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
24671 SYNC variants cases from switch.
24672 (atomic_load): Same.
24673 (atomic_store): Same.
24675 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
24677 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
24678 CONST_INT for goto.
24680 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
24683 * dwarf2out.c (check_die): Check for common duplicate attributes.
24684 (add_location_or_const_value_attribute): Do not add duplicate
24686 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
24688 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
24689 (gen_type_die_with_usage): Call check_die.
24690 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
24692 2015-06-11 Jason Merrill <jason@redhat.com>
24694 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
24697 2015-06-11 Marek Polacek <polacek@redhat.com>
24699 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
24701 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
24704 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
24705 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
24706 (*addx_extend_sp32): Fix pasto.
24707 (*subx_extend): Rename into...
24708 (*subx_extend_sp32): ...this.
24709 (*adddi3_extend_sp32): Add earlyclobber.
24710 (*subdi3_insn_sp32): Likewise.
24711 (*subdi3_extend_sp32): Likewise.
24712 (*and_not_di_sp32): Likewise.
24713 (*or_not_di_sp32): Likewise.
24714 (*xor_not_di_sp32): Likewise.
24715 (*negdi2_sp32): Likewise.
24716 (*one_cmpldi2_sp32): Likewise.
24718 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
24720 * debug.h (struct gcc_debug_hooks): Add a
24721 register_main_translation_unit hook.
24722 * debug.c (do_nothing_debug_hooks): Provide a function for this
24724 * dbxout.c (dbx_debug_hooks): Likewise.
24725 * sdbout.c (sdb_debug_hooks): Likewise.
24726 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24727 * dwarf2out.c (main_translation_unit): New global variable.
24728 (dwarf2out_register_main_translation_unit): New function
24729 implementing the new hook.
24730 (dwarf2_debug_hooks): Assign
24731 dwarf2out_register_main_translation_unit to this new hook.
24732 (dwarf2out_init): Associate any main translation unit to
24735 2015-06-11 Marek Polacek <polacek@redhat.com>
24737 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
24739 2015-06-11 Marek Polacek <polacek@redhat.com>
24741 * match.pd: Use single_use throughout.
24743 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24745 * config/arm/arm.c (arm_option_params_internal): When optimising
24746 for speed set max_insns_skipped when arm_restrict_it.
24748 2015-06-11 Christian Bruel <christian.bruel@st.com>
24751 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
24753 (arm_cpu_builtins): New function.
24754 (arm_pragma_target_parse): Call arm_cpu_builtins.
24755 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
24756 (arm_register_target_pragmas): Likewise.
24757 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
24758 Call arm_register_target_pragmas.
24759 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
24760 (arm_pragma_target_parse): Likewise.
24762 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
24764 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
24765 of the second operand.
24767 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
24770 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
24771 to prepare mask operand for AVX512 modes.
24773 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24776 * doc/md.texi (Machine Constraints): Document that on the PowerPC
24777 if you use a constraint that targets a VSX register, you must use
24778 %x<n> in the template.
24780 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
24782 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
24783 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
24784 (define_insn "trap"): New definition.
24786 2015-06-10 Richard Biener <rguenther@suse.de>
24788 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
24790 (vect_supported_load_permutation_p): ... here. Handle
24791 supportable permutations in reductions.
24792 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
24793 for vectorizing strided group loads.
24795 2015-06-10 Jakub Jelinek <jakub@redhat.com>
24798 * config/i386/i386.c (ix86_split_long_move): For collisions
24799 involving direct tls segment refs, move the UNSPEC_TP possibly
24800 wrapped in ZERO_EXTEND out of the address for lea, to each of
24803 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24805 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
24806 dmb sy. Adjust tabs.
24808 2015-06-10 Tom de Vries <tom@codesourcery.com>
24810 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
24812 2015-06-10 Martin Liska <mliska@suse.cz>
24815 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
24816 all enum values in mem_alloc_origin.
24817 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
24819 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
24820 * bitmap.c (bitmap_register): Likewise.
24821 (dump_bitmap_statistics): Likewise.
24822 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
24823 (ggc_record_overhead): Likewise.
24824 * hash-map.h: Likewise.
24825 * hash-set.h: Likewise.
24826 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
24827 * hash-table.h: Likewise.
24828 * vec.c (vec_prefix::register_overhead): Likewise.
24829 (vec_prefix::release_overhead): Likewise.
24830 (dump_vec_loc_statistics): Likewise.
24832 2015-06-09 Christian Bruel <christian.bruel@st.com>
24835 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
24836 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
24837 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
24838 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
24839 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
24840 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
24841 (arm_valid_target_attribute_p): Likewise.
24842 (arm_set_current_function, arm_can_inline_p): Likewise.
24843 (arm_valid_target_attribute_rec): Likewise.
24844 (arm_previous_fndecl): New variable.
24845 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
24846 (TARGET_CAN_INLINE_P): Define.
24847 (arm_asm_trampoline_template): Emit mode.
24848 (arm_file_start): Don't set unified syntax.
24849 (arm_declare_function_name): Set unified syntax and mode.
24850 (arm_option_override): Init target_option_default_node.
24851 and target_option_current_node.
24852 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
24853 (*call_symbol): Likewise.
24854 * doc/extend.texi: Document ARM/Thumb target attribute.
24855 * doc/invoke.texi: Likewise.
24857 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24860 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24861 PR rtl-optimization/64164
24862 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24863 * tree-ssa-copyrename.c: Removed.
24864 * opts.c (default_options_table): Drop -ftree-copyrename. Add
24865 -ftree-coalesce-vars.
24866 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24867 * common.opt (ftree-copyrename): Ignore.
24868 (ftree-coalesce-inlined-vars): Likewise.
24869 * doc/invoke.texi: Remove the ignored options above.
24870 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24871 * tree-ssa-coalesce.h: ... here.
24872 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24873 headers required by it.
24874 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24875 across variables when flag_tree_coalesce_vars. Check register
24876 use and promoted modes to allow coalescing. Moved to
24877 tree-ssa-coalesce.c.
24878 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24879 with its member functions to tree-ssa-coalesce.c.
24880 (var_map_base_init): Likewise. Renamed to
24881 compute_samebase_partition_bases.
24882 (partition_view_normal): Drop want_bases parameter.
24883 (partition_view_bitmap): Likewise.
24884 * tree-ssa-live.h: Adjust declarations.
24885 * tree-ssa-coalesce.c: Include explow.h.
24886 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24887 default defs at the entry point.
24888 (dump_part_var_map): New.
24889 (compute_optimized_partition_bases): New, called by...
24890 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24891 of compute_samebase_partition_bases. Adjust.
24892 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24893 * cfgexpand.c (leader_merge): New.
24894 (get_rtl_for_parm_ssa_default_def): New.
24895 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24896 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24897 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
24898 redundant MEM attr setting.
24899 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
24901 (expand_one_stack_var): ... this. New wrapper to check and
24902 skip already expanded SSA partitions.
24903 (record_alignment_for_reg_var): New, factored out of...
24904 (expand_one_var): ... this.
24905 (expand_one_ssa_partition): New.
24906 (adjust_one_expanded_partition_var): New.
24907 (expand_one_register_var): Check and skip already expanded SSA
24909 (expand_used_vars): Don't create DECLs for anonymous SSA
24910 names. Expand all SSA partitions, then adjust all SSA names.
24911 (pass::execute): Replace the loops that set
24912 SA.partition_to_pseudo from partition leaders and cleared
24913 DECL_RTL for multi-location variables, and that which used to
24914 rename vars and set attrs, with one that clears DECL_RTL and
24915 checks that PARMs and RESULTs default_defs match DECL_RTL.
24916 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24917 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24918 * explow.c (promote_ssa_mode): New.
24919 * explow.h (promote_ssa_mode): Declare.
24920 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24921 * function.c: Include cfgexpand.h.
24922 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24923 (use_register_for_parm_decl): Wrapper for the above to
24924 special-case the result_ptr.
24925 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24926 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24927 multiple locations.
24928 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24929 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
24930 (assign_parm_setup_block): Prefer SSA-assigned location.
24931 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
24932 if stack_parm is NULL.
24933 (assign_parm_setup_stack): Prefer SSA-assigned location.
24934 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
24935 rtl before testing for pointer bounds. Special-case result_ptr.
24936 (expand_function_start): Maybe reset DECL_RTL of result.
24937 Prefer SSA-assigned location for result and static chain.
24938 Factor out DECL_RESULT and SET_DECL_RTL.
24939 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24940 anonymous SSA names. Use promote_ssa_mode.
24941 (get_temp_reg): Likewise.
24942 (remove_ssa_form): Adjust.
24943 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24944 and get its reg_usage for reg invalidation.
24945 (compute_bb_dataflow): Pass it insn.
24946 (emit_notes_in_bb): Likewise.
24947 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24948 fail assert on conversion between unsigned types.
24950 2015-06-09 Tom de Vries <tom@codesourcery.com>
24952 PR tree-optimization/65460
24953 * omp-low.c (expand_omp_target): Set parallelized_function on
24954 cgraph_node for child_fn.
24956 2015-06-09 Tom de Vries <tom@codesourcery.com>
24958 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
24959 parallelized_function before add_new_function.
24961 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
24963 * gcc-plugin.h: Move decls to plugin.h and include it.
24964 * plugin.h: Relocate decls from gcc-plugin.h
24965 * ggc-page.c: Include required header files.
24966 * passes.c: Likewise.
24967 * cgraphunit.c: Likewise.
24969 2015-06-09 Tom de Vries <tom@codesourcery.com>
24971 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
24973 2015-06-09 Jason Merrill <jason@redhat.com>
24976 * toplev.c (check_global_declaration): Don't warn about a clone.
24978 2015-06-09 Marek Polacek <polacek@redhat.com>
24980 PR tree-optimization/66299
24981 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
24982 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
24985 2015-06-09 Richard Biener <rguenther@suse.de>
24987 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
24988 (vect_analyze_slp_instance): Instead do not falsely drop
24991 2015-06-09 Richard Biener <rguenther@suse.de>
24993 PR middle-end/66423
24994 * match.pd: Handle A % (unsigned)(1 << B).
24996 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
24998 * varasm.c (output_object_block_htab): Remove.
24999 (output_object_block_compare): New.
25000 (output_object_blocks): Sort named object_blocks before outputting
25003 2015-06-09 Richard Biener <rguenther@suse.de>
25005 PR tree-optimization/66419
25006 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
25007 consider GROUP_GAP when detecting a perfect subchain.
25009 2015-06-09 Nick Clifton <nickc@redhat.com>
25011 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
25012 place read only data in the .frodata section.
25014 2015-06-09 Shiva Chen <shiva0217@gmail.com>
25016 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
25017 (atomic_store<mode>): Likewise.
25019 2015-06-09 Richard Biener <rguenther@suse.de>
25021 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
25023 2015-06-09 Richard Biener <rguenther@suse.de>
25025 PR middle-end/66413
25026 * tree-inline.c (insert_init_debug_bind): Unshare value.
25028 2015-06-09 Richard Biener <rguenther@suse.de>
25030 PR tree-optimization/66396
25031 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
25032 Rename virtual operands.
25034 2015-06-09 Tom de Vries <tom@codesourcery.com>
25036 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
25037 always return false.
25039 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25041 PR rtl-optimization/64164
25042 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25043 * tree-ssa-copyrename.c: Removed.
25044 * opts.c (default_options_table): Drop -ftree-copyrename. Add
25045 -ftree-coalesce-vars.
25046 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25047 * common.opt (ftree-copyrename): Ignore.
25048 (ftree-coalesce-inlined-vars): Likewise.
25049 * doc/invoke.texi: Remove the ignored options above.
25050 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25051 * tree-ssa-coalesce.h: ... here.
25052 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25053 headers required by it.
25054 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25055 across variables when flag_tree_coalesce_vars. Check register
25056 use and promoted modes to allow coalescing. Moved to
25057 tree-ssa-coalesce.c.
25058 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25059 with its member functions to tree-ssa-coalesce.c.
25060 (var_map_base_init): Likewise. Renamed to
25061 compute_samebase_partition_bases.
25062 (partition_view_normal): Drop want_bases parameter.
25063 (partition_view_bitmap): Likewise.
25064 * tree-ssa-live.h: Adjust declarations.
25065 * tree-ssa-coalesce.c: Include explow.h.
25066 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25067 default defs at the entry point.
25068 (dump_part_var_map): New.
25069 (compute_optimized_partition_bases): New, called by...
25070 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25071 of compute_samebase_partition_bases. Adjust.
25072 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25073 * cfgexpand.c (leader_merge): New.
25074 (get_rtl_for_parm_ssa_default_def): New.
25075 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25076 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25077 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
25078 redundant MEM attr setting.
25079 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
25081 (expand_one_stack_var): ... this. New wrapper to check and
25082 skip already expanded SSA partitions.
25083 (record_alignment_for_reg_var): New, factored out of...
25084 (expand_one_var): ... this.
25085 (expand_one_ssa_partition): New.
25086 (adjust_one_expanded_partition_var): New.
25087 (expand_one_register_var): Check and skip already expanded SSA
25089 (expand_used_vars): Don't create DECLs for anonymous SSA
25090 names. Expand all SSA partitions, then adjust all SSA names.
25091 (pass::execute): Replace the loops that set
25092 SA.partition_to_pseudo from partition leaders and cleared
25093 DECL_RTL for multi-location variables, and that which used to
25094 rename vars and set attrs, with one that clears DECL_RTL and
25095 checks that PARMs and RESULTs default_defs match DECL_RTL.
25096 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25097 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25098 * explow.c (promote_ssa_mode): New.
25099 * explow.h (promote_ssa_mode): Declare.
25100 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25101 * function.c: Include cfgexpand.h.
25102 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25103 (use_register_for_parm_decl): Wrapper for the above to
25104 special-case the result_ptr.
25105 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25106 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25107 multiple locations.
25108 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25109 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
25110 (assign_parm_setup_block): Prefer SSA-assigned location.
25111 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
25112 if stack_parm is NULL.
25113 (assign_parm_setup_stack): Prefer SSA-assigned location.
25114 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
25115 rtl before testing for pointer bounds. Special-case result_ptr.
25116 (expand_function_start): Maybe reset DECL_RTL of result.
25117 Prefer SSA-assigned location for result and static chain.
25118 Factor out DECL_RESULT and SET_DECL_RTL.
25119 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25120 anonymous SSA names. Use promote_ssa_mode.
25121 (get_temp_reg): Likewise.
25122 (remove_ssa_form): Adjust.
25123 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25124 and get its reg_usage for reg invalidation.
25125 (compute_bb_dataflow): Pass it insn.
25126 (emit_notes_in_bb): Likewise.
25127 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25128 fail assert on conversion between unsigned types.
25130 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25133 * tree-inline.c (reset_debug_binding): New.
25134 (reset_debug_bindings): Likewise.
25135 (expand_call_inline): Call it.
25137 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25139 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
25142 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25144 * lto-streamer-out.c (lto_output_location): Stream
25145 reserved locations correctly.
25146 * lto-streamer-in.c (lto_output_location): Likewise.
25148 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
25150 * coretypes.h: Include hash-table.h and hash-set.h for host files.
25151 * ggc.h: Don't include statistics.h>
25152 * hash-map.h: Remove all includes.
25153 * hash-set.h: Likewise.
25154 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
25155 the include list. Remove <new>.
25156 * inchash.h: Remove all includes.
25157 * mem-stats.h: Likewise.
25158 * vec.h: No special processing for generators or ggc.
25159 * alias.c : Adjust include files.
25160 * alloc-pool.c : Likewise.
25161 * alloc-pool.h : Likewise.
25162 * asan.c : Likewise.
25163 * attribs.c : Likewise.
25164 * auto-inc-dec.c : Likewise.
25165 * auto-profile.c : Likewise.
25166 * bb-reorder.c : Likewise.
25167 * bitmap.c : Likewise.
25168 * bitmap.h : Likewise.
25169 * bt-load.c : Likewise.
25170 * builtins.c : Likewise.
25171 * caller-save.c : Likewise.
25172 * calls.c : Likewise.
25173 * ccmp.c : Likewise.
25174 * cfg.c : Likewise.
25175 * cfganal.c : Likewise.
25176 * cfgbuild.c : Likewise.
25177 * cfgcleanup.c : Likewise.
25178 * cfgexpand.c : Likewise.
25179 * cfghooks.c : Likewise.
25180 * cfgloop.c : Likewise.
25181 * cfgloop.h : Likewise.
25182 * cfgloopanal.c : Likewise.
25183 * cfgloopmanip.c : Likewise.
25184 * cfgrtl.c : Likewise.
25185 * cgraph.c : Likewise.
25186 * cgraphbuild.c : Likewise.
25187 * cgraphclones.c : Likewise.
25188 * cgraphunit.c : Likewise.
25189 * cilk-common.c : Likewise.
25190 * combine-stack-adj.c : Likewise.
25191 * combine.c : Likewise.
25192 * compare-elim.c : Likewise.
25193 * context.c : Likewise.
25194 * convert.c : Likewise.
25195 * coverage.c : Likewise.
25196 * cppbuiltin.c : Likewise.
25197 * cprop.c : Likewise.
25198 * cse.c : Likewise.
25199 * cselib.c : Likewise.
25200 * data-streamer-in.c : Likewise.
25201 * data-streamer-out.c : Likewise.
25202 * data-streamer.c : Likewise.
25203 * data-streamer.h : Likewise.
25204 * dbxout.c : Likewise.
25205 * dce.c : Likewise.
25206 * ddg.c : Likewise.
25207 * debug.c : Likewise.
25208 * df-core.c : Likewise.
25209 * df-problems.c : Likewise.
25210 * df-scan.c : Likewise.
25212 * dfp.c : Likewise.
25213 * dojump.c : Likewise.
25214 * dominance.c : Likewise.
25215 * domwalk.c : Likewise.
25216 * double-int.c : Likewise.
25217 * dse.c : Likewise.
25218 * dumpfile.c : Likewise.
25219 * dwarf2asm.c : Likewise.
25220 * dwarf2cfi.c : Likewise.
25221 * dwarf2out.c : Likewise.
25222 * emit-rtl.c : Likewise.
25223 * et-forest.c : Likewise.
25224 * except.c : Likewise.
25225 * except.h : Likewise.
25226 * explow.c : Likewise.
25227 * expmed.c : Likewise.
25228 * expr.c : Likewise.
25229 * final.c : Likewise.
25230 * fixed-value.c : Likewise.
25231 * fold-const.c : Likewise.
25232 * function.c : Likewise.
25233 * fwprop.c : Likewise.
25234 * gcc-plugin.h : Likewise.
25235 * gcc.c : Likewise.
25236 * gcse-common.c : Likewise.
25237 * gcse.c : Likewise.
25238 * genattrtab.c : Likewise.
25239 * genautomata.c : Likewise.
25240 * genconditions.c : Likewise.
25241 * genemit.c : Likewise.
25242 * generic-match-head.c : Likewise.
25243 * genextract.c : Likewise.
25244 * gengtype-state.c : Likewise.
25245 * gengtype.c : Likewise.
25246 * genhooks.c : Likewise.
25247 * genmatch.c : Likewise.
25248 * genmodes.c : Likewise.
25249 * genrecog.c : Likewise.
25250 * gensupport.c : Likewise.
25251 * ggc-common.c : Likewise.
25252 * ggc-internal.h : Likewise.
25253 * ggc-none.c : Likewise.
25254 * ggc-page.c : Likewise.
25255 * gimple-builder.c : Likewise.
25256 * gimple-expr.c : Likewise.
25257 * gimple-fold.c : Likewise.
25258 * gimple-iterator.c : Likewise.
25259 * gimple-low.c : Likewise.
25260 * gimple-match-head.c : Likewise.
25261 * gimple-pretty-print.c : Likewise.
25262 * gimple-ssa-isolate-paths.c : Likewise.
25263 * gimple-ssa-strength-reduction.c : Likewise.
25264 * gimple-ssa.h : Likewise.
25265 * gimple-streamer-in.c : Likewise.
25266 * gimple-streamer-out.c : Likewise.
25267 * gimple-streamer.h : Likewise.
25268 * gimple-walk.c : Likewise.
25269 * gimple.c : Likewise.
25270 * gimplify-me.c : Likewise.
25271 * gimplify.c : Likewise.
25272 * godump.c : Likewise.
25273 * graph.c : Likewise.
25274 * graphds.c : Likewise.
25275 * graphite-blocking.c : Likewise.
25276 * graphite-dependences.c : Likewise.
25277 * graphite-interchange.c : Likewise.
25278 * graphite-isl-ast-to-gimple.c : Likewise.
25279 * graphite-optimize-isl.c : Likewise.
25280 * graphite-poly.c : Likewise.
25281 * graphite-scop-detection.c : Likewise.
25282 * graphite-sese-to-poly.c : Likewise.
25283 * graphite.c : Likewise.
25284 * haifa-sched.c : Likewise.
25285 * hard-reg-set.h : Likewise.
25286 * hw-doloop.c : Likewise.
25287 * ifcvt.c : Likewise.
25288 * inchash.c : Likewise.
25289 * incpath.c : Likewise.
25290 * init-regs.c : Likewise.
25291 * input.c : Likewise.
25292 * internal-fn.c : Likewise.
25293 * ipa-chkp.c : Likewise.
25294 * ipa-comdats.c : Likewise.
25295 * ipa-cp.c : Likewise.
25296 * ipa-devirt.c : Likewise.
25297 * ipa-icf-gimple.c : Likewise.
25298 * ipa-icf.c : Likewise.
25299 * ipa-inline-analysis.c : Likewise.
25300 * ipa-inline-transform.c : Likewise.
25301 * ipa-inline.c : Likewise.
25302 * ipa-polymorphic-call.c : Likewise.
25303 * ipa-profile.c : Likewise.
25304 * ipa-prop.c : Likewise.
25305 * ipa-pure-const.c : Likewise.
25306 * ipa-ref.c : Likewise.
25307 * ipa-reference.c : Likewise.
25308 * ipa-split.c : Likewise.
25309 * ipa-utils.c : Likewise.
25310 * ipa-visibility.c : Likewise.
25311 * ipa.c : Likewise.
25312 * ira-build.c : Likewise.
25313 * ira-color.c : Likewise.
25314 * ira-conflicts.c : Likewise.
25315 * ira-costs.c : Likewise.
25316 * ira-emit.c : Likewise.
25317 * ira-lives.c : Likewise.
25318 * ira.c : Likewise.
25319 * jump.c : Likewise.
25320 * langhooks.c : Likewise.
25321 * lcm.c : Likewise.
25322 * libfuncs.h : Likewise.
25323 * lists.c : Likewise.
25324 * loop-doloop.c : Likewise.
25325 * loop-init.c : Likewise.
25326 * loop-invariant.c : Likewise.
25327 * loop-iv.c : Likewise.
25328 * loop-unroll.c : Likewise.
25329 * lower-subreg.c : Likewise.
25330 * lra-assigns.c : Likewise.
25331 * lra-coalesce.c : Likewise.
25332 * lra-constraints.c : Likewise.
25333 * lra-eliminations.c : Likewise.
25334 * lra-lives.c : Likewise.
25335 * lra-remat.c : Likewise.
25336 * lra-spills.c : Likewise.
25337 * lra.c : Likewise.
25338 * lto-cgraph.c : Likewise.
25339 * lto-compress.c : Likewise.
25340 * lto-opts.c : Likewise.
25341 * lto-section-in.c : Likewise.
25342 * lto-section-out.c : Likewise.
25343 * lto-streamer-in.c : Likewise.
25344 * lto-streamer-out.c : Likewise.
25345 * lto-streamer.c : Likewise.
25346 * lto-streamer.h : Likewise.
25347 * mcf.c : Likewise.
25348 * mode-switching.c : Likewise.
25349 * modulo-sched.c : Likewise.
25350 * omega.c : Likewise.
25351 * omp-low.c : Likewise.
25352 * optabs.c : Likewise.
25353 * opts-global.c : Likewise.
25354 * opts.h : Likewise.
25355 * passes.c : Likewise.
25356 * plugin.c : Likewise.
25357 * postreload-gcse.c : Likewise.
25358 * postreload.c : Likewise.
25359 * predict.c : Likewise.
25360 * print-rtl.c : Likewise.
25361 * print-tree.c : Likewise.
25362 * profile.c : Likewise.
25363 * read-md.c : Likewise.
25364 * read-md.h : Likewise.
25365 * read-rtl.c : Likewise.
25366 * real.c : Likewise.
25367 * realmpfr.c : Likewise.
25368 * recog.c : Likewise.
25369 * ree.c : Likewise.
25370 * reg-stack.c : Likewise.
25371 * regcprop.c : Likewise.
25372 * reginfo.c : Likewise.
25373 * regrename.c : Likewise.
25374 * regstat.c : Likewise.
25375 * reload.c : Likewise.
25376 * reload1.c : Likewise.
25377 * reorg.c : Likewise.
25378 * resource.c : Likewise.
25379 * rtl-chkp.c : Likewise.
25380 * rtl.c : Likewise.
25381 * rtl.h : Likewise.
25382 * rtlanal.c : Likewise.
25383 * rtlhash.c : Likewise.
25384 * rtlhash.h : Likewise.
25385 * rtlhooks.c : Likewise.
25386 * sanopt.c : Likewise.
25387 * sched-deps.c : Likewise.
25388 * sched-ebb.c : Likewise.
25389 * sched-rgn.c : Likewise.
25390 * sched-vis.c : Likewise.
25391 * sdbout.c : Likewise.
25392 * sel-sched-dump.c : Likewise.
25393 * sel-sched-ir.c : Likewise.
25394 * sel-sched-ir.h : Likewise.
25395 * sel-sched.c : Likewise.
25396 * sese.c : Likewise.
25397 * shrink-wrap.c : Likewise.
25398 * shrink-wrap.h : Likewise.
25399 * simplify-rtx.c : Likewise.
25400 * stack-ptr-mod.c : Likewise.
25401 * statistics.c : Likewise.
25402 * stmt.c : Likewise.
25403 * stor-layout.c : Likewise.
25404 * store-motion.c : Likewise.
25405 * stringpool.c : Likewise.
25406 * symtab.c : Likewise.
25407 * target-globals.c : Likewise.
25408 * targhooks.c : Likewise.
25409 * tlink.c : Likewise.
25410 * toplev.c : Likewise.
25411 * tracer.c : Likewise.
25412 * trans-mem.c : Likewise.
25413 * tree-affine.c : Likewise.
25414 * tree-affine.h : Likewise.
25415 * tree-browser.c : Likewise.
25416 * tree-call-cdce.c : Likewise.
25417 * tree-cfg.c : Likewise.
25418 * tree-cfgcleanup.c : Likewise.
25419 * tree-chkp-opt.c : Likewise.
25420 * tree-chkp.c : Likewise.
25421 * tree-chrec.c : Likewise.
25422 * tree-complex.c : Likewise.
25423 * tree-data-ref.c : Likewise.
25424 * tree-dfa.c : Likewise.
25425 * tree-diagnostic.c : Likewise.
25426 * tree-dump.c : Likewise.
25427 * tree-eh.c : Likewise.
25428 * tree-eh.h : Likewise.
25429 * tree-emutls.c : Likewise.
25430 * tree-hasher.h : Likewise.
25431 * tree-if-conv.c : Likewise.
25432 * tree-inline.c : Likewise.
25433 * tree-inline.h : Likewise.
25434 * tree-into-ssa.c : Likewise.
25435 * tree-iterator.c : Likewise.
25436 * tree-loop-distribution.c : Likewise.
25437 * tree-nested.c : Likewise.
25438 * tree-nrv.c : Likewise.
25439 * tree-object-size.c : Likewise.
25440 * tree-outof-ssa.c : Likewise.
25441 * tree-parloops.c : Likewise.
25442 * tree-phinodes.c : Likewise.
25443 * tree-predcom.c : Likewise.
25444 * tree-pretty-print.c : Likewise.
25445 * tree-profile.c : Likewise.
25446 * tree-scalar-evolution.c : Likewise.
25447 * tree-sra.c : Likewise.
25448 * tree-ssa-address.c : Likewise.
25449 * tree-ssa-alias.c : Likewise.
25450 * tree-ssa-ccp.c : Likewise.
25451 * tree-ssa-coalesce.c : Likewise.
25452 * tree-ssa-copy.c : Likewise.
25453 * tree-ssa-copyrename.c : Likewise.
25454 * tree-ssa-dce.c : Likewise.
25455 * tree-ssa-dom.c : Likewise.
25456 * tree-ssa-dse.c : Likewise.
25457 * tree-ssa-forwprop.c : Likewise.
25458 * tree-ssa-ifcombine.c : Likewise.
25459 * tree-ssa-live.c : Likewise.
25460 * tree-ssa-loop-ch.c : Likewise.
25461 * tree-ssa-loop-im.c : Likewise.
25462 * tree-ssa-loop-ivcanon.c : Likewise.
25463 * tree-ssa-loop-ivopts.c : Likewise.
25464 * tree-ssa-loop-manip.c : Likewise.
25465 * tree-ssa-loop-niter.c : Likewise.
25466 * tree-ssa-loop-prefetch.c : Likewise.
25467 * tree-ssa-loop-unswitch.c : Likewise.
25468 * tree-ssa-loop.c : Likewise.
25469 * tree-ssa-math-opts.c : Likewise.
25470 * tree-ssa-operands.c : Likewise.
25471 * tree-ssa-phiopt.c : Likewise.
25472 * tree-ssa-phiprop.c : Likewise.
25473 * tree-ssa-pre.c : Likewise.
25474 * tree-ssa-propagate.c : Likewise.
25475 * tree-ssa-reassoc.c : Likewise.
25476 * tree-ssa-sccvn.c : Likewise.
25477 * tree-ssa-scopedtables.c : Likewise.
25478 * tree-ssa-sink.c : Likewise.
25479 * tree-ssa-strlen.c : Likewise.
25480 * tree-ssa-structalias.c : Likewise.
25481 * tree-ssa-tail-merge.c : Likewise.
25482 * tree-ssa-ter.c : Likewise.
25483 * tree-ssa-threadedge.c : Likewise.
25484 * tree-ssa-threadupdate.c : Likewise.
25485 * tree-ssa-uncprop.c : Likewise.
25486 * tree-ssa-uninit.c : Likewise.
25487 * tree-ssa.c : Likewise.
25488 * tree-ssanames.c : Likewise.
25489 * tree-stdarg.c : Likewise.
25490 * tree-streamer-in.c : Likewise.
25491 * tree-streamer-out.c : Likewise.
25492 * tree-streamer.c : Likewise.
25493 * tree-streamer.h : Likewise.
25494 * tree-switch-conversion.c : Likewise.
25495 * tree-tailcall.c : Likewise.
25496 * tree-vect-data-refs.c : Likewise.
25497 * tree-vect-generic.c : Likewise.
25498 * tree-vect-loop-manip.c : Likewise.
25499 * tree-vect-loop.c : Likewise.
25500 * tree-vect-patterns.c : Likewise.
25501 * tree-vect-slp.c : Likewise.
25502 * tree-vect-stmts.c : Likewise.
25503 * tree-vectorizer.c : Likewise.
25504 * tree-vectorizer.h : Likewise.
25505 * tree-vrp.c : Likewise.
25506 * tree.c : Likewise.
25507 * tsan.c : Likewise.
25508 * ubsan.c : Likewise.
25509 * valtrack.c : Likewise.
25510 * valtrack.h : Likewise.
25511 * value-prof.c : Likewise.
25512 * var-tracking.c : Likewise.
25513 * varasm.c : Likewise.
25514 * varpool.c : Likewise.
25516 * vmsdbgout.c : Likewise.
25517 * vtable-verify.c : Likewise.
25518 * vtable-verify.h : Likewise.
25519 * web.c : Likewise.
25520 * wide-int.cc : Likewise.
25521 * xcoffout.c : Likewise.
25522 * config/aarch64/aarch64-builtins.c : Likewise.
25523 * config/aarch64/aarch64.c : Likewise.
25524 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
25525 * config/alpha/alpha.c : Likewise.
25526 * config/arc/arc.c : Likewise.
25527 * config/arm/aarch-common.c : Likewise.
25528 * config/arm/arm-builtins.c : Likewise.
25529 * config/arm/arm-c.c : Likewise.
25530 * config/arm/arm.c : Likewise.
25531 * config/avr/avr-c.c : Likewise.
25532 * config/avr/avr-log.c : Likewise.
25533 * config/avr/avr.c : Likewise.
25534 * config/bfin/bfin.c : Likewise.
25535 * config/c6x/c6x.c : Likewise.
25536 * config/cr16/cr16.c : Likewise.
25537 * config/cris/cris.c : Likewise.
25538 * config/darwin-c.c : Likewise.
25539 * config/darwin.c : Likewise.
25540 * config/default-c.c : Likewise.
25541 * config/epiphany/epiphany.c : Likewise.
25542 * config/epiphany/mode-switch-use.c : Likewise.
25543 * config/epiphany/resolve-sw-modes.c : Likewise.
25544 * config/fr30/fr30.c : Likewise.
25545 * config/frv/frv.c : Likewise.
25546 * config/ft32/ft32.c : Likewise.
25547 * config/glibc-c.c : Likewise.
25548 * config/h8300/h8300.c : Likewise.
25549 * config/i386/i386-c.c : Likewise.
25550 * config/i386/i386.c : Likewise.
25551 * config/i386/msformat-c.c : Likewise.
25552 * config/i386/winnt-cxx.c : Likewise.
25553 * config/i386/winnt-stubs.c : Likewise.
25554 * config/i386/winnt.c : Likewise.
25555 * config/ia64/ia64-c.c : Likewise.
25556 * config/ia64/ia64.c : Likewise.
25557 * config/iq2000/iq2000.c : Likewise.
25558 * config/lm32/lm32.c : Likewise.
25559 * config/m32c/m32c-pragma.c : Likewise.
25560 * config/m32c/m32c.c : Likewise.
25561 * config/m32r/m32r.c : Likewise.
25562 * config/m68k/m68k.c : Likewise.
25563 * config/mcore/mcore.c : Likewise.
25564 * config/mep/mep-pragma.c : Likewise.
25565 * config/mep/mep.c : Likewise.
25566 * config/microblaze/microblaze-c.c : Likewise.
25567 * config/microblaze/microblaze.c : Likewise.
25568 * config/mips/mips.c : Likewise.
25569 * config/mmix/mmix.c : Likewise.
25570 * config/mn10300/mn10300.c : Likewise.
25571 * config/moxie/moxie.c : Likewise.
25572 * config/msp430/msp430-c.c : Likewise.
25573 * config/msp430/msp430.c : Likewise.
25574 * config/nds32/nds32-cost.c : Likewise.
25575 * config/nds32/nds32-fp-as-gp.c : Likewise.
25576 * config/nds32/nds32-intrinsic.c : Likewise.
25577 * config/nds32/nds32-isr.c : Likewise.
25578 * config/nds32/nds32-md-auxiliary.c : Likewise.
25579 * config/nds32/nds32-memory-manipulation.c : Likewise.
25580 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
25581 * config/nds32/nds32-predicates.c : Likewise.
25582 * config/nds32/nds32.c : Likewise.
25583 * config/nios2/nios2.c : Likewise.
25584 * config/nvptx/nvptx.c : Likewise.
25585 * config/pa/pa.c : Likewise.
25586 * config/pdp11/pdp11.c : Likewise.
25587 * config/rl78/rl78-c.c : Likewise.
25588 * config/rl78/rl78.c : Likewise.
25589 * config/rs6000/rs6000-c.c : Likewise.
25590 * config/rs6000/rs6000.c : Likewise.
25591 * config/rx/rx.c : Likewise.
25592 * config/s390/s390-c.c : Likewise.
25593 * config/s390/s390.c : Likewise.
25594 * config/sh/sh-c.c : Likewise.
25595 * config/sh/sh-mem.cc : Likewise.
25596 * config/sh/sh.c : Likewise.
25597 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
25598 * config/sh/sh_treg_combine.cc : Likewise.
25599 * config/sol2-c.c : Likewise.
25600 * config/sol2-cxx.c : Likewise.
25601 * config/sol2-stubs.c : Likewise.
25602 * config/sol2.c : Likewise.
25603 * config/sparc/sparc-c.c : Likewise.
25604 * config/sparc/sparc.c : Likewise.
25605 * config/spu/spu-c.c : Likewise.
25606 * config/spu/spu.c : Likewise.
25607 * config/stormy16/stormy16.c : Likewise.
25608 * config/tilegx/mul-tables.c : Likewise.
25609 * config/tilegx/tilegx-c.c : Likewise.
25610 * config/tilegx/tilegx.c : Likewise.
25611 * config/tilepro/mul-tables.c : Likewise.
25612 * config/tilepro/tilepro-c.c : Likewise.
25613 * config/tilepro/tilepro.c : Likewise.
25614 * config/v850/v850-c.c : Likewise.
25615 * config/v850/v850.c : Likewise.
25616 * config/vax/vax.c : Likewise.
25617 * config/visium/visium.c : Likewise.
25618 * config/vms/vms-c.c : Likewise.
25619 * config/vms/vms.c : Likewise.
25620 * config/vxworks.c : Likewise.
25621 * config/winnt-c.c : Likewise.
25622 * config/xtensa/xtensa.c : Likewise.
25624 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25627 * ipa-utils.h (warn_types_mismatch): Update prototype.
25628 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
25630 (type_mismatch_p): New function.
25631 (warn_types_mismatch): Reorg to work better on non-C++ types.
25632 (odr_types_equivalent_p): Add loc1/loc2 parameters.
25633 (add_type_duplicate): Update.
25635 2015-06-08 Tom de Vries <tom@codesourcery.com>
25637 PR rtl-optimization/66444
25638 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
25641 2015-06-08 Richard Biener <rguenther@suse.de>
25643 PR tree-optimization/66422
25644 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
25645 block after inserted gcc_unreachable.
25647 2015-06-08 Nick Clifton <nickc@redhat.com>
25649 * config/rx/rx.c (rx_function_value): Do not promote vector types.
25650 (rx_promote_function_mode): Likewise.
25651 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
25653 2015-06-08 Jakub Jelinek <jakub@redhat.com>
25655 * genattrtab.c (insn_alternatives): Change type from int *
25657 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
25658 (get_attr_value): Change type of num_alt to uint64_t.
25659 (compute_alternative_mask): Change return type from
25660 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
25661 (make_alternative_compare, mk_attr_alt): Change argument type
25662 from int to uint64_t.
25663 (simplify_test_exp): Change type of i from int to uint64_t.
25664 Shift ((uint64_t) 1) instead of 1 up.
25665 (main): Adjust oballocvec first argument from int to uint64_t.
25666 Shift ((uint64_t) 1) instead of 1 up.
25668 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
25671 * gdbhooks.py: Import sys.
25672 (intptr): New function. Replace int(...) by intptr(...).
25674 2015-06-08 Richard Biener <rguenther@suse.de>
25676 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
25677 adjustment for gaps at the end of a SLP load group properly.
25678 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
25679 all permutations we can generate.
25680 (vect_transform_slp_perm_load): Use the correct group-size.
25682 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
25684 * genmatch.c (expr::gen_transform): For conditions, guess the type
25685 from the second operand.
25687 2015-06-08 Tom de Vries <tom@codesourcery.com>
25689 PR tree-optimization/66442
25690 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
25691 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
25692 if the loop latch is not a singleton. Use
25693 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
25695 2015-06-08 Marek Polacek <polacek@redhat.com>
25698 * toplev.c (check_global_declaration): Don't warn about artificial
25701 2015-06-08 Tom de Vries <tom@codesourcery.com>
25703 PR tree-optimization/66436
25704 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
25706 * gimplify.c: Add tree-dump.h include.
25707 (gimplify_function_tree): Dump function to gimple dump file.
25708 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
25711 2015-06-08 Tom de Vries <tom@codesourcery.com>
25713 PR tree-optimization/66435
25714 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
25717 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
25719 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
25720 of ptr_type_node to not be ptr_to_node.
25721 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
25722 TREE_TYPE of pointers.
25723 * gimple-expr.c (useless_type_conversion): Reorder the check for
25724 function pointers and TYPE_CANONICAL.
25726 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
25729 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
25730 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
25731 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
25733 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
25734 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
25735 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
25736 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
25737 and non iso if unix2003.
25739 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
25741 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
25743 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
25745 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
25746 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
25747 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
25748 except.c, final.c, function.c, gcse-common.c, genemit.c,
25749 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
25750 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
25751 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
25752 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
25755 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
25757 * combine.c (combine_split_insns): Remove cast.
25758 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
25759 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
25760 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
25761 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
25762 * genemit.c (gen_split): Change return type of generated functions to
25764 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
25765 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
25766 gen_peephole2_* functions.
25767 (print_subroutine, main): Likewise.
25768 * recog.c (peephole2_optimize): Remove cast.
25769 (peep2_next_insn): Promote return type to rtx_insn.
25770 * recog.h (peep2_next_insn): Fix prototype.
25771 * rtl.h (try_split, split_insns): Likewise.
25773 2015-06-06 DJ Delorie <dj@redhat.com>
25775 * config/msp430/msp430.c (msp430_asm_integer): Support addition
25776 and subtraction too.
25778 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
25781 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
25782 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
25783 instead of Snd. Disparage Sid/z alternative with '^'.
25785 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
25787 * dwarf2out.c: Remove deferred_locations*.
25788 (dwarf2_debug_hooks): Add early_finish hook.
25789 Remove global_decl hook.
25790 Add early_global_decl and late_global_decl hook.
25791 New global early_dwarf.
25792 New structure set_early_dwarf.
25793 (output_die): Indicate whether a DIE was generated early
25794 when generating assembly with -dA.
25795 (struct limbo_die_struct): Document created_for field.
25796 Remove file_table_last_lookup.
25797 (remove_AT): Return TRUE if successful.
25798 (remove_child_TAG): Clear die_parent.
25799 (reparent_child): New function abstracted from...
25800 (splice_child_die): ...here.
25801 (new_die): ICE if a DIE ends up in limbo too late.
25803 (defer_location): Remove.
25804 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
25805 (fill_variable_array_bounds): New.
25806 (decl_start_label): Call fill_variable_array_bounds.
25807 (gen_formal_parameter_die): Rewrite to reuse previously generated
25809 (gen_subprogram_die): Same.
25810 (gen_variable_die): Same.
25811 (gen_const_die): Same.
25812 (gen_label_die): Same.
25813 (gen_lexical_block_die): Same.
25814 (decl_will_get_specification_p): New.
25815 (local_function_static): New.
25816 (gen_struct_or_union_type_die): Fill in variable-length fields.
25817 (gen_typedef_die): Fill in variable-length typedefs.
25818 (gen_tagged_type_die): Gracefully return on error_mark_node.
25819 Handle re-entrancy.
25820 (gen_type_die_with_usage): Handle variable-length types.
25821 Remove duplicate code for ARRAY_TYPE case.
25822 (process_scope_var): Only process imported modules during early
25824 (dwarf2out_early_global_decl): New.
25825 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
25826 (dwarf2out_type_decl): Set early_dwarf while calling
25828 (dwarf2out_decl): Verify that we did not recreate a previously
25830 Do not return on DECL_EXTERNALs in VAR_DECLs.
25831 Abstract some code to local_function_static.
25832 (lookup_filename): Remove use of file_table_last_lookup.
25833 Gracefully exit on missing file_name.
25834 (dwarf2out_finish): Verify limbo list.
25835 Remove deferred_locations_list use.
25836 Move deferred_asm_name and limbo flushing to...
25837 (dwarf2out_early_finish): ...here. New.
25838 (dwarf2out_c_finalize): Remove set of deferred_location_list,
25839 deferred_asm_name, and file_table_last_lookup.
25840 * cgraph.h (referred_to_p): Add default argument.
25841 * cgraphunit.c (referred_to_p): Add and handle include_self
25843 (analyze_functions): Add first_time argument.
25844 Call check_global_declaration for all symbols.
25845 Call late_global_decl for nodes for moribund nodes.
25846 (finalize_compilation_unit): Add new argument to
25848 Call early_global_decl for functions.
25849 Call early_finish debug hook.
25850 * dbxout.c (dbxout_early_global_decl): New.
25851 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
25852 (dbx_debug_hooks): Add new hooks.
25853 (xcoff_debug_hooks): Same.
25854 * debug.c (do_nothing_debug_hooks): Add early_finish field.
25855 Add early and late debug hooks.
25856 Remove global_decl hook.
25857 * debug.h (struct gcc_debug_hooks): Add early_finish,
25858 early_global_decl, and late_global_decl fields.
25859 Remove global_decl field.
25860 Document gcc_debug_hooks.
25861 * gengtype.c (output_typename): Remove.
25862 * godump.c (go_early_global_decl): New.
25863 (go_late_global_decl): New.
25864 (go_global_decl): Remove.
25865 (dump_go_spec_init): Remove global_decl. Add
25866 {early,late}_global_decl.
25867 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
25868 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
25869 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
25870 (write_global_declarations): Remove.
25871 (global_decl_processing): New.
25872 * langhooks.h (struct lang_hooks_for_decls): Remove
25873 final_write_globals field.
25874 Add post_compilation_parsing_cleanups field.
25875 * passes.c (rest_of_decl_compilation): Call early_global_decl.
25876 * sdbout.c: Add early and late_global_decl hooks. Remove
25877 sdbout_global_decl hook.
25878 Add early_finish field for sdb_debug_hooks.
25879 (sdbout_global_decl): Remove.
25880 (sdbout_early_global_decl): New.
25881 (sdbout_late_global_decl): New.
25882 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
25883 * toplev.c (check_global_declaration): Rename from
25884 check_global_declaration_1.
25885 Adapt to use symtab infrastructure.
25886 (check_global_declarations): Remove.
25887 (emit_debug_global_declarations): Remove.
25888 (compile_file): Remove call to final_write_globals langhook.
25889 Run the actual compilation process.
25890 Perform any post compilation parser cleanups.
25891 Generate late debug info.
25892 * toplev.h (check_global_declaration): New.
25893 (check_global_declaration_1): Remove.
25894 (check_global_declarations): Remove.
25895 (write_global_declarations): Remove.
25896 (emit_debug_global_declarations): Remove.
25897 (global_decl_processing): New.
25898 * tree-core.h (struct tree_block): Add DIE field.
25899 * tree.h (BLOCK_DIE): New.
25900 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
25902 (vmsdbgout_early_global_decl): New.
25903 (vmsdbgout_late_global_decl): New.
25904 Add early_finish debug hook field to vmsdbg_debug_hooks.
25905 Remove vmsdbgout_decl to vmsdbgout_function_decl.
25906 Add early and late_global_decl debug hooks.
25908 2015-06-05 Julian Brown <julian@codesourcery.com>
25909 Sandra Loosemore <sandra@codesourcery.com>
25911 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
25912 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
25913 to print-sysroot-suffix.sh script.
25915 2015-06-05 Tom de Vries <tom@codesourcery.com>
25917 merge from gomp4 branch:
25918 2015-05-28 Tom de Vries <tom@codesourcery.com>
25920 PR tree-optimization/65443
25921 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
25922 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
25923 (try_transform_to_exit_first_loop_alt): New function.
25924 (transform_to_exit_first_loop): Use
25925 try_transform_to_exit_first_loop_alt.
25927 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
25929 * builtins.c (expand_builtin_atomic_compare_exchange): Call
25930 emit_cmp_and_jump_insns with the mode of target.
25932 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25934 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
25936 2015-06-04 DJ Delorie <dj@redhat.com>
25938 * config/msp430/msp430.md (movsi_s): New. Special case for
25939 storing a 20-bit symbol into a 32-bit register.
25940 * config/msp430/msp430.c (msp430_subreg): Add support for it.
25941 * config/msp430/predicates.md (msp430_symbol_operand): New.
25943 2015-06-04 Sriraman Tallam <tmsriram@google.com>
25945 * c-family/c-common.c (noplt): New attribute.
25946 (handle_noplt_attribute): New handler.
25947 * calls.c (prepare_call_address): Check for noplt
25949 * config/i386/i386.c (ix86_expand_call): Check
25950 for noplt attribute.
25951 (ix86_nopic_noplt_attribute_p): New function.
25952 (ix86_output_call_insn): Output indirect call for non-pic
25954 * doc/extend.texi (noplt): Document new attribute.
25955 * doc/invoke.texi: Document new attribute.
25957 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
25959 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
25960 real.h, and fixed-value.h when included in host source files.
25961 * double-int.h: Remove redundant #includes listed above.
25962 * fixed-value.h: Likewise.
25963 * real.h: Likewise.
25964 * wide-int.h: Likewise.
25965 * inchash.h: Likewise.
25966 * rtl.h: Add some include files When included from a generator file.
25967 * target.h: Remove wide-int.h and insn-modes.h from the include list.
25968 * internal-fn.h: Don't include coretypes.h.
25969 * alias.c: Adjust includes for restructured coretypes.h.
25970 * asan.c: Likewise.
25971 * attribs.c: Likewise.
25972 * auto-inc-dec.c: Likewise.
25973 * auto-profile.c: Likewise.
25974 * bb-reorder.c: Likewise.
25975 * bt-load.c: Likewise.
25976 * builtins.c: Likewise.
25977 * caller-save.c: Likewise.
25978 * calls.c: Likewise.
25979 * ccmp.c: Likewise.
25981 * cfganal.c: Likewise.
25982 * cfgbuild.c: Likewise.
25983 * cfgcleanup.c: Likewise.
25984 * cfgexpand.c: Likewise.
25985 * cfghooks.c: Likewise.
25986 * cfgloop.c: Likewise.
25987 * cfgloop.h: Likewise.
25988 * cfgloopanal.c: Likewise.
25989 * cfgloopmanip.c: Likewise.
25990 * cfgrtl.c: Likewise.
25991 * cgraph.c: Likewise.
25992 * cgraphbuild.c: Likewise.
25993 * cgraphclones.c: Likewise.
25994 * cgraphunit.c: Likewise.
25995 * cilk-common.c: Likewise.
25996 * combine-stack-adj.c: Likewise.
25997 * combine.c: Likewise.
25998 * compare-elim.c: Likewise.
25999 * convert.c: Likewise.
26000 * coverage.c: Likewise.
26001 * cppbuiltin.c: Likewise.
26002 * cprop.c: Likewise.
26004 * cselib.c: Likewise.
26005 * data-streamer-in.c: Likewise.
26006 * data-streamer-out.c: Likewise.
26007 * data-streamer.c: Likewise.
26008 * dbxout.c: Likewise.
26011 * debug.c: Likewise.
26012 * df-core.c: Likewise.
26013 * df-problems.c: Likewise.
26014 * df-scan.c: Likewise.
26017 * dojump.c: Likewise.
26018 * dominance.c: Likewise.
26019 * domwalk.c: Likewise.
26020 * double-int.c: Likewise.
26022 * dumpfile.c: Likewise.
26023 * dwarf2asm.c: Likewise.
26024 * dwarf2cfi.c: Likewise.
26025 * dwarf2out.c: Likewise.
26026 * dwarf2out.h: Likewise.
26027 * emit-rtl.c: Likewise.
26028 * et-forest.c: Likewise.
26029 * except.c: Likewise.
26030 * explow.c: Likewise.
26031 * expmed.c: Likewise.
26032 * expr.c: Likewise.
26033 * final.c: Likewise.
26034 * fixed-value.c: Likewise.
26035 * fold-const.c: Likewise.
26036 * function.c: Likewise.
26037 * fwprop.c: Likewise.
26038 * gcc-plugin.h: Likewise.
26039 * gcse.c: Likewise.
26040 * generic-match-head.c: Likewise.
26041 * ggc-page.c: Likewise.
26042 * gimple-builder.c: Likewise.
26043 * gimple-expr.c: Likewise.
26044 * gimple-fold.c: Likewise.
26045 * gimple-iterator.c: Likewise.
26046 * gimple-low.c: Likewise.
26047 * gimple-match-head.c: Likewise.
26048 * gimple-pretty-print.c: Likewise.
26049 * gimple-ssa-isolate-paths.c: Likewise.
26050 * gimple-ssa-strength-reduction.c: Likewise.
26051 * gimple-streamer-in.c: Likewise.
26052 * gimple-streamer-out.c: Likewise.
26053 * gimple-streamer.h: Likewise.
26054 * gimple-walk.c: Likewise.
26055 * gimple.c: Likewise.
26056 * gimplify-me.c: Likewise.
26057 * gimplify.c: Likewise.
26058 * godump.c: Likewise.
26059 * graph.c: Likewise.
26060 * graphite-blocking.c: Likewise.
26061 * graphite-dependences.c: Likewise.
26062 * graphite-interchange.c: Likewise.
26063 * graphite-isl-ast-to-gimple.c: Likewise.
26064 * graphite-optimize-isl.c: Likewise.
26065 * graphite-poly.c: Likewise.
26066 * graphite-scop-detection.c: Likewise.
26067 * graphite-sese-to-poly.c: Likewise.
26068 * graphite.c: Likewise.
26069 * haifa-sched.c: Likewise.
26070 * hooks.h: Likewise.
26071 * hw-doloop.c: Likewise.
26072 * ifcvt.c: Likewise.
26073 * incpath.c: Likewise.
26074 * init-regs.c: Likewise.
26075 * internal-fn.c: Likewise.
26076 * ipa-chkp.c: Likewise.
26077 * ipa-comdats.c: Likewise.
26078 * ipa-cp.c: Likewise.
26079 * ipa-devirt.c: Likewise.
26080 * ipa-icf-gimple.c: Likewise.
26081 * ipa-icf.c: Likewise.
26082 * ipa-inline-analysis.c: Likewise.
26083 * ipa-inline-transform.c: Likewise.
26084 * ipa-inline.c: Likewise.
26085 * ipa-polymorphic-call.c: Likewise.
26086 * ipa-profile.c: Likewise.
26087 * ipa-prop.c: Likewise.
26088 * ipa-pure-const.c: Likewise.
26089 * ipa-ref.c: Likewise.
26090 * ipa-reference.c: Likewise.
26091 * ipa-split.c: Likewise.
26092 * ipa-utils.c: Likewise.
26093 * ipa-visibility.c: Likewise.
26095 * ira-build.c: Likewise.
26096 * ira-color.c: Likewise.
26097 * ira-conflicts.c: Likewise.
26098 * ira-costs.c: Likewise.
26099 * ira-emit.c: Likewise.
26100 * ira-lives.c: Likewise.
26102 * jump.c: Likewise.
26103 * langhooks.c: Likewise.
26105 * loop-doloop.c: Likewise.
26106 * loop-init.c: Likewise.
26107 * loop-invariant.c: Likewise.
26108 * loop-iv.c: Likewise.
26109 * loop-unroll.c: Likewise.
26110 * lower-subreg.c: Likewise.
26111 * lra-assigns.c: Likewise.
26112 * lra-coalesce.c: Likewise.
26113 * lra-constraints.c: Likewise.
26114 * lra-eliminations.c: Likewise.
26115 * lra-lives.c: Likewise.
26116 * lra-remat.c: Likewise.
26117 * lra-spills.c: Likewise.
26119 * lto-cgraph.c: Likewise.
26120 * lto-compress.c: Likewise.
26121 * lto-opts.c: Likewise.
26122 * lto-section-in.c: Likewise.
26123 * lto-section-out.c: Likewise.
26124 * lto-streamer-in.c: Likewise.
26125 * lto-streamer-out.c: Likewise.
26126 * lto-streamer.c: Likewise.
26128 * mode-switching.c: Likewise.
26129 * modulo-sched.c: Likewise.
26130 * omega.c: Likewise.
26131 * omp-low.c: Likewise.
26132 * optabs.c: Likewise.
26133 * opts-global.c: Likewise.
26134 * passes.c: Likewise.
26135 * plugin.c: Likewise.
26136 * postreload-gcse.c: Likewise.
26137 * postreload.c: Likewise.
26138 * predict.c: Likewise.
26139 * print-rtl.c: Likewise.
26140 * print-tree.c: Likewise.
26141 * profile.c: Likewise.
26142 * real.c: Likewise.
26143 * realmpfr.c: Likewise.
26144 * realmpfr.h: Likewise.
26145 * recog.c: Likewise.
26147 * reg-stack.c: Likewise.
26148 * regcprop.c: Likewise.
26149 * reginfo.c: Likewise.
26150 * regrename.c: Likewise.
26151 * regs.h: Likewise.
26152 * regstat.c: Likewise.
26153 * reload.c: Likewise.
26154 * reload1.c: Likewise.
26155 * reorg.c: Likewise.
26156 * resource.c: Likewise.
26157 * rtl-chkp.c: Likewise.
26158 * rtlanal.c: Likewise.
26159 * rtlhooks.c: Likewise.
26160 * sanopt.c: Likewise.
26161 * sched-deps.c: Likewise.
26162 * sched-ebb.c: Likewise.
26163 * sched-rgn.c: Likewise.
26164 * sched-vis.c: Likewise.
26165 * sdbout.c: Likewise.
26166 * sel-sched-dump.c: Likewise.
26167 * sel-sched-ir.c: Likewise.
26168 * sel-sched.c: Likewise.
26169 * sese.c: Likewise.
26170 * shrink-wrap.c: Likewise.
26171 * shrink-wrap.h: Likewise.
26172 * simplify-rtx.c: Likewise.
26173 * stack-ptr-mod.c: Likewise.
26174 * statistics.c: Likewise.
26175 * stmt.c: Likewise.
26176 * stor-layout.c: Likewise.
26177 * store-motion.c: Likewise.
26178 * stringpool.c: Likewise.
26179 * symtab.c: Likewise.
26180 * target-globals.c: Likewise.
26181 * targhooks.c: Likewise.
26182 * toplev.c: Likewise.
26183 * tracer.c: Likewise.
26184 * trans-mem.c: Likewise.
26185 * tree-affine.c: Likewise.
26186 * tree-affine.h: Likewise.
26187 * tree-browser.c: Likewise.
26188 * tree-call-cdce.c: Likewise.
26189 * tree-cfg.c: Likewise.
26190 * tree-cfgcleanup.c: Likewise.
26191 * tree-chkp-opt.c: Likewise.
26192 * tree-chkp.c: Likewise.
26193 * tree-chrec.c: Likewise.
26194 * tree-complex.c: Likewise.
26195 * tree-data-ref.c: Likewise.
26196 * tree-dfa.c: Likewise.
26197 * tree-diagnostic.c: Likewise.
26198 * tree-dump.c: Likewise.
26199 * tree-eh.c: Likewise.
26200 * tree-emutls.c: Likewise.
26201 * tree-if-conv.c: Likewise.
26202 * tree-inline.c: Likewise.
26203 * tree-into-ssa.c: Likewise.
26204 * tree-iterator.c: Likewise.
26205 * tree-loop-distribution.c: Likewise.
26206 * tree-nested.c: Likewise.
26207 * tree-nrv.c: Likewise.
26208 * tree-object-size.c: Likewise.
26209 * tree-outof-ssa.c: Likewise.
26210 * tree-parloops.c: Likewise.
26211 * tree-phinodes.c: Likewise.
26212 * tree-predcom.c: Likewise.
26213 * tree-pretty-print.c: Likewise.
26214 * tree-pretty-print.h: Likewise.
26215 * tree-profile.c: Likewise.
26216 * tree-scalar-evolution.c: Likewise.
26217 * tree-sra.c: Likewise.
26218 * tree-ssa-address.c: Likewise.
26219 * tree-ssa-alias.c: Likewise.
26220 * tree-ssa-ccp.c: Likewise.
26221 * tree-ssa-coalesce.c: Likewise.
26222 * tree-ssa-copy.c: Likewise.
26223 * tree-ssa-copyrename.c: Likewise.
26224 * tree-ssa-dce.c: Likewise.
26225 * tree-ssa-dom.c: Likewise.
26226 * tree-ssa-dse.c: Likewise.
26227 * tree-ssa-forwprop.c: Likewise.
26228 * tree-ssa-ifcombine.c: Likewise.
26229 * tree-ssa-live.c: Likewise.
26230 * tree-ssa-loop-ch.c: Likewise.
26231 * tree-ssa-loop-im.c: Likewise.
26232 * tree-ssa-loop-ivcanon.c: Likewise.
26233 * tree-ssa-loop-ivopts.c: Likewise.
26234 * tree-ssa-loop-manip.c: Likewise.
26235 * tree-ssa-loop-niter.c: Likewise.
26236 * tree-ssa-loop-prefetch.c: Likewise.
26237 * tree-ssa-loop-unswitch.c: Likewise.
26238 * tree-ssa-loop.c: Likewise.
26239 * tree-ssa-loop.h: Likewise.
26240 * tree-ssa-math-opts.c: Likewise.
26241 * tree-ssa-operands.c: Likewise.
26242 * tree-ssa-phiopt.c: Likewise.
26243 * tree-ssa-phiprop.c: Likewise.
26244 * tree-ssa-pre.c: Likewise.
26245 * tree-ssa-propagate.c: Likewise.
26246 * tree-ssa-reassoc.c: Likewise.
26247 * tree-ssa-sccvn.c: Likewise.
26248 * tree-ssa-scopedtables.c: Likewise.
26249 * tree-ssa-sink.c: Likewise.
26250 * tree-ssa-strlen.c: Likewise.
26251 * tree-ssa-structalias.c: Likewise.
26252 * tree-ssa-tail-merge.c: Likewise.
26253 * tree-ssa-ter.c: Likewise.
26254 * tree-ssa-threadedge.c: Likewise.
26255 * tree-ssa-threadupdate.c: Likewise.
26256 * tree-ssa-uncprop.c: Likewise.
26257 * tree-ssa-uninit.c: Likewise.
26258 * tree-ssa.c: Likewise.
26259 * tree-ssanames.c: Likewise.
26260 * tree-stdarg.c: Likewise.
26261 * tree-streamer-in.c: Likewise.
26262 * tree-streamer-out.c: Likewise.
26263 * tree-streamer.c: Likewise.
26264 * tree-switch-conversion.c: Likewise.
26265 * tree-tailcall.c: Likewise.
26266 * tree-vect-data-refs.c: Likewise.
26267 * tree-vect-generic.c: Likewise.
26268 * tree-vect-loop-manip.c: Likewise.
26269 * tree-vect-loop.c: Likewise.
26270 * tree-vect-patterns.c: Likewise.
26271 * tree-vect-slp.c: Likewise.
26272 * tree-vect-stmts.c: Likewise.
26273 * tree-vectorizer.c: Likewise.
26274 * tree-vrp.c: Likewise.
26275 * tree.c: Likewise.
26276 * tsan.c: Likewise.
26277 * ubsan.c: Likewise.
26278 * valtrack.c: Likewise.
26279 * value-prof.c: Likewise.
26280 * var-tracking.c: Likewise.
26281 * varasm.c: Likewise.
26282 * varpool.c: Likewise.
26283 * vmsdbgout.c: Likewise.
26284 * vtable-verify.c: Likewise.
26286 * wide-int-print.cc: Likewise.
26287 * wide-int-print.h: Likewise.
26288 * wide-int.cc: Likewise.
26289 * xcoffout.c: Likewise.
26290 * config/aarch64/aarch64-builtins.c: Likewise.
26291 * config/aarch64/aarch64.c: Likewise.
26292 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26293 * config/alpha/alpha.c: Likewise.
26294 * config/arc/arc.c: Likewise.
26295 * config/arm/aarch-common.c: Likewise.
26296 * config/arm/arm-builtins.c: Likewise.
26297 * config/arm/arm-c.c: Likewise.
26298 * config/arm/arm.c: Likewise.
26299 * config/avr/avr-c.c: Likewise.
26300 * config/avr/avr-log.c: Likewise.
26301 * config/avr/avr.c: Likewise.
26302 * config/bfin/bfin.c: Likewise.
26303 * config/c6x/c6x.c: Likewise.
26304 * config/cr16/cr16.c: Likewise.
26305 * config/cris/cris.c: Likewise.
26306 * config/darwin-c.c: Likewise.
26307 * config/darwin.c: Likewise.
26308 * config/default-c.c: Likewise.
26309 * config/epiphany/epiphany.c: Likewise.
26310 * config/epiphany/mode-switch-use.c: Likewise.
26311 * config/epiphany/resolve-sw-modes.c: Likewise.
26312 * config/fr30/fr30.c: Likewise.
26313 * config/frv/frv.c: Likewise.
26314 * config/ft32/ft32.c: Likewise.
26315 * config/glibc-c.c: Likewise.
26316 * config/h8300/h8300.c: Likewise.
26317 * config/i386/i386-c.c: Likewise.
26318 * config/i386/i386.c: Likewise.
26319 * config/i386/msformat-c.c: Likewise.
26320 * config/i386/winnt-cxx.c: Likewise.
26321 * config/i386/winnt-stubs.c: Likewise.
26322 * config/i386/winnt.c: Likewise.
26323 * config/ia64/ia64-c.c: Likewise.
26324 * config/ia64/ia64.c: Likewise.
26325 * config/iq2000/iq2000.c: Likewise.
26326 * config/lm32/lm32.c: Likewise.
26327 * config/m32c/m32c-pragma.c: Likewise.
26328 * config/m32c/m32c.c: Likewise.
26329 * config/m32r/m32r.c: Likewise.
26330 * config/m68k/m68k.c: Likewise.
26331 * config/mcore/mcore.c: Likewise.
26332 * config/mep/mep-pragma.c: Likewise.
26333 * config/mep/mep.c: Likewise.
26334 * config/microblaze/microblaze-c.c: Likewise.
26335 * config/microblaze/microblaze.c: Likewise.
26336 * config/mips/mips.c: Likewise.
26337 * config/mmix/mmix.c: Likewise.
26338 * config/mn10300/mn10300.c: Likewise.
26339 * config/moxie/moxie.c: Likewise.
26340 * config/msp430/msp430-c.c: Likewise.
26341 * config/msp430/msp430.c: Likewise.
26342 * config/nds32/nds32-cost.c: Likewise.
26343 * config/nds32/nds32-fp-as-gp.c: Likewise.
26344 * config/nds32/nds32-intrinsic.c: Likewise.
26345 * config/nds32/nds32-isr.c: Likewise.
26346 * config/nds32/nds32-md-auxiliary.c: Likewise.
26347 * config/nds32/nds32-memory-manipulation.c: Likewise.
26348 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26349 * config/nds32/nds32-predicates.c: Likewise.
26350 * config/nds32/nds32.c: Likewise.
26351 * config/nios2/nios2.c: Likewise.
26352 * config/nvptx/nvptx.c: Likewise.
26353 * config/pa/pa.c: Likewise.
26354 * config/pdp11/pdp11.c: Likewise.
26355 * config/rl78/rl78-c.c: Likewise.
26356 * config/rl78/rl78.c: Likewise.
26357 * config/rs6000/rs6000-c.c: Likewise.
26358 * config/rs6000/rs6000.c: Likewise.
26359 * config/rx/rx.c: Likewise.
26360 * config/s390/s390-c.c: Likewise.
26361 * config/s390/s390.c: Likewise.
26362 * config/sh/sh-c.c: Likewise.
26363 * config/sh/sh-mem.cc: Likewise.
26364 * config/sh/sh.c: Likewise.
26365 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26366 * config/sh/sh_treg_combine.cc: Likewise.
26367 * config/sol2-c.c: Likewise.
26368 * config/sol2-cxx.c: Likewise.
26369 * config/sol2-stubs.c: Likewise.
26370 * config/sol2.c: Likewise.
26371 * config/sparc/sparc-c.c: Likewise.
26372 * config/sparc/sparc.c: Likewise.
26373 * config/spu/spu-c.c: Likewise.
26374 * config/spu/spu.c: Likewise.
26375 * config/stormy16/stormy16.c: Likewise.
26376 * config/tilegx/mul-tables.c: Likewise.
26377 * config/tilegx/tilegx-c.c: Likewise.
26378 * config/tilegx/tilegx.c: Likewise.
26379 * config/tilepro/mul-tables.c: Likewise.
26380 * config/tilepro/tilepro-c.c: Likewise.
26381 * config/tilepro/tilepro.c: Likewise.
26382 * config/v850/v850-c.c: Likewise.
26383 * config/v850/v850.c: Likewise.
26384 * config/vax/vax.c: Likewise.
26385 * config/visium/visium.c: Likewise.
26386 * config/vms/vms-c.c: Likewise.
26387 * config/vms/vms.c: Likewise.
26388 * config/vxworks.c: Likewise.
26389 * config/winnt-c.c: Likewise.
26390 * config/xtensa/xtensa.c: Likewise.
26391 * common/config/bfin/bfin-common.c: Likewise.
26393 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
26395 * tree.h (tree_code_for_canonical_type_merging): New function.
26396 * tree.c (gimple_canonical_types_compatible_p): Use
26397 tree_code_for_canonical_type_merging..
26399 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26403 * doc/tm.texi: Regenerate.
26404 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
26405 * target.def (TARGET_RELAXED_ORDERING): Likewise.
26406 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
26407 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
26408 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
26409 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
26410 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
26411 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
26412 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
26414 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26416 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
26417 register fma steering pass.
26418 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
26419 AARCH64_TUNE_FMA_STEERING.
26421 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
26423 * tree.c (verify_type_variant): Verify that type and variant is
26425 (gimple_canonical_types_compatible_p): Look for main variants.
26427 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
26429 * config.gcc (powerpc*-*-*): Add support for a new configure
26430 option --with-advance-toolchain=<xxx> which overrides using the
26431 default header files, libraries and dynamic linker.
26433 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
26434 specs to support the configure --with-advance-toolchain=<xxx>
26436 (INCLUDE_EXTRA_SPEC): Likewise.
26437 (LINK_OS_EXTRA_SPEC32): Likewise.
26438 (LINK_OK_EXTRA_SPEC64): Likewise.
26439 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
26440 (DYNAMIC_LINKER_PREFIX): Likewise.
26441 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
26443 (GLIBC_DYNAMIC_LINKER32): Likewise.
26444 (GLIBC_DYNAMIC_LINKER64): Likewise.
26445 (LINK_OS_LINUX_SPEC32): Likewise.
26446 (LINK_OS_LINUX_SPEC64): Likewise.
26448 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
26449 configuration option.
26451 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
26454 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
26455 to determine current function ABI.
26456 (ix86_function_value_regno_p): Ditto.
26458 2015-06-03 Martin Liska <mliska@suse.cz>
26460 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
26461 * bitmap.h (struct bitmap_usage): Likewise.
26462 * ggc-common.c (struct ggc_usage): Likewise.
26463 * mem-stats.h (struct mem_location): Likewise.
26464 (struct mem_usage): Likewise.
26465 * vec.c (struct vec_usage): Likewise.
26467 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
26469 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
26472 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
26474 * doc/plugins.texi (enum plugin_event): New event.
26475 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
26476 and PLUGIN_FINISH_FUNCTION.
26477 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
26478 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
26480 2015-06-03 Richard Biener <rguenther@suse.de>
26482 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26483 compute GROUP_GAP for the first element.
26484 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
26487 2015-06-03 Nick Clifton <nickc@redhat.com>
26489 * config/rl78/rl78-real.md: Add peepholes to avoid a register
26490 copy when calling a function.
26491 * config/rl78/rl78.c (need_to_save): Do not push the frame
26492 pointer in an interrupt handler prologue if it is never used.
26494 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26496 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
26498 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
26500 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
26501 reference when cloning alias node.
26503 2015-06-03 Martin Liska <mliska@suse.cz>
26505 * alloc-pool.h (struct pool_usage): Correct space padding.
26506 * ggc-page.c (ggc_print_statistics): Align columns in a report.
26507 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
26508 * tree.c (dump_tree_statistics): Align columns in a report.
26510 2015-06-03 Martin Liska <mliska@suse.cz>
26512 * alloc-pool.c (allocate_pool_descriptor): Remove.
26513 (struct pool_output_info): Likewise.
26514 (print_alloc_pool_statistics): Likewise.
26515 (dump_alloc_pool_statistics): Likewise.
26516 * alloc-pool.h (struct pool_usage): New struct.
26517 (pool_allocator::initialize): Change usage of memory statistics
26518 to a new interface.
26519 (pool_allocator::release): Likewise.
26520 (pool_allocator::allocate): Likewise.
26521 (pool_allocator::remove): Likewise.
26522 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
26523 for a pool allocator.
26524 * mem-stats.h (struct mem_location): Add new ctor.
26525 (struct mem_usage): Add counter for number of
26527 (mem_alloc_description::register_descriptor): New overload of
26528 * mem-stats.h (mem_location::to_string): New function.
26529 * bitmap.h (struct bitmap_usage): Use this new function.
26530 * ggc-common.c (struct ggc_usage): Likewise.
26533 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
26535 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
26536 of GCC_INSN_FLAGS_H block.
26538 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
26540 * explow.c (plus_constant): Update check after force_const_mem call
26541 to see if the value returned is not a NULL_RTX.
26543 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
26545 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
26546 remove instumentation thunks calling reachable functions.
26547 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
26548 * lto/lto-partition.c (privatize_symbol_name_1): New.
26549 (privatize_symbol_name): Privatize both decl and orig_decl
26550 names for instrumented functions.
26551 * cgraph.c (cgraph_node::verify_node): Add transparent
26552 alias chain check for instrumented node.
26554 2015-06-03 Marek Polacek <polacek@redhat.com>
26558 * tree.c (attribute_value_equal): Handle attribute format.
26559 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
26561 2015-06-03 Richard Biener <rguenther@suse.de>
26563 PR tree-optimization/63916
26564 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
26565 Forward-propagate non-invariant addresses by splicing their
26566 reference ops if the result isn't going to be used by PRE.
26567 (vn_reference_lookup_3): Remove pointless assert.
26569 2015-06-03 Richard Biener <rguenther@suse.de>
26571 PR tree-optimization/66375
26572 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
26573 add to the evolution before following SSA edges.
26575 2015-06-03 Bin Cheng <bin.cheng@arm.com>
26577 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
26578 (dump_use, dump_cand, find_induction_variables): Pass new argument
26580 (record_use): Preserve the ssa name information in IV.
26582 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
26584 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
26586 (add_mode_tests): Don't add mode tests if the predicate only
26587 accepts scalar constant integers. Otherwise, allow the mode
26588 of "op" to be VOIDmode if the predicate does accept such integers.
26590 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
26593 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
26594 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
26595 (aarch64_secondary_reload): Likewise
26596 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
26598 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
26601 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
26602 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26605 * cprop.c (try_replace_reg): Check cost of constants before propagating.
26607 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26609 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
26610 provide access to the IBM extended double floating point mode if
26611 long double is IEEE 128-bit floating point.
26612 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
26613 point if long double is the IBM extended double type.
26615 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
26616 enable adding IEEE 128-bit floating point support.
26617 (-mfloat128-software): Likewise.
26618 (-mfloat128-sw): Likewise.
26620 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
26621 128-bit floating point types to occupy any register if
26622 -mlong-double-64. Do not allow use of IFmode/KFmode unless
26623 -mfloat128-software is enabled.
26624 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
26626 (rs6000_option_override_internal): Add -mfloat128-* support.
26627 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
26629 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
26630 and float128 type nodes.
26631 (ieee128_float_type_node): Likewise.
26632 (ibm128_float_type_node): Likewise.
26634 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26637 * config/aarch64/geniterators.sh: Rewrite in awk.
26639 2015-06-02 Martin Liska <mliska@suse.cz>
26641 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
26642 values to avoid -Wmaybe-uninitialized errors.
26644 2015-06-02 Richard Biener <rguenther@suse.de>
26647 * dwarf2out.c (lookup_context_die): New function.
26648 (resolve_addr): Avoid forcing a full DIE for the
26649 target of a DW_TAG_GNU_call_site during late compilation.
26650 Instead create a stub DIE without a type if we have a
26651 context DIE present.
26653 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
26655 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
26657 2015-06-02 Bin Cheng <bin.cheng@arm.com>
26659 PR tree-optimization/48052
26660 * cfgloop.h (struct control_iv): New.
26661 (struct loop): New field control_ivs.
26662 * tree-ssa-loop-niter.c : Include "stor-layout.h".
26663 (number_of_iterations_lt): Set no_overflow information.
26664 (number_of_iterations_exit): Init control iv in niter struct.
26665 (record_control_iv): New.
26666 (estimate_numbers_of_iterations_loop): Call record_control_iv.
26667 (loop_exits_before_overflow): New. Interface factored out of
26668 scev_probably_wraps_p.
26669 (scev_probably_wraps_p): Factor loop niter related code into
26670 loop_exits_before_overflow.
26671 (free_numbers_of_iterations_estimates_loop): Free control ivs.
26672 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
26674 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
26676 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
26677 the target doesn't belong to the current function.
26679 2015-06-02 Marek Polacek <polacek@redhat.com>
26681 PR middle-end/66345
26682 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
26683 get_maxval_strlen does not produce an INTEGER_CST.
26685 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
26687 * config/arc/constraints.md: Use lower-case names in match_code.
26688 * config/mmix/constraints.md: Likewise.
26690 2015-06-02 Richard Biener <rguenther@suse.de>
26692 PR tree-optimization/65961
26693 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
26694 check and clarify dump message.
26695 (vect_build_slp_tree): If all children are built up from scalars
26696 build up the parent from scalars instead.
26697 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
26699 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
26702 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
26703 instead of print ... .
26705 2015-06-02 Alan Modra <amodra@gmail.com>
26707 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
26710 2015-06-02 Bin Cheng <bin.cheng@arm.com>
26712 PR tree-optimization/52563
26713 PR tree-optimization/62173
26714 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
26715 (alloc_iv, set_iv): New parameter.
26716 (determine_biv_step): Delete.
26717 (find_bivs): Inline original determine_biv_step. Pass new
26718 argument to set_iv.
26719 (idx_find_step): Use no_overflow information for conversion.
26720 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
26721 resolve_mixers handle folded_casts.
26722 (instantiate_scev_name): Change bool parameter to bool pointer.
26723 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
26724 (instantiate_array_ref, instantiate_scev_not): Ditto.
26725 (instantiate_scev_3, instantiate_scev_2): Ditto.
26726 (instantiate_scev_1, instantiate_scev_r): Ditto.
26727 (instantiate_scev_convert, ): Change parameter. Pass argument
26728 to chrec_convert_aggressive.
26729 (instantiate_scev): Change argument.
26730 (resolve_mixers): New parameter and set it.
26731 (scev_const_prop): New argument.
26732 * tree-scalar-evolution.h (resolve_mixers): New parameter.
26733 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
26735 (chrec_convert): New parameter. Move definition below.
26736 (chrec_convert_aggressive): New parameter and set it. Call
26737 convert_affine_scev.
26738 * tree-chrec.h (chrec_convert): New parameter.
26739 (chrec_convert_aggressive): Ditto.
26741 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
26743 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
26744 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
26745 the LHS of a no-return call if its type has variable size.
26746 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
26747 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
26749 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
26751 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
26752 * config.in: Regenerate.
26754 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
26756 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
26757 consecutive accesses within outer-loop with force_vectorize
26758 for references with zero step in inner-loop.
26760 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
26762 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
26763 rather than from gcc/build directory.
26765 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
26768 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
26769 for __sync memory models, emit initial loads and final barriers as
26772 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
26775 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
26776 (aarch64_split_atomic_op): Check for __sync memory models, emit
26777 appropriate initial loads and final barriers.
26779 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
26781 * Makefile.in: Fix gcov dependencies that should
26782 not point to a build folder.
26784 2015-06-01 Richard Biener <rguenther@suse.de>
26787 2015-05-29 Richard Biener <rguenther@suse.de>
26789 PR tree-optimization/66314
26790 * tree-ssa-threadupdate.c (create_block_for_threading): Add
26791 parameter that says which loop the new block belongs to.
26792 (ssa_create_duplicates): Blocks duplicated for the threaded
26793 path belong to the loop of the thread destination.
26795 2015-06-01 Martin Liska <mliska@suse.cz>
26797 * sched-deps.c: Include pool-alloc.h before
26798 cselib.h header file is included.
26800 2015-06-01 Richard Biener <rguenther@suse.de>
26802 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
26805 2015-06-01 Martin Liska <mliska@suse.cz>
26807 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
26808 a function local variable.
26810 2015-06-01 Martin Liska <mliska@suse.cz>
26812 * alloc-pool.c (create_alloc_pool): Remove.
26813 (empty_alloc_pool): Likewise.
26814 (free_alloc_pool): Likewise.
26815 (free_alloc_pool_if_empty): Likewise.
26816 (pool_alloc): Likewise.
26817 (pool_free): Likewise.
26818 * alloc-pool.h: Remove old declarations.
26820 2015-06-01 Martin Liska <mliska@suse.cz>
26822 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
26823 (ira_create_object): Likewise.
26824 (ira_create_allocno): Likewise.
26825 (ira_create_live_range): Likewise.
26826 (copy_live_range): Likewise.
26827 (ira_finish_live_range): Likewise.
26828 (ira_free_allocno_costs): Likewise.
26829 (finish_allocno): Likewise.
26830 (finish_allocnos): Likewise.
26831 (initiate_prefs): Likewise.
26832 (ira_create_pref): Likewise.
26833 (finish_pref): Likewise.
26834 (finish_prefs): Likewise.
26835 (initiate_copies): Likewise.
26836 (ira_create_copy): Likewise.
26837 (finish_copy): Likewise.
26838 (finish_copies): Likewise.
26839 (finish_prefs): Likewise.
26841 2015-06-01 Martin Liska <mliska@suse.cz>
26843 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
26844 (allocate_and_init_ipcp_value): Likewise.
26845 (ipcp_lattice::add_value): Likewise.
26846 (merge_agg_lats_step): Likewise.
26847 (ipcp_driver): Likewise.
26848 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
26849 (ipa_free_all_structures_after_iinln): Likewise.
26850 * ipa-prop.h: Likewise.
26852 2015-06-01 Martin Liska <mliska@suse.cz>
26854 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
26856 (set_hint_predicate): Likewise.
26857 (inline_summary_alloc): Likewise.
26858 (reset_inline_edge_summary): Likewise.
26859 (reset_inline_summary): Likewise.
26860 (set_cond_stmt_execution_predicate): Likewise.
26861 (set_switch_stmt_execution_predicate): Likewise.
26862 (compute_bb_predicates): Likewise.
26863 (estimate_function_body_sizes): Likewise.
26864 (inline_free_summary): Likewise.
26866 2015-06-01 Martin Liska <mliska@suse.cz>
26868 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
26869 (ipa_edge_duplication_hook): Likewise.
26870 (ipa_free_all_structures_after_ipa_cp): Likewise.
26871 (ipa_free_all_structures_after_iinln): Likewise.
26873 2015-06-01 Martin Liska <mliska@suse.cz>
26875 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
26876 (ipa_profile_generate_summary): Likewise.
26877 (ipa_profile_read_summary): Likewise.
26878 (ipa_profile): Likewise.
26880 2015-06-01 Martin Liska <mliska@suse.cz>
26882 * tree-ssa-structalias.c (new_var_info): Use new type-based
26884 (new_constraint): Likewise.
26885 (init_alias_vars): Likewise.
26886 (delete_points_to_sets): Likewise.
26888 2015-06-01 Martin Liska <mliska@suse.cz>
26890 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
26891 (free_strinfo): Likewise.
26892 (pass_strlen::execute): Likewise.
26894 2015-06-01 Martin Liska <mliska@suse.cz>
26896 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
26898 (vn_reference_insert_pieces): Likewise.
26899 (vn_phi_insert): Likewise.
26900 (visit_reference_op_call): Likewise.
26901 (copy_phi): Likewise.
26902 (copy_reference): Likewise.
26903 (process_scc): Likewise.
26904 (allocate_vn_table): Likewise.
26905 (free_vn_table): Likewise.
26907 2015-06-01 Martin Liska <mliska@suse.cz>
26909 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
26911 (add_repeat_to_ops_vec): Likewise.
26912 (get_ops): Likewise.
26913 (maybe_optimize_range_tests): Likewise.
26914 (init_reassoc): Likewise.
26915 (fini_reassoc): Likewise.
26917 2015-06-01 Martin Liska <mliska@suse.cz>
26919 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
26921 (bitmap_set_new): Likewise.
26922 (get_or_alloc_expr_for_constant): Likewise.
26923 (get_or_alloc_expr_for): Likewise.
26924 (phi_translate_1): Likewise.
26925 (compute_avail): Likewise.
26926 (init_pre): Likewise.
26927 (fini_pre): Likewise.
26929 2015-06-01 Martin Liska <mliska@suse.cz>
26931 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
26932 (delete_dep_node): Likewise.
26933 (create_deps_list): Likewise.
26934 (free_deps_list): Likewise.
26935 (sched_deps_init): Likewise.
26936 (sched_deps_finish): Likewise.
26938 2015-06-01 Martin Liska <mliska@suse.cz>
26940 * regcprop.c (free_debug_insn_changes): Use new type-based
26942 (replace_oldest_value_reg): Likewise.
26943 (pass_cprop_hardreg::execute): Likewise.
26945 2015-06-01 Martin Liska <mliska@suse.cz>
26947 * ira-build.c (initiate_cost_vectors): Use new type-based
26949 (ira_allocate_cost_vector): Likewise.
26950 (ira_free_cost_vector): Likewise.
26951 (finish_cost_vectors): Likewise.
26953 2015-06-01 Martin Liska <mliska@suse.cz>
26955 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
26957 (free_sched_pools): Likewise.
26958 * sel-sched-ir.h (_list_alloc): Likewise.
26959 (_list_remove): Likewise.
26961 2015-06-01 Martin Liska <mliska@suse.cz>
26963 * stmt.c (add_case_node): Use new type-based pool allocator.
26964 (expand_case): Likewise.
26965 (expand_sjlj_dispatch_table): Likewise.
26967 2015-06-01 Martin Liska <mliska@suse.cz>
26969 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
26970 (free_bb): Likewise.
26971 (pass_cse_reciprocals::execute): Likewise.
26973 2015-06-01 Martin Liska <mliska@suse.cz>
26975 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
26976 (sra_deinitialize) Likewise.
26977 (create_access_1) Likewise.
26978 (build_accesses_from_assign) Likewise.
26979 (create_artificial_child_access) Likewise.
26981 2015-06-01 Martin Liska <mliska@suse.cz>
26983 * dse.c (get_group_info):Use new type-based pool allocator.
26984 (dse_step0) Likewise.
26985 (free_store_info) Likewise.
26986 (delete_dead_store_insn) Likewise.
26987 (free_read_records) Likewise.
26988 (record_store) Likewise.
26989 (replace_read) Likewise.
26990 (check_mem_read_rtx) Likewise.
26991 (scan_insn) Likewise.
26992 (dse_step1) Likewise.
26993 (dse_step7) Likewise.
26995 2015-06-01 Martin Liska <mliska@suse.cz>
26997 * df-scan.c (struct df_scan_problem_data):Use new type-based
26999 (df_scan_free_internal) Likewise.
27000 (df_scan_alloc) Likewise.
27001 (df_grow_reg_info) Likewise.
27002 (df_free_ref) Likewise.
27003 (df_insn_create_insn_record) Likewise.
27004 (df_mw_hardreg_chain_delete) Likewise.
27005 (df_insn_info_delete) Likewise.
27006 (df_free_collection_rec) Likewise.
27007 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
27008 (df_sort_and_compress_mws) Likewise.
27009 (df_ref_create_structure) Likewise.
27010 (df_ref_record) Likewise.
27012 2015-06-01 Martin Liska <mliska@suse.cz>
27014 * df-problems.c (df_chain_create):Use new type-based pool allocator.
27015 (df_chain_unlink_1) Likewise.
27016 (df_chain_unlink) Likewise.
27017 (df_chain_remove_problem) Likewise.
27018 (df_chain_alloc) Likewise.
27019 (df_chain_free) Likewise.
27020 * df.h (struct dataflow) Likewise.
27022 2015-06-01 Martin Liska <mliska@suse.cz>
27024 * cselib.c (new_elt_list):Use new type-based pool allocator.
27025 (new_elt_loc_list) Likewise.
27026 (unchain_one_elt_list) Likewise.
27027 (unchain_one_elt_loc_list) Likewise.
27028 (unchain_one_value) Likewise.
27029 (new_cselib_val) Likewise.
27030 (cselib_init) Likewise.
27031 (cselib_finish) Likewise.
27033 2015-06-01 Martin Liska <mliska@suse.cz>
27035 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
27036 (sh_reorg) Likewise.
27038 2015-06-01 Martin Liska <mliska@suse.cz>
27040 * cfg.c (initialize_original_copy_tables):Use new type-based
27042 (free_original_copy_tables) Likewise.
27043 (copy_original_table_clear) Likewise.
27044 (copy_original_table_set) Likewise.
27046 2015-06-01 Martin Liska <mliska@suse.cz>
27048 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
27050 (asan_mem_ref_new) Likewise.
27051 (free_mem_ref_resources) Likewise.
27053 2015-06-01 Martin Liska <mliska@suse.cz>
27055 * var-tracking.c (variable_htab_free):Use new type-based
27057 (attrs_list_clear) Likewise.
27058 (attrs_list_insert) Likewise.
27059 (attrs_list_copy) Likewise.
27060 (shared_hash_unshare) Likewise.
27061 (shared_hash_destroy) Likewise.
27062 (unshare_variable) Likewise.
27063 (var_reg_delete_and_set) Likewise.
27064 (var_reg_delete) Likewise.
27065 (var_regno_delete) Likewise.
27066 (drop_overlapping_mem_locs) Likewise.
27067 (variable_union) Likewise.
27068 (insert_into_intersection) Likewise.
27069 (canonicalize_values_star) Likewise.
27070 (variable_merge_over_cur) Likewise.
27071 (dataflow_set_merge) Likewise.
27072 (remove_duplicate_values) Likewise.
27073 (variable_post_merge_new_vals) Likewise.
27074 (dataflow_set_preserve_mem_locs) Likewise.
27075 (dataflow_set_remove_mem_locs) Likewise.
27076 (variable_from_dropped) Likewise.
27077 (variable_was_changed) Likewise.
27078 (set_slot_part) Likewise.
27079 (clobber_slot_part) Likewise.
27080 (delete_slot_part) Likewise.
27081 (loc_exp_insert_dep) Likewise.
27082 (notify_dependents_of_changed_value) Likewise.
27083 (emit_notes_for_differences_1) Likewise.
27084 (vt_emit_notes) Likewise.
27085 (vt_initialize) Likewise.
27086 (vt_finalize) Likewise.
27088 2015-06-01 Martin Liska <mliska@suse.cz>
27090 * ira-color.c (init_update_cost_records):Use new type-based
27092 (get_update_cost_record) Likewise.
27093 (free_update_cost_record_list) Likewise.
27094 (finish_update_cost_records) Likewise.
27095 (initiate_cost_update) Likewise.
27097 2015-06-01 Martin Liska <mliska@suse.cz>
27099 * lra.c (init_insn_regs): Use new type-based pool allocator.
27100 (new_insn_reg) Likewise.
27101 (free_insn_reg) Likewise.
27102 (free_insn_regs) Likewise.
27103 (finish_insn_regs) Likewise.
27104 (init_insn_recog_data) Likewise.
27105 (init_reg_info) Likewise.
27106 (finish_reg_info) Likewise.
27107 (lra_free_copies) Likewise.
27108 (lra_create_copy) Likewise.
27109 (invalidate_insn_data_regno_info) Likewise.
27111 2015-06-01 Martin Liska <mliska@suse.cz>
27113 * lra-lives.c (free_live_range): Use new type-based pool allocator.
27114 (free_live_range_list) Likewise.
27115 (create_live_range) Likewise.
27116 (copy_live_range) Likewise.
27117 (lra_merge_live_ranges) Likewise.
27118 (remove_some_program_points_and_update_live_ranges) Likewise.
27119 (lra_live_ranges_init) Likewise.
27120 (lra_live_ranges_finish) Likewise.
27122 2015-06-01 Martin Liska <mliska@suse.cz>
27124 * et-forest.c (et_new_occ): Use new type-based pool allocator.
27125 (et_new_tree): Likewise.
27126 (et_free_tree): Likewise.
27127 (et_free_tree_force): Likewise.
27128 (et_free_pools): Likewise.
27129 (et_split): Likewise.
27131 2015-06-01 Martin Liska <mliska@suse.cz>
27133 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
27135 * alloc-pool.h (pool_allocator::pool_allocator): New function.
27136 (pool_allocator::release): Likewise.
27137 (inline pool_allocator::release_if_empty): Likewise.
27138 (inline pool_allocator::~pool_allocator): Likewise.
27139 (pool_allocator::allocate): Likewise.
27140 (pool_allocator::remove): Likewise.
27142 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
27144 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
27147 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
27149 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
27151 * config/arm/arm.c (arm_print_tune_info): Likewise.
27152 (arm_macro_fusion_p): Likewise.
27153 (arm_macro_fusion_pair_p): Likewise.
27155 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
27157 * config/aarch64/aarch64-protos.h (tune_params): Rename
27158 fuseable_ops to fusible_ops.
27159 * config/aarch64/aarch64.c (generic_tunings): Rename
27160 fuseable_ops to fusible_ops.
27161 (cortexa53_tunings): Likewise.
27162 (cortexa57_tunings): Likewise.
27163 (thunderx_tunings): Likewise.
27164 (xgene1_tunings): Likewise.
27165 (aarch64_macro_fusion_p): Likewise.
27166 (aarch64_macro_fusion_pair_p): Likewise.
27168 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
27170 * config/s390/driver-native.c: New file.
27171 * config/s390/x-native: New file.
27172 * config.host: Add new files for s390.
27173 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
27175 * config.gcc: Likewise.
27176 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
27177 * config/s390/s390-opts.h (enum processor_type): Ditto.
27178 * config/s390/s390.c (s390_option_override): Catch unhandled
27181 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
27184 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
27185 redirection for instrumented calls.
27186 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
27187 (append_compiler_options): Append -fcheck-pointer-bounds.
27188 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
27189 (chkp_redirect_edge): New.
27190 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
27191 (chkp_redirect_edge): New.
27193 2015-06-01 Richard Biener <rguenther@suse.de>
27195 PR tree-optimization/66280
27196 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
27199 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27201 * config/aarch64/aarch64.md
27202 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
27205 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
27207 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
27208 Remove obsolete kludge.
27210 2015-06-01 Richard Biener <rguenther@suse.de>
27212 * tree-ssa-reassoc.c (get_rank): Simplify.
27214 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
27216 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
27217 * configure: Regenerated.
27219 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
27221 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
27222 issue (add space between string literal and macro).
27223 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
27225 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
27227 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
27228 implict or explicit -fPIE or -fpie.
27230 2015-05-30 Mike Frysinger <vapier@gentoo.org>
27232 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
27234 2015-05-28 DJ Delorie <dj@redhat.com>
27236 * expmed.c (extract_bit_field_1): Avoid clobbering a
27237 yet-to-be-used base/index register.
27239 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
27241 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
27242 (alias_stats): Add num_universal.
27243 (alias_set_subset_of): Special case pointers; be ready for NULL
27245 (alias_sets_conflict_p): Special case pointers; be ready for NULL
27247 (init_alias_set_entry): Break out from ...
27248 (record_alias_subset): ... here; propagate new fields;
27249 allocate children only when really needed.
27250 (get_alias_set): Do less generous pointer globbing.
27251 (dump_alias_stats_in_alias_c): Update statistics.
27253 2015-05-30 Alan Modra <amodra@gmail.com>
27255 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
27256 correct block for use of r12.
27257 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
27259 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
27262 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
27265 2015-05-29 Jakub Jelinek <jakub@redhat.com>
27267 PR tree-optimization/66142
27268 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
27269 virtual phis that feed themselves.
27271 2015-05-29 Richard Biener <rguenther@suse.de>
27273 PR tree-optimization/66314
27274 * tree-ssa-threadupdate.c (create_block_for_threading): Add
27275 parameter that says which loop the new block belongs to.
27276 (ssa_create_duplicates): Blocks duplicated for the threaded
27277 path belong to the loop of the thread destination.
27279 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27281 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
27282 to cleanup-saved-temps.
27283 * doc/sourcebuild.texi (Clean up generated test files): Expand
27285 (dg-keep-saved-temps): Document new proc.
27286 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
27287 cleanup-saved-temps): Remove.
27289 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
27291 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
27292 gcc_AC_CHECK_DECLS.
27293 * configure: Regenerate.
27295 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27297 * config/nios2/linux.h (CPP_SPEC): Define.
27299 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27301 * config/microblaze/linux.h (CPP_SPEC): Define.
27303 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27305 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
27306 -pthread is specified.
27308 2015-05-28 Richard Biener <rguenther@suse.de>
27310 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
27311 (vect_fixup_scalar_cycles_with_patterns): Likewise.
27312 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
27313 after pattern recog.
27314 (vect_create_epilog_for_reduction): Properly handle reductions
27316 (vectorizable_reduction): Likewise.
27317 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
27319 (vect_get_constant_vectors): Create the correct number of
27320 initial values for reductions.
27321 (vect_schedule_slp_instance): Handle reduction chains that are
27322 type changing properly.
27323 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
27325 2015-05-28 Richard Biener <rguenther@suse.de>
27327 PR tree-optimization/66142
27328 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
27329 values better in memcpy destination handling. Handle non-aliasing
27332 2015-05-28 Lawrence Velázquez <vq@larryv.me>
27335 * config/darwin-c.c (version_components): New global enum.
27336 (parse_version, version_as_legacy_macro)
27337 (version_as_modern_macro, macosx_version_as_macro): New functions.
27338 (version_as_macro): Remove.
27339 (darwin_cpp_builtins): Use new function.
27341 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
27343 * builtins.c (expand_builtin_acc_on_device): Mark parameters
27344 with ATTRIBUTE_UNUSED.
27346 2015-05-28 Julian Brown <julian@codesourcery.com>
27350 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
27351 sequence for !ACCEL_COMPILER.
27353 2015-05-28 Nick Clifton <nickc@redhat.com>
27355 * config/rx/rx.c (push_regs): New function. Extracts code from...
27356 (rx_expand_prologue): ... here. Use push_regs to push even small
27357 spans of registers.
27358 (pop_regs): New function.
27359 (rx_expand_epilogue): Use pop_regs to pop even small spans of
27362 2015-05-28 Richard Biener <rguenther@suse.de>
27364 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
27366 (SLP_INSTANCE_BODY_COST_VEC): Remove.
27367 (vect_update_slp_costs_according_to_vf): Likewise.
27368 (vect_slp_analyze_operations): Update prototype.
27369 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
27370 vect_update_slp_costs_according_to_vf, adjust.
27371 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
27372 (vect_analyze_slp_cost_1): Likewise.
27373 (vect_analyze_slp_cost): Likewise. Properly deal with
27374 widening reduction ops. Commit body costs.
27375 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
27376 cost for loops from here.
27377 (vect_slp_analyze_operations): But do it from here when
27378 the vectorization factor is known and stmts are analyzed.
27379 (vect_bb_vectorization_profitable_p): Simplify.
27380 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
27381 (vect_update_slp_costs_according_to_vf): Remove.
27383 2015-05-27 Magnus Granberg <zorry@gentoo.org>
27384 H.J. Lu <hongjiu.lu@intel.com>
27386 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
27387 (BUILD_CFLAGS): Likewise.
27388 (BUILD_CXXFLAGS): Likewise.
27389 (LINKER): Add @NO_PIE_FLAG@.
27390 (BUILD_LDFLAGS): Likewise.
27391 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
27392 --enable-default-pie.
27393 * common.opt (fPIE): Initialize to -1.
27395 (no-pie): New option.
27396 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
27397 * configure.ac: Add --enable-default-pie.
27398 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
27399 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
27400 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
27401 * gcc.c (NO_PIE_SPEC): New.
27402 (PIE_SPEC): Likewise.
27403 (NO_FPIE1_SPEC): Likewise.
27404 (FPIE1_SPEC): Likewise.
27405 (NO_FPIE2_SPEC): Likewise.
27406 (FPIE2_SPEC): Likewise.
27407 (NO_FPIE2_SPEC): Likewise.
27408 (FPIE_SPEC): Likewise.
27409 (NO_FPIE_SPEC): Likewise.
27410 (NO_FPIC1_SPEC): Likewise.
27411 (FPIC1_SPEC): Likewise.
27412 (NO_FPIC2_SPEC): Likewise.
27413 (FPIC2_SPEC): Likewise.
27414 (NO_FPIC2_SPEC): Likewise.
27415 (FPIC_SPEC): Likewise.
27416 (NO_FPIC_SPEC): Likewise.
27417 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
27418 (FPIE1_OR_FPIC1_SPEC): Likewise.
27419 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
27420 (FPIE2_OR_FPIC2_SPEC): Likewise.
27421 (NO_FPIE_AND_FPIC_SPEC): Likewise.
27422 (FPIE_OR_FPIC_SPEC): Likewise.
27423 (LD_PIE_SPEC): Likewise.
27424 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
27425 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
27426 * config/darwin.h (PIE_SPEC): Renamed to ...
27427 (DARWIN_PIE_SPEC): This.
27428 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
27429 * config/darwin9.h (PIE_SPEC): Renamed to ...
27430 (DARWIN_PIE_SPEC): This.
27431 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
27432 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
27433 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
27434 FPIE2_OR_FPIC2_SPEC.
27435 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
27436 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
27437 * config/sol2.h (ASM_PIC_SPEC): Likewise.
27438 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27439 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27440 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27441 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
27442 * config/m32r/m32r.h (ASM_SPEC): Likewise.
27443 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
27444 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27445 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
27446 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
27447 * config/sparc/linux.h (ASM_SPEC): Likewise.
27448 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27449 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
27450 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
27451 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27452 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27453 * config/sparc/sparc.h (ASM_SPEC): Likewise.
27454 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
27455 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
27456 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
27457 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
27458 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
27459 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
27460 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
27461 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
27462 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
27463 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
27464 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
27465 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
27466 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27467 * config/vax/linux.h (ASM_SPEC): Likewise.
27468 * doc/install.texi: Document --enable-default-pie.
27469 * doc/invoke.texi: Document -no-pie.
27470 * config.in: Regenerated.
27471 * configure: Likewise.
27473 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
27475 PR rtl-optimization/66168
27476 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
27477 can_move_invariant_reg.
27479 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
27482 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
27483 REG_EQUAL note when doing insert.
27485 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
27486 instead of "%d" for 'o' operand.
27488 2015-05-27 Nathan Sidwell <nathan@acm.org>
27491 * tree.c (build_pointer_type_for_mode): Canonical type does not
27492 inherit can_alias_all.
27493 (build_reference_type_for_mode): Likewise.
27495 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
27497 * expr.h (array_at_struct_end_p): Move to...
27498 (array_ref_element_size): Likewise.
27499 (component_ref_field_offset): Likewise.
27500 * tree.h (array_ref_element_size): ...here.
27501 (array_at_struct_end_p): Likewise.
27502 (component_ref_field_offset): Likewise.
27503 * expr.c (array_ref_element_size): Move to...
27504 (array_ref_low_bound): Likewise.
27505 (array_at_struct_end_p): Likewise.
27506 (array_ref_up_bound): Likewise.
27507 (component_ref_field_offset): Likewise.
27508 * tree.c (array_ref_element_size): ...here.
27509 (array_ref_low_bound): Likewise.
27510 (array_ref_up_bound): Likewise.
27511 (array_at_struct_end_p): Likewise.
27512 (component_ref_field_offset): Likewise.
27514 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
27515 Szabolcs Nagy <szabolcs.nagy@arm.com>
27517 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
27519 2015-05-27 Jason Merrill <jason@redhat.com>
27522 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
27523 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
27524 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
27526 2015-05-22 Aditya Kumar <hiraditya@msn.com>
27528 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
27531 * statistics.c (statistics_fini_pass): Print pass name.
27533 2015-05-27 Richard Biener <rguenther@suse.de>
27535 PR tree-optimization/66272
27537 2014-08-15 Richard Biener <rguenther@suse.de>
27539 PR tree-optimization/62031
27540 * tree-data-ref.c (dr_analyze_indices): Do not set
27541 DR_UNCONSTRAINED_BASE.
27542 (dr_may_alias_p): All indirect accesses have to go the
27543 formerly DR_UNCONSTRAINED_BASE path.
27544 * tree-data-ref.h (struct indices): Remove
27545 unconstrained_base member.
27546 (DR_UNCONSTRAINED_BASE): Remove.
27548 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
27550 * dwarf2out.c: Remove block_map.
27551 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
27552 (gen_lexical_block_die): Same.
27553 (dwarf2out_function_decl): Remove block_map use.
27554 (dwarf2out_c_finalize): Same.
27555 * tree-core.h (struct tree_block): Add die field.
27556 * tree.h (BLOCK_DIE): New.
27558 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27561 * expr.c (memory_load_overlap): New function.
27562 (emit_push_insn): When pushing partial args to the stack would
27563 clobber the register part load the overlapping part into a pseudo
27564 and put it into the hard reg after pushing. Change return type
27565 to bool. Add bool argument.
27566 * expr.h (emit_push_insn): Change return type to bool.
27568 * calls.c (expand_call): Cancel sibcall optimization when encountering
27569 partial argument on targets with ARGS_GROW_DOWNWARD and
27570 !STACK_GROWS_DOWNWARD.
27571 (emit_library_call_value_1): Update callsite of emit_push_insn.
27572 (store_one_arg): Likewise.
27574 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
27576 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
27578 2015-05-27 Martin Liska <mliska@suse.cz>
27580 * Makefile.in: Add additional dependencies related to memory report
27582 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
27583 * bitmap.c (struct bitmap_descriptor_d): Remove.
27584 (struct loc): Likewise.
27585 (struct bitmap_desc_hasher): Likewise.
27586 (bitmap_desc_hasher::hash): Likewise.
27587 (bitmap_desc_hasher::equal): Likewise.
27588 (get_bitmap_descriptor): Likewise.
27589 (bitmap_register): User new memory descriptor API.
27590 (register_overhead): Likewise.
27591 (bitmap_find_bit): Register nsearches and search_iter statistics.
27592 (struct bitmap_output_info): Remove.
27593 (print_statistics): Likewise.
27594 (dump_bitmap_statistics): Use new memory descriptor.
27595 * bitmap.h (struct bitmap_usage): New class.
27596 * genmatch.c: Extend header file inclusion.
27597 * genpreds.c: Likewise.
27598 * ggc-common.c (struct ggc_usage): New class.
27599 (struct ggc_loc_desc_hasher): Remove.
27600 (ggc_loc_desc_hasher::hash): Likewise.
27601 (ggc_loc_desc_hasher::equal): Likewise.
27602 (struct ggc_ptr_hash_entry): Likewise.
27603 (struct ptr_hash_hasher): Likewise.
27604 (ptr_hash_hasher::hash): Likewise.
27605 (ptr_hash_hasher::equal): Likewise.
27606 (make_loc_descriptor): Likewise.
27607 (ggc_prune_ptr): Likewise.
27608 (dump_ggc_loc_statistics): Use new memory descriptor.
27609 (ggc_record_overhead): Likewise.
27610 (ggc_free_overhead): Likewise.
27611 (final_cmp_statistic): Remove.
27612 (cmp_statistic): Likewise.
27613 (ggc_add_statistics): Liekwise.
27614 (ggc_prune_overhead_list): Likewise.
27615 * hash-map-traits.h: New file.
27616 * hash-map.h (struct default_hashmap_traits): Move the traits to a
27617 separate header file.
27618 * hash-set.h: Pass memory statistics info to ctor.
27619 * hash-table.c (void dump_hash_table_loc_statistics): New function.
27620 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
27621 (hash_table::~hash_table): Register memory release operation.
27622 (hash_table::alloc_entries): Handle memory allocation operation.
27623 (hash_table::expand): Likewise.
27624 * inchash.c (iterative_hash_hashval_t): Move implementation to header
27626 (iterative_hash_host_wide_int): Likewise.
27627 * inchash.h (class hash): Likewise.
27628 * mem-stats-traits.h: New file.
27629 * mem-stats.h: New file.
27630 (mem_location): Add new class.
27631 (mem_usage): Likewise.
27632 (mem_alloc_description): Likewise.
27633 * sese.c: Add new header file inclusision.
27634 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
27636 * tree-sra.c: Add new header file inclusision.
27637 * vec.c (struct vec_descriptor): Remove.
27638 (hash_descriptor): Likewise.
27639 (struct vec_usage): Likewise.
27640 (struct ptr_hash_entry): Likewise.
27641 (hash_ptr): Likewise.
27642 (eq_ptr): Likewise.
27643 (vec_prefix::register_overhead): Use new memory descriptor API.
27644 (vec_prefix::release_overhead): Likewise.
27645 (add_statistics): Remove.
27646 (dump_vec_loc_statistics): Use new memory descriptor API.
27647 * vec.h (struct vec_prefix): Likewise.
27648 (va_heap::reserve): Likewise.
27649 (va_heap::release): Likewise.
27650 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
27652 2015-05-27 Richard Biener <rguenther@suse.de>
27654 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
27655 earlier and remove ??? comment.
27656 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
27657 and got called from loop analysis bail out. Always pass the SLP
27658 node to the vectorizable_* functions.
27659 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
27660 the premature SLP check here.
27661 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
27662 detected SLP stmts.
27663 (vect_detect_hybrid_slp_1): Likewise.
27665 2015-05-26 Jeff Law <law@redhat.com>
27667 * combine.c (find_split_point): Verify that the shift count is a
27668 constant when choosing (plus (ashift ...)) as a split point.
27670 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
27671 No functional changes.
27673 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
27675 * ipa-polymorphic-call.c
27676 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
27677 case when call target is already known.
27679 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
27682 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
27683 take into account the case that operands[1] and operands[2]
27684 are the same register.
27686 2015-05-26 Michael Matz <matz@suse.de>
27688 PR middle-end/66251
27690 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
27692 (vect_create_vectorized_demotion_stmts): Always set
27693 STMT_VINFO_VEC_STMT, also with SLP.
27694 (vectorizable_store): Handle strided group stores.
27696 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27699 * config/aarch64/aarch64.md
27700 (*adds_shift_imm_<mode>): New pattern.
27701 (*subs_shift_imm_<mode>): Likewise.
27702 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27703 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27704 (*add_uxt<mode>_shift2): Likewise.
27705 (*add_uxtsi_shift2_uxtw): Likewise.
27706 (*sub_uxt<mode>_shift2): Likewise.
27707 (*sub_uxtsi_shift2_uxtw): Likewise.
27709 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
27711 * config/rs6000/constraints.md (Y, U): Use match_test.
27713 2015-05-26 Christian Bruel <christian.bruel@st.com>
27716 * config/arm/arm.c (arm_option_check_internal)
27717 (arm_option_params_internal): Check opts->target_flags to set macros.
27718 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27719 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
27720 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27721 (builtin_define): Replaced with def_or_undef_macro.
27722 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27723 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
27724 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27725 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
27726 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
27727 (TARGET_ARM_FEATURE_LDREX_P)
27728 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
27729 * config/arm/arm-c.c (def_or_undef_macro): New function.
27730 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
27732 2015-05-26 Christian Bruel <christian.bruel@st.com>
27734 * c-common.h (builtin_define_with_int_value)
27735 (builtin_define_type_sizeof): Declare.
27736 * c-cppbuiltin.c (builtin_define_with_int_value)
27737 (builtin_define_type_sizeof): Externalize.
27738 (builtin_define_std): Cleanup declaration.
27739 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
27740 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
27741 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
27742 (builtin_define, builtin_assert): New macros.
27744 2015-05-26 Richard Biener <rguenther@suse.de>
27746 PR tree-optimization/66142
27747 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
27748 MEM_REFs for the same base address.
27750 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27753 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
27755 2015-05-26 Jason Merrill <jason@redhat.com>
27757 * configure.ac: Set CXXFLAGS for ISL test.
27758 * configure: Regenerate.
27760 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
27761 strstr and basename.
27762 * configure: Regenerate.
27764 2015-05-26 Richard Biener <rguenther@suse.de>
27766 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
27767 X % C -> X & (C - 1) for C being a power-of two to ...
27768 * match.pd: ... patterns.
27770 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
27772 * match.pd (swapped_tcc_comparison): New operator list.
27773 (-A CMP -B): New simplification.
27774 * fold-const.c (fold_comparison): Remove corresponding code.
27776 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
27778 * caller-save.c (init_caller_save): Base temporary register numbers
27779 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
27780 * cfgloopanal.c (init_set_costs): Likewise.
27781 * dojump.c (prefer_and_bit_test): Likewise.
27782 * expr.c (init_expr_target): Likewise.
27783 * ira.c (setup_prohibited_mode_move_regs): Likewise.
27784 * lower-subreg.c (init_lower_subreg): Likewise.
27785 * postreload.c (reload_cse_regs_1): Likewise.
27787 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
27789 * gensupport.h (compute_test_codes): Declare.
27790 * gensupport.c (compute_predicate_codes): Rename to...
27791 (compute_test_codes): ...this. Generalize error message.
27792 (process_define_predicate): Update accordingly.
27793 * genpreds.c (compute_maybe_allows): Delete.
27794 (add_constraint): Use compute_test_codes to determine whether
27795 something can accept a SUBREG, REG or MEM.
27797 2015-05-26 Torvald Riegel <triegel@redhat.com>
27799 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
27800 'memory model' to align with C++11; fix description of memory orders;
27803 2015-05-26 Richard Biener <rguenther@suse.de>
27805 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
27806 (vect_analyze_loop_operations): ... here. Remove slp parameter,
27807 detect whether we apply SLP. Remove call to
27808 vect_update_slp_costs_according_to_vf.
27809 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
27810 vect_update_slp_costs_according_to_vf from here. Dispatch
27811 to vect_slp_analyze_operations to analyze SLP stmts.
27812 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
27813 unused bb_vec_info parameter, adjust assert.
27814 (vect_slp_analyze_operations): Pass in the slp instance tree
27815 instead of bb_vec_info.
27816 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
27817 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
27819 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
27821 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
27822 Q_REGS. Expand comment.
27823 (REG_CLASS_NAMES): Ditto.
27824 (REG_CLASS_CONTENTS): Ditto.
27826 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
27829 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
27830 when LEGACY_INT_REGNO_P is processed.
27832 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
27834 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
27836 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
27838 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
27839 register if not marked dead/unused, before return.
27841 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27844 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
27845 is set; check for assembler name at LTO time.
27846 (type_in_anonymous_namespace): Remove hacks, check that all
27847 anonymous types are called "<anon>"
27848 (odr_type_p): Simplify; add check for "<anon>"
27849 (odr_subtypes_equivalent): Add odr_type_p check.
27850 * tree.c (need_assembler_name_p): Even anonymous namespace needs
27853 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27855 * ipa-utils.h (method_class_type): Remove.
27856 * cgraphunit.c (walk_polymorphic_call_targets): Use
27857 TYPE_METHOD_BASETYPE.
27858 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
27859 on main variants only.
27860 (method_class_type): Remove.
27861 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
27862 (build_type_inheritance_graph): Likewise.
27863 * ipa-icf.c (sem_function::equals_wpa): Likewise.
27864 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
27865 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
27867 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27869 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
27870 is_typedef_decl, typedef_variant_p): Constify.
27871 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
27872 is_typedef_decl, typedef_variant_p): Constify.
27874 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27876 * defaults.h (gen_tablejump): New function.
27877 (HAVE_tablejump): Add default value.
27879 * stmt.c: Likewise.
27881 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27883 * defaults.h (gen_store_multiple): New function.
27884 (HAVE_store_multiple): Add default value.
27885 * expr.c (move_block_from_reg): Adjust.
27887 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27889 * defaults.h (gen_load_multiple): New function.
27890 (HAVE_load_multiple): Add default value.
27891 * expr.c (move_block_to_reg): Adjust.
27893 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27895 * defaults.h (gen_mem_signal_fence): New function.
27896 (HAVE_mem_signal_fence): Add default value.
27897 * optabs.c: Adjust.
27899 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27901 * defaults.h (gen_memory_barrier): New function.
27902 (HAVE_memory_barrier): Add default value.
27903 * optabs.c: Adjust.
27905 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27907 * defaults.h (gen_mem_thread_fence): New function.
27908 (HAVE_mem_thread_fence): Add default definition.
27909 * optabs.c: Adjust.
27911 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27913 * combine.c (find_split_point): Check the value of HAVE_lo_sum
27914 instead of if it is defined.
27915 (combine_simplify_rtx): Likewise.
27916 * lra-constraints.c (process_address_1): Likewise.
27917 * config/darwin.c: Adjust.
27918 * genconfig.c (main): Always define HAVE_lo_sum.
27920 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27922 * genmatch.c (parser::parse_operation): Reject expanding
27923 operator-list inside 'for'.
27925 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27927 * genmatch.c (parser::parse_for): Reject iterator if used as
27930 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27932 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
27933 after end of id-list.
27935 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
27937 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
27938 we do not try to compute canonical type for type that does not need
27940 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
27942 * tree.h (type_with_alias_set_p): New.
27944 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
27946 * tree.c (gimple_canonical_types_compatible_p): Do not compare
27947 function attributes.
27948 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
27950 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
27952 * Makefile.in (check_gcc_parallelize): Delete.
27953 (lang_checks_parallelized): Update comment.
27955 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
27957 PR rtl-optimization/66237
27958 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
27959 location of an "as_a" cast.
27961 2015-05-22 Jeff Law <law@redhat.com>
27963 * config/pa/pa.md (non-canonical shift-add insns): Remove.
27964 (peepholes with non-canonical RTL sources): Remove.
27965 (peepholes for indexed stores of FP regs in integer modes): Match and
27966 generate canonical RTL.
27968 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27970 PR tree-optimization/63387
27971 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
27972 ((x ord x) & (y ord y) -> (x ord y),
27973 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
27974 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
27975 vectors like scalars.
27977 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27979 * convert.c (convert_to_integer, convert_to_vector): Include the
27980 types in the error message.
27982 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27984 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
27987 2015-05-22 Jeff Law <law@redhat.com>
27989 * config/pa/pa.md (integer_indexed_store splitters): Use
27990 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
27991 insns -- adjusting the constant 2nd operand accordingly.
27993 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
27994 (plus (ashift X log2) Y) if it is a split point.
27996 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
27997 out of hppa_legitimize_address to handle both forms of a multiply
27999 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
28000 Always generate the ASHIFT variant as the result is not directly
28001 used in a MEM. Update comments and refactor slightly to improve
28004 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28007 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
28008 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
28009 (aarch64_composite_type_p): Return false if given type and mode are
28010 for a short vector.
28012 2015-05-22 Richard Biener <rguenther@suse.de>
28014 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
28016 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
28017 patterns when determining whether SLP is pure.
28018 (vect_is_slp_reduction): Remove check for pattern stmts.
28019 (vect_is_simple_reduction_1): Remove dead code.
28020 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
28021 (vect_get_and_check_slp_defs): Pass in the stmt number.
28022 Allow the first def in a reduction to be not a pattern stmt when
28023 the rest of the stmts def are patterns.
28024 (vect_build_slp_tree_1): Allow tcc_expression codes like
28025 SAD_EXPR and DOT_PROD_EXPR.
28026 (vect_build_slp_tree): Adjust.
28027 (vect_analyze_slp): Refactor and move BB vect error message ...
28028 (vect_slp_analyze_bb_1): ... here.
28030 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
28032 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
28033 for CSWTCH temporary.
28035 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28037 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
28038 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
28041 2015-05-22 Richard Biener <rguenther@suse.de>
28043 PR tree-optimization/66251
28044 * tree-vect-stmts.c (vectorizable_conversion): Properly
28045 set STMT_VINFO_VEC_STMT even for the SLP case.
28047 2015-05-22 Marek Polacek <polacek@redhat.com>
28049 * doc/extend.texi: Use @pxref instead of @xref.
28051 2015-05-22 hiraditya <hiraditya@msn.com>
28053 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
28056 2015-05-22 Richard Biener <rguenther@suse.de>
28058 PR tree-optimization/65701
28059 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28060 Move peeling cost models into one place. Peel for alignment
28061 for single loads only if an aligned load is cheaper than
28064 2015-05-22 Marek Polacek <polacek@redhat.com>
28067 * doc/extend.texi (Enumerator Attributes): New section.
28068 Document syntax of enumerator attributes.
28070 2015-05-22 Richard Biener <rguenther@suse.de>
28072 * tree-vect-loop.c (get_reduction_op): New function.
28073 (vect_model_reduction_cost): Use it, add reduc_index parameter.
28074 Make ready for BB reductions.
28075 (vect_create_epilog_for_reduction): Use get_reduction_op.
28076 (vectorizable_reduction): Init reduc_index to a valid value.
28077 Adjust vect_model_reduction_cost call.
28078 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
28079 operand for reduction defaults. Add SAD_EXPR support.
28080 Assert we have a neutral op for SLP reductions.
28081 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
28082 walking pattern stmt ops only recurse to SSA names.
28084 2015-05-22 Richard Biener <rguenther@suse.de>
28086 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
28087 assert with guard, remove check on detected reduction.
28088 (vect_recog_sad_pattern): Likewise.
28089 (vect_recog_widen_sum_pattern): Likewise.
28091 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28093 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
28094 __always_inline__ attribute.
28095 (vaesdq_u8): Likewise.
28096 (vaesmcq_u8): Likewise.
28097 (vaesimcq_u8): Likewise.
28098 (vsha1cq_u32): Likewise.
28099 (vsha1mq_u32): Likewise.
28100 (vsha1pq_u32): Likewise.
28101 (vsha1h_u32): Likewise.
28102 (vsha1su0q_u32): Likewise.
28103 (vsha1su1q_u32): Likewise.
28104 (vsha256hq_u32): Likewise.
28105 (vsha256h2q_u32): Likewise.
28106 (vsha256su0q_u32): Likewise.
28107 (vsha256su1q_u32): Likewise.
28108 (vmull_p64): Likewise.
28109 (vmull_high_p64): Likewise.
28111 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28113 * final.c (final_scan_insn): Don't check HAVE_peephole with the
28115 * output.h: Likewise.
28116 * genconfig.c (main): Alwways define HAVE_peephole.
28117 * genpeep.c: Don't emit checks of HAVE_peephole.
28119 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28121 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
28122 check HAVE_conditional_move with the preprocessor.
28124 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28126 * genconfig.c (main): Always define HAVE_conditional_move.
28127 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
28128 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
28131 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28133 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
28134 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
28135 and FRAME_POINTER_REGNUM with the preprocessor.
28137 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28139 * defaults.h: Add default for STACK_PUSH_CODE.
28140 * expr.c: Don't redefine STACK_PUSH_CODE.
28141 * recog.c: Likewise.
28143 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28145 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
28146 sched-deps.c: Use if instead of preprocessor checks with
28147 STACK_GROWS_DOWNWARD.
28149 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28151 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
28153 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
28154 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
28155 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
28156 * doc/tm.texi: Regenerate.
28158 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
28161 * config/i386/constraints.md (Bg): New constraint for GOT memory
28163 * config/i386/i386.md (*call_got_x32): New pattern.
28164 (*call_value_got_x32): Likewise.
28165 * config/i386/predicates.md (GOT_memory_operand): New predicate.
28167 2015-05-21 Jakub Jelinek <jakub@redhat.com>
28169 PR tree-optimization/66233
28170 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
28173 2015-05-21 Jeff Law <law@redhat.com>
28175 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
28176 than MULT for shadd sequences.
28178 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
28180 * alias.c (alias_stats): New static var.
28181 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
28182 (dump_alias_stats_in_alias_c): New function.
28183 * alias.h (dump_alias_stats_in_alias_c): Declare.
28184 * tree-ssa-alias.c (dump_alias_stats): Call it.
28186 2015-05-08 Michael Matz <matz@suse.de>
28188 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
28190 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
28191 (STMT_VINFO_STRIDED_P): ... this.
28192 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
28193 (vect_verify_datarefs_alignment): Likewise.
28194 (vect_enhance_data_refs_alignment): Likewise.
28195 (vect_analyze_data_ref_access): Likewise.
28196 (vect_analyze_data_refs): Accept strided stores.
28197 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
28198 (vect_model_load_cost): Adjust for macro rename.
28199 (vectorizable_mask_load_store): Likewise.
28200 (vectorizable_load): Likewise.
28201 (vectorizable_store): Open code strided stores.
28203 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28205 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
28206 Document sqrt_insn.
28208 2015-05-21 Richard Biener <rguenther@suse.de>
28211 * match.pd: Guard pattern optimzing (int)(float)int
28212 conversions to apply only on GIMPLE.
28214 2015-05-21 Jeff Law <law@redhat.com>
28216 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
28217 multiply-accumulate/shift-add insn generation.
28219 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
28222 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
28223 operands[1] are the same.
28225 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
28227 PR middle-end/66221
28228 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
28229 build_distinct_type_copy to copy bounds.
28231 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
28233 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
28234 Change to unsigned int.
28236 2015-05-20 Jeff Law <law@redhat.com>
28238 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
28239 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
28240 (pa_shadd_constant_p): Allow constants for shadd insns rather
28241 than valid scaling constants for memory addresses.
28242 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
28243 * config/pa/predicates.md (mem_shadd_operand): New predicate.
28244 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
28245 (shift-add insns using ASHIFT): New patterns.
28247 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
28249 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
28251 (fix_up_fall_thru_edges): Likewise.
28252 (fix_crossing_conditional_branches): Likewise. Promote jump targets
28253 from to rtx_insn to rtx_code_label where feasible.
28254 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
28255 gen_move_insn (returned type changed to rtx_insn).
28256 * builtins.c (expand_errno_check): Fix arguments of
28257 do_compare_rtx_and_jump (now expects rtx_code_label).
28258 (expand_builtin_acc_on_device): Likewise.
28259 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
28260 invert_jump (now exprects rtx_jump_insn).
28261 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
28262 (construct_init_block): Use rtx_code_label.
28263 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
28264 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
28265 calling redirect_jump.
28266 (patch_jump_insn): Likewise.
28267 (redirect_branch_edge): Likewise.
28268 (force_nonfallthru_and_redirect): Likewise.
28269 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
28271 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
28272 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
28273 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
28274 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
28275 to store the value retured by gen_label_rtx.
28276 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
28278 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
28279 (split_branches): Fix calls of redirect_jump.
28280 * dojump.c (jumpifnot): Promote argument type from rtx to
28282 (jumpifnot_1): Likewise.
28283 (jumpif): Likewise.
28284 (jumpif_1): Likewise.
28285 (do_jump_1): Likewise.
28286 (do_jump): Likewise. Use rtx_code_label when feasible.
28287 (do_jump_by_parts_greater_rtx): Likewise.
28288 (do_jump_by_parts_zero_rtx): Likewise.
28289 (do_jump_by_parts_equality_rtx): Likewise.
28290 (do_compare_rtx_and_jump): Likewise.
28291 * dojump.h: Update function prototypes.
28292 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
28294 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
28296 (emit_label_before): Likewise.
28297 (emit_jump_insn_after_noloc): Likewise.
28298 (emit_jump_insn_after_setloc): Likewise.
28299 (emit_jump_insn_after): Likewise
28300 (emit_jump_insn_before_setloc): Likewise.
28301 (emit_jump_insn_before): Likewise.
28302 (emit_label_before): Promote return type to rtx_code_label.
28303 (emit_label): Likewise.
28304 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
28305 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
28307 (emit_stack_restore): Likewise.
28308 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
28309 (do_cmp_and_jump): Likewise.
28310 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
28311 from rtx to rtx_code_label.
28312 (gen_move_insn_uncast): New function.
28313 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
28314 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
28315 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
28316 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
28317 invert_jump_1 and redirect_jump_1.
28318 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
28319 do_compare_rtx_and_jump.
28320 (expand_addsub_overflow): Likewise.
28321 (expand_neg_overflow): Likewise.
28322 (expand_mul_overflow): Likewise.
28323 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
28324 return value of gen_move_insn.
28325 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
28326 * loop-doloop.c (add_test): Use rtx_code_label.
28327 (doloop_modify): Likewise.
28328 (doloop_optimize): Likewise.
28329 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
28330 * lra-constraints.c (emit_spill_move): Remove cast of value returned
28332 (inherit_reload_reg): Add cast when calling dump_insn_slim.
28333 (split_reg): Likewise.
28334 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
28336 * optabs.c (expand_binop_directly): Remove casts of values returned by
28338 (expand_unop_direct): Likewise.
28339 (expand_abs): Likewise.
28340 (maybe_emit_unop_insn): Likewise.
28341 (maybe_gen_insn): Promote return type to rtx_insn.
28342 * optabs.h: Update prototype of maybe_gen_insn.
28343 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
28345 * recog.c (struct peep2_insn_data): Promote type of insn field to
28347 (peep2_reinit_state): Use NULL instead of NULL_RTX.
28348 (peep2_attempt): Remove casts of insn in peep2_insn_data.
28349 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
28350 * recog.h (struct insn_gen_fn): Promote return types of function
28351 pointers and operator ().from rtx to rtx_insn.
28352 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
28353 (fill_eager_delay_slots): Likewise.
28354 (relax_delay_slots): Likewise.
28355 (make_return_insns): Likewise.
28356 (dbr_schedule): Likewise.
28357 (optimize_skips): Likewise.
28358 (reorg_redirect_jump): Likewise.
28359 (fill_slots_from_thread): Likewise.
28360 * reorg.h: Update prototypes.
28361 * resource.c (find_dead_or_set_registers): Use dyn_cast to
28362 rtx_jump_insn instead of check. Use it's jump_target method.
28363 * rtl.h (rtx_jump_insn::jump_label): Define new method.
28364 (rtx_jump_insn::jump_target): Define new method.
28365 (rtx_jump_insn::set_jump_target): Define new method.
28366 * rtlanal.c (tablejump_p): Promote type of one local variable.
28367 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
28368 (sched_analyze_insn): Likewise.
28369 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
28370 (print_insn): Likewise.
28371 * stmt.c (label_rtx): Promote return type to rtx_insn.
28372 (force_label_rtx): Likewise.
28373 (jump_target_rtx): Define new function.
28374 (expand_label): Use it, get rid of one cast.
28375 (expand_naked_return): Promote rtx to rtx_code_label.
28376 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
28377 (expand_case): Use rtx_code_label instread of rtx where feasible.
28378 (expand_sjlj_dispatch_table): Likewise.
28379 (emit_case_nodes): Likewise.
28380 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
28381 * store-motion.c (insert_store): Make use of new return type of
28382 gen_move_insn and remove a cast.
28383 (replace_store_insn): Likewise.
28385 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
28387 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
28388 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
28390 2015-05-20 Jeff Law <law@redhat.com>
28392 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
28393 dispose of the jump thread path when the jump threading
28394 opportunity is cancelled.
28396 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
28398 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
28399 when printing the caret character.
28401 2015-05-20 Marek Polacek <polacek@redhat.com>
28403 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
28405 2015-05-20 Marek Polacek <polacek@redhat.com>
28407 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
28408 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
28409 * gimple-fold.c (canonicalize_bool): Likewise.
28410 (same_bool_result_p): Likewise.
28411 * tree-if-conv.c (parse_predicate): Likewise.
28413 2015-05-20 Marek Polacek <polacek@redhat.com>
28415 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
28416 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
28418 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28420 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
28421 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
28424 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
28426 * config/mips/mips.h (micromips_globals): Declare.
28428 2015-05-20 David Malcolm <dmalcolm@redhat.com>
28430 * timevar.def (TV_INITIALIZE_RTL): New.
28431 * toplev.c (initialize_rtl): Use an auto_timevar to account this
28432 function's time to TV_INITIALIZE_RTL.
28434 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
28436 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
28437 gimple_build_nop calls.
28438 (chkp_find_bounds_for_elem): Likewise.
28439 (chkp_get_zero_bounds): Likewise.
28440 (chkp_get_none_bounds): Likewise.
28441 (chkp_get_bounds_by_definition): Likewise.
28442 (chkp_generate_extern_var_bounds): Likewise.
28443 (chkp_get_bounds_for_decl_addr): Likewise.
28444 (chkp_get_bounds_for_string_cst): Likewise.
28446 2015-05-20 Bin Cheng <bin.cheng@arm.com>
28448 PR tree-optimization/65447
28449 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
28450 (dump_use, dump_uses): Support to dump sub use.
28451 (record_use): New parameters to support sub use. Remove call to
28453 (record_sub_use, record_group_use): New functions.
28454 (compute_max_addr_offset, split_all_small_groups): New functions.
28455 (group_address_uses, rewrite_use_address): New functions.
28456 (strip_offset): New declaration.
28457 (find_interesting_uses_address): Call record_group_use.
28458 (add_candidate): New assertion.
28459 (infinite_cost_p): Move definition forward.
28460 (add_costs): Check INFTY cost and return immediately.
28461 (get_computation_cost_at): Clear setup cost and dependent bitmap
28463 (determine_use_iv_cost_address): Compute cost for sub uses.
28464 (rewrite_use_address_1): Rename from old rewrite_use_address.
28465 (free_loop_data): Free sub uses.
28466 (tree_ssa_iv_optimize_loop): Call group_address_uses.
28468 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28469 Jim Wilson <jim.wilson@linaro.org>
28471 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
28472 new fields loadv and storev.
28473 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
28474 Initialize loadv and storev.
28475 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
28476 (cortexa53_extra_costs): Likewise.
28477 (cortexa57_extra_costs): Likewise.
28478 (xgene1_extra_costs): Likewise.
28479 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
28482 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28484 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
28486 (cortexa8_extra_costs): Likewise.
28487 (cortexa5_extra_costs): Likewise.
28488 (cortexa7_extra_costs): Likewise.
28489 (cortexa12_extra_costs): Likewise.
28490 (cortexa15_extra_costs): Likewise.
28491 (v7m_extra_costs): Likewise.
28493 2015-05-20 Jeff Law <law@redhat.com>
28495 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
28496 instead of open-coded version. Also delete the jump thread created
28497 within this function.
28499 2015-05-20 Alan Modra <amodra@gmail.com>
28501 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
28502 stack adjusting insn. Formatting.
28503 (rs6000_emit_prologue): Track stack adjusting insn, and use of
28504 r12. If possible, emit first -fsplit-stack arg pointer insn
28505 before stack adjust. Don't use r12 to save cr if split-stack.
28507 2015-05-20 Alan Modra <amodra@gmail.com>
28509 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
28511 (rs6000_supports_split_stack): New function.
28512 * config/rs6000/rs6000.c (machine_function): Add
28513 split_stack_arg_pointer.
28514 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
28515 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
28516 rather than virtual_incoming_args_rtx.
28517 (rs6000_va_start): Likewise.
28518 (split_stack_arg_pointer_used_p): New function.
28519 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
28520 (morestack_ref): New var.
28521 (gen_add3_const, rs6000_expand_split_stack_prologue,
28522 rs6000_internal_arg_pointer, rs6000_live_on_entry,
28523 rs6000_split_stack_space_check): New functions.
28524 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
28525 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
28526 (UNSPECV_SPLIT_STACK_RETURN): Define.
28527 (split_stack_prologue, load_split_stack_limit,
28528 load_split_stack_limit_di, load_split_stack_limit_si,
28529 split_stack_return, split_stack_space_check): New expands and insns.
28530 * config/rs6000/rs6000-protos.h
28531 (rs6000_expand_split_stack_prologue): Declare.
28532 (rs6000_split_stack_space_check): Declare.
28534 2015-05-20 Alan Modra <amodra@gmail.com>
28536 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
28537 (direct_return): Test vrsave_size rather than vrsave_mask.
28538 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
28539 (rs6000_emit_epilogue): Likewise.
28541 2015-05-20 Alan Modra <amodra@gmail.com>
28543 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
28544 when not saving registers.
28545 (debug_stack_info): Adjust to omit printing unused offsets,
28547 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
28550 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28553 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
28554 value_type to const char *.
28556 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
28558 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
28559 to build a biarch toolchain again.
28561 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
28563 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
28564 or implicit declarations.
28565 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
28567 (get_odr_type): Check type has linkage before adding bases.
28568 (register_odr_type): Check that type has linkage before adding it.
28569 (type_known_to_have_no_deriavations_p): Rename to ..
28570 (type_known_to_have_no_derivations_p): This one.
28571 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
28572 (type_known_to_have_no_derivations_p): This one.
28573 * ipa-polymorphic-call.c
28574 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
28577 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
28579 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
28580 (layout_type): Use RECORD_OR_UNION_TYPE_P.
28582 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28584 * config/s390/s390.c (s390_vector_bool_type_p): New function.
28585 (s390_invalid_binary_op): New function.
28586 (TARGET_INVALID_BINARY_OP): Define macro.
28588 2015-05-19 David Sherwood <david.sherwood@arm.com>
28590 * loop-invariant.c (create_new_invariant): Don't calculate address cost
28591 if mode is not a scalar integer.
28592 (get_inv_cost): Increase computational cost for unused invariants.
28594 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28596 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
28597 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
28598 * config/s390/s390-builtin-types.def: New file.
28599 * config/s390/s390-builtins.def: New file.
28600 * config/s390/s390-builtins.h: New file.
28601 * config/s390/s390-c.c: New file.
28602 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
28603 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
28604 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
28605 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
28607 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
28609 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
28610 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
28611 variable definitions.
28612 (s390_const_operand_ok): New function.
28613 (s390_expand_builtin): Rewrite.
28614 (s390_init_builtins): New function.
28615 (s390_handle_vectorbool_attribute): New function.
28616 (s390_attribute_table): Add s390_vector_bool attribute.
28617 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
28618 (s390_branch_condition_mask): Generate masks for new modes.
28619 (s390_expand_vec_compare_cc): New function.
28620 (s390_mangle_type): Add mangling for vector bool types.
28621 (enum s390_builtin): Remove.
28622 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
28624 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
28625 s390_cpu_cpp_builtins.
28626 (REGISTER_TARGET_PRAGMAS): New macro.
28627 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
28628 (insn_cmp mode attribute): Add new CC modes.
28629 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
28630 (lcbb): New pattern definition.
28631 * config/s390/s390intrin.h: Include vecintrin.h.
28632 * config/s390/t-s390: New file.
28633 * config/s390/vecintrin.h: New file.
28634 * config/s390/vector.md: Include vx-builtins.md.
28635 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
28638 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28640 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
28642 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
28643 (s390_select_ccmode): Likewise.
28644 (s390_canonicalize_comparison): Swap operands if necessary.
28645 (s390_expand_vec_compare_scalar): Expand DFmode compare using
28646 single element vector instructions.
28647 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
28648 (s390_branch_condition_mask): Generate CC masks for the new modes.
28649 * config/s390/s390.md (v0, vf, vd): New mode attributes.
28650 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
28651 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
28652 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
28653 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
28654 (*extend<DSF:mode><BFP:mode>2): New insn definition.
28655 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
28656 (extend<DSF:mode><BFP:mode>2): Turn into expander.
28657 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
28658 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
28659 (sqrt<mode>2): Add vector instruction.
28661 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28663 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
28665 * config/s390/predicates.md (const0_operand, constm1_operand)
28666 (constable_operand): Accept vector operands.
28667 * config/s390/s390-modes.def: Add supported vector modes.
28668 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
28669 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
28670 (s390_bytemask_vector_p, s390_expand_vec_strlen)
28671 (s390_expand_vec_compare, s390_expand_vcond)
28672 (s390_expand_vec_init): Add prototypes.
28673 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
28674 (s390_vector_mode_supported_p): New function.
28675 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
28676 (s390_contiguous_bitmask_vector_p): New function.
28677 (s390_bytemask_vector_p): New function.
28678 (s390_split_ok_p): Vector regs don't work either.
28679 (regclass_map): Add VEC_REGS.
28680 (s390_legitimate_constant_p): Handle vector constants.
28681 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
28682 (legitimate_reload_vector_constant_p): New function.
28683 (s390_preferred_reload_class): Handle CONST_VECTOR.
28684 (s390_reload_symref_address): Likewise.
28685 (s390_secondary_reload): Vector memory instructions only support
28686 short displacements. Rename reload*_nonoffmem* to reload*_la*.
28687 (s390_emit_ccraw_jump): New function.
28688 (s390_expand_vec_strlen): New function.
28689 (s390_expand_vec_compare): New function.
28690 (s390_expand_vcond): New function.
28691 (s390_expand_vec_init): New function.
28692 (s390_dwarf_frame_reg_mode): New function.
28693 (print_operand): Handle addresses with 'O' and 'R' constraints.
28694 (NR_C_MODES, constant_modes): Add vector modes.
28695 (s390_output_pool_entry): Handle vector constants.
28696 (s390_hard_regno_mode_ok): Handle vector registers.
28697 (s390_class_max_nregs): Likewise.
28698 (s390_cannot_change_mode_class): New function.
28699 (s390_invalid_arg_for_unprototyped_fn): New function.
28700 (s390_function_arg_vector): New function.
28701 (s390_function_arg_float): Remove size variable.
28702 (s390_pass_by_reference): Handle vector arguments.
28703 (s390_function_arg_advance): Likewise.
28704 (s390_function_arg): Likewise.
28705 (s390_return_in_memory): Vector values are returned in a VR if
28707 (s390_function_and_libcall_value): Handle vector arguments.
28708 (s390_gimplify_va_arg): Likewise.
28709 (s390_call_saved_register_used): Consider the arguments named.
28710 (s390_conditional_register_usage): Disable v16-v31 for non-vec
28712 (s390_preferred_simd_mode): New function.
28713 (s390_support_vector_misalignment): New function.
28714 (s390_vector_alignment): New function.
28715 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
28716 (TARGET_VECTOR_MODE_SUPPORTED_P)
28717 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
28718 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
28719 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
28720 (TARGET_VECTOR_ALIGNMENT): Define target macro.
28721 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
28722 (FIRST_PSEUDO_REGISTER): Increase value.
28723 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
28724 (VECTOR_REG_P): Define macros.
28725 (FIXED_REGISTERS, CALL_USED_REGISTERS)
28726 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
28727 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
28728 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
28729 Add vector registers.
28730 (CANNOT_CHANGE_MODE_CLASS): Call C function.
28731 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
28732 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
28734 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
28735 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
28736 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
28737 (VR*_REGNUM): New constants.
28738 (ALL): New mode iterator.
28739 (INTALL): Remove mode iterator.
28741 (movti): Implement TImode moves for VRs.
28742 Disable TImode splitter for VR targets.
28743 Implement splitting TImode GPR<->VR moves.
28744 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
28745 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
28746 reload<mode>_la_in, reload<mode>_la_out.
28747 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
28748 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
28749 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
28750 (mov<mode> SF SD): Prefer lder, lde for loading.
28751 Add lrl and strl instructions.
28752 Add vector instructions.
28753 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
28754 Call s390_expand_vec_strlen on z13.
28755 (*cc_to_int): Change predicate to nonimmediate_operand.
28756 (addti3): Rename to *addti3. New expander.
28757 (subti3): Rename to *subti3. New expander.
28758 * config/s390/vector.md: New file.
28760 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28762 * common/config/s390/s390-common.c (processor_flags_table): Add
28764 * config.gcc: Add z13.
28765 * config/s390/s390-opts.h (enum processor_type): Add
28766 PROCESSOR_2964_Z13.
28767 * config/s390/s390.c (s390_adjust_priority): Check for
28768 PROCESSOR_2964_Z13.
28769 (s390_reorg): Likewise.
28770 (s390_sched_reorder): Likewise.
28771 (s390_sched_variable_issue): Likewise.
28772 (s390_loop_unroll_adjust): Likewise.
28773 (s390_option_override): Likewise. Default to -mvx when available.
28774 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
28775 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
28776 (TARGET_VX_ABI): Define macros.
28778 (TARGET_DEFAULT): Add MASK_OPT_VX.
28779 * config/s390/s390.md ("cpu" attribute): Add z13.
28780 ("cpu_facility" attribute): Add vec.
28781 * config/s390/s390.opt (processor_type): Add z13.
28782 (mvx): New options.
28783 * doc/invoke.texi: Add z13 option for -march.
28785 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28787 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
28788 mode check to make sure that only scalar integer values are
28791 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
28793 * tree.c (verify_type_variant): Fix #undef.
28794 (gimple_canonical_types_compatible_p): Move here from lto.c
28795 (verify_type): Verify TYPE_CANONICAL compatibility.
28796 * tree.h (gimple_canonical_types_compatible_p): Declare.
28798 2015-05-19 Jakub Jelinek <jakub@redhat.com>
28800 PR middle-end/66199
28801 * tree.h (OMP_TEAMS_COMBINED): Define.
28802 * gimplify.c (enum gimplify_omp_var_data): Add
28803 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
28804 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
28805 (omp_notice_variable): Accept both ORT_TEAMS
28806 and ORT_COMBINED_TEAMS. Don't recurse if
28807 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
28808 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
28810 (omp_no_lastprivate): New function.
28811 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
28812 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
28813 notice_outer and set appropriate bits, otherwise make
28814 sure default(none) combined constructs won't complain.
28815 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
28816 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
28817 omp_no_lastprivate either remove the clause or turn it
28818 into OMP_CLAUSE_PRIVATE.
28819 (gimplify_omp_for): Fix up handling of implicit
28820 lastprivate or linear iterators.
28821 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
28822 ORT_COMBINED_TEAMS.
28823 * omp-low.c (lower_omp_for_lastprivate): For combined
28824 for simd use fd.loop.n2 from the for rather than simd.
28826 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28828 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
28829 instead of gen_rtx_raw_REG.
28830 (cris_expand_epilogue): Likewise.
28831 * config/microblaze/microblaze.c (microblaze_classify_address):
28833 * config/sparc/sparc.md: Likewise.
28835 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
28837 * config/alpha/alpha.c (alpha_legitimize_reload_address)
28838 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
28839 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
28840 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
28841 Use CASE_CONST_SCALAR_INT.
28842 (print_operand) <case 'M'>: Use mode_width_operand to check the
28843 value of the constant.
28844 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
28845 * config/alpha/predicates.md (input_operand): Use general_operand
28846 instead of match_code as operand check.
28847 (symbolic_operand): Use match_code with subexpression digits.
28848 * config/alpha/constraints.md (Q): Ditto.
28850 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28852 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
28854 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28856 * config/s390/s390.c (s390_secondary_reload): Fix check for
28857 load/store relative.
28859 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28861 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
28862 alternative_mask to uint64_t.
28864 2015-05-19 Jakub Jelinek <jakub@redhat.com>
28866 PR tree-optimization/66187
28867 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
28868 Pass TYPE_SIGN to tree_int_cst_min_precision. If
28869 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
28871 2015-05-19 David Malcolm <dmalcolm@redhat.com>
28873 * diagnostic.c (diagnostic_report_current_module): Strengthen
28874 local "new_map" from const line_map * to
28875 const line_map_ordinary *.
28876 * genmatch.c (error_cb): Likewise for local "map".
28877 (output_line_directive): Likewise for local "map".
28878 * input.c (expand_location_1): Likewise for local "map".
28879 Pass NULL rather than &map to
28880 linemap_unwind_to_first_non_reserved_loc, since the value is never
28881 read from there, and the value written back not read from here.
28882 (is_location_from_builtin_token): Strengthen local "map" from
28883 const line_map * to const line_map_ordinary *.
28884 (dump_location_info): Strengthen locals "map" from
28885 line_map *, one to const line_map_ordinary *, the other
28886 to const line_map_macro *.
28887 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
28888 const line_map * to const line_map_macro *.
28889 (maybe_unwind_expanded_macro_loc): Add a call to
28890 linemap_check_macro when writing to the "map" field of the
28892 Introduce local const line_map_ordinary * "ord_map", using it in
28893 place of "map" in the part of the function where we know we have
28894 an ordinary map. Strengthen local "m" from const line_map * to
28895 const line_map_ordinary *.
28897 2015-05-19 Nick Clifton <nickc@redhat.com>
28900 * config/msp430/msp430.md (zero_extendhisi2): Add support for
28901 separate source and destination registers.
28903 2015-05-19 Richard Biener <rguenther@suse.de>
28905 PR tree-optimization/66165
28906 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
28907 for no load permutation.
28909 PR tree-optimization/66185
28910 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
28911 when building the SLP node from scalars.
28913 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
28914 Tristan Gingold <gingold@adacore.com>
28916 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
28917 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
28918 (expand_stack_restore): Call record_new_stack_level.
28919 (expand_stack_save): Do not call do_pending_stack_adjust.
28920 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
28921 * calls.c (expand_call): Call record_new_stack_level for alloca.
28922 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
28923 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
28924 (update_sjlj_context): New global function.
28925 * except.h (update_sjlj_context): Declare.
28926 * explow.c (record_new_stack_level): New global function.
28927 (allocate_dynamic_stack_space): Call record_new_stack_level.
28928 * explow.h (record_new_stack_level): Declare.
28929 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
28930 * cfgrtl.c (duplicate_insn_chain): Likewise.
28932 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28934 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
28935 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
28936 STACK_GROWS_DOWNWARD as normal if.
28937 (expand_call): Likewise.
28939 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
28942 * config/sh/sh.md (*round_int_even): New insn_and_split and
28943 accompanying new unnamed split.
28945 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28947 * bitmap.c (bitmap_set_range): Handle count==1 specially.
28948 (bitmap_clear_range): Likewise.
28949 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
28950 bitmap_set_range unconditionally.
28951 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28952 * df-scan.c (df_mark_reg): Likewise.
28953 * haifa-sched.c (setup_ref_regs): Likewise.
28954 * sched-rgn.c (update_live_1): Likewise.
28956 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28958 * regs.h (END_HARD_REGNO): Delete.
28959 (END_REGNO): Move to...
28961 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
28962 * caller-save.c (mark_set_regs): Likewise.
28963 * combine.c (move_deaths, distribute_notes): Likewise.
28964 * cse.c (invalidate, invalidate_for_call): Likewise.
28965 * df-scan.c (df_ref_record): Likewise.
28966 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
28967 (record_last_reg_set_info): Likewise.
28968 * reg-stack.c (convert_regs_exit): Likewise.
28969 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
28970 * resource.c (update_live_status): Likewise.
28971 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
28973 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28975 * rtl.h (reg_info): Add an nregs field.
28976 (REG_NREGS): Use it.
28977 (SET_REGNO_RAW): Delete.
28978 (set_regno_raw): New function.
28979 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
28980 (END_REGNO): Redefine in terms of REG_NREGS.
28981 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
28983 * emit-rtl.c (set_mode_and_regno): Likewise.
28984 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
28985 instead of SET_REGNO_RAW.
28987 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28989 * rtl.h (PUT_MODE_RAW): New macro.
28990 (PUT_REG_NOTE_KIND): Use it.
28991 (set_mode_and_regno): Declare.
28992 (gen_raw_REG): Change regno to "unsigned int".
28993 (gen_rtx_REG): Change "unsigned" to "unsigned int".
28994 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
28995 use set_mode_and_regno to change the mode of registers.
28996 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
28997 * emit-rtl.c (set_mode_and_regno): New function.
28998 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
28999 * caller-save.c (reg_save_code): Use set_mode_and_regno.
29000 * expr.c (init_expr_target): Likewise.
29001 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29002 * postreload.c (reload_cse_simplify_operands): Likewise.
29004 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29006 * caller-save.c (init_caller_save): Use word_mode and
29007 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
29008 * expr.c (init_expr_target): Likewise.
29009 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29010 * postreload.c (reload_cse_regs_1): Likewise.
29012 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29014 * rtl.def (REG): Change format to "r".
29015 * rtl.h (rtunion): Remove rt_reg.
29016 (reg_info): New structure.
29017 (rtx_def): Add reg field to main union.
29018 (X0REGATTR): Delete.
29019 (REG_CHECK): New macro.
29020 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
29021 * rtl.c (rtx_format): Document "r".
29022 (rtx_code_size): Handle REG specially.
29023 * gengenrtl.c (special_format): Return true for formats
29025 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
29026 Deal with REG_ATTRS after the field loop.
29027 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
29028 * expmed.c (init_expmed): Call gen_raw_REG instead of
29030 * expr.c (init_expr_target): Likewise.
29031 * regcprop.c (maybe_mode_change): Likewise.
29032 * varasm.c (make_decl_rtl): Likewise.
29033 * final.c (leaf_renumber_regs_insn): Return early after
29035 * genemit.c (gen_exp): Handle 'r' fields.
29036 * genpeep.c (match_rtx): Likewise.
29037 * gensupport.c (subst_pattern_match): Likewise.
29038 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
29039 (alter_constraints, subst_dup): Likewise.
29040 * read-rtl.c (read_rtx_code): Likewise.
29041 * print-rtl.c (print_rtx): Likewise.
29042 * genrecog.c (find_operand, find_matching_operand): Likewise.
29043 (validate_pattern, match_pattern_2): Likewise.
29044 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
29045 (rtx_test::regno_field): New function.
29046 (operator ==, safe_to_hoist_p, transition_parameter_type)
29047 (parameter_type_string, print_parameter_value)
29048 (print_nonbool_test, print_test): Handle new enum values.
29049 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
29050 * lra-constraints.c (operands_match_p): Likewise.
29052 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29054 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
29055 Change type of new_regno to unsigned int.
29056 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
29057 new_regno to unsigned int.
29058 (df_ref_change_reg_with_loc): Remove old_regno parameter.
29059 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
29060 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
29061 (SET_REGNO_RAW): Add space after ",".
29063 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29065 * rtl.h (REG_NREGS): New macro
29066 * alias.c (record_set): Use it.
29067 * cfgcleanup.c (mark_effect): Likewise.
29068 * combine.c (likely_spilled_retval_1): Likewise.
29069 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
29070 (move_deaths, distribute_notes): Likewise.
29071 * cselib.c (cselib_record_set): Likewise.
29072 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29073 * df-scan.c (df_mark_reg): Likewise.
29074 * dse.c (look_for_hardregs): Likewise.
29075 * dwarf2out.c (reg_loc_descriptor): Likewise.
29076 (multiple_reg_loc_descriptor): Likewise.
29077 * expr.c (write_complex_part, read_complex_part): Likewise.
29078 (emit_move_complex): Likewise.
29079 * haifa-sched.c (setup_ref_regs): Likewise.
29080 * ira-lives.c (mark_hard_reg_live): Likewise.
29081 * lra.c (lra_set_insn_recog_data): Likewise.
29082 * mode-switching.c (create_pre_exit): Likewise.
29083 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
29084 (reload_combine_recognize_pattern): Likewise.
29085 (reload_combine_note_use, move2add_record_mode): Likewise.
29086 (reload_cse_move2add): Likewise.
29087 * reg-stack.c (subst_stack_regs_pat): Likewise.
29088 * regcprop.c (kill_value, copy_value): Likewise.
29089 (copyprop_hardreg_forward_1): Likewise.
29090 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
29091 (build_def_use): Likewise.
29092 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
29093 (deps_analyze_insn): Likewise.
29094 * sched-rgn.c (check_live_1, update_live_1): Likewise.
29095 * sel-sched.c (count_occurrences_equiv): Likewise.
29096 * valtrack.c (dead_debug_insert_temp): Likewise.
29098 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29100 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
29101 * dse.c (note_add_store): Likewise.
29102 * ira-lives.c (mark_hard_reg_dead): Likewise.
29103 * loop-invariant.c (mark_reg_store): Likewise.
29104 (mark_reg_death): Likewise.
29105 * postreload.c (reload_combine): Likewise.
29106 (reload_combine_note_store): Likewise.
29107 (reload_combine_note_use): Likewise.
29108 * recog.c (peep2_reg_dead_p): Likewise.
29110 2015-05-19 Alan Modra <amodra@gmail.com>
29112 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
29113 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
29114 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
29116 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
29117 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
29118 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
29119 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
29121 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
29123 * config/mips/mips.md (JOIN_MODE): New mode iterator.
29124 (join2_load_Store<JOIN_MODE:mode>): New pattern.
29125 (join2_loadhi): Likewise.
29126 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
29127 load-load and store-stores.
29128 * config/mips/mips.opt (mload-store-pairs): New option.
29129 (TARGET_LOAD_STORE_PAIRS): New macro.
29130 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
29131 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
29132 * config/mips/mips.c (mips_load_store_bonding_p): New function.
29134 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
29136 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
29138 * dojump.c (do_compare_rtx_and_jump): Likewise.
29139 * expmed.c (emit_store_flag_1): Likewise.
29140 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
29141 * final.c (sprint_ul): Use std::reverse for reversing a string.
29142 * fold-const.c (extract_muldiv_1): Use std::swap.
29143 * genmodes.c (emit_mode_int_n): Likewise.
29144 * ifcvt.c (dead_or_predicable): Likewise.
29145 * ira-build.c (ira_merge_live_ranges): Likewise.
29146 (swap_allocno_copy_ends_if_necessary): Likewise.
29147 * ira.c (ira_setup_alts): Likewise.
29148 * loop-iv.c (iv_analyze_expr): Likewise.
29149 (implies_p): Likewise.
29150 (canon_condition): Likewise.
29151 * lra-constraints.c (swap_operands): Likewise.
29152 * lra-lives.c (lra_merge_live_ranges): Likewise.
29153 * omega.c (swap): Remove.
29155 (omega_unprotect_1): Use std::swap.
29156 (omega_solve_geq): Likewise.
29157 * optabs.c (expand_binop_directly): Likewise.
29158 (expand_binop): Likewise.
29159 (emit_conditional_move): Likewise.
29160 (emit_conditional_add): Likewise.
29161 * postreload.c (reload_cse_simplify_operands): Likewise.
29162 * reg-stack.c (emit_swap_insn): Likewise.
29163 (swap_to_top): Likewise.
29164 (compare_for_stack_reg): Likewise.
29165 (subst_asm_stack_regs): Likewise.
29166 * reload.c (find_reloads): Likewise.
29167 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
29168 * sel-sched.c (invoke_reorder_hooks): Likewise.
29169 (create_block_for_bookkeeping): Likewise.
29170 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
29171 (lambda_matrix_right_hermite): Use std::swap.
29172 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
29173 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
29174 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
29175 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
29176 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
29177 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
29178 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
29179 * tree-vrp.c (compare_ranges): Likewise.
29180 * var-tracking.c (add_with_sets): Likewise.
29181 (vt_find_locations): Likewise.
29183 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
29185 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
29187 (FBSD_ENDFILE_SPEC): Likewise.
29188 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
29189 config/freebsd-spec.h.
29190 (ENDFILE_SPEC): Likewise.
29192 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
29193 Richard Henderson <rth@redhat.com>
29196 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
29197 Check for a memory location that is not a reference (using an AND)
29198 to an unaligned location here.
29199 * config/alpha/predicates.md (normal_memory_operand): Remove.
29201 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
29203 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
29204 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
29206 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
29208 * config/mips/mips.c (micromips_globals): New variable.
29209 (mips_set_compression_mode): Save and reinitialize target-dependent
29210 state for microMIPS.
29212 2015-05-18 Martin Liska <mliska@suse.cz>
29214 * dbgcnt.def: Add new counter.
29215 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
29217 2015-05-18 Martin Liska <mliska@suse.cz>
29219 * dbgcnt.def: Sort counters.
29220 * opts.c (common_handle_option): Do not compile if
29221 -fdbg-cnt-list is enabled.
29223 2015-05-18 Tom de Vries <tom@codesourcery.com>
29225 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
29226 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
29227 address operator to va_list operand.
29228 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
29230 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
29232 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
29233 * config/s390/s390.c (s390_gimplify_va_arg): Same.
29234 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
29236 2015-05-18 Tom de Vries <tom@codesourcery.com>
29238 * tree-ssa-tail-merge.c: Fix whitespace.
29240 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
29242 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
29243 cortex-a17, and cortex-a17.cortex-a7.
29245 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
29248 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
29250 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
29253 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
29254 QImode inner modes for TARGET_AVX512BW. Force mask operand
29255 to a register for AVX512F modes.
29257 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29259 * toplev.c (emit_debug_global_declarations): Do not output debug info
29260 when doing slim LTO objects.
29262 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29264 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
29265 odr_types_equivalent_p): Declare.
29266 (odr_type_p): Use gcc_checking_assert.
29267 (type_in_anonymous_namespace_p) Declare.
29268 (type_with_linkage_p): Declare.
29269 * common.opt (Wlto-type-mismatch): New warning.
29270 * ipa-devirt.c (compound_type_base): New function.
29271 (odr_or_derived_type_p): New function.
29272 (odr_types_equivalent_p): New function.
29273 (add_type_duplicate): Simplify.
29274 (type_with_linkage_p): Add hack to prevent false positives on C types
29275 (type_in_anonymous_namespace_p): Likewise.
29276 * tree.c (need_assembler_name_p): Use type_with_linkage.
29277 * tree.h (type_in_anonymous_namespace_p): Remove.
29278 * doc/invoke.texi (-Wlto-type-mismatch): Document
29280 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29282 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
29283 (verify_type): Verify STRING_FLAG.
29285 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
29288 * tree-pretty-print.c (percent_K_format): Replace locus pointer
29289 with accessor function.
29290 * tree-diagnostic.c (diagnostic_report_current_function): Use
29291 diagnostic_location function.
29292 (maybe_unwind_expanded_macro_loc): Likewise.
29293 (virt_loc_aware_diagnostic_finalizer): Likewise.
29294 (default_tree_printer): Replace locus pointer with accessor function.
29295 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
29296 (diagnostic_set_info_translated): Initialize second location.
29297 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
29298 (diagnostic_show_locus): Handle two locations. Call
29299 diagnostic_print_caret_line.
29300 (diagnostic_print_caret_line): New.
29301 (default_diagnostic_starter): Use diagnostic_location function.
29302 (diagnostic_report_diagnostic): Use diagnostic_location function.
29303 (verbatim): Do not set text.locus.
29304 * diagnostic.h (struct diagnostic_info): Remove location field.
29305 (struct diagnostic_context): Make caret_chars an array of two.
29306 (diagnostic_location): New inline.
29307 (diagnostic_expand_location): Handle two locations.
29308 (diagnostic_same_line): New inline.
29309 (diagnostic_print_caret_line): Declare.
29310 (CARET_LINE_MARGIN): New constant.
29311 * pretty-print.c (pp_printf): Do not set text.locus.
29312 (pp_verbatim): Do not set text.locus.
29313 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
29314 (struct text_info): Replace locus pointer with locations
29315 array. Add accessor functions.
29317 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
29318 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29321 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
29322 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
29323 large constants in register instead of splitting them.
29325 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
29328 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
29329 replacements in memory addresses.
29330 (get_unaligned_address): Ditto.
29332 2015-05-16 James Bowman <james.bowman@ftdichip.com>
29334 * config/ft32/*: New files for FT32 port.
29335 * doc/install.texi: Add FT32 information.
29336 * doc/invoke.texi: Add FT32 information.
29337 * doc/md.texi: Add FT32 information.
29338 * doc/contrib.texi: Self added.
29340 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
29342 PR tree-optimization/64454
29343 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
29344 (-1 - A -> ~A): Remove unnecessary condition.
29346 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
29348 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
29349 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
29350 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
29352 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
29354 * ipa-chkp.h (chkp_wrap_function): New.
29355 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
29356 (chkp_wrap_function_name): New.
29357 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
29358 to get wrapper name.
29359 * lto-cgraph.c: Include ipa-chkp.h.
29360 (input_cgraph_1): Avoid alias chain for wrappers.
29362 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
29364 PR middle-end/66134
29365 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
29366 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
29368 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29370 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
29371 (AARCH64_FL_SLOWMUL): Delete.
29372 (AARCH64_FL_CRC): Redefine to 1<<3.
29373 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
29375 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29377 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
29380 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
29382 * config/alpha/alpha.md (extendqidi2): Use general_operand
29383 instead of some_operand for operand[1] predicate.
29384 (extendhidi2): Ditto.
29385 (cbranchdi4): Use general_operand instead of some_operand
29386 for operand[1] and operands[2] predicates.
29387 (cstoredi4): Ditto.
29388 * config/alpha/predicates.md (some_operand): Remove unused predicate.
29389 (some_ni_operand): Ditto.
29391 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
29393 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
29394 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
29395 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
29396 low part of the constant using alpha_emit_set_const_1.
29397 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
29399 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
29401 * varasm.c (output_constant_pool_1): Pass down alignment from
29402 constant pool entry's descriptor to output_constant_pool_2.
29403 (output_object_block): Add comment prior to call to
29404 output_constant_pool_1.
29406 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
29408 PR rtl-optimization/65862
29409 * target.def (ira_change_pseudo_allocno_class): New hook.
29410 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
29412 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
29413 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
29415 * ira-costs.c (find_costs_and_classes): Call the hook and change
29416 classes when it is necessary.
29417 * doc/tm.texi: Update.
29419 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
29421 * config/i386/i386.md (sibcall_memory): Check that register with
29422 callee address is not also used as one of the arguments, instead
29423 of checking that it is not live after the sibcall.
29424 (sibcall_pop_memory): Ditto.
29425 (sibcall_value_memory): Ditto.
29426 (sibcall_value_pop_memory): Ditto.
29428 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
29430 * generic-match-head.c (types_match): Handle non-types.
29431 * gimple-match-head.c (types_match): Likewise.
29432 * match.pd: Remove unnecessary TREE_TYPE for types_match.
29434 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
29436 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
29437 (csneg3<mode>_insn): Enable expansion of pattern.
29439 2015-05-14 Nick Clifton <nickc@redhat.com>
29441 * config/rl78/rl78.c (rl78_select_section): Select the correct
29442 default section based upon the category of the decl.
29444 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
29446 PR rtl-optimization/30967
29447 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
29448 destination mode for the cost of scc patterns.
29450 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
29452 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
29453 using SWIM248 mode iterator.
29454 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
29455 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
29456 for operand[2] constraint.
29457 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
29459 2015-05-13 Jakub Jelinek <jakub@redhat.com>
29461 PR middle-end/66133
29462 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
29463 make sure it is never noreturn, even when the task body does not
29465 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
29466 right before GIMPLE_OMP_RETURN.
29467 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
29468 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
29469 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
29471 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29473 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
29474 * tree-ssa-math-opts.c: Include params.h
29475 (pow_synth_sqrt_info): New struct.
29476 (representable_as_half_series_p): New function.
29477 (get_fn_chain): Likewise.
29478 (print_nested_fn): Likewise.
29479 (dump_fractional_sqrt_sequence): Likewise.
29480 (dump_integer_part): Likewise.
29481 (expand_pow_as_sqrts): Likewise.
29482 (gimple_expand_builtin_pow): Use above to attempt to expand
29483 pow as series of square roots. Removed now unused variables.
29485 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
29487 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
29488 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
29489 Remove *p0 and *p1 arguments. Rewrite function.
29490 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
29491 (alpha_split_const_mov): Update calls to alpha_extract_integer and
29492 alpha_emit_set_long_const.
29493 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
29494 (alpha_output_mi_thunk_osf): Ditto.
29495 * config/alpha/alpha.md (movti): Do not check operands[1]
29498 2015-05-13 Richard Biener <rguenther@suse.de>
29500 PR tree-optimization/66129
29501 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
29503 (vect_schedule_slp_instance): Fix typo.
29505 2015-05-13 David Malcolm <dmalcolm@redhat.com>
29507 * common.opt (fdump-internal-locations): New option.
29508 * input.c: Include diagnostic-core.h.
29509 (get_end_location): New function.
29510 (write_digit): New function.
29511 (write_digit_row): New function.
29512 (dump_location_range): New function.
29513 (dump_labelled_location_range): New function.
29514 (dump_location_info): New function.
29515 * input.h (dump_location_info): New prototype.
29516 * toplev.c (compile_file): Handle flag_dump_locations.
29518 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
29520 * gimple-expr.h (is_gimple_constant): Reorder.
29521 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
29523 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
29525 * combine.c (simplify_set): When generating a CC set, if the
29526 source already is in the correct mode, do not wrap it in a
29527 compare. Simplify the rest of that code.
29529 2015-05-13 Richard Biener <rguenther@suse.de>
29531 PR tree-optimization/66123
29532 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
29535 2015-05-13 Richard Biener <rguenther@suse.de>
29537 PR middle-end/66110
29538 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
29540 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
29542 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29544 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
29545 * aclocal.m4: Regenerated with automake-1.11.6.
29547 2015-05-13 Tom de Vries <tom@codesourcery.com>
29549 PR tree-optimization/66010
29550 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
29551 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
29552 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
29553 and rval based on do_deref.
29555 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
29558 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
29559 link time constants into adress expressions and therefore set
29562 2015-05-13 Jakub Jelinek <jakub@redhat.com>
29565 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
29566 Use SWI248 iterator instead of SWI.
29567 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
29568 Use eq_attr "alternative" "0" instead of match_test in
29569 length_immediate attribute computation.
29570 (*mulvhi4, *mulvhi4_1): New define_insns.
29573 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
29574 SIGNED to get precision of non-negative value.
29576 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
29579 * function.c (diddle_return_value_1): Process bounds first.
29580 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
29583 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29585 PR rtl-optimization/64616
29586 * loop-invariant.c (can_move_invariant_reg): New.
29587 (move_invariant_reg): Call above new function to decide whether
29588 instruction can just be moved, skipping creation of temporary
29591 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29593 PR target/pr66047.c
29594 * i386.c (ix86_function_sseregparm): Only return -1 if local function
29595 with implied regparm is called from -mno-sse function.
29596 (init_cumulative_args): Output error if ix86_function_sseregparm
29597 return -1 and SSE register would be needed.
29598 (function_arg_advance_32): Likewise.
29599 (function_arg_32): Likewise.
29600 * i386.h (ix86_args): Add decl field.
29602 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29605 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
29606 inlines across optimization boundary.
29608 2015-05-12 Jason Merrill <jason@redhat.com>
29610 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
29611 string literal and macro name.
29613 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
29615 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
29616 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
29617 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
29619 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29621 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
29622 (-Wmisleading-indentation): New option.
29623 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
29625 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
29627 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
29628 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
29629 (alpha_extract_integer): Ditto.
29630 (alpha_legitimate_constant_p): Ditto.
29631 (alpha_split_tmode_pair): Ditto.
29632 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
29633 (alpha_expand_mov): Ditto.
29634 (print_operand): Remove handling of 'H' modifier.
29635 <case 'm'>: Remove CONST_DOUBLE handling.
29636 (summarize_insn): Handle CONST_WIDE_INT.
29637 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
29639 (movti): Handle CONST_WIDE_INT.
29640 * config/alpha/constraints.md ('H'): Remove constraint definition.
29641 ('G'): Do not match MODE_FLOAT class.
29642 * config/alpha/predicates.md (const0_operand): Also match
29644 (non_add_const_operand): Ditto.
29645 (non_zero_const_operand): Ditto.
29646 (some_operand): Ditto.
29647 (input_operand): Ditto. Handle CONST_WIDE_INT.
29648 (and_operand): Do not match const_double.
29649 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
29651 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
29654 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
29655 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
29656 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
29657 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
29658 is_mm_seq_cst, is_mm_sync): New accessor functions.
29659 * builtins.c (expand_builtin_sync_operation,
29660 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
29661 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
29662 (get_memmodel, expand_builtin_atomic_compare_exchange,
29663 expand_builtin_atomic_load, expand_builtin_atomic_store,
29664 expand_builtin_atomic_clear): Use new accessor routines.
29665 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
29666 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
29667 (maybe_emit_sync_lock_test_and_set): Use new accessors and
29668 MEMMODEL_SYNC_ACQUIRE.
29669 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
29670 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
29671 expand_atomic_store): Use new accessors.
29672 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
29673 * tsan.c (instrument_builtin_call): Update check for memory model beyond
29674 final enum to use MEMMODEL_LAST.
29675 * c-family/c-common.c: Use new accessor for memmodel_base.
29676 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
29678 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
29679 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
29680 mem_thread_fence, *dmb): Likewise.
29681 * config/alpha/alpha.c (alpha_split_compare_and_swap,
29682 alpha_split_compare_and_swap_12): Likewise.
29683 * config/arm/arm.c (arm_expand_compare_and_swap,
29684 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
29685 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
29686 atomic_loaddi): Likewise.
29687 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
29689 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
29690 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
29692 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
29693 atomic_store<mode>, atomic_compare_and_swap<mode>,
29694 atomic_exchange<mode>): Use new accessors.
29695 * config/mips/mips.c (mips_process_sync_loop): Likewise.
29696 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
29697 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
29698 rs6000_post_atomic_barrier): Add new cases.
29699 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
29700 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
29701 (atomic_load<mode>): Add new cases and use new accessors.
29702 (store_quadpti): Add new cases.
29703 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
29705 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
29706 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
29709 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29711 * ipa-devirt.c (type_with_linkage_p): New function.
29712 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
29714 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
29715 (can_be_name_hashed_p): Simplify.
29716 (hash_odr_name): Check that type has linkage before checking if it is
29718 (types_same_for_odr): Likewise.
29719 (odr_name_hasher::equal): Likewise.
29720 (odr_subtypes_equivalent_p): Likewise.
29721 (warn_types_mismatch): Likewise.
29722 (get_odr_type): Likewise.
29723 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
29724 * ipa-utils.h (odr_type_p): Move offline.
29725 * tree.c (need_assembler_name_p): Fix handling of types
29727 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
29729 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29731 * timevar.c (timevar_enable): Delete in favor of...
29732 (g_timer): New global.
29733 (struct timevar_def): Move to timevar.h inside class timer.
29734 (struct timevar_stack_def): Likewise.
29735 (timevars): Delete global in favor of field "m_timevars" within
29736 class timer in timevar.h
29737 (stack): Likewise, in favor of field "m_stack".
29738 (unused_stack_instances): Likewise, in favor of field
29739 "m_unused_stack_instances".
29740 (start_time): Likewise, in favor of field "m_start_time".
29741 (get_time): Eliminate check for timevar_enable.
29742 (timer::timer): New function, built from part of timevar_init.
29743 (timevar_init): Rewrite idempotency test from using
29744 "timevar_enable" bool to using dynamic allocation of "g_timer".
29745 Move rest of implementation into timer's constructor.
29746 (timevar_push_1): Rename to...
29747 (timer::push): ...this, adding "m_" prefixes to variables that
29748 are now fields of timer.
29749 (timevar_pop_1): Likewise, rename to...
29750 (timer::pop): ...this, and add "m_" prefixes.
29751 (timevar_start): Replace test for "timevar_enable" with one for
29752 "g_timer", and move bulk of implementation to...
29753 (timer::start): ...here, adding "m_" prefixes.
29754 (timevar_stop): Likewise, from here...
29755 (timer::stop): ...to here.
29756 (timevar_cond_start): Likewise, from here...
29757 (timer::cond_start): ...to here.
29758 (timevar_cond_stop): Likewise, from here...
29759 (timer::cond_stop): ...to here.
29760 (validate_phases): Rename to...
29761 (timer::validate_phases): ...this, and add "m_" prefixes. Make
29762 locals "total" and "tv" const.
29763 (timevar_print): Rename to...
29764 (timer::print): ...this, and add "m_" prefixes. Make locals
29765 "total" and "tv" const. Eliminate test for timevar_enable.
29766 * timevar.h (timevar_enable): Eliminate.
29767 (g_timer): New declaration.
29768 (timevar_push_1): Eliminate.
29769 (timevar_pop_1): Eliminate.
29770 (timevar_print): Eliminate.
29771 (class timer): New class.
29772 (timevar_push): Rewrite to use g_timer.
29773 (timevar_pop): Likewise.
29774 * toplev.c (toplev::~toplev): Likewise.
29776 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
29778 * arm-protos.h (arm_sched_autopref): Delete.
29779 (tune_params): Re-organize, use enums for flag values.
29780 (FUSE_OPS): New macro.
29781 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
29782 (ARM_PREFETCH_BENEFICIAL): Likewise.
29783 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
29784 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
29785 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
29786 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
29787 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
29788 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
29789 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
29790 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
29792 (arm_option_override, thumb2_reorg, arm_print_tune_info)
29793 (aarch_macro_fusion_pair_p): Update uses of current_tune.
29794 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
29796 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
29798 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
29801 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
29802 Sandra Loosemore <sandra@codesourcery.com>
29804 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
29806 (REG_CLASS_NAMES): Add "IJMP_REGS".
29807 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
29808 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
29809 use new "c" register constraint.
29810 * config/nios2/constraint.md (c): New register constraint
29811 corresponding to IJMP_REGS.
29813 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29815 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
29816 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
29817 define_splits): Delete, revamp, transmogrify into ...
29818 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
29819 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
29820 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
29823 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29825 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
29826 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
29828 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29830 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
29831 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
29832 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
29833 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
29834 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
29835 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
29836 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
29837 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
29838 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
29839 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
29840 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
29841 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
29842 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
29843 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
29844 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
29845 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
29846 and 30 corresponding splitters): Delete.
29848 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29850 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
29853 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29855 * combine.c (recog_for_combine_1): New function, factored out
29856 from recog_for_combine.
29857 (change_zero_ext): New function.
29858 (recog_for_combine): If recog fails, try again with the pattern
29859 modified by change_zero_ext; if that still fails, restore the
29862 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29864 * combine.c (get_undo_marker): New function.
29865 (undo_to_marker): New function, largely factored out from ...
29866 (undo_all): ... this. Adjust.
29868 2015-05-12 Richard Biener <rguenther@suse.de>
29870 PR tree-optimization/66101
29871 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
29872 fixup if we turn a loop exit edge to a fallthru edge.
29874 2015-05-12 Richard Biener <rguenther@suse.de>
29876 PR tree-optimization/37021
29877 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
29878 (SLP_TREE_TWO_OPERATORS): New define.
29879 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
29880 SLP_TREE_TWO_OPERATORS.
29881 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
29883 (vect_build_slp_tree): Adjust.
29884 (vect_analyze_slp_cost_1): Likewise.
29885 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
29886 emitting two vector stmts and mixing the results.
29888 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
29890 * call.c (print_z_candidates): Remove dead code.
29892 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29894 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
29895 and zEC12_simple_fp.
29896 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
29899 2015-05-12 Tom de Vries <tom@codesourcery.com>
29901 PR tree-optimization/66010
29902 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
29904 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
29905 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
29906 va_lists are passed, and remove corresponding handling.
29907 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
29908 do_deref argument to ifn_va_arg.
29909 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
29912 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29915 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
29916 REG before taking its REGNO.
29918 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
29920 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
29921 rsp->sign_bit_copies and rsp->nonzero_bits into ...
29922 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
29923 present to get more accurate information about the number of sign bit
29924 copies and non zero bits.
29926 2015-05-12 Richard Biener <rguenther@suse.de>
29928 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
29929 do not allow unrolling.
29931 2015-05-11 Richard Henderson <rth@redhat.com>
29933 * config/i386/i386-modes.def (CCP): New.
29934 * config/i386/i386.c (put_condition_code): Handle it.
29935 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
29937 2015-05-11 Richard Henderson <rth@redhat.com>
29939 * target.def (md_asm_clobbers): Replace with...
29940 (md_asm_adjust): this.
29941 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
29942 (TARGET_MD_ASM_ADJUST): New.
29943 * tm.texi: Rebuild.
29944 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
29945 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
29946 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
29948 * cfgexpand.c (check_operand_nalternatives): Accept vector of
29949 constraints instead of lists of outputs and inputs.
29950 (expand_asm_stmt): Save and restore input_location around the
29951 body of the function. Move asm data into vectors instead of
29952 building tree lists. Generate cleanup sequences as needed,
29953 rather than waiting til the end. Use new md_asm_adjust hook.
29955 * config/vxworks.c: Include vec.h before target.h.
29956 * gimple.c: Likewise.
29957 * incpath.c: Likewise.
29958 * mode-switching.c: Likewise.
29960 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
29961 (cris_md_asm_adjust): this.
29962 (TARGET_MD_ASM_CLOBBERS): Remove.
29963 (TARGET_MD_ASM_ADJUST): New.
29964 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
29965 (ix86_md_asm_adjust): this.
29966 (TARGET_MD_ASM_CLOBBERS): Remove.
29967 (TARGET_MD_ASM_ADJUST): New.
29968 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
29969 (mn10300_md_asm_adjust): this.
29970 (TARGET_MD_ASM_CLOBBERS): Remove.
29971 (TARGET_MD_ASM_ADJUST): New.
29972 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
29973 (rs6000_md_asm_adjust): this.
29974 (TARGET_MD_ASM_CLOBBERS): Remove.
29975 (TARGET_MD_ASM_ADJUST): New.
29976 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
29977 (visium_md_asm_adjust): this.
29978 (TARGET_MD_ASM_CLOBBERS): Remove.
29979 (TARGET_MD_ASM_ADJUST): New.
29981 2015-05-11 Richard Henderson <rth@redhat.com>
29983 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
29984 if noutputs is zero.
29985 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
29987 * cfgexpand.c (expand_asm_operands): Merge into...
29988 (expand_asm_stmt): ... here.
29990 * cfgexpand.c (expand_asm_operands): Don't call
29991 resolve_asm_operand_names.
29992 * stmt.c (resolve_asm_operand_names): Clarify block comment.
29994 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
29996 * dwarf2out.c (gen_member_die): Sanity check that we access
29997 TYPE_MAIN_VARIANT for TYPE_METHODS.
29998 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
29999 checking TYPE_METHODS.
30000 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
30002 (build_distinct_type_copy): Clear TYPE_METHODS.
30003 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
30004 (verify_type): Allow TYPE_METHODS to be error_mark_node.
30005 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
30007 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
30009 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
30010 (emit_pattern_before_setloc): Likewise.
30012 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
30014 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
30015 for define_peephole2s.
30016 (get_peephole2_pattern): New function.
30017 (main): Use it. Call validate_pattern.
30019 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
30021 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
30022 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
30023 (Last callee saved reg is different for AVR_TINY architecture)
30025 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
30027 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
30028 when looking for memory references.
30030 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
30033 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
30034 via function pointers.
30036 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
30038 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
30039 indirect call by forcing address into a pseudo with -fno-plt.
30040 * common.opt (flag_plt): New option.
30041 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
30042 ([-fno-plt]): Document.
30044 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
30047 * config/rs6000/option-defaults.h: Add space between string literal
30050 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
30052 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
30053 accross ARM targets.
30055 2015-05-11 Christian Bruel <christian.bruel@st.com>
30057 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
30058 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
30060 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
30062 PR rtl-optimization/66076
30063 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
30064 Don't grow the heap array if it is already big enough from a
30065 previous iteration.
30067 2015-05-11 Christian Bruel <christian.bruel@st.com>
30069 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
30070 (is_called_in_ARM_mode): Remove.
30071 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
30072 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
30073 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
30074 arm_declare_function_name.
30076 2015-05-11 Christian Bruel <christian.bruel@st.com>
30078 * config/arm/arm.c (arm_option_override): Reoganized and split into :
30079 (arm_option_params_internal); New function.
30080 (arm_option_check_internal): New function.
30081 (arm_option_override_internal): New function.
30082 (thumb_code, thumb1_code): Remove.
30083 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
30084 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
30085 (thumb_code, thumb1_code): Remove.
30086 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
30088 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
30090 * config/alpha/alpha.c (alpha_emit_set_const_1)
30091 (alpha_emit_set_long_const, alpha_extract_integer)
30092 (alpha_legitimate_constant_p, alpha_split_const_mov)
30093 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
30094 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30095 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
30097 * config/alpha/predicates.md (mode_mask_operand): Do not match
30099 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30100 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
30101 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
30102 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30103 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
30105 2015-05-11 Jakub Jelinek <jakub@redhat.com>
30108 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
30109 default_binds_local_p_2.
30110 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
30111 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
30113 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30115 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
30117 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30119 Patch by Richard Biener
30120 * coverage.c (coverage_obj_init): Delay building of type variant
30121 until the type is finished.
30123 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30125 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
30126 mismatch between C and C++ type; compoare correctly ARG_TYPES
30127 for non-prototypes and output correctly parameter index for METHOD_TYPE.
30128 (odr_types_equivalent_p): Fix wording of warning about attributes;
30129 it is OK to match prototype and non-prototype.
30131 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30133 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
30134 TYPE_ARG_TYPES list.
30135 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
30136 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
30138 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30140 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
30141 * tree.h (is_lang_specific): Constify.
30143 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
30145 PR tree-optimization/64454
30146 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
30149 2015-05-08 Jason Merrill <jason@redhat.com>
30151 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
30152 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
30153 config/darwin.h, config/darwin9.h, config/elfos.h,
30154 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
30155 config/microblaze/microblaze.h, config/mips/mips.h,
30156 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
30157 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
30158 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
30159 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
30160 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
30161 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
30162 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
30163 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
30164 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
30165 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
30166 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
30167 between string literal and macro name.
30169 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30171 * jump.c: Change argument types to rtx_insn *.
30174 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30176 * lra-constraints.c: Change argument type to rtx_insn *.
30178 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30180 * df-problems.c: Change argument type to rtx_insn *.
30182 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30184 * combine.c: Change argument type to rtx_insn *.
30186 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30189 * rtlanal.c: Change argument type to rtx_insn *.
30191 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30193 * sched-deps.c: Change argument types to rtx_insn *.
30194 * sched-int.h: Adjust.
30196 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30198 * dwarf2cfi.c: Change argument type to rtx_insn *.
30200 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30202 * ira.c (decrease_live_ranges_number): Changetype of local
30203 variable to rtx_insn *.
30204 * recog.c: Change argument types to rtx_insn *.
30207 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30209 * reorg.c: Change argument types to rtx_insn *.
30211 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30213 * ira-color.c: Change argument types to rtx_insn *.
30214 * lra-eliminations.c: Likewise.
30217 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30219 * gcse.c: Change argument types to rtx_insn *.
30221 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30223 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
30225 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30227 * emit-rtl.c (emit_debug_insn_before): Change argument type to
30231 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30233 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
30236 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30238 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
30241 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30243 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
30246 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30248 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
30251 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30253 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
30257 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30259 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
30263 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30265 * except.c (can_nonlocal_goto): Change type of argument to
30269 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30271 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
30274 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30276 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
30277 * cfgrtl.c (can_delete_label_p): Adjust.
30280 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30282 * reorg.c (stop_search_p): Change argument to rtx_insn *.
30284 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30286 * except.c (make_reg_eh_region_note): Change argument to
30288 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
30289 * except.h: Adjust.
30291 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30293 * mode-switching.c (commit_mode_sets): Change type of local
30294 variable from rtx to rtx_insn *.
30296 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
30298 * doc/install.texi (--enable-languages): Add missing jit and lto info.
30299 Add ^ to grep command.
30300 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
30301 arg to last gimple_simplify declaration. Add missing gimple_build
30302 declaration for built-in function case with four tree args.
30304 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
30305 Szabolcs Nagy <szabolcs.nagy@arm.com>
30307 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
30308 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
30309 (GNU_USER_DYNAMIC_LINKERN32): Update.
30311 2015-05-08 Richard Biener <rguenther@suse.de>
30313 PR tree-optimization/66036
30314 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
30315 Handle strided group loads.
30316 (vect_verify_datarefs_alignment): Likewise.
30317 (vect_enhance_data_refs_alignment): Likewise.
30318 (vect_analyze_group_access): Likewise.
30319 (vect_analyze_data_ref_access): Likewise.
30320 (vect_analyze_data_ref_accesses): Likewise.
30321 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
30322 (vectorizable_load): Likewise.
30324 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
30326 * config/rs6000/rs6000.md: Require operand inequality in one
30329 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
30330 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
30332 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
30334 * config/rx/rx.md (movdi, movdf): Likewise.
30335 Likewise for define_peephole2s.
30337 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30339 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
30340 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
30341 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
30342 vtst_u64): Rewrite using gcc vector extensions.
30344 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30346 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
30347 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
30349 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30351 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
30353 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
30355 * config/glibc-stdint.h (OPTION_MUSL): Define.
30356 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
30357 Change the definition based on OPTION_MUSL for 64 bit targets.
30358 * config/linux.h (OPTION_MUSL): Redefine.
30359 * config/alpha/linux.h (OPTION_MUSL): Redefine.
30360 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
30361 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
30363 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
30364 Szabolcs Nagy <szabolcs.nagy@arm.com>
30366 * config.gcc (LIBC_MUSL): New tm_defines macro.
30367 * config/linux.h (OPTION_MUSL): Define.
30368 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
30369 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
30370 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30371 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30372 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30373 * config/linux.opt (mmusl): New option.
30374 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
30375 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30376 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30377 * configure: Regenerate.
30379 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
30380 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30383 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
30384 * config/i386/knetbsd-gnu64.h: New file.
30386 2015-05-08 Marek Polacek <polacek@redhat.com>
30389 * doc/invoke.texi: Document -Woverride-init-side-effects.
30391 2015-05-07 Marek Polacek <polacek@redhat.com>
30394 * doc/invoke.texi: Document -Wshift-negative-value.
30396 2015-05-06 Aditya Kumar <hiraditya@msn.com>
30398 * gcov-tool.c (do_merge): Refactore to remove int ret.
30399 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
30400 !type == FUNC to type != FUNC.
30401 * reload.h (struct target_reload): Changee to type of
30402 x_spill_indirect_levels from bool to unsigned char.
30404 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
30406 * rtl.h (always_void_p): New function.
30407 * gengenrtl.c (always_void_p): Likewise.
30408 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
30409 with code foo are always VOIDmode.
30410 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
30411 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
30412 compare-elim.c, config/aarch64/aarch64.c,
30413 config/aarch64/aarch64.md, config/alpha/alpha.c,
30414 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
30415 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
30416 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
30417 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
30418 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
30419 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
30420 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
30421 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
30422 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
30423 config/ia64/vect.md, config/iq2000/iq2000.c,
30424 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
30425 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
30426 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
30427 config/mep/mep.c, config/microblaze/microblaze.c,
30428 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
30429 config/mn10300/mn10300.c, config/msp430/msp430.c,
30430 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
30431 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
30432 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
30433 config/rs6000/altivec.md, config/rs6000/rs6000.c,
30434 config/rs6000/rs6000.md, config/rs6000/vector.md,
30435 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
30436 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
30437 config/sh/sh.md, config/sh/sh_treg_combine.cc,
30438 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
30439 config/spu/spu.md, config/stormy16/stormy16.c,
30440 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
30441 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
30442 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
30443 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
30444 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
30445 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
30446 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
30447 var-tracking.c: Update calls accordingly.
30449 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
30452 PR middle-end/54303
30453 * varasm.c (function_mergeable_rodata_prefix): New function.
30454 (mergeable_string_section): Use it.
30455 (mergeable_constant_section): Use it.
30457 2015-05-07 Jeff Law <law@redhat.com>
30460 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30461 simplifier to narrow arithmetic.
30462 * generic-match-head.c: (types_match, single_use): New functions.
30463 * gimple-match-head.c: (types_match, single_use): New functions.
30465 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30467 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
30470 2015-05-07 Richard Biener <rguenther@suse.de>
30472 PR tree-optimization/66002
30473 * passes.def: Schedule another pass_merge_phi after ifcombine, right
30476 2015-05-07 Marek Polacek <polacek@redhat.com>
30477 Martin Uecker <uecker@eecs.berkeley.edu>
30479 * doc/invoke.texi: Document -fsanitize=bounds-strict.
30480 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
30481 into SANITIZE_NONDEFAULT.
30482 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
30484 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
30487 * config/alpha/alpha.c (alpha_override_options_after_change): New.
30488 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
30489 (alpha_override_options): Move align_loops, align_jumps and
30490 align_functions handling into alpha_override_options_after_change.
30492 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
30493 Chris Jones <chrisj@nvidia.com>
30494 Joshua Conner <jconner@nvidia.com>
30496 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
30497 linking of crtfastmath.o.
30498 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
30500 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
30502 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
30503 (cstore<mode>4_unsigned_imm): New expander.
30504 (cstore<mode>4): Remove empty constraint strings. Use the new
30507 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
30510 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
30513 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
30515 * config/aarch64/geniterators.sh: Use standard BRE in sed.
30517 2015-05-06 Alan Modra <amodra@gmail.com>
30520 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
30521 (UNSPEC_NOP): Define.
30522 (reload_vsx_from_gpr<mode>): Add missing DONE.
30523 (reload_gpr_from_vsx<mode>): Likewise.
30524 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
30525 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
30527 2015-05-06 Christian Bruel <christian.bruel@st.com>
30530 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
30531 align_jumps, align_functions into aarch64_override_options_after_change.
30533 2015-05-06 Richard Biener <rguenther@suse.de>
30535 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
30536 vect_transform_slp_perm_load to check if we support a permutation
30537 for basic-block vectorization.
30539 2015-05-06 Nick Clifton <nickc@redhat.com>
30541 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
30542 used, even if it is not being used as a frame pointer.
30544 2015-05-05 Jason Merrill <jason@redhat.com>
30546 * dwarf2out.c (gen_member_die): Don't emit anything for an
30547 anonymous class constructor.
30549 2015-05-05 David Malcolm <dmalcolm@redhat.com>
30551 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
30552 that it reflects the block structure.
30553 (afdo_propagate_edge): Likewise.
30554 (afdo_calculate_branch_prob): Likewise.
30555 (afdo_annotate_cfg): Likewise.
30556 * cfgcleanup.c (equal_different_set_p): Likewise.
30557 (try_crossjump_to_edge): Likewise.
30558 * cgraph.c (cgraph_node::verify_node): Likewise.
30559 * cgraphunit.c (expand_all_functions): Likewise.
30560 * config/i386/i386.c (ix86_expand_copysign): Likewise.
30561 (exact_dependency_1): Likewise.
30562 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
30563 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
30564 * gensupport.c (process_define_subst): Likewise.
30565 * lto-wrapper.c (merge_and_complain): Likewise.
30566 * tree-if-conv.c (if_convertible_bb_p): Likewise.
30567 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
30568 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
30569 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
30570 * tree-vect-loop.c (vectorizable_reduction): Likewise.
30571 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
30572 * tree-vect-stmts.c (vectorizable_shift): Likewise.
30573 * tree-vrp.c (vrp_finalize): Likewise.
30574 * tree.c (variably_modified_type_p): Likewise.
30576 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
30578 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
30579 on darwin12 and later.
30580 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
30581 file to pass -rdynamic on darwin12 and later.
30582 * config/darwin.opt (rdynamic): Add.
30584 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30586 * doc/extend.texi (C Extensions): Update menu for moved Variable
30587 Attributes and Type Attributes sections.
30589 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30592 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
30593 if rep_8byte stringop strategy was specified for 32-bit target.
30595 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
30598 * config/i386/i386.md (vector convert to float spltiter): Check for
30599 xmm16+, when splitting scalar float conversion.
30600 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
30602 2015-05-05 Nick Clifton <nickc@redhat.com>
30604 * config/msp430/msp430-opts.h (enum msp430_regions): New.
30605 * config/msp430/msp430.c (msp430_override_options): Complain if
30606 -mcode-region or -mdata-region is used on a non MSP430X.
30607 (msp430_section_attr): New function. Checks lower, upper and
30609 (msp430_attribute_table): Add lower, upper and either.
30610 (gen_prefix): New function. Generates a prefix for a section
30612 (msp430_select_section): New function - handles the choice of
30613 section for an object. Takes into account memory region
30614 attributes and options.
30615 (msp430_function_section): Use gen_prefix.
30616 (TARGET_SECTION_TYPE_FLAGS): Define.
30617 (msp430_section_type_flags): New function.
30618 (TARGET_ASM_UNIQUE_SECTION): Define.
30619 (msp430_unique_section): New function.
30620 (msp430_output_aligned_decl_common): New function.
30621 (msp430_do_not_relax_short_jumps): New function.
30622 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
30624 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
30625 * config/msp430/msp430-protos.h
30626 (msp430_do_not_relax_short_jumps): New prototype.
30627 (msp430_output_aligned_decl_common): New prototype.
30628 * config/msp430/msp430.md (length): New attribute.
30629 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
30630 then use a long code sequence for short jumps.
30631 * config/msp430/msp430.opt (mcode-region): New.
30632 (mdata-region): New.
30633 * doc/invoke.texi: Document new options.
30634 * doc/extend.texi: Document new attributes.
30636 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
30638 * config/aarch64-protos.h (struct cpu_branch_cost): New.
30639 (tune_params): Add field branch_costs.
30640 (aarch64_branch_cost): Declare.
30641 * config/aarch64.c (generic_branch_cost): New.
30642 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
30643 (cortexa53_tunings): Likewise.
30644 (cortexa57_tunings): Likewise.
30645 (thunderx_tunings): Likewise.
30646 (xgene1_tunings): Likewise.
30647 (aarch64_branch_cost): Define.
30648 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
30650 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30652 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
30653 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
30654 * config/i386/i386.md: Ditto.
30655 * config/i386/winnt.c: Ditto.
30657 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
30659 * doc/extend.texi (__atomic Builtins): Move implementation details
30660 to the end of the description, rewrite opening paragraphs, state
30661 difference with __sync builtins, state C11/C++11 assumptions,
30662 weaken itemized descriptions, add explanation of memory model
30663 behaviour, expand description of compare-exchange, simplify text.
30665 2015-05-05 Renlin Li <renlin.li@arm.com>
30667 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
30669 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
30671 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
30672 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30673 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
30674 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30675 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
30676 * configure: Regenerate.
30677 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
30678 * doc/install.texi (aarch64*-*-*): Document new
30679 --enable-fix-cortex-a53-843419 option.
30680 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
30681 and -mno-fix-cortex-a53-843419 options.
30683 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30686 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
30688 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
30690 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
30691 fix overactive TYPE_MIN_VALUE check and add FIXME for type
30692 compatibility problems.
30694 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
30696 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
30698 (cbranchsi4_reg): New.
30699 * config/microblaze/microblaze.c
30700 (microblaze_expand_conditional_branch_reg): New.
30701 * config/microblaze/microblaze-protos.h
30702 (microblaze_expand_conditional_branch_reg): New prototype.
30704 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
30706 * config/microblaze/microblaze.md (peephole2): New.
30708 2015-05-04 Jeff Law <law@redhat.com>
30711 2015-05-04 Jeff Law <law@redhat.com>
30713 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30714 simplifier to narrow arithmetic.
30715 * generic-match-head.c: (types_match, single_use): New functions.
30716 * gimple-match-head.c: (types_match, single_use): New functions.
30718 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
30721 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
30722 (split_branches): Likewise.
30724 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
30726 * common.opt (fdelete-null-pointer-checks): Init to -1.
30727 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
30728 override flag_delete_null_pointer_checks default.
30729 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
30730 behavior re address zero. Better document target-specific behavior.
30731 (-fisolate-errneous-paths-dereference): Mention relationship to
30732 -fdelete-null-pointer-checks.
30734 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30736 PR tree-optimization/65984
30737 * ubsan.c: Include tree-cfg.h.
30738 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
30739 stmt_could_throw_p test, rename can_throw variable to ends_bb.
30741 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
30743 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
30744 to CONST_DOUBLE_P predicate.
30745 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
30746 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
30747 allow only operands that satisfy standard_sse_constant_p predicate.
30748 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
30749 to CONST_DOUBLE_P predicate.
30751 2015-05-04 Jeff Law <law@redhat.com>
30753 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30754 simplifier to narrow arithmetic.
30755 * generic-match-head.c: (types_match, single_use): New functions.
30756 * gimple-match-head.c: (types_match, single_use): New functions.
30758 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
30760 * config/arm/arm.c: Restore bootstrap.
30762 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
30764 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
30765 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
30766 as CONST_WIDE_INT, not CONST_DOUBLE.
30767 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
30768 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
30769 (ix86_find_base_term): Do not check for CONST_DOUBLE.
30770 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
30771 (ix86_build_signbit_mask): Rewrite using wide ints.
30772 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
30773 (ix86_rtx_costs): Handle CONST_WIDE_INT.
30774 (find_constant): Ditto.
30775 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
30776 using gen_int_mode.
30777 * config/i386/predicates.md (x86_64_immediate_operand)
30778 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30779 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
30780 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30781 (const0_operand): Also match const_wide_int.
30782 (constm1_operand): Ditto.
30783 (const1_operand): Ditto.
30785 2015-05-04 Richard Biener <rguenther@suse.de>
30787 PR tree-optimization/65965
30788 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
30789 store groups at gaps.
30791 2015-05-04 Richard Biener <rguenther@suse.de>
30793 PR tree-optimization/65935
30794 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
30795 then make sure to apply that swapping to the IL.
30797 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30799 * Makefile.in (PATCHLEVEL_c): New variable.
30800 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
30801 expand the same way as if DEVPHASE_c was non-empty.
30803 2015-05-04 Kai Tietz <ktietz@redhat.com>
30806 * lto-wrapper.c (run_gcc): Open filename
30809 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
30811 * doc/extend.texi (Variable Attributes, Type Attributes): Move
30812 sections up in file, to immediately after the Function Attributes
30815 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
30817 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
30819 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30821 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
30822 (insert_partition_copy_on_edge): Adjust.
30823 (insert_rtx_to_part_on_edge): Likewise.
30824 (insert_part_to_rtx_on_edge): Likewise.
30826 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30828 * function.c (set_return_jump_label): Change type of argument to
30830 * function.h (set_return_jump_label): Adjust.
30832 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30834 * reload.h (struct reg_equivs_t): Change type of init to
30836 * ira.c (fix_reg_equiv_init): Adjust.
30837 * reload1.c (eliminate_regs_1): Likewise.
30838 (init_eliminable_invariants): Likewise.
30840 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30842 * cselib.c (fp_setter_insn): Take a rtx_insn *.
30843 * cselib.h (fp_setter_insn): Adjust.
30845 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30847 * recog.c (struct validate_replace_src_data): Change type of
30848 insn field to rtx_insn *.
30849 (validate_replace_src_group): Change type of argument to rtx_insn *.
30850 * recog.h (validate_replace_src_group): Adjust.
30852 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30854 * haifa-sched.c: Change the type of some variables to rtx_insn *.
30855 * sched-deps.c: Likewise.
30856 * sched-int.h: Likewise.
30857 * sched-rgn.c: Likewise.
30858 * sel-sched.c: Likewise.
30860 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30863 * config/i386/i386.c: Change the type of some arguments to
30865 * config/arm/arm.c: Likewise.
30867 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30869 * lra-constraints.c: Change type of some arguments to rtx_insn *.
30871 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30873 * regcprop.c (kill_autoinc_value): Change type of argument to
30876 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30878 * genrecog.c (print_subroutine): Adjust.
30879 * recog.c (get_bool_attr_mask_uncached): Likewise.
30880 * recog.h (struct recog_data_d): Change the type of insn to
30883 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30885 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
30887 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30889 * df-problems.c (df_set_note): Change type of argument to
30892 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30894 * builtins.c (expand_builtin_trap): Change type of local
30895 variable to rtx_insn *.
30896 (add_sched_insns_for_speculation): Likewise.
30897 (ix86_emit_save_regs): Likewise.
30898 (get_scratch_register_on_entry): Likewise.
30899 (ix86_emit_restore_reg_using_pop): Likewise.
30900 (ix86_emit_leave): Likewise.
30901 (ix86_emit_restore_regs_using_mov): Likewise.
30902 (ix86_expand_epilogue): Likewise.
30904 (rl78_alloc_physical_registers_umul): Likewise.
30905 * cselib.c (discard_useless_locs): Likewise.
30906 (cselib_invalidate_regno): Likewise.
30907 (cselib_invalidate_mem): Likewise.
30908 * function.c (expand_function_start): Likewise.
30909 (emit_use_return_register_into_block): Likewise.
30910 * gcse.c: Likewise.
30911 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
30912 * ifcvt.c (noce_get_alt_condition): Likewise.
30913 * loop-doloop.c (doloop_condition_get): Likewise.
30914 * lra-constraints.c (inherit_in_ebb): Likewise.
30915 * modulo-sched.c (sms_schedule_by_order): Likewise.
30916 * recog.c (next_insn_tests_no_inequality): Likewise.
30917 * reorg.c (emit_delay_sequence): Likewise.
30918 (update_reg_dead_notes): Likewise.
30919 (fix_reg_dead_note): Likewise.
30920 (fill_slots_from_thread): Likewise.
30921 (delete_computation): Likewise.
30923 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
30925 * doc/extend.texi (Variable Attributes): Add menu and proper
30926 @nodes to subsections. Move Microsoft Windows attributes to
30927 their own subsection.
30928 (Type Attributes): Reorganize introduction to remove duplicate
30929 list of attributes. Add menu and proper @nodes to subsections.
30930 Alphabetize the main table of common attributes.
30932 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
30934 * match.pd: New simplification patterns.
30935 (x + (x & 1)) -> ((x + 1) & ~1)
30936 (x & ~(x & y)) -> ((x & ~y))
30937 (x | ~(x | y)) -> ((x | ~y))
30939 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30941 * target.def (attribute_table): Mention that struct attribute_spec
30942 is defined in tree-core.h rather than tree.h
30943 * doc/tm.texi: Regenerate.
30945 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
30947 * genrecog.c (test): Rename to rtx_test. Update rest of file
30950 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
30952 PR translation/65959
30953 * params.h (DEFPARAM): Rename msgid to nocmsgid.
30955 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30957 * config/aarch64/aarch64-protos.h (tune_params):
30958 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
30959 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
30960 Return value depending on target.
30961 (generic_tunings): Initialize new target settings.
30962 (cortexa53_tunings): Likewise.
30963 (cortexa57_tunings): Likewise.
30964 (thunderx_tunings): Likewise.
30965 (xgene1_tunings): Likewise.
30967 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30969 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
30970 Make Cortex-A53 shift costs more accurate.
30972 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30974 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
30977 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30979 * config/aarch64/aarch64.c (aarch64_rtx_costs):
30980 Calculate cost of op0 and op1 in PLUS and MINUS cases.
30982 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30984 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
30985 Add cost of op0 in the compare-with-fpzero case.
30987 2015-04-30 David Malcolm <dmalcolm@redhat.com>
30989 * builtins.c (fold_builtin_1): Remove spurious second
30991 * cgraph.h (symtab_node::get_availability): Likewise.
30992 * opts.c (common_handle_option): Remove spurious second semicolon.
30993 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
30994 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
30996 2015-04-30 Caroline Tice <cmtice@google.com>
30998 PR gcov-profile/65929
30999 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
31000 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
31001 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
31002 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
31003 * doc/tm.texi: Regenerate.
31004 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
31005 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
31006 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
31007 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
31009 2015-04-30 Marek Polacek <polacek@redhat.com>
31011 * varasm.c (handle_cache_entry): Fix logic.
31013 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31015 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
31016 (*extrsi5_insn_uxtw_alt): Likewise.
31017 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
31018 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
31021 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31023 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
31026 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31028 * config/aarch64/aarch64.md
31029 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
31030 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
31031 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
31032 appropriately. Handle alternative EON form.
31034 2015-04-30 Renlin Li <renlin.li@arm.com>
31036 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
31037 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
31039 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
31042 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
31043 -fstrict-aliasing boundaries.
31045 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31047 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
31048 and [SU]MNEGL patterns.
31050 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31052 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
31053 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
31054 combined arithmetic-shift ops. Properly handle all shift and extend
31055 operations that can occur in combination with PLUS/MINUS.
31056 Rename maybe_fma to compound_p.
31057 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
31058 arithmetic and shift operations.
31060 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31062 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
31063 rather than arith_shift cost when costing ADD/MINUS of an
31066 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
31069 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
31072 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
31074 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
31075 are for the same position.
31077 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
31079 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
31081 (vectorize_loops): Use it.
31083 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31085 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
31086 for aggregate types.
31087 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
31088 type to be non_ODR.
31089 * tree.c (need_assembler_name_p): Compute mangled name for
31090 non-fundamental types and integer types.
31092 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
31094 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
31096 * expr.c (expand_expr_real_2): Likewise.
31098 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31100 * tree.c (build_common_builtin_nodes): Do not build
31101 __builtin_alloca_with_align as equivalent of library alloca.
31103 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31105 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
31106 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
31108 * tree.c: Include print-tree.h and ipa-utils.h
31109 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
31110 (free_lang_data_in_cgraph): Call verify_type.
31111 (verify_type_variant): New function.
31112 (verify_type): New function.
31113 * tree.h (verify_type): Declare.
31115 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
31117 * config/mips/mips-cpus.def: (mips4): Change default processor
31118 from PROCESSOR_R8000 to PROCESSOR_R10000.
31120 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
31122 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
31123 la/jalr instead of jal.
31125 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
31128 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
31129 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
31130 (setcc+movzbl peephole2): Check also clobbered reg.
31131 (setcc+andl peephole2): Ditto.
31133 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
31136 * config/nvptx/mkoffload.c (target_ilp32): New variable.
31137 (main): Set it depending on "-foffload-abi=[...]".
31138 (compile_native, main): Use it to pass "-m32" or "-m64" to the
31141 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
31144 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
31145 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
31146 Flip lane index back at assembly time for bigendian.
31148 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
31150 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
31151 * gimplify.c (gimplify_omp_workshare): Use it.
31153 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
31155 * Makefile.in (build/genrecog.o): Depend on inchash.h.
31156 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
31158 * genrecog.c: Rewrite most of the code except for the third page.
31160 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
31162 * inchash.h, inchash.c: Include bconfig.h for build objects.
31163 * Makefile.in (build/inchash.o): New rule.
31165 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
31168 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
31169 number in type attribute expression.
31171 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
31173 * loop-iv.c (canon_condition): Generalize to all types of integer
31176 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
31178 * gimple-walk.c: Prune duplicate or unneeded includes.
31179 (walk_gimple_asm): Only call parse_input_constraint or
31180 parse_output_constraint if their findings are used.
31181 Honour parse_input_constraint and parse_output_constraint
31184 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
31186 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
31188 2015-04-29 Tom de Vries <tom@codesourcery.com>
31190 PR tree-optimization/65893
31191 * passes.def (pass_all_optimizations): Move pass_stdarg to after
31194 2015-04-29 Richard Biener <rguenther@suse.de>
31196 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
31197 compute GROUP_SIZE for basic-block SLP.
31198 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
31199 take into account gaps.
31200 (vect_get_mask_element): Properly reject references to previous
31202 (vect_transform_slp_perm_load): Likewise.
31204 2015-04-29 Christian Bruel <christian.bruel@st.com>
31207 * config/i386/i386.c (ix86_default_align): New function.
31208 (ix86_override_options_after_change): Call ix86_default_align.
31209 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
31210 (ix86_override_options_after_change): New function.
31212 2015-04-28 Jeff Law <law@redhat.com>
31214 * tree-ssa-dom.c (record_equality); Fix comment typos.
31216 2015-04-28 Tom de Vries <tom@codesourcery.com>
31218 PR tree-optimization/65887
31219 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
31221 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
31223 * doc/extend.texi (Declaring Attributes of Functions): Split into
31224 subsections by target. Alphabetize the table of common attributes.
31225 Rewrite some of the introductory text to reflect the new structure.
31226 Update some cross-references to point to the new subsections.
31227 (Attribute Syntax): Put paragraph about "__" naming here. Remove
31228 duplicate copies in the discussion of function, label, and type
31231 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
31234 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
31236 2015-04-28 Jason Merrill <jason@redhat.com>
31239 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
31240 (finalize_type_size): Respect TYPE_USER_ALIGN.
31241 (layout_type) [ARRAY_TYPE]: Likewise.
31243 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
31245 * config/arm/arm.md (*arm_movt): Fix type attribute.
31246 (*cmpsi_shiftsi): Likewise.
31247 (*cmpsi_shiftsi_swp): Likewise.
31248 (*movsicc_insn): Likewise.
31249 (*cond_move): Likewise.
31250 (*if_plus_move): Likewise.
31251 (*if_move_plus): Likewise.
31252 (*if_arith_move): Likewise.
31253 (*if_move_arith): Likewise.
31254 (*if_shift_move): Likewise.
31255 (*if_move_shift): Likewise.
31256 (*arm_movtas_ze): Likewise.
31257 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
31258 redundancy and type attribute.
31259 (*thumb2_movsi_insn): Fix type attribute.
31260 (*thumb2_addsi_short): Likewise.
31261 (thumb2_addsi3_compare0): Likewise.
31262 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
31263 attributes accordingly.
31265 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
31268 * function.c (pad_to_arg_alignment): Add parentheses.
31270 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
31272 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
31273 libgcc/config/frv/elf-lib.h.
31275 2015-04-28 Tom de Vries <tom@codesourcery.com>
31277 * tree-call-cdce.c: Fix example in header comment.
31279 2015-04-28 Richard Biener <rguenther@suse.de>
31281 PR tree-optimization/62283
31282 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
31283 fails fatally and we are vectorizing a basic-block simply
31284 cause the child to be constructed piecewise.
31285 (vect_analyze_slp_cost_1): Adjust.
31286 (vect_detect_hybrid_slp_stmts): Likewise.
31287 (vect_bb_slp_scalar_cost): Likewise.
31288 (vect_get_constant_vectors): For piecewise constructed
31289 constants place them after the last def.
31290 (vect_get_slp_defs): Adjust.
31291 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
31292 externals for basic-block vectorization.
31294 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
31297 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
31299 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
31300 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
31301 (AARCH64_TUNE_FMA_STEERING): Likewise.
31302 * config/aarch64/aarch64-cores.def: Set
31303 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
31304 FMUL/FMADD instructions.
31305 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
31306 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
31307 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
31308 * config/aarch64/cortex-a57-fma-steering.h: New file.
31309 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
31311 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
31313 * gensupport.c (std_preds): Add missing codes to address_operand entry.
31315 2015-04-28 Richard Biener <rguenther@suse.de>
31317 PR tree-optimization/65851
31318 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
31319 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
31320 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
31321 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
31322 (ccp_visit_phi_node): Adjust.
31323 (evaluate_stmt): For simplifications to SSA names return its
31324 lattice value if that isn't VARYING. Return immediately when
31325 simplified to a constant.
31326 (visit_assignment): Adjust.
31327 (ccp_visit_stmt): Likewise.
31329 2015-04-28 Tom de Vries <tom@codesourcery.com>
31331 PR tree-optimization/65818
31332 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
31335 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31337 * calls.c (save_fixed_argument_area): Don't check
31338 ARGS_GROW_DOWNWARD with the preprocessor.
31339 (restore_fixed_argument_area): Likewise.
31340 (mem_overlaps_already_clobbered_arg_p): Likewise.
31341 (check_sibcall_argument_overlap): Likewise.
31342 (expand_call): Likewise.
31343 (emit_library_call_value_1): Likewise.
31344 (store_one_arg): Likewise.
31345 * function.c (assign_parms): Likewise.
31346 (locate_and_pad_parm): Likewise.
31347 (pad_to_arg_alignment): Likewise.
31348 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31350 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31352 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
31353 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
31354 * calls.c (save_fixed_argument_area): Don't chekc if
31355 ARGS_GROW_DOWNWARD is defined.
31356 (restore_fixed_argument_area): Likewise.
31357 (mem_overlaps_already_clobbered_arg_p): Likewise.
31358 (check_sibcall_argument_overlap): Likewise.
31359 (expand_call): Likewise.
31360 (emit_library_call_value_1): Likewise.
31361 (store_one_arg): Likewise.
31362 * function.c (assign_parms): Likewise.
31363 (locate_and_pad_parm): Likewise.
31364 (pad_to_arg_alignment): Likewise.
31365 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31367 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31369 * defaults.h (gen_epilogue): New function.
31370 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
31372 * cfgrtl.c (cfg_layout_finalize): Likewise.
31373 * df-scan.c: Likewise.
31374 * function.c (thread_prologue_and_epilogue_insns): Likewise.
31375 (reposition_prologue_and_epilogue_notes): Likewise.
31376 * reorg.c (find_end_label): Likewise.
31377 * toplev.c: Likewise.
31379 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31381 * bb-reorder.c (HAVE_return): Don't check if its undefined.
31382 * defaults.h (gen_simple_return): New function.
31383 (gen_simple_return): Likewise.
31384 (HAVE_return): Add default definition to false.
31385 (HAVE_simple_return): Likewise.
31386 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
31387 HAVE_return and HAVE_simple_return are defined.
31388 * function.c (gen_return_pattern): Likewise.
31389 (convert_jumps_to_returns): Likewise.
31390 (thread_prologue_and_epilogue_insns): Likewise.
31391 * reorg.c (find_end_label): Likewise.
31392 (dbr_schedule): Likewise.
31393 * shrink-wrap.c: Likewise.
31394 * shrink-wrap.h: Likewise.
31396 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31398 * defaults.h (EPILOGUE_USES): Add default definition of false.
31399 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
31400 * resource.c (init_resource_info): Likewise.
31402 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31404 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
31406 * dwarf2out.c (field_byte_offset): REmove check if
31407 PCC_BITFIELD_TYPE_MATTERS is defined.
31408 * stor-layout.c (layout_decl): Likewise.
31409 (update_alignment_for_field): Likewise.
31410 (place_field): Likewise.
31412 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31414 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
31416 * regrename.c (check_new_reg_p): Remove check if
31417 HARD_REGNO_RENAME_OK is defined.
31418 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
31420 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31422 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
31423 * cse.c (fold_rtx): Likewise.
31424 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
31425 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
31426 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
31427 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
31428 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
31429 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
31430 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
31431 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
31432 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
31433 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
31435 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
31436 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
31437 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
31438 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
31439 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
31440 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
31441 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
31442 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
31443 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
31444 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
31445 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
31446 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
31447 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
31448 * doc/tm.texi: Regenerate.
31449 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
31450 either true or false.
31452 2015-04-27 Jeff Law <law@redhat.com>
31454 PR tree-optimization/65217
31455 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
31456 of them has a single use, make sure it is the LHS of the implied
31459 2015-04-28 Alan Modra <amodra@gmail.com>
31462 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
31463 (offsettable_ok_by_alignment): Use minimum of decl and toc
31464 pointer alignment. Replace dead code with assertion.
31465 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
31466 case if size exceeds toc pointer alignment.
31467 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
31468 (rs6000_emit_move): Likewise.
31469 * configure.ac: Add linker toc pointer alignment check.
31470 * configure: Regenerate.
31471 * config.in: Regenerate.
31473 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
31475 * config.gcc: Add h8300-*-linux.
31476 * config/h8300/linux.h: New.
31477 * config/h8300/t-linux: New.
31478 * config/h8300/h8300.c (h8300_option_override): Normal mode
31479 is not supported for h8300-*-linux.
31480 (h8300_file_start): Target priority change.
31481 (get_shift_alg): Likewise.
31482 (h8300_shift_need_scratch_p): Likewise.
31483 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
31484 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
31486 2015-04-27 Caroline Tice <cmtice@google.com>
31488 * final.c (final_scan_insn): Output cold_function_name as function
31490 * varasm.c (cold_function_name): Make global.
31491 (assemble_start_function): Re-set cold_function_name.
31492 (assemble_end_function): Output cold partition size.
31493 * varasm.h (cold_function_name): Declare global.
31495 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
31497 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
31498 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
31500 (*movxi_internal_avx512f): Ditto.
31501 (define_split): Check for xmm16+, when splitting scalar float_extend.
31502 (*extendsfdf2_mixed): Use "v" constraint.
31503 (define_split): Check for xmm16+, when splitting scalar float_truncate.
31504 (*truncdfsf_fast_sse): Use "v" constraint.
31505 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
31506 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
31507 (define_peephole2): Check for xmm16+, when converting scalar
31509 (define_peephole2): Check for xmm16+, when converting scalar
31511 (*fop_<mode>_comm_mixed): Use "v" constraint.
31512 (*fop_<mode>_comm_sse): Ditto.
31513 (*fop_<mode>_1_mixed): Ditto.
31514 (*sqrt<mode>2_sse): Ditto.
31515 (*ieee_s<ieee_maxmin><mode>3): Ditto.
31517 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31519 * combine.c (simplify_if_then_else): Use std::swap instead
31520 of manually swapping.
31521 (known_cond): Likewise.
31522 (simplify_comparison): Likewise.
31524 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
31527 * config/rs6000/htm.md: Remove all define_expands.
31528 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
31529 UNSPECV_HTM_TABORTWCI): Remove.
31530 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
31531 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
31532 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
31533 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
31534 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
31535 tabortwci_internal): Remove define_insns.
31536 (tabort<wd>c, tabort<wd>ci): New define_insns.
31537 (tabort): Use gpc_reg_operand.
31538 (tcheck): Remove operand.
31539 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
31540 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
31542 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
31543 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
31544 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
31545 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
31546 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
31547 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
31548 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
31549 (tcheck): Remove builtin argument.
31550 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
31552 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
31553 tabortdc and tabortdci builtins when not in 64-bit mode.
31554 Modify code to handle the loss of the HTM define_expands.
31555 Emit code to copy the CR register to TARGET.
31556 (htm_init_builtins): Modify code to handle the loss of the HTM
31558 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
31559 (RS6000_BTC_64BIT): Likewise.
31560 (RS6000_BTC_CR): New macro.
31561 * doc/extend.texi: Update documentation for htm builtins.
31563 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31565 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
31566 of manually swapping.
31567 (simplify_associative_operation): Likewise.
31568 (simplify_binary_operation): Likewise.
31569 (simplify_plus_minus): Likewise.
31570 (simplify_relational_operation): Likewise.
31571 (simplify_ternary_operation): Likewise.
31573 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
31575 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
31576 (xs_hi_nonmemory_operand): Remove error.
31577 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
31578 general_operand rather than xs_hi_general_operand.
31580 2015-04-27 Richard Biener <rguenther@suse.de>
31582 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
31583 (record_equivalences_from_stmt): Valueize rhs.
31584 (record_equality): Canonicalize x and y order via
31585 tree_swap_operands_p. Do not swap operands for same loop depth.
31587 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
31591 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
31592 Add hint how to use own spec file.
31594 2015-04-27 Jakub Jelinek <jakub@redhat.com>
31596 PR tree-optimization/65875
31597 * tree-vrp.c (update_value_range): If in is_new case setting
31598 old_vr to VR_VARYING, also set new_vr to it. Remove
31599 old_vr->type == VR_VARYING test.
31600 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
31601 SSA_PROP_INTERESTING if update_value_range returned true,
31602 but new range is VR_VARYING.
31604 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
31606 * combine.c (sign_extend_short_imm): New.
31607 (set_nonzero_bits_and_sign_copies): Use above new function for sign
31608 extension of src short immediate.
31609 (reg_nonzero_bits_for_combine): Likewise for tem.
31611 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
31613 * stor-layout.c (self_referential_component_ref_p): New predicate.
31614 (copy_self_referential_tree_r): Use it.
31615 (self_referential_size): Punt for simple operations directly involving
31616 self-referential component references.
31617 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
31619 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
31621 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
31623 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
31625 * vec.h (vec): Make splice arguments const. Update definitions
31628 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
31630 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
31633 2015-04-26 Tom de Vries <tom@codesourcery.com>
31635 PR tree-optimization/65826
31636 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
31638 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
31640 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
31641 (*madd3<mode>): Ditto.
31642 (*msub4<mode>): Ditto.
31643 (*msub3<mode>): Ditto.
31644 (*nmadd4<mode>): Ditto.
31645 (*nmadd3<mode>): Ditto.
31646 (*nmadd4<mode>_fastmath): Ditto.
31647 (*nmadd3<mode>_fastmath): Ditto.
31648 (*nmsub4<mode>): Ditto.
31649 (*nmsub3<mode>): Ditto.
31650 (*nmsub4<mode>_fastmath): Ditto.
31651 (*nmsub3<mode>_fastmath): Ditto.
31653 2015-04-24 Jason Merrill <jason@redhat.com>
31656 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
31657 down when building TYPE_CANONICAL.
31658 (build_pointer_type_for_mode): Likewise.
31660 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
31662 * genrecog.c (validate_pattern): Check matching constraint refers
31663 to a lower numbered operand.
31665 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
31668 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
31669 save to independent variables use the Save attribute. This will
31670 allow these options to be modified with the #pragma/attribute
31672 (-mallow-movmisalign): Likewise.
31673 (-mallow-df-permute): Likewise.
31674 (-msched-groups): Likewise.
31675 (-malways-hint): Likewise.
31676 (-malign-branch-targets): Likewise.
31677 (-mvectorize-builtins): Likewise.
31678 (-msave-toc-indirect): Likewise.
31680 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
31681 can be set via the #pragma/attribute target support.
31682 (rs6000_opt_vars): Likewise.
31683 (rs6000_inner_target_options): If VSX was set, also set
31684 -mno-avoid-indexed-addresses.
31686 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31688 * config/arm/iterators.md (shiftable_ops): Rename to...
31689 (SHIFTABLE_OPS): ... This. Update use in comments.
31690 (ior_xor): Rename to...
31691 (IOR_XOR): ... This.
31692 (vqh_ops): Rename to...
31693 (VQH_OPS): ... This.
31694 (vqhs_ops): Rename to...
31695 (VQHS_OPS): ... This.
31696 (rshifts): Rename to...
31697 (RSHIFTS): ... This.
31698 (returns): Rename to...
31699 (RETURNS): ... This.
31700 * config/arm/arm.md: Update uses of the above.
31701 * config/arm/neon.md: Likewise.
31703 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31705 * config.host (case ${host}): Add aarch64*-*-linux case.
31706 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
31707 fields to all the cores.
31708 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
31709 Add MCPU_MTUNE_NATIVE_SPECS.
31710 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
31711 field to all extensions.
31712 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
31713 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
31714 Adjust definition of AARCH64_OPT_EXTENSION.
31715 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
31716 (MCPU_MTUNE_NATIVE_SPECS): Define.
31717 * config/aarch64/driver-aarch64.c: New file.
31718 * config/aarch64/x-arch64: New file.
31719 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
31722 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31723 Wei Mi <wmi@google.com>
31725 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
31726 * config/i386/i386.c (extract_base_offset_in_addr): New function.
31727 (ix86_operands_ok_for_move_multiple): Ditto.
31728 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
31729 (movlpd/movhpd to movupd peephole2): Ditto.
31731 2015-04-24 Marek Polacek <polacek@redhat.com>
31734 * input.h (from_macro_expansion_at): Define.
31737 * doc/invoke.texi: Update description of -Wlogical-op.
31739 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31741 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
31742 ternary operator in fprintf and harmonize spacing.
31744 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31746 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
31747 Mark operand1 commutative.
31749 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31751 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
31752 input operands in memory.
31753 (*vec_concatv2si_sse4_1): Ditto.
31754 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
31755 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
31757 (vec_extract_hi_v32hi): Ditto.
31758 (vec_extract_hi_v64hi): Ditto.
31759 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
31761 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31762 Steven Bosscher <steven@gcc.gnu.org>
31764 PR rtl-optimization/34503
31765 * cprop.c (cprop_reg_p): New.
31766 (hash_scan_set): Use above function to check if register can be
31768 (find_avail_set): Return up to two sets, one whose source is a
31769 register and one whose source is a constant. Sets are returned in an
31770 array passed as parameter rather than as a return value.
31771 (cprop_insn): Use a do while loop rather than a goto. Try each of the
31772 sets returned by find_avail_set, starting with the one whose source is
31773 a constant. Use cprop_reg_p to check if register can be propagated.
31774 (do_local_cprop): Use cprop_reg_p to check if register can be
31776 (implicit_set_cond_p): Likewise.
31778 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31780 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
31781 (sem_function::equals): IGNORED_NODES parameter is now unused;
31782 update call of equals_private.
31783 (sem_function::equals_private): Do not call equals_wpa; skip
31784 gimple body matching if there is no body.
31785 (sem_function::init): Add logic to hash tthunk info.
31786 (sem_function::parse): Also parse thunks.
31787 * ipa-icf.h (equals_private): Update declaration.
31789 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31791 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
31792 asterisk from name so this can be generated directly.
31793 (*altivec_stvx_<mode>_internal): Likewise.
31794 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
31795 that this is never called during or after reload/lra.
31796 (rs6000_frame_related): Remove split_reg
31797 argument and logic that references it.
31798 (emit_frame_save): Remove last parameter from call to
31799 rs6000_frame_related.
31800 (rs6000_emit_prologue): Remove last parameter from eight calls to
31801 rs6000_frame_related. Force generation of stvx instruction for
31802 Altivec register saves. Remove split_reg handling, which is no
31804 (rs6000_emit_epilogue): Force generation of lvx instruction for
31805 Altivec register restores.
31807 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31809 * config/rs6000/rs6000.opt (mcrypto): Change option description to
31810 match category changes in ISA 2.07B.
31812 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31814 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
31816 (cmp_op, cmp_type): New code attributes.
31817 (NEON_VCMP, NEON_VACMP): New int iterators.
31818 (cmp_op_unsp): New int attribute.
31819 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
31820 (neon_vceq<mode>): Delete.
31821 (neon_vc<cmp_op><mode>_insn): New pattern.
31822 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
31823 (neon_vcgeu<mode>): Delete.
31824 (neon_vcle<mode>): Likewise.
31825 (neon_vclt<mode>: Likewise.
31826 (neon_vcage<mode>): Likewise.
31827 (neon_vcagt<mode>): Likewise.
31828 (neon_vca<cmp_op><mode>): New define_expand.
31829 (neon_vca<cmp_op><mode>_insn): New pattern.
31830 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
31832 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31834 * tree.h (attribute_value_equal): Declare.
31835 * tree.c (attribute_value_equal): Export.
31837 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31839 * ipa-icf.c (sem_item::compare_attributes): New function.
31840 (sem_item::compare_referenced_symbol_properties): Compare variable
31842 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
31843 (sem_function::param_used_p): New function.
31844 (sem_function::equals_wpa): Fix attribute comparsion; match
31845 parameter type codes; do not compare paremter flags when
31846 they are not used; compare edge flags; compare indirect calls.
31847 (sem_item::update_hash_by_addr_refs): Hash reference type.
31848 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
31849 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
31850 reference use type.
31851 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
31852 * ipa-icf.h (compare_attributes, param_used_p): Declare.
31854 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31856 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
31858 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
31859 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
31860 (sem_item::compare_referenced_symbol_properties): New.
31861 (sem_item::hash_referenced_symbol_properties): New.
31862 (sem_item::compare_cgraph_references): Rename to ...
31863 (sem_item::compare_symbol_references): ... this one; use
31864 compare_referenced_symbol_properties.
31865 (sem_function::equals_wpa): Do not compare
31866 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
31867 DECL_IS_OPERATOR_NEW; compare pointer sizes.
31868 (sem_item::update_hash_by_addr_refs): Call
31869 hash_referenced_symbol_properties.
31870 (sem_item::update_hash_by_local_refs): Cleanup.
31871 (sem_function::merge): Do not mix up symbol properties.
31872 (sem_variable::equals_wpa): Use compare_symbol_references.
31873 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
31874 (sem_item::hash_referenced_symbol_properties): New.
31875 (sem_item::compare_symbol_references): New.
31876 (sem_item::compare_cgraph_references): Remove.
31878 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
31881 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
31882 Emit size of local.
31884 2015-04-23 Nick Clifton <nickc@redhat.com>
31886 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
31887 ATTRIBUTE_UNUSED to x parameter.
31888 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
31890 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31892 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
31893 TARGET_CRYPTO to TARGET_P8_VECTOR>
31894 (crypto_vpermxor_<mode>): Likewise.
31895 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
31896 (BU_CRYPTO_3A): Likewise.
31897 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
31898 (BU_CRYPTO_OVERLOAD_3A): New #define.
31899 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
31900 (VPMSUMH): Likewise.
31901 (VPMSUMW): Likewise.
31902 (VPMSUMD): Likewise.
31903 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
31904 (VPERMXOR_V4SI): Likewise.
31905 (VPERMXOR_V8HI): Likewise.
31906 (VPERMXOR_V16QI): Likewise.
31907 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
31908 BU_CRYPTO_OVERLOAD_2A.
31909 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
31910 BU_CRYPTO_OVERLOAD_3A.
31911 * config/rs6000/rs6000.opt (mcrypto): Change description of
31914 2015-04-23 Richard Biener <rguenther@suse.de>
31916 * passes.def: Remove copy propagation passes run directly after CCP.
31917 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
31919 (ccp_visit_phi_node): Rework to handle first executable edge
31922 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
31924 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31925 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31926 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31927 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
31928 (thumb_legimitimize_reload_address): Remove.
31929 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
31931 (thumb_legimitimize_reload_address): Remove.
31933 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31935 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
31937 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31939 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
31941 (store_multiple): Likewise.
31943 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31945 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
31946 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
31947 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
31948 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
31949 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
31950 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
31951 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
31952 Specify issue_rate value.
31953 (arm_issue_rate): Look up issue rate from tuning structs. Remove
31954 large switch statement.
31955 (arm_marvell_pj4_tune): New struct.
31956 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
31959 2015-04-23 Richard Biener <rguenther@suse.de>
31961 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
31962 (vect_find_last_store_in_slp_instance): Rename to ...
31963 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
31964 (vect_analyze_slp_cost_1): Use vector_load for constant defs
31965 and vec_construct for external defs when estimating prologue cost.
31966 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
31967 Compute costs here only when vectorizing loops.
31968 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
31969 have been determined.
31970 (vect_schedule_slp_instance): Simplify vectorized code placement
31971 and prepare for in-BB external defs.
31972 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
31973 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
31974 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
31976 (vect_model_load_cost): Likewise.
31977 (vectorizable_store): Instead add it here.
31978 (vectorizable_load): Likewise.
31979 (vect_is_simple_use): Dump def type textually.
31981 2015-04-23 Richard Biener <rguenther@suse.de>
31983 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
31984 * cfgloop.c (verify_loop_structure): Verify the root loop node.
31985 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
31986 instead of get_eh_region_from_lp_number.
31987 * loop-init.c (fix_loop_structure): If we removed a loop, reset
31990 2015-04-23 Anton Blanchard <anton@samba.org>
31992 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
31993 need for -mprofile-kernel to save LR to stack.
31995 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31997 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
31999 (insn_is_swappable_p): Return 1 for a convert from double to
32000 single precision when all of its uses are splats of BE element
32003 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
32005 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
32007 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32010 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
32011 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
32012 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
32014 (rs6000_builtin_mask_for_load): Return 0 for targets with
32015 efficient unaligned VSX accesses so that the vectorizer will use
32016 direct unaligned loads.
32017 (rs6000_builtin_support_vector_misalignment): Always return true
32018 for targets with efficient unaligned VSX accesses.
32019 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
32020 stores on targets with efficient unaligned VSX accesses is almost
32021 always the same as the cost of an aligned load or store, so model
32023 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
32024 unaligned vectors if we have efficient unaligned VSX accesses.
32025 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
32026 undocumented option.
32028 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32031 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
32033 * config.gcc (LIBC_MUSL): New tm_defines macro.
32034 * config/linux.h (OPTION_MUSL): Define.
32035 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32036 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32037 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32039 * config/linux.opt (mmusl): New option.
32040 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32041 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32043 * configure: Regenerate.
32045 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
32047 * config.gcc (LIBC_MUSL): New tm_defines macro.
32048 * config/linux.h (OPTION_MUSL): Define.
32049 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32050 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32051 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32053 * config/linux.opt (mmusl): New option.
32054 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32055 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32057 * configure: Regenerate.
32059 2015-04-22 Yury Gribov <y.gribov@samsung.com>
32061 * doc/invoke.texi (-fsanitize-sections): Update description.
32062 * asan.c (set_sanitized_sections): Parse incoming arg.
32063 (section_sanitized_p): Support wildcards.
32065 2015-04-22 Tom de Vries <tom@codesourcery.com>
32067 PR tree-optimization/65823
32068 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
32069 equality between ap_copy and ap.
32071 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32074 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
32076 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32079 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
32081 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32084 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
32085 remove already contained t-files.
32087 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32089 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
32090 Remove unneeded forward declarations.
32091 (suitable_for_tail_call_opt_p): Commentary typo fix.
32093 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32095 * varasm.c (emit_bss): Remove redundant guard.
32097 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32099 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
32101 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32103 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
32105 2015-04-22 Hale Wang <hale.wang@arm.com>
32106 Terry Guo <terry.guo@arm.com>
32108 PR rtl-optimization/64818
32109 * combine.c (can_combine_p): Don't combine user-specified
32110 register if it is in an asm input.
32112 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
32115 * passes.def (early_optimizations): Add pass_dse.
32117 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32119 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
32120 * reorg.c (redundant_insn): Remove ifdef
32121 INSN_REFERENCES_ARE_DELAYED.
32122 * resource.c (mark_referenced_resources): Likewise.
32124 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32126 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
32127 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
32128 * resource.c (mark_set_resources): Likewise.
32130 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32132 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
32133 * cfgcleanup.c (flow_find_cross_jump): Likewise.
32134 (flow_find_head_matching_sequence): Likewise.
32135 (try_head_merge_bb): Likewise.
32136 * combine.c (can_combine_p): Likewise.
32137 (try_combine): Likewise.
32138 (distribute_notes): Likewise.
32139 * df-problems.c (can_move_insns_across): Likewise.
32140 * final.c (final): Likewise.
32141 * gcse.c (insert_insn_end_basic_block): Likewise.
32142 * ira.c (find_moveable_pseudos): Likewise.
32143 * reorg.c (try_merge_delay_insns): Likewise.
32144 (fill_simple_delay_slots): Likewise.
32145 (fill_slots_from_thread): Likewise.
32146 * sched-deps.c (sched_analyze_2): Likewise.
32148 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32150 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
32151 PIC_OFFSET_TABLE_REGNUM.
32153 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32155 * alias.c (init_alias_target): Remove ifdef
32156 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
32157 * df-scan.c (df_insn_refs_collect): Likewise.
32158 (df_get_regular_block_artificial_uses): Likewise.
32159 (df_get_eh_block_artificial_uses): Likewise.
32160 (df_get_entry_block_def_set): Likewise.
32161 (df_get_exit_block_use_set): Likewise.
32162 * emit-rtl.c (gen_rtx_REG): Likewise.
32163 * ira.c (ira_setup_eliminable_regset): Likewise.
32164 * reginfo.c (init_reg_sets_1): Likewise.
32165 * regrename.c (rename_chains): Likewise.
32166 * reload1.c (reload): Likewise.
32167 (eliminate_regs_in_insn): Likewise.
32168 * resource.c (mark_referenced_resources): Likewise.
32169 (init_resource_info): Likewise.
32171 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32173 * defaults.h (MASK_RETURN_ADDR): New definition.
32174 * except.c (expand_builtin_extract_return_addr): Remove ifdef
32177 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32179 * defaults.h (RETURN_ADDR_OFFSET): New definition.
32180 * except.c (expand_builtin_extract_return_addr): Remove ifdef
32181 RETURN_ADDR_OFFSET.
32182 (expand_builtin_frob_return_addr): Likewise.
32184 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32186 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
32187 (try_redirect_by_replacing_jump): Likewise.
32188 (rtl_tidy_fallthru_edge): Likewise.
32189 * combine.c (insn_a_feeds_b): Likewise.
32190 (find_split_point): Likewise.
32191 (simplify_set): Likewise.
32192 * cprop.c (cprop_jump): Likewise.
32193 * cse.c (cse_extended_basic_block): Likewise.
32194 * df-problems.c (can_move_insns_across): Likewise.
32195 * function.c (emit_use_return_register_into_block): Likewise.
32196 * haifa-sched.c (sched_init): Likewise.
32197 * ira.c (find_moveable_pseudos): Likewise.
32198 * loop-invariant.c (find_invariant_insn): Likewise.
32199 * lra-constraints.c (curr_insn_transform): Likewise.
32200 * postreload.c (reload_combine_recognize_const_pattern):
32202 * reload.c (find_reloads): Likewise.
32203 * reorg.c (delete_scheduled_jump): Likewise.
32204 (steal_delay_list_from_target): Likewise.
32205 (steal_delay_list_from_fallthrough): Likewise.
32206 (redundant_insn): Likewise.
32207 (fill_simple_delay_slots): Likewise.
32208 (fill_slots_from_thread): Likewise.
32209 (delete_computation): Likewise.
32210 * sched-rgn.c (add_branch_dependences): Likewise.
32212 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32214 * genconfig.c (main): Always define HAVE_cc0.
32215 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
32217 * cfgcleanup.c (flow_find_cross_jump): Likewise.
32218 (flow_find_head_matching_sequence): Likewise.
32219 (try_head_merge_bb): Likewise.
32220 * cfgrtl.c (rtl_merge_blocks): Likewise.
32221 (try_redirect_by_replacing_jump): Likewise.
32222 (rtl_tidy_fallthru_edge): Likewise.
32223 * combine.c (do_SUBST_MODE): Likewise.
32224 (insn_a_feeds_b): Likewise.
32225 (combine_instructions): Likewise.
32226 (can_combine_p): Likewise.
32227 (try_combine): Likewise.
32228 (find_split_point): Likewise.
32230 (simplify_set): Likewise.
32231 (distribute_notes): Likewise.
32232 * cprop.c (cprop_jump): Likewise.
32233 * cse.c (cse_extended_basic_block): Likewise.
32234 * df-problems.c (can_move_insns_across): Likewise.
32235 * final.c (final): Likewise.
32236 (final_scan_insn): Likewise.
32237 * function.c (emit_use_return_register_into_block): Likewise.
32238 * gcse.c (insert_insn_end_basic_block): Likewise.
32239 * haifa-sched.c (sched_init): Likewise.
32240 * ira.c (find_moveable_pseudos): Likewise.
32241 * loop-invariant.c (find_invariant_insn): Likewise.
32242 * lra-constraints.c (curr_insn_transform): Likewise.
32243 * optabs.c (prepare_cmp_insn): Likewise.
32244 * postreload.c (reload_combine_recognize_const_pattern):
32246 * reload.c (find_reloads): Likewise.
32247 (find_reloads_address_1): Likewise.
32248 * reorg.c (delete_scheduled_jump): Likewise.
32249 (steal_delay_list_from_target): Likewise.
32250 (steal_delay_list_from_fallthrough): Likewise.
32251 (try_merge_delay_insns): Likewise.
32252 (redundant_insn): Likewise.
32253 (fill_simple_delay_slots): Likewise.
32254 (fill_slots_from_thread): Likewise.
32255 (delete_computation): Likewise.
32256 (relax_delay_slots): Likewise.
32257 * sched-deps.c (sched_analyze_2): Likewise.
32258 * sched-rgn.c (add_branch_dependences): Likewise.
32260 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32262 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
32263 that is trivially ded on non cc0 targets.
32264 (simplify_set): Likewise.
32265 (mark_used_regs_combine): Likewise.
32266 * cse.c (new_basic_block): Likewise.
32267 (fold_rtx): Likewise.
32268 (cse_insn): Likewise.
32269 (cse_extended_basic_block): Likewise.
32270 (set_live_p): Likewise.
32271 * rtlanal.c (canonicalize_condition): Likewise.
32272 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
32274 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32276 * conditions.h: Define macros even if HAVE_cc0 is undefined.
32277 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
32278 * final.c: Likewise.
32279 * jump.c: Likewise.
32280 * recog.c: Likewise.
32281 * recog.h: Declare functions even when HAVE_cc0 is undefined.
32282 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
32284 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32286 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
32287 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
32288 * builtins.c (expand_builtin): Remove check if
32289 EH_RETURN_DATA_REGNO is defined.
32290 * df-scan.c (df_bb_refs_collect): Likewise.
32291 (df_get_exit_block_use_set): Likewise.
32292 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
32293 * ira-lives.c (process_bb_node_lives): Likewise.
32294 * lra-lives.c (process_bb_lives): Likewise.
32296 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
32298 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
32299 FIRST_PSEUDO_REG): New.
32300 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
32301 (ARG_POINTER_REGNUM): Define to ARGP_REG.
32302 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
32303 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
32304 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
32305 (FIRST_INT_REG): New.
32306 (LAST_INT_REG): New.
32307 (FIRST_*_REG): Define using *_REG.
32308 (LAST_*_REG): Ditto.
32309 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
32310 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
32311 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
32313 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32315 * expmed.c: (synth_mult): Only assume overlapping
32316 shift with previous steps in alg_sub_t_m2 case.
32318 2015-04-21 Richard Biener <rguenther@suse.de>
32320 PR tree-optimization/65650
32321 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
32322 transitions involving copies.
32323 (set_lattice_value): Adjust for copy lattice state.
32324 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
32325 if that doesn't dominate the merge point.
32326 (bit_value_unop): Adjust what we treat as varying mask.
32327 (bit_value_binop): Likewise.
32328 (bit_value_assume_aligned): Likewise.
32329 (evaluate_stmt): When we simplified to a SSA name record a copy
32330 instead of dropping to varying.
32331 (visit_assignment): Simplify.
32333 * gimple-match.h (gimple_simplify): Add another callback.
32334 * gimple-fold.c (fold_stmt_1): Adjust caller.
32335 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
32336 for the 2nd callback.
32337 * gimple-match-head.c (gimple_simplify): Add a callback that is
32338 used to valueize the stmt operands and use it that way.
32340 2015-04-21 Richard Biener <rguenther@suse.de>
32342 PR tree-optimization/65788
32343 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
32345 2015-04-21 Richard Biener <rguenther@suse.de>
32347 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
32348 vec_construct cost by vec_stmt_cost.
32350 2015-04-21 Richard Biener <rguenther@suse.de>
32352 * cfghooks.h (create_basic_block): Replace with two overloads
32353 for RTL and GIMPLE.
32354 (split_block): Likewise.
32355 * cfghooks.c (split_block): Rename to ...
32356 (split_block_1): ... this.
32357 (split_block): Add two type-safe overloads for RTL and GIMPLE.
32358 (split_block_after_labels): Call split_block_1.
32359 (create_basic_block): Rename to ...
32360 (create_basic_block_1): ... this.
32361 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
32362 (create_empty_bb): Call create_basic_block_1.
32363 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
32364 split_block_after_labels.
32365 * omp-low.c (expand_parallel_call): Likewise.
32366 (expand_omp_target): Likewise.
32367 (simd_clone_adjust): Likewise.
32368 * tree-chkp.c (chkp_get_entry_block): Likewise.
32369 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
32370 create_basic_block overload.
32371 (cgraph_node::expand_thunk): Likewise.
32372 * tree-cfg.c (make_blocks): Likewise.
32373 (handle_abnormal_edges): Likewise.
32374 * tree-inline.c (copy_bb): Likewise.
32376 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32378 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
32380 (*xor_one_cmplsidi3_ze): Likewise.
32382 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
32384 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
32385 use df_remove_problem rather than manually removing problems, leaving
32386 holes in df->problems_in_order[].
32388 2015-04-21 Tom de Vries <tom@codesourcery.com>
32390 PR tree-optimization/65802
32391 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
32393 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32395 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
32397 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
32398 at '.'. Assert that there's enough space for everything.
32400 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
32402 PR tree-optimization/64950
32404 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
32407 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
32410 2015-04-20 Shiva Chen <shiva0217@gmail.com>
32412 PR rtl-optimization/64916
32413 * cfgcleanup.c (values_equal_p): New function.
32414 (can_replace_by): Use it.
32416 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
32419 * doc/invoke.texi ([-Wnarrowing]): Update.
32421 2015-04-20 Jeff Law <law@redhat.com>
32423 PR tree-optimization/65658
32424 * tree-ssa-threadupdate.c (redirection_block_p): Remove
32425 redundant test for GIMPLE_ASSIGN in last change.
32427 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
32429 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
32430 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
32431 (legitimize_tls_address): Ditto.
32432 (ix86_expand_move): Ditto.
32433 (ix86_expand_binary_operator): Remove reload_in_progress checks.
32434 (ix86_expand_unary_operator): Ditto.
32435 * config/i386/predicates.md (index_register_operand): Ditto.
32437 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
32439 * reorg.c (try_merge_delay_insns): Improve correctness checking
32440 for targets with multiple delay slots.
32442 2015-04-20 Jeff Law <law@redhat.com>
32444 PR tree-optimization/65658
32445 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
32448 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
32450 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
32451 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
32454 2015-04-20 Jakub Jelinek <jakub@redhat.com>
32457 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
32459 2015-04-20 Richard Biener <rguenther@suse.de>
32461 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
32462 * gimple-fold.c (gimple_build_valueize): New function.
32463 (gimple_build): Always use gimple_build_valueize as valueize hook.
32465 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
32468 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
32469 and overwrite variable parts if <= 1/2 the elements are variable.
32471 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
32473 PR rtl-optimization/65805
32474 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
32475 Don't use difference of offset and previous offset if
32476 update_sp_offset is non-zero.
32477 (eliminate_regs_in_insn): Ditto.
32478 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
32479 lra_eliminate_regs_1 call.
32480 * lra-constraints.c (get_equiv_with_elimination): Ditto.
32482 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
32484 * hash-table.h: Remove version of hash_table that stored value_type *.
32485 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
32486 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
32487 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
32488 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
32489 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
32490 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
32491 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
32492 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
32493 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
32494 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
32495 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
32496 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
32497 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
32498 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
32499 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
32500 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
32502 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32503 Jakub Jelinek <jakub@redhat.com>
32506 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
32507 subsequent SH_NONE operand does not overwrite an existing *special
32509 (adjust_extract): Handle case where a vec_extract operation is
32510 wrapped in a PARALLEL.
32512 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
32515 * config/i386/i386.c (ix86_binds_local_p): Define only if
32516 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
32518 2015-04-17 Jeff Law <law@redhat.com>
32520 PR tree-optimization/47679
32521 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
32522 * tree-ssa-scopedtables.c: New file.
32523 * tree-ssa-scopedtables.h: New file.
32524 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
32525 (const_and_copies): Change name/type.
32526 (record_const_or_copy): Move into tree-ssa-scopedtables.c
32527 (record_const_or_copy_1): Similarly.
32528 (restore_vars_to_original_value): Similarly.
32529 (pass_dominator::execute): Create and destroy const_and_copies table.
32530 (thread_across_edge): Update passing of const_and_copies.
32531 (record_temporary_equivalence): Use method calls rather than
32532 manipulating const_and_copies directly.
32533 (record_equality, cprop_into_successor_phis): Similarly.
32534 (dom_opt_dom_walker::before_dom_children): Similarly.
32535 (dom_opt_dom_walker::after_dom_children): Similarly.
32536 (eliminate_redundant_computations): Similarly.
32537 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
32538 (record_temporary_equivalence): Likewise.
32539 (invalidate_equivalences): Likewise.
32540 (record_temporary_equivalences_from_phis): Update due to type
32541 change of const_and_copies. Use method calls rather than
32542 manipulating the stack directly.
32543 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
32544 (thread_through_normal_block, thread_across_edge): Likewise.
32545 (thread_across_edge): Likewise.
32546 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
32547 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
32549 (identify_jump_threads): Update due to type change of equiv_stack.
32550 (finalize_jump_threads): Delete the equiv_stack when complete.
32552 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
32554 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32555 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
32556 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
32558 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
32561 * config.gcc: Exit with a comment when we do not have a major version
32562 number for the FreeBSD target.
32564 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32567 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
32568 maybe_allows_mem bitfields.
32569 (maybe_allows_none_start, maybe_allows_none_end,
32570 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
32571 maybe_allows_mem_end): New variables.
32572 (compute_maybe_allows): New function.
32573 (add_constraint): Use it to initialize maybe_allows_reg and
32574 maybe_allows_mem fields.
32575 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
32576 is_address constraints such that those that allow neither mem nor
32577 reg come first, then those that only allow reg but not mem, then
32578 those that only allow mem but not reg, then the rest.
32579 (write_allows_reg_mem_function): New function.
32580 (write_tm_preds_h): Call it.
32581 * stmt.c (parse_output_constraint, parse_input_constraint): Use
32582 the generated insn_extra_constraint_allows_reg_mem function
32583 instead of always setting *allows_reg = true; *allows_mem = true;
32584 for unknown extra constraints.
32586 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
32589 * output.h (default_binds_local_p_3): New.
32590 * varasm.c (default_binds_local_p_3): Make it public. Take an
32591 argument to indicate if common symbol may be local. If common
32592 symbol may be local, treat non-external variable as defined
32594 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
32595 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
32596 * config/i386/i386.c (ix86_binds_local_p): New.
32597 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
32598 ix86_binds_local_p.
32600 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32603 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
32604 trying mem_loc_descriptor on XEXP (rtl, 0).
32606 2015-04-17 Martin Liska <mliska@suse.cz>
32608 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
32609 Release symbol_compare_collection.
32610 * ipa-reference.c: Add TODO that a vector should be released.
32612 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
32615 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
32616 to new AVR-LibC file layout (bug #44574).
32617 (*avrlibc_devicelib): Same.
32618 * config/avr/avr-mcus.def: Adjust comments.
32619 * config/avr/avr.opt (nodevicelib): Adjust help.
32621 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
32623 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
32625 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
32628 * gimplify.c (gimplify_init_constructor): Always emit a
32629 side-effecting constructor.
32631 2015-04-17 Tom de Vries <tom@codesourcery.com>
32633 PR tree-optimization/64950
32634 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
32635 in cfun->curr_properties.
32636 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
32637 if we generate an IFN_VA_ARG.
32638 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
32639 function if PROP_gimple_lva is not set in src function.
32641 2015-04-17 Tom de Vries <tom@codesourcery.com>
32642 Michael Matz <matz@suse.de>
32644 PR tree-optimization/64950
32645 * gimple-iterator.c (update_modified_stmts): Remove static.
32646 * gimple-iterator.h (update_modified_stmts): Declare.
32647 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
32648 (gimplify_va_arg_internal): New function.
32649 (gimplify_va_arg_expr): Use IFN_VA_ARG.
32650 * gimplify.h (gimplify_va_arg_internal): Declare.
32651 * internal-fn.c (expand_VA_ARG): New unreachable function.
32652 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
32653 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
32654 (expand_ifn_va_arg): New function.
32655 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
32656 (pass_stdarg::execute): Call expand_ifn_va_arg.
32657 (pass_data_lower_vaarg): New pass_data.
32658 (pass_lower_vaarg): New gimple_opt_pass.
32659 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
32660 (make_pass_lower_vaarg): New function.
32661 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
32662 properties_required field.
32663 * passes.def (all_passes): Add pass_lower_vaarg.
32664 * tree-pass.h (PROP_gimple_lva): Add define.
32665 (make_pass_lower_vaarg): Declare.
32667 2015-04-17 Tom de Vries <tom@codesourcery.com>
32669 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
32670 * calls.c (call_expr_flags): Same.
32672 2015-04-17 Tom de Vries <tom@codesourcery.com>
32674 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
32675 (pass_stdarg::execute): ... here.
32677 2015-04-17 Tom de Vries <tom@codesourcery.com>
32678 Michael Matz <matz@suse.de>
32680 * tree-cfg.c (make_blocks_1): Factor out of ...
32681 (make_blocks): ... here.
32682 (make_edges_bb): Factor out of ...
32683 (make_edges): ... here.
32684 (gimple_find_sub_bbs): New function.
32685 * tree-cfg.h (gimple_find_sub_bbs): Declare.
32687 2015-04-17 Tom de Vries <tom@codesourcery.com>
32689 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
32691 2015-04-17 Yury Gribov <y.gribov@samsung.com>
32693 * asan.c (set_sanitized_sections): New function.
32694 (section_sanitized_p): Ditto.
32695 (asan_protect_global): Optionally sanitize user-defined
32697 * asan.h (set_sanitized_sections): Declare new function.
32698 * common.opt (fsanitize-sections): New option.
32699 * doc/invoke.texi (-fsanitize-sections): Document new option.
32700 * opts-global.c (handle_common_deferred_options): Handle new
32703 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32706 * dwarf2out.c (loc_list_from_tree): Return NULL
32707 for DEBUG_EXPR_DECL.
32709 2015-04-17 Christian Bruel <christian.bruel@st.com>
32711 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
32714 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32716 * ira-color.c (setup_left_conflict_sizes_p): Do not process
32717 node itself when computing left conflict subnode size.
32719 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
32721 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
32722 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
32723 *fop_<mode>_1_sse using enabled attribute. Use
32724 register_mixssei387nonimm_operand operand 1 predicate. Change
32725 alternative 3 constraints from "x" to "v".
32727 2015-04-16 Richard Biener <rguenther@suse.de>
32729 PR tree-optimization/65774
32730 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
32731 bit-value tracking on.
32733 2015-04-16 Richard Biener <rguenther@suse.de>
32735 PR tree-optimization/64277
32736 * tree-vrp.c (check_array_ref): Fix anti-range handling,
32737 simplify upper bound handling.
32738 (search_for_addr_array): Simplify.
32739 (check_array_bounds): Handle ADDR_EXPRs here.
32740 (check_all_array_refs): Simplify.
32742 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
32744 * config/i386/i386.c (print_reg): Rewrite function.
32746 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32748 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
32749 Invert the condition.
32751 2015-04-16 Renlin Li <renlin.li@arm.com>
32753 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
32754 simplifications for UNSIGNED_FLOAT.
32756 2015-04-16 Nick Clifton <nickc@redhat.com>
32758 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
32760 (enum rl78_cpu_type): New.
32761 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
32762 (umulhi3_shift_virt): Remove m constraint from operand 1.
32763 (umulqihi3_virt): Likewise.
32764 * config/rl78/rl78.c (rl78_option_override): Add code to process
32765 -mcpu and -mmul options.
32766 (rl78_alloc_physical_registers): Add code to handle divhi and
32767 divsi valloc attributes.
32768 (set_origin): Likewise.
32769 * config/rl78/rl78.h (RL78_MUL_G14): Define.
32770 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
32771 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
32773 (ASM_SPEC): Pass -mcpu on to assembler.
32774 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
32775 (mulqi3_rl78): Likewise.
32776 (mulhi3_g13): Likewise.
32777 (mulhi3): Generate the G13 or G14 versions of the insn directly.
32778 (mulsi3): Likewise.
32779 (mulhi3_g14): Add clobbers of AX and BC.
32780 (mulsi3_g14): Likewise.
32781 (mulsi3_g13): Likewise.
32782 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
32783 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
32784 * config/rl78/rl78.opt (mmul): Initialise value to
32786 (mcpu): New option.
32787 (m13, m14, mrl78): New option aliases.
32788 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
32789 (MULTILIB_DIRNAMES): Add g13 and g14.
32790 * doc/invoke.texi: Document -mcpu and -mmul options.
32792 2015-04-16 Richard Biener <rguenther@suse.de>
32794 * tree-ssa-ccp.c (likely_value): See if we have operands that
32795 are marked as never simulate again and return CONSTANT in this
32797 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
32798 not have any operands that will be simulated again as
32799 not being simulated again.
32801 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
32803 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
32804 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
32805 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
32807 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
32809 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
32810 *float<SWI48:mode><MODEF:mode>2_sse.
32811 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
32813 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
32816 2015-04-15 Tom de Vries <tom@codesourcery.com>
32819 * function.c (push_dummy_function): New function.
32820 (init_dummy_function_start): Use push_dummy_function.
32821 (pop_dummy_function): New function. Factored out of ...
32822 (expand_dummy_function_end): ... here.
32823 * function.h (push_dummy_function, pop_dummy_function): Declare.
32824 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
32825 pop_dummy_function.
32826 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
32828 2015-04-15 Jeff Law <law@redhat.com>
32830 PR tree-optimization/47679
32831 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
32832 need for forward declaration in upcoming changes.
32833 (record_conditions, record_edge_info): Likewise.
32835 PR rtl-optimization/42522
32836 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
32837 SIGN_EXTRACT as a whole object rather than simplifying
32840 2015-04-15 Jakub Jelinek <jakub@redhat.com>
32843 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
32844 and GIMPLE_PREDICT use break instead of return true. For
32845 GIMPLE_EH_DISPATCH, compare dispatch region.
32847 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
32849 * doc/extend.texi (__sync Builtins): Simplify some text. Update
32850 details about the implementation. Make clear preference for
32851 __atomic builtins. Reduce possibility of future change.
32853 2015-04-15 Nick Clifton <nickc@redhat.com>
32855 * config/rx/rx.opt (mallow-string-insns): New option.
32856 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
32857 builtin if string instructions are denied.
32858 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
32859 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
32861 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
32862 * config/rx/rx.md (movstr): Enable pattern only if string
32863 instructions are allowed.
32864 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
32865 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
32866 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
32867 (MULTILIB_DIRNAMES): Add no-strings.
32868 * doc/invoke.texi: Document -mno-allow-string-insns.
32870 2015-04-15 Alan Modra <amodra@gmail.com>
32874 PR middle-end/36043
32875 * calls.c (load_register_parameters): Don't load past end of
32876 mem unless suitably aligned.
32878 2015-04-15 Nick Clifton <nickc@redhat.com>
32880 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
32881 decrement instruction as being frame related.
32882 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
32884 If zero extending a function address enclose the operation in
32886 (rl78_preferred_reload_class): New function.
32887 (TARGET_PREFERRED_RELOAD_CLASS): Define.
32888 * config/rl78/rl78.md: Remove useless constraints in expanders.
32889 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
32890 (mulhi3_rl78): Likewise.
32891 (mulhi3_g13): Likewise.
32892 (mulsi3_rl78): Likewise.
32893 (es_addr): Move to before the multiply patterns.
32895 2015-04-15 Alan Modra <amodra@gmail.com>
32897 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
32898 and sequence_stack. Add seq.
32899 (seq_stack): Delete.
32900 * function.c (prepare_function_start): Don't access x_last_insn.
32901 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
32902 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
32903 * emit_rtl.c (start_sequence, push_topmost_sequence,
32904 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
32905 sequence accessors.
32906 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
32907 remove_insn): Likewise. Simplify.
32908 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
32909 and pop_topmost_sequence.
32910 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
32912 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
32914 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
32917 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
32920 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
32922 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
32923 (LEGACY_INT_REGNO_P): Ditto.
32924 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
32925 (ANY_MASK_REG_P): Remove.
32926 (BND_REG_P): Rename from ANY_BND_REG_P.
32927 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
32928 legacy integer registers. Do not handle MMX_REG_P in a special way.
32929 Merge 64byte and 32byte SSE handling.
32931 2015-04-14 Nick Clifton <nickc@redhat.com>
32933 * expr.c (expand_assignment): Force an address offset computation
32934 into a register before changing its mode.
32935 (expand_expr_real_1): Likewise.
32937 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
32939 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
32940 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
32941 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
32942 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
32943 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
32944 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
32945 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
32946 and __aarch64_vget_lane_any.
32948 2015-04-14 Jakub Jelinek <jakub@redhat.com>
32950 PR rtl-optimization/65761
32951 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
32952 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
32954 2015-04-14 Richard Biener <rguenther@suse.de>
32956 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
32957 (graphite_can_represent_scev): Use POINTER_TYPE_P.
32959 2015-04-14 Richard Biener <rguenther@suse.de>
32961 PR tree-optimization/65758
32962 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
32964 (ccp_lattice_meet): Likewise.
32965 (bit_value_unop): Likewise.
32966 (bit_value_binop): Likewise.
32967 (bit_value_assume_aligned): Likewise.
32969 2015-04-14 Christian Bruel <christian.bruel@st.com>
32971 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
32974 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
32976 PR tree-optimization/63387
32977 * match.pd ((x unord x) | (y unord y) -> (x unord y),
32978 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
32980 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
32982 * config/i386/predicates.md (any_QIreg_operand): Rename from
32983 q_regs_operand. Do not process subregs.
32984 (QIreg_operand): Use QI_REGNO_P predicate.
32985 (ext_QIreg_operand): Ditto.
32986 (ext_register_operand): Ditto.
32987 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
32988 (AND splitters): Ditto.
32989 (AND with -65536 splitter): Add SWI48 mode for operand 0.
32990 (AND with -256 splitter): Use any_QIreg_operand predicate and
32991 SWI248 mode for operand 0.
32992 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
32993 mode for operand 0.
32994 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
32996 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
32998 * doc/plugins.texi: Rewrite first introductory paragraph.
33000 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33002 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
33003 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
33005 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33007 * ipa-profie.c (ipa_profile): Check number of parameters
33008 and possible polymorphic call targets before
33011 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
33013 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
33014 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
33016 2015-04-13 Richard Biener <rguenther@suse.de>
33018 PR tree-optimization/65204
33019 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
33020 takens for bit-CCP.
33022 2015-04-13 Richard Biener <rguenther@suse.de>
33025 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
33026 and cond_not_taken_branch_cost to 4 and 2.
33027 (bdver2_cost): Likewise.
33028 (bdver3_cost): Likewise.
33029 (bdver4_cost): Likewise.
33031 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33033 * hash-table.h (hash_table constructor): Add mem stats.
33034 (alloc_entries): Likewise.
33036 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33038 * ipa-cp.c (ipcp_driver): Relase prev_edge.
33039 * passes.c (execute_one_pass): Only add transform if pass has one.
33041 2015-04-12 Joseph Myers <joseph@codesourcery.com>
33043 * config/i386/i386.c (ix86_option_override_internal): Don't set
33044 -fprefetch-loop-arrays if optimizing for size.
33046 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33047 Gerald Pfeifer <gerald@pfeifer.com>
33049 * doc/contrib.texi (Contributors): Add Martin Jambor and
33052 2015-04-12 Jakub Jelinek <jakub@redhat.com>
33054 * BASE-VER: Set to 6.0.0.
33056 PR tree-optimization/65747
33057 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
33058 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
33060 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
33062 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
33063 sentence. Improve grammar.
33065 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
33067 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
33069 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
33072 * ipa-inline-transform.c (speculation_removed): Remove static var.
33073 (check_speculations): New function.
33074 (clone_inlined_nodes): Do not check spculations.
33075 (inline_call): Call check_speculations.
33076 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
33077 consider non-invariants.
33079 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
33080 Martin Liska <mliska@suse.cz>
33083 * ipa-icf.c (sem_item::compare_cgraph_references): function and
33084 variable can not match.
33085 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
33086 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
33088 2015-04-11 Jakub Jelinek <jakub@redhat.com>
33090 PR tree-optimization/65735
33091 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
33092 Remove visited_phis argument, add visited_bbs, avoid recursing into the
33093 same bb rather than just into the same phi node.
33094 (thread_through_normal_block): Adjust caller.
33096 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
33098 * doc/contrib.texi (Contributors): Add Ira Rosen.
33100 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
33102 * gcov.c (find_source): Fix miswording in error message.
33103 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
33104 (ix86_expand_sse_comi_round): Fix typo in error message.
33106 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
33108 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
33110 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
33112 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
33114 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
33117 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
33118 Print bad_spills_num and insn_pseudos_num.
33120 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33123 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
33124 when creating +1 values for SImode.
33126 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
33129 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
33132 2015-04-10 Jakub Jelinek <jakub@redhat.com>
33133 Iain Sandoe <iain@codesourcery.com>
33136 * configure: Regenerate.
33138 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
33141 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
33143 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
33145 * doc/contrib.texi (Contributors): Add John Marino.
33147 2015-04-09 Jakub Jelinek <jakub@redhat.com>
33149 PR tree-optimization/65709
33150 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
33151 TREE_TYPE (TREE_TYPE (t)).
33153 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
33156 * lra-int.h (lra_bad_spill_regno_start): New.
33157 * lra.c (lra_bad_spill_regno_start): New.
33158 (lra): Set up lra_bad_spill_regno_start. Set up
33159 lra_constraint_new_regno_start unconditionally.
33160 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
33163 2015-04-09 Marek Polacek <polacek@redhat.com>
33164 Jakub Jelinek <jakub@redhat.com>
33166 PR middle-end/65554
33167 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
33168 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
33171 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
33173 PR rtl-optimization/65693
33174 * combine.c (is_parallel_of_n_reg_sets): Move outside of
33177 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
33180 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
33181 device specs file if "device-specs%s" didn't resolve to a path.
33183 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
33186 * config/i386/i386.c (fixup_modeless_constant): New.
33187 (ix86_expand_args_builtin): Fixup modeless constant operand.
33188 (ix86_expand_round_builtin): Ditto.
33189 (ix86_expand_special_args_builtin): Ditto.
33190 (ix86_expand_builtin): Ditto.
33192 2015-04-09 Jakub Jelinek <jakub@redhat.com>
33195 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
33196 any pow2 integer in between 2 and 0x80000000U inclusive.
33198 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
33200 PR rtl-optimization/65693
33201 * combine.c (is_parallel_of_n_reg_sets): Change first argument
33202 from an rtx_insn * to an rtx.
33203 (try_combine): Adjust both callers. Use it once more.
33205 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33207 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
33208 (chkp_make_static_const_bounds): Search existing
33209 symbol by assembler name. Use make_decl_one_only.
33210 (chkp_get_zero_bounds_var): Remove node search which
33211 is now performed in chkp_make_static_const_bounds.
33212 (chkp_get_none_bounds_var): Likewise.
33214 2015-04-08 Michael Witten <mfwitten@gmail.com>
33216 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
33219 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33221 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
33223 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
33225 * doc/extend.texi (__sync Builtins): Fix grammar.
33227 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33229 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
33231 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33233 * varasm.c (emit_local): Move definition of align.
33235 2015-04-08 Julian Brown <julian@codesourcery.com>
33237 * config/nvptx/mkoffload.c (process): Support variable mapping.
33239 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
33241 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
33243 (alpha_write_one_linkage): Correct typo.
33245 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33247 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
33249 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
33251 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
33253 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33255 * tree-chkp.h (chkp_insert_retbnd_call): New.
33256 * tree-chkp.c (chkp_insert_retbnd_call): New.
33257 * ipa-split.c (insert_bndret_call_after): Remove.
33258 (split_function): Use chkp_insert_retbnd_call.
33259 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
33260 bounds for instrumented functions.
33262 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
33265 * calls.c (initialize_argument_information): When producing tail
33266 call also turn SSA_NAMES passed by references to original PARM_DECLs
33268 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
33271 * lra-remat.c (do_remat): Process input and non-input insn
33272 registers separately.
33274 2015-04-07 Jakub Jelinek <jakub@redhat.com>
33277 * valtrack.c (debug_lowpart_subreg): New function.
33278 (dead_debug_insert_temp): Use it.
33280 PR middle-end/65680
33281 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
33282 into signed HOST_WIDE_INT the same as negative bit_offset.
33284 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
33286 * ipa-comdats.c (ipa_comdats): Visit all thunks
33287 to set proper comdat group.
33289 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33292 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
33293 on constants for NEON VSTRUCT modes.
33295 2015-04-07 Jakub Jelinek <jakub@redhat.com>
33296 Iain Sandoe <iain@codesourcery.com>
33299 * configure: Regenerate.
33301 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
33304 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
33305 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
33306 that LFD is used to load double constants instead of LFS. Add
33307 defaults for all costs structures. Add comments for missing
33308 initialization fields.
33309 (size32_cost): Likewise.
33310 (size64_cost): Likewise.
33311 (rs64a_cost): Likewise.
33312 (mpccore_cost): Likewise.
33313 (ppc403_cost): Likewise.
33314 (ppc405_cost): Likewise.
33315 (ppc440_cost): Likewise.
33316 (ppc476_cost): Likewise.
33317 (ppc601_cost): Likewise.
33318 (ppc603_cost): Likewise.
33319 (ppc604_cost): Likewise.
33320 (ppc604e_cost): Likewise.
33321 (ppc620_cost): Likewise.
33322 (ppc630_cost): Likewise.
33323 (ppccell_cost): Likewise.
33324 (ppc750_cost): Likewise.
33325 (ppc7450_cost): Likewise.
33326 (ppc8540_cost): Likewise.
33327 (ppce300c2c3_cost): Likewise.
33328 (ppce500mc_cost): Likewise.
33329 (ppce500mc64_cost): Likewise.
33330 (ppce5500_cost): Likewise.
33331 (ppce6500_cost): Likewise.
33332 (titan_cost): Likewise.
33333 (power4_cost): Likewise.
33334 (power6_cost): Likewise.
33335 (power7_cost): Likewise.
33336 (power8_cost): Likewise.
33337 (ppca2_cost): Likewise.
33338 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
33340 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
33341 instead of XXLOR to copy SFmode to clear out dirty bits created
33342 when SFmode denormals are generated.
33343 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
33344 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
33346 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
33348 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
33349 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
33350 * config/aarch64/aarch64-tune.md: Regenerate.
33352 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
33354 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
33355 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
33356 * config/arm/arm-cores.def (exynos-m1): New core.
33357 * config/arm/arm-tune.md: Regenerate.
33358 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
33359 * config/arm/bpabi.h: Likewise.
33361 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
33363 * ipa-cp (set_single_call_flag): Remove too
33364 restrictive assert.
33366 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
33368 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
33369 GOMP_offload_unregister from the destructor.
33371 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
33373 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
33374 flags for instrumentation thunk.
33375 (chkp_produce_thunks): Likewise.
33377 2015-04-05 Martin Liska <mliska@suse.cz>
33380 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
33381 has computed data structure.
33382 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33384 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
33386 * invoke.texi (inline-unit-growth): Increase growth to 20%
33387 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
33389 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
33392 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
33394 (lra_rematerialization_iter): New.
33395 * lra.c (lra): Initialize lra_rematerialization_iter.
33396 Stop updating lra_constraint_new_regno_start after switching of
33397 inheritance and rematerialization.
33398 * lra-remat.c (lra_rematerialization_iter): New.
33399 (lra_remat): Add printing pass iteration. Do rematerialization
33400 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
33402 2015-04-04 Richard Biener <rguenther@suse.de>
33404 PR tree-optimization/64909
33405 PR tree-optimization/65660
33406 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
33407 to take a cost vector for scalar iteration cost.
33408 (vect_get_single_scalar_iteration_cost): Likewise.
33409 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
33410 Compute the scalar iteration cost into a cost vector.
33411 (vect_get_known_peeling_cost): Use the scalar cost vector to
33412 account for the cost of the peeled iterations.
33413 (vect_estimate_min_profitable_iters): Likewise.
33414 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
33417 2015-04-04 Alan Modra <amodra@gmail.com>
33421 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
33422 0.0 constant unless TARGET_VSX.
33423 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
33426 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33429 * ipa-inline-transform.c (inline_call): Skip sanity check to work
33432 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33435 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
33436 speculative indirect edges to avoid ordering issue.
33438 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33441 * ipa-inline.c (edge_badness): Add combined size to the denominator.
33443 2015-04-03 Jakub Jelinek <jakub@redhat.com>
33445 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
33446 TYPE_ARTIFICIAL on the .omp_data* types.
33448 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33450 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
33451 instrumentation thunks.
33453 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33455 * config/i386/i386.c (ix86_expand_call): Avoid nested
33456 PARALLEL in returned call value.
33458 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33460 * lto-cgraph.c (input_cgraph_1): Always link instrumented
33461 assembler name with original one.
33463 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33465 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
33467 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33469 Revert parts of r216820.
33470 * config/i386/i386.md (movqi_internal): Correct type calculation
33471 for alternatives 3 and 5.
33473 2015-04-02 Jakub Jelinek <jakub@redhat.com>
33475 PR preprocessor/61977
33476 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
33477 predefine __vector/__bool/__pixel macros nor context sensitive
33478 macros for CLK_ASM.
33479 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
33481 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
33483 * config/pa/pa.c (pa_output_move_double): Directly handle register
33484 indexed memory operand. Simplify handling of scaled register indexed
33487 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33490 * config/i386/linux-common.h (MPX_SPEC): New.
33491 (CHKP_SPEC): Add MPX_SPEC.
33492 * doc/invoke.texi (-fcheck-pointer-boudns): Document
33493 possible issues with '-z bndplt' support in linker.
33495 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33497 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
33498 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
33499 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
33500 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
33501 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
33503 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
33505 * config/i386/sync.md (UNSPEC_MOVA): Remove.
33506 (atomic_load<mode>): Change operand 0 predicate to
33507 nonimmediate_operand and fix up the destination when needed.
33509 (atomic_loaddi_fpu): Use UNSPEC_LDA.
33510 (atomic_store<mode>): Change operand 1 predicate to
33511 nonimmendate_operand and move the source to register when needed.
33513 (atomic_store<mode>_1): Use UNSPEC_STA.
33514 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
33515 Fix moves from memory operand. Use UNSPEC_STA.
33517 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
33519 * expmed.c (strict_volatile_bitfield_p): Check that the access will
33520 not cross a MODESIZE boundary.
33521 (store_bit_field, extract_bit_field): Added assertions in the
33522 strict volatile bitfields code path.
33524 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
33527 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
33528 Increase args array size by one to avoid buffer overflow.
33530 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
33532 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
33534 * ipa-inline.c (edge_badness): Add wrapper penalty.
33535 (sum_callers): Move up.
33536 (inline_small_functions): Set single_caller.
33537 * ipa-inline.h (inline_summary): Add single_caller.
33538 * ipa-split.c (split_function): Set split_part.
33539 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
33540 * cgraph.h (cgraph_node): Add split_part.
33542 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
33545 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
33546 Do not split operands 0 and operands 2 to halfmode.
33547 (atomic_compare_and_swap<mode>): Update for
33548 atomic_compare_and_swap<dwi>_doubleword changes.
33550 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
33552 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
33553 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
33554 no caching is done.
33556 2015-03-31 Martin Liska <mliska@suse.cz>
33559 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
33560 has already filled up function summary.
33561 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33563 2015-03-31 Richard Biener <rguenther@suse.de>
33565 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
33568 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
33570 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
33572 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
33573 (s390_asm_output_function_label): Adapt to new signature of
33574 s390_function_num_hotpatch_hw
33575 Optimise the code generating assembler output.
33576 Add comments to assembler file.
33578 2015-03-31 Richard Biener <rguenther@suse.de>
33580 PR middle-end/65626
33581 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
33582 of the noreturn call so it is last and cleanup_control_flow_bb
33583 can do the CFG part.
33585 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
33588 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
33589 same_comdat_group for external symbols.
33590 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
33591 infinite same_comdat_group traversal loop.
33593 2015-03-31 Jakub Jelinek <jakub@redhat.com>
33596 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
33597 automatically to $headers.
33599 2015-03-30 Jakub Jelinek <jakub@redhat.com>
33602 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
33603 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
33605 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
33607 * ipa-prop.c (param_type_may_change_p): Likewise.
33608 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
33609 (remove_unused_scope_block_p): Add in_ctor_dtor_block
33610 argument. Before inlining, preserve
33611 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
33612 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
33614 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
33616 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33619 * ipa-inline.c (edge_badness): Base denominator on callee's
33622 2015-03-27 Martin Jambor <mjambor@suse.cz>
33625 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
33626 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
33627 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
33628 node_calling_single_call.
33629 * ipa-cp.c (count_callers): New function.
33630 (set_single_call_flag): Likewise.
33631 (initialize_node_lattices): Count callers and set single_flag_call if
33633 (incorporate_penalties): New function.
33634 (good_cloning_opportunity_p): Use it, dump new flags.
33635 (propagate_constants_topo): Set node_within_scc flag if appropriate.
33636 * doc/invoke.texi (ipa-cp-recursion-penalty,
33637 ipa-cp-single-call-pentalty): Document.
33639 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33642 * symtab.c (symtab_node::get_partitioning_class): Register vars
33644 * varpool.c (symbol_table::output_variables) Do not assemble unefined
33645 decls for non-symbols.
33647 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
33650 * output.h (default_binds_local_p_2): New.
33651 * varasm.c (default_binds_local_p_2): Renamed to ...
33652 (default_binds_local_p_3): This. Don't return true on protected
33653 data symbol if protected data may be external.
33654 (default_binds_local_p): Use default_binds_local_p_3.
33655 (default_binds_local_p_1): Likewise.
33656 (default_binds_local_p_2): New.
33657 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
33658 default_binds_local_p_2 if TARGET_MACHO is undefined.
33660 2015-03-27 Jakub Jelinek <jakub@redhat.com>
33663 * config/i386/i386.c (legitimize_pic_address): If base
33664 is SYMBOL_REF or LABEL_REF using %rip addressing, force
33665 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
33667 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33670 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
33673 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33676 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
33677 of optimized out indirect call.
33678 (redirect_to_unreachable): Always build symbol table node for
33679 BUILT_IN_UNREACHABLE
33681 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
33684 * ira-costs.c (record_reg_classes): Process all constraint string
33687 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
33689 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
33693 * config/c6x/constraints.md (S3): New constraint.
33694 * config/c6x/c6x.md (real_jump): Use it.
33696 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33698 PR middle-end/65595
33699 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
33700 do redirection if the call is not optimized out.
33702 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
33705 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
33706 (fchkp-check-incomplete-type): Add LTO.
33707 (fchkp-zero-input-bounds-for-main): Likewise.
33708 (fchkp-first-field-has-own-bounds): Likewise.
33709 (fchkp-narrow-bounds): Likewise.
33710 (fchkp-narrow-to-innermost-array): Likewise.
33711 (fchkp-use-static-bounds): Likewise.
33712 (fchkp-use-static-const-bounds): Likewise.
33713 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33715 2015-03-27 Marek Polacek <polacek@redhat.com>
33717 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
33719 2015-03-27 Marek Polacek <polacek@redhat.com>
33722 * ubsan.c (ubsan_create_edge): New function.
33723 (instrument_bool_enum_load): Call it.
33724 (instrument_nonnull_arg): Likewise.
33725 (instrument_nonnull_return): Likewise.
33726 (instrument_object_size): Likewise.
33728 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33730 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
33733 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33736 * lto-streamer.h (class lto_location_cache): New.
33737 (struct data_in): Add location_cache.
33738 (lto_input_location): Update prototype.
33739 (stream_input_location_now): New.
33740 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
33741 pointer to location.
33742 (stream_input_location): Update.
33743 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
33744 (warn_odr): Apply location cache before warning.
33745 (lto_input_location): Update prototype.
33746 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
33747 Use stream_input_location_now.
33748 * lto-streamer-in.c (lto_location_cache::current_cache): New static
33750 (lto_location_cache::cmp_loc): New function.
33751 (lto_location_cache::apply_location_cache): New function.
33752 (lto_location_cache::accept_location_cache): New function.
33753 (lto_location_cache::revert_location_cache): New function.
33754 (lto_location_cache::input_location): New function.
33755 (lto_input_location): Do location caching.
33756 (stream_input_location_now): New function.
33757 (input_eh_region, input_struct_function_base): Use
33758 stream_input_location_now.
33759 (lto_data_in_create): use new.
33760 (lto_data_in_delete): Use delete.
33761 * tree-streamer-in.c (unpack_ts_block_value_fields,
33762 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
33763 lto_input_ts_exp_tree_pointers): Update for cached location api.
33765 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33768 * passes.def: Add pass_nothrow.
33769 * ipa-pure-const.c: (pass_data_nothrow): New.
33770 (pass_nothrow): New.
33771 (pass_nothrow::execute): New.
33772 (make_pass_nothrow): New.
33773 * tree-pass.h (make_pass_nothrow): Declare.
33775 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33777 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
33778 edge to change by speculation resolution or redirection.
33779 (edge_set_predicate): Likewise.
33780 (inline_summary_t::duplicate): Likewise.
33781 (remap_edge_summaries): Likewise.
33783 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33785 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
33787 (can_inline_edge_p): Relax option matching for always inline functions.
33789 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
33792 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
33793 Check operand 4 and operand 0 for equality.
33794 (avx512f_vextract<shuffletype>32x4_1_maskm):
33795 Check operand 6 and operand 0 for equality.
33796 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
33798 (vec_extract_hi_<mode>_maskm): Ditto.
33800 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33802 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
33803 dead calls back to live.
33804 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
33806 (cgraph_node::verify_node): ... here; verify only callee edges,
33808 * cif-code.def (CILK_SPAWN): New code.
33810 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33812 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
33813 (edge_set_predicate): Use it to mark unreachable edges.
33814 (inline_summary_t::duplicate): Remove unnecesary code.
33815 (remap_edge_summaries): Likewise.
33816 (dump_inline_summary): Report contains_cilk_spawn.
33817 (compute_inline_parameters): Compute contains_cilk_spawn.
33818 (inline_read_section, inline_write_summary): Stream
33819 contains_cilk_spawn.
33820 * ipa-inline.c (can_inline_edge_p): Do not touch
33821 DECL_STRUCT_FUNCTION that may not be available;
33822 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
33823 remove check for callee_fun->can_throw_non_call_exceptions and
33824 replace it by optimization attribute check; check for flag_exceptions.
33825 * ipa-inline-transform.c (inline_call): Maintain
33826 DECL_FUNCTION_PERSONALITY
33827 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
33829 2015-03-26 Jakub Jelinek <jakub@redhat.com>
33831 PR tree-optimization/65551
33832 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
33833 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
33835 2015-03-26 Richard Biener <rguenther@suse.de>
33837 PR middle-end/65555
33838 * tree-cfg.c (verify_gimple_call): Do not require a call to
33839 have no LHS if it wasn't recognized as control altering yet.
33841 2015-03-26 Jakub Jelinek <jakub@redhat.com>
33843 PR tree-optimization/64715
33844 * passes.def: Add another instance of pass_object_sizes before ccp1.
33845 * tree-object-size.c (pass_object_sizes::execute): In
33846 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
33847 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
33848 __bos result and the computed constant. Remove redundant
33849 checks, obsoleted by gimple_call_builtin_p test.
33851 * var-tracking.c (variable_tracking_main_1): Don't track
33852 variables for targetm.no_register_allocation targets.
33854 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
33856 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
33857 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
33859 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
33862 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
33863 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
33864 0.0 is correctly setup.
33865 (extenddftf2_internal): Likewise.
33867 2015-03-25 Sebastian Pop <s.pop@samsung.com>
33869 PR tree-optimization/65177
33870 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
33872 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
33873 edges not adjacent on the path to the original code.
33875 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
33878 * doc/install.texi (Building a native compiler): Document new
33879 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
33880 configuration assumes that the host supports the linker plugin.
33882 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
33885 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
33886 chain for generated call.
33888 2015-03-25 Richard Biener <rguenther@suse.de>
33890 * passes.c (pass_manager::execute_early_local_passes): Guard
33891 execution of pass_chkp_instrumentation_passes with
33892 flag_check_pointer_bounds.
33893 (pass_chkp_instrumentation_passes::gate): Likewise.
33895 2015-03-25 Martin Liska <mliska@suse.cz>
33897 PR tree-optimization/65538
33898 * symbol-summary.h (function_summary::~function_summary):
33899 Relese memory for allocated summaries.
33900 (function_summary::release): New function.
33902 2015-03-25 Jakub Jelinek <jakub@redhat.com>
33905 * lto-streamer-out.c (DFS::worklist): New struct.
33906 (DFS::worklist_vec): New data member.
33907 (DFS::next_dfs_num): Remove.
33908 (DFS::DFS): Rewritten using worklist instead of recursion,
33909 using most of code from DFS::DFS_write_tree.
33910 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
33911 pass it to DFS_write_tree calls.
33912 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
33913 quick initial checks push it into worklist_vec and return.
33915 2015-03-25 Richard Biener <rguenther@suse.de>
33917 PR middle-end/65519
33918 * genmatch.c (expr::gen_transform): Re-write to avoid
33919 using gimple_build.
33921 2015-03-25 Bin Cheng <bin.cheng@arm.com>
33923 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
33925 2015-03-25 Bin Cheng <bin.cheng@arm.com>
33927 * config/arm/arm.opt (print_tune_info): New option.
33928 * config/arm/arm.c (arm_print_tune_info): New function.
33929 (arm_file_start): Call arm_print_tune_info.
33930 * config/arm/arm-protos.h (struct tune_params): Add comment.
33931 * doc/invoke.texi (@item -mprint-tune-info): New item.
33932 (-mtune): mention it in ARM Option Summary.
33934 2015-03-25 DJ Delorie <dj@redhat.com>
33936 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
33939 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
33940 Martin Liska <mliska@suse.cz>
33942 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
33943 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
33944 (sem_item::add_type): New function.
33945 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
33946 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
33947 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
33948 (sem_function::equals_wpa): Fix typo.
33949 * ipa-icf.h (sem_item::add_type): New function.
33950 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
33953 2015-03-24 Jakub Jelinek <jakub@redhat.com>
33955 PR tree-optimization/65533
33956 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
33957 with swapped operands, call vect_free_slp_tree on
33958 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
33961 2015-03-24 Richard Biener <rguenther@suse.de>
33963 PR middle-end/65517
33964 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
33965 for fixup if necessary.
33967 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
33969 * doc/extend.texi (Function Attributes): Add @cindex entries
33970 for all attributes and regularize their format. Delete text
33971 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
33972 information about "eightbit_data", "tiny_data", and "model"
33973 variable attributes to the Variable Attributes section. Fix
33974 some obvious typos and copy-editing issues.
33975 (Variable Attributes, Type Attributes): Likewise add/fix
33976 @cindex entries for all attributes.
33978 2015-03-23 Jakub Jelinek <jakub@redhat.com>
33981 * tree-chkp.c (chkp_build_returned_bound): Ignore
33982 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
33984 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
33987 * config/sh/predicates.md (simple_mem_operand,
33988 displacement_mem_operand): Add test for reg.
33989 (short_displacement_mem_operand): Test for displacement_mem_operand
33990 before invoking sh_disp_addr_displacement.
33991 * config/sh/constraints.md (Sdd, Sra): Simplify.
33992 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
33993 Remove redundant displacement_mem_operand tests.
33995 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
33998 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
33999 the same -mmcu=MCU more than once.
34001 2015-03-23 Jakub Jelinek <jakub@redhat.com>
34004 * ipa-devirt.c: Remove duplicate demangle.h include.
34007 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
34009 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
34010 REG_POINTER on *destptr after adjusting it for prologue size.
34013 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
34014 ultimate_alias_target ()->order ints instead of
34015 ultimate_alias_target () pointers.
34017 2015-03-23 Richard Biener <rguenther@suse.de>
34019 PR tree-optimization/65518
34020 * tree-vect-stmts.c (vectorizable_load): Reject single-element
34021 interleaving cases we generate absymal code for.
34023 2015-03-23 Richard Biener <rguenther@suse.de>
34025 PR tree-optimization/65494
34026 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
34028 (vect_analyze_slp_instance): But do that here, always and once.
34030 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34032 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
34033 adding T or multiplying by T+1 and subracting T.
34035 2015-03-22 Jeff Law <law@redhat.com>
34037 PR rtl-optimization/64317
34038 * Makefile.in (OBJS): Add gcse-common.c
34039 * gcse.c: Include gcse-common.h
34040 (struct modify_pair_s): Move structure definition to gcse-common.h
34041 (compute_transp): Move function to gcse-common.c.
34042 (canon_list_insert): Similarly.
34043 (record_last_mem_set_info): Break out some code and put it into
34044 gcse-common.c. Call into the new common code.
34045 (compute_local_properties): Pass additional arguments to compute_transp.
34046 * postreload-gcse.c: Include gcse-common.h and df.h
34047 (modify_mem_list_set, blocks_with_calls): New variables.
34048 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
34049 (get_bb_avail_insn): Pass in the expression index too.
34050 (alloc_mem): Allocate memory for the new bitmaps and lists.
34051 (free_mem): Free memory for the new bitmaps and lists.
34052 (insert_expr_in_table): Record a bitmap index for each entry we
34054 (record_last_mem_set_info): Call into common code in gcse-common.c.
34055 (get_bb_avail_insn): If no available insn was found in the requested
34056 BB. If BB has a single predecessor, see if the expression is
34057 transparent in BB and available in that single predecessor.
34058 (compute_expr_transp): New wrapper for compute_transp.
34059 (eliminate_partially_redundant_load): Pass expression's bitmap_index
34060 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
34061 (gcse_after_reload_main): If there are elements in the hash table,
34062 then compute transparency for all the elements in the hash table.
34063 * gcse-common.h: New file.
34064 * gcse-common.c: New file.
34066 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
34068 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
34070 (System Headers): Likewise.
34072 (Traditional macros): Likewise.
34073 (Invocation): Likewise.
34074 (Option Index): Likewise.
34075 * doc/cppopts.texi (-M): Likewise.
34076 (-finput-charset): Likewise.
34077 (--help): Likewise.
34078 * doc.invoke.texi (AVR Options): Likewise.
34079 (V850 Options): Likewise.
34081 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
34084 * ipa-devirt.c: Include demangle.h
34085 (odr_type_d): Add field rtti_broken.
34086 (odr_subtypes_equivalent_p): Do not require name to match.
34087 (compare_virtual_tables): Fix typo; if type already has ODR violation,
34088 bypass the tests; be ready for function referneces in vtables that are
34089 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
34090 (warn_odr): Give up for nameless types.
34091 (warn_types_mismatch): Report mismatch in mangled names;
34092 report mismatch in anonymous namespaces; look into component types to
34093 give useful error; report when mismatch is dragged in from other ODR
34095 (odr_types_equivalent_p): Match types for being polymorphic; avoid
34096 duplicated diagnostics.
34097 (add_type_duplicate): Reorder checks so more informative ones come
34098 first; fix typo; do not output "the extra base is defined here" when
34100 (BINFO_N_BASE_BINFOS): Relax sanity check.
34102 2015-03-22 Martin Liska <mliska@suse.cz>
34103 Jakub Jelinek <jakub@redhat.com>
34105 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
34106 masks that can potentially include a builtin.
34107 (ix86_add_new_builtins): Introduce fast filter for isa values
34108 that cannot trigger builtin inclusion.
34110 2015-03-22 Martin Liska <mliska@suse.cz>
34112 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
34113 (sem_item::update_hash_by_local_refs): Likewise.
34114 (sem_variable::get_hash): Empty line is fixed.
34115 (sem_item_optimizer::execute): Include adding of hash references.
34116 (sem_item_optimizer::update_hash_by_addr_refs): New function.
34117 (sem_item_optimizer::build_hash_based_classes): Use local hash.
34118 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
34119 (sem_item::update_hash_by_local_refs): Likewise.
34121 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34124 * ipa-comdats.c (enqueue_references): Walk through thunks.
34125 (ipa_comdats): Likewise.
34126 (set_comdat_group_1): New function.
34128 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34131 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
34134 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
34135 Gerald Pfeifer <gerald@pfeifer.com>
34137 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
34139 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
34140 Sandra Loosemore <sandra@codesourcery.com>
34142 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
34143 function parameter declaration.
34144 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
34145 Update arguments to nios2_adjust_call_address().
34146 (sibcall_internal): Rename from *sibcall.
34147 (sibcall_value_internal): Rename from *sibcall_value.
34148 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
34149 (nios2_large_got_address): Add target temp reg parameter.
34150 (nios2_got_address): Adjust call to nios2_large_got_address, add
34151 force_reg around it.
34152 (nios2_load_pic_address): Add target temp reg parameter, replace call
34153 to nios2_got_address with corresponding code.
34154 (nios2_legitimize_constant_address): Update call to
34155 nios2_load_pic_address.
34156 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
34157 to use temp reg for PIC loading purposes.
34158 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
34159 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
34160 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
34162 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
34164 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
34165 usage of "the @option{...}".
34166 (-Wopenmp-simd): Likewise.
34167 (-fsanitize-recover): Likewise.
34168 (-fsanitize-undefined-trap-on-error): Likewise.
34170 (tracer-dynamic-coverage-feedback): Likewise.
34171 (reorder-block-duplicate-feedback): Likewise.
34172 (loop-unroll-jam-size): Likewise.
34175 (-mabs=legacy): Likewise.
34176 (-mupper-regs-df): Likewise.
34177 (-mupper-regs-sf): Likewise.
34178 (-mpointers-to-nested-functions): Likewise.
34180 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
34182 * doc/extend.texi (Cilk Plus Builtins): Add markup.
34184 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
34186 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
34187 additional index entries and cross-references.
34188 (-fchkp-check-incomplete-type): Likewise.
34189 (-fchkp-first-field-has-own-bounds): Likewise.
34190 (-fchkp-narrow-to-innermost-array): Likewise.
34191 (-fchkp-use-fast-string-functions): Likewise.
34192 (-fchkp-use-nochk-string-functions): Likewise.
34193 (-fchkp-use-static-const-bounds): Likewise.
34194 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
34195 (-fchkp-instrument-marked-only): Likewise.
34196 (-fchkp-use-wrappers): Likewise.
34197 (-static-libmpx): Likewise.
34198 (-static-libmpxwrappers): Likewise.
34199 * doc/extend.texi (bnd_legacy): Likewise.
34200 (bnd_instrument): Likewise.
34201 (bnd_variable_size): Likewise.
34202 (Pointer Bounds Checker builtins): Likewise.
34204 2015-03-21 Tom de Vries <tom@codesourcery.com>
34206 PR tree-optimization/65458
34207 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
34208 * cgraph.h (cgraph_node): Add parallelized_function field.
34209 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
34210 (input_overwrite_node): Read parallelized_function field.
34211 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
34212 parallelized_function on cgraph_node for child_fn.
34213 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
34214 Remove include of gt-tree-parloops.h.
34215 (parallelized_functions): Remove static variable.
34216 (parallelized_function_p): Rewrite using parallelized_function field of
34218 (create_loop_fn): Remove adding to parallelized_functions.
34219 * Makefile.in (GTFILES): Remove tree-parloops.c
34221 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
34223 PR rtl-optimization/64366
34224 * lra.c (lra_update_insn_regno_info): Consider regs in
34225 CALL_INSN_FUNCTION_USAGE memory.
34227 2015-03-20 Richard Biener <rguenther@suse.de>
34229 PR middle-end/64715
34230 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
34231 for type comparison and gcc_checking_assert.
34232 (chrec_fold_plus_poly_poly): Likewise.
34233 (chrec_fold_multiply_poly_poly): Likewise.
34234 (chrec_convert_1): Likewise.
34235 * gimplify.c (gimplify_expr): Remove premature folding of
34236 &X + CST to &MEM[&X, CST].
34238 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34240 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
34242 (ipa_inline): Recompute inline_failed codes.
34243 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34244 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
34247 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
34249 PR rtl-optimization/60851
34250 * recog.c (constrain_operands): Accept a pseudo register before reload
34251 for LRA enabled targets.
34253 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
34256 * config/rs6000/predicates.md (easy_fp_constant): Remove special
34257 -ffast-math handling that kept non-0 constants live in the RTL
34258 until reload. Remove logic testing the number of instructions it
34259 took to create a constant in a GPR that was never used, due to a
34260 test for soft-float earlier.
34261 (memory_fp_constant): Delete, no longer used.
34263 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
34264 alternatives for loading non-0 constants into GPRs for hard
34265 floating point that is no longer needed due to changes in
34266 easy_fp_constant. Add support for loading 0.0 into GPRs.
34267 (mov<mode>_hardfloat32): Likewise.
34268 (mov<mode>_hardfloat64): Likewise.
34269 (mov<mode>_64bit_dm): Likewise.
34270 (movtd_64bit_nodm): Likewise.
34271 (pre-reload move FP constant define_split): Delete define_split,
34272 since it is no longer used.
34273 (extenddftf2_internal): Remove GHF constraints that are not valid
34276 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
34278 PR rtl-optimization/63491
34279 * lra-constraints.c (check_and_process_move): Use src instead of
34280 sreg. Remove some dead code.
34282 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
34285 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
34286 (sem_variable::merge): Likewise.
34288 2015-03-19 Martin Liska <mliska@suse.cz>
34291 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
34292 all fields of cgraph_thunk_info.
34294 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
34296 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
34297 clone instrumented thunks.
34299 2015-03-19 Richard Biener <rguenther@suse.de>
34302 2015-03-10 Richard Biener <rguenther@suse.de>
34304 PR middle-end/63155
34305 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34306 * tree-ssa-coalesce.c: Include timevar.h.
34307 (attempt_coalesce): Handle graph being NULL.
34308 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34309 Split out abnormal coalescing to ...
34310 (perform_abnormal_coalescing): ... this function.
34311 (coalesce_ssa_name): Perform abnormal coalescing without computing
34313 (verify_ssa_coalescing_worker): New function.
34314 (verify_ssa_coalescing): Likewise.
34316 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
34317 Jakub Jelinek <jakub@redhat.com>
34320 * tsan.c (instrument_gimple): Clear tail call flag on
34323 2015-03-19 Jakub Jelinek <jakub@redhat.com>
34326 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
34327 call in the return bb.
34328 (find_split_points): Add RETURN_BB argument, don't call
34330 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
34331 if true append TSAN_FUNC_EXIT internal call after the call to
34332 the split off function.
34333 (execute_split_functions): Call find_return_bb here.
34334 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
34335 Adjust find_split_points and split_function calls.
34337 2015-03-18 DJ Delorie <dj@redhat.com>
34339 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
34340 (iorqi3_virt): Likewise.
34342 2015-03-18 Tom de Vries <tom@codesourcery.com>
34344 * tree-parloops.c (parallelize_loops): Make static.
34345 * tree-parloops.h (parallelize_loops): Remove extern declaration.
34347 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
34349 PR middle-end/64491
34351 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
34353 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
34354 condition would be removed due to undefined behaviour.
34356 2015-03-18 Martin Liska <mliska@suse.cz>
34359 * cgraph.c (cgraph_node::get_create): Remove unnecessary
34360 xstrdup_for_dump wrapper.
34361 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
34363 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
34364 with xstrdup_for_dump.
34365 (sem_variable::equals): Likewise.
34366 (sem_item_optimizer::read_section): Use symtab_node::name instead of
34368 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
34369 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
34370 symtab_node::asm_name with xstrdup_for_dump.
34371 (congruence_class::dump): Use symtab_node::name instead of
34373 * ipa-icf.h (symtab_node::name): Remove.
34374 (symtab_node::asm_name): Likewise.
34376 2015-03-18 Jakub Jelinek <jakub@redhat.com>
34378 PR tree-optimization/65450
34379 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
34381 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
34382 it instead of duplicate_ssa_name_ptr_info.
34385 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
34387 2015-03-18 Richard Biener <rguenther@suse.de>
34389 * tree-data-ref.h (struct access_matrix): Remove.
34390 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
34391 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
34392 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
34393 (am_vector_index_for_loop): Likewise.
34394 (struct data_reference): Remove access_matrix member.
34395 (DR_ACCESS_MATRIX): Remove.
34396 (lambda_vector_new): Add comment.
34397 (lambda_matrix_new): Use XOBNEWVEC.
34399 2015-03-18 Richard Biener <rguenther@suse.de>
34401 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
34402 (pass_ch::execute): Cleanup the CFG only if we did sth.
34403 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
34405 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34407 * expmed.c (synth_mult): Use std::swap instead of manually
34408 swapping algorithms.
34410 2015-03-18 Jakub Jelinek <jakub@redhat.com>
34413 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
34415 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
34418 * config/avr/avr.opt (-nodevicelib): New option.
34419 * doc/invoke.texi (AVR Options): Document it.
34420 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
34421 libgcc.a, libc.a, libm.a.
34422 * config/avr/specs.h: Same.
34423 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
34424 which don't (directly) depend on the device. Print more help.
34425 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
34426 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
34427 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
34429 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
34430 for specs file name.
34431 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
34432 * config/avr/avr-mcus.def: Adjust initializers and comments.
34434 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
34436 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
34437 DECL_ONE_ONLY to check if decl is one only.
34438 * ipa-split.c (consider_split): Limit splitt of one only functions.
34440 2015-03-16 Jakub Jelinek <jakub@redhat.com>
34442 PR tree-optimization/65427
34443 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
34445 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
34447 2015-03-16 Marek Polacek <polacek@redhat.com>
34449 * cgraph.h (add_new_static_var): Remove declaration.
34450 * varpool.c (add_new_static_var): Remove function.
34452 2015-03-16 Jakub Jelinek <jakub@redhat.com>
34454 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
34455 instead of vec<tree> * with vec_alloc and release for args.
34458 PR middle-end/65431
34459 * omp-low.c (delete_omp_context): Only splay_tree_delete
34460 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
34461 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
34463 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
34466 * cfgexpand.c (align_base): New function.
34467 (alloc_stack_frame_space): Call it.
34468 (expand_stack_vars): Align prev_frame to be sure
34469 data->asan_vec elements aligned properly.
34471 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
34473 PR middle-end/65409
34474 * expr.c (store_field): Do not do a direct block copy if the source is
34475 a PARALLEL with BLKmode.
34477 2015-03-16 Tom de Vries <tom@codesourcery.com>
34479 PR middle-end/65414
34481 2015-03-12 Tom de Vries <tom@codesourcery.com>
34483 PR rtl-optimization/64895
34484 * lra-lives.c (check_pseudos_live_through_calls): Use
34485 actual_call_used_reg_set instead of call_used_reg_set, if available.
34487 2015-03-16 Alan Modra <amodra@gmail.com>
34490 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
34491 Modify Z->r bswapdi splitter to use dest in place of scratch.
34492 In r->Z and Z->r bswapdi splitter rename word_high, word_low
34493 to word1, word2 and rearrange logic to suit.
34494 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
34495 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
34496 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
34497 Add one '?' on r->r. Modify Z->r splitter to avoid need for
34500 2015-03-14 Jakub Jelinek <jakub@redhat.com>
34502 PR tree-optimization/65369
34503 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
34504 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
34505 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
34507 PR tree-optimization/65418
34508 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
34509 are casts in the first PLUS_EXPR operand, ensure tbias and
34510 *totallowp are in the inner type.
34512 PR rtl-optimization/65401
34513 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
34514 argument. If true, adjust_address_nv of x with big-endian
34515 correction for the mode widening to GET_MODE (y).
34516 (make_field_assignment): Don't do MEM mode widening here.
34517 Use MEM_P instead of GET_CODE == MEM.
34519 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
34521 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
34522 the external decls.
34524 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34527 * config/arm/arm.c (arm_gen_constant, AND case): Use
34528 ARM_SIGN_EXTEND when constructing AND mask.
34530 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34532 * graph.c (print_graph_cfg): Make function names visible and append
34533 parenthesis to it. Also make groups of basic blocks belonging to the
34534 same function visible.
34536 2015-03-12 Richard Biener <rguenther@suse.de>
34538 PR middle-end/44563
34539 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
34540 to avoid quadratic behavior with inline expansion splitting blocks.
34541 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
34542 with the successor if the predecessor will be merged with it.
34543 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
34544 entry block with its successor.
34546 2015-03-13 Richard Biener <rguenther@suse.de>
34548 PR middle-end/44563
34549 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
34550 (cleanup_tree_cfg_1): Do not call it.
34551 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
34552 (fixup_noreturn_call): Mark the stmt as control altering.
34553 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
34555 (pass_data_fixup_cfg): Produce a dump file.
34556 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
34557 (need_noreturn_fixup): New global.
34558 (pass_dominator::execute): Fixup queued noreturn calls.
34559 (optimize_stmt): Queue calls that became noreturn for fixup.
34560 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
34561 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
34562 (el_to_fixup): New global.
34563 (eliminate_dom_walker::before_dom_childre): Queue calls that
34564 became noreturn for fixup.
34565 (eliminate): Fixup queued noreturn calls.
34566 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
34567 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
34568 (substitute_and_fold_dom_walker::before_dom_children): Queue
34569 alls that became noreturn for fixup.
34570 (substitute_and_fold): Fixup queued noreturn calls.
34572 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
34574 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
34575 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
34576 are building; for methods check ODR type of class they belong to if
34577 they may lead to a polymorphic call.
34578 (sem_function::compare_polymorphic_p): Be bit smarter about testing
34579 when function may lead to a polymorphic call.
34580 (sem_function::compare_type_list): Remove.
34581 (sem_variable::equals): Update use of compatible_types_p.
34582 (sem_variable::parse_tree_refs): Remove.
34583 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
34585 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
34587 (func_checker::compatible_polymorphic_types_p): Break out from ...
34588 (unc_checker::compatible_types_p): ... here.
34589 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
34591 (unc_checker::compatible_types_p): Update.
34592 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
34595 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34597 PR rtl-optimization/65235
34598 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
34599 When first element of vec_concat is const_int, calculate its size
34600 using second element.
34602 2015-03-12 Richard Biener <rguenther@suse.de>
34604 PR middle-end/65270
34605 * fold-const.c (operand_equal_p): Fix ordering of resetting
34606 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
34608 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
34610 * config/s390/s390.c (s390_reorg): Move code to output nops after label
34612 (s390_asm_output_function_label): Likewise.
34613 * config/s390/s390.c (s390_asm_output_function_label):
34614 Fix function label alignment with -mhtopatch.
34615 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
34616 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
34617 ("nop_2_byte"): New define_insn.
34618 ("nop_4_byte"): Likewise.
34619 ("nop_6_byte"): Likewise.
34620 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
34621 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
34623 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
34626 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
34629 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
34632 * toplev.c (process_options): Restrict Pointer Bounds Checker
34633 usage with Address Sanitizer.
34635 2015-03-12 Richard Biener <rguenther@suse.de>
34637 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
34639 * omp-low.c (expand_omp_taskreg): Split block before removing
34641 (expand_omp_target): Likewise.
34642 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
34643 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
34644 stmt to split_block.
34646 2015-03-12 Tom de Vries <tom@codesourcery.com>
34648 PR rtl-optimization/64895
34649 * lra-lives.c (check_pseudos_live_through_calls): Use
34650 actual_call_used_reg_set instead of call_used_reg_set, if available.
34652 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34654 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
34655 (cgraph_node::remove): Likewise.
34656 (cgraph_node::get_untransformed_body): Likewise.
34657 * varpool.c (varpool_node::remove): Likewise.
34658 (varpool_node::get_constructor): Add sanity check.
34660 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
34662 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
34664 (-fabi-compat-version): Likewise.
34665 (-ffriend-injection): Likewise.
34666 (-Wdeclaration-after-statement): Likewise.
34667 (-fomit-frame-pointer): Likewise.
34668 (-ftree-coalesce-inlined-vars): Likewise.
34669 (-fvisibility=): Likewise.
34670 * doc/extend.texi (Typeof): Likewise.
34671 (Zero Length): Likewise.
34672 (Escaped Newlines): Likewise.
34673 (Compound Literals): Likewise.
34674 (Function Attributes): Likewise.
34675 (Label Attributes): Likewise.
34676 (Type Attributes): Likewise.
34677 (Function Names): Likewise.
34678 (Other Builtins): Likewise.
34679 (Function Specific Option Pragmas): Likewise.
34680 (C++ Interface): Likewise.
34682 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
34684 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
34686 2015-03-11 Marek Polacek <polacek@redhat.com>
34688 PR tree-optimization/65388
34689 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
34691 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
34694 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
34695 * configure: Regenerate.
34696 * config.in: Regenerate.
34697 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
34698 [-mn-flash]: Document it.
34699 [__AVR_ARCH__]: Document avrtiny.
34701 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
34702 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
34703 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
34705 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34707 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
34709 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
34712 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
34713 allow reloads of PLUS in floating point/VSX registers.
34715 2015-03-11 Junmo Park <junmoz.park@samsung.com>
34717 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
34718 crypto_sha256_fast.
34719 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
34721 2015-03-11 Richard Biener <rguenther@suse.de>
34723 PR tree-optimization/65310
34724 * tree-sra.c (build_ref_for_offset): Also preserve larger
34727 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
34729 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
34731 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34734 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
34736 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
34738 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34740 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
34741 (sem_function::equals_wpa): ... here.
34743 2015-03-10 Marek Polacek <polacek@redhat.com>
34744 Jakub Jelinek <jakub@redhat.com>
34747 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
34748 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
34751 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34754 * config/rs6000/t-linux: For powerpc64* target set
34755 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
34757 2015-03-10 Richard Biener <rguenther@suse.de>
34759 PR middle-end/44563
34760 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
34761 for redirect_all_calls.
34763 2015-03-10 Marek Polacek <polacek@redhat.com>
34765 * gdbinit.in (pcfun): Define and document.
34767 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
34769 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
34770 of libgomp-plugin.h.
34771 (find_target_compiler): Support a case when the path to gcc is
34772 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
34773 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
34774 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
34776 (main): Use GCC_INSTALL_NAME as target_driver_name.
34777 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
34779 (mkoffload.o): Remove obsolete include path and defines.
34780 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
34782 2015-03-10 Richard Biener <rguenther@suse.de>
34784 PR middle-end/63155
34785 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34786 * tree-ssa-coalesce.c: Include timevar.h.
34787 (attempt_coalesce): Handle graph being NULL.
34788 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34789 Split out abnormal coalescing to ...
34790 (perform_abnormal_coalescing): ... this function.
34791 (coalesce_ssa_name): Perform abnormal coalescing without computing
34793 (verify_ssa_coalescing_worker): New function.
34794 (verify_ssa_coalescing): Likewise.
34796 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
34799 * config.gcc (extra_options) [avr]: Remove.
34800 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
34801 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
34802 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
34804 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
34805 (-mmcu=): Add Var and MissingArgError properties.
34807 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
34808 * config/avr/t-multilib: Regenerate.
34809 * config/avr/specs.h: New file.
34810 * config/avr/driver-avr.c: New file.
34811 * config/avr/genopt.sh: Remove file.
34812 * config/avr/avr-tables.opt: Remove file.
34813 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
34814 * config/avr/avr-c.c: Same.
34815 * avr-arch.h: Same.
34816 (avr_current_device): Remove proto.
34817 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
34818 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
34819 (EXTRA_SPEC_FUNCTIONS): Define.
34820 (avr_devicespecs_file): New specs function proto.
34821 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
34822 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
34823 (avr_current_device): Remove definition and usage.
34824 (avr_set_core_architecture): New static function.
34825 (avr_option_override): Use it.
34826 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
34827 (mcu_name): New static array.
34828 (comparator, avr_archs_str, avr_mcus_str): New static functions.
34829 (avr_inform_devices, avr_inform_core_architectures): New functions.
34830 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
34831 (avrlibc.h) [WITH_AVRLIBC]: Include.
34832 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
34833 (print_mcu): Rewrite from scratch.
34834 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
34835 Forward to avr-specific specs defined in device-specs file.
34836 * config/avr/t-avr (driver-avr.o): New rule.
34837 (avr-devices.o): Depend on avr-arch.h.
34838 (avr-mcus): No more depend on avr-tables.opt.
34839 (avr-tables.opt): Remove rule.
34840 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
34842 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34844 * c-family/c.opt (fchkp-use-wrappers): New.
34845 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
34846 (chkp_wrap_function): New.
34847 (chkp_build_instrumented_fndecl): Support wrapped
34849 * doc/invoke.texi (-fcheck-pointer-bounds): New.
34850 (-fchkp-check-incomplete-type): New.
34851 (-fchkp-first-field-has-own-bounds): New.
34852 (-fchkp-narrow-bounds): New.
34853 (-fchkp-narrow-to-innermost-array): New.
34854 (-fchkp-optimize): New.
34855 (-fchkp-use-fast-string-functions): New.
34856 (-fchkp-use-nochk-string-functions): New.
34857 (-fchkp-use-static-bounds): New.
34858 (-fchkp-use-static-const-bounds): New.
34859 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
34860 (-fchkp-check-read): New.
34861 (-fchkp-check-write): New.
34862 (-fchkp-store-bounds): New.
34863 (-fchkp-instrument-calls): New.
34864 (-fchkp-instrument-marked-only): New.
34865 (-fchkp-use-wrappers): New.
34866 (-static-libmpx): New.
34867 (-static-libmpxwrappers): New.
34869 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34871 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
34872 (CHKP_SPEC): Add wrappers library.
34873 * c-family/c.opt (static-libmpxwrappers): New.
34875 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34877 * config/i386/linux-common.h (LIBMPX_LIBS): New.
34878 (LIBMPX_SPEC): New.
34880 * gcc.c (CHKP_SPEC): New.
34881 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
34882 * c-family/c.opt (static-libmpx): New.
34884 2015-03-10 Richard Biener <rguenther@suse.de>
34886 PR middle-end/44563
34887 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
34889 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
34890 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
34891 (cgraph_add_edge_to_call_site_hash): Likewise.
34892 (cgraph_node::get_edge): Likewise.
34893 (cgraph_edge::set_call_stmt): Likewise.
34894 (cgraph_edge::remove_caller): Likewise.
34896 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
34898 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
34899 (callee_saved_gpr_regs_size): ... this.
34900 (callee_saved_regs_first_regno): Rename to ...
34901 (callee_saved_first_gpr_regno): ... this.
34902 (callee_saved_regs_last_regno) Rename to ...
34903 (callee_saved_last_gpr_regno): ... this.
34904 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
34906 (nds32_initial_elimination_offset): Likewise.
34907 (nds32_expand_prologue): Likewise.
34908 (nds32_expand_epilogue): Likewise.
34909 (nds32_expand_prologue_v3push): Likewise.
34910 (nds32_expand_epilogue_v3pop): Likewise.
34911 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
34912 Adjust renamed variables.
34913 (nds32_output_stack_pop): Likewise.
34915 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
34917 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
34920 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34922 PR rtl-optimization/65321
34923 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
34925 * var-tracking.c (use_narrower_mode): Likewise.
34927 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34929 PR tree-optimization/65355
34930 * varasm.c (notice_global_symbol): Do not produce RTL.
34931 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
34933 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
34934 check for section anchors.
34936 2015-03-10 Alan Modra <amodra@gmail.com>
34939 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
34940 to be single-arch by default. Set cpu_is_64bit for powerpc64
34941 given --with-cpu=native.
34942 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
34943 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
34945 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
34946 rs6000_isa_flags rather than TARGET_64BIT.
34948 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
34949 Kaz Kojima <kkojima@gcc.gnu.org>
34951 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
34953 2015-03-09 Jakub Jelinek <jakub@redhat.com>
34956 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
34957 on a TREE_BINFO, instead use BINFO_TYPE.
34959 2015-03-09 Richard Biener <rguenther@suse.de>
34961 PR middle-end/65270
34962 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
34963 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
34964 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
34965 of that. When comparing dereferences compare alignment.
34966 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
34968 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
34970 * ipa-inline-analysis.c (check_callers): Check
34971 node->can_remove_if_no_direct_calls_and_refs_p.
34972 (growth_likely_positive): Reorganize to call
34973 can_remove_if_no_direct_calls_p later.
34974 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
34975 will_be_removed_from_program_if_no_direct_calls_p): Add
34976 will_inline parameter.
34977 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
34978 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34979 Handle inliner case correctly.
34981 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
34983 PR tree-optimization/63743
34984 * cfgexpand.c (reorder_operands): Also reorder if only second operand
34985 had its definition forwarded by TER.
34987 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
34990 * ipa-utils.h (types_odr_comparable): Add strict argument.
34991 * ipa-devirt.c: Fix whitespace;
34992 (odr_hasher): Remove.
34993 (odr_name_hasher, odr_vtable_hasher): New hashers.
34994 (can_be_name_hashed_p): New predicate.
34995 (hash_type_name): remove.
34996 (hash_odr_name): New.
34997 (odr_name_hasher::hash): new.
34998 (can_be_vtable_hashed_p): New.
34999 (hash_odr_vtable): New.
35000 (odr_vtable_hasher::hash): New.
35001 (types_same_for_odr): Add strict parameter.
35002 (types_odr_comparable): Likewise.
35003 (odr_name_hasher::equal): New.
35004 (odr_vtable_hasher::equal): New.
35005 (odr_name_hasher::remove): New.
35006 (odr_hash_type): Change to hash_table<odr_name_hasher>.
35007 (odr_vtable_hash_type): New.
35008 (odr_vtable_hash): New.
35009 (odr_subtypes_equivalent_p): Do strict comparsion.
35010 (add_type_duplicate): Merge type names; cleanup; avoid type
35012 (register_odr_type): Initialize vtable hash.
35013 (build_type_inheritance_graph): Likewise
35014 (get_odr_type): Reorg to use two hashes.
35015 (dump_possible_polymorphic_call_targets): Move sanity check after debug
35017 (ipa_devirt): Dump type_inheritance_graph.
35018 (types_same_for_odr): Add strict mode.
35020 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35023 * cgraph.h (symtab_node): Add definition_alignment,
35024 can_increase_alignment_p and increase_alignment.
35025 * symtab.c (symtab_node::can_increase_alignment_p,
35026 increase_alignment_1, symtab_node::increase_alignment,
35027 symtab_node::definition_alignment): New.
35028 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
35029 can_increase_alignment_p.
35030 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
35031 * tree-vect-stmts.c (ensure_base_align): Likewise.
35032 * varasm.c (function_section_1): Use definition_alignment.
35033 (assemble_start_function): Likewise.
35034 (emit_local): likewise.
35035 (build_constant_desc): Likewsie.
35036 (output_constant_def_contents): Likewise.
35037 (place_block_symbol): Likewise.
35038 (output_object_block): Likewise.
35040 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35043 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
35044 when outputting debug.
35046 2015-03-07 Marek Polacek <polacek@redhat.com>
35047 Martin Uecker <uecker@eecs.berkeley.edu>
35050 * doc/invoke.texi: Update description of -fsanitize=bounds.
35052 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
35054 * tree-ssa-phiopt.c (neg_replacement): Remove.
35055 (tree_ssa_phiopt_worker): Remove negate optimization.
35057 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35060 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
35062 2015-03-06 Richard Biener <rguenther@suse.de>
35064 PR middle-end/64928
35065 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
35066 and liveout_obstack members.
35067 (calculate_live_on_exit): Remove.
35068 (calculate_live_ranges): Change declaration.
35069 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
35070 (new_tree_live_info): Adjust.
35071 (calculate_live_ranges): Delete livein when not wanted.
35072 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
35073 Deal with partly deleted live info.
35074 (loe_visit_block): Remove temporary bitmap by using
35075 bitmap_ior_and_compl_into.
35076 (live_worklist): Adjust accordingly.
35077 (calculate_live_on_exit): Make static.
35078 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
35079 we do not need livein.
35081 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
35083 * real.c (real_from_string): Fix typo in assertion.
35085 2015-03-06 Alex Velenko <alex.velenko@arm.com>
35087 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
35090 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35092 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
35094 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
35097 * lra-assigns.c (find_hard_regno_for): Rename to
35098 find_hard_regno_for_1. Add a new parameter.
35099 (find_hard_regno_for): New function using find_hard_regno_for_1.
35101 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
35103 PR rtl-optimization/65067
35104 * expmed.c (store_bit_field, extract_bit_field): Reworked the
35105 strict volatile bitfield handling.
35107 2015-03-05 Martin Liska <mliska@suse.cz>
35110 * ipa-icf.c (sem_variable::equals): Compare variables types.
35112 2015-03-05 Richard Henderson <rth@redhat.com>
35115 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
35116 correctly check weak symbol binding.
35118 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
35120 PR middle-end/65315
35121 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
35124 2015-03-05 Martin Liska <mliska@suse.cz>
35126 * ipa-inline.c (inline_small_functions): Set default value to
35127 prevent warning during bootstrap.
35128 * tree.h: Add pragma guard that ignores false positives during
35131 2015-03-05 Richard Biener <rguenther@suse.de>
35133 PR tree-optimization/65310
35134 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
35135 Properly preserve alignment of the base of the access.
35137 2015-03-05 Richard Biener <rguenther@suse.de>
35140 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
35141 Compare dependence info.
35143 2015-03-05 Richard Biener <rguenther@suse.de>
35145 PR middle-end/65233
35146 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
35148 (walk_ssa_copies): Revert last chage. Instead do not walk
35149 SSA names registered for SSA update.
35151 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
35154 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
35155 vtable references for their containing type.
35156 (sem_function::equals_wpa): Compare TYPE_RESTRICT
35157 and type attributes.
35159 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
35161 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
35162 before negating it.
35163 * stor-layout.c (finalize_record_size): Revert latest change.
35165 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
35167 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
35169 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
35171 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
35172 for correct comdat handling.
35173 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35175 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
35176 (used_from_object_file_p_worker): Remove.
35177 (cgraph_node::only_called_directly_or_alised): Add
35178 used_from_object_file_p.
35179 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
35180 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
35181 can_remove_if_no_direct_calls_and_refs_p.
35183 2015-03-04 Nick Clifton <nickc@redhat.com>
35185 * config/rl78/rl78.h (enum reg_class): Remove real registers from
35186 General register class.
35187 * config/rl78/rl78-real.md: Replace general register constraints
35188 with real+virtual register constraints.
35190 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35192 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
35193 from checking for -mhtm option.
35195 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
35197 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
35198 (struct ipa_sra_check_caller_data): Add has_thunk field.
35199 (ipa_sra_check_caller): Check for thunk.
35200 (ipa_sra_preliminary_function_checks): Give up on function with
35202 (ipa_early_sra): Use call_for_symbol_and_aliases.
35204 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
35207 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
35208 called for __stack_chk_guard symbol.
35210 2015-03-03 DJ Delorie <dj@redhat.com>
35212 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
35214 (*addhi3_real): Likewise.
35215 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
35216 pattern to match incrementing memory.
35217 * config/rl78/predicates.md (rl78_1_2_operand): New.
35218 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
35219 it's the same and only mem.
35220 (rl78_alloc_physical_registers_op2): If there's effectively only
35221 one MEM, transcode it into HL.
35222 (rl78_far_p): Reject addresses that aren't legitimate.
35224 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
35226 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
35229 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
35231 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
35233 Implement call0 ABI for xtensa
35234 * config/xtensa/constraints.md ("a" constraint): Include stack
35235 pointer in case of call0 ABI.
35236 ("q" constraint): Make empty in case of call0 ABI.
35237 ("D" constraint): Include stack pointer in case of call0 ABI.
35238 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
35239 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
35241 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
35243 (xtensa_regno_to_class): Make it a local variable in the
35244 function xtensa_regno_to_class.
35245 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
35246 macro, function prototype and implementation.
35247 (reg_nonleaf_alloc_order): Make it a local variable in the
35248 function order_regs_for_local_alloc.
35249 (xtensa_conditional_register_usage): New function.
35250 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
35251 (xtensa_valid_move): Allow direct moves to stack pointer
35252 register in call0 ABI.
35253 (xtensa_setup_frame_addresses): Only spill register windows in
35255 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
35256 call0 ABI respectively.
35257 (xtensa_function_arg_1): Only mark a7 register for copying in
35259 (xtensa_call_save_reg): New function.
35260 (compute_frame_size): Add space for callee saved register
35261 storage to the frame size in call0 ABI.
35262 (xtensa_expand_prologue): Generate code to set up stack frame
35263 and save callee-saved registers in call0 ABI.
35264 (xtensa_expand_epilogue): New function.
35265 (xtensa_set_return_address): New function.
35266 (xtensa_return_addr): Calculate return address in call0 ABI.
35267 (xtensa_builtin_saveregs): Only mark a7 register for copying and
35268 emit copying code in windowed ABI.
35269 (order_regs_for_local_alloc): Add preferred register allocation
35270 order for non-leaf function in call0 ABI.
35271 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
35272 (xtensa_asm_trampoline_template): Add trampoline generation for
35274 (xtensa_trampoline_init): Add trampoline initialization for
35276 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
35278 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
35279 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
35280 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
35281 ABI call-used registers.
35282 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
35283 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
35285 (REG_CLASS_CONTENTS): Include all registers into the preferred
35286 reload registers set, adjust the set in the
35287 xtensa_conditional_register_usage.
35288 (xtensa_regno_to_class): Drop variable declaration.
35289 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
35291 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
35293 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
35294 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
35295 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
35296 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
35297 location in call0 ABI.
35298 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
35299 stack adjustment size when handling exception.
35300 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
35301 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
35303 ("return" pattern): Generate ret.n/ret in call0 ABI.
35304 ("epilogue" pattern): Expand epilogue.
35305 ("nonlocal_goto" pattern): Use default in call0 ABI.
35306 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
35307 emit eh_set_a0_* depending on ABI.
35308 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
35309 ("eh_set_a0_call0", "blockage"): New patterns.
35311 2015-03-03 Martin Liska <mliska@suse.cz>
35314 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
35316 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
35319 * config/rs6000/rs6000-tables.opt: Regenerate table.
35321 2015-03-03 Renlin Li <renlin.li@arm.com>
35323 * doc/md.texi (@item ^): Change ? into ^.
35325 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
35327 * doc/tm.texi: Regenerated.
35329 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
35331 * builtins.c (expand_builtin_return_addr): Add
35332 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
35333 surrounding #ifdef.
35334 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
35336 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
35338 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
35340 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
35343 2015-03-03 Martin Jambor <mjambor@suse.cz>
35344 Eric Botcazou <ebotcazou@adacore.com>
35346 * tree-sra.c (ipa_sra_check_caller_data): New type.
35347 (has_caller_p): Removed.
35348 (ipa_sra_check_caller): New function.
35349 (ipa_sra_preliminary_function_checks): Use it.
35351 2015-03-03 Martin Liska <mliska@suse.cz>
35353 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
35354 instead of if branch.
35356 2015-03-03 Martin Liska <mliska@suse.cz>
35359 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
35361 2015-03-23 Jeff Law <law@redhat.com>
35363 PR tree-optimization/65241
35364 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
35365 hash table if INSERT is true.
35367 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35370 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
35372 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35375 * config/avr/avr.c (context.h, tree-pass.h): Include them.
35376 (avr_pass_data_recompute_notes): New static variable.
35377 (avr_pass_recompute_notes): New class.
35378 (avr_register_passes): New static function.
35379 (avr_option_override): Call it.
35381 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35383 Fix various problems with specs file generation.
35386 * config.gcc (extra_gcc_objs) [avr]: Remove.
35387 * config/avr/driver-avr.c: Remove file.
35388 * config/avr/t-avr (driver-avr.o): Remove rule.
35389 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
35390 INCLUDES to build. Depend on TM_H.
35391 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
35392 build warnings. Fix non-matching types and non-existing %-codes.
35394 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
35395 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
35396 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
35397 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
35398 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
35399 (LIBGCC_SPEC): Remove definitions.
35401 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
35403 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
35404 to create a register in testing mode.
35406 2015-03-03 Martin Liska <mliska@suse.cz>
35407 Jan Hubicka <hubicka@ucw.cz>
35410 * cgraph.c (cgraph_node::has_thunk_p): New function.
35411 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
35412 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
35413 (sem_function::merge): Assert is changed.
35415 2015-03-03 Martin Liska <mliska@suse.cz>
35416 Martin Jambor <mjambor@suse.cz>
35419 * ipa-icf.c (sem_item_optimizer::execute): Change function
35420 return value to boolean.
35421 (sem_item_optimizer::merge_classes): Likewise.
35422 (ipa_icf_driver): Return TODO_remove_functions in case there's
35423 a merge operation processed.
35424 * ipa-icf.h: Change function return value to boolean.
35426 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
35429 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
35430 processor type for 64-bit little endian PowerPC.
35432 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
35433 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
35434 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
35435 printing built-in mask so it does not pass NULL pointers.
35437 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
35440 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
35443 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
35444 !ISA_HAS_FP_CONDMOVE.
35446 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
35448 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
35451 2015-03-02 Ulrich Drepper <drepper@gmail.com>
35453 * doc/invoke.texi (Options for Code Generation Conventions):
35454 Fix URL of DSO paper.
35456 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35459 * ipa-inline.c (check_callers): Looks for recursion.
35460 (inline_to_all_callers): Give up on uninlinable or recursive edges.
35461 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
35462 summary of inline clones.
35463 (do_estimate_growth_1): Fix recursion check.
35465 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35468 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
35471 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35472 Aldy Hernandez <aldyh@redhat.com>
35475 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
35476 when checking TYPE_BINFO.
35478 2015-03-02 Richard Biener <rguenther@suse.de>
35481 * ipa-icf-gimple.c: Include builtins.h.
35482 (func_checker::compare_memory_operand): Compare base alignment.
35484 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
35487 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
35488 passed by reference.
35490 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
35493 * tree-chkp.c (chkp_check_lower): Don't check against
35494 zero bounds for already instrumented functions.
35495 (chkp_check_upper): Likewise.
35496 (chkp_fini): Clean pass local data to avoid wrong reusage.
35498 2015-02-28 Martin Liska <mliska@suse.cz>
35499 Jan Hubicka <hubicka@ucw.cz>
35501 * ipa-icf.c (sem_variable::equals): Improve debug output;
35502 get variable constructor.
35503 (sem_variable::parse): Do not filter out too early; give up on
35504 volatile and register vars.
35505 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
35507 * ipa-icf.h (sem_variable::init): Do not set ctor.
35508 (sem_variable::ctor): Remove.
35510 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
35512 PR middle-end/65233
35513 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
35515 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35517 * ipa-icf.c: Include stor-layout.h
35518 (sem_function::compare_cgraph_references): Rename to ...
35519 (sem_item::compare_cgraph_references): ... this one.
35520 (sem_variable::equals_wpa): New function
35521 (sem_variable::equals): Do not check stuff already verified by
35523 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
35524 * ipa-icf.h (sem_item): Add compare_cgraph_references.
35525 (sem_function): Remove compare_cgraph_references.
35526 (sem_variable): Turns equals_wpa into non-inline.
35528 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35530 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
35531 (sem_item::add_expr): New function.
35532 (sem_function::hash_stmt): Handle operands of most statements.
35533 (sem_variable::get_hash): Hash the actual constructor.
35534 * ipa-icf.h (sem_item): Add add_expr.
35535 (sem_function): Update prototype of hash_stmt
35537 2015-02-28 Martin Liska <mliska@suse.cz>
35538 Jan Hubicka <hubicka@ucw.cz>
35541 * ipa-icf-gimple.c (func_checker::compare_function_decl):
35543 (func_checker::compare_variable_decl): Skip symtab vars.
35544 (func_checker::compare_cst_or_decl): Update.
35545 * ipa-icf.c (sem_function::parse): Do not consider aliases.
35546 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
35547 use correct symtab predicates.
35548 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
35549 (sem_variable::parse): Update comment.
35550 (sem_item_optimizer::build_graph): Consider ultimate aliases
35553 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35555 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
35558 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35560 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
35561 (sem_variable::merge) Likewise.
35563 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35565 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
35566 target; also match flag_ipa_devirt.
35568 2015-03-01 Martin Liska <mliska@suse.cz>
35569 Jan Hubicka <hubicka@ucw.cz>
35571 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
35572 Validate variable alignment.
35573 * ipa-icf.c (sem_function::equals_private): Be more precise
35574 about non-common function attributes.
35575 (sem_variable::equals): Likewise.
35577 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35580 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
35581 across COMDAT group boundary.
35583 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35586 * ipa-icf.c (clear_decl_rtl): New function.
35587 (sem_function::merge): Clear RTL before forming alias.
35588 (sem_variable::merge): Clear RTL before forming alias.
35590 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35593 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
35595 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
35597 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
35600 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35602 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
35603 a typo in the description.
35605 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35608 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35609 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35610 * lra-constraints.c: Include "params.h".
35611 (EBB_PROBABILITY_CUTOFF): Use
35612 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
35613 (lra_inheritance): Use '<' instead of '<=' for
35614 EBB_PROBABILITY_CUTOFF.
35615 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
35618 2015-02-27 Martin Liska <mliska@suse.cz>
35620 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
35621 vector length condition.
35623 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
35625 * doc/extend.texi (x86 transactional memory intrinsics):
35626 Reorganize discussion of _xbegin. Clarify that the return
35627 value is a bit mask. Expand example and move to end of section.
35629 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35630 Aldy Hernandez <aldyh@redhat.com>
35632 PR rtl-optimization/65220
35633 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
35635 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35638 * lra-remat.c (update_scratch_ops): New.
35639 (do_remat): Call it.
35640 * lra.c (lra_register_new_scratch_op): New. Take code from ...
35641 (remove_scratches): ... here.
35642 * lra-int.h (lra_register_new_scratch_op): New prototype.
35644 2015-02-27 Marek Polacek <polacek@redhat.com>
35647 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
35648 -Wformat-signedness anymore.
35650 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35652 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
35654 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
35656 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35658 * config/s390/s390.c (enum s390_builtin):
35659 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
35660 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
35661 (s390_init_builtins): Generate new builtin functions.
35662 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
35663 (s390_sfpc, s390_efpc): New pattern definitions.
35665 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35667 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
35668 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
35669 (s390_builtin_decls): New array.
35670 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
35671 (s390_builtin_decl): New function.
35672 (TARGET_BUILTIN_DECL): Define macro.
35674 2015-02-27 Richard Biener <rguenther@suse.de>
35676 PR middle-end/63175
35677 * builtins.c (get_object_alignment_2): Make sure to re-apply
35678 the ANDed mask after recursing to its operand gets us a new
35679 misalignment bit position.
35681 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
35682 Martin Liska <mliska@suse.cz>
35685 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
35686 Use address_matters_p.
35687 (redirect_all_callers, set_addressable): New functions.
35688 (sem_function::merge): Reorganize and fix merging issues.
35689 (sem_variable::merge): Likewise.
35690 (sem_variable::compare_sections): Remove.
35691 * common.opt (fmerge-all-constants, fmerge-constants): Remove
35693 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
35695 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
35697 (address_matters_1): New function.
35698 (symtab_node::address_matters_p): New function.
35699 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
35700 check for merged flag.
35701 * cgraph.h (address_matters_p): Declare.
35702 (symtab_node::address_taken_from_non_vtable_p): Remove.
35703 (symtab_node::address_can_be_compared_p): New method.
35704 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
35705 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
35707 (comdat_can_be_unshared_p_1) Use address_matters_p.
35708 (update_vtable_references): Fix formating.
35709 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
35710 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
35711 * cgraphclones.c: Preserve merged and icf_merged flags.
35713 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
35715 * doc/extend.texi (Function Attributes): Fix spelling and typos.
35716 (Label Attributes): Likewise.
35717 (Cilk Plus Builtins): Likewise.
35718 (ARC SIMD Built-in Functions): Likewise.
35719 (ARM C Language Extensions (ACLE)): Likewise.
35720 (PowerPC Built-in Functions): Likewise.
35721 (PowerPC Hardware Transactional Memory Built-in Functions):
35724 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35726 PR tree-optimization/65216
35727 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
35728 new stmt and new SSA_NAME for lhs whenever the arguments have
35729 changed and weren't just swapped. Fix comment typo.
35731 PR tree-optimization/65215
35732 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
35733 for PDP endian targets.
35734 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
35735 Fix up formatting issues.
35736 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
35737 size is smaller than the original, adjust MEM_REF offset by the
35738 difference of sizes. Use is_gimple_mem_ref_addr instead of
35739 is_gimple_min_invariant test to avoid adding address temporaries.
35741 2015-02-26 Martin Liska <mliska@suse.cz>
35742 Jan Hubicka <hubicka@ucw.cz>
35745 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
35746 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
35747 (sem_item_optimizer::process_cong_reduction): Include division by
35748 sensitive references.
35749 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
35750 * ipa-ref.c (ipa_ref::address_matters_p): New function.
35751 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
35753 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
35756 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
35758 * config/avr/avr.c: Same.
35759 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
35760 Refuse any constant address not in 0..0xbf.
35761 * config/avr/avr.md (*mov<mode>, *movsf): Remove
35762 tiny_valid_direct_memory_access_range from insn conditions.
35763 (mov<mode>): Don't special-case expansion of avrtiny addresses.
35765 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
35768 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
35769 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
35770 * config/sh/predicates.md (const_logical_operand): New predicate.
35771 * config/sh/sh.md: Add new peephole2 patterns.
35773 2015-02-26 Marek Polacek <polacek@redhat.com>
35776 * ipa-inline.c (early_inliner): Recompute inline parameters.
35778 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35781 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
35782 instructions with TImode operands are included in the analysis.
35784 2015-02-26 Sebastian Pop <s.pop@samsung.com>
35786 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
35787 of an EDGE_FSM_THREAD.
35789 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
35791 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
35793 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
35796 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
35798 2015-02-26 Sebastian Pop <s.pop@samsung.com>
35800 PR tree-optimization/65048
35801 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
35802 (thread_through_all_blocks): Call valid_jump_thread_path.
35803 Remove invalid FSM jump-thread paths.
35805 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35807 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
35808 (ipa_write_optimization_summaries): Likewise.
35809 * tree-streamer.h: Include data-streamer.h.
35810 (streamer_mode_table): Declare extern variable.
35811 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
35812 * lto-streamer-out.c (lto_output_init_mode_table,
35813 lto_write_mode_table): New functions.
35814 (produce_asm_for_decls): Call lto_write_mode_table when streaming
35816 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
35817 (lto_create_simple_input_block): Add mode_table argument to the
35818 lto_input_block constructors.
35819 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
35821 * data-streamer-in.c (string_for_index): Likewise.
35822 * ipa-inline-analysis.c (inline_read_section): Likewise.
35823 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
35824 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
35825 * lto-streamer-in.c (lto_read_body_or_constructor,
35826 lto_input_toplevel_asms): Likewise.
35827 (lto_input_mode_table): New function.
35828 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
35829 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
35830 Use bp_pack_machine_mode.
35831 * real.h (struct real_format): Add name field.
35832 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
35833 (class lto_input_block): Add mode_table member.
35834 (lto_input_block::lto_input_block): Add mode_table_ argument,
35835 initialize mode_table.
35836 (struct lto_file_decl_data): Add mode_table field.
35837 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
35838 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
35839 unpack_ts_decl_common_value_fields,
35840 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
35841 * tree-streamer.c (streamer_mode_table): New variable.
35842 * real.c (ieee_single_format, mips_single_format,
35843 motorola_single_format, spu_single_format, ieee_double_format,
35844 mips_double_format, motorola_double_format,
35845 ieee_extended_motorola_format, ieee_extended_intel_96_format,
35846 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
35847 ibm_extended_format, mips_extended_format, ieee_quad_format,
35848 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
35849 decimal_single_format, decimal_double_format, decimal_quad_format,
35850 ieee_half_format, arm_half_format, real_internal_format): Add name
35852 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
35854 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
35857 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
35858 reordering for selective scheduling.
35860 2015-02-26 Terry Guo <terry.guo@arm.com>
35862 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
35863 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
35864 (arm_arch_no_volatile_ce): Declare new global variable.
35865 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
35866 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
35867 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
35868 (TARGET_NO_VOLATILE_CE): New macro.
35869 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
35870 volatile memory access in IT block
35872 2015-02-25 Kai Tietz <ktietz@redhat.com>
35874 PR tree-optimization/61917
35875 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
35876 that reduc_def_stmt is null.
35878 2015-02-25 Martin Liska <mliska@suse.cz>
35880 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
35881 hard register variables.
35883 2015-02-25 Kai Tietz <ktietz@redhat.com>
35886 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
35887 (symtab::noninterposable_alias): Likewise.
35889 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
35892 * config/i386/i386.c (ix86_function_arg_regno_p): Support
35894 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
35896 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
35899 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
35900 as split condition; force split via '#' in output pattern.
35902 2015-02-25 Richard Biener <rguenther@suse.de>
35903 Kai Tietz <ktietz@redhat.com>
35905 PR tree-optimization/61917
35906 * tree-vect-loop.c (vectorizable_reduction): Allow
35907 vect_internal_def without reduction to exit graceful.
35909 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35912 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
35913 only with NONDEBUG_INSN_P.
35915 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35917 Use variadic macros with avr-log.c.
35919 * config/avr/avr-protos.h (avr_vdump): New prototype.
35920 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
35921 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
35922 * config/avr/avr-log.c: Adjust comments.
35923 (avr_vdump): New function.
35924 (avr_vadump): Pass caller as 2nd argument instead of format string.
35925 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
35926 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
35928 2015-02-25 Jakub Jelinek <jakub@redhat.com>
35931 * target.def (target_option_stream_in): New target hook.
35932 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
35933 targetm.target_option.post_stream_in if non-NULL.
35934 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
35935 * doc/tm.texi: Updated.
35936 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
35938 (TARGET_OPTION_POST_STREAM_IN): Redefine.
35940 2015-02-24 Jeff Law <law@redhat.com>
35943 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
35944 of operand 0 and operand 2.
35945 (zero_cost_loop_end, loop_end): Similarly.
35947 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
35949 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
35952 2015-02-24 DJ Delorie <dj@redhat.com>
35954 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
35955 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
35956 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
35957 instead of hardcoding SImode.
35959 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
35961 * omp-low.c (create_omp_child_function): Tag entrypoint
35962 functions with a special attribute.
35964 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35967 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
35969 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
35971 PR rtl-optimization/65123
35972 * lra-remat.c (operand_to_remat): Check hard regs in insn
35975 2015-02-24 Nick Clifton <nickc@redhat.com>
35977 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
35980 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
35983 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
35984 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
35985 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
35986 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
35987 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
35988 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
35989 (BUILT_IN_GOACC_PARALLEL): Specify as
35990 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
35991 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
35992 * builtin-types.def
35993 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35994 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35995 Remove function types.
35996 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
35997 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35998 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35999 New function types.
36001 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
36003 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
36005 2015-02-24 Jakub Jelinek <jakub@redhat.com>
36007 PR tree-optimization/65170
36008 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
36009 if val[1] < 0, clear also val[2] and return 3.
36011 2015-02-24 Alan Modra <amodra@gmail.com>
36014 * config/rs6000/rs6000.c (get_memref_parts): Only return true
36015 when *base is a reg. Handle nested plus addresses. Simplify
36018 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
36020 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
36021 use natural alignment when optimizing for size.
36023 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
36026 * config/sh/sh.md (movsicc_true+3): Remove peephole.
36027 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
36028 * config/sh/sh.c (replace_n_hard_rtx): Remove.
36030 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
36033 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
36034 too big for a wide_int. Implement missing wrapping operation.
36036 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
36039 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
36040 instead of const_int 4294901760.
36042 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
36044 * config/avr/t-avr: Fix typo in comment.
36046 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
36048 * doc/rtl.texi (fma): Clarify documentation.
36050 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
36053 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
36054 over input_location.
36056 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36058 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
36059 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
36060 restrict alignments to absolute_biggest_alignment.
36061 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
36063 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
36064 * doc/tm.texi: Regenerate.
36065 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
36067 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
36070 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
36072 2015-02-20 Richard Biener <rguenther@suse.de>
36074 PR tree-optimization/65136
36075 * tree-ssa-propagate.c: Include cfgloop.h.
36076 (replace_phi_args_in): Avoid replacing loop latch edge PHI
36077 arguments with constants.
36079 2015-02-20 Jakub Jelinek <jakub@redhat.com>
36080 Martin Liska <mliska@suse.cz>
36083 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
36084 don't try to create_thunk if stdarg_p. If
36085 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
36086 redirect_callers if possible.
36087 (sem_item_optimizer::execute): Call unregister_hooks here...
36088 (ipa_icf_driver): ... instead of here.
36090 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36092 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
36093 Mark operand 0 as earlyclobber in 2nd alternative.
36094 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
36095 Write negated shift amount into QI lowpart operand 0 and use it
36097 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
36099 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36101 * cgraph.h (clone_function_name_1): Declare.
36102 * cgraphclones.c (clone_function_name_1): New function.
36103 (clone_function_name): Use it.
36104 * lto-partition.c: Include "stringpool.h".
36105 (must_not_rename, maybe_rewrite_identifier)
36106 (validize_symbol_for_target): New static functions.
36107 (privatize_symbol_name): Use must_not_rename.
36108 (promote_symbol): Call validize_symbol_for_target.
36109 (lto_promote_cross_file_statics): Likewise.
36110 (lto_promote_statics_nonwpa): Likewise.
36112 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
36115 * config/avr/avr.md (pushhi_insn): New insn.
36116 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
36118 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36119 Jakub Jelinek <jakub@redhat.com>
36121 * tree-streamer.c (preload_common_nodes): Don't preload
36122 TI_VA_LIST* for offloading.
36123 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
36126 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
36128 * config/pa/pa.c (pa_emit_move_sequence): Always force
36129 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
36132 * config/pa/pa.c (pa_reloc_rw_mask): New function.
36133 (TARGET_ASM_RELOC_RW_MASK): Define.
36134 (pa_cannot_force_const_mem): Revert previous change.
36136 2015-02-19 Martin Jambor <mjmabor@suse.cz>
36137 Jan Hubicka <hubicka@ucw.cz>
36140 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
36141 across jump functions.
36143 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
36145 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
36147 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
36149 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
36151 2015-02-19 Richard Henderson <rth@redhat.com>
36153 PR middle-end/65074
36154 * varasm.c (default_binds_local_p_2): Don't test node->definition;
36155 test DECL_EXTERNAL independent of symtab_node.
36157 2015-02-19 Jakub Jelinek <jakub@redhat.com>
36160 * varpool.c (varpool_node::get_constructor): Return early
36161 if this->lto_file_data is NULL.
36163 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36165 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
36166 (rank_for_schedule_debug): Update.
36167 (ready_sort): Make static. Move sorting logic to ...
36168 (ready_sort_debug, ready_sort_real): New static functions.
36169 (schedule_block): Sort both debug insns and real insns in preparation
36170 for ready list trimming. Improve debug output.
36171 * sched-int.h (ready_sort): Remove global declaration.
36173 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
36175 * ipa-icf.c (sem_function::equals_private): Adjust.
36176 (sem_function::bb_dict_test): Take a vec<int> * instead of
36178 * ipa-icf.h (bb_dict_test): Likewise.
36180 2015-02-18 Jakub Jelinek <jakub@redhat.com>
36182 PR gcov-profile/64634
36183 * tree-eh.c (frob_into_branch_around): Fix up typos
36184 in function comment.
36185 (lower_catch): Put eh_seq resulting from EH lowering of
36186 the cleanup sequence after the cleanup rather than before it.
36188 2015-02-18 Tom de Vries <tom@codesourcery.com>
36190 * common.opt (fstdarg-opt): New option.
36191 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
36192 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
36193 (@item -fstdarg-opt): New item.
36195 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
36198 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
36199 for common symbols.
36201 2015-02-18 Jakub Jelinek <jakub@redhat.com>
36203 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
36205 (ALL_HOST_OBJS): Add mkoffload.o.
36206 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
36208 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
36210 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
36211 (compare_virtual_tables): Be smarter about skipping typeinfos;
36212 do sane output on virtual table table mismatch.
36213 (warn_odr): Be ready for forward declarations of enums;
36214 output sane info on base mismatch and virtual table mismatch.
36215 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
36216 when only one type is polymorphic.
36217 (get_odr_type): Fix hashtable corruption.
36218 (dump_odr_type): Dump mangled names.
36220 2015-02-18 Richard Biener <rguenther@suse.de>
36222 PR tree-optimization/65063
36223 * tree-predcom.c (determine_unroll_factor): Return 1 if we
36224 have replaced looparound PHIs.
36226 2015-02-18 Martin Liska <mliska@suse.cz>
36228 * lto-streamer.c (lto_streamer_init): Encapsulate
36229 streamer_check_handled_ts_structures with checking macro.
36231 2015-02-18 Jakub Jelinek <jakub@redhat.com>
36234 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
36235 section if !implicit_section.
36236 (cgraph_node::create_version_clone_with_body): Likewise.
36237 * trans-mem.c (ipa_tm_create_version): Likewise.
36239 2015-02-18 Richard Biener <rguenther@suse.de>
36241 PR tree-optimization/62217
36242 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
36245 2015-02-18 Marek Polacek <polacek@redhat.com>
36248 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
36249 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
36250 is in range [-16K, -1]. Don't issue run-time error if
36251 (ptr > ptr + offset).
36253 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
36255 * doc/install.texi (nvptx-*-none): New section.
36256 * doc/invoke.texi (Nvidia PTX Options): Likewise.
36257 * config/nvptx/nvptx.opt: Update.
36259 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
36260 (access_check): New functions, copied from
36261 config/i386/intelmic-mkoffload.c.
36262 (main): For non-installed testing, look in all COMPILER_PATHs for
36265 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
36267 2015-02-18 Andrew Pinski <apinski@cavium.com>
36268 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36270 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
36271 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
36273 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
36275 * ipa-visibility.c (function_and_variable_visibility): Only
36276 check locality if node is not already local.
36277 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36278 call_for_symbol_and_aliases instead of
36279 call_for_symbol_thunks_and_aliases.
36280 (ipa_inline): Likewise.
36281 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36282 first walk aliases.
36283 * ipa.c (symbol_table::remove_unreachable_nodes): Use
36284 call_for_symbol_and_aliases.
36285 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36286 (ipa_propagate_frequency_1): Use it; use opt_for_fn
36287 (ipa_propagate_frequency): Update.
36288 (ipa_profile): Add opt_for_fn gueards.
36290 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
36292 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
36293 * doc/invoke.texi (SH options): Document it.
36294 * config/sh/sh.c (sh_insn_length_adjustment): Check
36295 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
36297 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
36299 * common.opt (fipa-cp-alignment): New.
36300 * ipa-cp.c (ipcp_store_alignment_results): Check
36301 flag_ipa_cp_alignment.
36302 * opts.c (default_options_table): Enable -fipa-cp-alignment for
36304 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
36305 * doc/invoke.texi: Document -fipa-cp-alignment.
36307 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
36310 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
36311 to nil. Adjust comments.
36313 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
36315 * ipa-visibility.c (function_and_variable_visibility): Only
36316 check locality if node is not already local.
36317 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36318 call_for_symbol_and_aliases instead of
36319 call_for_symbol_thunks_and_aliases.
36320 (ipa_inline): Likewise.
36321 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36322 first walk aliases.
36323 * ipa.c (symbol_table::remove_unreachable_nodes): Use
36324 call_for_symbol_and_aliases.
36325 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36326 (ipa_propagate_frequency_1): Use it; use opt_for_fn
36327 (ipa_propagate_frequency): Update.
36328 (ipa_profile): Add opt_for_fn guards.
36330 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
36332 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
36333 skipping of "strange" tokens.
36335 2015-02-17 Jeff Law <law@redhat.com>
36337 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
36340 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
36342 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
36343 as forcing a HARD_DEP between instructions, thereby
36344 disallowing rewriting to break dependencies.
36346 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
36348 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
36349 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
36350 variables in boundary that have no inlitalizer encoded and are
36352 * varasm.c (default_binds_local_p_2): External definitions do not
36353 count as definitions here.
36355 2015-02-16 Jeff Law <law@redhat.com>
36357 PR tree-optimization/64823
36358 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
36360 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36361 threading through blocks with PHIs, but no statements.
36362 (thread_through_normal_block): Distinguish between blocks where
36363 we did not process all the statements and blocks with no statements.
36365 2015-02-16 Jakub Jelinek <jakub@redhat.com>
36366 James Greenhalgh <james.greenhalgh@arm.com>
36369 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
36370 section if not linkonce. Fix up formatting.
36371 (cgraph_node::create_version_clone_with_body): Copy section.
36372 * trans-mem.c (ipa_tm_create_version): Likewise.
36374 2015-02-16 Richard Biener <rguenther@suse.de>
36376 PR tree-optimization/65077
36377 * tree-ssa-structalias.c (get_constraint_for_1): Handle
36378 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
36379 (find_func_aliases): Allow float values to carry pointers again.
36381 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
36383 * doc/install.texi (Specific): Reorder targets list to put
36384 aarch64 in alphabetical order. Add a link to aarch64*-*-*
36387 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36388 David Edelsohn <dje.gcc@gmail.com>
36391 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
36392 mapping class to external variable or function reference.
36393 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
36396 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
36399 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
36400 ASM_WEAKEN_DECL if defined.
36402 2015-02-16 Richard Biener <rguenther@suse.de>
36405 * varasm.c (default_file_start): For LTO produced units
36406 emit <artificial> as file directive.
36408 2015-02-16 Richard Biener <rguenther@suse.de>
36410 PR tree-optimization/63593
36411 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
36412 stmts and releasing SSA names until...
36413 (execute_pred_commoning): ... after processing all chains.
36415 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
36418 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
36419 external functions.
36421 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
36423 * doc/bugreport.texi: Adjust section titles throughout the file
36424 to use "Title Case".
36425 * doc/extend.texi: Likewise.
36426 * doc/gcov.texi: Likewise.
36427 * doc/implement-c.texi: Likewise.
36428 * doc/implement-cxx.texi: Likewise.
36429 * doc/invoke.texi: Likewise.
36430 * doc/objc.texi: Likewise.
36431 * doc/standards.texi: Likewise.
36432 * doc/trouble.texi: Likewise.
36434 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
36436 * cgraph.h (symtab_node::has_aliases_p): Simplify.
36437 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
36438 * tree.c (lookup_binfo_at_offset): Make static.
36439 (get_binfo_at_offset): Do not shadow offset; add explanatory
36442 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
36444 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
36445 for all floading point loads and stores except those using a register
36447 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
36450 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
36452 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
36453 (do_estimate_growth_1): Record if any uninlinable edge was seen.
36454 (estimate_growth): Handle uninlinable edges correctly.
36455 (check_callers): New.
36456 (growth_likely_positive): Handle aliases correctly.
36458 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
36460 * ipa-chkp.c: Use iterate_direct_aliases.
36461 * symtab.c (resolution_used_from_other_file_p): Move inline.
36462 (symtab_node::create_reference): Fix formating.
36463 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36464 (symtab_node::iterate_reference): Move inline.
36465 (symtab_node::iterate_referring): Move inline.
36466 (symtab_node::iterate_direct_aliases): Move inline.
36467 (symtab_node::used_from_object_file_p_worker): Inline into ...
36468 (symtab_node::used_from_object_file_p): ... this one; move inline.
36469 (symtab_node::call_for_symbol_and_aliases): Move inline;
36470 use iterate_direct_aliases.
36471 (symtab_node::call_for_symbol_and_aliases_1): New method.
36472 (cgraph_node::call_for_symbol_and_aliases): Move inline;
36473 use iterate_direct_aliases.
36474 (cgraph_node::call_for_symbol_and_aliases_1): New method.
36475 (varpool_node::call_for_node_and_aliases): Rename to ...
36476 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
36477 use iterate_direct_aliases.
36478 (varpool_node::call_for_symbol_and_aliases_1): New method.
36479 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
36480 (ipa_discover_readonly_nonaddressable_var): Update.
36481 * ipa-devirt.c: Fix formating.
36482 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
36484 (cgraph_node::call_for_symbol_and_aliases): Move inline.
36485 (cgraph_node::call_for_symbol_and_aliases_1): New function..
36486 * cgraph.h (used_from_object_file_p_worker): Remove.
36487 (resolution_used_from_other_file_p): Move inline.
36488 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36489 (symtab_node::iterate_reference): Move inline.
36490 (symtab_node::iterate_referring): Move inline.
36491 (symtab_node::iterate_direct_aliases): Move inline.
36492 (symtab_node::used_from_object_file_p_worker): Inline into ...
36493 (symtab_node::used_from_object_file_p): Move inline.
36494 * tree-emutls.c (ipa_lower_emutls): Update.
36495 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
36496 (varpool_node::call_for_node_and_aliases): Remove.
36498 2015-02-14 Jakub Jelinek <jakub@redhat.com>
36500 PR tree-optimization/62209
36501 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
36502 op == range->exp, insert seq and gimplified code after labels
36503 instead of after the phi.
36505 2015-02-13 Jeff Law <law@redhat.com>
36508 Revert my change for tree-optimization/64823.
36510 2015-02-13 Jakub Jelinek <jakub@redhat.com>
36512 PR tree-optimization/65053
36513 * tree-ssa-phiopt.c (value_replacement): When moving assign before
36514 cond, either reset VR on lhs or set it to phi result VR.
36516 2015-02-13 Jeff Law <law@redhat.com>
36518 PR tree-optimization/64823
36519 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
36520 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36521 threading through blocks with PHIs, but no statements.
36522 (thread_through_normal_block): Distinguish between blocks where
36523 we did not process all the statements and blocks with no statements.
36525 PR rtl-optimization/47477
36526 * match.pd (convert (plus/minus (convert @0) (convert @1): New
36527 simplifier to narrow arithmetic.
36529 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
36532 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
36533 polymorphic call info when type is not known to be preserved.
36535 2015-02-13 Maritn Jambor <mjambor@suse.cz>
36538 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
36539 (inline_call): Use it.
36541 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
36543 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
36544 GOMP_DEVICE_NVIDIA_PTX.
36546 2015-02-13 Jakub Jelinek <jakub@redhat.com>
36549 * stmt.c (emit_case_nodes): Use void_type_node instead of
36550 NULL_TREE as LABEL_DECL type.
36552 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
36554 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
36556 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
36557 symbolic references to data to be forced to constant memory on the
36560 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
36562 PR tree-optimization/65002
36563 * tree-cfg.c (pass_data_fixup_cfg): Don't update
36565 * tree-sra.c (some_callers_have_no_vuse_p): New.
36566 (ipa_early_sra): Reject functions whose callers
36567 assume function is read only.
36569 2015-02-13 Richard Biener <rguenther@suse.de>
36572 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
36573 for LTO produced CUs.
36575 2015-02-13 Bin Cheng <bin.cheng@arm.com>
36577 PR tree-optimization/64705
36578 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
36579 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
36580 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
36581 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
36582 expand_simple_operations.
36584 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
36585 Richard Henderson <rth@redhat.com>
36588 * cgraphunit.c (cgraph_node::finalize_function): Set definition
36589 before notice_global_symbol.
36590 (varpool_node::finalize_decl): Likewise.
36591 * varasm.c (default_binds_local_p_2): Rename from
36592 default_binds_local_p_1, add weak_dominate argument. Use direct
36593 returns instead of assigning to local variable. Unify varpool and
36594 cgraph paths via symtab_node. Reject undef weak variables before
36595 testing visibility. Reorder tests for simplicity.
36596 (default_binds_local_p): Use default_binds_local_p_2.
36597 (default_binds_local_p_1): Likewise.
36598 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
36600 (default_elf_asm_output_external): Emit visibility when specified.
36602 2015-02-13 Alan Modra <amodra@gmail.com>
36604 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
36605 code setting up r11 for out-of-line fp restore.
36607 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
36609 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
36610 (muser-mode): Likewise.
36612 2015-02-13 Alan Modra <amodra@gmail.com>
36614 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
36615 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
36617 2015-02-12 David Howells <dhowells@redhat.com>
36619 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
36621 * tree-ssa-uninit.c (dump_predicates): Likewise.
36622 * opts.c (print_filtered_help): Likewise.
36624 2015-02-12 Jakub Jelinek <jakub@redhat.com>
36626 * dwarf2out.c (output_die): Use "%s", name instead of name to
36627 avoid -Wformat-security warning.
36629 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
36630 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36631 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
36632 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36634 2015-02-12 Jason Merrill <jason@redhat.com>
36636 * common.opt (-flifetime-dse): New.
36638 2015-02-12 Jakub Jelinek <jakub@redhat.com>
36641 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
36643 PR tree-optimization/65014
36644 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
36645 use original second operand of arg0 or arg1 instead of
36646 that adjusted by STRIP_NOPS.
36648 2015-02-11 Jeff Law <law@redhat.com>
36651 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
36652 that needs to be queued, just queue it for a single cycle.
36654 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
36656 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
36657 bodies of thunks; comment on why.
36658 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
36659 symbols are extern.
36661 2015-02-11 Richard Henderson <rth@redhat.com>
36664 * tree-eh.c (mark_reachable_handlers): Mark source and destination
36665 regions of __builtin_eh_copy_values.
36667 2015-02-11 Jakub Jelinek <jakub@redhat.com>
36669 PR middle-end/65003
36670 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
36671 ultimate alias is MEM with SYMBOL_REF satisfying
36672 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
36673 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
36675 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
36677 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
36678 "diagnostic-core.h".
36679 (main): Initialize progname, and call diagnostic_initialize.
36681 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
36682 instead of __OPENMP_TARGET__.
36684 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
36685 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
36686 hard-coding PTX_ID.
36688 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
36690 * doc/sourcebuild.texi (pie_enabled): Document.
36692 2015-02-11 Martin Liska <mliska@suse.cz>
36695 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
36696 a return value for call to a function that is noreturn.
36698 2015-02-11 Richard Biener <rguenther@suse.de>
36701 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
36704 2015-02-11 Andrew Pinski <apinski@cavium.com>
36707 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
36708 Change the first argument type to size_type_node and add another
36710 (aarch64_simd_expand_builtin): Handle the new argument to
36711 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
36712 print an out when the first two arguments are not
36713 nonzero integer constants.
36714 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
36715 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
36717 2015-02-11 Jakub Jelinek <jakub@redhat.com>
36720 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
36721 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
36722 (ix86_set_current_function): Rewritten.
36723 (ix86_add_new_builtins): Temporarily clear current_target_pragma
36724 when creating builtin fndecls.
36726 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36729 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
36731 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
36732 have no comdat group.
36733 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
36734 (lto_output_varpool_node): Always output alias info.
36735 (output_refs): Output refs of boundary aliases, too.
36736 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
36737 (output_symtab): Output call eges in thunks in boundary.
36738 (get_alias_symbol): Remove.
36739 (input_node, input_varpool_node): Do not special case weakrefs.
36740 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
36741 alias and thunks targets in the boundary; do not take removed symbols
36742 from their comdat groups.
36743 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
36744 (cgraph_node::global_info): Remove.
36745 (cgraph_node::rtl_info): Look through aliases and thunks.
36746 * cgrpah.h (global_info): Remove.
36747 (non_local_p): Remove.
36749 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36750 Sandra Loosemore <sandra@codesourcery.com>
36752 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
36753 to inline asm. List dialects in proper order.
36755 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36756 Sandra Loosemore <sandra@codesourcery.com>
36758 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
36760 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36762 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
36763 modified) reference to Solaris.
36765 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
36767 * doc/extend.texi (Extended Asm): Fix typos.
36769 2015-02-10 Jakub Jelinek <jakub@redhat.com>
36772 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
36774 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
36777 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
36778 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
36779 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
36780 * config/sh/constraints.md (Ara, Add): New constraints.
36781 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
36783 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
36784 atomic_mem_operand_0. Don't use force_reg on the memory address.
36785 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
36786 Sra constraint. Convert to insn_and_split. Add workaround for
36788 (atomic_compare_and_swap<mode>_hard): Copy to
36789 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
36790 Use atomic_mem_operand_0 predicate.
36791 (atomic_compare_and_swap<mode>_soft_gusa,
36792 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
36793 AraAdd constraints.
36794 (atomic_compare_and_swap<mode>_soft_tcb,
36795 atomic_compare_and_swap<mode>_soft_imask,
36796 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
36797 atomic_mem_operand_0 predicate and SraSdd constraints.
36798 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
36800 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
36801 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
36802 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
36803 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
36804 force_reg on the memory address.
36805 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
36806 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
36807 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
36808 atomic_mem_operand_1 predicate and Sra constraint.
36809 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
36810 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
36811 Use atomic_mem_operand_1 predicate.
36812 (atomic_<fetchop_name><mode>_hard): Copy to
36813 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
36814 Use atomic_mem_operand_1 predicate.
36815 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
36816 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
36817 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
36818 insn_and_split. Use atomic_mem_operand_1 predicate.
36819 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
36820 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
36821 Use atomic_mem_operand_1 predicate.
36822 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
36823 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
36824 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
36825 in generated insn with original mem operand before emitting the insn.
36826 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
36827 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
36828 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
36829 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
36830 Use atomic_mem_operand_1 predicate and AraAdd constraints.
36831 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
36832 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
36833 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
36834 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
36835 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
36836 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
36837 atomic_not_fetch<mode>_soft_tcb,
36838 atomic_<fetchop_name>_fetch<mode>_soft_imask,
36839 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
36840 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
36841 Use atomic_mem_operand_1 predicate and SraSdd constraints.
36843 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
36845 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
36846 and 3 earlyclobber operands.
36848 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36850 * common.opt (fstack-reuse): Mark as optimization.
36852 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36855 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
36857 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
36859 PR tree-optimization/64326
36860 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
36862 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
36864 PR gcov-profile/61889
36865 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
36867 2015-02-10 Richard Biener <rguenther@suse.de>
36869 PR tree-optimization/64995
36870 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
36871 value we use is final.
36872 (visit_reference_op_store): Always valueize op.
36873 (visit_use): Properly valueize vuses.
36875 2015-02-10 Richard Biener <rguenther@suse.de>
36877 PR tree-optimization/64909
36878 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
36879 pass a scalar-stmt count estimate to the cost model.
36880 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
36882 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
36884 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
36885 enabled by default together with var-tracking.
36887 2015-02-10 Nick Clifton <nickc@redhat.com>
36889 * config/rl78/rl78.c: Remove DIV attribute code accidentally
36890 included in previous rl78 commit.
36892 2015-02-10 Richard Biener <rguenther@suse.de>
36894 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
36895 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
36896 return the bitpack.
36898 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36900 PR gcov-profile/61889
36901 * config.in: regenerate.
36902 * configure.in: Likewise.
36903 * configure.ac: Check for ftw.h.
36904 * gcov-tool.c: Check for ftw.h before using nftw.
36906 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36909 * ipa-visibility.c (update_visibility_by_resolution_info): Only
36910 assert when not in lto mode.
36912 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
36914 * ira-color.c (setup_left_conflict_sizes_p): Simplify
36915 initialization/assignment of conflict_size.
36917 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
36920 * ipa-cp.c (gather_caller_stats): Skip thunks.
36921 (propagate_constants_topo): Skip aliases.
36923 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
36926 * config/sh/sh.c (sh_option_override): Don't change
36927 -freorder-blocks-and-partition to -freorder-blocks even when
36928 unwinding is enabled.
36929 (sh_can_follow_jump): Return false if the followee jump is
36930 a crossing jump when -freorder-blocks-and-partition is specified.
36931 * config/sh/sh.md (*jump_compact_crossing): New insn.
36933 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
36934 Kaz Kojima <kkojima@gcc.gnu.org>
36937 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
36938 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
36939 (sh_can_redirect_branch): Rename to ...
36940 (sh_can_follow_jump): ... this. Constify argument types.
36941 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
36942 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
36943 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
36944 * doc/tm.texi: Regenerate.
36946 2015-02-09 Jakub Jelinek <jakub@redhat.com>
36949 * builtins.c (expand_builtin): Call targetm.expand_builtin
36950 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
36952 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36955 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
36957 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36960 * ipa-icf.c (set_local): New function.
36961 (sem_function::merge): Use it.
36963 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36965 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
36966 (add_type_duplicate): Fix comparison of BINFOs.
36968 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36970 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
36971 on getting VOID pointer.
36973 2015-02-09 Jakub Jelinek <jakub@redhat.com>
36976 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
36979 2015-02-09 Richard Biener <rguenther@suse.de>
36981 * genmatch.c (replace_id): Copy expr_type.
36983 2015-02-09 Richard Biener <rguenther@suse.de>
36985 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
36986 (streamer_write_tree_bitfields): Declare.
36987 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
36988 properly unpack padding.
36989 (unpack_value_fields): Inline ...
36990 (streamer_read_tree_bitfields): ... here.
36991 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
36992 and properly add padding bits.
36993 (streamer_pack_tree_bitfields): Fold into ...
36994 (streamer_write_tree_bitfields): ... this new function,
36995 exposing the bitpack object.
36996 * lto-streamer-out.c (lto_write_tree_1): Call
36997 streamer_write_tree_bitfields.
36999 2015-02-09 Richard Biener <rguenther@suse.de>
37001 PR tree-optimization/54000
37002 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
37003 (struct ivopts_data): Add loop_loc member.
37004 (tree_ssa_iv_optimize_loop): Dump loop location.
37005 (create_new_ivs): Likewise, also dump number of IVs generated.
37007 2015-02-09 Martin Liska <mliska@suse.cz>
37009 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
37010 just if not yet registered.
37011 (ipa_icf_generate_summary): Register callgraph hooks.
37013 2015-02-08 Andrew Pinski <apinski@cavium.com>
37015 * config/aarch64/aarch64.c (gty_dummy): Delete.
37017 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37020 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
37021 (cgraph_node::local_p): Remove thunk related FIXME.
37023 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37026 * i386.c (ix86_function_regparm): Look through aliases to see if callee
37027 is local and optimized.
37028 (ix86_function_sseregparm): Likewise; also use target's SSE math
37029 settings; error out instead of silently generating wrong code
37031 (init_cumulative_args): Look through aliases.
37033 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37036 * ipa-split.c (execute_split_functions): Split if function has aliases.
37038 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37041 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
37042 aliases before trying to expand it.
37043 (cgraph_node::expand_thunk): Fix formating.
37045 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
37047 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
37048 (Using Assembly Language with C): Expand introduction.
37049 (Basic Asm): Copy-edit. Add more information about uses of
37051 (Extended Asm): Copy-edit. Document new escape syntax and
37053 (Global Reg Vars): Copy-edit.
37054 (Local Reg Vars): Likewise.
37056 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
37060 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
37061 (DBX_CONTIN_CHAR): Define.
37063 2015-02-06 Sebastian Pop <s.pop@samsung.com>
37064 Brian Rzycki <b.rzycki@samsung.com>
37066 PR tree-optimization/64878
37067 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
37068 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
37069 Stop recursion at loop phi nodes after having visited a loop phi node.
37071 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37073 * toplev.c (process_options): Change flag_ipa_ra before creating
37074 optimization_{default,current}_node.
37077 * cgraphunit.c (cgraph_node::expand_thunk): If
37078 restype is not is_gimple_reg_type nor the thunk_fndecl
37079 returns aggregate_value_p, set restmp to a temporary variable
37080 instead of resdecl.
37082 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
37084 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
37086 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
37089 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
37090 add a general secondary reload handler for SDmode, unless we have
37091 both read/write support for SDmode.
37093 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37095 PR middle-end/64937
37096 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
37097 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
37098 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
37099 1 before, push it to abstract_vec.
37100 (dwarf2out_abstract_function): Adjust caller. Don't call
37101 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
37102 DECL_ABSTRACT_P flags for all abstract_vec elts.
37104 2015-02-06 Renlin Li <renlin.li@arm.com>
37106 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
37108 * tree-ssa.c (execute_update_addresses_taken): Likewise.
37110 2015-02-06 Jeff Law <law@redhat.com>
37113 * config/h8300/h8300.c (push): New argument "in_prologue".
37114 Pass "in_prologue" along to "F".
37115 (h8300_push_pop): Corresponding changes.
37116 (h8300_expand_prologue): Likewise.
37117 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
37119 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37121 PR rtl-optimization/64957
37123 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
37124 IOR rather than for AND.
37126 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
37129 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
37130 of shift-add and (add + shift) operations. Rename local variable.
37132 2015-02-05 Jeff Law <law@redhat.com>
37135 * config/h8300/constraints.md (U): Correctly dectect
37136 "eightbit_data" memory addresses.
37137 * config/h8300/h8300.c (eightbit_constant_address_p): Also
37138 handle (const (plus (symbol_ref (x)))) where x is declared
37139 as an 8-bit data memory address.
37140 * config/h8300/h8300.md (call, call_value): Correctly detect
37141 "funcvec" functions.
37144 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
37145 24 to 28 bits for the H8/300.
37147 2015-02-06 Alan Modra <amodra@gmail.com>
37150 * config/rs6000/rs6000.c (chain_already_loaded): New function.
37151 (rs6000_call_aix): Use it.
37153 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
37155 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
37158 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
37160 * config/h8300/constraints.md ("U" constraint): Use strict
37161 variant of REG_OK_FOR_BASE_P after reload has started.
37163 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
37165 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
37166 define to zero if !TARGET_NEON.
37167 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
37169 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37170 Trevor Saunders <tsaunders@mozilla.com>
37173 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
37175 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37178 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
37179 when removing varpool nodes.
37181 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37184 * varpool.c (varpool_node::remove): Fix order of variables.
37186 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37189 * ipa-inline.c (inline_small_functions): Fix ordering issue between
37190 speculation resolution and key updates.
37192 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37194 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
37195 about not letting any speculative edges unupdated.
37197 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37200 * gcov-io.c (gcov_var): Export.
37202 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37204 PR middle-end/64922
37205 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
37206 edges that become speculative.
37208 2015-02-04 Jakub Jelinek <jakub@redhat.com>
37210 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
37211 or DW_LANG_Fortran08.
37212 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
37214 (gen_compile_unit_die): Handle "GNU Fortran2003" and
37215 "GNU Fortran2008" language strings.
37216 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
37217 * langhooks.h (lang_GNU_Fortran): New prototype.
37218 * langhooks.c (lang_GNU_Fortran): New function.
37219 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
37222 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
37224 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
37225 (RTX_OK_FOR_OLO10_P): Likewise.
37227 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
37229 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
37231 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37233 PR middle-end/64922
37234 * gimple.c: Include gimple-ssa.h.
37235 (maybe_remove_unused_call_args): New function.
37236 * gimple.h (maybe_remove_unused_call_args): Declare.
37237 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
37238 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
37239 * gimple-fold.c (gimple_fold_call): Likewise.
37241 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
37243 PR rtl-optimization/64905
37244 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
37245 pointer alignment if it isn't needed.
37247 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
37249 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
37250 cortex-a72.cortex-a53.
37251 * config/aarch64/aarch64-tune.md: Regenerate.
37252 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
37254 2015-02-04 Nick Clifton <nickc@redhat.com>
37256 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
37259 2015-02-04 Jakub Jelinek <jakub@redhat.com>
37261 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
37262 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
37263 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
37265 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
37266 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
37267 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
37268 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
37269 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
37270 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
37271 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
37272 * tree-core.h (enum built_in_function): In between
37273 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
37274 for builtins that use DEF_BUILTIN_CHKP macro.
37276 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
37279 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
37280 operands for tcc_comparison exprs. Fix typos.
37283 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
37284 of two XORs that have an intervening AND or IOR.
37287 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
37288 simplification of XOR of AND to not allocate new rtx before
37289 committing to a simplification.
37291 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37293 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
37294 manual swaps in all peepholes.
37296 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37298 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
37299 of manual swapping implementation.
37300 (aarch64_expand_vec_perm_const_1): Likewise.
37302 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
37304 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
37305 (generic_addrcost_table): Remove NAMED_PARAM.
37306 (cortexa57_addrcost_table): Likewise.
37307 (xgene1_addrcost_table): Likewise.
37308 (generic_regmove_table): Likewise.
37309 (cortexa53_regmove_table): Likewise.
37310 (xgene1_regmove_table): Likewise.
37311 (generic_vector_table): Likewise.
37312 (cortexa57_vector_table): Likewise.
37313 (xgene1_vector_table): Likewise.
37314 (generic_tunings): Likewise.
37315 (cortexa53_tunings): Likewise.
37316 (cortexa57_tunings): Likewise.
37317 (xgene1_tunings): Likewise.
37319 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
37321 * config/arm/arm-cores.def: Add cortex-a72 and
37322 cortex-a72.cortex-a53.
37323 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
37324 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
37325 * config/arm/arm-tune.md: Regenerate.
37326 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
37327 "cortex-a72.cortex-a53".
37328 * doc/invoke.texi (ARM Options/-mtune): Likewise.
37330 2015-02-04 Nick Clifton <nickc@redhat.com>
37333 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
37335 (nonimmediate_di_operand): Likewise.
37337 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
37338 prefixes of known F5 using MSP430 MCUs.
37340 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37342 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
37343 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
37344 instead of __builtin_sqrt.
37346 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
37348 * varasm.c (do_assemble_alias): Follow transparent alias
37350 (default_assemble_visibility): Follow transparent alias
37351 chain for decl name.
37353 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
37355 PR middle-end/62103
37356 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
37357 to compute size of referenced value in the constant case.
37359 2015-02-03 Jakub Jelinek <jakub@redhat.com>
37361 PR rtl-optimization/64756
37362 * cse.c (invalidate_dest): New function.
37363 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
37364 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
37365 invalidate and do not record it.
37367 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37370 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
37371 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
37372 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
37373 atomic_nand<mode>_soft_tcb): New insns.
37374 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
37375 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
37376 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
37377 Split into atomic_not_fetchsi_hard if operands[0] is unused.
37378 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
37379 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37380 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
37381 atomic_not<mode>_hard if operands[0] is unused.
37382 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
37383 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
37384 if operands[0] is unused.
37385 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
37386 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
37387 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
37388 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37390 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
37391 into atomic_not<mode>_soft_tcb if operands[0] is unused.
37392 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
37393 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
37394 if operands[0] is unused.
37395 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
37396 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
37397 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
37398 atomic_nand_fetchsi_hard if operands[0] is unused.
37399 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
37400 atomic_nand<mode>_hard if operands[0] is unused.
37401 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
37402 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
37403 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
37404 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37405 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
37406 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
37407 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
37408 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37409 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
37410 atomic_not<mode>_hard if operands[0] is unused.
37411 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
37412 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37414 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
37415 into atomic_not<mode>_soft_tcb if operands[0] is unused.
37416 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
37417 atomic_nand<mode>_hard if operands[0] is unused.
37418 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
37419 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37421 2015-02-03 David Malcolm <dmalcolm@redhat.com>
37424 * Makefile.in (GCC_OBJS): Add gcc-main.o.
37425 * gcc-main.c: New file, containing "main" taken from gcc.c.
37426 * gcc.c (do_self_spec): Free decoded_options.
37427 (class driver): Move declaration to gcc.h.
37428 (main): Move declaration and implementation to new file
37430 (driver_get_configure_time_options): New function.
37431 * gcc.h (class driver): Move this declaration here, from
37433 (driver_get_configure_time_options): New declaration.
37435 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
37437 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
37438 cross-module inlining.
37439 * cgraph.h (cgraph_node): Add flag merged.
37440 * ipa-icf.c (sem_function::merge): Maintain it.
37442 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
37444 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
37445 instead of OBJECT_P.
37447 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
37450 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
37451 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
37452 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
37453 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
37455 2015-02-03 Jakub Jelinek <jakub@redhat.com>
37458 * combine.c (reg_n_sets_max): New variable.
37459 (can_change_dest_mode, reg_nonzero_bits_for_combine,
37460 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
37461 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
37462 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
37463 (rest_of_handle_combine): Initialize reg_n_sets_max.
37465 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
37467 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
37468 if some always_inline was inlined, apply changes before inlining
37471 2015-02-02 David Malcolm <dmalcolm@redhat.com>
37474 * config/arm/arm.c (arm_option_override): Set
37475 arm_selected_arch/cpu/tune to NULL on entry.
37477 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
37478 Andrew Pinski <pinskia@gcc.gnu.org>
37479 Jakub Jelinek <jakub@gcc.gnu.org>
37482 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
37483 integer typing for small model. Use IN_RANGE.
37485 2015-02-02 Richard Biener <rguenther@suse.de>
37487 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
37488 * tree-vrp.c (vrp_valueize_1): Likewise.
37490 2015-02-02 Alan Modra <amodra@gmail.com>
37492 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
37493 than mem for toc_restore.
37494 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
37495 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
37496 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
37498 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
37501 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
37502 explicit default options.
37504 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
37507 * ipa-utils.c (ipa_merge_profiles): Add release argument.
37508 * ipa-icf.c (sem_function::merge): Do not release body when merging.
37509 * ipa-utils.h (ipa_merge_profiles): Update prototype.
37511 2015-02-01 Jakub Jelinek <jakub@redhat.com>
37514 * cfgexpand.c (deep_ter_debug_map): New variable.
37515 (avoid_deep_ter_for_debug): New function.
37516 (expand_debug_expr): If TERed SSA_NAME is in
37517 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
37518 instead of trying to expand SSA_NAME's def stmt.
37519 (expand_debug_locations): When expanding debug bind
37520 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
37521 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
37523 (pass_expand::execute): Call avoid_deep_ter_for_debug on
37524 all debug bind stmts. Delete deep_ter_debug_map after
37525 expand_debug_location if non-NULL and clear it.
37527 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
37530 * config/sh/sync.md (atomic_fetch_notsi_hard,
37531 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
37532 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
37533 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
37534 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
37535 atomic_not_fetch<mode>_soft_imask): New insns.
37537 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37539 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
37540 (rank_for_schedule_debug): Split from ...
37541 (rank_for_schedule): ... this.
37542 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
37543 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
37545 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
37547 * doc/md.texi (Machine Constraints): Alphabetize table by target.
37548 * doc/extend.texi (x86 Variable Attributes): Move section to
37549 correct alphabetization after renaming.
37550 (x86 Type Attributes): Likewise.
37551 (Target Builtins): Re-alphabetize menu.
37552 (x86 Built-in Functions): Move section to correct alphabetization
37554 (x86 transactional memory intrinsics): Likewise.
37555 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
37556 and x86 Windows Options in table and menu.
37557 (x86 Options): Move section to correct alphabetization after
37559 (x86 Windows Options): Likewise.
37561 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
37563 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
37564 preferred names of the architecture and its 32- and 64-bit
37566 * doc/invoke.texi: Likewise.
37567 * doc/md.texi: Likewise.
37569 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
37572 * config/i386/predicates.md (address_no_seg_operand): Reject
37573 non-CONST_INT_P operands in invalid mode.
37575 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
37577 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
37578 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
37579 * config/i386/predicates.md (address_no_seg_operand): Call
37580 address_operand with VOIDmode.
37581 (vsib_address_operand): Ditto.
37582 (address_mpx_no_base_operand): Ditto.
37583 (address_mpx_no_index_operand): Ditto.
37585 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
37588 * lra-constraints.c (original_subreg_reg_mode): New.
37589 (simplify_operand_subreg): Try to simplify subreg of const. Use
37590 original_subreg_reg_mode for it.
37591 (swap_operands): Update original_subreg_reg_mode.
37592 (curr_insn_transform): Set up original_subreg_reg_mode.
37594 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
37597 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
37599 (process_alt_operands): Use it.
37600 (curr_insn_transform): Check the optional reload pseudo class is
37603 2015-01-30 Joseph Myers <joseph@codesourcery.com>
37605 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
37606 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
37608 * toplev.h (init_asm_output): Update comment on use of
37609 UNKNOWN_LOCATION with fatal_error.
37610 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
37611 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
37612 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
37613 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
37614 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
37615 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
37616 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
37617 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
37618 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
37619 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
37620 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
37621 fatal_error changed to pass input_location as first argument.
37623 2015-01-30 Martin Liska <mliska@suse.cz>
37625 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
37626 in #pragma GCC diagnostic guards.
37628 2015-01-30 Richard Biener <rguenther@suse.de>
37630 PR tree-optimization/64829
37631 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
37632 not add a widening conversion pattern but hand off extra
37633 widenings to callers.
37634 (vect_recog_widen_mult_pattern): Handle extra widening produced
37635 by vect_handle_widen_op_by_const.
37636 (vect_recog_widen_shift_pattern): Likewise.
37637 (vect_pattern_recog_1): Remove excess vertical space in dumping.
37638 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
37639 (vect_init_vector_1): Likewise.
37640 (vect_get_vec_def_for_operand): Likewise.
37641 (vect_finish_stmt_generation): Likewise.
37642 (vectorizable_load): Likewise.
37643 (vect_analyze_stmt): Likewise.
37644 (vect_is_simple_use): Likewise.
37646 2015-01-29 Jeff Law <law@redhat.com>
37648 * combine.c (try_combine): Fix typo in comment.
37650 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
37653 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
37654 (rs6000_stack_info): Add assert.
37655 (rs6000_output_savres_externs): New function, split off from...
37656 (rs6000_output_function_prologue): ... here. Do not call it for
37659 2015-01-29 Jeff Law <law@redhat.com>
37662 * combine.c (try_combine): If I0 is a memory load and I3 a store
37663 to a related address, increase the "goodness" of doing a 4-insn
37664 combination with I0-I3.
37665 (make_field_assignment): Handle SUBREGs in the ior+and case.
37667 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
37669 PR tree-optimization/64746
37670 * tree-if-conv.c (mask_exists): New function.
37671 (predicate_mem_writes): Save created mask with given size for further
37673 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
37674 (ifcvt_repair_bool_pattern): Collect all statements that are root
37675 of bool pattern and use iterative algorithm to remove multiple uses
37676 of predicates, display number of required iterations.
37678 2015-01-29 Richard Biener <rguenther@suse.de>
37680 PR tree-optimization/64853
37681 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
37682 stmt will get simulated again.
37683 * tree-ssa-ccp.c (valueize_op_1): Likewise.
37685 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37687 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
37688 return_in_pc. Remove redundant assignments.
37689 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
37690 (arm_expand_epilogue): Don't compare boolean with true in if condition.
37692 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
37694 * config/i386/i386.c (ix86_mode_after): Make static.
37696 2015-01-29 Richard Biener <rguenther@suse.de>
37698 PR tree-optimization/64844
37699 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
37700 dump cost model analysis.
37701 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
37702 Do not register adjusted load/store costs here.
37704 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
37705 Uros Bizjak <ubizjak@gmail.com>
37707 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
37708 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
37709 using x86_use_pseudo_pic_reg.
37710 * config/i386/i386.c (ix86_conditional_register_usage): Remove
37711 support for fixed PIC register.
37712 (ix86_use_pseudo_pic_reg): Not static any more.
37714 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
37716 PR middle-end/64805
37717 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
37718 to avoid error in cgraph node verification.
37720 2015-01-29 Marek Polacek <polacek@redhat.com>
37722 * doc/standards.texi: Reflect that the default for C is gnu11.
37724 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
37727 * reorg.c (switch_text_sections_between_p): New function.
37728 (relax_delay_slots): Call it when testing if the jump insn
37729 is removable. Use targetm.can_follow_jump when testing if
37730 the conditional branch can follow an unconditional jump.
37732 2015-01-27 Caroline Tice <cmtice@google.com>
37734 Committing VTV Cywin/Ming patch for Patrick Wollgast
37735 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
37736 if -fvtable-verify=preinit/std is used.
37737 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
37738 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
37739 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
37740 if -fvtable-verify=preinit/std is used.
37741 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
37742 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
37743 if -fvtable-verify=preinit/std is used.
37744 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
37745 * config/i386/mingw32.h (LIB_SPEC): Likewise.
37746 * varasm.c (assemble_variable): Add code to properly set the comdat
37747 section and name for the .vtable_map_vars section in case the
37748 target is PE or COFF.
37750 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
37753 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
37754 make sane BB profile.
37755 (cgraph_node::expand_thunk): Make sane BB profile.
37756 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
37757 * cgraph.h (init_lowered_empty_function): Update prototype.
37758 * config/i386/i386.c (make_resolver_func): Update call.
37759 * predict.c (gate): Disable branch prediction pass if
37760 profile is already there.
37762 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
37764 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
37765 * opth-gen.awk: Likewise.
37766 * common.opt: Mark flag_fp_contract_mode as Optimization.
37768 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
37770 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
37771 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
37773 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
37776 * config/sh/predicates.md (atomic_arith_operand,
37777 atomic_logical_operand): Remove.
37778 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
37779 (atomic_arith_operand_0): New predicate.
37780 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
37781 Use atomic_arith_operand_0 for input values.
37782 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
37783 atomic_compare_and_swap<mode>_soft_gusa,
37784 atomic_compare_and_swap<mode>_soft_tcb,
37785 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
37786 arith_reg_operand instead of register_operand.
37787 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
37788 atomic_arith_operand_0 for newval input.
37789 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
37790 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
37791 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
37792 arith_reg_operand instead of register_operand.
37793 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
37794 fetchop_predicate_1, fetchop_constraint_1_llcs,
37795 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
37796 fetchop_constraint_1_imask): New code iterator attributes.
37797 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
37798 register_operand. Use fetchop_predicate_1.
37799 (atomic_fetch_<fetchop_name>si_hard,
37800 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
37801 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
37802 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
37803 and arith_reg_operand instead of register_operand. Use
37804 fetchop_predicate_1, fetchop_constraint_1_gusa.
37805 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
37806 and arith_reg_operand instead of register_operand. Use
37807 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
37809 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
37810 and arith_reg_operand instead of register_operand. Use
37811 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
37813 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
37814 register_operand. Use atomic_logical_operand_1.
37815 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
37816 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
37817 arith_reg_operand instead of register_operand.
37818 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
37819 Use arith_reg_dest and arith_reg_operand instead of register_operand.
37820 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
37821 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
37822 register_operand. Use fetchop_predicate_1.
37823 (atomic_<fetchop_name>_fetchsi_hard,
37824 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
37825 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37826 fetchop_constraint_1_llcs.
37827 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
37828 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37829 fetchop_constraint_1_gusa.
37830 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
37831 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37832 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
37833 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
37834 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37835 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
37836 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
37837 register_operand. Use atomic_logical_operand_1.
37838 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
37839 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
37840 arith_reg_operand instead of register_operand.
37841 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
37842 arith_reg_operand instead of register_operand. Use logical_operand
37843 and K08. Adjust asm sequence to allow R0 usage.
37844 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
37845 arith_reg_operand instead of register_operand. Use logical_operand
37848 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37851 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
37852 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
37853 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
37854 only get_full_len HOST_WIDE_INTs from get_val () array rather than
37855 all bits in *val_wide.
37857 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
37859 * varpool.c (tls_model_names): Fix names.
37860 (varpool_node::dump): Dump tls- prefix for tls models.
37862 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
37863 Bernd Schmidt <bernds@codesourcery.com>
37864 Nathan Sidwell <nathan@codesourcery.com>
37866 * config/nvptx/mkoffload.c: New file.
37867 * config/nvptx/t-nvptx: Add build rules for it.
37868 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
37869 (extra_programs): Add mkoffload.
37870 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
37872 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
37874 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
37876 PR middle-end/64809
37877 * cfgexpand.c (reorder_operands): Skip debug gimples.
37879 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
37881 PR tree-optimization/64277
37882 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
37883 range info when possible to refine estimation.
37885 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
37887 PR tree-optimization/64718
37888 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
37889 be a 16bit unsigned integer when n->range is 16.
37890 (bswap_replace): Convert src to that type if necessary for all bswap
37891 sizes. Fix rotation right notation in nearby comment. Use bswap_type
37892 set in pass_optimize_bswap::execute ().
37894 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
37896 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
37897 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
37898 integer and floating point variants.
37899 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
37901 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
37903 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
37904 for all vector modes.
37906 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37909 * doc/sourcebuild.texi (comdat_group): Document.
37911 2015-01-28 Terry Guo <terry.guo@arm.com>
37913 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
37915 2015-01-27 David Malcolm <dmalcolm@redhat.com>
37917 * toplev.c (print_version): Add param "show_global_state", and
37918 only print GGC and plugin information if it is true.
37919 (init_asm_output): Pass in "true" for the new param when calling
37921 (process_options): Likewise.
37922 (toplev::main): Likewise.
37923 * toplev.h (print_version): Add new param to decl.
37925 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
37929 * tree.c (lookup_binfo_at_offset): New function.
37930 (get_binfo_at_offset): Use it.
37932 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
37935 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
37936 on vtable being vtable.
37938 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
37940 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
37941 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
37942 -mhotpatch= option.
37943 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
37944 -mno-hotpatch options. Change syntax of -mhotpatch= option.
37945 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
37947 (s390_hotpatch_trampoline_halfwords_max): Renamed.
37948 (s390_hotpatch_hw_max): New name.
37949 (s390_hotpatch_trampoline_halfwords): Renamed.
37950 (s390_hotpatch_hw_before_label): New name.
37951 (get_hotpatch_attribute): Removed.
37952 (s390_hotpatch_hw_after_label): New name.
37953 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
37955 (s390_attribute_table): Ditto.
37956 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
37957 (s390_function_num_hotpatch_hw): New name.
37958 Remove special handling of inline functions and hotpatching.
37959 Return number of nops before and after the function label.
37960 (s390_can_inline_p): Removed.
37961 (s390_asm_output_function_label): Emit a configurable number of nops
37962 after the function label.
37963 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
37964 (TARGET_CAN_INLINE_P) Removed.
37965 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
37967 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37968 Jiong Wang <jiong.wang@arm.com>
37970 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
37972 (cb<optab><mode>1): Likewise.
37973 * config/aarch64/iterators.md (bcond): New define_code_attr.
37975 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37977 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
37980 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37982 * config/s390/s390.c (s390_register_move_cost): Increase costs for
37985 2015-01-27 Richard Biener <rguenther@suse.de>
37987 * tree-vrp.c (update_value_range): Intersect the range with
37988 old recorded SSA name range information.
37990 2015-01-27 Nick Clifton <nickc@redhat.com>
37992 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
37993 BC, DE and HL registers directly, not via AX.
37994 When decrementing the stack pointer by a large amount, transfer SP
37995 into AX and perform the subtraction there.
37996 (rl78_expand_epilogue): Perform the inverse of the above
37999 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38001 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
38003 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38004 Yury Gribov <y.gribov@samsung.com>
38007 * ubsan.c (ubsan_source_location): Refactor code.
38008 (ubsan_type_descriptor): Update type size. Refactor code.
38010 2015-01-27 Richard Biener <rguenther@suse.de>
38012 PR tree-optimization/56273
38013 PR tree-optimization/59124
38014 PR tree-optimization/64277
38015 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
38016 from the first VRP pass.
38018 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38021 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
38022 handle the first argument in the same loop as all the other arguments.
38024 PR rtl-optimization/61058
38025 * jump.c (cleanup_barriers): Update basic block boundaries
38026 if BLOCK_FOR_INSN is non-NULL on PREV.
38028 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
38030 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
38031 bounds narrowing, already instrumented calls and calls to
38032 not instrumentable functions.
38034 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38036 PR tree-optimization/64807
38037 * wide-int.cc (wi::divmod_internal): Clear
38038 b_dividend[dividend_blocks_needed].
38040 2015-01-26 DJ Delorie <dj@redhat.com>
38042 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
38043 volatile memory references.
38045 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
38048 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
38050 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
38051 shifts if it already fits into K08.
38053 2015-01-26 Jakub Jelinek <jakub@redhat.com>
38056 * ipa-inline.c (inline_small_functions): Print "unknown" even
38057 if edge->call_stmt is non-NULL, but has builtins or unknown
38060 PR middle-end/64421
38061 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
38062 with asterisk, skip the first character.
38064 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
38067 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
38070 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
38073 * config/i386/i386.md (*movdi_internal): Also check operand 0
38074 to determine TYPE_LEA operand.
38075 (*movsi_internal): Ditto.
38077 2015-01-26 Jakub Jelinek <jakub@redhat.com>
38079 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
38080 OPTION_MASK_QUAD_MEMORY_ATOMIC.
38082 2015-01-26 Renlin Li <renlin.li@arm.com>
38084 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
38086 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
38089 2015-01-26 Richard Biener <rguenther@suse.de>
38091 PR middle-end/64764
38092 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
38093 combining two BIT_AND_EXPR predicates.
38095 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
38098 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
38100 2015-01-26 Terry Guo <terry.guo@arm.com>
38102 * config/arm/arm.c (arm_file_start): Update the assignment of
38103 Tag_ABI_HardFP_use.
38105 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
38107 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
38109 config/arm/arm.md: Include the new Cortex-A57 model.
38110 (generic_sched): Don't use generic_sched when tuning for
38113 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
38114 Uros Bizjak <ubizjak@gmail.com>
38116 * config/i386/i386.c (get_builtin_code_for_version): Add
38117 support for BMI and BMI2 multiversion functions.
38119 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38121 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
38122 (extract_bit_field): Likewise.
38123 (extract_low_bits): Likewise.
38124 (expand_mult): Likewise.
38125 (expand_mult_highpart_adjust): Likewise.
38127 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
38129 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
38130 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
38131 * config/i386/i386.c (processor_model): Add
38132 M_INTEL_COREI7_BROADWELL.
38133 (arch_names_table): Add "broadwell".
38135 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
38144 * config/sh/sh-protos.h
38145 (sh_extending_set_of_reg::can_use_as_unextended_reg,
38146 sh_extending_set_of_reg::use_as_unextended_reg,
38147 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
38148 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
38149 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
38150 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
38151 (sh_treg_insns): New class.
38152 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
38153 (scope_counter): New class.
38154 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
38155 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
38156 sh_extending_set_of_reg::can_use_as_unextended_reg,
38157 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
38158 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
38159 sh_split_treg_set_expr): New functions.
38160 (addsubcosts): Handle treg_set_expr.
38161 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
38162 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
38163 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
38164 (sh_insn_operands_modified_between_p): Make non-static.
38165 * config/sh/predicates.md (zero_extend_movu_operand): Allow
38166 simple_mem_operand in addition to displacement_mem_operand.
38167 (zero_extend_operand): Don't allow zero_extend_movu_operand.
38168 (treg_set_expr, treg_set_expr_not_const01,
38169 arith_reg_or_treg_set_expr): New predicates.
38170 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
38171 arith_or_int_operand instead of logical_operand. Convert to
38172 insn_and_split. Try to optimize constant operand in splitter.
38173 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
38174 (*tstqi_t_zero): Delete.
38175 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
38176 (tstsi_t_and_not): Delete.
38177 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
38178 Convert to insn_and_split.
38179 (unnamed split, tstsi_t_zero_extract_xor,
38180 tstsi_t_zero_extract_subreg_xor_little,
38181 tstsi_t_zero_extract_subreg_xor_big): Delete.
38182 (*tstsi_t_shift_mask): New insn_and_split.
38183 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
38184 to recombine with surrounding insns when splitting.
38185 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
38186 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
38187 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
38188 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
38189 (*cbranch_div0s: Delete.
38190 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
38191 Try to recombine with surrounding insns when splitting. Add operand
38193 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
38194 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
38195 *addc_r_r_msb, *addc_2r_msb): Delete.
38196 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
38198 (*addc_negreg_t): New insn_and_split.
38199 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
38200 Try to recombine with surrounding insns when splitting.
38201 Add operand order variants.
38202 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
38203 insn_and_split patterns.
38204 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
38205 surrounding insns when splitting.
38206 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
38207 (*rotcl): Likewise. Add zero_extract variant.
38208 (*ashrsi2_31): New insn_and_split.
38209 (*negc): Convert to insn_and_split. Use treg_set_expr.
38210 (*zero_extend<mode>si2_disp_mem): Update comment.
38211 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
38213 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
38214 with surrounding insns when splitting.
38215 (any_treg_expr_to_reg): New insn_and_split.
38216 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
38217 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
38218 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
38219 *zero_extract_2): New single bit zero extract patterns.
38220 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
38221 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
38222 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
38223 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
38225 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
38226 register_operand for set source.
38228 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
38230 * i386.opt (prefetch_sse): New targetsave.
38231 * i386.c (ix86_function_specific_save): Save prefetch_sse.
38232 (ix86_function_specific_restore): Restore prefetch_sse and initialize
38233 ix86_cost/ix86_tune_cost.
38235 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38237 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
38238 Support the JIT by using 0 as the language type.
38240 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
38243 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
38244 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
38245 (mark_regno_live, process_bb_lives): Pass new parameter value to
38246 make_hard_regno_born.
38248 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38250 PR rtl-optimization/63637
38251 PR rtl-optimization/60663
38252 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
38253 if elt->cost is MAX_COST for ASM_OPERANDS.
38254 (find_sets_in_insn): Fix up comment typo.
38255 (cse_insn): Don't set src_volatile for all non-volatile
38256 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
38257 or with "memory" clobber. Set elt->cost to MAX_COST
38258 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
38259 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
38261 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
38263 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
38266 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
38268 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
38269 libgcc/config/i386/elf-lib.h.
38271 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38274 * gcc.c (print_configuration): Don't print a blank line at the end
38276 (run_attempt): ... but here unstead.
38278 PR middle-end/64734
38279 * omp-low.c (scan_sharing_clauses): Don't ignore
38280 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
38281 on target data/update constructs.
38283 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
38286 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
38287 (DEBUG_RELOAD): Removed define.
38288 (m32c_limit_reload_class): Enable traces with if DEBUG0.
38289 (m32c_function_arg): Added a type cast.
38290 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
38291 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
38292 * config/m32c/bitops.md (andqi3_16): Likewise.
38293 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
38294 (push_a01_l): Likewise.
38296 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38299 * main.c (main): Construct toplev instances with init_signals=true.
38300 * toplev.c (general_init): Add param "init_signals", and use it to
38301 conditionalize the calls to signal and host_hooks.extra_signals.
38302 (toplev::toplev): Add param "init_signals".
38303 (toplev::main): When invoking general_init, pass m_init_signals
38304 to control whether signal-handlers are installed.
38305 * toplev.h (toplev::toplev): Add param "init_signals".
38306 (toplev::m_init_signals): New field.
38308 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38311 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
38312 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
38313 latter may be affected by the former (e.g. on i686).
38315 2015-01-23 Martin Liska <mliska@suse.cz>
38317 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
38318 false positive during profiledbootstrap.
38320 2015-01-23 Tom de Vries <tom@codesourcery.com>
38323 * lto-opts.c (lto_write_options): Output non-explicit conservative
38325 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
38326 (append_compiler_options): Pass -fopenacc through.
38328 2015-01-23 Tom de Vries <tom@codesourcery.com>
38331 * lto-opts.c (lto_write_options): Output non-explicit conservative
38333 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
38334 (append_compiler_options): Pass -fopenmp through.
38336 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38339 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
38342 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
38343 * diagnostic.def (DK_ICE_NOBT): New kind.
38344 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
38345 like DK_ICE, but never print backtrace.
38346 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
38347 (internal_error_no_backtrace): New function.
38348 * gcc.c (execute): Use internal_error_no_backtrace instead of
38351 2015-01-22 Jeff Law <law@redhat.com>
38354 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
38355 improve code density for small immediate to memory case.
38356 (insv): Better handle bitfield assignments when the field is
38357 being set to all ones.
38358 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
38361 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38362 Jakub Jelinek <jakub@redhat.com>
38364 PR middle-end/64729
38365 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
38366 for !TARGET_LIBC_PROVIDES_SSP version and
38367 -fstack-protector-{all,strong,explicit} otherwise.
38368 * config/freebsd.h (LINK_SSP_SPEC): Handle
38369 -fstack-protector-{strong,explicit}.
38371 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
38372 H.J. Lu <hongjiu.lu@intel.com>
38375 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
38378 2015-01-22 Wei Mi <wmi@google.com>
38380 PR rtl-optimization/64557
38381 * dse.c (record_store): Call get_addr for mem_addr.
38382 (check_mem_read_rtx): Likewise.
38384 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
38386 * fold-const.c (const_binop): Add early return for non-tcc_binary.
38388 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
38390 * toplev.c (init_local_tick): Process the failure when read
38391 fails for random_seed.
38393 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
38394 'pretty_name' to avoid memory overflow.
38396 2015-01-22 Richard Biener <rguenther@suse.de>
38398 PR middle-end/64728
38399 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
38400 abnormal coalescing on undefined SSA names.
38402 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
38406 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
38408 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
38410 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
38412 PR middle-end/63325
38413 * fold-const.c (fold_checksum_tree): Don't include value of
38414 expr->decl_with_vis.symtab_node in the checksum.
38416 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38418 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
38420 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
38423 * gcc.c (insert_comments): New function.
38424 (try_generate_repro): Call it.
38425 (append_text): Removed.
38427 2015-01-22 Richard Biener <rguenther@suse.de>
38429 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
38430 with IL incompatible options. Properly honor user optimize
38433 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
38435 PR rtl-optimization/64682
38436 * combine.c (distribute_notes): When moving a death note for
38437 a register that is set in the new I2, make sure to put it
38438 before that new I2.
38440 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
38442 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
38443 not TARGET_DEFAULT.
38445 2015-01-21 Jakub Jelinek <jakub@redhat.com>
38448 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
38449 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
38450 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
38453 * doc/invoke.texi (-fsanitize=vptr): Document.
38455 PR rtl-optimization/62078
38456 * dse.c: Include cfgcleanup.h.
38457 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
38458 anything call purge_all_dead_edges and cleanup_cfg at the end
38461 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
38463 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
38466 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
38468 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
38471 2015-01-21 David Sherwood <david.sherwood@arm.com>
38472 Tejas Belagod <Tejas.Belagod@arm.com>
38474 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
38475 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
38476 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
38479 2015-01-21 David Sherwood <david.sherwood@arm.com>
38480 Tejas Belagod <Tejas.Belagod@arm.com>
38482 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
38483 (aarch64_reverse_mask): New decls.
38484 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
38485 (insn_count): New mode_attr.
38486 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
38487 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
38488 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
38489 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
38490 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
38491 (aarch64_simd_st4): New patterns.
38492 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
38493 (aarch64_reverse_mask): New functions.
38495 2015-01-21 Alan Hayward <alan.hayward@arm.com>
38497 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
38499 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
38500 addressing modes for BE.
38501 (aarch64_print_operand): Add 'R' specifier.
38502 (aarch64_simd_disambiguate_copy): Delete.
38503 (aarch64_simd_emit_reg_reg_move): New function.
38504 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
38505 in define_splits for structural moves.
38506 (mov<mode>): Use less restrictive predicates.
38507 (*aarch64_mov<mode>): Simplify and only allow for LE.
38508 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
38510 2015-01-21 Alan Hayward <alan.hayward@arm.com>
38512 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
38514 2015-01-21 Richard Henderson <rth@redhat.com>
38517 * ccmp.c (used_in_cond_stmt_p): Remove.
38518 (expand_ccmp_expr): Don't use it.
38520 2015-01-21 Nick Clifton <nickc@redhat.com>
38522 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
38525 2015-01-21 Richard Biener <rguenther@suse.de>
38527 PR middle-end/64313
38528 * tree-core.h (builtin_info, builtin_info_type): Turn from
38529 an object with two arrays into an array of an object with
38530 decl and two flags, implicit_p and declared_p.
38531 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
38532 set_builtin_decl, set_builtin_decl_implicit_p,
38533 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
38534 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
38535 * builtins.c (builtin_info): Adjust.
38536 * gimplify.c (gimplify_addr_expr): References to builtins
38537 that have been declared by the user makes them eligible for
38538 use by the compiler. Call set_builtin_decl_implicit_p on them.
38540 2015-01-20 Jeff Law <law@redhat.com>
38543 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
38544 allow pc-relative addresses in operand predicates or constraints.
38546 2015-01-21 Bin Cheng <bin.cheng@arm.com>
38548 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
38549 neon on aarch32 processors for stringops.
38551 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38554 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
38556 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38559 * ipa-inline.c: Include lto-streamer.h
38560 (report_inline_failed_reason): Output source file differences and
38561 flags on optimization/target node mismatch.
38562 (can_inline_edge_p): Consider caller to be the outer inline function;
38563 be less restrictive about matching opimize and optimize_size attributes.
38564 (inline_account_function_p): Break out from ...
38565 (inline_small_functions): ... here.
38566 * ipa-inline-transform.c (clone_inlined_nodes): Use
38567 inline_account_function_p.
38568 (inline_call): Use optimize attribution; use inline_account_function_p.
38569 (inline_transform): Use opt_for_fn.
38570 * ipa-inline.h (inline_account_function_p): Declare.
38572 2015-01-20 Jakub Jelinek <jakub@redhat.com>
38575 * dwarf2out.c (decl_piece_node): Don't put bitsize into
38576 mode if bitsize <= 0.
38577 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
38578 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
38579 sizes and positions.
38581 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
38583 * config/nios2/nios2.c (nios2_asm_file_end): Implement
38584 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
38586 (TARGET_ASM_FILE_END): Define.
38588 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38590 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
38591 (struct tune_params): Use the enum.
38592 * arm.c (arm_*_tune): Update.
38593 (arm_option_override): Update.
38595 2015-01-20 Richard Biener <rguenther@suse.de>
38598 * ipa-reference.c (add_static_var): Inline ...
38599 (analyze_function): ... here after splitting out from ...
38600 (is_proper_for_analysis): ... this.
38602 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
38605 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
38606 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
38607 replace the conditional with it's true branch.
38608 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
38609 (arm_lra_p): Remove.
38611 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
38613 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
38615 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38617 * config/tilegx/mul-tables.c: Move symtab.h include after
38618 coretypes.h include.
38619 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
38620 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
38621 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
38622 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
38623 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38625 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
38629 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
38631 PR rtl-optimization/64081
38632 * loop-iv.c (def_pred_latch_p): New function.
38633 (latch_dominating_def): Allow specific cases with non-single
38635 (iv_get_reaching_def): Likewise.
38636 (check_complex_exit_p): New function.
38637 (check_simple_exit): Use check_complex_exit_p to allow certain cases
38638 with exits not executing on any iteration.
38640 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38643 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
38644 to set branch cost.
38646 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38649 * i386.c (gate): Check flag_expensive_optimizations and
38651 (ix86_option_override_internal): Drop optimize_size condition
38652 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
38653 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
38654 MASK_PREFER_AVX128.
38655 (ix86_avx256_split_vector_move_misalign,
38656 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
38657 * sse.md (all uses of TARGET_PREFER_AVX128): Add
38658 optimize_insn_for_speed_p check.
38660 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
38662 * config/mips/mips.h (FP_ASM_SPEC): New define.
38663 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
38666 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
38669 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
38670 nullptr for insn when reaching the first insn.
38671 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
38672 (sh_insn_operands_modified_between_p): Add nullptr check.
38673 (sh_find_extending_set_of_reg): Fix log message. Don't accept
38674 sign extending mem load if the insn contains any UNSPEC or
38677 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38679 * params.def (inline-unit-growth): Drop to 15%.
38680 * invoke.texi (inline-unit-growth): Document change.
38682 2015-01-19 Martin Liska <mliska@suse.cz>
38685 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
38686 function for second argument of OBJ_TYPE_REF.
38688 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38691 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
38692 whether function is an alias.
38694 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38696 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
38699 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
38701 PR rtl-optimization/64671
38702 * lra-remat.c (operand_to_remat): Don't consider jump and call
38705 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
38708 * config/rs6000/default64.h: Include rs6000-cpus.def.
38709 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
38710 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
38711 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
38713 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
38715 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
38716 pseudo-op to specify assembler dialect.
38718 2015-01-19 Martin Liska <mliska@suse.cz>
38721 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
38722 Handle safe potentially removed nodes during filtering.
38724 2015-01-19 Martin Liska <mliska@suse.cz>
38726 * doc/extend.texi (no_icf): Add new attribute description.
38727 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
38728 where the pass attempts to merge a function with no_icf attribute.
38730 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38733 * doc/md.texi (ARM Options): Document register constraints.
38735 2015-01-19 Jiong Wang <jiong.wang@arm.com>
38736 Andrew Pinski <apinski@cavium.com>
38739 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
38740 (ashl<mode>3): Don't expand if operands[2] is not constant.
38742 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38745 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
38746 Match xor-and-xor RTL pattern.
38748 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
38750 PR rtl-optimization/64081
38751 * loop-iv.c (def_pred_latch_p): New function.
38752 (latch_dominating_def): Allow specific cases with non-single
38754 (iv_get_reaching_def): Likewise.
38755 (check_complex_exit_p): New function.
38756 (check_simple_exit): Use check_complex_exit_p to allow certain cases
38757 with exits not executing on any iteration.
38759 2015-01-19 Jakub Jelinek <jakub@redhat.com>
38761 * common.opt (fgraphite): Fix a typo.
38763 2015-01-19 Felix Yang <felix.yang@huawei.com>
38765 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
38767 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
38768 uminp, smax_nanp, smin_nanp): New builtins.
38769 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
38770 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
38771 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
38772 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
38773 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
38774 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
38775 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
38776 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
38777 vpminnms_f32): Rewrite using builtin functions.
38779 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
38782 * omp-low.c (offload_symbol_decl): Remove variable.
38783 (get_offload_symbol_decl): Remove function.
38784 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
38785 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
38786 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
38787 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
38788 BUILT_IN_GOACC_UPDATE don't pass it at all.
38790 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
38792 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
38795 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
38797 * ipa-chkp.c (chkp_produce_thunks): Add early param
38798 to split thunks production into two passes. Keep
38799 'always_inline' function bodies after the first pass.
38800 (pass_data_ipa_chkp_early_produce_thunks): New.
38801 (pass_ipa_chkp_early_produce_thunks): New.
38802 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
38803 chkp_produce_thunks signature.
38804 (make_pass_ipa_chkp_early_produce_thunks): New.
38805 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
38806 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
38807 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
38809 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38811 * cgraph.c (cgraph_node::dump): Dump profile flags.
38813 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
38816 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
38817 reg appear first in the parallel.
38819 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38821 * ipa-reference.c (set_reference_optimization_summary,
38822 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
38824 (ignore_module_statics): New static var.
38825 (propagate_bits): If ipa-reference is disabled, do not look into local
38827 (analyze_function): Disable analysis when ipa_reference is disabled.
38828 (generate_summary): Do not dump when reference is disabled;
38829 collect vars accessed from functions with ipa-reference disabled.
38830 (get_read_write_all_from_node): When ipa-reference is disabled, use the
38832 (gate): Enable for LTO.
38833 (ignore_edge_p): New function.
38834 (propagate): Skip functions w/o ipa-reference analysis.
38835 * optc-save-gen.awk: Handle optimize_debug correctly.
38836 * opth-gen.awk: Likewise.
38837 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
38838 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
38839 fira-share-save-slots, fira-share-spill-slots,
38840 fmodulo-sched-allow-regmoves, fpartial-inlining,
38841 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
38842 ftracer, ftree-parallelize-loops, fassociative-math,
38843 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
38845 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
38846 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
38848 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
38851 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38854 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
38856 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
38858 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
38860 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
38861 Remove duplicate option listings.
38863 2015-01-18 Felix Yang <felix.yang@huawei.com>
38865 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
38866 (autofdo_source_profile::get_callsite_total_count,
38867 function_instance::get_function_instance_by_decl,
38868 string_table::get_index, string_table::get_index_by_decl,
38869 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
38870 Fix comment typos. Reformatting and minor code rearrangement.
38872 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38874 * config/rs6000/rs6000.md (probe_stack): Delete.
38875 (probe_stack_address): New.
38877 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38879 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
38880 to test for 32-bit ABIs, not !TARGET_POWERPC64.
38882 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38884 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
38885 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
38886 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
38888 (rs6000_libcall_value): Use the new function.
38890 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
38892 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
38894 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
38896 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
38897 implement a more precise life analysis for it during backward scan.
38899 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
38901 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
38903 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
38905 PR rtl-optimization/52773
38906 * calls.c (emit_library_call_value): When pushing arguments use
38907 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
38908 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
38909 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
38911 2015-01-17 Jeff Law <law@redhat.com>
38913 PR rtl-optimization/32790
38914 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
38915 not ZERO_EXTEND in SET_DESTs.
38917 2015-01-17 Alan Modra <amodra@gmail.com>
38919 * cprop.c (do_local_cprop): Revert last change.
38921 2015-01-16 DJ Delorie <dj@redhat.com>
38922 Nick Clifton <nickc@redhat.com>
38924 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
38925 (addhi3_real): Likewise. Fix [HL+0] syntax.
38926 (subqi3_real): Likewise.
38927 (subhi3_real): Likewise.
38928 (cbranchqi4_real): Likewise. Allow saddr,#imm.
38929 (cbranchhi4_real): Likewise.
38930 (cbranchhi4_real_inverted): Likewise.
38931 (cbranchsi4_real_lt): Likewise.
38932 (cbranchsi4_real_ge): Likewise.
38933 (cbranchsi4_real_ge): Likewise.
38934 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
38935 (sub<mode>3_virt): Likewise.
38936 (cbranchqi4_virt): Likewise.
38937 (cbranchhi4_virt): Likewise.
38938 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
38939 always use '[reg+imm]' even when imm is zero.
38940 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
38941 (rl78_general_operand): New.
38942 (rl78_nonimmediate_operand): New.
38943 (rl78_nonfar_operand): Use them.
38944 (rl78_nonfar_nonimm_operand): Likewise.
38945 (rl78_stack_based_mem): Fix.
38946 * config/rl78/constraints.md (Ibqi): New.
38951 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
38952 (iorqi3): Likewise.
38953 (xorqi3): Likewise.
38954 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
38956 * config/rl78/constrains (Qs8): New constraint.
38957 * config/rl78/rl78.c (rl78_flags_already_set): New function.
38958 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
38959 * config/rl78/rl78-real.md (update_Z): New attribute.
38960 Update patterns to set it.
38961 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
38962 shorter compare and branch sequence can be used.
38963 (cbranchhi4_real): Likewise.
38964 (cbranchhi4_real_inverted): Likewise.
38966 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
38967 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
38969 * config/rl78/rl78.c (rl78_get_name_encoding): New.
38970 (rl78_option_override): Allow -mes0 only if C.
38971 (characterize_address): Support subregs of symbol_refs.
38972 (rl78_addr_space_address_mode): Move. Add __near.
38973 (rl78_far_p): Likewise.
38974 (rl78_addr_space_pointer_mode): Likewise.
38975 (rl78_as_legitimate_address): Likewise.
38976 (rl78_addr_space_subset_p): Likewise.
38977 (rl78_addr_space_convert): Likewise.
38978 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
38979 symbols with -mes0.
38980 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
38982 (rl78_alloc_physical_registers_op1): Change logic to prefer
38983 symbol[BC] addressing.
38984 (frodata_section): New.
38985 (rl78_asm_init_sections): Initialize it.
38986 (rl78_select_section): Put __far readonly symbols in .frodata.
38987 (rl78_make_type_far): New.
38988 (rl78_insert_attributes): Force all readonly symbols to be
38990 (rl78_asm_out_integer): New.
38991 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
38992 * config/rl78/rl78.opt (-mes0): New.
38994 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
38995 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
38996 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
38997 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
38998 (rl78_saddr_p): New.
38999 (rl78_output_aligned_common): New.
39000 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
39001 (rl78_handle_saddr_attribute): New.
39002 (rl78_handle_naked_attribute): New.
39003 (rl78_attribute_table): Add saddr.
39004 (rl78_print_operand_1): Don't print '!' on saddr operands.
39005 (rl78_print_operand_1): Strip encodings.
39007 (rl78_strip_name_encoding): New.
39008 (rl78_attrlist_to_encoding): New.
39009 (rl78_encode_section_info): New.
39010 (rl78_asm_init_sections): New.
39011 (rl78_select_section): New.
39012 (rl78_output_labelref): New.
39013 (rl78_output_aligned_common): New.
39014 (rl78_asm_out_integer): New.
39015 (rl78_asm_ctor_dtor): New.
39016 (rl78_asm_constructor): New.
39017 (rl78_asm_destructor): New.
39019 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
39020 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
39021 (transcode_memory_rtx): Update.
39022 (rl78_expand_epilogue): Use A_REG instead of 0.
39024 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39026 * config/arm/arm-protos.h (struct tune_params): New field
39027 sched_autopref_queue_depth.
39028 * config/arm/arm.c (sched-int.h): Include header.
39029 (arm_first_cycle_multipass_dfa_lookahead_guard,)
39030 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
39031 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
39032 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
39033 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
39034 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
39035 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
39036 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
39037 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
39038 * config/arm/t-arm (arm.o): Update.
39039 * haifa-sched.c (update_insn_after_change): Update.
39040 (rank_for_schedule): Use auto-prefetcher model, if requested.
39041 (autopref_multipass_init): New static function.
39042 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
39043 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
39044 variable for debug dumps.
39045 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
39046 (autopref_multipass_dfa_lookahead_guard): New global function that
39047 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
39048 (init_h_i_d): Update.
39049 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
39050 * sched-int.h (enum autopref_multipass_data_status): New const enum.
39051 (autopref_multipass_data_): Structure for auto-prefetcher data.
39052 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
39053 (struct _haifa_insn_data:autopref_multipass_data): New field.
39054 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
39055 (autopref_multipass_dfa_lookahead_guard): Declare.
39057 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39059 * rtlanal.c (get_base_term): Handle SCRATCH.
39061 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39063 * config/aarch64/aarch64.c
39064 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
39065 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39067 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
39068 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39070 2015-01-17 Alan Modra <amodra@gmail.com>
39072 * cprop.c (do_local_cprop): Disallow replacement of fixed
39075 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39078 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
39081 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
39083 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
39084 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
39086 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39088 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
39089 * config/arm/thumb1.md: ... Here.
39091 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39093 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
39094 TImode for TARGET_32BIT.
39096 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39098 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
39099 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
39101 (rs6000_abi_word_mode): New function.
39103 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39105 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
39106 instead of UNITS_PER_WORD to describe the size of stack slots.
39108 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39110 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
39111 as rs6000_promote_function_mode. Move comment to there.
39112 (rs6000_promote_function_mode): New function.
39114 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39116 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
39117 -mpowerpc64 is active.
39119 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
39121 PR middle-end/64353
39122 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
39125 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
39127 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
39128 introduced in revision 219724.
39130 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39131 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39134 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
39135 destination is not a GP reg.
39136 (*movdi_aarch64): Likewise.
39138 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
39141 * config/rs6000/default64.h: Revert ISA change.
39143 2015-01-16 Richard Biener <rguenther@suse.de>
39145 PR middle-end/64614
39146 * tree-ssa-uninit.c: Include tree-cfg.h.
39147 (MAX_SWITCH_CASES): New define.
39148 (convert_control_dep_chain_into_preds): Handle switch statements.
39149 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
39150 (normalize_one_pred_1): Do not split bit-manipulations.
39153 2015-01-16 Richard Biener <rguenther@suse.de>
39155 PR tree-optimization/64568
39156 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
39157 complex load rewriting for TARGET_MEM_REFs.
39159 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
39161 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
39163 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
39166 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
39168 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
39169 (aarch64_lra_p): Remove.
39171 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
39174 * ipa-chkp.h (chkp_instrumentable_p): New.
39175 * ipa-chkp.c: Include tree-inline.h.
39176 (chkp_instrumentable_p): New.
39177 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
39178 Fix processing of not instrumentable functions.
39179 (chkp_versioning): Use chkp_instrumentable_p. Warn about
39180 not instrumentable functions.
39181 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
39182 chkp_instrumentable_p.
39183 * tree-inline.h (copy_forbidden): New.
39184 * tree-inline.c (copy_forbidden): Not static anymore.
39186 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39188 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
39191 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
39193 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
39194 type OP_OUT to OP_INOUT.
39196 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
39198 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
39199 (high x) y) to y if x and y have the same base.
39201 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
39203 * config/arm/cortex-a57.md: New.
39204 * config/aarch64/aarch64.md: Include it.
39205 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
39206 * config/aarch64/aarch64-tune.md: Regenerate.
39208 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
39211 * ccmp.c (expand_ccmp_next): New function.
39212 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
39213 and compare insn sequence.
39214 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
39215 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
39216 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
39217 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
39218 (*ccmp_ior): Changed to ccmp_ior<mode>.
39219 (cmp<mode>): New pattern.
39220 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
39222 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
39224 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
39226 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
39227 _mm256_bsrli_epi128): New.
39228 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
39230 2015-01-15 Jiong Wang <jiong.wang@arm.com>
39232 * expmed.c (store_bit_field_using_insv): Improve warning message.
39233 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
39235 2015-01-15 Jiong Wang <jiong.wang@arm.com>
39237 PR rtl-optimization/64011
39238 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
39239 there is partial overflow.
39241 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39243 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
39245 (nds32_expand_epilogue_v3pop): Likewise.
39246 * config/nds32/nds32.md (sibcall): Define this for sibling call
39248 (sibcall_register): Likewise.
39249 (sibcall_immediate): Likewise.
39250 (sibcall_value): Likewise.
39251 (sibcall_value_register): Likewise.
39252 (sibcall_value_immediate): Likewise.
39253 (sibcall_epilogue): Likewise.
39254 (epilogue): Pass false to indicate this is not a sibcall epilogue.
39255 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
39256 (nds32_expand_epilogue_v3pop): Likewise.
39258 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39260 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
39261 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
39262 (return_internal): New.
39263 (return): Define this named pattern.
39264 (simple_return): Define this named pattern.
39265 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
39266 pattern instead of unspec_volatile_func_return.
39267 (nds32_expand_epilogue_v3pop): Likewise.
39268 (nds32_can_use_return_insn): New function.
39270 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39272 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
39273 * config/nds32/nds32.md (pop25return): New.
39274 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
39275 pop25return pattern.
39277 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39279 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
39280 -mforbid-fp-as-gp, and -mex9 options.
39282 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39284 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
39285 remove -mgp-direct option.
39287 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39289 * doc/invoke.texi (--param early-inlining-insns): Update default value.
39290 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
39292 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39294 * ipa-inline.c (inline_small_functions): Work around hints
39297 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
39300 * doc/invoke.texi (Option Summary): Document new Nios II
39302 (Nios II Options): Likewise.
39303 * config/nios2/nios2.opt: Add -mgpopt= option support.
39304 Modify existing -mgpopt and -mno-gpopt options to be aliases.
39305 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
39306 * config/nios2/nios2.c (nios2_option_override): Adjust
39307 -mgpopt defaulting.
39308 (nios2_in_small_data_p): Return true for explicit small data
39309 sections even with -G0.
39310 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
39313 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39316 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
39318 (inline_call): Fix removal of aliases.
39320 2015-01-15 Jakub Jelinek <jakub@redhat.com>
39322 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
39323 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
39324 * opts.c (common_handle_option): Add -fsanitize=vptr.
39325 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
39326 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
39327 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
39328 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
39329 (ubsan_expand_vptr_ifn): New prototype.
39330 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
39331 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
39332 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
39333 expand_LOOP_VECTORIZED): Make argument nameless, remove
39335 (expand_UBSAN_VPTR): New function.
39336 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
39338 (UBSAN_VPTR): New internal function.
39339 * sanopt.c (tree_map_traits): Renamed to ...
39340 (sanopt_tree_map_traits): ... this.
39341 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
39342 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
39343 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
39344 (maybe_optimize_ubsan_vptr_ifn): New function.
39345 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
39346 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
39348 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
39349 internal calls like pure functions for aliasing, even when they
39350 have other side-effects that prevent making them ECF_PURE.
39351 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
39352 (ubsan_expand_vptr_ifn): New function.
39354 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
39356 PR rtl-optimization/64110
39357 * stmt.c (parse_output_constraint): Process '^' and '$'.
39358 (parse_input_constraint): Ditto.
39359 * lra-constraints.c (process_alt_operands): Process the new
39361 * ira-costs.c (record_reg_classes): Process the new constraint
39363 * genoutput.c (indep_constraints): Add '^' and '$'.
39364 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
39365 * doc/md.texi: Add description of the new constraints.
39367 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
39368 Bernd Schmidt <bernds@codesourcery.com>
39369 Cesar Philippidis <cesar@codesourcery.com>
39370 James Norris <jnorris@codesourcery.com>
39371 Tom de Vries <tom@codesourcery.com>
39372 Ilmir Usmanov <i.usmanov@samsung.com>
39373 Dmitry Bocharnikov <dmitry.b@samsung.com>
39374 Evgeny Gavrin <e.gavrin@samsung.com>
39375 Jakub Jelinek <jakub@redhat.com>
39377 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
39378 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39379 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39380 New function types.
39381 * builtins.c: Include "gomp-constants.h".
39382 (expand_builtin_acc_on_device): New function.
39383 (expand_builtin, is_inexpensive_builtin): Handle
39384 BUILT_IN_ACC_ON_DEVICE.
39385 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
39387 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
39389 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
39390 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
39391 i386/intelmic-offload.h.
39392 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
39393 to libgomp and its dependencies.
39394 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
39395 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
39396 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
39397 * config/ia64/hpux.h (LIB_SPEC): Likewise.
39398 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
39399 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
39400 * doc/generic.texi: Update for OpenACC changes.
39401 * doc/gimple.texi: Likewise.
39402 * doc/invoke.texi: Likewise.
39403 * doc/sourcebuild.texi: Likewise.
39404 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
39405 GF_OMP_FOR_KIND_OACC_LOOP.
39406 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
39407 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
39408 GF_OMP_TARGET_KIND_OACC_UPDATE,
39409 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39411 * gimple.c: Update comments for OpenACC changes.
39412 * gimple.def: Likewise.
39413 * gimple.h: Likewise.
39414 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
39415 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39416 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
39417 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39418 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
39420 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
39421 * gimplify.c: Include "gomp-constants.h".
39422 Update comments for OpenACC changes.
39423 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
39424 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
39425 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39426 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
39427 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39428 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39429 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
39430 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39431 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
39433 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
39434 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
39435 OMP_CLAUSE_SET_MAP_KIND.
39436 (gimplify_oacc_cache): New function.
39437 (gimplify_omp_for): Handle OACC_LOOP.
39438 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
39440 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
39441 OACC_EXIT_DATA, OACC_UPDATE.
39442 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
39443 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
39444 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
39445 (gimplify_body): Consider flag_openacc next to flag_openmp.
39446 * lto-streamer-out.c: Include "gomp-constants.h".
39447 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
39448 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
39449 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
39450 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
39451 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
39452 (BUILT_IN_ACC_ON_DEVICE): New builtins.
39453 * omp-low.c: Include "gomp-constants.h".
39454 Update comments for OpenACC changes.
39455 (struct omp_context): Add reduction_map, gwv_below, gwv_this
39457 (extract_omp_for_data, use_pointer_for_field, install_var_field)
39458 (new_omp_context, delete_omp_context, scan_sharing_clauses)
39459 (create_omp_child_function, scan_omp_for, scan_omp_target)
39460 (check_omp_nesting_restrictions, lower_reduction_clauses)
39461 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
39462 Update for OpenACC changes.
39463 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
39464 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
39465 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
39466 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39467 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
39468 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
39470 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
39471 Handle GF_OMP_FOR_KIND_OACC_LOOP.
39472 (expand_omp_target, lower_omp_target): Handle
39473 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39474 GF_OMP_TARGET_KIND_OACC_UPDATE,
39475 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
39476 GF_OMP_TARGET_KIND_OACC_DATA.
39477 (pass_expand_omp::execute, execute_lower_omp)
39478 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
39480 (offload_symbol_decl): New variable.
39481 (oacc_get_reduction_array_id, oacc_max_threads)
39482 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
39483 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
39484 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
39485 (oacc_gimple_assign, oacc_initialize_reduction_data)
39486 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
39488 (is_targetreg_ctx): Remove function.
39489 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
39490 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
39491 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39492 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
39493 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
39494 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
39495 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
39496 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
39497 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
39498 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
39499 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
39500 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
39501 * tree-core.h: Update comments for OpenACC changes.
39502 (enum omp_clause_map_kind): Remove.
39503 (struct tree_omp_clause): Change type of map_kind member from enum
39504 omp_clause_map_kind to unsigned char.
39505 * tree-inline.c: Update comments for OpenACC changes.
39506 * tree-nested.c: Likewise. Include "gomp-constants.h".
39507 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
39508 (convert_tramp_reference_stmt, convert_gimple_call): Update for
39509 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
39510 OMP_CLAUSE_SET_MAP_KIND.
39511 * tree-pretty-print.c: Include "gomp-constants.h".
39512 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
39513 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
39514 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
39515 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
39516 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39517 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
39518 instead of OMP_CLAUSE_MAP_*.
39519 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
39520 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
39521 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39522 * tree-streamer-in.c: Include "gomp-constants.h".
39523 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
39524 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
39525 * tree-streamer-out.c: Include "gomp-constants.h".
39526 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
39528 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
39529 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
39530 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
39531 * tree.c (omp_clause_num_ops): Update accordingly.
39532 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
39534 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
39535 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
39536 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
39537 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
39538 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
39539 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
39540 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
39541 (OMP_CLAUSE_SET_MAP_KIND): New macro.
39542 * varpool.c (varpool_node::get_create): Consider flag_openacc next
39544 * config/i386/intelmic-offload.h: New file.
39545 * config/nvptx/offload.h: Likewise.
39547 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39549 * explow.h: Remove duplicate contents.
39550 * dojump.h: Likewise.
39552 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
39554 * arm.c (arm_xgene_tune): Add default initializer for instruction
39557 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39561 * ipa.c (symbol_table::remove_unreachable_nodes):
39562 Do not put abstract origins into boundary.
39564 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
39566 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
39567 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
39569 2015-01-15 Steve Ellcey <sellcey@mips.com>
39571 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
39572 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
39573 builtins.def, and chkp-builtins.def.
39575 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
39577 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
39580 2015-01-15 Richard Biener <rguenther@suse.de>
39582 PR tree-optimization/61743
39583 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
39584 information on PHIs for some simple cases.
39586 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39588 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
39590 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
39591 * config/arm/arm-cores.def (xgene1): New entry.
39592 * config/arm/arm-tables.opt: Regenerate.
39593 * config/arm/arm-tune.md: Regenerate.
39594 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
39596 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
39598 * tree-if-conv.c: Include hash-map.h.
39599 (aggressive_if_conv): New variable.
39600 (fold_build_cond_expr): Add simplification of non-zero condition.
39601 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
39602 destination block is not always executed.
39603 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
39604 than two predecessors if AGGRESSIVE_IF_CONV is true.
39605 (if_convertible_stmt_p): Fix commentary.
39606 (all_preds_critical_p): New function.
39607 (has_pred_critical_p): New function.
39608 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
39609 BB can have more than two predecessors and all incoming edges can be
39611 (predicate_bbs): Skip predication for loop exit block, use build2_loc
39612 to compute predicate for true edge.
39613 (find_phi_replacement_condition): Delete this function.
39614 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
39615 Allow interchange PHI arguments if EXTENDED is false.
39616 Change check that block containing reduction statement candidate
39617 is predecessor of phi-block since phi may have more than two arguments.
39618 (phi_args_hash_traits): New helper structure.
39619 (struct phi_args_hash_traits): New type.
39620 (phi_args_hash_traits::hash): New function.
39621 (phi_args_hash_traits::equal_keys): New function.
39622 (gen_phi_arg_condition): New function.
39623 (predicate_scalar_phi): Add handling of phi nodes with more than two
39624 arguments, delete COND and TRUE_BB arguments, insert body of
39625 find_phi_replacement_condition to predicate ordinary phi nodes.
39626 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
39627 delete call of find_phi_replacement_condition and invoke
39628 predicate_scalar_phi with two arguments.
39629 (insert_gimplified_predicates): Add assert that non-predicated block
39630 don't have statements to insert.
39631 (ifcvt_split_critical_edges): New function.
39632 (ifcvt_split_def_stmt): Likewise.
39633 (ifcvt_walk_pattern_tree): Likewise.
39634 (stmt_is_root_of_bool_pattern): Likewise.
39635 (ifcvt_repair_bool_pattern): Likewise.
39636 (ifcvt_local_dce): Likewise.
39637 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
39638 is copy of inner or outer loop force_vectorize field, invoke
39639 ifcvt_split_critical_edges, ifcvt_local_dce and
39640 ifcvt_repair_bool_pattern for aggressive if-conversion.
39642 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
39644 * config/aarch64/aarch64.md: Include xgene1.md.
39645 * config/aarch64/xgene1.md: New file.
39647 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39649 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
39650 xgene1 (APM XGene-1) core definition.
39651 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
39652 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
39653 * doc/invoke.texi: Document -mcpu=xgene1.
39655 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39657 * dojump.h: New header file.
39658 * explow.h: Likewise.
39659 * expr.h: Remove includes.
39660 Move expmed.c prototypes to expmed.h.
39661 Move dojump.c prototypes to dojump.h.
39662 Move alias.c prototypes to alias.h.
39663 Move explow.c prototypes to explow.h.
39664 Move calls.c prototypes to calls.h.
39665 Move emit-rtl.c prototypes to emit-rtl.h.
39666 Move varasm.c prototypes to varasm.h.
39667 Move stmt.c prototypes to stmt.h.
39668 (saved_pending_stack_adjust): Move to dojump.h.
39669 (adjust_address): Move to explow.h.
39670 (adjust_address_nv): Move to emit-rtl.h.
39671 (adjust_bitfield_address): Likewise.
39672 (adjust_bitfield_address_size): Likewise.
39673 (adjust_bitfield_address_nv): Likewise.
39674 (adjust_automodify_address_nv): Likewise.
39675 * explow.c (expr_size): Move to expr.c.
39676 (int_expr_size): Likewise.
39677 (tree_expr_size): Likewise.
39678 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39679 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39680 * genemit.c (main): Generate includes statistics.h, real.h,
39681 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
39683 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
39684 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
39685 explow.h, emit-rtl.h, stmt.h.
39686 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
39687 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
39688 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
39689 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
39690 emit-rtl.h, varasm.h, stmt.h.
39691 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
39692 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
39693 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
39694 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
39695 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39696 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
39697 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
39698 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
39699 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
39700 tm.h tree.h varasm.h vec.h wide-int.h.
39701 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39702 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39703 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
39704 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
39705 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
39706 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
39707 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
39708 * loop-iv.c: Likewise.
39709 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
39710 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
39711 statistics.h stmt.h tree.h varasm.h wide-int.h.
39712 * lra-constraints.c: Likewise.
39713 * lra-eliminations.c: Likewise.
39714 * lra-lives.c: Likewise.
39715 * lra-remat.c: Likewise.
39716 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39717 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
39718 statistics.h stmt.h tree.h varasm.h wide-int.h.
39719 * hw-doloop.c: Likewise.
39720 * ira-color.c: Likewise.
39721 * ira-emit.c: Likewise.
39722 * loop-doloop.c: Likewise.
39723 * loop-invariant.c: Likewise.
39724 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39725 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
39726 statistics.h stmt.h tree.h varasm.h wide-int.h.
39727 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
39728 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
39729 statistics.h stmt.h tree.h varasm.h wide-int.h.
39730 * combine-stack-adj.c: Likewise.
39733 * ifcvt.c: Likewise.
39734 * ira-costs.c: Likewise.
39735 * jump.c: Likewise.
39736 * lra-coalesce.c: Likewise.
39737 * lra-spills.c: Likewise.
39738 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39739 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
39740 stmt.h varasm.h wide-int.h.
39741 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39742 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39744 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
39745 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
39746 statistics.h stmt.h varasm.h wide-int.h.
39747 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
39748 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
39749 varasm.h wide-int.h.
39750 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
39751 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39752 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
39753 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
39754 statistics.h stmt.h.
39755 * config/tilepro/tilepro.c: Likewise.
39756 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
39757 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
39758 * config/pdp11/pdp11.c: Likewise.
39759 * config/xtensa/xtensa.c: Likewise.
39760 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
39761 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39763 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39764 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39765 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
39766 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39767 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39768 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
39769 * rtl-chkp.c: Likewise.
39770 * tree-chkp-opt.c: Likewise.
39771 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
39772 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39773 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
39774 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39775 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39776 statistics.h stmt.h.
39777 * tree-vect-data-refs.c: Likewise.
39778 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
39779 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39780 rtl.h statistics.h stmt.h varasm.h.
39781 * internal-fn.c: Likewise.
39782 * ipa-icf-gimple.c: Likewise.
39783 * lto-section-out.c: Likewise.
39784 * tree-data-ref.c: Likewise.
39785 * tree-nested.c: Likewise.
39786 * tree-outof-ssa.c: Likewise.
39787 * tree-predcom.c: Likewise.
39788 * tree-pretty-print.c: Likewise.
39789 * tree-scalar-evolution.c: Likewise.
39790 * tree-ssa-strlen.c: Likewise.
39791 * tree-vect-loop.c: Likewise.
39792 * tree-vect-patterns.c: Likewise.
39793 * tree-vect-slp.c: Likewise.
39794 * tree-vect-stmts.c: Likewise.
39795 * tsan.c: Likewise.
39796 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39797 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
39799 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
39800 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39801 statistics.h stmt.h varasm.h.
39802 * loop-unroll.c: Likewise.
39803 * ubsan.c: Likewise.
39804 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
39805 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
39807 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39808 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
39809 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
39810 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39811 statistics.h stmt.h.
39812 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
39813 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39814 statistics.h stmt.h varasm.h.
39815 * gimple-match-head.c: Likewise.
39816 * lto-cgraph.c: Likewise.
39817 * lto-section-in.c: Likewise.
39818 * lto-streamer-in.c: Likewise.
39819 * lto-streamer-out.c: Likewise.
39820 * tree-affine.c: Likewise.
39821 * tree-cfg.c: Likewise.
39822 * tree-cfgcleanup.c: Likewise.
39823 * tree-if-conv.c: Likewise.
39824 * tree-into-ssa.c: Likewise.
39825 * tree-ssa-alias.c: Likewise.
39826 * tree-ssa-copyrename.c: Likewise.
39827 * tree-ssa-dse.c: Likewise.
39828 * tree-ssa-forwprop.c: Likewise.
39829 * tree-ssa-live.c: Likewise.
39830 * tree-ssa-math-opts.c: Likewise.
39831 * tree-ssa-pre.c: Likewise.
39832 * tree-ssa-sccvn.c: Likewise.
39833 * tree-tailcall.c: Likewise.
39834 * tree-vect-generic.c: Likewise.
39835 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39836 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
39837 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39838 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
39839 * varasm.c: Likewise.
39840 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39841 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
39843 * init-regs.c: Likewise.
39845 * omp-low.c: Likewise.
39846 * stack-ptr-mod.c: Likewise.
39847 * tree-ssa-reassoc.c: Likewise.
39848 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39849 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
39851 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39852 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
39853 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39854 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
39855 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39856 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
39857 * tree-ssa-phiopt.c: Likewise.
39858 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39859 fixed-value.h hashtab.h real.h statistics.h stmt.h.
39860 * config/fr30/fr30.c: Likewise.
39861 * config/frv/frv.c: Likewise.
39862 * expr.c: Likewise.
39863 * final.c: Likewise.
39864 * optabs.c: Likewise.
39865 * passes.c: Likewise.
39866 * simplify-rtx.c: Likewise.
39867 * stmt.c: Likewise.
39868 * toplev.c: Likewise.
39869 * var-tracking.c: Likewise.
39870 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39871 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39872 * lower-subreg.c: Likewise.
39873 * postreload-gcse.c: Likewise.
39875 * reginfo.c: Likewise.
39876 * store-motion.c: Likewise.
39877 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39878 fixed-value.h hashtab.h real.h stmt.h varasm.h.
39879 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39880 fixed-value.h hashtab.h statistics.h stmt.h.
39881 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39882 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39883 * except.c: Likewise.
39884 * explow.c: Likewise.
39885 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39886 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
39888 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39889 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
39890 * tree-ssa-structalias.c: Likewise.
39891 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39892 fixed-value.h insn-config.h real.h statistics.h.
39893 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39894 fixed-value.h insn-config.h real.h statistics.h stmt.h.
39895 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39896 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39897 * cfgbuild.c: Likewise.
39898 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39899 fixed-value.h real.h rtl.h statistics.h stmt.h.
39900 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39901 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39902 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39903 fixed-value.h real.h statistics.h stmt.h.
39904 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39905 fixed-value.h real.h statistics.h stmt.h varasm.h.
39906 * cprop.c: Likewise.
39907 * modulo-sched.c: Likewise.
39908 * postreload.c: Likewise.
39909 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39910 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
39911 statistics.h stmt.h varasm.h.
39912 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
39913 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39914 rtl.h statistics.h stmt.h varasm.h.
39915 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
39916 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
39918 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39919 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
39921 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
39922 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
39924 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
39925 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39926 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39927 function.h real.h statistics.h stmt.h varasm.h.
39928 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39929 insn-config.h real.h statistics.h stmt.h.
39930 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39931 statistics.h stmt.h.
39932 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
39933 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
39934 statistics.h stmt.h varasm.h.
39935 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
39936 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
39937 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39938 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
39939 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
39940 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39941 statistics.h stmt.h varasm.h.
39942 * ipa-polymorphic-call.c: Likewise.
39943 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
39944 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39945 statistics.h stmt.h.
39946 * config/c6x/c6x.c: Likewise.
39947 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
39948 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39949 statistics.h stmt.h varasm.h.
39950 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
39951 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
39953 * ipa-split.c: Likewise.
39954 * tree-eh.c: Likewise.
39955 * tree-ssa-dce.c: Likewise.
39956 * tree-ssa-loop-niter.c: Likewise.
39957 * tree-vrp.c: Likewise.
39958 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
39959 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
39961 * config/nds32/nds32-fp-as-gp.c: Likewise.
39962 * config/nds32/nds32-intrinsic.c: Likewise.
39963 * config/nds32/nds32-isr.c: Likewise.
39964 * config/nds32/nds32-md-auxiliary.c: Likewise.
39965 * config/nds32/nds32-memory-manipulation.c: Likewise.
39966 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
39967 * config/nds32/nds32-predicates.c: Likewise.
39968 * config/nds32/nds32.c: Likewise.
39969 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
39970 fixed-value.h hashtab.h real.h statistics.h.
39971 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
39972 fixed-value.h hashtab.h real.h statistics.h stmt.h.
39973 * config/arm/arm.c: Likewise.
39974 * config/avr/avr.c: Likewise.
39975 * config/bfin/bfin.c: Likewise.
39976 * config/h8300/h8300.c: Likewise.
39977 * config/i386/i386.c: Likewise.
39978 * config/ia64/ia64.c: Likewise.
39979 * config/iq2000/iq2000.c: Likewise.
39980 * config/m32c/m32c.c: Likewise.
39981 * config/m32r/m32r.c: Likewise.
39982 * config/m68k/m68k.c: Likewise.
39983 * config/mcore/mcore.c: Likewise.
39984 * config/mep/mep.c: Likewise.
39985 * config/mips/mips.c: Likewise.
39986 * config/mn10300/mn10300.c: Likewise.
39987 * config/moxie/moxie.c: Likewise.
39988 * config/pa/pa.c: Likewise.
39989 * config/rl78/rl78.c: Likewise.
39990 * config/rx/rx.c: Likewise.
39991 * config/s390/s390.c: Likewise.
39992 * config/sh/sh.c: Likewise.
39993 * config/sparc/sparc.c: Likewise.
39994 * config/spu/spu.c: Likewise.
39995 * config/stormy16/stormy16.c: Likewise.
39996 * config/v850/v850.c: Likewise.
39997 * config/vax/vax.c: Likewise.
39998 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
39999 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40000 * config/msp430/msp430.c: Likewise.
40001 * predict.c: Likewise.
40002 * value-prof.c: Likewise.
40003 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
40004 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
40005 * config/microblaze/microblaze.c: Likewise.
40006 * config/nios2/nios2.c: Likewise.
40007 * config/rs6000/rs6000.c: Likewise.
40008 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40009 insn-config.h real.h rtl.h statistics.h stmt.h.
40010 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40011 insn-config.h real.h statistics.h stmt.h.
40012 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
40013 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40014 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
40015 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40016 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
40017 fixed-value.h real.h statistics.h stmt.h.
40018 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
40019 fixed-value.h statistics.h stmt.h.
40020 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
40023 2015-01-15 Jakub Jelinek <jakub@redhat.com>
40025 * gengtype.c (create_user_defined_type): Workaround
40026 -Wmaybe-uninitialized false positives.
40027 * cse.c (fold_rtx): Likewise.
40028 * loop-invariant.c (gain_for_invariant): Likewise.
40030 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
40032 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
40033 set the memory attributes in all cases but clear MEM_EXPR if need be.
40035 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
40037 PR tree-optimization/64434
40038 * cfgexpand.c (reorder_operands): New function.
40039 (expand_gimple_basic_block): Insert call of reorder_operands if
40042 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
40044 * config/mips/micromips.md (*swp): Remove explicit parallel.
40045 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
40046 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
40047 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
40048 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
40049 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
40050 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
40051 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
40052 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
40053 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
40054 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
40055 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
40056 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
40057 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
40058 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
40059 (mips_wrdsp): Likewise.
40060 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
40062 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
40063 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
40064 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
40065 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
40066 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
40067 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
40068 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
40069 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
40070 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
40072 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40074 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
40075 (mips_print_operand): Support 'y' to print exact log2 in decimal
40077 * config/mips/mips.h (ISA_HAS_LSA): New define.
40078 (ISA_HAS_DLSA): Likewise.
40079 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
40080 * config/mips/predicates.md (const_immlsa_operand): New predicate.
40082 2015-01-15 Martin Liska <mliska@suse.cz>
40085 * optc-save-gen.awk: Add support for array types.
40087 2015-01-15 Richard Biener <rguenther@suse.de>
40089 PR middle-end/64365
40090 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
40091 for MEM_REF access functions with the same base can never partially
40094 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
40096 * common.opt: New option -fstack-protector-explicit.
40097 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
40098 (stack_protect_decl_phase): Handle stack_protect attribute for
40099 explicit stack protection requests.
40100 (expand_used_vars): Similarly.
40101 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
40102 * doc/extend.texi: Add documentation for "stack_protect" attribute.
40103 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
40105 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
40108 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
40110 (sh_extending_set_of_reg): New struct.
40111 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
40112 sh_remove_reg_dead_or_unused_notes): New Declarations.
40113 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
40114 sh_find_extending_set_of_reg, sh_split_tst_subregs,
40115 sh_extending_set_of_reg::use_as_extended_reg): New functions.
40116 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
40117 convert to insn_and_split and use new function sh_split_tst_subregs.
40119 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
40121 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
40123 (Optimization Options): Move -fuse-ld documentation to...
40124 (Link Options): ...here.
40126 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40128 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
40130 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
40131 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
40132 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
40133 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
40134 instead of ZR for the memory operand of LL/SC.
40135 (compare_and_swap_12, sync_add<mode>): Likewise.
40136 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
40137 (sync_new_<optab>_12, sync_nand_12): Likewise.
40138 (sync_old_nand_12, sync_new_nand_12): Likewise.
40139 (sync_sub<mode>, sync_old_add<mode>): Likewise.
40140 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
40141 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
40142 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
40143 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
40144 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
40145 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
40146 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
40147 * doc/md.texi (ZC): Update description.
40149 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
40151 * builtins.c (expand_builtin_atomic_exchange): Remove error when
40152 memory model is CONSUME.
40153 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
40154 expand_builtin_atomic_store): Change invalid memory model errors to
40156 (expand_builtin_atomic_clear): Change invalid model errors to warnings
40157 and issue warning for CONSUME.
40159 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
40161 * lto-cgraph: Update function comments for
40162 lto_symtab_encoder_encode_*.
40164 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
40166 * Makefile.in (site.exp): Do not set ENABLE_LTO.
40168 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
40170 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
40171 * lto-cgraph.c (select_what_to_stream): Remove argument, use
40172 lto_stream_offload_p instead.
40173 * lto-streamer.h (select_what_to_stream): Remove argument.
40174 * passes.c (ipa_write_summaries): Likewise.
40175 * tree-pass.h (ipa_write_summaries): Likewise.
40177 2015-01-14 Richard Biener <rguenther@suse.de>
40179 PR tree-optimization/59354
40180 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
40181 groups larger than the slp group size as having gaps.
40183 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
40185 PR middle-end/59448
40186 * builtins.c (get_memmodel): Promote consume to acquire always.
40188 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
40191 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
40194 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
40197 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
40199 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
40200 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
40201 AVX512VBMI, as it implies AVX512BW.
40203 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
40206 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
40207 (vec_unpacks_hi_v16sf): Ditto.
40209 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40211 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
40214 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40216 * doc/invoke.texi (mapcs): Mention deprecation.
40217 (mapcs-frame): Likewise.
40219 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
40222 * config/arm/arm.c (callee_saved_reg_p): Define.
40223 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
40224 register is callee saved instead of !call_used_regs[reg].
40225 (thumb1_compute_save_reg_mask): Likewise.
40227 2015-01-14 Hale Wang <hale.wang@arm.com>
40229 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
40232 2015-01-14 Richard Biener <rguenther@suse.de>
40235 * tree-inline.c (insert_debug_decl_map): Check destination
40236 function MAY_HAVE_DEBUG_STMTS.
40237 (insert_init_debug_bind): Likewise.
40238 (insert_init_stmt): Remove redundant check.
40239 (remap_gimple_stmt): Drop debug stmts if the destination
40240 function has var-tracking assignments disabled.
40242 2015-01-14 Martin Liska <mliska@suse.cz>
40244 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
40245 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
40247 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40250 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
40251 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
40253 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40255 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
40256 level from an ARCH; do not inject the default.
40257 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
40258 MIPS_ISA_LEVEL_SPEC.
40259 (MIPS_ISA_NAN2008_SPEC): Update comment.
40260 (BASE_DRIVER_SELF_SPECS): Likewise.
40261 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
40262 MIPS_DEFAULT_ISA_LEVEL_SPEC.
40263 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
40264 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
40265 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
40267 2015-01-14 Richard Biener <rguenther@suse.de>
40269 PR tree-optimization/64493
40270 PR tree-optimization/64495
40271 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
40272 assign the proper vectorized PHI to the inner loop exit PHIs.
40274 2015-01-14 Joey Ye <joey.ye@arm.com>
40276 * config/arm/arm.c (arm_compute_save_reg_mask):
40277 Do not save lr in case of tail call.
40278 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
40280 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
40282 * tree-vrp.c (check_array_ref): Emit more warnings
40283 for warn_array_bounds >= 2.
40284 * common.opt: New option -Warray-bounds=.
40285 * doc/invoke.texi: Document -Warray-bounds=.
40287 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
40289 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
40290 (mforbid-fp-as-gp): Remove.
40292 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
40293 (nds32_symbol_load_store_p): Remove.
40294 (nds32_fp_as_gp_check_available): Clean up implementation.
40295 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
40297 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
40298 fp-as-gp and ex9 cases.
40300 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40302 * tree-profile.c (init_ic_make_global_vars): Drop workaround
40303 for bintuils bug 14342.
40304 (init_ic_make_global_vars): Likewise.
40305 (gimple_init_edge_profiler): Likewise.
40306 (gimple_gen_ic_func_profiler): Likewise.
40308 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
40310 * ipa-inline.c (inline_small_functions): Swap the operands in
40313 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40316 * ipa-inline-analysis.c (node_growth_cache): Remove.
40317 (initialize_growth_caches): Do not initialize it.
40318 (free_growth_caches): Do not free it.
40319 (do_estimate_growth): Rename to ...
40320 (estimate_growth): ... this one; drop growth cache code.
40321 (growth_likely_positive): Always go the heuristics way.
40322 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
40323 (reset_edge_caches): Do not reset node growth.
40324 (heap_edge_removal_hook): Do not maintain cache.
40325 (inline_small_functions): Likewise; strenghten sanity check.
40326 (ipa_inline): Do not maintain caches.
40327 * ipa-inline.h (node_growth_cache): Remove.
40328 (do_estimate_growth): Remove to ...
40329 (estimate_growth): this one; remove inline version.
40330 (reset_node_growth_cache): Remove.
40332 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40335 * ipa-inline.c (inline_small_functions): Update callee keys after
40336 resolving speculation
40337 (inline_small_functions): Always check monotonicity of the queue.
40339 2015-01-13 Marek Polacek <polacek@redhat.com>
40341 PR middle-end/64391
40342 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
40344 2015-01-13 Jakub Jelinek <jakub@redhat.com>
40346 PR rtl-optimization/64286
40347 * ree.c (combine_reaching_defs): Move part of comment earlier,
40348 remove !SCALAR_INT_MODE_P check.
40349 (add_removable_extension): Don't add vector mode
40350 extensions if all uses of the source register aren't the same
40353 2015-01-13 Renlin Li <renlin.li@arm.com>
40355 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
40356 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
40358 2015-01-13 Martin Liska <mliska@suse.cz>
40360 * ipa-icf.c (sem_function::equals_private): Call new functions
40361 cl_target_option_print_diff and cl_optimization_print_diff.
40362 * optc-save-gen.awk (cl_target_option_print_diff): New function.
40363 (cl_optimization_print_diff): Likewise.
40364 * opth-gen.awk: Likewise.
40366 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
40368 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
40369 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
40370 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
40371 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
40372 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
40373 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
40375 2015-01-13 Andrew Pinski <apinski@cavium.com>
40377 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
40378 instead of src mode.
40380 2015-01-13 Richard Biener <rguenther@suse.de>
40383 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
40386 2015-01-13 Andrew Pinski <apinski@cavium.com>
40388 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
40390 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
40392 2015-01-13 Jakub Jelinek <jakub@redhat.com>
40394 PR middle-end/63974
40395 * cfgexpand.c (expand_computed_goto): Don't call
40396 convert_memory_address here.
40398 2015-01-13 Richard Biener <rguenther@suse.de>
40400 PR tree-optimization/64406
40401 * tree-loop-distibution.c (pass_loop_distribution::execute):
40402 Reset the SCEV hashtable if we distributed anything.
40404 2015-01-13 Richard Biener <rguenther@suse.de>
40406 PR tree-optimization/64404
40407 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
40408 SLP types for CSEd loads.
40410 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
40412 PR tree-optimization/64436
40413 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
40414 merge of two symbolic numbers for a bitwise OR to ...
40415 (perform_symbolic_merge): This. Also fix computation of the range and
40416 end of the symbolic number corresponding to the result of a bitwise OR.
40418 2015-01-13 Richard Biener <rguenther@suse.de>
40420 PR tree-optimization/64568
40421 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
40422 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
40424 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40426 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
40427 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
40429 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40431 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
40432 target-specific symbol_ref flag.
40433 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
40434 resides in rodata section.
40435 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
40436 (nds32_encode_section_info): New function.
40438 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40440 * config/nds32/nds32.md (call): Use pseudo instruction bal which
40441 clobbers TA_REGNUM if large code model is specified.
40442 (call_register): Likewise.
40443 (call_immediate): Likewise.
40444 (call_value): Likewise.
40445 (call_value_register): Likewise.
40446 (call_value_immediate): Likewise.
40448 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40450 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
40451 (TARGET_CMODEL_MEDIUM): New macro.
40452 (TARGET_CMODEL_LARGE): New macro.
40453 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
40454 code model setting in assembly code.
40456 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40458 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
40459 Remove MASK_GP_DIRECT flag.
40460 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
40461 one of the multilib default options.
40462 * config/nds32/nds32.opt (mgp-direct): Remove.
40463 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
40464 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
40466 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40468 * config/nds32/nds32.opt (mcmodel): Add new option.
40469 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
40470 to describe code model.
40472 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
40475 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
40477 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
40479 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
40480 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
40481 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
40482 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
40483 __builtin_sh_set_fpscr.
40485 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
40487 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
40488 after a funtion name just to indicate it is a function.
40489 ([-fsanitize-undefined-trap-on-error]): Likewise.
40490 ([-fdbg-cnt=]): Likewise.
40491 ([-mmemcpy]): Likewise.
40492 ([-mflush-func]): Likewise.
40493 ([-msynci]): Likewise.
40495 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
40497 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
40500 2015-01-12 Jakub Jelinek <jakub@redhat.com>
40502 PR tree-optimization/64563
40503 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
40504 instead of != VR_VARYING.
40507 * config/i386/i386.c (ix86_expand_prologue): Add
40508 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
40510 PR tree-optimization/64454
40511 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
40512 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
40513 for signed or [0, op1 - 1] for unsigned modulo.
40514 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
40515 even if op1 does not satisfy integer_pow2p.
40518 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
40520 2015-01-12 Jeff Law <law@redhat.com>
40523 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
40524 (trunchiqi2, truncsihi2): Similarly.
40526 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
40527 rather than calling F.
40529 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
40531 * tsan.c (instrument_expr): Use force_gimple_operand.
40532 Use may_be_nonaddressable_p instead of is_gimple_addressable.
40534 2015-01-12 Richard Biener <rguenther@suse.de>
40536 PR tree-optimization/64530
40537 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
40540 2015-01-12 Richard Biener <rguenther@suse.de>
40542 PR middle-end/64357
40543 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
40546 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40548 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
40549 Cortex-A17 tuning parameters.
40550 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
40552 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40554 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
40555 * config/arm/arm.c (arm_macro_fusion_p): New function.
40556 (arm_macro_fusion_pair_p): Likewise.
40557 (TARGET_SCHED_MACRO_FUSION_P): Define.
40558 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
40559 (ARM_FUSE_NOTHING): Likewise.
40560 (ARM_FUSE_MOVW_MOVT): Likewise.
40561 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
40562 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
40563 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
40564 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
40565 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
40566 arm_cortex_a5_tune): Specify fuseable_ops value.
40568 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
40571 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
40572 test for PIE with copy reloc.
40573 * configure: Regenerated.
40575 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40577 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
40579 (arm_tls_descseq_addr): Likewise.
40580 (arm_gen_movmemqi): Likewise.
40581 (arm_expand_epilogue_apcs_frame): Likewise.
40582 (arm_expand_epilogue): Likewise.
40583 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
40586 2015-01-12 Martin Liska <mliska@suse.cz>
40589 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
40590 volatility for correct operands.
40592 2015-01-12 Martin Liska <mliska@suse.cz>
40594 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
40595 indication that a function is not leaf.
40596 (sem_function::compare_polymorphic_p): Likewise.
40598 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40600 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
40601 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
40602 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
40603 fold-const.h, tree-check.h.
40605 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
40609 * ipa-inline.c (compute_uninlined_call_time,
40610 compute_inlined_call_time): Use counts for extra precision when
40612 (big_speedup_p): Fix formating.
40613 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
40614 (relative_time_benefit): Remove.
40615 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
40616 merge guessed and read profile paths.
40617 (inline_small_functions): Count only !optimize_size functions into
40618 initial size; be more lax about sanity check when profile is used;
40619 be sure to update inlined function profile when profile is read.
40621 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
40624 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
40625 cost when edge becomes direct.
40626 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
40627 is resolved or when introducing new speculation.
40629 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
40633 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
40634 '||' to fix typo issue.
40636 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
40637 accept and return NULL.
40639 2015-01-12 Martin Liska <mliska@suse.cz>
40641 * cgraph.c (cgraph_edge::remove_callee): Move function to header
40642 file for being inlined.
40643 (cgraph_set_edge_callee): Delete.
40644 (cgraph_edge::redirect_callee): Move function to header file
40646 (cgraph_edge::make_direct): Use new function.
40647 (cgraph_edge::dump_edge_flags): New function created from
40648 static dump_edge_flags function.
40649 (cgraph_node::dump): Use new function.
40650 (cgraph_edge::verify_count_and_frequency): New function created
40651 from verify_edge_count_and_frequency.
40652 (cgraph_edge::verify_corresponds_to_fndecl): New function created
40653 from verify_edge_corresponds_to_fndecl.
40654 (verify_edge_corresponds_to_fndecl): Delete.
40655 (cgraph_node::verify_node): Use new function.
40656 * cgraph.h (cgraph_edge::set_callee): New function.
40657 (cgraph_edge::dump_edge_flags): Likewise.
40658 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
40660 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
40662 * ipa-utils.c (estimate_function_body_sizes): Do not
40663 free node params when called late with early=true.
40665 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
40667 * doc/md.texi (Instruction Patterns): Rewrite text for
40669 (Example): Likewise.
40671 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
40673 * doc/invoke.texi (Option Summary): Break long lines.
40674 [(-fdiagnostics-color)]: Put long literal in @smallexample
40676 [(-fsanitize-recover)]: Likewise.
40677 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
40678 [(-ffast-math)]: Likewise.
40679 [(--param max-inline-insns-recursive)]: Likewise.
40680 [(--param max-inline-recursive-depth)]: Likewise.
40681 [(-mno-text-section-literals)]: Likewise.
40683 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
40685 * doc/install.texi: Update for libgomp being renamed from "GNU
40686 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
40688 * doc/sourcebuild.texi: Likewise.
40690 2015-01-10 Anthony Green <green@moxielogic.com>
40692 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
40693 mul.x availability for moxiebox configuration.
40695 2015-01-09 Anthony Green <green@moxielogic.com>
40697 * config/moxie/moxie.md: Tabify assembly output.
40699 2015-01-09 Anthony Green <green@moxielogic.com>
40701 * config/moxie/moxie.md (CC_REG): Correct register definition.
40703 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
40705 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
40706 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
40709 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40711 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
40713 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
40714 Jakub Jelinek <jakub@redhat.com>
40716 PR middle-end/64412
40717 * lto-streamer.h (lto_stream_offload_p): New declaration.
40718 * lto-streamer.c (lto_stream_offload_p): New variable.
40719 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
40720 at the same time as section_name_prefix.
40721 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
40722 if lto_stream_offload_p.
40723 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
40724 stream TREE_TARGET_OPTION if lto_stream_offload_p.
40725 (write_ts_function_decl_tree_pointers): Don't
40726 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
40727 * tree-streamer-in.c (unpack_value_fields): Don't stream
40728 TREE_TARGET_OPTION in if ACCEL_COMPILER.
40729 (lto_input_ts_function_decl_tree_pointers): Don't stream
40730 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
40731 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
40732 instead of section_name_prefix string comparisons.
40734 2015-01-09 Jakub Jelinek <jakub@redhat.com>
40736 PR rtl-optimization/64536
40737 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
40740 2015-01-09 Michael Collison <michael.collison@linaro.org>
40742 PR tree-optimization/64322
40743 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
40744 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
40746 2015-01-09 Tom de Vries <tom@codesourcery.com>
40748 PR rtl-optimization/64539
40749 * regcprop.c (kill_clobbered_values): Factor out of ...
40750 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
40751 instead of note_stores with kill_clobbered_value.
40753 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40755 * ginclude/unwind-arm-common.h: Revert previous commit.
40757 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40759 * config.gcc (arm*-*-freebsd*): New configuration.
40760 * config/arm/freebsd.h: New file.
40761 * config.host: Add extra components for arm*-*-freebsd*.
40762 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
40763 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
40765 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40767 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
40769 * config/rs6000/t-rtems: Add e6500 multilibs.
40771 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40773 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
40776 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40778 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
40779 MULTILIB_EXCEPTIONS.
40781 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40783 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
40784 MULTILIB_EXCEPTIONS.
40786 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40788 * config/arm/t-rtems-eabi: Rename to...
40789 * config/arm/t-rtems: ...this.
40790 * config/arm/rtems-eabi.h: Rename to...
40791 * config/arm/rtems.h: ...this.
40792 * config.gcc (arm*-*-rtems*): Reflect changes above.
40794 2015-01-09 Richard Biener <rguenther@suse.de>
40796 PR tree-optimization/64410
40797 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
40799 (execute_update_addresses_taken): Deal with that.
40800 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
40801 loads/stores for complex variables.
40803 2015-01-09 Martin Liska <mliska@suse.cz>
40805 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
40807 (func_checker::compare_memory_operand): New function.
40808 (func_checker::compare_operand): Split case to newly
40810 (func_checker::compare_cst_or_decl): New function.
40811 (func_checker::compare_gimple_call): Identify
40813 (func_checker::compare_gimple_assign): Likewise.
40814 * ipa-icf-gimple.h: New function.
40816 2015-01-09 Martin Liska <mliska@suse.cz>
40819 * sreal.c (sreal::dump): Change unsigned format to signed for
40821 (sreal::to_double): Replace exp2 with scalbln.
40823 2015-01-09 Martin Liska <mliska@suse.cz>
40825 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
40826 * ipa-icf.c (sem_function::equals_private): Add support for target and
40827 (sem_item_optimizer::merge_classes): Remove redundant function
40828 optimization flags comparison.
40829 * tree.h (target_opts_for_fn): New function.
40831 2015-01-09 Tom de Vries <tom@codesourcery.com>
40833 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
40835 2015-01-09 Kito Cheng <kito@0xlab.org>
40837 PR rtl-optimization/64348
40838 * lra-constraints.c (split_reg): Fix caller-save store/restore
40839 instruction generation.
40841 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
40843 PR gcov-profile/61790
40844 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
40845 long long. Fallback to int64_t if host doesn't have long long and
40846 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
40848 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40850 PR tree-optimization/63989
40851 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
40852 from 1000 to 10000.
40853 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
40854 (get_stridx): If we don't have a record for certain SSA_NAME,
40855 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
40856 constant offset, call get_stridx_plus_constant.
40857 (get_stridx_plus_constant): New function.
40858 (zero_length_string): Don't use get_stridx here.
40861 PR middle-end/64388
40862 * dse.c (struct insn_info): Mention frame_read set also
40863 before reload for tail calls on some targets.
40864 (scan_insn): Revert 2014-12-22 change. Set frame_read
40865 also before reload for tail calls if
40866 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
40867 instead of add_non_frame_wild_read for non-const/memset
40868 tail calls after reload.
40870 2015-01-08 Jason Merrill <jason@redhat.com>
40872 * ubsan.c (do_ubsan_in_current_function): New.
40873 (pass_ubsan::gate): Use it.
40874 * ubsan.h: Declare it.
40875 * convert.c (convert_to_integer): Use it.
40877 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40880 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
40881 compare_code when it is unconditionally overwritten afterwards.
40882 Use ix86_reverse_condition instead of reverse_condition. Don't
40883 change code if *reverse_condition* returned UNKNOWN and don't
40884 swap ct/cf and negate diff in that case.
40886 2015-01-08 Mike Stump <mikestump@comcast.net>
40888 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
40889 (pass_tsan_O0::gate): Likewise.
40890 * extend.texi (Function Attributes): Add no_sanitize_thread
40893 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
40895 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
40896 for registering builtins.
40897 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
40898 add -fopenmp to the argv_obstack used when invoking
40899 compile_for_target.
40901 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
40902 add "-m32" or "-m64" to argv_obstack.
40903 (generate_host_descr_file): Likewise, when invoking host_compiler.
40904 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
40907 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40909 * config/sh/sh-mem.cc: Use constant as second operand when emitting
40912 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40915 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
40916 constant load if constant operand fits into I08.
40918 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40921 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
40922 and TREE_THIS_VOLATILE for MEM_REFs.
40923 (build5_stat): Fix up initialization of TREE_READONLY and
40924 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
40926 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
40929 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
40930 of r for the second alternative of the destination operand.
40932 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
40935 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
40937 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
40939 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
40941 ([-fivar-visibility], [-fvisibility]): Likewise.
40943 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
40945 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
40946 the file where @code, @command, etc is more appropriate.
40948 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
40950 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
40951 of -mrecip= documentation.
40953 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
40956 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
40957 correct reload handler if -m32 -mpowerpc64 is used.
40959 2015-01-06 Tom de Vries <tom@codesourcery.com>
40961 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
40963 2015-01-08 Christian Bruel <christian.bruel@st.com>
40966 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
40968 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
40970 PR tree-optimization/63259
40971 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
40972 if optab exists for 16bit byteswap.
40974 2015-01-06 Jakub Jelinek <jakub@redhat.com>
40976 * opts.c (common_handle_option): Add support for
40977 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
40978 * doc/invoke.texi: Document -fno-sanitize=all,
40979 -f{,no-}sanitize-recover=all. Document that
40980 -fsanitize=float-cast-overflow is not enabled
40981 by -fsanitize=undefined. Fix up documentation
40982 of -f{,no-}sanitize-recover.
40984 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
40986 * config.gcc: Add Visium support.
40987 * configure.ac: Likewise.
40988 * configure: Regenerate.
40989 * doc/extend.texi (interrupt attribute): Add Visium.
40990 * doc/invoke.texi: Document Visium options.
40991 * doc/install.texi: Document Visium target.
40992 * doc/md.texi: Document Visium constraints.
40993 * common/config/visium: New directory.
40994 * config/visium: Likewise.
40996 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
40998 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
40999 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
41001 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
41003 * combine.c (combine_validate_cost): Do not count the cost of a
41004 split I2 twice. Do not display it twice in the dump, either.
41006 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
41008 Revert parts of r219199.
41009 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
41011 ([-Wtraditional]): Restore markup on <limits.h>.
41013 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
41016 * doc/invoke.texi: Document -Wsuggest-override.
41018 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
41020 PR rtl-optimization/64287
41021 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
41022 (process_options): Disable flag_ipa_ra if profiling.
41024 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
41026 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
41028 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
41030 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
41031 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
41032 put under #if TARGET_LOOPS guard.
41034 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
41036 * config/i386/i386.c (output_387_binary_op): Use std::swap.
41038 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
41040 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
41041 * rtl.h (refers_to_regno_p): Add overload.
41043 * bt-load.c: Likewise.
41044 * combine.c: Likewise.
41045 * df-scan.c: Likewise.
41046 * sched-deps.c: Likewise.
41047 * config/s390/s390.c: Likewise.
41048 * config/m32r/m32r.c: Likewise.
41049 * config/rs6000/spe.md: Likewise.
41050 * config/rs6000/rs6000.c: Likewise.
41051 * config/pa/pa.c: Likewise.
41052 * config/stormy16/stormy16.c: Likewise.
41053 * config/cris/cris.c: Likewise.
41054 * config/arc/arc.md: Likewise.
41055 * config/arc/arc.c: Likewise.
41056 * config/sh/sh.md: Likewise.
41057 * config/sh/sh.c: Likewise.
41058 * config/frv/frv.c: Likewise.
41060 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41063 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
41064 call as cleanup of the whole body.
41065 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
41066 * tsan.c (replace_func_exit): New function.
41067 (instrument_func_exit): Moved earlier.
41068 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
41069 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
41071 (tsan_pass): Don't call instrument_func_exit.
41072 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
41073 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
41077 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
41078 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
41079 it to libubsan handler instead of EXPR. Fold comparisons earlier,
41080 if the result is integer_zerop, return NULL_TREE.
41081 * convert.c (convert_to_integer): Pass expr as ARG.
41083 PR tree-optimization/64465
41084 * tree-inline.c (redirect_all_calls): During inlining
41085 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
41086 changed the stmt to a non-throwing call.
41088 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
41090 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
41091 etc markup throughout the file.
41093 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
41095 Enable experimental TSAN support for Ada.
41096 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
41098 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41100 PR tree-optimization/64494
41101 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
41102 clear SSA_NAME_ANTI_RANGE_P flag.
41104 2015-01-05 Marek Polacek <polacek@redhat.com>
41106 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
41108 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41110 Update copyright years.
41112 * gcc.c (process_command): Update copyright notice dates.
41113 * gcov-dump.c: Ditto.
41115 * doc/cpp.texi: Bump @copying's copyright year.
41116 * doc/cppinternals.texi: Ditto.
41117 * doc/gcc.texi: Ditto.
41118 * doc/gccint.texi: Ditto.
41119 * doc/gcov.texi: Ditto.
41120 * doc/install.texi: Ditto.
41121 * doc/invoke.texi: Ditto.
41123 * auto-profile.c, auto-profile.h: Fix up Copyright line.
41125 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
41127 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
41129 ([-fvtable-verify], [-fvtv-debug]): Likewise.
41130 ([-Wabi]): Likewise.
41131 ([-fmessage-length]): Likewise.
41132 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
41133 ([-Wno-discarded-qualifiers]): Likewise.
41134 ([-Wnodiscarded-array-qualifiers]): Likewise.
41135 ([-Wno-virtual-move-assign]): Likewise.
41136 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
41137 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
41138 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
41139 ([-fsanitize-undefined-trap-on-error]): Likewise.
41140 ([-floop-interchange]): Likewise.
41141 ([-ftree-coalesce-inlined-vars]): Likewise.
41142 ([-fvect-cost-model]): Likewise.
41143 ([-flto]): Likewise.
41144 ([--param]): Likewise.
41145 (Spec Files): Likewise.
41146 ([-mstrict-align]): Likewise.
41147 ([-mfix-cortex-a53-835769]): Likewise.
41148 ([-march], [-mtune]): Likewise.
41149 ([-mpic-register]): Likewise.
41150 ([-munaligned-access]): Likewise.
41151 ([-msp8]): Likewise.
41152 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
41153 (AVR Built-in Macros): Likewise.
41154 ([-mpreferred-stack-boundary]): Likewise.
41155 ([-mtune-crtl]): Likewise.
41156 ([-mashf]): Likewise.
41157 ([-mmcu=]): Likewise.
41158 ([-minrt]): Likewise.
41159 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
41160 ([-mupper-regs]): Likewise.
41161 ([-matomic-model]): Likewise.
41162 ([-mdiv]): Likewise.
41163 ([-mzdcbranch]): Likewise.
41164 ([-mdisable-callt]): Likewise.
41165 ([-msoft-float]): Likewise.
41166 ([-m8byte-align]): Likewise.
41167 ([-fstack-reuse]): Likewise.
41169 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41171 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
41172 Fix markup, light copy-editing.
41173 ([-fauto-profile]): Rewrite to fix formatting and content
41176 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41178 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
41179 Copy-edit description.
41180 ([-fisolate-erroneous-paths-attribute]): Likewise.
41181 * common.opt (fisolate-erroneous-paths-dereference):
41182 Copy-edit description.
41183 (fisolate-erroneous-paths-attribute): Likewise.
41185 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41187 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
41190 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41192 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
41193 ([-fvtv-debug]): Likewise.
41194 ([-Wc++-compat]): Likewise.
41195 ([-Wc++11-compat]): Likewise.
41196 ([-Wc++14-compat]): Likewise.
41197 ([-Wno-sized-deallocation]): Likewise.
41198 ([-femit-class-debug-always]): Likewise.
41199 ([-femit-struct-debug-detailed]): Likewise.
41200 ([-fno-keep-inline-dllexport]): Likewise.
41201 ([-fira-algorithm]): Likewise.
41202 ([-fira-region]): Likewise.
41203 ([-flra-remat]): Likewise.
41204 ([-fipa-ra]): Likewise.
41205 ([-fhoist-adjacent-loads]): Likewise.
41206 ([-fisolate-erroneous-paths-dereference]): Likewise.
41207 ([-fisolate-erroneous-paths-attribute]): Likewise.
41208 ([-ftree-switch-conversion]): Likewise.
41209 ([-ftree-tail-merge]): Likewise.
41210 ([-ftree-loop-if-convert]): Likewise.
41211 ([-ftree-loop-if-convert-stores]): Likewise.
41212 ([-ftree-loop-distribution]): Likewise.
41213 ([-ftree-loop-distribute-patterns]): Likewise.
41214 ([-flto-compression-level]): Likewise.
41215 ([-flto-report]): Likewise.
41216 ([-flto-report-wpa]): Likewise.
41217 ([-fuse-linker-plugin]): Likewise.
41218 ([-mfix-cortex-a53-835769]): Likewise.
41219 ([-mno-fix-cortex-a53-835769]): Likewise.
41220 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
41221 explicit listing; add a note to the discussion indicating they
41222 exist. Reorder table to group similar options. Add missing
41223 @opindex entries. Add @need commands throughout the table to
41224 allow it to be split across multiple pages.
41225 ([-m8bit-idiv]): Fix @opindex.
41226 ([-mavx256-split-unaligned-load]): Likewise.
41227 ([-mavx256-split-unaligned-store]): Likewise.
41228 ([-mstack-protector-guard]): Likewise.
41229 ([-mcpu=]): Likewise.
41230 ([-mcpu]): Likewise.
41231 ([-mpointer-size=]): Likewise.
41233 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
41235 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
41236 instead of `m' constraint. Likewise for unnamed movb comparison
41237 patterns using reg_before_reload_operand predicate.
41238 * config/pa/predicates.md (reg_before_reload_operand): Tighten
41239 predicate to reject register index and LO_SUM DLT memory forms
41242 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
41244 * doc/invoke.texi (Option Summary): Fix spelling of
41245 -fdevirtualize-at-ltrans.
41246 ([-fdevirtualize]): Fix markup.
41247 ([-fdevirtualize-speculatively]): Fix typo.
41248 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
41249 implementor-speaky.
41250 * common.opt (fdevirtualize-at-ltrans): Likewise.
41251 * ipa-devirt.c: Fix typos in comments throughout the file.
41252 (ipa_devirt): Fix typos in format strings for dump output.
41254 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
41256 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
41257 discussion of defaults, light copy-editing.
41259 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
41261 * tsan.c (instrument_expr): corrected previous checkin.
41263 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
41265 Instrument bit field and unaligned accesses for TSAN.
41266 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
41267 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
41268 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
41269 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
41270 unaligned memory regions.
41272 2015-01-01 Anthony Green <green@moxielogic.com>
41274 * config/moxie/predicates.md (moxie_general_movsrc_operand):
41275 Restrict move source register offsets to 16 bits.
41277 Copyright (C) 2015 Free Software Foundation, Inc.
41279 Copying and distribution of this file, with or without modification,
41280 are permitted in any medium without royalty provided the copyright
41281 notice and this notice are preserved.