1 2015-11-30 Jakub Jelinek <jakub@redhat.com>
3 PR tree-optimization/68501
4 * target.def (builtin_reciprocal): Replace the 3 arguments with
5 a gcall * one, adjust description.
6 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
8 * targhooks.c (default_builtin_reciprocal): Likewise.
9 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
10 targetm.builtin_reciprocal even on internal functions, adjust
11 the arguments and allow replacing an internal function with normal
13 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
14 with a gcall * one. Handle internal fns too.
15 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
16 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17 * doc/tm.texi (builtin_reciprocal): Document.
19 2015-11-30 Richard Biener <rguenther@suse.de>
21 PR tree-optimization/68592
22 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
23 on the pattern def sequence.
25 2015-11-30 Nathan Sidwell <nathan@acm.org>
27 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
28 (write_one_arg): Reorder parms, add 'sep' param.
29 (nvptx_write_function_decl): Rename to ...
30 (write_fn_proto): ... here. Do name replacement. Emit linaer
31 comment marker. Deal with both decls and defns. Simplify argument
33 (write_function_decl_and_comment): Delete.
34 (write_func_decl_from_insn): Rename to ...
35 (write_fn_proto_from_insn): ... here. Don't do name replacement.
36 (nvptx_record_fndecl): Call write_fn_proto.
37 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
38 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
39 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
41 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
43 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
44 (define_insn "*k<logic><mode>"): Use new iterator.
46 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
49 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
50 (sparc_adjust_cost): Add missing space.
52 2015-11-30 Richard Biener <rguenther@suse.de>
55 * dwarf2out.c (gen_type_die_with_usage): Keep variant types
58 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
60 * tree-if-conv.c (struct ifc_dr): Add new tree
62 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
63 base ref, DR pairs and store base_predicate for write type DRs.
64 (ifcvt_memrefs_wont_trap): Guard checks with
65 -ftree-loop-if-convert-stores flag.
67 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
69 * cgraph.c (cgraph_node::make_local): No name is unique during
71 * cgraph.h (can_be_discarded_p): Update comment; also common and
72 WEAK in named sections can be discarded; when doing incremental
73 link do not rely on resolution being the final one.
74 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
75 When symbol can be discarded, do not rely on resolution info.
76 * symtab.c (symtab_node::nonzero_address): Take into account that
77 symbol can be discarded.
78 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
80 (function_and_variable_visibility): Do not set unique_name when
81 incrementally linking.
83 2015-11-29 Nathan Sidwell <nathan@acm.org>
85 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
86 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
87 (ctrap<mode>): Use const0_operand.
89 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
91 * ipa-devirt.c (add_type_duplicate): Remove redundant ODR violation
94 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
97 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
98 recog_memoized test for insn and check recog_memoized for dep_insn.
100 2015-11-28 Nathan Sidwell <nathan@acm.org>
102 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
103 (FRAME_POINTER_CFA_OFFSET): Define.
104 (struct nvptx_args): Use 'tree' type.
105 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
107 2015-11-28 Tom de Vries <tom@codesourcery.com>
109 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
111 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
113 * doc/invoke.texi (Option Summary): Use negative form of
114 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
115 sort alphabetically and re-justify.
117 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
119 PR rtl-optimization/68536
120 * lra.c (lra_emit_add): Add code for null base.
121 * lra-constraints.c (curr_insn_transform): Skip operators for
124 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
127 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
129 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
131 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
132 are not modified by the final modified insns in the basic blocks.
134 2015-11-27 Nathan Sidwell <nathan@acm.org>
136 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
138 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
139 (nvptx_maybe_convert_symbolic_operand): Simplify.
140 (nvptx_addr_space_from_address): Delete.
141 (nvptx_print_operand): Adjust 'A' case.
143 2015-11-27 Richard Biener <rguenther@suse.de>
145 PR tree-optimization/68559
146 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
147 peeling for gap checks ...
148 * tree-vect-stmts.c (vectorizable_load): ... here and relax
150 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
151 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
153 2015-11-27 Nathan Sidwell <nathan@acm.org>
155 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't
157 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
158 (nvptx_record_fndecl): Don't return value, remove force
159 argument. Require fndecl.
160 (nvptx_record_libfunc): New.
161 (nvptx_record_needed_decl): Deteermine how to record decl here.
162 (nvptx_maybe_record_fnsym): New.
163 (nvptx_expand_call): Don't record libfuncs here,
164 (nvptx_maybe_convert_symbolic_operand): Use
165 nvptx_maye_record_fnsym.
166 (nvptx_assemble_integer): Reimplement with single switch.
167 (nvptx_output_call_insn): Register libfuncs here.
168 (nvptx_file_end): Adjust nvptx_record_fndecl call.
169 * config/nvptx/nvptx.md (expand_movdi): Don't call
170 nvptx_record_needed_decl.
172 2015-11-27 Richard Biener <rguenther@suse.de>
174 PR tree-optimization/68553
175 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
176 generation for 1:1 permutations.
177 (vect_transform_slp_perm_load): Detect 1:1 permutations.
179 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
181 * gimple.h (nonbarrier_call_p): Declare.
182 * gimple.c (nonbarrier_call_p): New function.
183 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
184 Also increment call phase for ASMs with vdef and potential barrier
187 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
189 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
191 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
192 are not modified by the final modified insns in the basic blocks.
194 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
196 PR rtl-optimization/68506
197 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
198 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
201 2015-11-27 Martin Liska <mliska@suse.cz>
204 * vec.h (release_vec_vec): New function.
206 2015-11-27 Jakub Jelinek <jakub@redhat.com>
208 PR tree-optimization/68552
209 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
210 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
213 2015-11-27 Martin Liska <mliska@suse.cz>
215 * tree-ssa-uninit.c: Fix whitespaces in the source file.
216 The change is just automatical.
218 2015-11-27 Martin Liska <mliska@suse.cz>
220 * tree-chkp.c (chkp_make_static_bounds): Release buffer
223 2015-11-27 Martin Liska <mliska@suse.cz>
225 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
226 Do not release memory for comp_alias_ddrs.
227 * tree-vect-loop.c (destroy_loop_vec_info): Release
228 the memory for all loop_vec_info.
230 2015-11-27 Martin Liska <mliska@suse.cz>
232 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
233 of a local-scope vec.
234 (struct final_warning_record): Use auto_vec instead
237 2015-11-27 Richard Biener <rguenther@suse.de>
239 PR tree-optimization/68553
240 * tree-vect-slp.c (vect_get_mask_element): Remove.
241 (vect_transform_slp_perm_load): Implement in a simpler way.
243 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
245 PR rtl-optimization/67753
246 PR rtl-optimization/64164
247 * function.c (assign_parm_setup_block): Right-shift
248 upward-padded big-endian args when bypassing the stack slot.
250 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
252 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
253 `-mcompact-branches='.
254 (MIPS Options): Likewise.
256 2015-11-26 Jakub Jelinek <jakub@redhat.com>
258 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
260 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
262 * doc/install.texi (Prerequisites): Increase ISL requirement to
265 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
267 * config/aarch64/arm_neon.h
268 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
269 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
270 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
271 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
272 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
273 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
274 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
275 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
276 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
277 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
278 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
279 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
281 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
283 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
284 (vqrdmlahq_s16, vqrdmlahq_s32): New.
285 (vqrdmlsh_s16, vqrdmlsh_s32): New.
286 (vqrdmlshq_s16, vqrdmlshq_s32): New.
288 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
290 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
293 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
296 * tree-nested.c (finalize_nesting_tree_1): Append a field to
297 hold the frame base address.
298 * dwarf2out.c (gen_subprogram_die): Generate for
299 DW_AT_static_link a location description that computes the value
302 2015-11-26 Tom de Vries <tom@codesourcery.com>
305 2015-11-25 Tom de Vries <tom@codesourcery.com>
307 * cfgloop.c (find_single_latch): New function, factored out of ...
308 (flow_loops_find): ... here.
309 (verify_loop_structure): Improve verification of loop->latch.
310 * cfgloop.h (find_single_latch): Declare.
311 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
313 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
315 * config/aarch64/aarch64-simd-builtins.def:
316 Add missing changes from r230962.
318 2015-11-26 Nathan Sidwell <nathan@acm.org>
320 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
321 arg with name. Don't deal with split regs. Tweak formatting.
322 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
323 (nvptx_output_call_insn): Don't deal with split regs here.
325 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
327 * config/aarch64/aarch64-simd-builtins.def
328 (sqrdmlah, sqrdmlsh): New.
329 (sqrdmlah_lane, sqrdmlsh_lane): New.
330 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
332 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
334 * config/aarch64/aarch64-simd.md
335 (aarch64_sqmovun<mode>): Fix some white-space.
336 (aarch64_<sur>qmovun<mode>): Likewise.
337 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
338 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
339 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
340 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
341 (UNSPEC_SQRDMLSH): New.
345 2015-11-26 Richard Biener <rguenther@suse.de>
347 PR tree-optimization/66721
348 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
349 iteration cost earlier. Re-do analysis without SLP when
350 vectorization using SLP fails and without has a chance to succeed.
352 2015-11-26 Richard Biener <rguenther@suse.de>
354 * genmatch.c (dt_simplify::gen_1): For generic wrap all
355 multi-result-use captures in a SAVE_EXPR.
357 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
359 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
360 (TARGET_SIMD_RDMA): New.
362 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
364 * combine.c (subst): Do not return clobber of zero in widening mult
365 case. Just return x unchanged if it is a no-op substitution.
367 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
370 * config/i386/i386.h (enum reg_class): Add
371 bounds registers to ALL_REGS.
373 2015-11-26 Jakub Jelinek <jakub@redhat.com>
375 PR tree-optimization/68128
376 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
377 * gimplify.c: Include gimple-walk.h.
378 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
379 (omp_notice_variable): Set flags to n->value if n already
380 exists in target region, but we need to jump to do_outer.
381 (omp_shared_to_firstprivate_optimizable_decl_p,
382 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
384 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
385 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
386 not modified in the body. Call omp_mark_stores for outer
387 contexts on OMP_CLAUSE_SHARED clauses if they could be written
388 in the body or on OMP_CLAUSE_LASTPRIVATE.
389 (gimplify_adjust_omp_clauses): Add body argument, call
390 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
391 Set OMP_CLAUSE_SHARED_READONLY
392 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
393 not modified in the body. Call omp_mark_stores for outer
394 contexts on OMP_CLAUSE_SHARED clauses if they could be written
395 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
396 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
397 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
398 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
399 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
400 * tree-nested.c (convert_nonlocal_omp_clauses,
401 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
402 non-local vars or local vars referenced from nested routines.
403 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
404 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
405 TREE_READONLY, don't call use_pointer_for_field with non-NULL
406 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
408 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
410 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
411 about signed left shift stronger and clarify the cases when they're
414 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
415 Bernd Schmidt <bschmidt@redhat.com>
417 PR rtl-optimization/67226
418 * calls.c (store_one_arg): Take into account
419 crtl->args.pretend_args_size when checking for overlap between
420 arg->value and argblock + arg->locate.offset during sibcall
423 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
425 * config/aarch64/aarch64.md (cbranch<mode>4): Use
426 aarch64_fp_compare_operand.
427 (store_pairsf): Use aarch64_reg_or_fp_zero.
428 (store_pairdf): Likewise.
429 (cstore<mode>4): Use aarch64_fp_compare_operand.
430 (cmov<mode>6): Likewise.
431 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
433 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
434 Sebastian Pop <s.pop@samsung.com>
436 PR tree-optimization/68453
437 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
438 not redirect edges already pointing to their destination.
439 (translate_isl_ast_node_for): Split edges after loops to create
440 basic blocks for close phi nodes. Save merge points at the end of
442 (translate_isl_ast_node_if): Save merge points at the end of the
444 (add_close_phis_to_outer_loops): New.
445 (add_close_phis_to_merge_points): New.
446 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
447 (copy_bb_and_scalar_dependences): Do not split basic blocks on
448 loop close phi locations.
450 2015-11-25 Jan Hubicka <jh@suse.cz>
452 * ipa-visibility.c (cgraph_externally_visible_p,
453 varpool_node::externally_visible_p): When doing incremental linking,
454 hidden symbols may be still used later.
455 (update_visibility_by_resolution_info): Do not drop weak during
457 (function_and_variable_visibility): Fix formating.
458 * flag-types.h (lto_linker_output): Declare.
459 * common.opt 9flag_incremental_link): New flag.
461 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
463 * config/rs6000/constraints.md (wb constraint): New constraint for
464 ISA 3.0 d-form scalar addressing.
466 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
467 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
468 Altivec registers. Add wb constraint for Altivec registers with
469 D-form addressing. If we have ISA 3.0 d-form support, undo
470 secondary reload support for using FPR registers if we want to do
472 (rs6000_debug_reg_global): Likewise.
473 (rs6000_setup_reg_addr_masks): Likewise.
474 (rs6000_init_hard_regno_mode_ok): Likewise.
475 (rs6000_secondary_reload): Likewise.
476 (rs6000_preferred_reload_class): Likewise.
477 (rs6000_secondary_reload_class): Likewise.
479 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
482 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
483 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
490 (extendsfdf2_fpr): Likewise.
491 (mov<mode>_hardfloat): Likewise.
492 (mov<mode>_hardfloat32): Likewise.
493 (mov<mode>_hardfloat64): Likewise.
495 * doc/md.texi (RS/6000 constraints): Document wb constraint.
496 Fixup we constraint documentation.
498 2015-11-25 Tom de Vries <tom@codesourcery.com>
500 * omp-low.c (pass_expand_omp_ssa::clone): New function.
501 * passes.def: Add pass_oacc_kernels pass group.
502 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
504 2015-11-25 Tom de Vries <tom@codesourcery.com>
506 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
508 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
509 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
510 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
511 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
513 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
515 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
516 TV_IPA_LTO_OUTPUT): New.
517 * lto-compress.c: Include timevar.h
518 (lto_end_compression, lto_end_uncompression): Add timers.
519 * langhooks.c: Include timevar.h
520 (lhd_append_data): Add timer.
522 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
524 * varasm.c (default_elf_asm_output_limited_string,
525 default_elf_asm_output_ascii): Replace fprintf by putc.
527 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
529 PR rtl-optimization/67954
530 * lra-constraints.c (curr_insn_transform): Add check on scratch
531 pseudo when change class to NO_REGS. Add an assert.
533 2015-11-25 Nathan Sidwell <nathan@acm.org>
535 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
537 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
539 (nvptx_write_function_decl): Number args from 0.
540 (nvptx_declare_function_name): Likewise.
541 (nvptx_function_incoming_arg): Likewise.
542 (nvptx_output_call_insn): Correct formatting.
544 2015-11-25 David Sherwood <david.sherwood@arm.com>
546 * optabs.def: Add new optabs fmax_optab/fmin_optab.
547 * internal-fn.def: Add new fmax/fmin internal functions.
548 * doc/md.texi: Add fmin and fmax patterns.
550 2015-11-25 Jason Merrill <jason@redhat.com>
553 * tree.c (integer_zerop, integer_onep, integer_each_onep)
554 (integer_all_onesp, integer_minus_onep, integer_pow2p)
555 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
556 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
558 2015-11-25 Richard Biener <rguenther@suse.de>
561 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
562 on stripped operands.
564 2015-11-25 Nathan Sidwell <nathan@acm.org>
566 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
567 (nvptx_declare_function_name): Move assignments next to register
568 declarations, and process params here.
570 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
572 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
573 both the symbol and the "dot" symbol for function descriptors. Fix
574 inversion for rename of symbols with dollar sign.
576 2015-11-25 Tom de Vries <tom@codesourcery.com>
578 * cfgloop.c (find_single_latch): New function, factored out of ...
579 (flow_loops_find): ... here.
580 (verify_loop_structure): Improve verification of loop->latch.
581 * cfgloop.h (find_single_latch): Declare.
582 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
584 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
586 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
587 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
588 (STARTFILE_SPEC): Use %(startfile_vtv).
589 (ENDFILE_SPEC): Use %(endfile_vtv).
590 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
593 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
595 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
597 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
598 noce_can_store_speculate): Delete.
599 (noce_process_if_block): Don't try to handle single MEM stores.
600 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
601 * alias.c (memory_must_be_modified_in_insn_p): Delete.
603 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
605 PR rtl-optimization/68435
606 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
607 for conflicts between a, b and the set destinations.
609 2015-11-25 Richard Biener <rguenther@suse.de>
611 PR tree-optimization/68517
612 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
613 Properly handle zero-sized types.
615 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
617 * ipa-inline-analysis.c: Include gimplify.h
618 (set_cond_stmt_execution_predicate,
619 set_switch_stmt_execution_predicate): Be sure to not leak locations
622 2015-11-25 Jakub Jelinek <jakub@redhat.com>
625 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
626 match_uaddsub_overflow): New functions.
627 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
629 2015-11-25 Richard Biener <rguenther@suse.de>
631 PR tree-optimization/68492
632 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
633 op from scalars after operand swapping.
635 2015-11-25 Richard Biener <rguenther@suse.de>
637 PR tree-optimization/68502
638 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
639 check that the step is a multiple of the type size.
641 2015-11-24 Michael Collison <michael.collison@linaro.org>
643 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
644 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
645 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
647 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
649 * frame-header-opt.c (gate): Check for optimize > 0.
650 (has_inlined_assembly): New function.
651 (needs_frame_header_p): Remove is_leaf_function check,
652 add argument type check.
653 (callees_functions_use_frame_header): Add is_leaf_function
654 and has_inlined_assembly calls..
655 (set_callers_may_not_allocate_frame): New function.
656 (frame_header_opt): Add is_leaf_function call, add
657 set_callers_may_not_allocate_frame call.
658 * config/mips/mips.c (mips_compute_frame_info): Add check
659 to see if callee saved regs can be put in frame header.
660 (mips_expand_prologue): Add check to see if step1 is zero,
661 fix cfa restores when using frame header to store regs.
662 (mips_can_use_return_insn): Check to see if registers are
663 stored in frame header.
664 * config/mips/mips.h (machine_function): Add
665 callers_may_not_allocate_frame and
666 use_frame_header_for_callee_saved_regs fields.
668 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
670 PR rtl-optimization/68520
671 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
672 its bit was already set in BB_WITH.
674 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
676 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
677 double check that type is main variant.
678 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
680 (verify_type_variant): Verify that variants have no
681 TYPE_ALIAS_SET_KNOWN_P set
682 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
683 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
684 only for main variants; stream TYPE_ALIAS_SET as a bit.
685 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
688 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
690 * tree.c (make_vector_type): Properly compute canonical type of the
692 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
695 2015-11-24 Nathan Sidwell <nathan@acm.org>
697 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
698 VOIDmode, don't alter incoming mode.
699 (nvptx_split_reg_p): Delete.
700 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
701 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
702 maybe_split_mode calls.
703 (nvptx_print_operand): Use maybe_split_mode.
705 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
707 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
708 only for types where LTO sets them.
709 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
710 (make_vector_type): Likewise.
711 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
712 * tree.h (canonical_type_used_p): New inline.
713 * alias.c (get_alias_set): Handle structural equality for all
714 types that pass canonical_type_used_p.
715 (record_component_aliases): Look through all types with
716 record_component_aliases for possible pointers; sanity check that
717 the alias sets match.
719 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
721 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
723 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
725 * tree.c (free_node): New function.
726 (type_hash_canon): Use it.
727 * tree.h (free_node): Declare.
729 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
730 Michael Meissner <meissner@linux.vnet.ibm.com>
732 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
733 (Fv2): New mode attribute to be used when ISA 2.07 instructions
734 are used on SF values, and ISA 2.06 instructions on DF values.
735 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
736 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
737 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
738 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
739 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
740 (fre<Fs>): Use <Fv2> instead of <Fv>.
741 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
742 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
743 (xsrdpi<mode>): Add support for the lround function.
744 (lround<mode>di2): Likewise.
745 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
746 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
747 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
748 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
750 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
751 Sebastian Pop <s.pop@samsung.com>
753 PR tree-optimization/67984
754 * graphite-isl-ast-to-gimple.c (is_constant): New.
755 (get_rename): Call is_constant.
756 (get_new_name): Same.
758 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
759 Sebastian Pop <s.pop@samsung.com>
761 * graphite-dependences.c: Only include graphite.h.
762 * graphite-isl-ast-to-gimple.c: Same.
763 * graphite-optimize-isl.c: Same.
764 * graphite-poly.c: Same.
765 * graphite-scop-detection.c: Same.
766 * graphite-sese-to-poly.c: Same.
768 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
769 * graphite-poly.h: Same.
770 * graphite-scop-detection.h: Same.
773 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
775 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
776 DW_TAG_namespace for IMPORTED_DECL declarations. Call
777 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
778 function already takes care of checking what it can emit.
780 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
782 * doc/invoke.texi (-fpic): Add the AArch64 limit.
783 (-fPIC): Add AArch64.
785 2015-11-24 Tom de Vries <tom@codesourcery.com>
787 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
788 (pass_lim::execute): Allow to run outside pass_tree_loop.
790 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
792 * config/aarch64/aarch64.md (add<mode>3):
793 Block early expansion into 2 add instructions.
794 (add<mode>3_pluslong): New pattern to combine complex
795 immediates into 2 additions.
797 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
802 * config/rs6000/predicates.md (and_operand): Check that the operand
803 is a const_int before calling rs6000_is_valid_and_mask.
805 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
807 * config/aarch64/aarch64.md (*condjump): Rename to...
808 (condjump): ... This.
809 (*compare_condjump<mode>): New define_insn_and_split.
810 (*compare_cstore<mode>_insn): Likewise.
811 (*cstore<mode>_insn): Rename to...
812 (cstore<mode>_insn): ... This.
813 * config/aarch64/iterators.md (CMP): Handle ne code.
814 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
816 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
819 * config/i386/i386.c (output_387_binary_op): Fix assertion for
822 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
824 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
825 (val_ssa_equiv_hash_traits::remove): Likewise.
826 (pass_uncprop::execute): Adjust.
828 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
830 * hash-map-traits.h (simple_hashmap_traits ::remove): call
831 destructors on values that are being removed.
832 * mem-stats.h (hash_map): Pass type of values to
833 simple_hashmap_traits.
834 * tree-sra.c (sra_deinitialize): Remove work around for hash
835 maps not destructing values.
836 * genmatch.c (sinfo_hashmap_traits): Adjust.
837 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
839 2015-11-24 Richard Biener <rguenther@suse.de>
840 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
843 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
846 2015-11-24 Jakub Jelinek <jakub@redhat.com>
849 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
850 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
852 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
853 whenever first is nelt or above. Don't mask expected with
856 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
859 * gimple-fold.c: Include ipa-chkp.h.
860 (gimple_fold_builtin_memory_op): Don't fold call if we
861 are going to instrument it and it may copy pointers.
863 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
864 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
866 PR rtl-optimization/68194
867 PR rtl-optimization/68328
868 PR rtl-optimization/68185
869 * ree.c (combine_reaching_defs): Reject copy_needed case if
870 copies_list is not empty.
872 2015-11-24 Richard Biener <rguenther@suse.de>
875 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
878 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
880 PR rtl-optimization/68381
881 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
884 2015-11-23 Nick Clifton <nickc@redhat.com>
885 Jeff Law <law@redhat.com>
887 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
888 the source/dest of the target extension require a different number of
890 (combine_set_extension): Remove #if 0 code.
892 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
893 Sebastian Pop <s.pop@samsung.com>
895 PR tree-optimization/68314
896 * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
897 * graphite-poly.c (new_scop): Remove original_schedule.
899 * graphite-poly.h (struct scop): Same.
900 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
901 (build_pbb_scattering_polyhedrons): Add back.
902 (build_scop_minimal_scattering): Remove.
903 (build_scop_scattering): Add back.
904 (build_scop_original_schedule): Remove.
905 (build_poly_scop): Revert to only call build_scop_scattering.
907 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
908 Sebastian Pop <s.pop@samsung.com>
910 PR tree-optimization/68493
911 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
912 missing early return when codegen_error is set.
914 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
915 Sebastian Pop <s.pop@samsung.com>
917 PR tree-optimization/68279
918 * graphite-poly.c (new_scop): Remove poly_scop_p.
919 * graphite-poly.h (struct scop): Same.
920 (build_poly_scop): Declare.
921 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
922 (cleanup_loop_iter_dom): New.
923 (build_loop_iteration_domains): Early return when scev analysis fails.
924 (create_pw_aff_from_tree): Same.
925 (add_condition_to_pbb): Same.
926 (add_conditions_to_domain): Same.
927 (add_conditions_to_constraints): Same.
928 (build_scop_iteration_domain): Same.
929 (build_poly_scop): Same. Do not initialize poly_scop_p.
930 * graphite-sese-to-poly.h: Remove.
931 * graphite.c: Do not include graphite-sese-to-poly.h.
932 (graphite_transform_loops): Stop before code generation when
933 build_poly_scop fails.
934 * sese.c (scalar_evolution_in_region): Add fixme note about scev
937 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
938 Sebastian Pop <s.pop@samsung.com>
940 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
941 Remove call to update_ssa.
942 * sese.c (sese_insert_phis_for_liveouts): Same.
944 2015-11-23 Marek Polacek <polacek@redhat.com>
946 PR tree-optimization/68455
947 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
948 extract_range_from_multiplicative_op_1 on symbolic ranges.
950 2015-11-23 Richard Henderson <rth@redhat.com>
952 * optabs.def (uaddv4_optab, usubv4_optab): New.
953 * internal-fn.c (expand_addsub_overflow): Use them.
954 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
956 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
957 to reversed operands.
958 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
959 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
960 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
961 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
962 (*add<SWI>3_cconly_overflow_2): New.
963 (*add<SWI>3_cc_overflow_2): New.
964 (*addsi3_zext_cc_overflow_2): New.
966 2015-11-23 Richard Biener <rguenther@suse.de>
968 PR tree-optimization/68465
969 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
970 Also record equalities from multiple predecessor blocks if
971 only one non-backedge exists.
973 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
976 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
979 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
981 * config/aarch64/aarch64-builtins.c
982 (aarch64_gimple_fold_builtin): Fold FMULX.
984 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
986 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
987 * graphite-dependences.c: Define USES_ISL. Include ISL header files
988 after GCC header files and before graphite header files.
989 * graphite-dependences.c: Same.
990 * graphite-isl-ast-to-gimple.c: Same.
991 * graphite-optimize-isl.c: Same.
992 * graphite-poly.c: Same.
993 * graphite-scop-detection.c: Same.
994 * graphite-sese-to-poly.c: Same.
997 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
998 Jiong Wang <jiong.wang@arm.com>
1000 PR tree-optimization/68317
1001 PR tree-optimization/68326
1002 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
1003 final min and max are not infinity.
1005 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1006 Richard Biener <rguenther@suse.de>
1008 PR tree-optimization/68327
1009 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1010 compute vectype for non-relevant mask producers.
1011 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
1014 2015-11-23 Tom de Vries <tom@codesourcery.com>
1016 PR tree-optimization/68460
1017 * tree-parloops.c (gather_scalar_reductions): Also call
1018 free_stmt_vec_info_vec if simple_loop_info == NULL.
1020 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1022 * opts.c (finish_options): Allow -fsanitize-recover=address for
1023 userspace sanitization.
1024 * asan.c (asan_expand_check_ifn): Redefine recover_p.
1025 * doc/invoke.texi (fsanitize-recover): Update documentation.
1027 2015-11-23 Tom de Vries <tom@codesourcery.com>
1029 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
1031 2015-11-23 Richard Biener <rguenther@suse.de>
1033 PR tree-optimization/68445
1034 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
1035 two different strides.
1037 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
1039 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
1040 * config/s390/s390.c (s390_check_symref_alignment): Use new
1041 symref flags, early abort on wrong alignment
1042 (s390_secondary_reload): Use new symref flags.
1043 (s390_encode_section_info): Likewise.
1044 * config/s390/predicates.md: Likewise.
1046 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
1049 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
1050 for indirect function call.
1052 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
1054 * config/aarch64/aarch64-simd.md
1055 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
1056 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
1057 (*aarch64_mulx_elt_to_64v2df): Likewise.
1058 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
1059 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
1060 (vmulx_lane_f64): Likewise.
1061 (vmulxq_lane_f32): Refactored & moved.
1062 (vmulxq_lane_f64): Likewise.
1063 (vmulx_laneq_f32): New.
1064 (vmulx_laneq_f64): Likewise.
1065 (vmulxq_laneq_f32): Likewise.
1066 (vmulxq_laneq_f64): Likewise.
1067 (vmulxs_lane_f32): Likewise.
1068 (vmulxs_laneq_f32): Likewise.
1069 (vmulxd_lane_f64): Likewise.
1070 (vmulxd_laneq_f64): Likewise.
1072 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
1074 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
1075 In LTO we do not compute TYPE_CANONICAL of pointers.
1076 (gimple_canonical_types_compatible_p): Improve coments; sanity check
1077 that pointers do not have canonical type that would make us believe
1079 * alias.c (get_alias_set): Do structural type equality on pointers;
1080 enable pointer path for LTO; also glob pointer to vector with pointer
1081 to vector element; glob pointers and references for LTO; do more strict
1082 sanity checking about build_pointer_type returning the canonical type
1083 which is also the main variant.
1084 (record_component_aliases): When component type is pointer and we
1085 do LTO; record void_type_node alias set.
1087 2015-11-21 Nathan Sidwell <nathan@acm.org>
1089 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
1091 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
1093 (write_func_decl_from_insn): Likewise.
1094 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
1095 (nvptx_file_end): Likewise.
1096 (nvptx_function_end): Undent output.
1097 (nvptx_expand_call): Fix formatting.
1098 (nvptx_output_call_insn): Indent output.
1099 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
1100 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
1102 2015-11-21 Jakub Jelinek <jakub@redhat.com>
1105 * tree-inline.c (copy_debug_stmt): If
1106 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
1107 in decl_debug_args, don't call remap_gimple_op_r on it.
1109 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
1111 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
1112 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
1113 Check that all record types are complete.
1114 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
1115 compare alias sets for types w/o alias sets.
1117 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
1119 * config/sparc/sparc.md (umulxhi_vis): Move around.
1120 (*umulxhi_sp64): Likewise.
1121 (umulxhi_v8plus): Likewise.
1122 (xmulx_vis): Likewise.
1123 (*xmulx_sp64): Likewise.
1124 (xmulx_v8plus): Likewise.
1125 (xmulxhi_vis): Likewise.
1126 (*xmulxhi_sp64): Likewise.
1127 (xmulxhi_v8plus): Likewise.
1129 2015-11-20 David Malcolm <dmalcolm@redhat.com>
1132 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
1133 (class layout): Update comment
1134 (layout::print_any_fixits): New method.
1135 (layout::move_to_column): New method.
1136 (diagnostic_show_locus): Add call to layout.print_any_fixits.
1138 2015-11-20 Jakub Jelinek <jakub@redhat.com>
1141 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
1142 has non-zero bias, subtract it in integer type instead of
1143 pointer plus of negated bias.
1146 * omp-low.c (expand_simd_clones): Call node->get_body () before
1147 allocating stuff in GC.
1149 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
1151 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
1153 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
1155 * config/aarch64/aarch64.md (predicated): Copy attribute from
1157 * config/arm/arm.md (predicated): Added description.
1159 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1161 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
1162 for unaligned_access.
1163 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
1164 from matching condition.
1165 (unaligned_loadhis): Likewise.
1166 (unaligned_loadhiu): Likewise.
1167 (unaligned_storesi): Likewise.
1168 (unaligned_storehi): Likewise.
1170 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1173 * config/arm/arm.md (unaligned_loaddi): Delete.
1174 (unaligned_storedi): Likewise.
1175 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
1176 unaligned DImode memory ops. Instead perform two back-to-back
1177 unaligned SImode ops.
1179 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
1180 James Norris <jnorris@codesourcery.com>
1182 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
1183 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
1185 2015-11-20 Alan Hayward <alan.hayward@arm.com>
1187 PR tree-optimization/68413
1188 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
1190 (vectorizable_reduction): Use cached base
1192 2015-11-20 Tom de Vries <tom@codesourcery.com>
1194 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
1196 (try_create_reduction_list): Same. Fix typo in dump-file string.
1198 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
1200 * doc/md.texi (Standard Names): Move entry for addptr3 around,
1201 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
1202 glitch in entries for cbranch4 and jump.
1204 2015-11-20 Tom de Vries <tom@codesourcery.com>
1206 PR tree-optimization/68373
1207 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
1209 (scev_const_prop): ... here.
1210 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
1211 * tree-parloops.c (try_create_reduction_list): Call
1212 final_value_replacement_loop.
1214 2015-11-20 Bin Cheng <bin.cheng@arm.com>
1216 PR tree-optimization/52272
1217 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
1218 (struct iv_common_cand_hasher): New struct.
1219 (iv_common_cand_hasher::hash): New function.
1220 (iv_common_cand_hasher::equal): New function.
1221 (struct ivopts_data): New fields, iv_common_cand_tab and
1223 (tree_ssa_iv_optimize_init): Initialize above fields.
1224 (record_common_cand, common_cand_cmp): New functions.
1225 (add_iv_candidate_derived_from_uses): New function.
1226 (add_iv_candidate_for_use): Record iv_common_cands derived from
1227 iv use in hash table, instead of adding candidates directly.
1228 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
1229 (record_important_candidates): Add important candidates to iv uses'
1230 related_cands. Always keep related_cands for future use.
1231 (try_add_cand_for): Use iv uses' related_cands.
1232 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
1233 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
1235 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1237 * config/s390/s390.md ("bswaphi2"): New pattern.
1239 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
1241 * config/s390/s390.md (GPR1_REGNUM): New constant.
1242 ("*trunc<BFP:mode><DFP_ALL:mode>2")
1243 ("*trunc<DFP_ALL:mode><BFP:mode>2")
1244 ("trunc<BFP:mode><DFP_ALL:mode>2")
1245 ("trunc<DFP_ALL:mode><BFP:mode>2")
1246 ("*extend<BFP:mode><DFP_ALL:mode>2")
1247 ("*extend<DFP_ALL:mode><BFP:mode>2")
1248 ("extend<BFP:mode><DFP_ALL:mode>2")
1249 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
1251 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1252 Sebastian Pop <s.pop@samsung.com>
1254 PR tree-optimization/68428
1255 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
1256 over basic blocks outside the scop.
1258 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1259 Sebastian Pop <s.pop@samsung.com>
1261 PR tree-optimization/68341
1262 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
1263 gcc_unreachable and safely fail codegen.
1264 (copy_loop_close_phi_args): Do not insert merge phis in a basic
1265 block with loop phi nodes.
1266 (edge_for_new_close_phis): New.
1267 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
1269 2015-11-19 Nathan Sidwell <nathan@acm.org>
1271 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
1272 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
1273 (nvptx_declare_objec_name): Likewise.
1275 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1277 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
1278 (get_false_edge_from_guard_bb): Move...
1279 * sese.c (get_false_edge_from_guard_bb)
1280 (get_true_edge_from_guard_bb): ... here.
1282 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
1285 2015-11-18 Alan Modra <amodra@gmail.com>
1287 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1288 type-limits warning.
1291 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1293 * tree.h (desired_pro_or_demotion_p): New function.
1294 * tree-vrp.c (simplify_cond_using_ranges): Call it.
1296 2015-11-19 Michael Matz <matz@suse.de>
1298 * fwprop.c (update_uses): Use flag_checking instead of
1299 gcc_checking_assert.
1301 2015-11-19 David Malcolm <dmalcolm@redhat.com>
1303 * doc/gty.texi (Support for inheritance): Fix missing
1304 parentheses in example.
1306 2015-11-19 Marek Polacek <polacek@redhat.com>
1308 PR tree-optimization/68431
1309 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
1311 2015-11-19 Nathan Sidwell <nathan@acm.org>
1313 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
1314 atomic_exchange<mode>): Input values can be immediates.
1316 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
1319 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
1321 * configure: Regenerate.
1323 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
1326 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
1327 (DTORS_SECTION_ASM_OP): Likewise.
1329 2015-11-19 Jakub Jelinek <jakub@redhat.com>
1331 PR rtl-optimization/68376
1332 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
1333 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
1335 2015-11-19 Richard Biener <rguenther@suse.de>
1338 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
1339 redirect_edge_var_map_destroy.
1341 2015-11-19 Jakub Jelinek <jakub@redhat.com>
1344 * config/i386/i386.md (simple_return): Disable if
1345 ix86_static_chain_on_stack is true.
1347 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
1350 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
1353 2015-11-18 Jeff Law <law@redhat.com>
1355 PR tree-optimization/68198
1356 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
1357 between threading a multi-way branch and a thread path that contains
1358 a multi-way branch. Disallow the case where a path contains a
1359 multi-way branch and does not thread a multi-way branch.
1360 (thread_through_all_blocks): Update comment.
1362 2015-11-18 Joseph Myers <joseph@codesourcery.com>
1365 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
1366 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
1367 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
1368 functions before defining as macros.
1370 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1372 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
1373 (nvptx_record_offload_symbol): Remove code compensating for lack
1374 of default dimension handling.
1375 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
1377 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
1379 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
1380 type to bool for early exit.
1381 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
1383 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
1384 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
1385 predecessor dominates the other.
1386 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
1387 element is not found it returns -1.
1388 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
1389 out early when codegen fails.
1390 (graphite_regenerate_ast_isl): Remove codegen region when pending
1391 phis could not be generated.
1393 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
1395 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
1397 (class translate_isl_ast_to_gimple): Indentation.
1398 (translate_pending_phi_nodes): Comment.
1399 (add_parameters_to_ivs_params): Moved from sese.c inside class
1400 translate_isl_ast_to_gimple.
1401 (get_max_schedule_dimensions): Same.
1402 (generate_isl_context): Same.
1403 (extend_schedule): Same.
1404 (generate_isl_schedule): Same.
1405 (set_options): Same.
1406 (scop_to_isl_ast): Same.
1407 (is_valid_rename): Same.
1409 (get_rename_from_scev): Same.
1410 (get_def_bb_for_const): Same.
1411 (get_new_name): Same.
1412 (collect_all_ssa_names): Same.
1413 (copy_loop_phi_args): Same.
1414 (copy_loop_phi_nodes): Same.
1415 (copy_loop_close_phi_args): Same.
1416 (copy_loop_close_phi_nodes): Same.
1417 (copy_cond_phi_args): Same.
1418 (copy_cond_phi_nodes): Same.
1419 (graphite_copy_stmts_from_block): Same.
1420 (copy_bb_and_scalar_dependences): Same.
1421 (add_phi_arg_for_new_expr): Same.
1422 (rename_uses): Same.
1424 (set_rename_for_each_def): Same.
1425 (gsi_insert_earliest): Same.
1426 (rename_all_uses): Same.
1427 (codegen_error_p): Same.
1428 (print_isl_ast_node): Same.
1429 (translate_isl_ast_for_loop): Call function codegen_error_p.
1430 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1431 (translate_isl_ast_node_user): Make nb_loops const and release
1433 (get_true_edge_from_guard_bb): Move all free-functions early.
1434 (get_false_edge_from_guard_bb): Same.
1435 (bb_contains_loop_close_phi_nodes): Same.
1436 (bb_contains_loop_phi_nodes): Same.
1437 (is_loop_closed_ssa_use): Same.
1438 (number_of_phi_nodes): Same.
1439 (phi_uses_name): Same.
1440 (later_of_the_two): Same.
1441 (substitute_ssa_name):
1444 (get_loop_init_value): Same.
1445 (find_init_value): Same.
1446 (find_init_value_close_phi): Same.
1447 (ast_build_before_for): Same.
1448 (graphite_regenerate_ast_isl): Formatting changes.
1449 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
1450 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
1452 (gsi_insert_earliest): Same.
1453 (collect_all_ssa_names): Same.
1454 (rename_all_uses): Same.
1455 (rename_uses): Same.
1456 (get_def_bb_for_const): Same.
1457 (copy_loop_phi_nodes): Same.
1458 (copy_loop_close_phi_args): Same.
1459 (copy_loop_close_phi_nodes): Same.
1460 (copy_cond_phi_args): Same.
1461 (copy_cond_phi_nodes): Same.
1462 (set_rename_for_each_def): Same.
1463 (graphite_copy_stmts_from_block): Same.
1464 (copy_bb_and_scalar_dependences): Same.
1465 (if_region_set_false_region): Same.
1466 (scev_analyzable_p): Same.
1467 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
1469 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
1471 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
1472 commit from r125920 for FreeBSD.
1474 2015-11-18 Jason Merrill <jason@redhat.com>
1476 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
1478 (add_finalizer): Split out from ggc_internal_alloc.
1479 (ggc_handle_finalizers): Run finalizers for the current depth.
1480 (init_ggc, ggc_pch_read): Reserve space for finalizers.
1482 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
1485 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
1488 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1490 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
1491 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
1493 * doc/avr-mmcu.texi: Regenerate.
1495 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1497 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
1498 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
1499 (struct bb_sese): New struct.
1500 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
1501 (BB_GET_SESE, BB_SET_SESE): Define.
1502 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
1503 (nvptx_find_sese): New.
1504 (nvptx_neuter_pars): Find SESE regions when optimizing.
1506 2015-11-18 Alan Modra <amodra@gmail.com>
1508 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1509 type-limits warning.
1511 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
1514 * hash-set.h (hash_set::traverse): Expand Key typedef.
1516 2015-11-18 Martin Liska <mliska@suse.cz>
1518 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
1521 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1523 * config/nvptx/nvptx.c (global_lock_var): New.
1524 (nvptx_global_lock_addr): New.
1525 (nvptx_lockless_update): Recomment and adjust for clarity.
1526 (nvptx_lockfull_update): New.
1527 (nvptx_reduction_update): New.
1528 (nvptx_goacc_reduction_fini): Call it.
1530 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
1532 * regrename.h (struct du_head): Add target_data_1 and target_data_2
1534 * regrename.c (create_new_chain): Clear entire struct after allocating.
1536 * config/i386/i386.opt (mmitigate-rop): New option.
1537 * doc/invoke.texi (mmitigate-rop): Document.
1538 * config/i386/i386.c: Include "regrename.h".
1539 (ix86_rop_should_change_byte_p, reg_encoded_number,
1540 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
1542 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
1543 * config/i386/i386.md (attr "modrm_class"): New.
1544 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
1545 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
1546 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
1548 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1551 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
1553 2015-11-18 Jakub Jelinek <jakub@redhat.com>
1555 PR tree-optimization/68157
1556 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
1557 pow_stmt or mul_stmt from stmt's uid.
1558 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
1560 2015-11-18 Martin Liska <mliska@suse.cz>
1562 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
1564 2015-11-18 Martin Liska <mliska@suse.cz>
1566 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1567 Fix GNU coding style.
1568 (find_def_preds): Use auto_vec.
1569 (destroy_predicate_vecs): Change signature of the function.
1570 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
1572 (simplify_preds_4): Use destroy_predicate_vecs instread of
1573 just releasing preds vector.
1574 (normalize_preds): Likewise.
1575 (is_use_properly_guarded): Use new signature of
1576 destroy_predicate_vecs.
1577 (find_uninit_use): Likewise.
1579 2015-11-18 Richard Biener <rguenther@suse.de>
1581 PR tree-optimization/67790
1582 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
1583 IL rewrite for MINUS_EXPR reductions, rename back to ...
1584 (vect_is_simple_reduction): ... this, removing the wrapper.
1585 (vect_force_simple_reduction): Adjust.
1586 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
1587 reductions and make use if reduc_index in all places. For
1588 the final reduction of MINUS_EXPR use PLUS_EXPR.
1590 2015-11-18 Alan Modra <amodra@gmail.com>
1592 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
1594 * configure: Regenerate.
1596 2015-11-17 Tom de Vries <tom@codesourcery.com>
1598 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
1600 2015-11-17 Tom de Vries <tom@codesourcery.com>
1602 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
1603 uses of ssa_name with constant.
1605 2015-11-17 Tom de Vries <tom@codesourcery.com>
1607 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
1610 2015-11-17 Tom de Vries <tom@codesourcery.com>
1612 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
1613 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
1614 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
1616 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
1618 * regrename.c (regrename_find_superclass): New function, code moved
1620 (rename_chains): ... here. Call it.
1621 * regrename.h (regrename_find_superclass): Declare.
1623 * regrename.c (record_out_operands): Terminate earlyclobbered
1627 * regrename.c (record_operand_use): Keep track of failed operands
1628 and stop appending if we see any.
1629 * regrename.h (struct operand_rr_info): Add a failed field and shrink
1632 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
1635 * doc/extend.texi (Common Function Attributes) [visibility]:
1636 Add cross-references to matching variable and type attributes.
1637 (Common Variable Attributes) [visibility]: Add missing entry.
1639 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1641 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
1642 entries that map directly to optabs.
1644 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1646 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
1647 entries that map directly to optabs.
1649 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1651 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
1652 * internal-fn.c (direct_internal_fn_array): Update accordingly.
1653 * tree-vectorizer.h (vectorizable_function): Delete.
1654 * tree-vect-stmts.c: Include internal-fn.h.
1655 (vectorizable_internal_function): New function.
1656 (vectorizable_function): Inline into...
1657 (vectorizable_call): ...here. Explicitly reject calls that read
1658 from or write to memory. Try using an internal function before
1659 falling back on the old vectorizable_function behavior.
1661 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1663 * target.def (builtin_vectorized_function): Take a combined_fn (in
1664 the form of an unsigned int) rather than a function decl.
1665 (builtin_md_vectorized_function): New.
1666 * targhooks.h (default_builtin_vectorized_function): Replace the
1667 fndecl argument with an unsigned int.
1668 (default_builtin_md_vectorized_function): Declare.
1669 * targhooks.c (default_builtin_vectorized_function): Replace the
1670 fndecl argument with an unsigned int.
1671 (default_builtin_md_vectorized_function): New function.
1672 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
1674 * doc/tm.texi: Regenerate.
1675 * tree-vect-stmts.c (vectorizable_function): Update call to
1676 builtin_vectorized_function, also passing internal functions.
1677 Call builtin_md_vectorized_function for target-specific builtins.
1678 * config/aarch64/aarch64-protos.h
1679 (aarch64_builtin_vectorized_function): Replace fndecl argument
1680 with an unsigned int.
1681 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
1682 (aarch64_builtin_vectorized_function): Update after above changes.
1684 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
1685 fndecl argument with an unsigned int.
1686 * config/arm/arm-builtins.c: Include case-cfn-macros.h
1687 (arm_builtin_vectorized_function): Update after above changes.
1689 * config/i386/i386.c: Include case-cfn-macros.h
1690 (ix86_veclib_handler): Take a combined_fn rather than a
1692 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
1693 mathfn_built_in rather than calling builtin_decl_implicit directly.
1694 (ix86_builtin_vectorized_function) Update after above changes.
1696 * config/rs6000/rs6000.c: Include case-cfn-macros.h
1697 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
1698 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
1699 than calling builtin_decl_implicit directly.
1700 (rs6000_builtin_vectorized_function): Update after above changes.
1701 Use CASE_CFN_*. Move BUILT_IN_MD to...
1702 (rs6000_builtin_md_vectorized_function): ...this new function.
1703 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
1705 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1707 * tree-vect-patterns.c: Include internal-fn.h.
1708 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
1710 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1712 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
1713 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
1715 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1717 * builtins.c (expand_errno_check, expand_builtin_mathfn)
1718 (expand_builtin_mathfn_2): Delete.
1719 (expand_builtin): Remove handling of functions with
1720 internal function equivalents.
1721 * internal-fn.def (SET_EDOM): New internal function.
1722 * internal-fn.h (set_edom_supported_p): Declare.
1723 * internal-fn.c (expand_SET_EDOM): New function.
1724 (set_edom_supported_p): Likewise.
1725 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
1726 Rewrite comment at head of file.
1727 (is_call_dce_candidate): Rename to...
1728 (can_test_argument_range): ...this. Don't check gimple_call_lhs
1729 or gimple_call_builtin_p here.
1730 (edom_only_function): New function.
1731 (shrink_wrap_one_built_in_call_with_conds): New function, split out
1733 (shrink_wrap_one_built_in_call): ...here.
1734 (can_use_internal_fn, use_internal_fn): New functions.
1735 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
1736 for calls that have an lhs.
1737 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
1738 (pass_call_cdce::execute): Skip blocks that are optimized for size.
1739 Check gimple_call_builtin_p here. Use can_use_internal_fn for
1741 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
1744 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1746 * builtins.h (called_as_built_in): Declare.
1747 * builtins.c (called_as_built_in): Make external.
1748 * internal-fn.h (expand_internal_call): Define a variant that
1749 specifies the internal function explicitly.
1750 * internal-fn.c (expand_load_lanes_optab_fn)
1751 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
1752 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
1753 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
1754 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
1755 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
1756 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
1757 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
1758 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
1759 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
1760 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
1761 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
1762 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
1763 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
1765 (internal_fn_expanders): Update prototype.
1766 (expand_internal_call): Define a variant that specifies the
1767 internal function explicitly. Use it to implement the previous
1769 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
1770 functions as calls to internal functions.
1772 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1774 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
1775 (generated_files): Likewise.
1776 (s-cfn-operators, cfn-operators.pd): New rules.
1777 (s-match): Depend on cfn-operators.pd.
1778 * gencfn-macros.c: Expand comment to describe -o behavior.
1779 (print_define_operator_list): New function.
1780 (main): Accept -o. Call print_define_operator_list.
1781 * genmatch.c (main): Add the current directory to the include path.
1782 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
1785 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1787 * doc/match-and-simplify.texi: Document the "null" identifier.
1788 * genmatch.c (id_base::NULL_ID): New kind.
1789 (null_id): New variable.
1790 (get_operator): Add a parameter that says whether null identifiers
1792 (contains_id): New function.
1793 (lower_for): Skip substitutions that would have a null_id in
1794 either the match or the result.
1795 (parser::parse_for): Allow the null identifier to be used.
1796 (parser::parse_operator_list): Likewise.
1797 (main): Initialize null_id.
1799 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1801 * match.pd: Use HYPOT and COS rather than hypot and cos.
1802 Use CASE_CFN_* macros. Guard log/exp folds with
1803 SCALAR_FLOAT_TYPE_P.
1804 * genmatch.c (internal_fn): New enum.
1805 (fn_id::fn): Change to an unsigned int.
1806 (fn_id::fn_id): Accept internal_fn too.
1807 (add_builtin): Rename to...
1808 (add_function): ...this and turn into a template.
1809 (get_operator): Only try one variation if the original name fails.
1810 Only add _EXPR if the original name was all lower case.
1811 Try converting internal and built-in function names to their
1813 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
1814 (dt_simplify::gen_1): Likewise.
1815 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
1816 and get_call_combined_fn for generic.
1817 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
1818 (decision_tree::gen): Likewise.
1819 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
1820 Use add_function rather than add_builtin. Register internal
1822 * generic-match-head.c: Include case-cfn-macros.h.
1823 * gimple-fold.c (replace_stmt_with_simplification): Use
1824 gimple_call_combined_fn to test whether we can keep an
1826 * gimple-match.h (code_helper): Replace built_in_function
1828 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
1829 and case-fn-macros.h.
1830 (gimple_resimplify1): Use fold_const_call.
1831 (gimple_resimplify2, gimple_resimplify3): Likewise.
1832 (build_call_internal, build_call): New functions.
1833 (maybe_push_res_to_seq): Use them.
1834 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
1835 rather than a built-in function.
1836 * tree.h (build_call_expr_internal_loc): Declare.
1837 (maybe_build_call_expr_loc): Likewise.
1838 * tree.c (build_call_expr_internal_loc_array): New function.
1839 (maybe_build_call_expr_loc): Likewise.
1841 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1843 * builtins.h (mathfn_built_in): Add a variant that takes
1845 * builtins.c: Include case-cfn-macros.h.
1846 (CASE_MATHFN): Use CASE_CFN_*.
1847 (CASE_MATHFN_REENT): Use CFN_ codes.
1848 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
1849 argument with a combined_fn.
1850 (mathfn_built_in): Add a variant that takes a combined_fn.
1851 (expand_builtin_int_roundingfn_2): Update callers accordingly.
1852 (fold_builtin_sincos, fold_builtin_classify): Likewise.
1854 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1856 * tree-vect-patterns.c: Include case-cfn-macros.h.
1857 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
1859 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1861 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
1862 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
1863 (pass_cse_sincos::execute): Likewise.
1865 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1867 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
1868 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
1869 (decrement_power, acceptable_pow_call): Likewise.
1870 (attempt_builtin_copysign): Likewise.
1872 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1874 * tree-vrp.c: Include case-cfn-macros.h.
1875 (extract_range_basic): Switch on combined_fn rather than handling
1876 built-in functions and internal functions separately.
1878 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1880 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
1881 than a built_in_function.
1882 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1884 (integer_valued_real_call_p): Likewise.
1885 * fold-const.c: Include case-cfn-macros.h
1886 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
1887 (negate_expr_p): Update accordingly.
1888 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1890 (integer_valued_real_call_p): Likewise.
1891 (tree_invalid_nonnegative_warnv_p): Update accordingly.
1892 (integer_valued_real_p): Likewise.
1893 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
1894 to tree_call_nonnegative_warnv_p.
1895 (gimple_call_integer_valued_real_p): Likewise
1896 integer_valued_real_call_p.
1897 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
1898 (backprop::process_builtin_call_use): Extend to combined_fn.
1899 (strip_sign_op_1): Likewise.
1900 (backprop::process_use): Don't check for built-in calls here.
1901 (backprop::execute): Likewise.
1902 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
1904 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1906 * fold-const-call.h (fold_const_call): Replace built_in_function
1907 arguments with combined_fn arguments.
1908 * fold-const-call.c: Include case-cfn-macros.h.
1909 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
1910 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
1911 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
1912 built_in_function arguments with combined_fn arguments.
1913 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
1914 (fold_builtin_3): Update calls to fold_const_call.
1916 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1918 * Makefile.in (HASH_TABLE_H): Add GGC_H.
1919 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
1920 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
1921 (build/gencfn-macros$(build_exeext): New rules.
1922 (genprogerr): Add cfn-macros.
1923 * hash-set.h (hash_set): Use the traits value_type as the key.
1924 * gencfn-macros.c: New file.
1926 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1928 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
1929 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
1930 * builtins.c (associated_internal_fn): Handle them.
1932 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1934 * builtins.h (associated_internal_fn): Declare.
1935 (replacement_internal_fn): Likewise.
1936 * builtins.c: Include internal-fn.h
1937 (associated_internal_fn, replacement_internal_fn): New functions.
1938 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
1939 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
1940 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
1941 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
1942 (LDEXP): New functions.
1943 * internal-fn.c: Include recog.h.
1944 (unary_direct, binary_direct): New macros.
1945 (expand_direct_optab_fn): New function.
1946 (expand_unary_optab_fn): New macro.
1947 (expand_binary_optab_fn): Likewise.
1948 (direct_unary_optab_supported_p): Likewise.
1949 (direct_binary_optab_supported_p): Likewise.
1951 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1953 * coretypes.h (tree_pair): New type.
1954 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
1955 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
1956 * internal-fn.h (direct_internal_fn_info): New structure.
1957 (direct_internal_fn_array): Declare.
1958 (direct_internal_fn_p, direct_internal_fn): New functions.
1959 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
1960 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
1961 (mask_store_direct, store_lanes_direct): New macros.
1962 (direct_internal_fn_array) New array.
1963 (get_multi_vector_move): Return the optab handler without asserting
1964 that it is available.
1965 (expand_LOAD_LANES): Rename to...
1966 (expand_load_lanes_optab_fn): ...this and add an optab argument.
1967 (expand_STORE_LANES): Rename to...
1968 (expand_store_lanes_optab_fn): ...this and add an optab argument.
1969 (expand_MASK_LOAD): Rename to...
1970 (expand_mask_load_optab_fn): ...this and add an optab argument.
1971 (expand_MASK_STORE): Rename to...
1972 (expand_mask_store_optab_fn): ...this and add an optab argument.
1973 (direct_internal_fn_types, direct_optab_supported_p)
1974 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
1975 (direct_internal_fn_supported_p): New functions.
1976 (direct_mask_load_optab_supported_p): New macro.
1977 (direct_load_lanes_optab_supported_p): Likewise.
1978 (direct_mask_store_optab_supported_p): Likewise.
1979 (direct_store_lanes_optab_supported_p): Likewise.
1981 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1983 * tree-core.h (internal_fn): Move immediately after the definition
1984 of built_in_function.
1985 (combined_fn): New enum.
1986 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
1987 (internal_fn_p, as_internal_fn): New functions.
1988 (get_call_combined_fn, combined_fn_name): Declare.
1989 * tree.c (get_call_combined_fn): New function.
1990 (combined_fn_name): Likewise.
1991 * gimple.h (gimple_call_combined_fn): Declare.
1992 * gimple.c (gimple_call_combined_fn): New function.
1994 2015-11-17 Martin Sebor <msebor@redhat.com>
1997 * cp/init.c (build_new_1): Check for expression constness
2000 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
2003 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
2005 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
2006 discussion of the Microsoft structure layout details here from
2007 its former home in extend.texi.
2008 * doc/extend.texi (x86 Variable Attributes): Replace detailed
2009 discussion with pointer to its new location. Add cross-reference
2010 to corresponding type attributes.
2011 (x86 Type Attributes): Add cross-references to command-line options
2012 and variable attributes.
2014 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
2017 * targhooks.c (default_get_mask_mode): Filter out
2018 scalar modes returned by mode_for_vector.
2020 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2023 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
2024 offset from dstbase and use it appropriately in
2025 adjust_automodify_address.
2026 (arm_block_set_aligned_vect): Likewise.
2028 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
2030 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
2031 (MULTILIB_DIRNAMES): Adjust accordingly.
2033 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
2035 * config/aarch64/aarch64-cores.def (cortex-a35): New.
2036 * config/aarch64/aarch64.c (cortexa35_tunings): New.
2037 * config/aarch64/aarch64-tune.md: Regenerate.
2038 * doc/invoke.texi (-mcpu): Add Cortex-A35
2040 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
2043 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
2045 * config/i386/sse.md (*mov<mode>_internal): Always enable
2046 AVX and SSE unaligned moves for IAMCU.
2048 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
2050 * tree-if-conv.c: Include varasm.h
2051 (ref_DR_map): Define.
2052 (baseref_DR_map): Like wise
2053 (struct ifc_dr): Add new tree predicate field.
2054 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
2055 (memrefs_read_or_written_unconditionally): Remove.
2056 (write_memrefs_written_at_least_once): Remove.
2057 (ifcvt_memrefs_wont_trap): Use hash maps to query
2058 unconditional read/written information.
2059 (if_convertible_loop_p_1): Initialize hash maps and predicates
2060 before hashing data references and delete hashmaps at the end.
2062 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
2065 * doc/invoke.texi (Optimize Options): Move @end table to the right
2068 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
2071 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
2074 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
2076 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
2077 128-bit types, just types that fit in a single vector.
2078 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
2080 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
2082 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
2083 in the user documentation.
2084 (define_peephole2, define_split): Similarly.
2086 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
2088 * lto-streamer-out.c (write_global_references): Adjust integer type.
2089 (lto_output_decl_state_refs): Likewise.
2091 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
2093 * config/arm/arm-cores.def (cortex-a35): New.
2094 * config/arm/arm.c (arm_cortex_a35_tune): New.
2095 * config/arm/arm-tables.opt: Regenerate.
2096 * config/arm/arm-tune.md: Regenerate.
2097 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
2098 * config/arm/t-aprofile: Likewise.
2099 * doc/invoke.texi (-mcpu): Likewise.
2101 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
2103 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
2104 and qdf24xx and xgene1 to match -march=armv8-a.
2106 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2108 PR rtl-optimization/68330
2109 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
2110 of LSHIFTRT by a non-zero constant integer.
2112 2015-11-16 Richard Biener <rguenther@suse.de>
2114 PR tree-optimization/68306
2115 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
2116 bogus copying from verify_data_ref_alignment and use continue
2119 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
2120 Kaz Kojima <kkojima@gcc.gnu.org>
2123 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
2125 (*addsi3): Add another insn_and_split variant for reload.
2127 2015-11-16 Richard Biener <rguenther@suse.de>
2130 * cfgexpand.c (pass_expand::execute): Destroy the edge
2131 redirection var map before setting RTL CFG hooks.
2133 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
2135 * config/i386/sse.md (reduc_splus_v8df): Rename to...
2136 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
2138 (reduc_splus_v4df): Rename to...
2139 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
2141 (reduc_splus_v2df): Rename to...
2142 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
2144 (reduc_splus_v16sf): Rename to...
2145 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
2147 (reduc_splus_v8sf): Rename to...
2148 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
2150 (reduc_splus_v4sf): Rename to...
2151 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
2153 (reduc_<code>_<mode>, all 3 variants): Rename each to...
2154 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
2156 (reduc_umin_v8hf): Rename to...
2157 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
2159 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
2161 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
2162 without additional conditions.
2163 * doc/extend.texi (@item simd): New.
2165 2015-11-16 Tom de Vries <tom@codesourcery.com>
2167 * passes.c (first_pass_instance): Remove variable.
2168 (execute_todo): Remove setting of first_pass_instance.
2169 * tree-pass.h (first_pass_instance): Remove declaration.
2171 2015-11-16 Tom de Vries <tom@codesourcery.com>
2173 * passes.def: Add arg to pass_ccp pass instantiation.
2174 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
2175 instead of first_pass_instance.
2176 (do_ssa_ccp): Add and handle param nonzero_p.
2177 (pass_ccp::pass_ccp): Initialize nonzero_p.
2178 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
2179 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
2180 (pass_ccp::nonzero_p): New private member.
2182 2015-11-16 Tom de Vries <tom@codesourcery.com>
2184 * passes.def: Add arg to pass_object_sizes pass instantiation.
2185 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
2187 (pass_object_sizes::set_pass_param): New member function. Set
2189 (pass_object_sizes::insert_min_max_p): New private member.
2190 (pass_object_sizes::execute): Use insert_min_max_p instead of
2191 first_pass_instance.
2193 2015-11-16 Tom de Vries <tom@codesourcery.com>
2195 * passes.def: Add arg to pass_dominator pass instantiation.
2196 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
2198 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
2199 may_peel_loop_headers_p.
2200 (pass_dominator::set_pass_param): New member function. Set
2201 may_peel_loop_headers_p.
2202 (pass_dominator::may_peel_loop_headers_p): New private member.
2203 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
2204 first_pass_instance.
2206 2015-11-16 Tom de Vries <tom@codesourcery.com>
2208 * passes.def: Add arg to pass_reassoc pass instantiation.
2209 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
2210 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
2211 of first_pass_instance.
2212 (execute_reassoc): Add and handle insert_powi_p parameter.
2213 (pass_reassoc::insert_powi_p): New private member.
2214 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
2215 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
2216 (pass_reassoc::execute): Call execute_reassoc with extra arg.
2218 2015-11-16 Tom de Vries <tom@codesourcery.com>
2220 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
2221 * gen-pass-instances.awk (handle_line): Same.
2222 * pass_manager.h (class pass_manager): Define and undefine
2224 * passes.c (opt_pass::set_pass_param): New function.
2225 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
2226 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
2227 * tree-pass.h (gimple_opt::set_pass_param): Declare.
2228 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
2229 warn_array_bounds_p parameter.
2230 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
2231 (pass_vrp::set_pass_param): New function.
2232 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
2233 (pass_vrp::warn_array_bounds_p): New private member.
2235 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2237 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
2238 (output_probe_stack_range): Rotate the loop and simplify.
2240 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2242 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
2243 (output_probe_stack_range): Rotate the loop and simplify.
2245 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2247 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
2248 an lea instruction when possible.
2249 (output_adjust_stack_and_probe): Rotate the loop and simplify.
2250 (ix86_emit_probe_stack_range): Adjust.
2251 (output_probe_stack_range): Rotate the loop and simplify.
2253 2015-11-16 Christian Bruel <christian.bruel@st.com>
2255 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
2256 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
2257 with appropriate pragma GCC target.
2259 2015-11-16 Christian Bruel <christian.bruel@st.com>
2262 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
2263 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
2265 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
2267 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
2268 (cortexa57_tunings): Use it.
2270 2015-11-16 Christian Bruel <christian.bruel@st.com>
2273 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
2274 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
2275 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
2277 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
2278 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
2279 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
2280 * doc/extend.texi (-mfpu=): Describe attribute.
2282 2015-11-16 Christian Bruel <christian.bruel@st.com>
2285 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
2286 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
2287 arm_init_neon_builtins.
2288 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
2289 (arm_init_neon_builtins_internal)
2290 (arm_init_crypto_builtins_internal):
2291 Test and set neon_set_p, neon_crypto_set_p.
2292 (neon_set_p, neon_crypto_set_p): New static booleans.
2294 2015-11-16 Christian Bruel <christian.bruel@st.com>
2297 * config/arm/arm.c (arm_fpu_desc): Remove.
2298 (all_fpus): Make global.
2299 (arm_option_override): Use FPU TARGET accessors.
2300 (arm_declare_function_name): Likewise.
2301 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
2302 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
2303 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
2304 (TARGET_NEON): Likewise.
2305 (all_fpus): Declare extern.
2306 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
2307 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
2309 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2312 * sdbout.c: Include emit-rtl.h and function.h.
2314 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
2316 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
2317 Remove support for FreeBSD 5 and earlier.
2319 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2321 * configure: Regenerate.
2322 * configure.ac: Always define ENABLE_OFFLOADING.
2323 * cgraph.c (cgraph_node::create): Adjust.
2324 * gcc.c (process_command): Likewise.
2325 * omp-low.c (create_omp_child_function): Likewise.
2326 (expand_omp_target): Likewise.
2327 * varpool.c (varpool_node::get_create): Likewise.
2329 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2331 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
2332 * df-scan.c (df_get_exit_block_use_set): Adjust.
2333 * except.c (expand_eh_return): Likewise.
2335 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2337 * config/i386/i386.h (TARGET_PECOFF): Remove define.
2338 * defaults.h (TARGET_PECOFF): New default definition.
2339 * varasm.c (handle_vtv_comdat_section): Adjust.
2341 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2343 * defaults.h: New definition of SDB_DEBUGGING_INFO.
2344 * doc/tm.texi: Regenerate.
2345 * doc/tm.texi.in: Adjust.
2346 * final.c (rest_of_clean_state): Remove check if
2347 SDB_DEBUGGING_INFO is defined.
2348 * function.c (number_blocks): Likewise.
2349 * output.h: Likewise.
2350 * sdbout.c: Likewise.
2351 * toplev.c (process_options): Likewise.
2353 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2355 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
2356 (enum sdb_masks): Likewise.
2357 * sdbout.c (plain_type_1): Likewise.
2358 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
2360 2015-11-14 Jakub Jelinek <jakub@redhat.com>
2362 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
2363 internal calls - 0 if ordered simd and 1 for ordered threads simd.
2364 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
2365 argument is 1, replace it with GOMP_ordered_* call instead of removing
2368 2015-11-13 Rich Felker <dalias@libc.org>
2370 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
2371 address loading hack for FDPIC targets.
2373 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
2374 Jeff Law <law@redhat.com>
2376 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
2377 * common.opt (-fsplit-paths): New flag controlling path splitting.
2378 * doc/invoke.texi (fsplit-paths): Document.
2379 * opts.c (default_options_table): Add -fsplit-paths to -O2.
2380 * passes.def: Add split_paths pass.
2381 * timevar.def (TV_SPLIT_PATHS): New timevar.
2382 * tracer.c: Include "tracer.h"
2383 (ignore_bb_p): No longer static.
2384 (transform_duplicate): New function, broken out of tail_duplicate.
2385 (tail_duplicate): Use transform_duplicate.
2386 * tracer.h (ignore_bb_p): Declare
2387 (transform_duplicate): Likewise.
2388 * tree-pass.h (make_pass_split_paths): Declare.
2389 * gimple-ssa-split-paths.c: New file.
2391 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
2392 Marek Polacek <polacek@redhat.com>
2393 Jason Merrill <jason@redhat.com>
2395 * convert.c (maybe_fold_build1_loc): New.
2396 (maybe_fold_build2_loc): New.
2397 (convert_to_pointer_1): Split out from convert_to_pointer.
2398 (convert_to_pointer_nofold): New.
2399 (convert_to_real_1): Split out from convert_to_real.
2400 (convert_to_real_nofold): New.
2401 (convert_to_integer_1): Split out from convert_to_integer.
2402 (convert_to_integer_nofold): New.
2403 (convert_to_complex_1): Split out from convert_to_complex.
2404 (convert_to_complex_nofold): New.
2405 * convert.h: Declare new functions.
2406 * tree-complex.c (create_one_component_var): Break up line to
2407 avoid sequence point issues.
2409 2015-11-13 Jason Merrill <jason@redhat.com>
2411 * fold-const.c (fold_convert_const): Fold changing cv-quals on
2414 * hash-map.h (hash_map::empty): New.
2416 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2418 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
2419 (oacc_loop_fixed_partitions): Correct return type to bool.
2420 (oacc_loop_auto_partitions): New.
2421 (oacc_loop_partition): Take mask argument, call
2422 oacc_loop_auto_partitions.
2423 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
2425 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2427 * config/rs6000/constraints.md (we constraint): New constraint for
2428 64-bit power9 vector support.
2429 (wL constraint): New constraint for the element in a vector that
2430 can be addressed by the MFVSRLD instruction.
2432 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
2434 (convert_int_to_float128): Likewise.
2435 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
2436 hardware support for IEEE 128-bit floating point.
2437 (rs6000_expand_float128_convert): Likewise.
2438 (convert_float128_to_int): Likewise.
2439 (convert_int_to_float128): Likewise.
2441 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
2442 ISA 3.0 hardware IEEE 128-bit floating point.
2443 (UNSPEC_IEEE128_MOVE): Likewise.
2444 (UNSPEC_IEEE128_CONVERT): Likewise.
2445 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
2446 (Ff): Add support for DImode.
2448 (any_fix code iterator): New and updated iterators for IEEE
2449 128-bit floating point hardware support.
2450 (any_float code iterator): Likewise.
2451 (s code attribute): Likewise.
2452 (su code attribute): Likewise.
2453 (az code attribute): Likewise.
2454 (uns code attribute): Likewise.
2455 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
2456 floating point hardware support.
2457 (abs<mode>2, FLOAT128 iterator): Likewise.
2458 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
2459 floating point hardware.
2460 (sub<mode>3, IEEE128 iterator): Likewise.
2461 (mul<mode>3, IEEE128 iterator): Likewise.
2462 (div<mode>3, IEEE128 iterator): Likewise.
2463 (copysign<mode>3, IEEE128 iterator): Likewise.
2464 (sqrt<mode>2, IEEE128 iterator): Likewise.
2465 (neg<mode>2, IEEE128 iterator): Likewise.
2466 (abs<mode>2, IEEE128 iterator): Likewise.
2467 (nabs<mode>2, IEEE128 iterator): Likewise.
2468 (fma<mode>4_hw, IEEE128 iterator): Likewise.
2469 (fms<mode>4_hw, IEEE128 iterator): Likewise.
2470 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
2471 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
2472 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
2473 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
2474 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
2475 (fix_fixuns code attribute): Likewise.
2476 (float_floatuns code attribute): Likewise.
2477 (fix<uns>_<mode>si2_hw): Likewise.
2478 (fix<uns>_<mode>di2_hw): Likewise.
2479 (float<uns>_<mode>si2_hw): Likewise.
2480 (float<uns>_<mode>di2_hw): Likewise.
2481 (xscvqp<su>wz_<mode>): Likewise.
2482 (xscvqp<su>dz_<mode>): Likewise.
2483 (xscv<su>dqp_<mode): Likewise.
2484 (ieee128_mfvsrd): Likewise.
2485 (ieee128_mfvsrwz): Likewise.
2486 (ieee128_mtvsrw): Likewise.
2487 (ieee128_mtvsrd): Likewise.
2488 (trunc<mode>df2_odd): Likewise.
2489 (cmp<mode>_h): Likewise.
2490 (128-bit GPR splitters): Don't split a 128-bit move that is a
2491 direct move between GPR and vector registers using ISA 3.0 direct
2493 (maddld4): Add support for the ISA 3.0 integer multiply-add
2496 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
2498 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
2499 constraint. Disable the VSX<->GPR direct move helpers if we have
2500 the MFVSRLD and MTVSRDD instructions.
2501 (rs6000_secondary_reload_simple_move): Add support for doing
2502 vector direct moves directly without additional scratch registers
2503 if we have ISA 3.0 instructions.
2504 (rs6000_secondary_reload_direct_move): Update comments.
2505 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
2508 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
2509 direct move instructions.
2510 (vsx_movti_64bit): Likewise.
2511 (vsx_extract_<mode>): Likewise.
2513 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
2514 macros for ISA 3.0 direct move instructions.
2515 (TARGET_DIRECT_MOVE_128): Likewise.
2516 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
2519 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
2520 constraints. Update wa documentation to say not to use %x<n> on
2521 instructions that only take Altivec registers.
2523 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2525 * Makefile.in (OBJS): Add gcc-rich-location.o.
2526 * diagnostic.c (diagnostic_append_note): Pass line_table to
2528 (emit_diagnostic): Likewise.
2530 (inform_n): Likewise.
2531 (warning): Likewise.
2532 (warning_at): Likewise.
2533 (warning_n): Likewise.
2534 (pedwarn): Likewise.
2535 (permerror): Likewise.
2537 (error_n): Likewise.
2538 (error_at): Likewise.
2540 (fatal_error): Likewise.
2541 (internal_error): Likewise.
2542 (internal_error_no_backtrace): Likewise.
2543 (source_range::debug): Likewise.
2544 * gcc-rich-location.c: New file.
2545 * gcc-rich-location.h: New file.
2546 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
2547 (warning_at): Likewise.
2548 * gimple.h (gimple_set_block): Use set_block function.
2549 * input.c (dump_line_table_statistics): Dump stats on how many
2550 ranges were optimized vs how many needed ad-hoc table.
2551 (write_digit_row): Add "map" param; use its range_bits
2552 to calculate the per-character offset.
2553 (dump_location_info): Print the range and column bits for each
2554 ordinary map. Use the range bits to calculate the per-character
2555 offset. Pass the map as a new param to the various calls to
2556 write_digit_row. Eliminate uses of
2557 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
2558 * print-tree.c (print_node): Print any source range information.
2559 * rtl-error.c (diagnostic_for_asm): Likewise.
2560 * toplev.c (general_init): Initialize line_table's
2562 * tree-cfg.c (move_block_to_fn): Likewise.
2563 (move_block_to_fn): Likewise.
2564 * tree-inline.c (copy_phis_for_bb): Likewise.
2565 * tree.c (tree_set_block): Likewise.
2566 (get_pure_location): New function.
2567 (set_source_range): New functions.
2568 (set_block): New function.
2569 (set_source_range): New functions.
2570 * tree.h (CAN_HAVE_RANGE_P): New.
2571 (EXPR_LOCATION_RANGE): New.
2572 (EXPR_HAS_RANGE): New.
2573 (get_expr_source_range): New inline function.
2574 (DECL_LOCATION_RANGE): New.
2575 (set_source_range): New decls.
2576 (get_decl_source_range): New inline function.
2578 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
2580 PR tree-optimization/67682
2581 * tree-vect-slp.c (vect_split_slp_store_group): New.
2582 (vect_analyze_slp_instance): During basic block SLP, recurse on
2583 subgroups if vect_build_slp_tree fails after 1st vector.
2585 2015-11-13 Christian Bruel <christian.bruel@st.com>
2588 * config/arm/arm.c (arm_option_override): Move NEON check...
2589 (arm_option_check_internal): here
2590 (arm_file_start): Move .fpu print...
2591 (arm_declare_function_name): here
2592 (arm_option_print): Dump current fpu name.
2593 * config/arm/arm.opt (arm_fpu_index): Mark Save.
2595 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
2596 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2598 * combine.c (subst): Don't substitute or simplify when
2599 handling register-wise widening multiply.
2600 (force_to_mode): Likewise.
2602 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
2604 PR tree-optimization/68264
2605 * tree-call-cdce.c (gen_one_condition): Update commentary.
2606 (gen_conditions_for_pow_int_base): Invert the sense of the tests
2607 passed to gen_one_condition.
2608 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
2609 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
2610 using EDGE_FALSE_VALUE for edges to the call block and
2611 EDGE_TRUE_VALUE for the others.
2613 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2615 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
2618 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2620 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
2622 2015-11-13 Tom de Vries <tom@codesourcery.com>
2624 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
2627 2015-11-13 Tom de Vries <tom@codesourcery.com>
2629 * gen-pass-instances.awk (handle_line): Add args_str variable.
2631 2015-11-13 Martin Liska <mliska@suse.cz>
2633 * graphite-poly.c (free_scop): Release scop->drs vector.
2634 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
2636 (try_generate_gimple_bb): Use vNULL as a default initialization
2639 2015-11-13 Martin Liska <mliska@suse.cz>
2642 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
2643 Replace array initialization (using a variable post-increment)
2644 that possible triggers multiple unsequenced modifications
2645 with a pair of pushes to a vector.
2647 2015-11-13 Richard Biener <rguenther@suse.de>
2649 PR tree-optimization/68306
2650 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
2651 loop related checks ...
2652 (vect_verify_datarefs_alignment): ... here.
2653 (vect_slp_analyze_and_verify_node_alignment): Compute and
2654 verify alignment of the single DR that it matters.
2655 * tree-vect-stmts.c (vectorizable_store): Add an assert.
2656 (vectorizable_load): Add a comment.
2657 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
2658 for determining load cost.
2660 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2662 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
2663 mix of boolean and integer vectors in a single statement.
2664 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
2665 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
2666 determine constant type.
2667 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
2668 for loop invariants.
2670 2015-11-13 Alan Hayward <alan.hayward@arm.com>
2672 PR tree-optimization/66558
2673 * tree-vect-loop.c (is_integer_induction):Add.
2674 (vectorizable_reduction): Add integer induction checks.
2676 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
2678 Revert [ARM] Remove neon-testgen.ml and generated tests.
2680 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2682 [ARM] Remove neon-testgen.ml and generated tests.
2684 * config/arm/neon-testgen.ml: Remove.
2686 2015-11-13 Richard Biener <rguenther@suse.de>
2688 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
2689 Signal fatal failure if early checks fail.
2690 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
2691 do not bother testing further vector sizes.
2693 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
2695 * config/i386/predicates.md (misaligned_operand): Return true if
2696 operand is aligned to less than its natural alignmnet.
2698 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2700 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
2701 (vec_cmpu@var{m}@var{n}): New item.
2702 (vcond@var{m}@var{n}): Specify comparison is signed.
2703 (vcondu@var{m}@var{n}): New item.
2704 (vcond_mask_@var{m}@var{n}): New item.
2705 (maskload@var{m}@var{n}): New item.
2706 (maskstore@var{m}@var{n}): New item.
2708 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2710 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
2711 types of stored value and storage are compatible.
2713 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
2715 * gcc.c (POST_LINK_SPEC): Define if not already defined.
2716 (LINK_COMMAND_SPEC): Use post_link.
2717 (post_link_spec): New, initialize to POST_LINK_SPEC.
2718 (post_link): Initialize new static spec.
2719 * doc/tm.texi.in (POST_LINK_SPEC): Document.
2720 * doc/tm.texi: Regenerated.
2722 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2725 * Makefile.in (GCC_OBJS): Add spellcheck.o.
2726 (OBJS): Add spellcheck-tree.o.
2727 * gcc.c: Include "spellcheck.h".
2728 (suggest_option): New function.
2729 (driver::handle_unrecognized_options): Call suggest_option to
2730 provide a hint about misspelled options.
2731 * spellcheck.c: Update file comment.
2732 (levenshtein_distance): Convert 4-param implementation from static
2733 to extern scope. Remove note about unit tests from leading
2734 comment for const char * implementation. Move tree
2735 implementation to...
2736 * spellcheck-tree.c: New file.
2737 * spellcheck.h (levenshtein_distance): Add 4-param decl.
2739 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2741 * Makefile.in (OBJS): Add spellcheck.o.
2742 * spellcheck.c: New file.
2743 * spellcheck.h: New file.
2745 2015-11-13 James Bowman <james.bowman@ftdichip.com>
2747 * config/ft32/ft32.md (*sne): New insn pattern.
2749 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
2751 * cprop.c (is_too_expensive): Remove.
2753 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
2755 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
2756 * gcse.c (is_too_expensive): Rename to ...
2757 (gcse_or_cprop_is_too_expensive): ... this.
2758 Expand warning to add required size of max-gcse-memory.
2759 (one_pre_gcse_pass): Use it.
2760 (one_code_hoisting_pass): Use it.
2761 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
2763 2015-11-12 James Norris <jnorris@codesourcery.com>
2764 Joseph Myers <joseph@codesourcery.com>
2766 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
2767 GF_OMP_TARGET_KIND_OACC_DECLARE.
2768 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
2769 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2770 * gimplify.c (oacc_declare_returns): New.
2771 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
2772 (device_resident_p): New function.
2773 (oacc_default_clause): Handle device_resident clause.
2774 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
2775 (gimplify_expr): Handle OACC_DECLARE.
2776 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
2777 * omp-low.c (expand_omp_target): Handle
2778 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
2779 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
2780 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
2781 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
2782 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2783 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
2784 GOMP_MAP_DEVICE_RESIDENT.
2786 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2788 [ARM] Remove neon-testgen.ml and generated tests.
2790 * config/arm/neon-testgen.ml: Remove.
2792 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
2794 * config/aarch64/aarch64-cores.def (qdf24xx): New.
2795 * config/aarch64/aarch64-tune.md: Regenerated.
2796 * config/arm/arm-cores.def (qdf24xx): New.
2797 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
2798 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
2799 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
2800 (ARM Options/-mtune): Likewise.
2802 2015-11-12 Martin Liska <mliska@suse.cz>
2804 * config/i386/i386.c (ix86_valid_target_attribute_p):
2805 Finalize options at the of the function.
2806 * gcc.c (driver_get_configure_time_options): Call newly
2807 introduced init_opts_obstack.
2808 * lto-wrapper.c (main): Likewise.
2809 * opts.c (init_opts_obstack): New function.
2810 (init_options_struct): Call newly introduced init_opts_obstack.
2811 * opts.h (init_options_struct): Declare.
2813 2015-11-12 Martin Liska <mliska@suse.cz>
2816 * ipa-icf.c (void sem_item::set_hash): New function.
2817 (sem_function::get_hash): Use renamed m_hash member variable.
2818 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
2819 (sem_item::update_hash_by_local_refs): Likewise.
2820 (sem_variable::get_hash): Use renamed m_hash member variable.
2821 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
2822 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
2823 (sem_item_optimizer::build_graph): As the hash value of an item
2824 is lazy initialized, force the calculation.
2825 * ipa-icf.h (set_hash): Declare new function and rename hash member
2828 2015-11-12 Richard Biener <rguenther@suse.de>
2830 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
2831 Rename to vect_slp_analyze_instance_dependence.
2832 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2833 Remove WAR special-case.
2834 (vect_slp_analyze_node_dependences): Instead add more specific
2835 code here, not relying on other instances being vectorized.
2836 (vect_slp_analyze_instance_dependence): Adjust accordingly.
2837 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
2838 vertical space in dump files.
2839 (vect_print_slp_tree): Likewise.
2840 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
2841 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
2842 not vectorized stmts until after dependence analysis removed
2843 instances. Merge alignment and dependence checks.
2844 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
2847 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
2849 * config/aarch64/aarch64-protos.h (tune_params): Add new members
2850 "max_case_values" and "cache_line_size".
2851 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
2853 (aarch64_override_options_internal): Tune heuristics based on new
2854 members in "tune_params".
2855 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2857 2015-11-12 Richard Biener <rguenther@suse.de>
2859 PR tree-optimization/68306
2860 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
2861 relevant and vectorizable checks here.
2862 (vect_verify_datarefs_alignment): Add relevant check here.
2864 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
2866 * gimplify.c (oacc_default_clause): New.
2867 (omp_notice_variable): Call it.
2869 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2871 PR tree-optimization/68305
2872 * tree-vect-slp.c (vect_get_constant_vectors): Support
2873 COND_EXPR with SSA_NAME as a condition.
2875 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
2877 * config/visium/visium-protos.h (notice_update_cc): Delete.
2878 (print_operand): Likewise.
2879 (print_operand_address): Likewise.
2881 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2883 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
2884 FUNCTION_VALUE_REGNO_P): Remove.
2885 * config/alpha/alpha-protos.h (function_value): Remove.
2886 * config/alpha/alpha.c (function_value): Rename to...
2887 (alpha_function_value_1): ... this. Make static.
2888 (alpha_function_value, alpha_libcall_value,
2889 alpha_function_value_regno_p): New functions.
2890 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2891 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2893 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2895 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2896 * config/alpha/alpha.c (alpha_memory_latency): Make static.
2897 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
2898 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2900 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
2903 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
2904 assertion on the CFA register.
2906 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2908 * expr.c (do_store_flag): Expand vector comparison as
2909 VEC_COND_EXPR if vector comparison is not supported by target.
2911 2015-11-12 Renlin Li <renlin.li@arm.com>
2913 * config/arm/arm.md (addsi3_compare_op2): Make the order of
2914 assembly pattern consistent with constraint order.
2916 2015-11-12 Tom de Vries <tom@codesourcery.com>
2918 * gen-pass-instances.awk (handle_line): Simplify match regexp.
2920 2015-11-12 Tom de Vries <tom@codesourcery.com>
2922 * gen-pass-instances.awk (handle_line): Simplify init of
2925 2015-11-12 Tom de Vries <tom@codesourcery.com>
2927 * gen-pass-instances.awk (handle_line): Rename var where to
2930 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
2932 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
2933 do not expand to rtl.
2935 2015-11-12 Richard Biener <rguenther@suse.de>
2937 PR tree-optimization/58497
2938 * tree-vect-generic.c: Include gimplify.h.
2939 (tree_vec_extract): Lookup constant/constructor DEFs.
2940 (do_cond): Unshare cond.
2942 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2944 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
2945 combined insn if the alignment of vector mode memory operand
2946 is less than ssememalign.
2948 2015-11-12 Tom de Vries <tom@codesourcery.com>
2950 * gen-pass-instances.awk (handle_line): Print parentheses and
2951 pass_name explicitly.
2953 2015-11-12 Tom de Vries <tom@codesourcery.com>
2955 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
2958 2015-11-12 Tom de Vries <tom@codesourcery.com>
2960 * gen-pass-instances.awk (handle_line): Add comments.
2962 2015-11-12 Tom de Vries <tom@codesourcery.com>
2964 * gen-pass-instances.awk (handle_line): Rename len_of_end to
2967 2015-11-12 Tom de Vries <tom@codesourcery.com>
2969 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
2971 2015-11-12 Tom de Vries <tom@codesourcery.com>
2973 * gen-pass-instances.awk (handle_line): Restructure using early-out.
2975 2015-11-12 Tom de Vries <tom@codesourcery.com>
2977 * gen-pass-instances.awk (handle_line): Unify semicolon use.
2979 2015-11-12 Tom de Vries <tom@codesourcery.com>
2981 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
2983 2015-11-12 Tom de Vries <tom@codesourcery.com>
2985 * gen-pass-instances.awk: Add emacs indent setting.
2987 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2989 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
2991 Move Convert A/(B/C) to (A/B)*C to match.pd.
2992 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
2993 Move Optimize (X & (-A)) / A where A is a power of 2, to
2994 X >> log2(A) to match.pd.
2996 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
2997 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
2998 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
3000 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
3002 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
3004 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
3006 (neon_vst2_lane<mode>): Likewise.
3007 (neon_vld3_lane<mode>): Likewise.
3008 (neon_vst3_lane<mode>): Likewise.
3009 (neon_vld4_lane<mode>): Likewise.
3010 (neon_vst4_lane<mode>): Likewise.
3012 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
3013 Sebastian Pop <s.pop@samsung.com>
3015 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3016 New member codegen_error
3017 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
3019 (translate_isl_ast_node_user): Early return in case of error.
3020 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3021 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
3022 (add_parameters_to_ivs_params): Remove macro.
3023 (graphite_regenerate_ast_isl): Add if_region pointer to region.
3024 * graphite-poly.c (new_poly_dr): Remove macro.
3026 (new_gimple_poly_bb): Same.
3027 (free_gimple_poly_bb): Same.
3028 (print_scop_params): Same.
3029 * graphite-poly.h (struct poly_dr): Same.
3030 (struct poly_bb): Add new_bb.
3031 (gbb_from_bb): Remove dead code.
3032 (pbb_from_bb): Same.
3033 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
3034 (parameter_index_in_region): Same.
3035 (find_scop_parameters): Same.
3036 (build_cross_bb_scalars_def): New.
3037 (build_cross_bb_scalars_use): New.
3038 (graphite_find_cross_bb_scalar_vars): New
3039 (try_generate_gimple_bb): Reads and Writes.
3040 (build_alias_set): Move.
3041 (gather_bbs::before_dom_children): Gather bbs visited.
3042 (build_scops): call build_alias_set.
3043 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
3044 (remove_simple_copy_phi): Delete.
3045 (remove_invariant_phi): Delete.
3046 (simple_copy_phi_p): Delete.
3047 (reduction_phi_p): Delete.
3048 (isl_id_for_dr): Remove unused param.
3049 (parameter_index_in_region_1): Remove macro usage.
3050 (set_scop_parameter_dim): Same.
3051 (add_param_constraints): Same.
3052 (add_conditions_to_constraints): Same
3053 (build_scop_iteration_domain): Same.
3054 (pdr_add_alias_set): Comment.
3055 (add_scalar_version_numbers): New.
3056 (build_poly_dr): ISL id.
3057 (build_scop_drs): Move.
3058 (build_poly_sr_1): Same.
3059 (insert_stmts): Remove.
3060 (build_poly_sr): New.
3061 (new_pbb_from_pbb): Delete.
3062 (insert_out_of_ssa_copy_on_edge): Delete.
3063 (create_zero_dim_array): Delete.
3064 (scalar_close_phi_node_p): Delete.
3065 (propagate_expr_outside_region): Delete.
3066 (rewrite_close_phi_out_of_ssa): Delete.
3067 (rewrite_phi_out_of_ssa): Delete.
3068 (rewrite_degenerate_phi): Delete.
3069 (rewrite_reductions_out_of_ssa): Delete.
3070 (rewrite_cross_bb_scalar_dependence): Delete.
3071 (handle_scalar_deps_crossing_scop_limits):
3072 (rewrite_cross_bb_scalar_deps): Delete.
3073 (build_poly_scop): Remove calls to out-of-ssa functions.
3074 * graphite.c (graphite_transform_loops): Early return in case of
3076 * sese.c (debug_rename_map_1): Delete.
3077 (debug_rename_map): Delete.
3078 (sese_record_loop): Remove macro.
3079 (build_sese_loop_nests): Same.
3080 (new_sese_info): Same.
3081 (free_sese_info): Same.
3082 (sese_insert_phis_for_liveouts):
3083 (is_loop_closed_ssa_use): New.
3084 (number_of_phi_nodes): New.
3085 (bb_contains_loop_close_phi_nodes): New.
3086 (bb_contains_loop_phi_nodes): New.
3087 (phi_uses_name): New.
3089 (get_rename): Add old_bb and loop_phi for more precise matching of
3091 (set_rename): Pass region.
3092 (later_of_the_two): New.
3093 (gsi_insert_earliest): New.
3094 (collect_all_ssa_names): New.
3095 (substitute_ssa_name): New.
3096 (rename_all_uses): New.
3097 (get_rename_from_scev): New.
3098 (rename_uses): Pass old_bb for more precise matching of exprs.
3099 (get_def_bb_for_const): New.
3100 (get_new_name): New.
3103 (copy_loop_phi_args): New.
3104 (copy_loop_phi_nodes): New.
3105 (get_loop_init_value): New.
3106 (find_init_value): New.
3107 (find_init_value_close_phi): New.
3108 (copy_loop_close_phi_args): New.
3109 (copy_loop_close_phi_nodes): New.
3110 (add_phi_arg_for_new_expr): New.
3111 (copy_cond_phi_args): New.
3112 (copy_cond_phi_nodes): New.
3113 (copy_phi_nodes): New.
3114 (should_copy_to_new_region): New.
3115 (set_rename_for_each_def): New.
3116 (graphite_copy_stmts_from_block): Early return in case of error.
3117 (copy_bb_and_scalar_dependences): Same.
3118 * sese.h (vec_find): New.
3119 (SESE_PARAMS): Delete.
3120 (SESE_LOOPS): Delete.
3121 (SESE_LOOP_NEST): Delete.
3122 (sese_contains_loop): Remove macro usage.
3123 (sese_nb_params): Same.
3124 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
3126 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3128 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
3129 isl_union_map_add_map on every pbb->schedule.
3131 2015-11-11 Tom de Vries <tom@codesourcery.com>
3133 * tree-parloops.c (create_parallel_loop): Return void.
3135 2015-11-11 Tom de Vries <tom@codesourcery.com>
3137 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
3138 block only when needed.
3140 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
3142 * config/alpha/alpha-protos.h (print_operand): Remove.
3143 (print_operand_address): Remove.
3144 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
3145 (PRINT_OPERAND_ADDRESS): Remove.
3146 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
3147 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
3148 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
3149 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
3150 (print_operand_address): Rename to...
3151 (alpha_print_operand_address): ...this and make static.
3152 (print_operand): Rename to...
3153 (alpha_print_operand): ...this and make static.
3154 (alpha_print_operand_punct_valid_p): New static function.
3156 2015-11-11 Richard Biener <rguenther@suse.de>
3158 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
3160 (vect_analyze_data_refs_alignment): Make loop vect specific.
3161 (vect_verify_datarefs_alignment): Likewise.
3162 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
3163 Add missing continue.
3164 (vect_compute_data_ref_alignment): Export.
3165 (vect_compute_data_refs_alignment): Merge into...
3166 (vect_analyze_data_refs_alignment): ... this.
3167 (verify_data_ref_alignment): Split out from ...
3168 (vect_verify_datarefs_alignment): ... here.
3169 (vect_slp_analyze_and_verify_node_alignment): New function.
3170 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
3171 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
3172 misplaced checks on alignment.
3173 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
3174 alignment analysis after SLP discovery and do it per instance.
3175 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
3176 bother to re-try using different vector sizes.
3178 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
3179 Cesar Philippidis <cesar@codesourcery.com>
3181 * gimplify.c (enum omp_region_type): Add ORT_ACC,
3182 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
3183 (gimple_add_tmp_var): Add ORT_ACC checks.
3184 (gimplify_var_or_parm_decl): Likewise.
3185 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
3186 (omp_add_variable): Look in outer contexts for openacc and allow
3187 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
3188 (omp_notice_variable, omp_is_private, omp_check_private): Add
3190 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
3191 Permit private openacc reductions.
3192 (gimplify_oacc_cache): Specify ORT_ACC.
3193 (gimplify_omp_workshare): Adjust OpenACC region types.
3194 (gimplify_omp_target_update): Likewise.
3195 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
3196 (lower-rec_input_clauses): Don't handle openacc firstprivate
3198 (lower_omp_target): Emit initializers for openacc firstprivate vars.
3200 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
3203 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
3204 frame pointer for stack checking if non-call exceptions aren't used.
3205 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
3207 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
3209 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
3212 2015-11-11 Martin Liska <mliska@suse.cz>
3213 Richard Biener <rguenther@suse.de>
3215 PR rtl-optimization/68287
3216 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
3219 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
3221 * config/mips/mips.c (mips_breakable_sequence_p): New function.
3222 (mips_break_sequence): New function.
3223 (mips_reorg_process_insns): Use them. Use compact branches in selected
3226 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
3228 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
3230 2015-11-11 Jiong Wang <jiong.wang@arm.com>
3231 Jim Wilson <wilson@gcc.gnu.org>
3234 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
3235 be true and eliminable registers mentioned.
3237 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
3239 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
3241 * config/arc/arc-opts.h: Add ARCv2 CPUs.
3242 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
3243 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
3244 situation, and store instructions with large offsets.
3245 (arc_secondary_reload_conv): New function.
3246 (arc_init): Add ARCv2 options.
3247 (arc_conditional_register_usage): Select the proper register usage
3248 for ARCv2 processors.
3249 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
3251 (arc_compute_function_type): Likewise.
3252 (arc_print_operand): Handle new ARCv2 punctuation characters.
3253 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
3254 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
3256 (arc_reorg, arc_hazard): Use it.
3257 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
3258 (ASM_SPEC): Add ARCv2 options.
3259 (TARGET_NORM): ARC HS has norm instructions by default.
3260 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
3261 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
3262 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
3263 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
3265 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
3266 (TARGET_LP_WR_INTERLOCK): Likewise.
3268 (commutative_binary_mult_comparison_result_used, movsicc_insn)
3269 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
3270 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
3271 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
3273 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
3274 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
3275 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
3276 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
3277 (extzvsi): New pattern.
3278 * config/arc/arc.opt: New ARCv2 options.
3279 * config/arc/arcEM.md: New file.
3280 * config/arc/arcHS.md: Likewise.
3281 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
3283 (Cm2): A signed 9-bit integer constant constraint.
3284 (C62): An unsigned 6-bit integer constant constraint.
3285 (C16): A signed 16-bit integer constant constraint.
3286 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
3287 (short_const_int_operand): New predicate.
3288 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
3289 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
3290 -mcode-density and -mdiv-rem.
3292 2015-11-11 Julia Koval <julia.koval@intel.com>
3294 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
3296 2015-11-11 Julia Koval <julia.koval@intel.com>
3298 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
3300 2015-11-11 Martin Liska <mliska@suse.cz>
3302 * gimple-ssa-strength-reduction.c (create_phi_basis):
3304 * passes.c (release_dump_file_name): New function.
3305 (pass_init_dump_file): Used from this function.
3306 (pass_fini_dump_file): Likewise.
3307 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
3308 * var-tracking.c (vt_initialize): Use pool_allocator.
3310 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
3311 Jiong Wang <jiong.wang@arm.com>
3313 PR tree-optimization/68234
3314 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
3315 node which estimiated to be VR_VARYING initially.
3317 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
3319 * regname.c (scan_rtx_reg): Check the matching number of consecutive
3320 registers when tying chains.
3321 (build_def_use): Move terminated_this_insn earlier in the function.
3323 2015-11-10 Mike Frysinger <vapier@gentoo.org>
3325 * configure.ac: Use = with test and not ==.
3326 * configure: Regenerated.
3328 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
3330 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
3331 machine asserts. Update defines for 64 bit.
3333 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3336 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
3338 (neon_vst1_lane<mode>): Likewise.
3339 (neon_vld2_lane<mode>): Likewise.
3340 (neon_vst2_lane<mode>): Likewise.
3341 (neon_vld3_lane<mode>): Likewise.
3342 (neon_vst3_lane<mode>): Likewise.
3343 (neon_vld4_lane<mode>): Likewise.
3344 (neon_vst4_lane<mode>): Likewise.
3346 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3349 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
3350 qualifier_struct_load_store_lane_index.
3351 (arm_storestruct_lane_qualifiers) Likewise.
3352 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
3354 (neon_vst1_lane<mode>) Likewise.
3355 (neon_vld2_lane<mode>) Likewise.
3356 (neon_vst2_lane<mode>) Likewise.
3357 (neon_vld3_lane<mode>) Likewise.
3358 (neon_vst3_lane<mode>) Likewise.
3359 (neon_vld4_lane<mode>) Likewise.
3360 (neon_vst4_lane<mode>) Likewise.
3362 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3365 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
3366 qualifier_struct_load_store_lane_index.
3367 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3368 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
3369 argument qualifiers.
3370 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
3371 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
3373 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
3375 * config/nvptx/nvptx.opt (moptimize): New flag.
3376 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
3378 (nvptx_optimize_inner): New.
3379 (nvptx_process_pars): Call it when optimizing.
3380 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
3382 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3384 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
3385 Remove redundant code.
3387 2015-11-10 Jeff Law <law@redhat.com>
3389 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
3390 call to output_address.
3391 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
3392 Add unnamed machine_mode argument.
3394 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3396 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
3399 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3401 * config/i386/i386.md (*movabs<mode>_1): Add explicit
3402 size directives for -masm=intel.
3403 (*movabs<mode>_2): Ditto.
3405 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3407 * config/i386/i386.c (ix86_print_operand): Remove dead code that
3408 tried to avoid (%rip) for call operands.
3410 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3412 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
3413 argument. Do not use RIP relative addressing when no_rip is set.
3414 (ix86_print_operand): Update call to ix86_print_operand_address_as.
3415 (ix86_print_operand_address): Ditto.
3416 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
3417 absolute movabs operand 0. Add square braces for -masm=intel.
3418 (*movabs<mode>_2): Ditto for operand 1.
3420 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3422 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
3423 combine_vcvtf2i pattern.
3425 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3427 * config/arm/arm.c (neon_valid_immediate): Remove integer
3428 CONST_DOUBLE handling. It should never occur.
3430 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
3432 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
3433 (ATOMIC_LDOP): Likewise.
3434 (atomic_ldop): Likewise.
3435 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
3436 (ATOMIC_LDOP): Likewise.
3437 (atomic_ldop): Likewise.
3439 2015-11-10 Martin Liska <mliska@suse.cz>
3441 * alloc-pool.h (allocate_raw): New function.
3442 (operator new (size_t, object_allocator<T> &a)): Use the
3443 function instead of object_allocator::allocate).
3445 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3447 * config/i386/sse.md (HALFMASKMODE): New attribute.
3448 (DOUBLEMASKMODE): New attribute.
3449 (vec_pack_trunc_qi): New.
3450 (vec_pack_trunc_<mode>): New.
3451 (vec_unpacks_lo_hi): New.
3452 (vec_unpacks_lo_si): New.
3453 (vec_unpacks_lo_di): New.
3454 (vec_unpacks_hi_hi): New.
3455 (vec_unpacks_hi_<mode>): New.
3457 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3459 * optabs.c (expand_binop_directly): Allow scalar mode for
3460 vec_pack_trunc_optab.
3461 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3462 boolean vector producers from pattern sequence when computing VF.
3463 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
3464 vect_recog_mask_conversion_pattern.
3465 (search_type_for_mask): Choose the smallest
3466 type if different size types are mixed.
3467 (build_mask_conversion): New.
3468 (vect_recog_mask_conversion_pattern): New.
3469 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
3470 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
3472 (vectorizable_conversion): Support boolean vectors.
3473 (free_stmt_vec_info): Allow patterns for statements with no lhs.
3474 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
3476 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3478 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
3479 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
3480 Cast mask to FP mode if required.
3481 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
3482 (vcond_mask_<mode><avx512fmaskmodelower>): New.
3483 (vcond_mask_<mode><sseintvecmodelower>): New.
3484 (vcond_mask_<mode><sseintvecmodelower>): New.
3485 (vcond_mask_v2div2di): New.
3486 (vcond_mask_<mode><sseintvecmodelower>): New.
3487 (vcond_mask_<mode><sseintvecmodelower>): New.
3489 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3491 * optabs-query.h (get_vcond_mask_icode): New.
3492 * optabs-tree.c (expand_vec_cond_expr_p): Use
3493 get_vcond_mask_icode for VEC_COND_EXPR with mask.
3494 * optabs.c (expand_vec_cond_mask_expr): New.
3495 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
3496 * optabs.def (vcond_mask_optab): New.
3497 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
3498 generate redundant comparison for COND_EXPR.
3499 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
3501 (vectorizable_condition): Likewise.
3502 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
3503 cond_exp with no embedded comparison.
3504 (vect_build_slp_tree_1): Likewise.
3506 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3508 * config/i386/sse.md (maskload<mode>): Rename to ...
3509 (maskload<mode><sseintvecmodelower>): ... this.
3510 (maskstore<mode>): Rename to ...
3511 (maskstore<mode><sseintvecmodelower>): ... this.
3512 (maskload<mode><avx512fmaskmodelower>): New.
3513 (maskstore<mode><avx512fmaskmodelower>): New.
3515 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3517 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
3518 (expand_MASK_STORE): Adjust to maskstore optab changes.
3519 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
3520 Adjust to maskload, maskstore optab changes.
3521 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
3522 * optabs.def (maskload_optab): Transform into convert optab.
3523 (maskstore_optab): Likewise.
3524 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
3525 can_vec_mask_load_store_p signature change.
3526 (predicate_mem_writes): Use boolean mask.
3527 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
3528 can_vec_mask_load_store_p signature change. Allow invariant masks.
3529 (vectorizable_operation): Ignore type precision for boolean vectors.
3531 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3533 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
3534 (const_vector_mask_from_tree): New.
3535 (const_vector_from_tree): Use const_vector_mask_from_tree
3536 for boolean vectors.
3537 * optabs-query.h (get_vec_cmp_icode): New.
3538 * optabs-tree.c (expand_vec_cmp_expr_p): New.
3539 * optabs-tree.h (expand_vec_cmp_expr_p): New.
3540 * optabs.c (vector_compare_rtx): Add OPNO arg.
3541 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
3542 (expand_vec_cmp_expr): New.
3543 * optabs.def (vec_cmp_optab): New.
3544 (vec_cmpu_optab): New.
3545 * optabs.h (expand_vec_cmp_expr): New.
3546 * tree-vect-generic.c (expand_vector_comparison): Add vector
3547 comparison optabs check.
3548 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
3549 operations for VF. Add mask type computation.
3550 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
3551 (vectorizable_comparison): New.
3552 (vect_analyze_stmt): Add vectorizable_comparison.
3553 (vect_transform_stmt): Likewise.
3554 (vect_init_vector): Support boolean vector invariants.
3555 (vect_get_vec_def_for_operand): Add VECTYPE arg.
3556 (vectorizable_condition): Directly provide vectype for invariants
3558 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
3559 (enum vect_var_kind): Add vect_mask_var.
3560 (enum stmt_vec_info_type): Add comparison_vec_info_type.
3561 (vectorizable_comparison): New.
3562 (vect_get_vec_def_for_operand): Add VECTYPE arg.
3563 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
3564 (vect_create_destination_var): Likewise.
3565 * tree-vect-patterns.c (check_bool_pattern): Check fails
3566 if we can vectorize comparison directly.
3567 (search_type_for_mask): New.
3568 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
3569 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
3570 comparison statements.
3571 (vect_get_constant_vectors): Support boolean vector constants.
3572 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
3573 (ix86_expand_int_vec_cmp): New.
3574 (ix86_expand_fp_vec_cmp): New.
3575 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
3576 op_true and op_false.
3577 (ix86_int_cmp_code_to_pcmp_immediate): New.
3578 (ix86_fp_cmp_code_to_pcmp_immediate): New.
3579 (ix86_cmp_code_to_pcmp_immediate): New.
3580 (ix86_expand_mask_vec_cmp): New.
3581 (ix86_expand_fp_vec_cmp): New.
3582 (ix86_expand_int_sse_cmp): New.
3583 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
3584 (ix86_expand_int_vec_cmp): New.
3585 (ix86_get_mask_mode): New.
3586 (TARGET_VECTORIZE_GET_MASK_MODE): New.
3587 * config/i386/sse.md (avx512fmaskmodelower): New.
3588 (vec_cmp<mode><avx512fmaskmodelower>): New.
3589 (vec_cmp<mode><sseintvecmodelower>): New.
3590 (vec_cmpv2div2di): New.
3591 (vec_cmpu<mode><avx512fmaskmodelower>): New.
3592 (vec_cmpu<mode><sseintvecmodelower>): New.
3593 (vec_cmpuv2div2di): New.
3595 2015-11-10 Richard Biener <rguenther@suse.de>
3597 PR tree-optimization/68240
3598 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
3600 (visit_phi): For PHIs with just a single executable edge
3601 take its value directly.
3602 (expressions_equal_p): Handle VN_TOP properly.
3604 2015-11-10 Richard Biener <rguenther@suse.de>
3606 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
3607 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
3610 2015-11-10 Richard Biener <rguenther@suse.de>
3612 PR tree-optimization/56118
3613 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
3614 cost favor vectorized version.
3616 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3618 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
3619 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
3620 (neg_not_op): New code attribute.
3622 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3624 * ifcvt.c (noce_try_inverse_constants): New function.
3625 (noce_process_if_block): Call it.
3626 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
3627 * optabs.def (negcc_optab, notcc_optab): Declare.
3628 * optabs.c (emit_conditional_neg_or_complement): New function.
3629 * doc/tm.texi (Standard Names): Document negcc, notcc names.
3631 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3633 PR rtl-optimization/68236
3634 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
3635 if insn_queue doesn't exist.
3636 (haifa_sched_finish): Reset insn_queue to NULL.
3638 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
3640 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
3641 (build_def_use): Initialize terminated_this_insn.
3642 (find_best_rename_reg): Pick and check register from the tied chain.
3643 (regrename_do_replace): Mark head as renamed.
3644 (struct du_head *terminated_this_insn). New static variable.
3645 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
3646 * regrename.h (struct du_head): Add tied_chain, renamed members.
3648 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3651 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
3654 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3657 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
3658 not promote the mode for aggregate types.
3660 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3662 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
3663 * omp-low.c (build_oacc_routine_dims): New.
3665 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3667 * config/rs6000/constraints.md (wF constraint): New constraints
3668 for power9/toc fusion.
3669 (wG constraint): Likewise.
3671 * config/rs6000/predicates.md (u6bit_cint_operand): New
3672 predicate, recognize 0..63.
3673 (upper16_cint_operand): New predicate for power9 and toc fusion.
3674 (fpr_reg_operand): Likewise.
3675 (toc_fusion_or_p9_reg_operand): Likewise.
3676 (toc_fusion_mem_raw): Likewise.
3677 (toc_fusion_mem_wrapped): Likewise.
3678 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
3680 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
3682 (fusion_addis_mem_combo_load): Add support for power9 fusion of
3683 floating point loads, floating point stores, and gpr stores.
3684 (fusion_addis_mem_combo_store): Likewise.
3685 (fusion_offsettable_mem_operand): Likewise.
3687 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
3688 (emit_fusion_load_store): Likewise.
3689 (fusion_p9_p): Likewise.
3690 (expand_fusion_p9_load): Likewise.
3691 (expand_fusion_p9_store): Likewise.
3692 (emit_fusion_p9_load): Likewise.
3693 (emit_fusion_p9_store): Likewise.
3694 (fusion_wrap_memory_address): Likewise.
3696 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
3697 elements for power9 fusion.
3698 (rs6000_debug_print_mode): Rework debug information to print more
3699 information about fusion.
3700 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
3701 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
3702 offsettable memory address.
3703 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
3704 (emit_fusion_gpr_load): Move most of the code from
3705 emit_fusion_gpr_load into emit_fusion-addis that handles both
3706 power8 and power9 fusion.
3707 (emit_fusion_addis): Likewise.
3708 (emit_fusion_load_store): Likewise.
3709 (fusion_wrap_memory_address): Add support for TOC fusion.
3710 (fusion_split_address): Likewise.
3711 (fusion_p9_p): Add support for power9 fusion.
3712 (expand_fusion_p9_load): Likewise.
3713 (expand_fusion_p9_store): Likewise.
3714 (emit_fusion_p9_load): Likewise.
3715 (emit_fusion_p9_store): Likewise.
3717 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
3718 new instructions in ISA 3.0.
3719 (TARGET_CTZ): Likewise.
3720 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
3721 (TARGET_TOC_FUSION_FP): Likewise.
3723 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
3725 (UNSPEC_FUSION_ADDIS): Likewise.
3726 (QHSI mode iterator): New iterator for power9 fusion.
3727 (GPR_FUSION): Likewise.
3728 (FPR_FUSION): Likewise.
3729 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
3730 (umod<mode>3): Likewise.
3731 (divmod peephole): Likewise.
3732 (udivmod peephole): Likewise.
3733 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
3735 (ctz<mode>2_h): Likewise.
3736 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
3737 (ashdi3_extswsli_dot): Likewise.
3738 (ashdi3_extswsli_dot2): Likewise.
3739 (power9 fusion splitter): New power9/toc fusion support.
3740 (toc_fusionload_<mode>): Likewise.
3741 (toc_fusionload_di): Likewise.
3742 (fusion_gpr_load_<mode>): Update predicate function.
3743 (power9 fusion peephole2s): New power9/toc fusion support.
3744 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
3745 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
3746 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3747 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3748 (fusion_p9_<mode>_constant): Likewise.
3750 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
3752 * optabs.c (prepare_libcall_arg): New function.
3753 (expand_fixed_convert): Add call to prepare_libcall_arg.
3755 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
3757 * sched-int.h (dump_rgn_dependencies_dot): Declare
3758 * sched-rgn.c (dump_rgn_dependencies_dot): New function
3759 * print-rtl.h (print_insn): Add prototype
3761 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
3762 * common.opt (-fsched-verbose): Set default value to 1.
3763 * invoke.texi (-fsched-verbose): Update the option's description.
3765 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3767 * config/visium/visium.h (PRINT_OPERAND): Delete.
3768 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3769 (PRINT_OPERAND_ADDRESS): Likewise.
3770 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
3772 (visium_print_operand_punct_valid_p): ...this. New function.
3773 (TARGET_PRINT_OPERAND): Define to...
3774 (print_operand): Rename to...
3775 (visium_print_operand): ...this.
3776 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
3777 (visium_output_address): Rename to...
3778 (visium_print_operand_address): ...this.
3779 (print_operand_address): Delete.
3781 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3784 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
3785 Check that the type of the first operand is an aggregate type.
3787 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3789 * omp-low.c: Fix some OpenACC comment typos.
3790 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
3791 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
3792 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
3794 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
3796 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
3798 2015-11-09 Jeff Law <law@redhat.com>
3800 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
3801 being in gimple/ssa form. Remove redundant check for SSA_NAME.
3804 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3805 Peter Bergner <bergner@vnet.ibm.com>
3807 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
3809 (-mpower9-vector): Likewise.
3810 (-mpower9-dform): Likewise.
3811 (-mpower9-minmax): Likewise.
3812 (-mtoc-fusion): Likewise.
3813 (-mmodulo): Likewise.
3814 (-mfloat128-hardware): Likewise.
3816 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
3817 mask for ISA 3.0 (power9).
3818 (POWERPC_MASKS): Add new ISA 3.0 switches.
3819 (power9 cpu): Add power9 cpu.
3821 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
3822 (ASM_CPU_SPEC): Likewise.
3823 (EXTRA_SPECS): Likewise.
3825 * config/rs6000/rs6000-opts.h (enum processor_type): Add
3828 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
3829 (rs6000_debug_reg_global): Add support for power9 fusion.
3830 (rs6000_setup_reg_addr_masks): Cache mode size.
3831 (rs6000_option_override_internal): Until real power9 tuning is
3832 added, use -mtune=power8 for -mcpu=power9.
3833 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
3834 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
3835 of Altivec registers.
3836 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
3837 (rs6000_loop_align): Add support for power9 cpu.
3838 (rs6000_file_start): Likewise.
3839 (rs6000_adjust_cost): Likewise.
3840 (rs6000_issue_rate): Likewise.
3841 (insn_must_be_first_in_group): Likewise.
3842 (insn_must_be_last_in_group): Likewise.
3843 (force_new_group): Likewise.
3844 (rs6000_register_move_cost): Likewise.
3845 (rs6000_opt_masks): Likewise.
3847 * config/rs6000/rs6000.md (cpu attribute): Add power9.
3848 * config/rs6000/rs6000-tables.opt: Regenerate.
3850 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3851 _ARCH_PWR9 if power9 support is available.
3853 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
3854 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
3856 * configure.ac: Determine if the assembler supports the ISA 3.0
3858 * config.in (HAVE_AS_POWER9): Likewise.
3859 * configure: Regenerate.
3861 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
3864 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3866 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
3867 Remove integer CONST_DOUBLE handling. It should never occur.
3869 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3872 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
3873 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
3874 Delete VOIDmode case. Assert that mode is not VOIDmode.
3875 * config/aarch64/predicates.md (const0_operand): Remove const_double
3878 2015-11-09 Martin Liska <mliska@suse.cz>
3880 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
3881 body_info release function.
3882 * ipa-prop.c (ipa_release_body_info): New function.
3883 (ipa_analyze_node): Call the function.
3884 (ipa_node_params::~ipa_node_params): Release known_csts.
3885 * ipa-prop.h (ipa_release_body_info): Declare.
3887 2015-11-09 Martin Liska <mliska@suse.cz>
3889 * gcc.c (record_temp_file): Release name string.
3890 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
3891 * lra-lives.c (free_live_range_list): Utilize
3892 lra_live_range_pool for allocation and deallocation.
3893 (create_live_range): Likewise.
3894 (copy_live_range): Likewise.
3895 (lra_merge_live_ranges): Likewise.
3896 (remove_some_program_points_and_update_live_ranges): Likewise.
3897 (lra_create_live_ranges_1): Release point_freq_vec that can
3898 be not freed from previous iteration of the function.
3899 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
3900 * tree-sra.c (sra_deinitialize): Release all vectors in
3902 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
3903 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
3904 Release edge_info for a removed edge.
3905 (thread_through_all_blocks): Free region vector.
3906 * tree-ssa.h (free_dom_edge_info): Declare function extern.
3908 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
3910 * optabs.c (expand_vec_cond_expr): Always get sign from type.
3911 * tree.c (wide_int_to_tree): Support negative values for boolean.
3912 (build_nonstandard_boolean_type): Use signed type for booleans.
3914 2015-11-09 Richard Biener <rguenther@suse.de>
3916 PR tree-optimization/68248
3917 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
3919 2015-11-09 Richard Biener <rguenther@suse.de>
3921 PR tree-optimization/56118
3922 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
3923 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
3924 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
3926 (vect_slp_analyze_data_ref_dependences): Instead of computing
3927 all dependences of the region DRs just analyze the code motions
3928 SLP vectorization will perform. Remove SLP instances that
3929 cannot have their store/load motions applied.
3930 (vect_analyze_data_refs): Allow DRs without a vectype
3931 in BB vectorization.
3933 2015-11-09 Julian Brown <julian@codesourcery.com>
3935 * final.c (output_asm_insn): Pass VOIDmode to output_address.
3936 (output_address): Add MODE argument. Pass to print_operand_address
3938 * targhooks.c (default_print_operand_address): Add MODE argument.
3939 * targhooks.h (default_print_operand_address): Update prototype.
3940 * output.h (output_address): Update prototype.
3941 * target.def (print_operand_address): Add MODE argument.
3942 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
3944 (print_operand): Pass access mode to output_address.
3945 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
3947 (mcore_print_operand): Update calls to mcore_print_operand_address.
3948 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
3950 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
3952 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
3954 (tilegx_print_operand): Don't set above global. Update calls to
3956 (tilegx_print_operand_address): Add MODE argument. Use instead of
3957 output_memory_reference_mode global.
3958 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
3959 (frv_print_operand): Pass mode to frv_print_operand_address calls.
3960 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
3962 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
3963 (cris_print_operand): Pass mode to output_address calls.
3964 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
3965 * config/aarch64/aarch64.h (aarch64_print_operand)
3966 (aarch64_print_operand_address): Remove prototypes.
3967 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
3969 (aarch64_print_operand): Make static. Update calls to output_address.
3970 (aarch64_print_operand_address): Add MODE argument. Use instead of
3971 aarch64_memory_reference_mode global.
3972 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
3974 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3975 Delete macro definitions.
3976 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
3977 * config/xtensa/xtensa.c (print_operand): Pass mode in
3978 output_address calls.
3979 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
3981 (h83000_print_operand): Update calls to h8300_print_operand_address
3983 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
3984 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
3986 (tilepro_print_operand): Pass mode to output_address.
3987 (tilepro_print_operand_address): Add MODE argument. Use instead of
3988 output_memory_reference_mode.
3989 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
3990 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
3991 to output_address calls.
3992 (nvptx_print_operand_address): Add MODE argument.
3993 * config/alpha/alpha.c (print_operand): Pass mode argument in
3994 output_address calls.
3995 * config/m68k/m68k.c (print_operand): Pass mode argument in
3996 output_address call.
3997 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
3998 (avr_print_operand): Update calls to avr_print_operand_address.
3999 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
4000 argument. Update calls to output_address.
4001 (sparc_print_operand): Pass mode to output_address.
4002 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
4004 (iq2000_print_operand): Pass mode in output_address calls.
4005 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
4007 (xstormy16_print_operand): Pass mode to
4008 xstormy16_print_operand_address calls.
4009 * config/mips/mips.c (mips_print_operand): Update calls to
4011 (mips_print_operand_address): Add MODE argument.
4012 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
4014 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
4015 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
4017 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
4018 (rx_print_operand): Update calls to output_address,
4019 rx_print_operand_address.
4020 * config/nds32/nds32.c (nds32_print_operand): Update calls to
4022 (nds32_print_operand_address): Add MODE argument.
4023 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
4024 output_address calls.
4025 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
4026 output_address call.
4027 (c6x_print_address_operand): Update calls to output_address.
4028 (c6x_print_operand_address): Pass mode to above.
4029 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
4030 (v850_print_operand): Pass mode to v850_print_operand_address,
4032 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
4033 (mmix_print_operand): Pass mode in output_address calls.
4034 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
4035 (sh_print_operand): Pass mem mode to output_address,
4036 sh_print_operand_address.
4037 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
4038 (cr16_print_operand): Pass mode to output_address,
4039 cr16_print_operand_address.
4040 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
4042 * config/microblaze/microblaze.c (print_operand): Pass mode to
4044 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
4046 (nios2_print_operand_address): Add MODE argument. Update call to
4047 nios2_print_operand_address.
4048 * config/s390/s390.c (print_operand): Pass mode to output_address.
4049 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
4050 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
4052 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
4053 Use instead of output_memory_reference_mode.
4054 (output_memory_reference_mode): Delete global.
4055 (arm_print_operand): Pass mem mode to output_address.
4056 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
4057 (m32r_print_operand): Pass mode to output_address.
4058 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
4060 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
4061 * config/i386/i386.c (ix86_print_operand): Pass mode to
4062 output_address calls.
4063 (ix86_print_operand_address): Add MODE argument.
4065 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4068 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
4069 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
4070 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
4071 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4073 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4075 PR rtl-optimization/67749
4076 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
4077 case before emitting the two blocks. Instead modify the register
4078 in the corresponding final insn of the basic block.
4080 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4082 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
4085 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
4087 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
4088 HAVE_INITFINI_ARRAY_SUPPORT.
4089 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
4091 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
4092 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
4093 Don't check HAVE_AS_SPARC_NOBITS.
4094 Heed SECTION_NOTYPE.
4096 * configure: Regenerate.
4097 * config.in: Regenerate.
4099 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4102 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
4104 2015-11-09 Richard Henderson <rth@redhat.com>
4106 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
4107 __SEG_GS, __SEG_TLS.
4108 (ix86_register_pragmas): Register address spaces __seg_fs,
4109 __seg_gs, __seg_tls.
4110 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
4111 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
4112 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
4113 * config/i386/i386.c (ix86_decompose_address): Likewise.
4114 (ix86_legitimate_address_p): Likewise.
4115 (memory_address_length): Likewise. Check mem address space too.
4116 (ix86_print_operand): Use ix86_print_operand_address_as.
4117 (ix86_print_operand_address_as): Rename from
4118 ix86_print_operand_address, add new addr_space_t parameter.
4119 Validate that either the parameter or the ix86_address segment
4120 is default address space. Handle ADDR_SPACE_SEG_TLS.
4121 (ix86_print_operand_address): New.
4122 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
4123 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
4124 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
4125 (ix86_addr_space_zero_address_valid): New.
4126 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
4127 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
4128 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
4129 * config/i386/predicates.md (address_no_seg_operand): Likewise.
4130 (vsib_address_operand): Likewise.
4131 (address_mpx_no_base_operand): Likewise.
4132 (address_mpx_no_index_operand): Likewise.
4133 * doc/extend.texi (x86 Named Address Spaces): New section.
4135 * config/i386/i386.c (ix86_check_no_addr_space): New.
4136 (decide_alg): Add have_as parameter.
4137 (alg_usable_p): Likewise; disable rep algorithms if set.
4138 (ix86_expand_set_or_movmem): Notice if either MEM has a
4139 non-default address space.
4140 (ix86_expand_strlen): Likewise.
4141 * config/i386/i386.md (strmov, strset): Likewise.
4142 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
4143 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
4144 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
4145 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
4146 *cmpstrnqi_1, *strlenqi_1): Likewise.
4148 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
4149 (*movabs<mode>_2): Likewise.
4151 * dwarf2out.c (modified_type_die): Pass the address space number
4152 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
4153 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
4154 * targhooks.c (default_addr_space_debug): New.
4155 * targhooks.h (default_addr_space_debug): Declare.
4156 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
4157 * doc/tm.texi: Rebuild.
4159 * gimple.c (check_loadstore): Return false when 0 is a valid address.
4160 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
4161 null when 0 is valid in the source address space.
4162 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
4163 * targhooks.c (default_addr_space_zero_address_valid): New.
4164 * targhooks.h (default_addr_space_zero_address_valid): Declare.
4165 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
4166 * doc/tm.texi: Rebuild.
4168 * cselib.c (add_mem_for_addr): Compare address spaces when
4170 (cselib_lookup_mem): Likewise.
4171 * fold-const.c (operand_equal_p): Check address spaces of
4172 pointer types before checking integer constants.
4175 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
4176 the correct type for the base.
4178 2015-11-09 Jeff Law <law@redhat.com>
4180 * tree-into-ssa.c (names_to_release): No longer static.
4181 * tree-into-ssa.h (names_to_release): Declare.
4182 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
4183 (release_free_names_and_compact_live_names): New function extracted
4184 from pass_release_ssa_names::execute.
4185 (pass_release_ssa_names::execute): Use it.
4187 2015-11-09 Alan Modra <amodra@gmail.com>
4189 * gensupport.c (add_mnemonic_string): Make len param a size_t.
4190 (gen_mnemonic_setattr): Make "size" var a size_t. Use
4191 obstack_blank_fast to shrink obstack. Cast obstack_next_free
4194 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
4196 PR rtl-optimization/68182
4197 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
4198 branch with only one successor just like unconditional branches.
4200 2015-11-08 Jeff Law <law@redhat.com>
4202 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
4203 non-FSM path has no edges marked with EDGE_DFS_BACK.
4204 (ssa_redirect_edges): No longer call mark_loop_for_removal.
4205 (thread_single_edge, def_split_header_continue_p): Remove.
4206 (bb_ends_with_multiway_branch): Likewise.
4207 (thread_through_loop_header): Remove cases of threading from
4208 latch through the header. Simplify knowing we won't thread
4210 (thread_through_all_blocks): Simplify knowing that only the FSM
4211 threader needs to handle backedges.
4213 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
4215 * doc/extend.texi (type attributes): Document scalar_storage_order.
4216 (Structure-Packing Pragmas): Rename into...
4217 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
4218 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
4219 (Warnings): Document -Wno-scalar-storage-order.
4220 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
4221 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
4222 extract_bit_field and store_bit_field.
4223 (initialize_argument_information): Adjust call to store_expr.
4224 (load_register_parameters): Adjust call to extract_bit_field.
4225 * expmed.c (check_reverse_storage_order_support): New function.
4226 (check_reverse_float_storage_order_support): Likewise.
4227 (flip_storage_order): Likewise.
4228 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
4229 of the value if it is true. Pass REVERSE to recursive call after
4230 adjusting the target offset.
4231 Do not use extraction or movstrict instruction if REVERSE is true.
4232 Pass REVERSE to store_fixed_bit_field.
4233 (store_bit_field): Add REVERSE parameter and pass to it to above.
4234 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
4235 store_split_bit_field and store_fixed_bit_field_1.
4236 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
4237 order of the value if it is true and adjust the target offset.
4238 (store_split_bit_field): Add REVERSE parameter and pass it to
4239 store_fixed_bit_field. Adjust the target offset if it is true.
4240 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
4241 of the value if it is true. Pass REVERSE to recursive call after
4242 adjusting the target offset.
4243 Do not use extraction or subreg instruction if REVERSE is true.
4244 Pass REVERSE to extract_fixed_bit_field.
4245 (extract_bit_field): Add REVERSE parameter and pass to it to above.
4246 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
4247 extract_split_bit_field and extract_fixed_bit_field_1.
4248 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
4249 order of the value if it is true and adjust the target offset.
4250 (extract_split_bit_field): Add REVERSE parameter and pass it to
4251 extract_fixed_bit_field. Adjust the target offset if it is true.
4252 * expmed.h (flip_storage_order): Declare.
4253 (store_bit_field): Adjust prototype.
4254 (extract_bit_field): Likewise.
4255 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
4256 (emit_group_store): Adjust call to store_bit_field.
4257 (copy_blkmode_from_reg): Likewise.
4258 (copy_blkmode_to_reg): Likewise.
4259 (write_complex_part): Likewise.
4260 (read_complex_part): Likewise.
4261 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
4262 that it isn't true if the target is a register.
4263 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
4264 and flip the storage order of the value.
4265 <BIT_IOR_EXPR>: Flip the storage order of the value.
4266 (get_bit_range): Adjust call to get_inner_reference.
4267 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
4268 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
4269 with reverse storage order.
4270 (store_expr_with_bounds): Add REVERSE parameter and pass it to
4271 recursive calls and call to store_bit_field. Force the value into a
4272 register if it is true and then flip the storage order of the value.
4273 (store_expr): Add REVERSE parameter and pass it to above.
4274 (categorize_ctor_elements_1): Adjust call to
4275 initializer_constant_valid_p.
4276 (store_constructor_field): Add REVERSE parameter and pass it to
4277 recursive calls and call to store_field.
4278 (store_constructor): Add REVERSE parameter and pass it to calls to
4279 store_constructor_field and store_expr. Set it to true for an
4280 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
4281 (store_field): Add REVERSE parameter and pass it to recursive calls
4282 and calls to store_expr and store_bit_field. Temporarily flip the
4283 storage order of the value with record type and integral mode and
4284 adjust the shift if it is true.
4285 (get_inner_reference): Add PREVERSEP parameter and set it to true
4286 upon encoutering a reference with reverse storage order.
4287 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
4288 (expand_constructor): Adjust call to store_constructor.
4289 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
4290 of the union type to store_expr in the MEM case and assert that it
4291 isn't set in the REG case. Adjust call to store_field.
4292 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
4293 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
4294 get_inner_reference and extract_bit_field. Temporarily flip the
4295 storage order of the value with record type and integral mode and
4296 adjust the shift if it is true. Flip the storage order of the value
4297 at the end if it is true.
4298 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
4299 get_inner_reference. Do not fetch an inner reference if it is true.
4300 * expr.h (store_expr_with_bounds): Ajust prototype.
4301 (store_expr): Likewise.
4302 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
4303 REF_REVERSE_STORAGE_ORDER on the reference according to it.
4304 (optimize_bit_field_compare): Deal with reverse storage order.
4305 Adjust calls to get_inner_reference and make_bit_field_ref.
4306 (decode_field_reference): Add PREVERSEP parameter and adjust call to
4307 get_inner_reference.
4308 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
4309 to decode_field_reference and make_bit_field_ref.
4310 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
4311 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
4312 (fold_comparison): Adjust call to get_inner_reference.
4313 (split_address_to_core_and_offset): Adjust call to
4314 get_inner_reference.
4315 * gimple-expr.c (useless_type_conversion_p): Return false for array
4316 types with different TYPE_REVERSE_STORAGE_ORDER flag.
4317 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
4318 REF_REVERSE_STORAGE_ORDER flag.
4319 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
4320 * output.h (assemble_real): Adjust prototype.
4321 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
4322 * stor-layout.c (finish_record_layout): Propagate the
4323 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
4324 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
4325 (TYPE_SATURATING): Adjust.
4326 (REF_REVERSE_STORAGE_ORDER): Document.
4327 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
4328 set it to true upon encoutering a reference with reverse storage order.
4329 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
4330 * tree-inline.c (remap_gimple_op_r): Propagate the
4331 REF_REVERSE_STORAGE_ORDER flag.
4332 (copy_tree_body_r): Likewise.
4333 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
4335 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
4336 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
4337 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4338 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
4339 REF_REVERSE_STORAGE_ORDER flag.
4340 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
4341 (gimple_canonical_types_compatible_p): Likewise.
4342 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
4343 (TYPE_SATURATING): Adjust.
4344 (REF_REVERSE_STORAGE_ORDER): New flag.
4345 (reverse_storage_order_for_component_p): New inline predicate.
4346 (storage_order_barrier_p): Likewise.
4347 (get_inner_reference): Adjust prototype.
4348 * varasm.c: Include expmed.h.
4349 (assemble_variable_contents): Adjust call to output_constant.
4350 (assemble_real): Add REVERSE parameter. Flip the storage
4351 order of the value if REVERSE is true.
4352 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
4353 (assemble_constant_contents): Adjust call to output_constant.
4354 (output_constant_pool_2): Adjust call to assemble_real.
4355 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
4356 TYPE_REVERSE_STORAGE_ORDER.
4357 (initializer_constant_valid_p): Add REVERSE parameter.
4358 (output_constant): Add REVERSE parameter.
4359 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
4360 <REAL_TYPE>: Adjust call to assemble_real.
4361 <COMPLEX_TYPE>: Pass it to recursive calls.
4362 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
4363 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
4364 (struct oc_local_state): Add REVERSE field.
4365 (output_constructor_array_range): Adjust calls to output_constant.
4366 (output_constructor_regular_field): Likewise.
4367 (output_constructor_bitfield): Adjust call to output_constructor.
4368 Flip the storage order of the value if REVERSE is true.
4369 (output_constructor): Add REVERSE parameter. Set it to true for an
4370 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
4371 output_constructor_bitfield.
4372 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
4373 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
4374 * builtins.c (get_object_alignment_2): Likewise.
4375 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
4376 and get_ref_base_and_extent.
4377 * dbxout.c (dbxout_expand_expr): Likewise.
4378 * dwarf2out.c (add_var_loc_to_decl): Likewise.
4379 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
4380 (loc_list_from_tree): Likewise.
4381 (fortran_common): Likewise.
4382 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
4383 get_ref_base_and_extent.
4384 (get_base_constructor): Likewise.
4385 (fold_const_aggregate_ref_1): Likewise.
4386 * gimple-laddress.c (pass_laddress::execute): Adjust call to
4387 get_inner_reference.
4388 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
4389 get_inner_reference and bail out on reverse storage order.
4390 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
4391 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
4392 build_ref_for_offset.
4393 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
4394 get_ref_base_and_extent.
4395 (ipa_polymorphic_call_context): Likewise.
4396 (extr_type_from_vtbl_ptr_store): Likewise.
4397 (check_stmt_for_type_change): Likewise.
4398 (get_dynamic_type): Likewise.
4399 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
4400 get_ref_base_and_extent.
4401 (compute_complex_assign_jump_func): Likewise.
4402 (get_ancestor_addr_info): Likewise.
4403 (compute_known_type_jump_func): Likewise.
4404 (determine_known_aggregate_parts): Likewise.
4405 (ipa_get_adjustment_candidate): Likewise.
4406 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
4407 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
4408 (build_ref_for_offset): Adjust prototype.
4409 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
4410 get_inner_reference.
4411 * tree-affine.c (tree_to_aff_combination): Adjust call to
4412 get_inner_reference.
4413 (get_inner_reference_aff): Likewise.
4414 * tree-data-ref.c (split_constant_offset_1): Likewise.
4415 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
4416 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
4417 get_inner_reference.
4418 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
4419 (dump_access): Print new fields.
4420 (create_access): Adjust call to get_ref_base_and_extent and set the
4421 REVERSE flag according to the result.
4422 (completely_scalarize_record): Set the REVERSE flag.
4423 (scalarize_elem): Add REVERSE parameter.
4424 (build_access_from_expr_1): Preserve storage order barriers.
4425 (build_accesses_from_assign): Likewise.
4426 (build_ref_for_offset): Add REVERSE parameter and set the
4427 REF_REVERSE_STORAGE_ORDER flag accordingly.
4428 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
4429 the REF_REVERSE_STORAGE_ORDER flag if there are components.
4430 (analyze_access_subtree): Likewise.
4431 (create_artificial_child_access): Set the REVERSE flag.
4432 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
4433 (turn_representatives_into_adjustments): Propagate REVERSE flag.
4434 (ipa_sra_check_caller): Adjust call to get_inner_reference.
4435 * tree-ssa-alias.c (ao_ref_base): Adjust call to
4436 get_ref_base_and_extent.
4437 (aliasing_component_refs_p): Likewise.
4438 (stmt_kills_ref_p_1): Likewise.
4439 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4440 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
4441 Return true if reverse storage order.
4442 <BIT_FIELD_REF>: Likewise.
4443 <COMPONENT_REF>: Likewise.
4444 <ARRAY_REF>: Likewise.
4445 <ARRAY_RANGE_REF>: Likewise.
4446 (split_address_cost): Likewise. Bail out if reverse storage order.
4447 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
4448 get_inner_reference. Bail out if reverse storage order.
4449 (bswap_replace): Adjust call to get_inner_reference.
4450 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
4451 the REF_REVERSE_STORAGE_ORDER flag.
4452 <BIT_FIELD_REF>: Likewise.
4453 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
4455 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
4456 to the REF_REVERSE_STORAGE_ORDER flag.
4457 <BIT_FIELD_REF>: Likewise.
4458 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
4459 (contains_storage_order_barrier_p): New predicate.
4460 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
4461 Punt on storage order barriers if necessary.
4462 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
4463 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
4464 call to get_ref_base_and_extent.
4465 (do_structure_copy): Likewise.
4466 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
4467 get_inner_reference.
4468 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
4469 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
4470 * ubsan.c (instrument_bool_enum_load): Likewise.
4471 (instrument_object_size): Likewise.
4472 * var-tracking.c (track_expr_p): Adjust call to
4473 get_ref_base_and_extent.
4474 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
4475 get_inner_reference.
4476 * config/s390/s390.c (s390_expand_atomic): Adjust call to
4478 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
4480 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
4482 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
4484 * config/sparc/sparc.opt (mfix-at697f): Add final period.
4486 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4488 PR rtl-optimization/67864
4489 * common/config/i386/i386-common.c (ix86_option_optimization_table)
4490 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
4493 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4495 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
4498 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4500 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
4501 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
4503 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4505 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
4506 * internal-fn.c: Don't undef it here.
4507 * tree-core.h: Likewise.
4509 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4511 * builtins.c (fold_builtin_nan): Delete.
4512 (fold_builtin_memcmp): Remove case where both arguments are constant.
4513 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
4514 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
4515 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
4516 * fold-const-call.c: Include fold-const.h.
4517 (host_size_t_cst_p): New function.
4518 (build_cmp_result, fold_const_builtin_nan): Likewise.
4519 (fold_const_call_1): New function, split out from...
4520 (fold_const_call): ...here (for all three interfaces). Handle
4521 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
4523 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4525 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
4526 (fold_builtin_1): Don't call them.
4527 * fold-const-call.c: Include tm.h.
4528 (fold_const_call_ss): New variant for integer-to-integer folds.
4529 (fold_const_call): Call it.
4531 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4533 * builtins.c (fold_builtin_classify): Move constant cases to...
4534 * fold-const-call.c (fold_const_call_ss): ...here.
4536 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4538 * builtins.h (c_getstr): Move to...
4539 * fold-const.h (c_getstr): ...here.
4540 * builtins.c (c_getstr): Move to...
4541 * fold-const.c (c_getstr): ...here.
4543 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4545 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
4546 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
4548 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4550 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
4551 the dominance info; free it if we can't.
4552 (pass_call_cdce::execute): Don't free the dominance info here.
4554 2015-11-06 Jeff Law <law@redhat.com>
4556 * tree-ssa-threadedge.c (dummy_simplify): Remove.
4557 (thread_around_empty_blocks): Remove backedge_seen_p argument.
4558 If we thread to a backedge, then return false. Update recursive
4559 call to eliminate backedge_seen_p argument.
4560 (thread_through_normal_block): Remove backedge_seen_p argument.
4561 Remove backedge_seen_p argument from calls to
4562 thread_around_empty_blocks. Remove checks on backedge_seen_p.
4563 If we thread to a backedge, then return 0.
4564 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
4565 pass it to thread_through_normal_block or thread_through_empty_blocks.
4566 For joiner handling, if we see a backedge, do not try normal
4569 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4571 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
4572 * graphite-poly.c (new_scop): Initialize original_schedule.
4573 (free_scop): Free original_schedule.
4574 * graphite-poly.h (struct scop): Add field original_schedule.
4575 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
4576 (build_poly_scop): Call build_scop_original_schedule.
4578 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4580 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
4581 (build_pbb_minimal_scattering_polyhedrons): New.
4582 (build_scop_scattering): Remove.
4583 (build_scop_minimal_scattering): New.
4584 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
4585 (build_poly_scop): Call build_scop_minimal_scattering.
4587 2015-11-06 Jeff Law <law@redhat.com>
4589 * cfg-flags.def (IGNORE): New edge flag.
4590 * tree-vrp.c (identify_jump_threads): Mark and clear edges
4591 scheduled for removal with EDGE_IGNORE around call into
4592 jump threader. Do no thread across edges with EDGE_IGNORE,
4593 but do allow threading across those with EDGE_DFS_BACK.
4595 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
4597 * doc/md.texi (multi-alternative constraints): Don't document
4598 alternatives inherently tied to reload for the user documentation.
4600 2015-11-06 Michael Collison <michael.collison@linaro.org>
4601 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4604 2015-08-01 Michael Collison <michael.collison@linaro.org
4605 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4607 * config/arm/arm.md (*arm_smin_cmp): New pattern.
4608 (*arm_umin_cmp): Likewise.
4610 2015-11-06 Jakub Jelinek <jakub@redhat.com>
4612 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
4613 * omp-low.c (check_omp_nesting_restrictions): Update for the
4614 various new OpenMP 4.5 nesting restrictions, clarified
4615 nesting glossary, closely nested region relationship clarified
4616 to mean explicit or implicit parallel regions (target/teams),
4617 use %</%> or %qs where appropriate.
4619 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4620 Sebastian Pop <s.pop@samsung.com>
4622 * graphite-scop-detection.c (loop_is_valid_scop): Call
4623 optimize_loop_nest_for_speed_p.
4625 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4626 Sebastian Pop <s.pop@samsung.com>
4628 * graphite-optimize-isl.c (optimize_isl): Call
4629 isl_options_set_schedule_maximize_band_depth.
4631 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4632 Sebastian Pop <s.pop@samsung.com>
4634 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
4635 and exit edges should not be a part of irreducible loop.
4636 (scop_detection::can_represent_loop_1): Loops should not be
4638 (scop_detection::harmful_stmt_in_region): All the basic block
4639 should belong to reducible loops.
4641 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
4643 * config/aarch64/aarch64-simd-builtins.def: Update builtins
4644 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
4645 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
4646 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
4647 (aarch64_tbx4v8qi): Rename to...
4648 aarch64_tbx4<mode>): ... this.
4649 (aarch64_qtbl3<mode>): New pattern.
4650 (aarch64_qtbx3<mode>): New pattern.
4651 (aarch64_qtbl4<mode>): New pattern.
4652 (aarch64_qtbx4<mode>): New pattern.
4653 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
4654 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
4655 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
4656 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
4657 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
4658 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
4659 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
4660 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
4663 2015-11-06 Mike Stump <mikestump@comcast.net>
4666 * dwarf2out.c (get_full_len): Return a value based upon the actual
4667 precision needed for the value.
4668 (add_const_value_attribute): Use a maximal wide-int for
4669 CONST_WIDE_INTs, not VOIDmode.
4670 (output_die): Don't ever output NULL with printf.
4672 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
4673 BLKmode nor VOIDmode values.
4675 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4677 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
4679 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
4680 * diagnostic-core.h (warning_at_rich_loc): New declaration.
4681 (error_at_rich_loc): New declaration.
4682 (permerror_at_rich_loc): New declaration.
4683 (inform_at_rich_loc): New declaration.
4684 * diagnostic-show-locus.c (adjust_line): Delete.
4685 (struct point_state): New struct.
4686 (class colorizer): New class.
4687 (class layout_point): New class.
4688 (class layout_range): New class.
4689 (struct line_bounds): New.
4690 (class layout): New class.
4691 (colorizer::colorizer): New ctor.
4692 (colorizer::~colorizer): New dtor.
4693 (layout::layout): New ctor.
4694 (layout::print_source_line): New method.
4695 (layout::print_annotation_line): New method.
4696 (layout::get_state_at_point): New method.
4697 (layout::get_x_bound_for_row): New method.
4698 (diagnostic_show_locus): Reimplement in terms of class layout.
4699 (diagnostic_print_caret_line): Delete.
4700 * diagnostic.c (diagnostic_initialize): Replace
4701 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
4702 (diagnostic_set_info_translated): Convert param from location_t
4703 to rich_location *. Eliminate calls to set_location on the
4704 message in favor of storing the rich_location ptr there.
4705 (diagnostic_set_info): Convert param from location_t to
4707 (diagnostic_build_prefix): Break out array into...
4708 (diagnostic_kind_color): New variable.
4709 (diagnostic_get_color_for_kind): New function.
4710 (diagnostic_report_diagnostic): Colorize the option_text
4711 using the color for the severity.
4712 (diagnostic_append_note): Update for change in signature of
4713 diagnostic_set_info.
4714 (diagnostic_append_note_at_rich_loc): New function.
4715 (emit_diagnostic): Update for change in signature of
4716 diagnostic_set_info.
4718 (inform_at_rich_loc): New function.
4719 (inform_n): Update for change in signature of diagnostic_set_info.
4720 (warning): Likewise.
4721 (warning_at): Likewise.
4722 (warning_at_rich_loc): New function.
4723 (warning_n): Update for change in signature of diagnostic_set_info.
4724 (pedwarn): Likewise.
4725 (permerror): Likewise.
4726 (permerror_at_rich_loc): New function.
4727 (error): Update for change in signature of diagnostic_set_info.
4728 (error_n): Likewise.
4729 (error_at): Likewise.
4730 (error_at_rich_loc): New function.
4731 (sorry): Update for change in signature of diagnostic_set_info.
4732 (fatal_error): Likewise.
4733 (internal_error): Likewise.
4734 (internal_error_no_backtrace): Likewise.
4735 (source_range::debug): New function.
4736 * diagnostic.h (struct diagnostic_info): Eliminate field
4737 "override_column". Add field "richloc".
4738 (struct diagnostic_context): Add field "colorize_source_p".
4739 (diagnostic_override_column): Delete.
4740 (diagnostic_set_info): Convert param from location_t to
4742 (diagnostic_set_info_translated): Likewise.
4743 (diagnostic_append_note_at_rich_loc): New function.
4744 (diagnostic_num_locations): New function.
4745 (diagnostic_expand_location): Get the location from the
4747 (diagnostic_print_caret_line): Delete.
4748 (diagnostic_get_color_for_kind): New declaration.
4749 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
4750 (error_cb): Update for change in signature of "error" callback.
4751 (fatal_at): Likewise.
4752 (warning_at): Likewise.
4753 * input.c (linemap_client_expand_location_to_spelling_point): New.
4754 * pretty-print.c (text_info::set_range): New method.
4755 (text_info::get_location): New method.
4756 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
4757 (struct text_info): Eliminate "locations" array in favor of
4758 "m_richloc", a rich_location *.
4759 (textinfo::set_location): Add a "caret_p" param, and reimplement
4760 in terms of a call to set_range.
4761 (textinfo::get_location): Eliminate inline implementation in favor of
4762 an out-of-line reimplementation.
4763 (textinfo::set_range): New method.
4764 * rtl-error.c (diagnostic_for_asm): Update for change in signature
4765 of diagnostic_set_info.
4766 * tree-diagnostic.c (default_tree_printer): Update for new
4767 "caret_p" param for textinfo::set_location.
4768 * tree-pretty-print.c (percent_K_format): Likewise.
4770 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4773 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4774 * config/aarch64/aarch64.c
4775 (aarch64_can_use_per_function_literal_pools_p): New.
4776 (aarch64_use_blocks_for_constant_p): Adjust declaration
4777 and use aarch64_can_use_function_literal_pools_p.
4778 (aarch64_select_rtx_section): Update.
4780 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4782 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
4783 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
4784 (arm_output_multireg_pop): Likewise.
4785 (output_move_double): Likewise.
4786 (output_move_quad): Likewise.
4787 (output_return_instruction): Likewise.
4788 (arm_print_operand): Remove support for %( and %. print modifiers.
4789 (arm_output_shift): Make unified asm.
4790 (arm_declare_function_name): Likewise.
4791 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
4792 (ASM_APP_OFF): Adjust.
4793 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
4794 (ASM_OUTPUT_REG_POP): Likewise.
4795 * config/arm/arm.md: Adjust uses of %., %(, %)
4796 * config/arm/sync.md: Likewise.
4797 * config/arm/thumb2.md: Likewise.
4798 * config/arm/ldmstm.md: Regenerate.
4799 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
4800 * doc/invoke.texi (masm-unified-syntax): Update documentation.
4802 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4804 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
4806 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4808 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
4809 add OEP_MATCH_SIDE_EFFECTS.
4810 * fold-const.c (operand_equal_p): Update documentation; handle
4811 OEP_MATCH_SIDE_EFFECTS.
4812 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
4813 OEP_MATCH_SIDE_EFFECTS.
4815 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
4816 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4818 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
4819 * config/aarch64/aarch64-protos.h: Declare.
4820 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
4822 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
4823 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
4824 code when applicable.
4825 * config/aarch64/aarch64.md: Added enum entries.
4826 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
4828 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4832 * ipa-polymorphic-call.c
4833 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
4834 issue when offset is out of range.
4835 (contains_type_p): Fix out of range check, clear dynamic flag.
4837 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
4839 * config.gcc (e6500): Fix cpu_is_64bit typo.
4841 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
4843 * tree-sra.c (completely_scalarize): Properly handle negative array
4844 indices using offset_int.
4846 2015-11-06 Richard Biener <rguenther@suse.de>
4848 * alloc-pool.h (object_allocator::allocate): Default-initialize
4851 2015-11-06 Richard Biener <rguenther@suse.de>
4853 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
4854 * lra.c (init_reg_info): Truncate copy_vec instead of
4855 re-allocating a new one and leaking the old.
4856 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
4858 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
4859 * postreload-gcse.c (free_mem): Free modify_mem_list and
4860 canon_modify_mem_list.
4862 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
4864 PR tree-optimization/68145
4865 * tree-vect-stmts.c (vectorizable_operation): Fix
4866 determination for booleans.
4868 2015-11-06 Tom de Vries <tom@codesourcery.com>
4870 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
4871 cond_jump, instead of split after last nondebug insn before cond_jump.
4872 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
4875 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4878 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
4879 subregs from accumulator and make sure it's a register.
4881 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
4883 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
4885 (reduc_uplus_<mode>): Remove.
4886 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
4887 loongson_extract_lo_<mode>.
4888 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
4889 reduc_smax_<mode>, reduc_smax_<mode>, use vec
4890 loongson_extract_lo_<mode>.
4891 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
4893 2015-11-06 Richard Biener <rguenther@suse.de>
4895 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
4897 (vect_stmt_in_region_p): Declare.
4898 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
4899 (destroy_bb_vec_info): Likewise.
4900 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
4901 (vect_get_and_check_slp_defs): Likewise.
4902 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
4903 (vect_slp_bb): Likewise.
4904 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
4905 in terms of vect_stmt_in_region_p.
4906 (vect_pattern_recog): Iterate over the BB region.
4907 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
4908 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
4909 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
4910 * config/i386/i386.c: Include gimple-iterator.h.
4911 * config/aarch64/aarch64.c: Likewise.
4913 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
4915 PR rtl-optimization/67753
4916 PR rtl-optimization/64164
4917 * function.c (assign_parm_setup_block): Avoid allocating a
4918 stack slot if we don't have an ABI-reserved one. Emit the
4919 copy to target_reg in the conversion seq if the copy from
4920 entry_parm is in it too. Don't use the conversion seq to copy
4921 a PARALLEL to a REG or a CONCAT.
4923 2015-11-06 Richard Biener <rguenther@suse.de>
4925 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
4928 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
4929 Thomas Schwinge <thomas@codesourcery.com>
4930 James Norris <jnorris@codesourcery.com>
4933 * gimplify.c (gimplify_scan_omp_clauses): Add support for
4934 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
4935 (gimplify_adjust_omp_clauses): Likewise.
4936 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
4937 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
4938 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
4939 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
4940 (omp_clause_code_name): Likewise.
4941 (walk_tree_1): Handle OMP_CLAUSE_TILE.
4942 * tree.h (OMP_TILE_LIST): New macro.
4944 2015-11-05 Martin Sebor <msebor@redhat.com>
4947 * doc/invoke.texi (-Wplacement-new): Document new option.
4949 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
4951 PR tree-optimization/65963
4952 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
4953 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
4955 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
4957 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
4958 (noce_convert_multiple_sets): Likewise.
4959 (noce_process_if_block): Call them.
4961 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
4963 * gimple-fold.c: Include omp-low.h.
4964 (fold_internal_goacc_dim): New.
4965 (gimple_fold_call): Call it.
4967 2015-11-05 Jakub Jelinek <jakub@redhat.com>
4968 Ilya Verbin <ilya.verbin@intel.com>
4971 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
4972 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
4973 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
4974 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
4975 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
4976 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
4977 (struct cgraph_simd_clone_arg): Adjust comment.
4978 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
4979 to GOMP_target_ext. Add num_teams and thread_limit arguments.
4980 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
4981 to GOMP_target_data_ext.
4982 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
4983 to GOMP_target_update_ext.
4984 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
4985 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
4986 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
4987 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
4988 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
4989 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
4990 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
4991 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
4992 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
4993 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
4994 * tree-core.h (enum omp_clause_schedule_kind): Add
4995 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
4996 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
4997 OMP_CLAUSE_SCHEDULE_LAST value.
4998 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
4999 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
5000 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
5001 OMP_FOR_CHECK. Remove comment.
5002 * tree-pretty-print.c (dump_omp_clause): Handle
5003 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
5004 Simplify. Print schedule clause modifiers.
5005 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
5006 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
5008 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
5009 (omp_default_clause): Tweak for
5010 private/firstprivate/is_device_ptr variables on target
5011 construct and use_device_ptr on target data.
5012 (omp_check_private): Likewise.
5013 (omp_notice_variable): For references check whether what it refers
5014 to has mappable type, rather than the reference itself.
5015 (omp_is_private): Diagnose linear iteration variables on non-simd
5017 (omp_no_lastprivate): Return true only for Fortran.
5018 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
5019 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
5020 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
5021 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
5022 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
5023 lastprivate and linear when combined with distribute. Gimplify
5024 variable low-bound for array reduction. Look through
5025 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
5027 (gimplify_adjust_omp_clauses_1): For implicit references to
5028 variables with reference type and when not ref to scalar or
5029 ref to pointer, map what they refer to using tofrom and
5030 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
5031 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
5032 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
5033 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
5034 Diagnose the same var on both firstprivate and lastprivate on
5035 distribute construct.
5036 (gimplify_omp_for): Fix up handling of predetermined
5037 lastprivate or linear iter vars when combined with distribute.
5038 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
5040 (gimplify_omp_workshare): Call optimize_target_teams.
5041 * omp-low.c (struct omp_region): Add sched_modifiers field.
5042 (struct omp_for_data): Likewise.
5043 (omp_any_child_fn_dumped): New variable.
5044 (extract_omp_for_data): Fill in sched_modifiers, and mask out
5045 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
5047 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
5048 bits of OMP_CLAUSE_SCHED_KIND.
5049 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
5050 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
5051 for array section reductions.
5052 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
5053 for distribute parallel for, if there are lastprivate clauses on the
5055 (lower_rec_input_clauses): Handle non-zero low-bound on array
5057 (lower_reduction_clauses): Likewise.
5058 (lower_send_clauses): Look through POINTER_PLUS_EXPR
5059 for array section reductions.
5060 (expand_parallel_call): Use nonmonotonic entrypoints for
5061 nonmonotonic: dynamic/guided.
5062 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
5063 child_fn if current_function_decl has assembler name set, but child_fn
5064 does not. Dump the header and IL of the child function when not in SSA
5066 (expand_omp_target): Likewise. Pass num_teams and thread_limit
5067 arguments to BUILT_IN_GOMP_TARGET.
5068 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5069 Initialize the extra _looptemp_ clause to fd->loop.n2.
5070 (expand_omp_for): Use nonmonotonic entrypoints for
5071 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
5072 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
5073 again if we have dumped any child functions.
5074 (lower_omp_for_lastprivate): Determine the right count variable
5075 for distribute simd, or distribute parallel for{, simd}.
5076 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
5077 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
5079 (simd_clone_clauses_extract): Handle variable step
5080 for references and arguments passed by reference.
5081 (simd_clone_mangle): Mangle ref/uval/val variable steps.
5082 (simd_clone_adjust_argument_types): Handle
5083 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
5084 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
5085 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
5086 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
5087 (simd_clone_linear_addend): New function.
5088 (simd_clone_adjust): Handle variable step like similarly
5089 to constant step, use simd_clone_linear_addend to determine
5090 the actual step at runtime.
5092 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
5094 * target.def (goacc.dim_limit): New hook.
5095 * targhooks.h (default_goacc_dim_limit): Declare.
5096 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
5097 * doc/tm.texi: Rebuilt.
5098 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
5099 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
5100 (default_goacc_dim_limit): New.
5101 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5102 (nvptx_goacc_dim_limit) New.
5103 (TARGET_GOACC_DIM_LIMIT): Override.
5104 * tree-vrp.c: Include omp-low.h, target.h.
5105 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
5108 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
5110 * tree-vect-generic.c (do_compare): Use -1 for true
5111 result instead of 1.
5113 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5115 * config/aarch64/aarch64.c
5116 (aarch64_can_use_per_function_literal_pools_p): New.
5117 (aarch64_use_blocks_for_constant_p): Adjust declaration
5118 and use aarch64_can_use_function_literal_pools_p.
5119 (aarch64_select_rtx_section): Update.
5121 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
5123 * targhooks.c (default_get_mask_mode): Use BLKmode in
5124 case target doesn't support required vector mode.
5125 * stor-layout.c (layout_type); Check for BLKmode.
5127 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
5128 Sebastian Pop <s.pop@samsung.com>
5130 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5131 Remove use of parameter_rename_map.
5133 (copy_internal_parameters): Remove.
5134 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
5135 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
5136 (free_sese_info): Do not free parameter_rename_map.
5137 (set_rename): Do not use parameter_rename_map.
5138 (rename_uses): Update call to set_rename.
5139 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
5140 * sese.h (parameter_rename_map_t): Remove.
5141 (struct sese_info_t): Remove field parameter_rename_map.
5143 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
5144 Sebastian Pop <s.pop@samsung.com>
5146 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
5147 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
5148 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
5149 anonymous namespace.
5150 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
5151 (isl_id_for_pbb): Use a buffer of size 10.
5152 (isl_id_for_ssa_name): Same.
5153 * sese.c (set_rename): Add more dumps.
5155 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5157 * omp-low.c (struct omp_context): Remove reduction_map field.
5158 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
5159 (new_omp_context, delete_omp_context, scan_omp_target): Remove
5160 reduction_map handling.
5161 (lower_omp_target): Remove obsolete openacc reduction handling.
5163 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5165 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
5167 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5168 Cesar Philippidis <cesar@codesourcery.com>
5170 * config/nvptx/nvptx.c: Include gimple headers.
5171 (worker_red_size, worker_red_align, worker_red_name,
5172 worker_red_sym): New.
5173 (nvptx_option_override): Initialize worker reduction buffer.
5174 (nvptx_file_end): Write out worker reduction buffer var.
5175 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
5176 nvptx_expand_cmp_swap): New builtin expanders.
5177 (enum nvptx_builtins): New.
5178 (nvptx_builtin_decls): New.
5179 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
5180 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5181 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
5182 nvptx_lockless_update): New helpers.
5183 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
5184 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
5185 (nvptx_goacc_reduction): New.
5186 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
5187 TARGET_BUILTIN_DECL): Override.
5188 (TARGET_GOACC_REDUCTION): Override.
5190 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5191 Cesar Philippidis <cesar@codesourcery.com>
5193 * internal-fn.def (GOACC_REDUCTION): New.
5194 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
5195 * internal-fn.c (expand_GOACC_REDUCTION): New.
5196 * target.def (goacc.reduction): New OpenACC hook.
5197 * targhooks.h (default_goacc_reduction): Declare.
5198 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
5199 * doc/tm.texi: Rebuilt.
5200 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
5201 scan_sharing_clauses): Remove oacc reduction handling here.
5202 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
5203 (oacc_lower_reduction_var_helper): Delete.
5204 (lower_oacc_reductions): New.
5205 (lower_reduction_clauses): Don't handle OpenACC reductions here.
5206 (lower_oacc_head_tail): Call lower_oacc_reductions.
5207 (oacc_gimple_assign, oacc_init_reduction_array,
5208 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
5209 oacc_process_reduction_data): Delete.
5210 (lower_omp_target): Remove old OpenACC reduction handling. Insert
5211 dummy OpenACC gang reduction for reductions at outer level.
5212 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
5213 (default_goacc_reduction): New.
5214 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
5216 2015-11-04 Martin Liska <mliska@suse.cz>
5218 * cgraphunit.c (cgraph_node::expand_thunk): Call
5219 allocate_struct_function before init_function_start.
5220 (cgraph_node::expand): Use push_cfun and pop_cfun.
5221 * config/i386/i386.c (ix86_code_end): Call
5222 allocate_struct_function before init_function_start.
5223 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
5224 * function.c (init_function_start): Move preamble to all
5226 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
5227 (execute_one_pass): Handle newly added TODO_discard_function.
5228 (execute_pass_list_1): Terminate if cfun equals to NULL.
5229 (execute_pass_list): Do not push and pop cfun, expect that
5231 * tree-pass.h (TODO_discard_function): Define.
5233 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
5235 * cfganal.c (inverted_post_order_compute): Remove conditional
5236 compilation, use flag_checking.
5237 * config.in: Regenerate.
5238 * configure: Regenerate.
5239 * configure.ac: Remove ENABLE_CHECKING.
5240 * genconditions.c: Do not #undef ENABLE_CHECKING.
5241 * sese.h (bb_in_region): Comment out broken check.
5242 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
5243 conditional compilation, use flag_checking.
5245 2015-11-04 Tom de Vries <tom@codesourcery.com>
5247 PR tree-optimization/67742
5248 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
5250 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
5251 (create_variable_info_for_1): Add and handle handle_param parameter.
5252 Add restrict handling.
5253 (create_variable_info_for): Call create_variable_info_for_1 with extra
5255 (make_param_constraints): Drop restrict_name parameter. Ignore
5256 vi->only_restrict_pointers.
5257 (intra_create_variable_infos): Call create_variable_info_for_1 with
5258 extra arg. Remove restrict handling. Call make_param_constraints with
5261 2015-11-04 Tom de Vries <tom@codesourcery.com>
5263 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
5266 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5268 * config/arm/coff.h: Remove.
5270 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
5272 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
5273 check for aggregate types and beef up comment for mode check.
5275 2015-11-03 Richard Biener <rguenther@suse.de>
5277 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
5278 data references here.
5279 * tree-vect-loop.c: Include cgraph.h.
5280 (vect_analyze_loop_2): Collect data references here.
5281 * tree-vect-slp.c (find_bb_location): Inline ...
5282 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
5283 Factor in vect_slp_transform_bb.
5284 (vect_slp_transform_bb): Removed.
5285 (vect_slp_analyze_bb_1): Collect data references here.
5286 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
5288 * tree-vectorizer.h (vect_slp_bb): Declare.
5289 (vect_slp_analyze_bb): Remove.
5290 (vect_slp_transform_bb): Remove.
5291 (find_bb_location): Remove.
5292 (vect_analyze_data_refs): Remove stmt count reference parameter.
5294 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
5296 * multiple_target.c (create_dispatcher_calls): Add target check
5298 (create_target_clone): Change assembler name for versioned declarations.
5300 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
5301 Chung-Lin Tang <cltang@codesourcery.com>
5303 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
5304 * omp-low.c (check_omp_nesting_restrictions): Allow
5305 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
5308 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
5310 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
5311 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
5312 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
5314 (vmulxq_f32): Likewise.
5316 (vmulxq_f64): Rewrite to call fmulx builtin.
5317 (vmulxs_f32): Likewise.
5318 (vmulxd_f64): Likewise.
5319 (vmulx_lane_f32): Remove.
5320 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
5322 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
5324 * config/aarch64/aarch64.md (*movhf_aarch64): Use
5325 aarch64_reg_or_fp_zero for second operand.
5327 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
5329 * gimple-expr.c: Include hash-set.h and rtl.h.
5330 (mark_addressable_queue): New var.
5331 (mark_addressable): Factor actual marking into...
5332 (mark_addressable_1): ... this. Queue it up during expand.
5333 (mark_addressable_2): New.
5334 (flush_mark_addressable_queue): New.
5335 * gimple-expr.h (flush_mark_addressable_queue): Declare.
5336 * cfgexpand.c: Include gimple-expr.h.
5337 (pass_expand::execute): Flush mark_addressable queue.
5339 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
5341 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
5342 bb_no_side_effects_p tests...
5343 (tree_ssa_ifcombine_bb): ... here.
5345 PR tree-optimization/68083
5346 * tree-ssa-ifcombine.c: Include tree-ssa.h.
5347 (bb_no_side_effects_p): Test for undefined uses too.
5348 * tree-ssa.c (gimple_uses_undefined_value_p): New.
5349 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
5351 2015-11-02 Jeff Law <law@redhat.com>
5353 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
5354 cases where the loop latch edge is in the middle of an FSM path.
5356 2015-11-03 Tom de Vries <tom@codesourcery.com>
5358 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
5359 (make_param_constraints): ... this. Add and handle restrict_name
5360 parameter. Handle is_full_var case.
5361 (intra_create_variable_infos): Use make_param_constraints.
5363 2015-11-03 Tom de Vries <tom@codesourcery.com>
5365 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
5366 make_copy_constraint call with make_constraint_from call.
5368 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
5370 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
5373 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
5375 * builtins.h (fold_fma): Move to fold-const-call.h.
5376 * builtins.c: Include fold-const-call.h.
5377 (mathfn_built_in_2): New function, split out from...
5378 (mathfn_built_in_1): ...here.
5379 (do_real_to_int_conversion, fold_const_builtin_pow)
5380 (fold_const_builtin_logb, fold_const_builtin_significand)
5381 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
5382 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
5383 (fold_builtin_sincos): Use fold_const_call to handle constants.
5384 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
5385 checks for ERROR_MARK. Use fold_const_call to handle constant
5386 folds for math functions.
5387 (fold_fma): Move to fold-const-call.c.
5388 * fold-const.c: Include fold-const-call.h.
5389 * Makefile.in (OBJS): Add fold-const-call.o.
5390 (PLUGIN_HEADERS): Add fold-const-call.h.
5391 * realmpfr.h (real_from_mpfr): Allow the format to be specified
5393 * realmpfr.c (real_from_mpfr): Likewise.
5394 * fold-const-call.h, fold-const-call.c: New files.
5396 2015-11-02 Julian Brown <julian@codesourcery.com>
5398 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
5399 brackets and semicolon.
5401 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
5404 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
5406 PR tree-optimization/65963
5407 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
5408 LSHIFT_EXPRs as equivalent MULT_EXPRs.
5410 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
5413 * fold-const.c: Include "md5.h".
5415 2015-11-01 Jeff Law <law@redhat.com>
5417 * vmsdbgout.c: Revert unused header file reduction patch.
5419 * config/mcore/mcore.c: Include regs.h.
5421 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
5423 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
5425 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
5427 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
5428 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
5429 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
5431 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
5433 * ggc-common.c: Restore needed header for checking=release.
5435 2015-10-31 Tom de Vries <tom@codesourcery.com>
5437 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
5439 2015-10-31 Tom de Vries <tom@codesourcery.com>
5441 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
5442 existing varinfo for arguments.
5444 2015-10-31 Tom de Vries <tom@codesourcery.com>
5446 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
5447 create_function_info_for. Dump constraints generated during
5448 create_function_info_for. Move intra_create_variable_infos call and
5449 function-return-values-escape bit to ...
5450 (create_function_info_for): ... here, and merge
5451 intra_create_variable_infos call with argument loop. Add and handle
5452 nonlocal_p parameter.
5454 2015-10-31 Tom de Vries <tom@codesourcery.com>
5456 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
5457 updating is alap, and seperated from preceding code. Make sure
5458 insert_vi_for_tree is seperated from surrounding code.
5460 2015-10-31 Tom de Vries <tom@codesourcery.com>
5462 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
5464 2015-10-30 Jeff Law <law@redhat.com>
5465 Nathan Sidwell <nathan@acm.org>
5467 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
5469 (MOVE_MAX): Set to 8.
5471 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
5473 * cgraph.c: Include context.h for offloading.
5474 * varpool.c: Include context.h and omp-low.h.
5476 2015-10-30 Anatoly Sokolov <aesok@post.ru>
5478 * rtl.h (contains_symbol_ref_p): Declare.
5479 (SYMBOL_REF_P): Define.
5480 * rtlanal.c (contains_symbol_ref_p: New function.
5481 * lra-constraints.c (contains_symbol_ref_p): Remove.
5482 * var-tracking.c (contains_symbol_ref): Remove.
5483 (track_expr_p): Use contains_symbol_ref_p instead of
5484 contains_symbol_ref.
5486 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
5488 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
5489 * fold-const.c (get_array_ctor_element_at_index): New.
5490 (fold): Remove binary-search through CONSTRUCTOR, call previous.
5492 * fold-const.h (get_array_ctor_element_at_index): New.
5494 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
5496 * Makefile.in (OBJS): Add multiple_target.o.
5497 * attrib.c (make_attribute): Moved from config/i386/i386.c
5498 * config/i386/i386.c (make_attribute): Deleted.
5499 * multiple_target.c (create_dispatcher_calls): New.
5500 (get_attr_len): Ditto.
5501 (get_attr_str): Ditto.
5502 (separate_attrs): Ditto.
5503 (is_valid_asm_symbol): Ditto.
5504 (create_new_asm_name): Ditto.
5505 (create_target_clone): Ditto.
5506 (expand_target_clones): Ditto.
5507 (ipa_target_clone): Ditto.
5508 (ipa_dispatcher_calls): Ditto.
5509 * passes.def (pass_target_clone): Two new ipa passes.
5510 * tree-pass.h (make_pass_target_clone): Ditto.
5511 * doc/extend.texi (target_clones): New attribute description.
5513 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
5515 PR rtl-optimization/68106
5516 * lra-remat.c (input_regno_present_p): Process hard regs
5517 explicitly present in machine description insns.
5518 (call_used_input_regno_present_p): Ditto.
5519 (calculate_gen_cands): Ditto.
5522 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
5524 * config/arm/neon-testgen.ml: Fix comment typo.
5526 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5528 * rtlanal.c (reg_set_p): Expand function comment.
5530 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
5532 * alias.c: Remove unused headers.
5534 * attribs.c: Likewise.
5535 * auto-inc-dec.c: Likewise.
5536 * auto-profile.c: Likewise.
5537 * bb-reorder.c: Likewise.
5538 * bitmap.c: Likewise.
5539 * bt-load.c: Likewise.
5540 * builtins.c: Likewise.
5541 * caller-save.c: Likewise.
5542 * calls.c: Likewise.
5545 * cfganal.c: Likewise.
5546 * cfgbuild.c: Likewise.
5547 * cfgcleanup.c: Likewise.
5548 * cfgexpand.c: Likewise.
5549 * cfghooks.c: Likewise.
5550 * cfgloop.c: Likewise.
5551 * cfgloopanal.c: Likewise.
5552 * cfgloopmanip.c: Likewise.
5553 * cfgrtl.c: Likewise.
5554 * cgraph.c: Likewise.
5555 * cgraphbuild.c: Likewise.
5556 * cgraphclones.c: Likewise.
5557 * cgraphunit.c: Likewise.
5558 * cilk-common.c: Likewise.
5559 * combine-stack-adj.c: Likewise.
5560 * combine.c: Likewise.
5561 * compare-elim.c: Likewise.
5562 * convert.c: Likewise.
5563 * coverage.c: Likewise.
5564 * cppbuiltin.c: Likewise.
5565 * cprop.c: Likewise.
5567 * cselib.c: Likewise.
5568 * data-streamer-in.c: Likewise.
5569 * data-streamer-out.c: Likewise.
5570 * data-streamer.c: Likewise.
5571 * dbxout.c: Likewise.
5574 * debug.c: Likewise.
5575 * df-core.c: Likewise.
5576 * df-problems.c: Likewise.
5577 * df-scan.c: Likewise.
5579 * dojump.c: Likewise.
5580 * dominance.c: Likewise.
5581 * domwalk.c: Likewise.
5582 * double-int.c: Likewise.
5584 * dumpfile.c: Likewise.
5585 * dwarf2asm.c: Likewise.
5586 * dwarf2cfi.c: Likewise.
5587 * dwarf2out.c: Likewise.
5588 * emit-rtl.c: Likewise.
5589 * except.c: Likewise.
5590 * explow.c: Likewise.
5591 * expmed.c: Likewise.
5593 * final.c: Likewise.
5594 * fixed-value.c: Likewise.
5595 * fold-const.c: Likewise.
5596 * function.c: Likewise.
5597 * fwprop.c: Likewise.
5599 * generic-match-head.c: Likewise.
5600 * ggc-common.c: Likewise.
5601 * gimple-builder.c: Likewise.
5602 * gimple-expr.c: Likewise.
5603 * gimple-fold.c: Likewise.
5604 * gimple-iterator.c: Likewise.
5605 * gimple-low.c: Likewise.
5606 * gimple-match-head.c: Likewise.
5607 * gimple-pretty-print.c: Likewise.
5608 * gimple-ssa-isolate-paths.c: Likewise.
5609 * gimple-ssa-strength-reduction.c: Likewise.
5610 * gimple-streamer-in.c: Likewise.
5611 * gimple-streamer-out.c: Likewise.
5612 * gimple-walk.c: Likewise.
5613 * gimple.c: Likewise.
5614 * gimplify-me.c: Likewise.
5615 * gimplify.c: Likewise.
5616 * godump.c: Likewise.
5617 * graph.c: Likewise.
5618 * graphds.c: Likewise.
5619 * haifa-sched.c: Likewise.
5620 * hw-doloop.c: Likewise.
5621 * ifcvt.c: Likewise.
5622 * init-regs.c: Likewise.
5623 * internal-fn.c: Likewise.
5624 * ipa-chkp.c: Likewise.
5625 * ipa-comdats.c: Likewise.
5626 * ipa-cp.c: Likewise.
5627 * ipa-devirt.c: Likewise.
5628 * ipa-icf-gimple.c: Likewise.
5629 * ipa-icf.c: Likewise.
5630 * ipa-inline-analysis.c: Likewise.
5631 * ipa-inline-transform.c: Likewise.
5632 * ipa-inline.c: Likewise.
5633 * ipa-polymorphic-call.c: Likewise.
5634 * ipa-profile.c: Likewise.
5635 * ipa-prop.c: Likewise.
5636 * ipa-pure-const.c: Likewise.
5637 * ipa-ref.c: Likewise.
5638 * ipa-reference.c: Likewise.
5639 * ipa-split.c: Likewise.
5640 * ipa-utils.c: Likewise.
5641 * ipa-visibility.c: Likewise.
5643 * ira-build.c: Likewise.
5644 * ira-color.c: Likewise.
5645 * ira-conflicts.c: Likewise.
5646 * ira-costs.c: Likewise.
5647 * ira-emit.c: Likewise.
5648 * ira-lives.c: Likewise.
5651 * langhooks.c: Likewise.
5653 * lists.c: Likewise.
5654 * loop-doloop.c: Likewise.
5655 * loop-init.c: Likewise.
5656 * loop-invariant.c: Likewise.
5657 * loop-iv.c: Likewise.
5658 * loop-unroll.c: Likewise.
5659 * lower-subreg.c: Likewise.
5660 * lra-assigns.c: Likewise.
5661 * lra-coalesce.c: Likewise.
5662 * lra-constraints.c: Likewise.
5663 * lra-eliminations.c: Likewise.
5664 * lra-lives.c: Likewise.
5665 * lra-remat.c: Likewise.
5666 * lra-spills.c: Likewise.
5668 * lto-cgraph.c: Likewise.
5669 * lto-compress.c: Likewise.
5670 * lto-opts.c: Likewise.
5671 * lto-section-in.c: Likewise.
5672 * lto-section-out.c: Likewise.
5673 * lto-streamer-in.c: Likewise.
5674 * lto-streamer-out.c: Likewise.
5675 * lto-streamer.c: Likewise.
5677 * mode-switching.c: Likewise.
5678 * modulo-sched.c: Likewise.
5679 * optabs.c: Likewise.
5680 * opts-global.c: Likewise.
5681 * passes.c: Likewise.
5682 * plugin.c: Likewise.
5683 * postreload-gcse.c: Likewise.
5684 * postreload.c: Likewise.
5685 * predict.c: Likewise.
5686 * print-tree.c: Likewise.
5687 * profile.c: Likewise.
5689 * realmpfr.c: Likewise.
5690 * recog.c: Likewise.
5692 * reg-stack.c: Likewise.
5693 * regcprop.c: Likewise.
5694 * reginfo.c: Likewise.
5695 * regrename.c: Likewise.
5696 * regstat.c: Likewise.
5697 * reload.c: Likewise.
5698 * reload1.c: Likewise.
5699 * reorg.c: Likewise.
5700 * resource.c: Likewise.
5701 * rtl-chkp.c: Likewise.
5702 * rtl-error.c: Likewise.
5703 * rtlanal.c: Likewise.
5704 * rtlhooks.c: Likewise.
5705 * sanopt.c: Likewise.
5706 * sched-deps.c: Likewise.
5707 * sched-ebb.c: Likewise.
5708 * sched-rgn.c: Likewise.
5709 * sdbout.c: Likewise.
5710 * sel-sched-dump.c: Likewise.
5711 * sel-sched-ir.c: Likewise.
5712 * sel-sched.c: Likewise.
5714 * shrink-wrap.c: Likewise.
5715 * simplify-rtx.c: Likewise.
5716 * stack-ptr-mod.c: Likewise.
5717 * statistics.c: Likewise.
5719 * stor-layout.c: Likewise.
5720 * store-motion.c: Likewise.
5721 * stringpool.c: Likewise.
5722 * symtab.c: Likewise.
5723 * target-globals.c: Likewise.
5724 * targhooks.c: Likewise.
5725 * toplev.c: Likewise.
5726 * tracer.c: Likewise.
5727 * trans-mem.c: Likewise.
5728 * tree-affine.c: Likewise.
5729 * tree-call-cdce.c: Likewise.
5730 * tree-cfg.c: Likewise.
5731 * tree-cfgcleanup.c: Likewise.
5732 * tree-chkp-opt.c: Likewise.
5733 * tree-chkp.c: Likewise.
5734 * tree-chrec.c: Likewise.
5735 * tree-complex.c: Likewise.
5736 * tree-data-ref.c: Likewise.
5737 * tree-dfa.c: Likewise.
5738 * tree-diagnostic.c: Likewise.
5739 * tree-dump.c: Likewise.
5740 * tree-eh.c: Likewise.
5741 * tree-emutls.c: Likewise.
5742 * tree-if-conv.c: Likewise.
5743 * tree-inline.c: Likewise.
5744 * tree-into-ssa.c: Likewise.
5745 * tree-iterator.c: Likewise.
5746 * tree-loop-distribution.c: Likewise.
5747 * tree-nested.c: Likewise.
5748 * tree-nrv.c: Likewise.
5749 * tree-object-size.c: Likewise.
5750 * tree-outof-ssa.c: Likewise.
5751 * tree-parloops.c: Likewise.
5752 * tree-phinodes.c: Likewise.
5753 * tree-predcom.c: Likewise.
5754 * tree-pretty-print.c: Likewise.
5755 * tree-profile.c: Likewise.
5756 * tree-scalar-evolution.c: Likewise.
5757 * tree-sra.c: Likewise.
5758 * tree-ssa-address.c: Likewise.
5759 * tree-ssa-alias.c: Likewise.
5760 * tree-ssa-ccp.c: Likewise.
5761 * tree-ssa-coalesce.c: Likewise.
5762 * tree-ssa-copy.c: Likewise.
5763 * tree-ssa-dce.c: Likewise.
5764 * tree-ssa-dse.c: Likewise.
5765 * tree-ssa-forwprop.c: Likewise.
5766 * tree-ssa-ifcombine.c: Likewise.
5767 * tree-ssa-live.c: Likewise.
5768 * tree-ssa-loop-ch.c: Likewise.
5769 * tree-ssa-loop-im.c: Likewise.
5770 * tree-ssa-loop-ivcanon.c: Likewise.
5771 * tree-ssa-loop-ivopts.c: Likewise.
5772 * tree-ssa-loop-manip.c: Likewise.
5773 * tree-ssa-loop-niter.c: Likewise.
5774 * tree-ssa-loop-prefetch.c: Likewise.
5775 * tree-ssa-loop-unswitch.c: Likewise.
5776 * tree-ssa-loop.c: Likewise.
5777 * tree-ssa-math-opts.c: Likewise.
5778 * tree-ssa-operands.c: Likewise.
5779 * tree-ssa-phiopt.c: Likewise.
5780 * tree-ssa-phiprop.c: Likewise.
5781 * tree-ssa-pre.c: Likewise.
5782 * tree-ssa-propagate.c: Likewise.
5783 * tree-ssa-reassoc.c: Likewise.
5784 * tree-ssa-scopedtables.c: Likewise.
5785 * tree-ssa-sink.c: Likewise.
5786 * tree-ssa-strlen.c: Likewise.
5787 * tree-ssa-structalias.c: Likewise.
5788 * tree-ssa-tail-merge.c: Likewise.
5789 * tree-ssa-ter.c: Likewise.
5790 * tree-ssa-threadupdate.c: Likewise.
5791 * tree-ssa-uncprop.c: Likewise.
5792 * tree-ssa-uninit.c: Likewise.
5793 * tree-ssa.c: Likewise.
5794 * tree-ssanames.c: Likewise.
5795 * tree-stdarg.c: Likewise.
5796 * tree-streamer-in.c: Likewise.
5797 * tree-streamer-out.c: Likewise.
5798 * tree-streamer.c: Likewise.
5799 * tree-switch-conversion.c: Likewise.
5800 * tree-tailcall.c: Likewise.
5801 * tree-vect-data-refs.c: Likewise.
5802 * tree-vect-generic.c: Likewise.
5803 * tree-vect-loop-manip.c: Likewise.
5804 * tree-vect-loop.c: Likewise.
5805 * tree-vect-patterns.c: Likewise.
5806 * tree-vect-slp.c: Likewise.
5807 * tree-vect-stmts.c: Likewise.
5808 * tree-vectorizer.c: Likewise.
5809 * tree-vrp.c: Likewise.
5812 * ubsan.c: Likewise.
5813 * value-prof.c: Likewise.
5814 * var-tracking.c: Likewise.
5815 * varasm.c: Likewise.
5816 * varpool.c: Likewise.
5817 * vmsdbgout.c: Likewise.
5818 * vtable-verify.c: Likewise.
5820 * wide-int-print.cc: Likewise.
5821 * wide-int.cc: Likewise.
5822 * xcoffout.c: Likewise.
5824 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
5826 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
5827 between pass numbering and execution order.
5829 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5831 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
5832 check for dependencies.
5834 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5836 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
5839 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5841 * real.h (format_helper): New.
5842 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
5843 (real_from_target, real_nan, real_2expN, real_value_truncate)
5844 (significand_size, real_from_string2, exact_real_inverse)
5845 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
5846 (real_round, real_isinteger, real_from_integer): Replace
5847 machine_mode arguments with format_helper arguments.
5848 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
5849 (real_from_integer, real_nan, real_2expN, real_convert)
5850 (real_value_truncate, exact_real_truncate, real_to_target)
5851 (real_from_target, significand_size, real_powi, real_trunc)
5852 (real_floor, real_ceil, real_round, real_isinteger): Replace
5853 machine_mode arguments with format_helper arguments.
5854 (real_to_target_fmt, real_from_target_fmt): Delete.
5855 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
5856 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
5857 argument with real_format.
5858 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
5860 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5862 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
5863 (fixed_to_decimal, fixed_convert_from_real)
5864 (real_convert_from_fixed): Fix mode arguments to real_2expN.
5866 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5868 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
5869 SCALAR_FLOAT_MODE_P.
5871 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
5873 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
5874 (completely_scalarize): Comment zero-length arrays.
5875 (get_access_replacement): Correct comment re. precondition.
5877 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5879 * config/i386/i386.c (get_builtin_code_for_version): Set priority
5880 for PROCESSOR_ZNVER1.
5881 (enum processor_model): Add M_AMDFAM17H_znver1.
5882 (struct arch_names_table): Likewise.
5883 * doc/extend.texi: ADD znver1.
5885 2015-10-30 Richard Biener <rguenther@suse.de>
5887 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
5888 fold () on single RHSs. Allow CONSTRUCTORS with trailing
5889 zeros to be folded to VECTOR_CSTs.
5890 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
5891 * fold-const.c (fold): Use build_vector_from_ctor.
5893 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
5895 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
5896 "mov %0.h[0], %1.h[0] to "neon_move".
5897 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
5898 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
5900 (*cmovsi_insn_uxtw): Likewise.
5902 2015-10-30 Tom de Vries <tom@codesourcery.com>
5904 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
5905 unsigned, and initialize, and use initial value instead of hardcoded
5906 constant. Add generic constraints dumping section. Don't dump global
5907 initializers constraints dumping section if empty. Don't update
5908 variable from if unused.
5910 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
5912 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
5913 flag_checking and/or CHECKING_P to eliminate conditional compilation
5915 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
5916 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5917 * config/i386/i386.c (ix86_print_operand_address): Likewise.
5918 (output_387_binary_op): Likewise.
5919 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
5920 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
5921 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
5923 * config/rs6000/rs6000.h: Likewise.
5924 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
5926 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
5928 * config/sh/sh.opt (mfdpic): Add missing period.
5930 2015-08-29 Anatoly Sokolov <aesok@post.ru>
5932 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5933 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
5934 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5935 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
5936 mcore_base_register_rtx_p, mcore_legitimate_index_p,
5937 mcore_legitimate_address_p): New functions.
5938 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5940 2015-10-29 Jeff Law <law@redhat.com>
5942 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
5944 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
5945 * tree-ssa-threadedge.c
5946 (record_temporary_equivalences_from_stmts_at_dest): Remove
5947 backedge_seen argument and associated code which invalidated
5948 equivalences based on the value of that argument.
5949 (thread_through_normal_block): Corresponding changes.
5951 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
5953 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
5954 function earlier in the file.
5955 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
5956 df_regs_ever_live_p.
5958 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
5960 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
5963 2015-10-29 Richard Henderson <rth@redhat.com>
5967 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5968 sse check to the exact conditions of PR 67609.
5970 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
5972 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
5973 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
5974 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
5975 of the traditional names that TFmode uses for handling IEEE
5976 extended double. If -mfloat128, add KFmode functions for all of
5977 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
5978 make TFmode use the same emulation functions as KFmode.
5979 (init_float128_ibm): Likewise.
5980 (init_float128_ieee): Likewise.
5981 (rs6000_generate_compare): For IEEE 128-bit floating point
5982 comparisons, call the unordered comparison function instead of the
5983 ordered comparison function.
5984 (rs6000_expand_float128_convert): Deal with operands that are
5985 memory operands. Restructure the code to use a switch statement on
5986 the mode. Add support for TFmode defaulting to either IBM extended
5987 double or IEEE 128-bit floating point. If the underlying types are
5988 the same, use a move instead of a conversion function.
5989 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
5990 use for IEEE 128-bit floating point constants with -mfloat128.
5991 (rs6000_c_mode_for_suffix): Likewise.
5992 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
5993 128-bit floating point with IBM extended double floating point.
5994 (rs6000_invalid_binary_op): Likewise.
5995 (rs6000_gen_le_vsx_permute): On little endian systems generate a
5996 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
5997 types that can go in vector registers.
5998 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
5999 point types that can go in vector registers on little endian
6001 (mark_swaps_for_removal): Likewise.
6002 (rs6000_analyze_swaps): Likewise.
6003 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
6005 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
6006 rework IEEE 128-bit floating point insns to deal with TFmode being
6007 either IBM extended double or IEEE 128-bit floating point.
6009 (IBM128): Update iterator to add condition that the mode is IBM
6011 (IEEE128): New iterator for IEEE 128-bit floating point.
6012 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
6013 (FLOAT128): Likewise.
6014 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
6016 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
6017 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
6018 instead of hard coding TFmode or KFmode.
6019 (negtf2_internal): Likewise.
6020 (neg<mode>2_internal): Likewise.
6021 (abs<mode>2): Likewise.
6022 (abstf2_internal): Likewise.
6023 (abs<mode>2_internal): Likewise.
6024 (ieee_128bit_neg<mode>2): Likewise.
6025 (ieee_128bit_neg<mode>2_internal): Likewise.
6026 (ieee_128bit_abs<mode>2): Likewise.
6027 (ieee_128bit_abs<mode>2_internal): Likewise.
6028 (ieee_128bit_nabs<mode>2): Likewise.
6029 (ieee_128bit_nabs<mode>2_internal): Likewise.
6030 (extendiftf2): Add explicit conversions between 128-bit floating
6031 point types. Drop the old conversions that had become unwieldy.
6032 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
6033 (extendifkf2): Likewise.
6034 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
6035 (extendtfkf2): Likewise.
6036 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
6037 (trunciftf2): Likewise.
6038 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
6039 (truncifkf2): Likewise.
6040 (float<SDI:mode><IFKF:mode>2): Likewise.
6041 (trunckftf2): Likewise.
6042 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
6043 (trunctfif2): Likewise.
6044 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
6045 (extenddftf2): Rework 128-bit floating point conversions to
6046 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
6047 KFmode expanders into one function.
6048 (extenddf<mode>2): Likewise.
6049 (extenddftf2_fprs): Likewise.
6050 (extenddf<mode>2_fprs): Likewise.
6051 (extenddftf2_vsx): Likewise.
6052 (extenddf<mode>2_vsx): Likewise.
6053 (extendsftf2): Likewise.
6054 (extendsf<mode>2): Likewise.
6055 (trunctfdf2): Likewise.
6056 (trunc<mode>df2): Likewise.
6057 (trunctfdf2_internal1): Likewise.
6058 (trunc<mode>df2_internal1): Likewise.
6059 (trunctfdf2_internal2): Likewise.
6060 (trunc<mode>df2_internal2): Likewise.
6061 (trunctfsf2): Likewise.
6062 (trunc<mode>sf2): Likewise.
6063 (trunctfsf2_fprs): Likewise.
6064 (trunc<mode>sf2_fprs): Likewise.
6065 (floatsit2f): Likewise.
6066 (floatsi<mode>2): Likewise.
6067 (fix_trunc_helper): Likewise.
6068 (fix_trunc_helper<mode>): Likewise.
6069 (fix_trunctfsi2): Likewise.
6070 (fix_trunc<mode>si2): Likewise.
6071 (fix_trunctfsi2_fprs): Likewise.
6072 (fix_trunc<mode>si2_fprs): Likewise.
6073 (fix_trunctfsi2_internal): Likewise.
6074 (fix_trunc<mode>si2_internal): Likewise.
6075 (fix_trunctfdi2): Likewise.
6076 (fix_trunc<mode>di2): Likewise.
6077 (fixuns_trunctf<mode>2): Likewise.
6078 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
6079 (floatditf2): Likewise.
6080 (floatdi<mode>2): Likewise.
6081 (floatuns<mode>tf2): Likewise.
6082 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
6083 (cmptf_internal1): Use a mode iterator to add support for both
6084 types (IFmode, TFmode) that support IBM extended double.
6085 (cmp<mode>_internal1): Likewise.
6086 (cmptf_internal2): Likewise.
6087 (cmp<mode>_internal2): Likewise.
6089 * doc/extend.texi (Floating Types): Document __ibm128 and
6090 __float128 on PowerPC.
6092 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6093 -mfloat128 and -mno-float128.
6095 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
6097 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
6098 floating point modes that can go in vector registers.
6099 (MODES_TIEABLE_P): Move tests for vector modes before tests for
6100 scalar floating point, so that IEEE 128-bit floating point that
6101 can go in vector registers bind with vectors and not FP.
6102 (struct rs6000_args): Add libcall field.
6104 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
6105 and -mfloat128-software switches. Replace them with a binary
6107 (-mfloat128): Likewise.
6109 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
6110 128-bit floating point types in GPRs, even if the appropriate
6111 option enabling the type was not used.
6112 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
6114 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
6115 pre-decrement on IEEE 128-bit floating point values.
6116 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
6117 is IEEE 128-bit floating point.
6118 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
6119 128-bit floating point types that can go in vector registers.
6120 (rs6000_option_override_internal): Change -mfloat128-none and
6121 -mfloat128-software to -mfloat128, and move code to be near other
6122 VSX option handling.
6123 (rs6000_option_override_internal): Disable -mfloat128 if we don't
6124 have the Altivec ABI.
6125 (rs6000_init_builtins): Don't make TFmode use either IFmode or
6126 KFmode floating point nodes. Instead, have three separate nodes.
6127 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
6128 eventually moving the long double default to IEEE 128-bit floating
6130 (rs6000_opt_masks): Add -mfloat128.
6131 (struct rs6000_opt_var): Fix typo in comment.
6132 (init_cumulative_args): Initialize libcall field in
6134 (rs6000_function_arg): Treat library functions as if they had
6135 prototypes to prevent IEEE 128-bit support functions from passing
6136 arguments in both GPRs and vector registers.
6137 (rs6000_arg_partial_bytes): Likewise.
6139 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
6140 an option that can be turned on via -mcpu=<xxx>.
6142 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
6145 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6146 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
6147 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
6148 double is IBM extended double.
6150 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
6153 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
6155 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
6156 * genconditions.c: Define CHECKING_P in the generated code.
6157 * genextract.c: Use flag_checking in insn_extract.
6158 * gengtype.c (main): Remove conditional compilation.
6159 * gengtype.h: Likewise.
6161 2015-10-29 Jeff Law <law@redhat.com>
6163 PR tree-optimization/67892
6164 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
6166 (thread_through_normal_block): If we have seen a backedge, then
6167 do nothing. No longer call find_jump_threads_backwards here.
6168 (thread_across_edge): Use find_jump_threads_backwards to find
6169 jump threads if the old style threader was not successful.
6170 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
6171 gsi_last_nondebug_bb. Return NULL if the block does not end
6172 with a control statement.
6173 (find_jump_threads_backwards): Setup code moved here from
6174 tree-ssa-threadedge.c::thread_through_normal_block. Accept
6175 single edge argument instead of name & block.
6176 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
6179 2015-10-29 Tom de Vries <tom@codesourcery.com>
6181 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
6184 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6186 * omp-low.c (lower_omp_target): Remove unreachable code & merge
6189 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
6191 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
6193 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
6195 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6196 guard_bb0 and use guard_bb throughout.
6198 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
6200 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6203 2015-10-29 Richard Biener <rguenther@suse.de>
6206 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
6209 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
6211 * alias.c: Reorder #include statements and remove duplicates.
6213 * attribs.c: Likewise.
6214 * auto-inc-dec.c: Likewise.
6215 * auto-profile.c: Likewise.
6216 * bb-reorder.c: Likewise.
6217 * bt-load.c: Likewise.
6218 * builtins.c: Likewise.
6219 * caller-save.c: Likewise.
6220 * calls.c: Likewise.
6223 * cfganal.c: Likewise.
6224 * cfgbuild.c: Likewise.
6225 * cfgcleanup.c: Likewise.
6226 * cfgexpand.c: Likewise.
6227 * cfghooks.c: Likewise.
6228 * cfgloop.c: Likewise.
6229 * cfgloopanal.c: Likewise.
6230 * cfgloopmanip.c: Likewise.
6231 * cfgrtl.c: Likewise.
6232 * cgraph.c: Likewise.
6233 * cgraphbuild.c: Likewise.
6234 * cgraphclones.c: Likewise.
6235 * cgraphunit.c: Likewise.
6236 * cilk-common.c: Likewise.
6237 * combine-stack-adj.c: Likewise.
6238 * combine.c: Likewise.
6239 * compare-elim.c: Likewise.
6240 * convert.c: Likewise.
6241 * coverage.c: Likewise.
6242 * cppbuiltin.c: Likewise.
6243 * cprop.c: Likewise.
6245 * cselib.c: Likewise.
6246 * data-streamer-in.c: Likewise.
6247 * data-streamer-out.c: Likewise.
6248 * data-streamer.c: Likewise.
6249 * dbxout.c: Likewise.
6252 * debug.c: Likewise.
6253 * df-core.c: Likewise.
6254 * df-problems.c: Likewise.
6255 * df-scan.c: Likewise.
6257 * dojump.c: Likewise.
6258 * dominance.c: Likewise.
6259 * double-int.c: Likewise.
6261 * dumpfile.c: Likewise.
6262 * dwarf2asm.c: Likewise.
6263 * dwarf2cfi.c: Likewise.
6264 * dwarf2out.c: Likewise.
6265 * emit-rtl.c: Likewise.
6266 * except.c: Likewise.
6267 * explow.c: Likewise.
6268 * expmed.c: Likewise.
6270 * final.c: Likewise.
6271 * fixed-value.c: Likewise.
6272 * fold-const.c: Likewise.
6273 * function.c: Likewise.
6274 * fwprop.c: Likewise.
6276 * generic-match-head.c: Likewise.
6277 * ggc-common.c: Likewise.
6278 * gimple-builder.c: Likewise.
6279 * gimple-expr.c: Likewise.
6280 * gimple-fold.c: Likewise.
6281 * gimple-iterator.c: Likewise.
6282 * gimple-low.c: Likewise.
6283 * gimple-match-head.c: Likewise.
6284 * gimple-pretty-print.c: Likewise.
6285 * gimple-ssa-isolate-paths.c: Likewise.
6286 * gimple-ssa-strength-reduction.c: Likewise.
6287 * gimple-streamer-in.c: Likewise.
6288 * gimple-streamer-out.c: Likewise.
6289 * gimple-walk.c: Likewise.
6290 * gimple.c: Likewise.
6291 * gimplify-me.c: Likewise.
6292 * gimplify.c: Likewise.
6293 * godump.c: Likewise.
6294 * graph.c: Likewise.
6295 * graphite-poly.c: Likewise.
6296 * haifa-sched.c: Likewise.
6297 * hw-doloop.c: Likewise.
6298 * ifcvt.c: Likewise.
6299 * incpath.c: Likewise.
6300 * init-regs.c: Likewise.
6301 * internal-fn.c: Likewise.
6302 * ipa-chkp.c: Likewise.
6303 * ipa-comdats.c: Likewise.
6304 * ipa-cp.c: Likewise.
6305 * ipa-devirt.c: Likewise.
6306 * ipa-icf-gimple.c: Likewise.
6307 * ipa-icf.c: Likewise.
6308 * ipa-inline-analysis.c: Likewise.
6309 * ipa-inline-transform.c: Likewise.
6310 * ipa-inline.c: Likewise.
6311 * ipa-polymorphic-call.c: Likewise.
6312 * ipa-profile.c: Likewise.
6313 * ipa-prop.c: Likewise.
6314 * ipa-pure-const.c: Likewise.
6315 * ipa-ref.c: Likewise.
6316 * ipa-reference.c: Likewise.
6317 * ipa-split.c: Likewise.
6318 * ipa-utils.c: Likewise.
6319 * ipa-visibility.c: Likewise.
6321 * ira-build.c: Likewise.
6322 * ira-color.c: Likewise.
6323 * ira-conflicts.c: Likewise.
6324 * ira-costs.c: Likewise.
6325 * ira-emit.c: Likewise.
6326 * ira-lives.c: Likewise.
6329 * langhooks.c: Likewise.
6331 * lists.c: Likewise.
6332 * loop-doloop.c: Likewise.
6333 * loop-init.c: Likewise.
6334 * loop-invariant.c: Likewise.
6335 * loop-iv.c: Likewise.
6336 * loop-unroll.c: Likewise.
6337 * lower-subreg.c: Likewise.
6338 * lra-assigns.c: Likewise.
6339 * lra-coalesce.c: Likewise.
6340 * lra-constraints.c: Likewise.
6341 * lra-eliminations.c: Likewise.
6342 * lra-lives.c: Likewise.
6343 * lra-remat.c: Likewise.
6344 * lra-spills.c: Likewise.
6346 * lto-cgraph.c: Likewise.
6347 * lto-compress.c: Likewise.
6348 * lto-opts.c: Likewise.
6349 * lto-section-in.c: Likewise.
6350 * lto-section-out.c: Likewise.
6351 * lto-streamer-in.c: Likewise.
6352 * lto-streamer-out.c: Likewise.
6353 * lto-streamer.c: Likewise.
6354 * mode-switching.c: Likewise.
6355 * modulo-sched.c: Likewise.
6356 * omp-low.c: Likewise.
6357 * optabs.c: Likewise.
6358 * opts-global.c: Likewise.
6359 * passes.c: Likewise.
6360 * plugin.c: Likewise.
6361 * postreload-gcse.c: Likewise.
6362 * postreload.c: Likewise.
6363 * predict.c: Likewise.
6364 * print-tree.c: Likewise.
6365 * profile.c: Likewise.
6367 * realmpfr.c: Likewise.
6368 * recog.c: Likewise.
6370 * reg-stack.c: Likewise.
6371 * regcprop.c: Likewise.
6372 * reginfo.c: Likewise.
6373 * regrename.c: Likewise.
6374 * regstat.c: Likewise.
6375 * reload.c: Likewise.
6376 * reload1.c: Likewise.
6377 * reorg.c: Likewise.
6378 * resource.c: Likewise.
6379 * rtl-chkp.c: Likewise.
6380 * rtl-error.c: Likewise.
6381 * rtlanal.c: Likewise.
6382 * rtlhooks.c: Likewise.
6383 * sanopt.c: Likewise.
6384 * sched-deps.c: Likewise.
6385 * sched-ebb.c: Likewise.
6386 * sched-rgn.c: Likewise.
6388 * shrink-wrap.c: Likewise.
6389 * simplify-rtx.c: Likewise.
6390 * stack-ptr-mod.c: Likewise.
6391 * statistics.c: Likewise.
6393 * stor-layout.c: Likewise.
6394 * store-motion.c: Likewise.
6395 * stringpool.c: Likewise.
6396 * symtab.c: Likewise.
6397 * target-globals.c: Likewise.
6398 * targhooks.c: Likewise.
6399 * toplev.c: Likewise.
6400 * tracer.c: Likewise.
6401 * trans-mem.c: Likewise.
6402 * tree-affine.c: Likewise.
6403 * tree-call-cdce.c: Likewise.
6404 * tree-cfg.c: Likewise.
6405 * tree-cfgcleanup.c: Likewise.
6406 * tree-chkp-opt.c: Likewise.
6407 * tree-chkp.c: Likewise.
6408 * tree-chrec.c: Likewise.
6409 * tree-complex.c: Likewise.
6410 * tree-data-ref.c: Likewise.
6411 * tree-dfa.c: Likewise.
6412 * tree-diagnostic.c: Likewise.
6413 * tree-dump.c: Likewise.
6414 * tree-eh.c: Likewise.
6415 * tree-emutls.c: Likewise.
6416 * tree-if-conv.c: Likewise.
6417 * tree-inline.c: Likewise.
6418 * tree-into-ssa.c: Likewise.
6419 * tree-iterator.c: Likewise.
6420 * tree-loop-distribution.c: Likewise.
6421 * tree-nested.c: Likewise.
6422 * tree-nrv.c: Likewise.
6423 * tree-object-size.c: Likewise.
6424 * tree-outof-ssa.c: Likewise.
6425 * tree-parloops.c: Likewise.
6426 * tree-phinodes.c: Likewise.
6427 * tree-predcom.c: Likewise.
6428 * tree-pretty-print.c: Likewise.
6429 * tree-profile.c: Likewise.
6430 * tree-scalar-evolution.c: Likewise.
6431 * tree-sra.c: Likewise.
6432 * tree-ssa-address.c: Likewise.
6433 * tree-ssa-alias.c: Likewise.
6434 * tree-ssa-ccp.c: Likewise.
6435 * tree-ssa-coalesce.c: Likewise.
6436 * tree-ssa-copy.c: Likewise.
6437 * tree-ssa-dce.c: Likewise.
6438 * tree-ssa-dom.c: Likewise.
6439 * tree-ssa-dse.c: Likewise.
6440 * tree-ssa-forwprop.c: Likewise.
6441 * tree-ssa-ifcombine.c: Likewise.
6442 * tree-ssa-live.c: Likewise.
6443 * tree-ssa-loop-ch.c: Likewise.
6444 * tree-ssa-loop-im.c: Likewise.
6445 * tree-ssa-loop-ivcanon.c: Likewise.
6446 * tree-ssa-loop-ivopts.c: Likewise.
6447 * tree-ssa-loop-manip.c: Likewise.
6448 * tree-ssa-loop-niter.c: Likewise.
6449 * tree-ssa-loop-prefetch.c: Likewise.
6450 * tree-ssa-loop-unswitch.c: Likewise.
6451 * tree-ssa-loop.c: Likewise.
6452 * tree-ssa-math-opts.c: Likewise.
6453 * tree-ssa-operands.c: Likewise.
6454 * tree-ssa-phiopt.c: Likewise.
6455 * tree-ssa-phiprop.c: Likewise.
6456 * tree-ssa-pre.c: Likewise.
6457 * tree-ssa-propagate.c: Likewise.
6458 * tree-ssa-reassoc.c: Likewise.
6459 * tree-ssa-sccvn.c: Likewise.
6460 * tree-ssa-scopedtables.c: Likewise.
6461 * tree-ssa-sink.c: Likewise.
6462 * tree-ssa-strlen.c: Likewise.
6463 * tree-ssa-structalias.c: Likewise.
6464 * tree-ssa-tail-merge.c: Likewise.
6465 * tree-ssa-ter.c: Likewise.
6466 * tree-ssa-threadedge.c: Likewise.
6467 * tree-ssa-threadupdate.c: Likewise.
6468 * tree-ssa-uncprop.c: Likewise.
6469 * tree-ssa-uninit.c: Likewise.
6470 * tree-ssa.c: Likewise.
6471 * tree-ssanames.c: Likewise.
6472 * tree-stdarg.c: Likewise.
6473 * tree-streamer-in.c: Likewise.
6474 * tree-streamer-out.c: Likewise.
6475 * tree-streamer.c: Likewise.
6476 * tree-switch-conversion.c: Likewise.
6477 * tree-tailcall.c: Likewise.
6478 * tree-vect-data-refs.c: Likewise.
6479 * tree-vect-generic.c: Likewise.
6480 * tree-vect-loop-manip.c: Likewise.
6481 * tree-vect-loop.c: Likewise.
6482 * tree-vect-patterns.c: Likewise.
6483 * tree-vect-slp.c: Likewise.
6484 * tree-vect-stmts.c: Likewise.
6485 * tree-vectorizer.c: Likewise.
6486 * tree-vrp.c: Likewise.
6489 * ubsan.c: Likewise.
6490 * value-prof.c: Likewise.
6491 * var-tracking.c: Likewise.
6492 * varasm.c: Likewise.
6493 * varpool.c: Likewise.
6494 * vtable-verify.c: Likewise.
6496 * wide-int-print.cc: Likewise.
6497 * wide-int.cc: Likewise.
6498 * xcoffout.c: Likewise.
6500 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
6502 * Makefile.in (NO_PIE_CFLAGS): New.
6503 (NO_PIE_FLAG): Likewise.
6504 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6505 (NO_PIE_FLAG_FOR_BUILD): Likewise.
6506 (BUILD_NO_PIE_CFLAGS): Likewise.
6507 (BUILD_NO_PIE_FLAG): Likewise.
6508 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
6509 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
6510 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
6511 $(BUILD_NO_PIE_CFLAGS).
6512 (BUILD_CXXFLAGS): Likewise.
6513 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
6514 $(BUILD_NO_PIE_FLAG).
6515 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
6516 (BUILD_NO_PIE_FLAG): Likewise.
6517 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6518 (NO_PIE_FLAG_FOR_BUILD): Likewise.
6519 * configure: Regenerated.
6521 2015-10-29 Richard Biener <rguenther@suse.de>
6524 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
6525 unsigned conditonal negation to ABS_EXPR.
6527 2015-10-29 Richard Biener <rguenther@suse.de>
6529 * gimple-match-head.c (gimple_simplify): Remove premature checking
6530 of builtin_decl_implicit of function calls we simplify.
6532 2015-10-29 Bin Cheng <bin.cheng@arm.com>
6534 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
6535 (get_computation_cost_at): Ditto.
6536 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
6539 2015-10-28 Tom de Vries <tom@codesourcery.com>
6541 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
6544 2015-10-28 Jason Merrill <jason@redhat.com>
6546 * Makefile.in (TAGS): Include libcpp and libiberty.
6548 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6550 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
6551 (extract_omp_for_data): Remove OpenACC special handling of
6554 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
6555 (struct parallel): Update comment.
6556 (nvptx_reorg): Likewise.
6557 (nvptx_neuter): Cleanup whitespace.
6559 2015-10-28 Richard Henderson <rth@redhat.com>
6561 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
6563 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6566 * config/avr/predicates.md (low_io_address_operand): Don't
6567 consider MODE when computing upper bound.
6568 (io_address_operand): Likewise.
6570 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
6572 * fold-const.c (operand_equal_p): Do not verify that types are
6573 compatible for MEM_REFs.
6575 2015-10-28 Richard Biener <rguenther@suse.de>
6577 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
6578 in simplifying VEC_COND_EXPR conditions.
6580 2015-10-28 Tom de Vries <tom@codesourcery.com>
6582 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
6583 into vi_next of a full_var.
6585 2015-10-28 Tom de Vries <tom@codesourcery.com>
6587 * tree-ssa-structalias.c (new_var_info, make_heapvar)
6588 (make_constraint_from_restrict, make_constraint_from_global_restrict)
6589 (create_function_info_for, create_variable_info_for_1)
6590 (create_variable_info_for): Add and handle add_id parameter.
6591 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
6592 (init_base_vars): Add extra argument to calls to new_var_info.
6593 (get_vi_for_tree): Add extra argument to call to
6594 create_variable_info_for.
6595 (process_constraint, do_deref, process_all_all_constraints): Add extra
6596 argument to calls to new_scalar_tmp_constraint_exp.
6597 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
6598 argument to calls to make_heapvar.
6599 (make_restrict_var_constraints): Add extra argument to call to
6600 make_constraint_from_global_restrict.
6601 (intra_create_variable_infos): Add extra argument to call to
6602 create_variable_info_for_1.
6603 (ipa_pta_execute): Add extra argument to call to
6604 create_function_info_for.
6606 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6608 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
6609 (sibcall_value): Likewise.
6611 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6613 * config/nvptx/nvptx.h (struct machine_function): Add
6615 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
6616 nvptx_expand_oacc_join): Declare.
6617 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
6618 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
6619 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
6620 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
6621 UNSPECV_JOINING, UNSPECV_JOIN): New.
6622 (BITS, BITD): New mode iterators.
6623 (br_true_uni, br_false_uni): New.
6624 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
6625 (oacc_dim_size, oacc_dim_pos): New.
6626 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
6627 (oacc_fork, oacc_join): New.
6628 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
6629 (worker_load<mode>, worker_store<mode>): New.
6630 (nvptx_barsync): New.
6631 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
6632 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
6633 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
6634 worker_bcast_sym): New.
6635 (nvptx_option_override): Initialize worker broadcast buffer.
6636 (nvptx_emit_forking, nvptx_emit_joining): New.
6637 (nvptx_init_axis_predicate): New.
6638 (nvptx_declare_function_name): Init axis predicates.
6639 (nvptx_expand_call): Add fork/join markers around routine call.
6640 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
6641 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
6642 (nvptx_gen_vcast): New.
6643 (struct wcast_data_t): New.
6644 (enum propagate_mask): New.
6645 (nvptx_gen_wcast): New.
6646 (nvptx_print_operand): Add 'S' case.
6647 (struct parallel): New.
6648 (parallel::parallel, parallel::~parallel): New.
6649 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
6650 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
6651 nvptx_find_par, nvptx_discover_pars): New.
6652 (nvptx_propagate): New.
6653 (vprop_gen, nvptx_vpropagate): New.
6654 (wprop_gen, nvptx_wpropagate): New.
6656 (nvptx_single, nvptx_skip_par): New.
6657 (nvptx_process_pars, nvptx_neuter_pars): New.
6658 (ntptx_reorg): Split blocks, generate parallel structure, apply
6660 (nvptx_cannot_copy_insn_p): New.
6661 (nvptx_file_end): Emit worker broadcast decl.
6662 (nvptx_goacc_fork_join): New.
6663 (TARGET_CANNOT_COPY_INSN_P): Override.
6664 (TARGET_GOACC_FORK_JOIN): Override.
6666 2015-10-28 Richard Biener <rguenther@suse.de>
6668 * fold-const.c (negate_expr_p): Adjust the division case to
6669 properly avoid introducing undefined overflow.
6670 (fold_negate_expr): Likewise.
6672 2015-10-28 Richard Biener <rguenther@suse.de>
6674 PR tree-optimization/65962
6675 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6676 Avoid creating loop carried dependences also for outer loops
6677 of the loop a use to replace is in.
6679 2015-10-28 Richard Biener <rguenther@suse.de>
6681 * common.opt (fchecking): New flag controlling flag_checking.
6682 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
6683 * timevar.c (timer::print): Adjust output.
6684 * doc/invoke.texi (fchecking): Document.
6686 2015-10-28 Richard Biener <rguenther@suse.de>
6689 * fold-const.c (negate_expr_p): We cannot negate plus or minus
6690 if overflow is not wrapping. Likewise multiplication unless
6691 one operand is constant and not power of two.
6692 (fold_negate_expr): Adjust accordingly.
6694 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6696 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
6698 (is_oacc_parallel, is_oacc_kernels): New.
6699 (enclosing_target_ctx): May return NULL.
6700 (ctx_in_oacc_kernels_region): New.
6701 (check_oacc_kernel_gwv): New.
6702 (oacc_loop_or_target_p): Delete.
6703 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
6704 operands. Strip reductions fro kernels.
6705 (scan_omp_target): Don't calculate gwv mask.
6706 (lower_oacc_head_mark, lower_oacc_loop_marker,
6707 lower_oacc_head_tail): New.
6708 (struct oacc_collapse): New.
6709 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
6710 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6711 Remove OpenACC handling.
6712 (expand_oacc_for): New.
6713 (expand_omp_for): Call expand_oacc_for.
6714 (lower_omp_for): Call lower_oacc_head_tail.
6716 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
6718 * attribs.c (check_attribute_tables): New function, broken out from...
6719 (init_attributes): Use it.
6720 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
6721 gcc_checking_assert and checking_* functions to eliminate
6722 ENABLE_CHECKING conditionals.
6723 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
6724 (pass_expand::execute): Likewise.
6725 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
6726 * cgraphunit.c (mark_functions_to_output): Likewise.
6727 (cgraph_node::expand_thunk): Likewise.
6728 (symbol_table::compile): Likewise.
6729 * ddg.c (add_cross_iteration_register_deps): Likewise.
6730 (create_ddg_all_sccs): Likewise.
6731 * df-core.c (df_finish_pass, df_analyze): Likewise.
6732 * diagnostic-core.h: Likewise.
6733 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
6734 * dominance.c (calculate_dominance_info): Likewise.
6735 * dwarf2out.c (add_AT_die_ref): Likewise.
6736 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
6737 (loc_list_from_tree, gen_lexical_block_die): Likewise.
6738 gen_type_die_with_usage, gen_type_die): Likewise.
6739 (dwarf2out_decl): Likewise.
6740 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
6741 * except.c (duplicate_eh_regions): Likewise.
6742 * fwprop.c (register_active_defs, update_df_init): Likewise.
6743 (fwprop_init, fwprop_done): Likewise.
6744 (update_uses): Likewise.
6745 * ggc-page.c (ggc_grow): Likewise.
6746 * gimplify.c (gimplify_body): Likewise.
6747 (gimplify_hasher::equal): Likewise.
6748 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
6749 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
6751 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
6752 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
6753 * hash-table.h (::find_empty_slot_for_expand): Likewise.
6754 * ifcvt.c (if_convert): Likewise.
6755 * ipa-cp.c (ipcp_propagate_stage): Likewise.
6756 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
6757 (odr_type_p, odr_types_equivalent_p): Likewise.
6758 (add_type_duplicate, get_odr_type): Likewise.
6759 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
6760 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
6761 (sem_item_optimizer::verify_classes): Likewise.
6762 (sem_item_optimizer::traverse_congruence_split): Likewise.
6763 (sem_item_optimizer::checking_verify_classes): New.
6764 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
6766 * cfgrtl.c (commit_edge_insertions): Likewise.
6767 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
6768 (rtl_flow_call_edges_add): Likewise.
6769 * cgraph.c (symbol_table::create_edge): Likewise.
6770 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
6771 * cgraph.h (symtab_node): Likewise.
6772 (symtab_node::checking_verify_symtab_nodes): Define.
6773 (cgraph_node::checking_verify_cgraph_nodes): Define.
6774 * cfghooks.h (checking_verify_flow_info): Define.
6775 * cfgloop.h (checking_verify_loop_structure): Define.
6776 * dominance.h (checking_verify_dominators): Define.
6777 * et-forest.c: Fix comment.
6778 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
6779 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6780 ENABLE_CHECKING conditionals.
6781 * ipa-inline-transform.c (save_inline_function_body): Likewise.
6782 * ipa-inline.c (inline_small_functions): Likewise.
6783 (early_inliner): Likewise.
6784 * ipa-inline.h (estimate_edge_growth): Likewise.
6785 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6786 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6787 (ipa_single_use): Likewise.
6788 * ira-int.h: Likewise.
6789 * ira.c (ira): Likewise.
6790 * loop-doloop.c (doloop_optimize_loops): Likewise.
6791 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
6792 * loop-invariant.c (move_loop_invariants): Likewise.
6793 * lra-assigns.c (lra_assign): Likewise.
6794 * lra-constraints.c (lra_constraints): Likewise.
6795 * lra-eliminations.c (lra_eliminate): Likewise.
6796 * lra-int.h (struct lra_reg): Likewise.
6797 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
6798 (lra_create_live_ranges_1): Likewise.
6799 * lra-remat.c (create_remat_bb_data): Likewise.
6800 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
6802 (check_rtl): Always define. Remove incorrect guard around
6803 extract_constrain_insn call.
6804 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
6805 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6806 ENABLE_CHECKING conditionals.
6807 * lto-streamer-out.c (DFS::DFS): Likewise.
6808 (lto_output): Likewise.
6809 * lto-streamer.c (lto_streamer_init): Likewise.
6810 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
6811 expand_omp_target, execute_expand_omp): Likewise.
6812 (lower_omp_target): Likewise.
6813 * passes.c (execute_function_todo): Likewise.
6814 (execute_todo, execute_one_pass): Likewise.
6815 (verify_curr_properties): Always define.
6816 * predict.c (tree_estimate_probability: Use flag_checking,
6817 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6818 ENABLE_CHECKING conditionals.
6819 (propagate_freq): Likewise.
6820 * pretty-print.c (pp_format): Likewise.
6821 * real.c (real_to_decimal_for_mode): Likewise.
6822 * recog.c (split_all_insns): Likewise.
6823 * regcprop.c (kill_value_one_regno): Likewise.
6824 (copy_value): Likewise.
6825 (validate_value_data): Define unconditionally.
6826 * reload.c: Fix comment.
6827 * timevar.c: Include options.h
6828 * tree-ssa.h (checking_verify_ssa): Define.
6829 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
6830 * sched-deps.c (CHECK): Remove unused macro.
6831 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
6832 gcc_checking_assert and checking_* functions to eliminate
6833 ENABLE_CHECKING conditionals.
6834 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
6835 * sel-sched.c (struct moveop_static_params): Likewise.
6836 (find_best_reg_for_expr, move_cond_jump): Likewise.
6837 (move_op_orig_expr_not_found): Likewise.
6838 (code_motion_process_successors, move_op): Likewise.
6839 * ssa-iterators.h (first_readonly_imm_use): Likewise.
6840 (next_readonly_imm_use): Likewise.
6841 * store-motion.c (compute_store_table): Likewise.
6842 * symbol-summary.h (function_summary::function_summary): Likewise.
6843 * target.h (cumulative_args_t): Likewise.
6844 (get_cumulative_args, pack_cumulative_args): Likewise.
6845 * timevar.c: (timer::print): Likewise.
6846 * trans-mem.c (ipa_tm_execute): Likewise.
6847 * tree-cfg.c (move_stmt_op): Likewise.
6848 (move_sese_region_to_fn): Likewise.
6849 (gimple_flow_call_edges_add): Likewise.
6850 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
6852 * tree-eh.c (remove_unreachable_handlers): Likewise.
6853 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
6854 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
6855 * tree-into-ssa.c (update_ssa): Likewise.
6856 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
6857 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
6858 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
6859 * tree-predcom.c (suitable_component_p): Likewise.
6860 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
6861 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
6862 * tree-ssa-live.c (verify_live_on_entry): Likewise.
6863 * tree-ssa-live.h (register_ssa_partition): Likewise.
6864 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
6865 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
6866 (tree_transform_and_unroll_loop): Likewise.
6867 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6868 * tree-ssa-operands.c (get_expr_operands): Likewise.
6869 * tree-ssa-propagate.c (replace_exp_1): Likewise.
6870 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
6871 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
6872 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
6873 * tree-ssanames.c (release_ssa_name_fn): Likewise.
6874 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
6875 * tree-vect-loop-manip.c
6876 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
6877 (slpeel_checking_verify_cfg_after_peeling): Likewise.
6878 (vect_do_peeling_for_loop_bound): Likewise.
6879 (vect_do_peeling_for_alignment): Likewise.
6880 * tree-vrp.c (supports_overflow_infinity): Likewise.
6881 (set_value_range): Likewise.
6882 * tree.c (free_lang_data_in_cgraph): Likewise.
6883 * value-prof.c (gimple_remove_histogram_value): Likewise.
6884 (free_hist): Likewise.
6885 * var-tracking.c (canonicalize_values_star): Likewise.
6886 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
6888 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6890 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
6891 IFN_GOACC_LOOP): New.
6892 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
6893 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
6894 IFN_UNIQUE_OACC_TAIL_MARK.
6895 (enum ifn_goacc_loop_kind): New.
6896 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
6897 IFN_UNIQUE_OACC_JOIN cases.
6898 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
6899 (expand_GOACC_LOOP): New.
6900 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
6901 * omp-low.c: Include gimple-pretty-print.h.
6902 (struct oacc_loop): New.
6903 (enum oacc_loop_flags): New.
6904 (oacc_thread_numbers): New.
6905 (oacc_xform_loop): New.
6906 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
6907 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
6908 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
6909 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
6910 oacc_loop_discovery): New.
6911 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
6912 oacc_loop_process): New.
6913 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
6914 (execute_oacc_device_lower): Discover & process loops. Process
6916 * target.def (goacc.fork_join): Change sense of hook, clarify
6918 * doc/tm.texi: Regenerated.
6920 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6922 * target-insns.def (oacc_fork, oacc_join): Define.
6923 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
6924 (goacc.fork_join): New GOACC hook.
6925 * targhooks.h (default_goacc_fork_join): Declare.
6926 * omp-low.c (default_goacc_forkjoin): New.
6927 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
6928 * doc/tm.texi: Regenerate.
6930 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6932 * omp-low.c (oacc_init_rediction_array): New.
6933 (oacc_initialize_reduction_data): Initialize array.
6935 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6937 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
6939 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6941 * internal-fn.c (expand_UNIQUE): New.
6942 * internal-fn.h (enum ifn_unique_kind): New.
6943 * internal-fn.def (IFN_UNIQUE): New.
6944 * target-insns.def (unique): Define.
6945 * gimple.h (gimple_call_internal_unique_p): New.
6946 * gimple.c (gimple_call_same_target_p): Check internal fn
6948 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
6949 * tree-ssa-threadedge.c
6950 (record_temporary_equivalences_from_stmts): Likewise.
6951 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
6953 2015-10-27 Richard Henderson <rth@redhat.com>
6956 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
6957 narrowing subregs on SSE and MMX registers.
6958 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
6959 appear to be sub-words of multi-register pseudos must be rejected.
6960 * doc/tm.texi: Regenerate.
6962 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6965 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
6966 operands[0] is a reg before taking its REGNO in split condition.
6967 (*movdi_aarch64): Likewise.
6969 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6971 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
6972 Handle floating point inner modes properly.
6974 2015-10-27 Alan Hayward <alan.hayward@arm.com>
6977 (vectorizable_live_operation): Change iterator.
6979 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6980 Aditya Kumar <aditya.k7@samsung.com>
6982 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
6983 function to schedule based on isl_schedule_node.
6984 (get_schedule_map_st): New schedule optimizer based on
6986 (scop_get_domains): New. Return the isl_union_set containing the
6987 domains of all the pbbs.
6988 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
6990 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
6993 * calls.c (prepare_call_address): Don't handle -fno-plt here.
6994 * config/i386/i386.c (ix86_expand_call): Generate indirect call
6995 via GOT for -fno-plt. Support indirect call via GOT for x32.
6996 * config/i386/predicates.md (sibcall_memory_operand): Allow
6999 2015-10-27 Richard Biener <rguenther@suse.de>
7001 PR tree-optimization/68104
7002 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
7003 strided access check ...
7004 (vect_compute_data_refs_alignment): ... here.
7006 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
7007 Joseph Myers <joseph@codesourcery.com>
7008 Mark Shinwell <shinwell@codesourcery.com>
7009 Andrew Stubbs <ams@codesourcery.com>
7010 Rich Felker <dalias@libc.org>
7012 * config.gcc: Handle --enable-fdpic.
7013 * config/sh/constraints.md (Ccl): New constraint.
7014 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
7015 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
7017 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
7019 * config/sh/sh-protos.h (function_symbol_result): New struct.
7020 (function_symbol): Return function_symbol_result.
7021 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
7023 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
7025 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
7026 (sh_option_override): Force -fPIC if FDPIC is in effect.
7027 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
7028 UNSPEC_GOTOFFFUNCDESC cases.
7029 (prepare_move_operands): Use FDPIC initial GOT register for
7030 TLS-related GOT access; inhibit cross-section address offset constants
7032 (sh_assemble_integer): New function.
7033 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
7034 PC-relative call sites.
7035 (expand_ashiftrt): Adapt invocation of function_symbol.
7036 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
7037 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
7038 UNSPEC_GOTOFFFUNCDESC.
7039 (legitimize_pic_address): Resolve function symbols to function
7040 descriptors for FDPIC. Do not use GOT-relative addressing for local
7041 data that may be read-only on FDPIC.
7042 (sh_emit_storesi, sh_emit_storehi): New functions.
7043 (sh_trampoline_init): Generate FDPIC trampolines.
7044 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
7045 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
7046 (sh_output_mi_thunk): Generate FDPIC call.
7047 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
7048 FDPIC, generate call site labels to use PC-relative addressing rather
7049 than GOT-relative addressing.
7050 (sh_conditional_register_usage): Make PIC register fixed and call used
7051 when FDPIC is in effect.
7052 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
7053 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
7054 sh_get_fdpic_reg_initial_val): New functions.
7055 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
7057 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
7058 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
7059 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
7060 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
7062 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
7063 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
7064 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
7065 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
7067 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
7068 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
7069 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
7070 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
7071 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
7072 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
7073 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
7074 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
7075 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
7076 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
7077 block_move_real, block_lump_real, block_move_real_i4,
7078 block_lump_real_i4): Add support for FDPIC calls.
7079 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
7080 call_value_pop): Adjust for new function_symbol signature.
7081 * config/sh/sh.opt (-mfdpic): New option.
7082 * doc/install.texi (Options specification): Document --enable-fdpic.
7083 * doc/invoke.texi (SH Options): Document -mfdpic.
7086 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
7088 PR tree-optimization/65963
7089 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
7090 LSHIFT_EXPRs as equivalent MULT_EXPRs.
7092 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7095 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
7096 * config/arm/constraints.md (Dp): Update callsite.
7097 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
7099 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7101 * builtins.c (fold_builtin_load_exponent): Rename to...
7102 (fold_const_builtin_load_exponent): ...this and only handle
7104 (fold_builtin_2): Update accordingly.
7105 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
7107 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7109 * builtins.c (fold_builtin_logb): Rename to...
7110 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
7111 (fold_builtin_significand): Rename to...
7112 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
7113 (fold_builtin_1): Update accordingly.
7115 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7117 * builtins.c (fold_builtin_fmin_fmax): Delete.
7118 (fold_builtin_2): Handle constant fmin and fmax arguments here.
7119 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
7121 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
7123 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
7124 for register extension into sign and zero register extension.
7125 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
7126 for sign and zero register extension.
7127 (cortexa57_addrcost_table): Likewise.
7128 (xgene1_addrcost_table): Likewise.
7130 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7132 * fold-const.c (fold_minmax): Delete.
7133 (fold_binary_loc): Don't call it.
7134 * match.pd: Add rules previously handled by fold_minmax.
7136 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7138 * builtins.c (fold_builtin_fma): Remove constant handling.
7139 (fold_builtin_3): Handle constant fma arguments here.
7141 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7143 * builtins.c (fold_builtin_fabs): Remove constant handling.
7144 (fold_builtin_abs): Likewise.
7146 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7148 * builtins.c (fold_builtin_copysign): Delete.
7149 (fold_builtin_2): Handle constant copysign arguments here.
7150 * match.pd: Add rules previously handled by fold_builtin_copysign.
7152 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7154 * builtins.c (fold_builtin_signbit): Delete.
7155 (fold_builtin_2): Handle constant signbit arguments here.
7156 * match.pd: Add rules previously handled by fold_builtin_signbit.
7158 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7160 * match.pd: Handle sqrt(x) cmp 0 specially.
7162 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
7164 * tree-vect-generic.c (expand_vector_operations_1): Check
7165 optab type before using it.
7167 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7169 * config/aarch64/aarch64-protos.h
7170 (struct tune_params): Add autoprefetcher_model field.
7171 * config/aarch64/aarch64.c: Include params.h
7172 (generic_tunings): Specify autoprefetcher_model value.
7173 (cortexa53_tunings): Likewise.
7174 (cortexa57_tunings): Likewise.
7175 (cortexa72_tunings): Likewise.
7176 (thunderx_tunings): Likewise.
7177 (xgene1_tunings): Likewise.
7178 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
7179 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
7180 (aarch64_override_options_internal): Set
7181 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
7183 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7185 * builtins.c (fold_builtin_exponent): Delete.
7186 (fold_builtin_2): Handle constant expN arguments here.
7187 * match.pd: Fold expN(logN(x)) -> x.
7189 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7191 * builtins.c (fold_builtin_powi): Delete.
7192 (fold_builtin_2): Handle constant powi arguments here.
7193 * match.pd: Add rules previously handled by fold_builtin_powi.
7195 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7197 * builtins.c (fold_builtin_pow): Delete in favor of...
7198 (fold_const_builtin_pow): ...this new function. Only handle constant
7200 (fold_builtin_2): Update accordingly.
7201 * match.pd: Add rules previously handled by fold_builtin_pow.
7203 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7205 * builtins.c (fold_builtin_hypot): Delete.
7206 (fold_builtin_2): Handle constant hypot arguments here.
7207 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
7208 hypot(x, x) to fabs(x)*sqrt(2).
7210 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7212 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
7213 instead of make_ssa_name if not yet in SSA form.
7215 2015-10-27 Richard Biener <rguenther@suse.de>
7217 * cfg.c (free_edge): Add function argument and use it instead of cfun.
7218 (clear_edges): Likewise.
7219 * cfg.h (clear_edges): Adjust prototype.
7220 * cfgexpand.c (pass_expand::execute): Adjust.
7221 * cfgloop.c (release_recorded_exits): Add function argument and use
7223 * cfgloop.h (release_recorded_exits): Adjust prototype.
7224 (loops_state_satisfies_p): Add overload with function argument.
7225 (loops_state_set): Likewise.
7226 (loops_state_clear): Likewise.
7227 (struct loop_iterator): Add function argument to constructor
7228 and iterator and use it instead of cfun.
7229 (FOR_EACH_LOOP_FN): New macro.
7230 (loop_optimizer_finalize): Add overload with function argument.
7231 * loop-init.c (loop_optimizer_init): Adjust.
7232 (fix_loop_structure): Likewise.
7233 (loop_optimizer_finaliz): Add function argument and use it
7235 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
7236 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
7237 * cgraph.c (release_function_body): Do not push/pop cfun.
7238 * final.c (rest_of_clean_state): Adjust.
7239 * graphite.c (graphite_finalize): Likewise.
7240 * tree-ssa-copy.c (fini_copy_prop): Likewise.
7241 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7242 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
7243 (tree_unroll_loops_completely): Likewise.
7244 (pass_complete_unrolli::execute): Likewise.
7245 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
7246 Add function argument and use it instead of cfun.
7247 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
7249 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
7250 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
7252 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
7253 * tree-ssanames.c (fini_ssanames): Add function argument and use it
7255 * tree-ssanames.c (fini_ssanames): Adjust prototype.
7256 * tree-vrp.c (execute_vrp): Adjust.
7257 * value-prof.c (free_histograms): Add function argument and use it
7259 * value-prof.h (free_histograms): Adjust prototype.
7261 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
7263 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
7264 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
7265 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
7267 2015-10-27 Tom de Vries <tom@codesourcery.com>
7269 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
7272 2015-10-27 Bin Cheng <bin.cheng@arm.com>
7274 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
7275 (inv_can_prop_to_addr_use): New function.
7276 (record_use): Call can_prop_to_addr_uses, set the new field.
7277 (get_inv_cost): Count cost if inv can't be propagated into its
7280 2015-10-26 Doug Evans <dje@google.com>
7282 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
7284 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
7286 * match.pd (fold_widened_comparison): Apply simplifications to all
7289 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
7291 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
7292 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
7293 * doc/tm.texi: Regenerated.
7294 * reorg.c (dbr_schedule): Use new hook.
7295 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
7297 2015-10-26 Jeff Law <law@redhat.com>
7299 PR tree-optimization/68013
7300 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7301 Make sure the first block in the path is in VISITED_BBs.
7303 2015-10-26 Richard Biener <rguenther@suse.de>
7304 Dominik Vogt <vogt@linux.vnet.ibm.com>
7307 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
7308 Properly prune ref->ref for accesses outside of ref.
7310 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7312 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
7313 new statements to be inserted if inplace. Allow calls to have
7316 2015-10-26 Richard Biener <rguenther@suse.de>
7318 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
7319 (do_valueize): New function.
7320 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
7322 * tree-ssa-threadedge.c: Remove builtins.h include, include
7324 (fold_assignment_stmt): Remove.
7325 (threadedge_valueize): New function.
7326 (record_temporary_equivalences_from_stmts): Use
7327 gimple_fold_stmt_to_constant_1, note additional cleanup
7330 2015-10-26 Richard Biener <rguenther@suse.de>
7332 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
7333 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
7335 2015-10-26 Alan Hayward <alan.hayward@arm.com>
7337 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
7338 VEC_COND_EXPR types.
7340 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7342 * auto-inc-dec.c (insert_move_insn_before): Delete.
7343 (attempt_change): Remember to cost the simple move in the
7344 FORM_PRE_ADD and FORM_POST_ADD cases.
7346 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
7349 * config/sh/sh.c (sh_vector_mode_supported_p): Use
7350 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
7352 2015-10-26 Tom de Vries <tom@codesourcery.com>
7354 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
7356 (intra_create_variable_infos): ... here.
7358 2015-10-26 Tom de Vries <tom@codesourcery.com>
7360 * tree-ssa-structalias.c (intra_create_variable_infos): Add
7361 restrict_pointer_p and recursive_restrict_p variables.
7363 2015-10-26 Tom de Vries <tom@codesourcery.com>
7365 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
7366 get_vi_for_tree call.
7368 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7371 * optabs.c (expand_atomic_compare_and_swap): Handle case when
7372 ptarget_oval or ptarget_bool are const0_rtx.
7374 2015-10-26 Christian Bruel <christian.bruel@st.com>
7376 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
7377 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
7378 * cp/method.c (implicitly_declare_fn): Likewise.
7379 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
7380 * java/class.c (add_method_1): Likewise.
7382 2015-10-26 Richard Biener <rguenther@suse.de>
7384 * alloc-pool.h (base_pool_allocator): Use placement new.
7385 (base_pool_allocator::remove): Likewise. Compute size outside of
7388 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7390 * builtins.c (do_real_to_int_conversion): New function.
7391 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
7392 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
7394 * match.pd: Add rules previously handled by fold_fixed_mathfn
7395 and fold_builtin_int_roundingfn.
7397 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7399 * match.pd: Use macros to define built-in operator lists.
7401 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
7402 Richard Biener <rguenther@suse.de>
7404 * genmatch.c (dt_simplify::gen): Skip captures that are
7406 (parser::parse_expr): Allow captures in results too.
7407 * builtins.c (fold_builtin_cexp): Delete.
7408 (fold_builtin_1): Handle constant cexp arguments here.
7409 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
7411 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
7413 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
7414 conditional compilation.
7415 (base_pool_allocator::remove): Use flag_checking.
7417 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
7419 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
7422 * dojump.c (do_compare_and_jump): Canonicalize both function and
7425 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
7428 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
7431 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7434 * ipa-polymorphic-call.c
7435 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
7436 instance offset with offset of outer type.
7438 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7440 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
7442 2015-10-23 Caroline Tice <cmtice@google.com>
7444 (from Richard Biener
7445 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
7446 call to iterative_hash_host_wide_int.
7448 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
7450 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
7453 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7455 * tree-vect-generic.c (expand_vector_operations_1): Check
7456 optab exists before use it.
7458 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7460 * tree-vect-generic.c (expand_vector_condition): Avoid
7461 uninitialized variable warning.
7463 2015-10-23 Jeff Law <law@redhat.com>
7465 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
7467 (execute_todo): Call it here.
7468 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
7470 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
7472 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
7473 Szabolcs Nagy <szabolcs.nagy@arm.com>
7475 * config.gcc (enable_secureplt): Add *-linux*-musl*.
7477 2015-10-23 Jeff Law <law@redhat.com>
7479 PR tree-optimization/67830
7480 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
7481 Explicitly verify the mask has no bits outside the type of
7482 the innermost operands.
7484 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
7485 Szabolcs Nagy <szabolcs.nagy@arm.com>
7487 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
7488 (MUSL_DYNAMIC_LINKER64): Define.
7489 (GNU_USER_DYNAMIC_LINKER32): Update.
7490 (GNU_USER_DYNAMIC_LINKER64): Update.
7491 (CHOOSE_DYNAMIC_LINKER): Update.
7493 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
7494 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
7495 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7496 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7497 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7498 (CHOOSE_DYNAMIC_LINKER): Update.
7499 (INCLUDE_DEFAULTS): Redefine.
7501 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
7503 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7505 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
7506 comparing addresses.
7508 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7510 * fold-const.c (operand_equal_p): Handle matching of vector
7513 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
7515 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
7517 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
7518 Andrew Pinski <apinski@cavium.com>
7520 PR rtl-optimization/67736
7521 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
7524 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7527 * tree.c (build_truth_vector_type): Support BLK mode
7528 returned for boolean vector.
7530 2015-10-23 Alan Hayward <alan.hayward@arm.com>
7532 PR tree-optimization/65947
7534 (vect_is_simple_reduction_1): Find condition reductions.
7535 (vect_model_reduction_cost): Add condition reduction costs.
7536 (get_initial_def_for_reduction): Add condition reduction initial var.
7537 (vect_create_epilog_for_reduction): Add condition reduction epilog.
7538 (vectorizable_reduction): Condition reduction support.
7539 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
7540 * doc/sourcebuild.texi (Vector-specific attributes): Document
7543 2015-10-23 Richard Biener <rguenther@suse.de>
7545 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
7548 2015-10-23 Richard Biener <rguenther@suse.de>
7549 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7551 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
7552 into (A ^ B) - B to match.pd
7553 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
7555 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
7557 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
7559 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
7561 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
7563 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
7564 INTEGER_CST@1)): New simplifier.
7566 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
7568 * builtins.c (integer_valued_real_p): Move to fold-const.c.
7569 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
7570 (fold_builtin_ceil, fold_builtin_round): Delete.
7571 (fold_builtin_1): Handle constant trunc, floor, ceil and round
7573 * convert.c (convert_to_real): Remove narrowing of rounding
7575 * fold-const.h (integer_valued_real_unary_p)
7576 (integer_valued_real_binary_p, integer_valued_real_call_p)
7577 (integer_valued_real_single_p, integer_valued_real_p): Declare.
7578 * fold-const.c (tree_single_nonnegative_warnv_p): Move
7579 name_registered_for_update_p check to SSA_NAME case statement.
7580 Don't call tree_simple_nonnegative_warnv_p for SSA names.
7581 (integer_valued_real_unary_p, integer_valued_real_binary_p)
7582 (integer_valued_real_call_p, integer_valued_real_single_p)
7583 (integer_valued_real_invalid_p): New functions.
7584 (integer_valued_real_p): Move from fold-const.c and rework
7585 to call the functions above. Handle SSA names.
7586 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
7587 * gimple-fold.c (gimple_assign_integer_valued_real_p)
7588 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
7589 (gimple_stmt_integer_valued_real_p): New functions.
7590 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
7591 Fold f(x)->x for the same f if x is known to be integer-valued.
7592 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
7593 the result. Canonicalize floor(x) as trunc(x) if x is
7596 2015-10-23 Tom de Vries <tom@codesourcery.com>
7598 * tree-ssa-structalias.c (intra_create_variable_infos): Use
7599 make_constraint_from.
7601 2015-10-23 Tom de Vries <tom@codesourcery.com>
7603 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
7604 setting of is_full_var in case of a single field.
7606 2015-10-22 Martin Sebor <msebor@redhat.com>
7609 * config/i386/i386.opt: Add missing periods to the ends of sentences.
7610 * config/msp430/msp430.opt: Same.
7612 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
7614 * doc/extend.exp (Global Register Variables): Rewrite.
7616 2015-10-22 Jeff Law <law@redhat.com>
7618 * genattrtab.c (main): If we do not have any annul-true or annul-false
7619 slots, then write out a dummy eligible_for_annul_true or
7620 eligible_for_annul_false as needed.
7622 2015-10-22 Nick Clifton <nickc@redhat.com>
7624 * config/msp430/msp430.opt: Add -msilicon-errata and
7625 -msilicon-errata-warn.
7626 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
7628 * doc/invoke.texi: Document new options.
7630 2015-10-22 Richard Biener <rguenther@suse.de>
7632 PR tree-optimization/58497
7633 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
7634 (expand_vector_operations_1): Use it. Lower operations on
7635 all uniform vectors to scalar operations if the HW supports it.
7637 2015-10-22 Richard Biener <rguenther@suse.de>
7639 PR tree-optimization/19049
7640 PR tree-optimization/65962
7641 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
7642 to strided accesses if single-element interleaving doesn't work.
7644 2015-10-22 Richard Biener <rguenther@suse.de>
7648 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
7649 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
7650 (expand_unop): Likewise.
7652 2015-10-22 Richard Biener <rguenther@suse.de>
7654 * fold-const.c (fold_addr_of_array_ref_difference): Properly
7655 convert operands before folding a MINUS_EXPR.
7656 (fold_binary_loc): Move simplification of MINUS_EXPR on
7657 converted POINTER_PLUS_EXPRs ...
7658 * match.pd: ... here.
7660 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
7662 * builtins.c (fold_builtin_tan): Delete.
7663 (fold_builtin_1): Handle constant tan arguments here.
7664 * match.pd: Simplify (tan (atan x)) to x.
7666 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
7668 * builtins.c (fold_builtin_cproj): Delete.
7669 (fold_builtin_1): Handle constant arguments here.
7670 (build_complex_cproj): Move and rename to...
7671 * tree.c: (build_complex_inf): ...this.
7672 * tree.h (build_complex_inf): Declare.
7673 * match.pd: Fold cproj(x)->x if x has no infinity.
7674 Use build_complex_inf for existing cproj rules.
7676 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7679 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
7680 already have a comparison result.
7682 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7685 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
7686 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
7687 (aarch64_classify_address): Likewise.
7688 (aarch64_secondary_reload): Likewise.
7689 (aarch64_override_options_after_change_1): Adjust.
7690 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7691 Use aarch64_nopcrelative_literal_loads.
7692 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7693 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
7696 2015-10-21 Martin Sebor <msebor@redhat.com>
7699 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
7700 (print_filtered_help): Reference aliased option's name and encourage
7701 readers to use it in preference to the alias if the former is not
7702 documented. Mention when using an option is diagnosed.
7703 * gcc.c (display_help): End each sentence with a period.
7705 * common.opt: End each sentence that describes an option with
7707 * config/aarch64/aarch64.opt: Same.
7708 * config/alpha/alpha.opt: Same.
7709 * config/arc/arc.opt: Same.
7710 * config/arm/arm.opt: Same.
7711 * config/avr/avr.opt: Same.
7712 * config/bfin/bfin.opt: Same.
7713 * config/c6x/c6x.opt: Same.
7714 * config/cr16/cr16.opt: Same.
7715 * config/cris/cris.opt: Same.
7716 * config/cris/linux.opt: Same.
7717 * config/darwin.opt: Same.
7718 * config/epiphany/epiphany.opt: Same.
7719 * config/fr30/fr30.opt: Same.
7720 * config/frv/frv.opt: Same.
7721 * config/ft32/ft32.opt: Same.
7722 * config/g.opt: Same.
7723 * config/h8300/h8300.opt: Same.
7724 * config/i386/cygming.opt: Same.
7725 * config/i386/djgpp.opt: Same.
7726 * config/i386/i386.opt: Same.
7727 * config/i386/interix.opt: Same.
7728 * config/i386/mingw-w64.opt: Same.
7729 * config/i386/mingw.opt: Same.
7730 * config/ia64/ia64.opt: Same.
7731 * config/ia64/ilp32.opt: Same.
7732 * config/iq2000/iq2000.opt: Same.
7733 * config/linux.opt: Same.
7734 * config/lm32/lm32.opt: Same.
7735 * config/lynx.opt: Same.
7736 * config/m32c/m32c.opt: Same.
7737 * config/m32r/m32r.opt: Same.
7738 * config/m68k/ieee.opt: Same.
7739 * config/m68k/m68k.opt: Same.
7740 * config/mcore/mcore.opt: Same.
7741 * config/mep/mep.opt: Same.
7742 * config/microblaze/microblaze.opt: Same.
7743 * config/mips/mips.opt: Same.
7744 * config/mmix/mmix.opt: Same.
7745 * config/mn10300/mn10300.opt: Same.
7746 * config/moxie/moxie.opt: Same.
7747 * config/msp430/msp430.opt: Same.
7748 * config/nios2/elf.opt: Same.
7749 * config/nios2/nios2.opt: Same.
7750 * config/nvptx/nvptx.opt: Same.
7751 * config/pa/pa-hpux.opt: Same.
7752 * config/pa/pa-hpux1010.opt: Same.
7753 * config/pa/pa-hpux1111.opt: Same.
7754 * config/pa/pa-hpux1131.opt: Same.
7755 * config/pa/pa.opt: Same.
7756 * config/pa/pa64-hpux.opt: Same.
7757 * config/pdp11/pdp11.opt: Same.
7758 * config/rl78/rl78.opt: Same.
7759 * config/rs6000/476.opt: Same.
7760 * config/rs6000/aix64.opt: Same.
7761 * config/rs6000/darwin.opt: Same.
7762 * config/rs6000/linux64.opt: Same.
7763 * config/rs6000/rs6000.opt: Same.
7764 * config/rs6000/sysv4.opt: Same.
7765 * config/s390/s390.opt: Same.
7766 * config/s390/tpf.opt: Same.
7767 * config/sh/sh.opt: Same.
7768 * config/sol2.opt: Same.
7769 * config/sparc/long-double-switch.opt: Same.
7770 * config/sparc/sparc.opt: Same.
7771 * config/spu/spu.opt: Same.
7772 * config/stormy16/stormy16.opt: Same.
7773 * config/tilegx/tilegx.opt: Same.
7774 * config/tilepro/tilepro.opt: Same.
7775 * config/v850/v850.opt: Same.
7776 * config/vax/vax.opt: Same.
7777 * config/visium/visium.opt: Same.
7778 * config/vms/vms.opt: Same.
7779 * config/vxworks.opt: Same.
7780 * config/xtensa/xtensa.opt: Same.
7782 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7783 Sebastian Pop <s.pop@samsung.com>
7785 * graphite-scop-detection.c (parameter_index_in_region): Update call to
7786 invariant_in_sese_p_rec.
7787 * graphite-sese-to-poly.c (extract_affine): Same.
7788 * sese.c (invariant_in_sese_p_rec): Pass in an extra
7789 parameter has_vdefs.
7790 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
7791 variable depends on virtual definitions in the current region.
7792 * sese.h (invariant_in_sese_p_rec): Update declaration.
7794 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7795 Sebastian Pop <s.pop@samsung.com>
7797 * graphite-scop-detection.c (build_scops): Do not handle scops
7798 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
7799 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
7801 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
7803 * config.in: Regenerate.
7804 * configure: Regenerate.
7805 * configure.ac (CHECKING_P): Define.
7806 * system.h: Use CHECKING_P.
7808 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7811 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
7812 is negative we don't know the type.
7813 (check_stmt_for_type_change): Skip constructors of non-polymorphic
7814 types as those won't help devirutalization.
7816 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7818 * fold-const.c (operand_equal_p): Add code matching empty constructors.
7820 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
7822 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
7824 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
7825 Add comments on sign of the result.
7826 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
7827 Recurse on operand #1 instead of operand #0.
7828 <CEIL_MOD_EXPR>: Do not recurse.
7829 <ROUND_MOD_EXPR>: Likewise.
7831 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7833 * cfgrtl.c (pass_free_cfg::execute): Adjust.
7834 * final.c (dbr_sequence_length): Always define.
7835 (shorten_branches): Adjust.
7836 * genattr-common.c (main): Always define DELAY_SLOTS.
7837 * genattr.c (main): Unconditionally declare functions and define
7838 macros related to delay slots.
7839 * genattrtab.c (write_eligible_delay): Adjust.
7840 (main): Always write out delay slot functions.
7841 * opts.c (default_options_table): Adjust.
7842 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
7843 (redirect_with_delay_list_safe_p): Likewise.
7844 (fill_simple_delay_slots): Likewise.
7845 (fill_slots_from_thread): Likewise.
7846 (make_return_insns): Likewise.
7847 (dbr_schedule): Likewise.
7848 (rest_of_handle_delay_slots): Likewise.
7849 (pass_delay_slots::gate): Likewise.
7850 * toplev.c (process_options): Likewise.
7852 2015-10-21 Richard Henderson <rth@redhat.com>
7854 * targhooks.c (default_addr_space_pointer_mode): Remove check
7855 for generic address space.
7856 (default_addr_space_address_mode): Likewise.
7857 (default_addr_space_valid_pointer_mode): Likewise.
7858 (default_addr_space_legitimate_address_p): Likewise.
7859 (default_addr_space_legitimize_address): Likewise.
7860 * target.def (addr_space.pointer_mode): Update documentation
7861 of default behavior.
7862 (addr_space.address_mode): Likewise.
7865 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
7868 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7870 * builtins.c (fold_builtin_cabs): Delete.
7871 (fold_builtin_1): Update accordingly. Handle constant arguments here.
7872 * match.pd: Add rules previously handled by fold_builtin_cabs.
7874 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7876 * fold-const.h (fold_strip_sign_ops): Delete.
7877 * fold-const.c (fold_strip_sign_ops): Likewise.
7878 (fold_unary_loc, fold_binary_loc): Remove calls to it.
7879 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
7880 (fold_builtin_ccos): Delete.
7881 (fold_builtin_pow): Don't call fold_strip_sign_ops.
7882 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
7883 Remove fndecl argument.
7884 (fold_builtin_1): Update calls accordingly. Handle constant
7885 cos, cosh, ccos and ccosh here.
7887 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7889 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
7890 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
7891 * common.opt (fssa-backprop): New option.
7892 * fold-const.h (negate_mathfn_p): Declare.
7893 * fold-const.c (negate_mathfn_p): Make public.
7894 * timevar.def (TV_TREE_BACKPROP): New.
7895 * tree-pass.h (make_pass_backprop): Declare.
7896 * passes.def (pass_backprop): Add.
7897 * gimple-ssa-backprop.c: New file.
7899 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7900 Sebastian Pop <s.pop@samsung.com>
7902 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
7903 Do not call create_empty_if_region_on_edge when cond_expr is true.
7904 (translate_isl_ast_node_for): Check whether a guard has been generated.
7906 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7908 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
7909 (operator=): Removed.
7910 (dr_info): Make alias_set number the last argument with default
7911 value of invalid_alias_set.
7912 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
7914 (rewrite_reductions_out_of_ssa): Iterate only through the
7915 basic blocks which are inside region.
7916 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
7917 * sese.h (struct sese_l): Removed assignment operator.
7918 (split_region_for_bb): Removed dead code.
7920 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7922 * graphite-poly.h (struct dr_info): Removed conversion constructor.
7923 (struct scop): Renamed scop::region to scop::scop_info
7924 (scop_set_region): Same.
7925 (SCOP_REGION): Removed
7926 (SCOP_CONTEXT): Removed.
7927 (POLY_SCOP_P): Removed.
7928 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
7929 Rename scop->region to scop->scop_info.
7930 (add_parameters_to_ivs_params): Same.
7931 (graphite_regenerate_ast_isl): Same.
7932 * graphite-poly.c (new_scop): Same.
7934 (print_scop_params): Same.
7935 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
7936 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
7937 (dot_all_scops_1): Rename scop->region to scop->scop_info.
7938 (scop_detection::nb_pbbs_in_loops): Same.
7939 (find_scop_parameters): Same.
7940 (try_generate_gimple_bb): Same.
7941 (gather_bbs::before_dom_children): Same.
7942 (gather_bbs::after_dom_children): Same.
7943 (build_scops): Same.
7944 * graphite-sese-to-poly.c (build_scop_scattering): Same.
7945 (extract_affine_chrec): Same.
7946 (extract_affine): Same.
7947 (set_scop_parameter_dim): Same.
7948 (build_loop_iteration_domains): Same.
7949 (create_pw_aff_from_tree): Same.
7950 (add_param_constraints): Same.
7951 (build_scop_iteration_domain): Same.
7952 (build_scop_drs): Same.
7953 (analyze_drs_in_stmts): Same.
7954 (insert_out_of_ssa_copy_on_edge): Same.
7955 (rewrite_close_phi_out_of_ssa):Same.
7956 (rewrite_reductions_out_of_ssa):Same.
7957 (handle_scalar_deps_crossing_scop_limits):Same.
7958 (rewrite_cross_bb_scalar_deps):Same.
7959 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
7960 (build_poly_scop):Same.
7961 (build_alias_set): Use pointer to dr_info.
7962 * graphite.c (print_graphite_scop_statistics):
7963 (graphite_transform_loops):
7964 * sese.h (struct sese_l): Remove conversion constructor.
7966 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7969 * tree.c (verify_type): Verify that TYPE_MODE match
7970 between TYPE_CANONICAL and type.
7971 * expr.c (store_expr_with_bounds): Revert my previous change.
7972 * expmed.c (store_bit_field_1): Revert prevoius change.
7973 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
7974 to match for all types.
7976 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
7978 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
7981 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
7983 * doc/tm.texi: Regenerated.
7984 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
7985 * stor-layout.c (layout_type): Use mode to get vector mask size.
7986 * target.def (get_mask_mode): New.
7987 * targhooks.c (default_get_mask_mode): New.
7988 * targhooks.h (default_get_mask_mode): New.
7989 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
7991 * tree.c (MAX_BOOL_CACHED_PREC): New.
7992 (nonstandard_boolean_type_cache): New.
7993 (build_nonstandard_boolean_type): New.
7994 (make_vector_type): Vector mask has no canonical type.
7995 (build_truth_vector_type): New.
7996 (build_same_sized_truth_vector_type): New.
7997 (truth_type_for): Support vector masks.
7998 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
7999 (build_truth_vector_type): New.
8000 (build_same_sized_truth_vector_type): New.
8001 (build_nonstandard_boolean_type): New.
8002 * tree-cfg.c (verify_gimple_comparison) Require boolean
8003 vector type for vector comparison.
8004 (verify_gimple_assign_ternary): Likewise.
8005 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
8007 * tree-vect-stmts.c (vectorizable_condition): Use boolean
8008 vector type for vector comparison.
8009 * tree-vect-generic.c (elem_op_func): Add new operand to hold
8011 (do_unop): Adjust to modified function type.
8012 (do_binop): Likewise.
8013 (do_plus_minus): Likewise.
8014 (do_negate); Likewise.
8015 (expand_vector_piecewise): Likewise.
8016 (do_cond): Likewise.
8017 (do_compare): Use comparison instead of condition.
8018 (expand_vector_divmod): Use boolean vector type for comparison.
8019 (expand_vector_operations_1): Skip scalar mask operations.
8021 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
8023 * omp-low.c (simd_clone_create): Set in_other_partition
8026 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
8028 * doc/extend.exp (Local Register Variables): Rewrite.
8030 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8032 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
8033 and x*x in cases where the operands are sign ops. Extend these
8034 rules to handle copysign as a sign op (including for cos, cosh
8035 and pow, which already treated negate and abs as sign ops).
8037 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
8040 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
8041 for 64-bit MS_ABI targets also when default incoming stack boundary
8044 2015-10-21 Richard Biener <rguenther@suse.de>
8046 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
8047 cond stmts, enhanced and split out from ...
8048 (vn_phi_eq): ... here.
8050 2015-10-21 Richard Biener <rguenther@suse.de>
8053 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
8054 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
8055 (tree_single_nonnegative_warnv_p): ... here. For SSA names
8056 make sure they are not registered for update.
8058 2015-10-21 Richard Biener <rguenther@suse.de>
8060 PR tree-optimization/68026
8061 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
8062 unsigned VARYING values.
8064 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
8066 * asan.c (asan_emit_stack_protection): Don't pass local stack to
8067 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
8068 NULL and use local stack than.
8069 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
8070 in addition to __asan_init.
8071 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
8072 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
8073 * asan.h (asan_intercepted_p): Handle new string builtins.
8074 * ubsan.c (ubsan_use_new_style_p): New function.
8075 (ubsan_instrument_float_cast): If location is unknown, assign
8076 input_location to loc. Propagate loc to ubsan_create_data if
8077 ubsan_use_new_style_p returned true.
8079 2015-10-21 Jeff Law <law@redhat.com>
8081 * Makefile.in (OBJS): Remove sched-vis.c
8082 * sched-vis.c: Removed. Code moved into...
8083 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
8084 * rtl.h: Remove prototypes for functions now living in print-rtl.c
8085 * print-rtl.h Add prototypes for new functions in print-rtl.c.
8086 * auto-inc-dec.c: Include print-rtl.h
8087 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
8088 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
8090 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
8093 2015-10-21 Richard Biener <rguenther@suse.de>
8094 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8096 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
8098 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
8099 about signed left shift stronger and clarify the cases when they're
8101 Move (a * (1 << b)) is (a << b) to match.pd.
8102 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
8103 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
8104 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
8106 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
8108 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
8109 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
8110 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
8112 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
8114 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
8116 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
8117 Szabolcs Nagy <szabolcs.nagy@arm.com>
8118 Alan Modra <amodra@gmail.com>
8120 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
8121 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
8122 (LINK_SPEC): Add %(link_secure_plt).
8123 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
8124 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
8126 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
8127 Szabolcs Nagy <szabolcs.nagy@arm.com>
8129 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
8130 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
8132 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8134 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
8136 (fusion_load_store): Use it.
8137 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
8138 ldp and stp in VD modes.
8139 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
8140 (store_pair<mode>, VD): Likewise.
8142 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
8144 PR rtl-optimization/67609
8145 * lra-splill.c (lra_final_code_change): Don't remove all
8148 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8150 * simplify-rtx.c (simplify_binary_operation): If either operand was
8151 a constant pool reference use them if all other simplifications failed.
8153 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8155 * config/aarch64/aarch64.md
8156 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
8157 * config/aarch64/aarch64-simd.md
8158 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
8159 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
8160 (aarch64_fpconst_pow_of_2): New function.
8161 (aarch64_vec_fpconst_pow_of_2): Likewise.
8162 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
8164 (aarch64_vec_fpconst_pow_of_2): Likewise.
8165 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
8166 (aarch64_fp_vec_pow2): Likewise.
8168 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
8170 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
8171 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
8172 * config/alpha/alpha.c (alpha_function_arg_advance): Update
8173 ALPHA_ARG_SIZE usage.
8174 (alpha_arg_partial_bytes): Ditto.
8176 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
8179 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
8180 error_mark_node decls.
8182 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
8186 * common/config/i386/i386-common.c (ix86_handle_option): Remove
8187 OPT_miamcu handling.
8188 * config/i386/i386.c (PTA_NO_80387): New macro.
8189 (processor_alias_table): Add PTA_NO_80387 to lakemont.
8190 (ix86_option_override_internal): Update MASK_80387 from
8191 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
8192 SSE math only if 80387 is supported. Don't change
8194 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
8196 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
8197 if TARGET_80387 is true and TARGET_IAMCU is false.
8198 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
8199 is true and TARGET_IAMCU_P is false.
8201 2015-10-20 Richard Biener <rguenther@suse.de>
8203 PR tree-optimization/68017
8204 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
8206 2015-10-20 Martin Liska <mliska@suse.cz>
8208 * cgraphclones.c (cgraph_node::create_virtual_clone):
8209 Verify cgraph_node.local.versionable instead of calling
8210 tree_versionable_function_p.
8211 * ipa-cp.c (determine_versionability): Save the information
8212 to ipa_node_params summary.
8213 (ipcp_versionable_function_p): Use it.
8214 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
8215 (ipcp_generate_summary): Do not compute cgraph_node
8217 * ipa-inline-analysis.c (inline_generate_summary): Compute
8218 versionability for all cgraph nodes.
8219 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
8220 ipa_node_params::versionability.
8221 * ipa-prop.h (struct ipa_node_params): Declare it.
8223 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8226 * varasm.c (assemble_variable): Move special vtv handling to..
8227 (handle_vtv_comdat_sections): .. here. New function.
8228 (output_object_block): Handle vtv sections.
8230 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
8233 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
8235 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
8237 * doc/extend.texi: Update documentation WRT inline functions.
8239 2015-10-20 Alan Modra <amodra@gmail.com>
8242 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
8243 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
8244 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8246 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
8248 PR rtl-optimization/66790
8249 * df.h (DF_MIR): New macro.
8250 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
8251 (DF_MIR_INFO_BB): New macro.
8252 (DF_MIR_IN, DF_MIR_OUT): New macros.
8253 (struct df_mir_bb_info): New.
8254 (df_mir): New macro.
8255 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
8257 (df_mir_get_bb_info): New.
8258 * df-problems.c (struct df_mir_problem_data): New.
8259 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
8260 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
8261 df_mir_confluence_0, df_mir_confluence_n,
8262 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
8263 df_mir_bottom_dump, df_mir_verify_solution_start,
8264 df_mir_verify_solution_end): New.
8266 (df_mir_add_problem, df_mir_simulate_one_insn): New.
8267 * timevar.def (TV_DF_MIR): New.
8268 * ree.c: Include bitmap.h
8269 (add_removable_extension): Add an INIT_REGS parameter. Use it
8270 to skip zero-extensions that may get an uninitialized register.
8271 (find_removable_extensions): Compute must-initialized registers
8272 using the MIR dataflow problem. Update the call to
8273 add_removable_extension.
8274 (find_and_remove_re): Call df_mir_add_problem.
8276 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
8278 * common/config/mn10300/mn10300-common.c
8279 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
8280 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
8282 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
8284 * doc/extend.texi (Explicit Register Variables): Simplify and
8285 avoid unnecessary and confusion abbreviations. Update cross
8287 doc/implement-c.tex: Update cross reference.
8289 2015-10-19 Jeff Law <law@redhat.com>
8291 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
8292 that create irreducible loops unless the path elimiantes a multiway
8295 2015-10-19 Richard Biener <rguenther@suse.de>
8297 PR tree-optimization/67975
8298 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
8299 * tree-cfg.c (extract_true_false_controlled_edges): Split out
8300 core worker from ...
8301 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
8302 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
8303 instead of block number for PHIs with two or one args.
8304 (vn_phi_eq): Compare edge predicates of PHIs that are in different
8307 2015-10-19 Richard Biener <rguenther@suse.de>
8309 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
8310 (gimple_stmt_nonnegative_warnv_p): Use it.
8311 * match.pd (CPROJ): New operator list.
8312 (cproj (complex ...)): Move simplifications from ...
8313 * builtins.c (fold_builtin_cproj): ... here.
8315 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8317 * config/i386/i386.c (ix86_expand_vector_move): Use
8318 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
8321 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8323 * doc/invoke.texi: Replace @optindex with @opindex.
8325 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8328 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
8329 arch= is set, clear all bits in x_ix86_isa_flags, except for
8330 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
8332 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
8335 * common.opt (fkeep-static-functions): New option.
8336 * doc/invoke.texi: Document it.
8337 * cgraphunit.c (cgraph_node::finalize_function): Use it.
8339 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8341 * sched-int.h (struct autopref_multipass_data_): Remove offset
8342 field. Add min_offset, max_offset, multi_mem_insn_p fields.
8343 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
8344 (autopref_multipass_init): Use it. Handle PARALLEL sets.
8345 (autopref_rank_data): New function.
8346 (autopref_rank_for_schedule): Use it.
8347 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
8349 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
8352 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
8354 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8356 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
8357 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
8358 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
8359 (STANDARD_STARTFILE_PREFIX_1): New.
8360 (STANDARD_STARTFILE_PREFIX_2): New.
8362 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8364 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
8365 (darwin_driver_init): Note a version-min when provided on the c/l.
8366 * config/darwin.h (%darwin_minversion): Remove.
8367 * config/i386/darwin.h: Likewise.
8368 * config/rs6000/darwin.h: Likewise.
8369 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
8370 rather than an arbitrary constant.
8372 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8374 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
8375 PPC, detect conflicts between -arch and multilib settings. Detect
8376 and warn about conflicts between multiple -arch definitions.
8378 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8380 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
8382 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8384 * lra-constraints.c (add_next_usage_insn): Change argument type
8385 from rtx to rtx_insn *.
8387 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
8389 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
8392 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
8394 * config/tilepro/gen-mul-tables.cc: Adjust include files.
8395 * config/tilegx/mul-tables.c: Regenerate.
8396 * config/tilepro/mul-tables.c: Regenerate.
8398 * config/tilegx/tilegx-c.c: Adjust include files.
8399 * config/tilegx/tilegx.c: Likewise.
8400 * config/tilepro/tilepro-c.c: Likewise.
8401 * config/tilepro/tilepro.c: Likewise.
8402 * config/aarch64/aarch64-builtins.c: Likewise.
8403 * config/aarch64/aarch64.c: Likewise.
8404 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8405 * config/alpha/alpha.c: Likewise.
8406 * config/arc/arc.c: Likewise.
8407 * config/arm/aarch-common.c: Likewise.
8408 * config/arm/arm-builtins.c: Likewise.
8409 * config/arm/arm-c.c: Likewise.
8410 * config/arm/arm.c: Likewise.
8411 * config/avr/avr-c.c: Likewise.
8412 * config/avr/avr-devices.c: Likewise.
8413 * config/avr/avr-log.c: Likewise.
8414 * config/avr/avr.c: Likewise.
8415 * config/bfin/bfin.c: Likewise.
8416 * config/c6x/c6x.c: Likewise.
8417 * config/cr16/cr16.c: Likewise.
8418 * config/cris/cris.c: Likewise.
8419 * config/darwin-c.c: Likewise.
8420 * config/darwin-driver.c: Likewise.
8421 * config/darwin.c: Likewise.
8422 * config/default-c.c: Likewise.
8423 * config/epiphany/epiphany.c: Likewise.
8424 * config/epiphany/mode-switch-use.c: Likewise.
8425 * config/epiphany/resolve-sw-modes.c: Likewise.
8426 * config/fr30/fr30.c: Likewise.
8427 * config/frv/frv.c: Likewise.
8428 * config/ft32/ft32.c: Likewise.
8429 * config/glibc-c.c: Likewise.
8430 * config/h8300/h8300.c: Likewise.
8431 * config/i386/host-cygwin.c: Likewise.
8432 * config/i386/host-mingw32.c: Likewise.
8433 * config/i386/i386-c.c: Likewise.
8434 * config/i386/i386.c: Likewise.
8435 * config/i386/msformat-c.c: Likewise.
8436 * config/i386/winnt-cxx.c: Likewise.
8437 * config/i386/winnt-stubs.c: Likewise.
8438 * config/i386/winnt.c: Likewise.
8439 * config/ia64/ia64-c.c: Likewise.
8440 * config/ia64/ia64.c: Likewise.
8441 * config/iq2000/iq2000.c: Likewise.
8442 * config/lm32/lm32.c: Likewise.
8443 * config/m32c/m32c-pragma.c: Likewise.
8444 * config/m32c/m32c.c: Likewise.
8445 * config/m32r/m32r.c: Likewise.
8446 * config/mcore/mcore.c: Likewise.
8447 * config/mep/mep-pragma.c: Likewise.
8448 * config/mep/mep.c: Likewise.
8449 * config/microblaze/microblaze-c.c: Likewise.
8450 * config/microblaze/microblaze.c: Likewise.
8451 * config/mips/mips-tables.opt
8452 * config/mips/mips.c: Likewise.
8453 * config/mmix/mmix.c: Likewise.
8454 * config/mn10300/mn10300.c: Likewise.
8455 * config/moxie/moxie.c: Likewise.
8456 * config/msp430/msp430-c.c: Likewise.
8457 * config/msp430/msp430.c: Likewise.
8458 * config/nds32/nds32-cost.c: Likewise.
8459 * config/nds32/nds32-fp-as-gp.c: Likewise.
8460 * config/nds32/nds32-intrinsic.c: Likewise.
8461 * config/nds32/nds32-isr.c: Likewise.
8462 * config/nds32/nds32-md-auxiliary.c: Likewise.
8463 * config/nds32/nds32-memory-manipulation.c: Likewise.
8464 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8465 * config/nds32/nds32-predicates.c: Likewise.
8466 * config/nds32/nds32.c: Likewise.
8467 * config/nios2/nios2.c: Likewise.
8468 * config/nvptx/mkoffload.c: Likewise.
8469 * config/nvptx/nvptx.c: Likewise.
8470 * config/pa/pa.c: Likewise.
8471 * config/pdp11/pdp11.c: Likewise.
8472 * config/rl78/rl78-c.c: Likewise.
8473 * config/rl78/rl78.c: Likewise.
8474 * config/rs6000/host-darwin.c: Likewise.
8475 * config/rs6000/rs6000-c.c: Likewise.
8476 * config/rs6000/rs6000-linux.c: Likewise.
8477 * config/rs6000/rs6000.c: Likewise.
8478 * config/rx/rx.c: Likewise.
8479 * config/s390/s390-c.c: Likewise.
8480 * config/s390/s390.c: Likewise.
8481 * config/sh/sh-c.c: Likewise.
8482 * config/sh/sh-mem.cc: Likewise.
8483 * config/sh/sh.c: Likewise.
8484 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8485 * config/sh/sh_treg_combine.cc: Likewise.
8486 * config/sol2-c.c: Likewise.
8487 * config/sol2-cxx.c: Likewise.
8488 * config/sol2-stubs.c: Likewise.
8489 * config/sol2.c: Likewise.
8490 * config/sparc/sparc-c.c: Likewise.
8491 * config/sparc/sparc.c: Likewise.
8492 * config/spu/spu-c.c: Likewise.
8493 * config/spu/spu.c: Likewise.
8494 * config/stormy16/stormy16.c: Likewise.
8495 * config/v850/v850-c.c: Likewise.
8496 * config/v850/v850.c: Likewise.
8497 * config/vax/vax.c: Likewise.
8498 * config/visium/visium.c: Likewise.
8499 * config/vms/vms-c.c: Likewise.
8500 * config/vms/vms.c: Likewise.
8501 * config/vxworks.c: Likewise.
8502 * config/winnt-c.c: Likewise.
8503 * config/xtensa/xtensa.c: Likewise.
8505 2015-10-16 Christian Bruel <christian.bruel@st.com>
8508 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
8509 (FUNCTION_BOUNDARY_P): New macro:
8510 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
8512 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
8513 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
8514 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
8515 * function.c (allocate_struct_function): Call
8516 relayout_function hook.
8517 * passes.c (rest_of_decl_compilation): Likewise.
8519 2015-10-16 Christian Bruel <christian.bruel@st.com>
8522 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
8523 * config/arm/arm.c (arm_option_override_internal): Call
8524 arm_override_options_after_change_1.
8525 (arm_override_options_after_change): New function.
8526 (arm_override_options_after_change_1): Likewise.
8527 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
8529 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8532 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8535 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
8537 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
8538 argument is an ADDR_EXPR.
8540 2015-10-16 Richard Biener <rguenther@suse.de>
8542 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
8543 and get rid of force_gimple_operand_gsi.
8544 (gimple_fold_builtin_memory_chk): Likewise.
8545 (gimple_fold_builtin_stxcpy_chk): Likewise.
8546 (rewrite_to_defined_overflow): Likewise.
8547 (gimple_convert_to_ptrofftype): New function.
8548 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
8550 2015-10-16 Richard Biener <rguenther@suse.de>
8552 * tree-nested.h (build_addr): Adjust prototype.
8553 * tree-nested.c (build_addr): Remove context argument and use
8555 (get_static_chain): Adjust calls to build_addr.
8556 (convert_nl_goto_reference): Likewise.
8557 (convert_tramp_reference_op): Likewise.
8558 (finalize_nesting_tree_1): Likewise.
8559 * value-prof.c (gimple_ic): Likewise.
8560 * gimple-low.c (lower_builtin_setjmp): Likewise.
8561 * tree-parloops.c (take_address_of): Likewise.
8562 (create_call_for_reduction_1): Likewise.
8563 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
8564 (gimple_gen_ic_func_profiler): Likewise.
8566 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8568 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8571 2015-10-16 Michael Collison <michael.collison@linaro.org>
8572 Andrew Pinski <andrew.pinski@caviumnetworks.com>
8574 * match.pd ((x < y) && (x < z) -> x < min (y,z),
8575 (x > y) and (x > z) -> x > max (y,z))
8577 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
8578 Szabolcs Nagy <szabolcs.nagy@arm.com>
8580 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
8581 (DYNAMIC_LINKER): Renamed to ...
8582 (GLIBC_DYNAMIC_LINKER): This.
8583 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
8585 2015-10-15 Marek Polacek <polacek@redhat.com>
8587 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
8588 gimple_call_builtin instead of is_gimple_call.
8590 2015-10-15 Richard Biener <rguenther@suse.de>
8592 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
8594 2015-10-15 Richard Biener <rguenther@suse.de>
8596 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
8597 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
8598 * tree-vect-loop.c (get_initial_def_for_induction): Drop
8599 use of force_gimple_operand in favor of gimple_build.
8600 Use vect_get_new_ssa_name.
8601 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
8602 (vectorizable_mask_load_store): Likewise.
8603 (vectorizable_call): Likewise.
8604 (vectorizable_store): Likewise.
8605 (vectorizable_load): Likewise.
8606 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
8608 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
8610 PR tree-optimization/67945
8611 * tree-pass.h (PROP_gimple_opt_math): New property flag.
8612 * generic-match-head.c (canonicalize_math_p): New function.
8613 * gimple-match-head.c: Include tree-pass.h.
8614 (canonicalize_math_p): New function.
8615 * match.pd: Group math built-in rules into simplifications
8616 and canonicalizations. Guard the latter with canonicalize_math_p.
8617 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
8618 PROP_gimple_opt_math property.
8620 2015-10-15 Marek Polacek <polacek@redhat.com>
8622 PR tree-optimization/67953
8623 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
8625 2015-10-15 Jiong Wang <jiong.wang@arm.com>
8627 * config.gcc: Recognize "." in architecture base name for AArch64.
8629 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
8631 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
8633 * config/mips/mips.c (mips_setup_incoming_varargs): Use
8634 ROUND_DOWN to calculate off.
8635 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
8636 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
8639 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
8641 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
8643 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
8644 Torvald Riegel <triegel@redhat.com>
8647 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
8648 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8649 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
8650 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
8651 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
8652 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8653 trechkpt, treclaim, tsr, ttest): New define_expands.
8654 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
8655 __TM_FENCE__ for htm.
8656 * doc/extend.texi: Update documentation for htm builtins.
8658 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
8661 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
8662 REG_CFA_EXPRESSION to aligned SSE stores.
8664 2015-10-14 Jeff Law <law@redhat.com>
8666 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
8667 num_threaded_edges for successful FSM threads too.
8669 2015-10-14 Richard Biener <rguenther@suse.de>
8671 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
8672 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
8673 (vect_get_vec_def_for_operand): Remove unused parameter.
8674 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
8675 (vect_create_epilog_for_reduction): Likewise.
8676 (vectorizable_reduction): Likewise.
8677 (vectorizable_live_operation): Likewise.
8678 * tree-vect-patterns.c (type_conversion_p): Likewise.
8679 (vect_recog_vector_vector_shift_pattern): Likewise.
8680 (check_bool_pattern): Likewise.
8681 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8682 (vect_analyze_slp_cost_1): Likewise.
8683 * tree-vect-stmts.c (process_use): Likewise.
8684 (vect_get_vec_def_for_operand): Do not handle reductions.
8685 (vect_get_vec_defs): Adjust.
8686 (vectorizable_mask_load_store): Likewise.
8687 (vectorizable_call): Likewise.
8688 (vectorizable_simd_clone_call): Likewise.
8689 (vect_get_loop_based_defs): Likewise.
8690 (vectorizable_conversion): Likewise.
8691 (vectorizable_assignment): Likewise.
8692 (vectorizable_shift): Likewise.
8693 (vectorizable_operation): Likewise.
8694 (vectorizable_store): Likewise.
8695 (vectorizable_load): Likewise.
8696 (vect_is_simple_cond): Likewise.
8697 (vectorizable_condition): Likewise.
8698 (vect_is_simple_use): Remove unused parameters.
8699 (vect_is_simple_use_1): Adjust and rename.
8701 2015-10-14 Richard Biener <rguenther@suse.de>
8703 PR tree-optimization/67915
8704 * match.pd: Handle comparisons of addresses of STRING_CSTs.
8705 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
8706 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
8707 stmt folding in favor of GIMPLE one.
8709 2015-10-14 Marek Polacek <polacek@redhat.com>
8711 PR tree-optimization/67815
8712 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
8713 (reassociate_bb): Call it.
8715 2015-10-14 Richard Biener <rguenther@suse.de>
8717 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8718 Reset info at start.
8719 (vect_analyze_group_access_1): Add debug print.
8720 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
8721 (vect_compute_single_scalar_iteration_cost): ... to this.
8722 (vect_analyze_loop_2): Adjust.
8723 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
8724 * tree-vectorizer.h: ... here.
8725 (add_stmt_info_to_vec): Remove.
8726 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
8728 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
8730 * targhooks.c (default_target_option_pragma_parse): Do not warn if
8731 called on behalf of "#pragma GCC pop_options".
8733 2015-10-14 Tom de Vries <tom@codesourcery.com>
8735 * cfganal.c (verify_no_unreachable_blocks): New function.
8736 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
8737 verify_no_unreachable_blocks.
8738 cfganal.h (verify_no_unreachable_blocks): Declare.
8740 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
8742 * common.opt: Add flag_checking.
8743 * system.h (CHECKING_P): Define.
8745 2015-10-13 Jakub Jelinek <jakub@redhat.com>
8746 Aldy Hernandez <aldyh@redhat.com>
8747 Ilya Verbin <ilya.verbin@intel.com>
8749 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
8750 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
8751 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
8752 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
8753 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
8754 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
8755 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
8756 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
8757 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
8758 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
8759 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
8760 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
8761 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
8762 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
8763 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
8764 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8765 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8766 (struct cgraph_simd_clone_arg): Adjust comment.
8767 * coretypes.h (struct gomp_ordered): New forward decl.
8768 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
8769 set critical clauses to it.
8770 (gimple_build_omp_ordered): Return gomp_ordered * instead of
8771 gimple *. Add CLAUSES argument, set ordered clauses to it.
8772 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
8774 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
8775 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
8776 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
8777 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
8778 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
8779 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
8780 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
8781 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
8783 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
8784 (gomp_critical): Add clauses field.
8785 (gomp_ordered): New struct.
8786 (is_a_helper <gomp_ordered *>::test): New inline.
8787 (gimple_build_omp_critical): Add CLAUSES argument.
8788 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
8789 instead of gimple *.
8790 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
8791 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
8792 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
8793 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
8795 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
8796 (dump_gimple_omp_target): Handle enter data and exit data.
8797 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
8798 (dump_gimple_omp_critical): Print clauses.
8799 (dump_gimple_omp_ordered): New function.
8800 (dump_gimple_omp_task): Handle taskloop.
8801 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
8803 * gimple-walk.c (walk_gimple_op): Walk clauses on
8804 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
8805 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
8806 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
8807 (struct gimplify_omp_ctx): Add loop_iter_var,
8808 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
8809 and target_firstprivatize_array_bases fields.
8810 (delete_omp_context): Release loop_iter_var.
8811 (gimplify_bind_expr): Handle ORT_NONE.
8812 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
8813 ORT_COMBINED_TARGET.
8814 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
8815 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
8816 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
8817 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
8818 ctx->target_map_scalars_firstprivate.
8819 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
8820 data sharing clauses. For data sharing clause with VLA decl
8821 on omp target/target data don't add firstprivate for the pointer.
8822 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
8823 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
8824 the addition of ORT_COMBINED_TARGET.
8825 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
8826 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
8827 pointers as zero length array sections and
8828 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
8830 (omp_check_private): Handle omp_member_access_dummy_var vars.
8831 (find_decl_expr): New function.
8832 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
8833 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
8834 Handle OMP_CLAUSE_GANG separately. Handle
8835 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8836 clauses. Diagnose linear clause on combined
8837 distribute {, parallel for} simd construct, unless it is the loop
8838 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
8839 Handle map clauses with COMPONENT_REF. Initialize
8840 ctx->target_map_scalars_firstprivate,
8841 ctx->target_firstprivatize_array_bases and
8842 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
8843 linear clause even to target region if combined. Remove
8844 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
8845 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
8846 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
8847 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
8848 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
8849 For linear clause on worksharing loop combined with parallel add
8850 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
8851 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
8852 omp_member_access_dummy_var vars. Add lastprivate clause to outer
8854 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
8855 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
8856 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
8858 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
8859 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
8860 in target body. Handle removal of struct mapping if struct is not
8861 seen in target body. Remove GOMP_MAP_STRUCT map clause on
8862 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
8863 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
8864 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
8865 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
8866 clause appear together. Handle
8867 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
8868 clause if it has map-type-modifier always. Handle
8869 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8871 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
8872 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
8874 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
8875 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
8876 iterators in doacross loops.
8877 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
8878 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
8879 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
8880 for the addition of ORT_COMBINED_TARGET.
8881 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
8882 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
8883 and OMP_TARGET_EXIT_DATA.
8884 (gimplify_omp_ordered): New function.
8885 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
8886 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
8887 Gimplify clauses on OMP_CRITICAL.
8888 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
8889 expand_GOMP_SIMD_ORDERED_END): New functions.
8890 * internal-fn.def (GOMP_SIMD_ORDERED_START,
8891 GOMP_SIMD_ORDERED_END): New internal functions.
8892 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
8893 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
8894 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
8895 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
8896 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
8897 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
8898 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
8899 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
8900 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
8901 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
8902 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
8903 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
8904 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
8905 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
8907 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
8908 GOMP_target_data_41, adjust type.
8909 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
8910 GOMP_target_update_41, adjust type.
8911 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
8913 (struct omp_for_data): Add ordered and simd_schedule fields.
8914 (omp_member_access_dummy_var, unshare_and_remap_1,
8915 unshare_and_remap, is_taskloop_ctx): New functions.
8916 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
8917 (extract_omp_for_data): Handle taskloops and doacross loops
8918 and simd schedule modifier.
8919 (omp_adjust_chunk_size): New function.
8920 (get_ws_args_for): Use it.
8921 (lookup_sfield): Change first argument to splay_tree_key,
8922 add overload with first argument tree.
8923 (maybe_lookup_field): Likewise.
8924 (use_pointer_for_field): Handle omp_member_access_dummy_var.
8925 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
8926 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
8927 (build_outer_var_ref): Add LASTPRIVATE argument, handle
8928 taskloops and omp_member_access_dummy_var vars.
8929 (build_sender_ref): Change first argument to splay_tree_key,
8930 add overload with first argument tree.
8931 (install_var_field): For mask & 8 use &DECL_UID as key instead
8933 (fixup_child_record_type): Const qualify *.omp_data_i.
8934 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
8935 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
8936 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
8937 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
8938 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
8939 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
8940 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
8942 (add_taskreg_looptemp_clauses): New function.
8943 (scan_omp_parallel): Use it.
8944 (scan_omp_task): Likewise.
8945 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8946 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
8947 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8948 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
8949 sandwiched taskloop constructs. Type check
8950 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
8951 region. Diagnose depend(source) or depend(sink:...) on
8952 target constructs or task/taskloop.
8953 (handle_simd_reference): Use get_name.
8954 (lower_rec_input_clauses): Likewise. Ignore all
8955 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
8956 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
8957 before passing it to omp_clause_{default,copy}_ctor. Handle
8958 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
8959 lastprivate_firstprivate flag for linear that needs copyin and
8960 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
8961 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
8962 on taskloop lookup decl in outer context. Pass true to
8963 build_outer_var_ref lastprivate argument. Handle
8964 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
8965 outside of outer taskloop for.
8966 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
8968 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
8969 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
8970 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
8971 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
8972 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
8973 abstract origin. Handle omp_member_access_dummy_var vars.
8974 (expand_parallel_call): Use expand_omp_build_assign.
8975 (expand_task_call): Handle taskloop construct expansion. Add
8976 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
8977 integers. Add priority argument to GOMP_task* calls. Or in
8978 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
8980 (expand_omp_build_assign): Add prototype. Add AFTER
8981 argument, if true emit statements after *GSI_P and continue linking.
8982 (expand_omp_taskreg): Adjust expand_task_call caller.
8983 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
8984 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
8985 zero_iter2_bb and first_zero_iter2 arguments, handle computation
8986 of counts even for ordered loops.
8987 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
8988 (expand_omp_ordered_source, expand_omp_ordered_sink,
8989 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
8991 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
8992 clauses on worksharing loop. Handle DOACROSS loop expansion.
8993 (expand_omp_for_static_nochunk): Handle linear clauses on
8994 worksharing loop. Adjust expand_omp_for_init_counts
8996 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
8997 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
8998 expand_omp_for_init_counts callers.
8999 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
9001 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
9002 Handle doacross loops.
9003 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9004 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
9005 GOMP_target_{41,update_41,enter_exit_data} libcalls.
9006 (expand_omp): Don't expand ordered depend constructs here, record
9007 ord_stmt instead for later expand_omp_for_generic.
9008 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9009 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
9010 clause as stand-alone directive.
9011 (lower_omp_ordered_clauses): New function.
9012 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
9013 don't lower anything.
9014 (lower_omp_for_lastprivate): Use last _looptemp_ clause
9015 on taskloop for comparison.
9016 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
9017 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
9018 expansion for linear adjustments.
9019 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9020 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
9021 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
9022 to tree * pointing to the stmt's clauses.
9023 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
9024 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9025 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
9026 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
9027 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
9028 clauses. Always use short kind and 8-bit align shift.
9029 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
9030 (struct lower_omp_regimplify_operands_data): New type.
9031 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
9033 (lower_omp_1): Use lower_omp_regimplify_operands instead of
9034 gimple_regimplify_operands.
9035 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9036 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
9037 clause as stand-alone directive.
9038 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
9039 (simd_clone_mangle): Mangle the various linear kinds
9041 (simd_clone_adjust_argument_types): Handle
9042 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
9043 (simd_clone_init_simd_arrays): Don't do anything for uval.
9044 (simd_clone_adjust): Handle
9045 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
9046 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
9047 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
9048 * omp-low.h (omp_member_access_dummy_var): New prototype.
9049 * passes.def (pass_simduid_cleanup): Schedule another copy of the
9050 pass after all optimizations.
9051 * tree.c (omp_clause_code_name): Add entries for
9052 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9053 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9054 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
9055 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
9056 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
9057 OMP_CLAUSE_REDUCTION 5 arguments. Handle
9058 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9059 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
9061 * tree-core.h (enum omp_clause_linear_kind): New.
9062 (struct tree_omp_clause): Change type of map_kind
9063 from unsigned char to unsigned int. Add subcode.if_modifier
9064 and subcode.linear_kind fields.
9065 (enum omp_clause_code): Add
9066 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9067 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9068 (OMP_CLAUSE_REDUCTION): Document
9069 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
9070 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
9071 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
9072 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
9074 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
9076 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
9078 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
9079 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
9081 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
9082 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
9083 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
9084 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
9085 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
9086 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
9087 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
9088 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
9089 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
9090 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
9091 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
9092 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
9093 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
9094 * tree-inline.c (remap_gimple_stmt): Handle clauses on
9095 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
9096 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
9097 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
9098 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
9099 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
9100 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
9101 (convert_local_omp_clauses): Likewise.
9102 * tree-pretty-print.c (dump_omp_clause): Handle
9103 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
9104 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
9105 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
9106 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
9107 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
9108 GOMP_MAP_FORCE_DEALLOC. Handle
9109 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
9110 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
9111 and clauses on OMP_ORDERED and OMP_CRITICAL.
9112 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
9113 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
9114 (vectorize_loops): Adjust comments.
9115 (pass_simduid_cleanup::execute): Likewise.
9116 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
9117 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
9118 * wide-int.h (wi::gcd): New.
9120 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
9122 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
9123 (ix86_function_arg_advance): Ditto.
9124 (ix86_function_arg): Ditto.
9125 (ix86_gimplify_va_arg): Ditto.
9126 (ix86_class_max_nregs): Ditto.
9127 (inline_memory_move_cost): Ditto.
9128 (ix86_set_reg_reg_cost): Ditto.
9129 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
9131 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
9134 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
9136 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
9138 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
9139 ROUND_UP macro and UNITS_PER_WORD * 2.
9140 * config/sparc/sparc.c (sparc_compute_frame_size):
9141 Use ROUND_UP and ROUND_DOWN macros where applicable.
9142 (function_arg_record_value, function_arg_record_value_1)
9143 (function_arg_record_value_1): Ditto.
9144 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
9145 alignment to double-word.
9146 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
9147 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
9150 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
9152 * rtl.h (print_insn): Fix prototype.
9154 2015-10-13 Tom de Vries <tom@codesourcery.com>
9156 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
9157 -1. Add assert that returned entry matches phi argument.
9158 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
9159 free_stmt_vec_info_vec ...
9160 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
9163 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
9165 PR tree-optimization/67909, 67947
9166 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
9167 really skip the inner loop.
9169 2015-10-13 Jeff Law <law@redhat.com>
9171 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9172 Allow single block jump threading paths.
9174 2015-10-13 Tom de Vries <tom@codesourcery.com>
9176 PR tree-optimization/67476
9177 * doc/invoke.texi (@item parloops-schedule): New item.
9178 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
9179 * tree-parloops.c: Include params-enum.h.
9180 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
9182 2015-10-13 Tom de Vries <tom@codesourcery.com>
9184 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
9185 * params-enum.h: New file.
9186 * opts.c (handle_param): Handle case that param arg is a string.
9187 * params-list.h: Handle DEFPARAMENUM5 in params.def.
9188 * params.c (find_param): New function, factored out of ...
9189 (set_param_value): ... here.
9190 (param_string_value_p): New function.
9191 * params.h (struct param_info): Add value_names field.
9192 (find_param, param_string_value_p): Declare.
9194 2015-10-13 Tom de Vries <tom@codesourcery.com>
9196 PR tree-optimization/67476
9197 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
9199 2015-10-13 Richard Biener <rguenther@suse.de>
9201 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
9202 the data dependence vector.
9203 (vect_peeling_hash_insert): Get the peeling hash table as argument.
9204 (vect_peeling_hash_get_lowest_cost): Likewise.
9205 (vect_enhance_data_refs_alignment): Adjust.
9206 (struct _vect_peel_info, struct _vect_peel_extended_info,
9207 struct peel_info_hasher): Move from ...
9208 * tree-vectorizer.h: ... here.
9209 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
9210 (LOOP_VINFO_PEELING_HTAB): Likewise.
9211 (struct _loop_vec_info): Remove min_profitable_iters and
9212 peeling_htab members.
9213 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
9215 (destroy_loop_vec_info): Adjust.
9216 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
9217 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
9218 to estimate alias versioning cost.
9219 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
9221 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
9223 * real.h (real_isinteger): Declare.
9224 * real.c (real_isinteger): New function.
9225 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
9226 if y is an even integer.
9228 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9231 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9232 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9233 counts when these are more informative.
9235 2015-10-12 Jeff Law <law@redhat.com>
9237 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
9238 (fsm_find_control_stmt_paths): Change name of first argument to
9239 more accurately relfect what it really is. Handle simplification
9240 of GIMPLE_COND after finding a thread path for NAME.
9241 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
9242 nontrivial conditions to be handled by FSM threader.
9243 (thread_through_normal_block): Extract the name to looup via
9244 FSM threader from COND_EXPR.
9246 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
9247 restriction that traced SSA_NAME is a user variable.
9249 2015-10-12 Tom de Vries <tom@codesourcery.com>
9251 PR tree-optimization/67476
9252 * omp-low.c (expand_omp_for_generic): Add missing phis.
9254 2015-10-12 Tom de Vries <tom@codesourcery.com>
9256 PR tree-optimization/67476
9257 * omp-low.c (expand_omp_for_generic): Handle simple latch.
9259 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
9261 * config/aarch64/aarch64-simd-builtins.def: Update builtins
9262 tables: add tbl3 and tbx4.
9263 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
9264 (aarch64_tbx4v8qi): New.
9265 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
9266 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
9267 Rewrite using builtin functions.
9268 * config/aarch64/iterators.md (UNSPEC_TBX): New.
9270 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
9272 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
9274 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
9275 Use ROUND_UP and ROUND_DOWN macros where applicable.
9276 (rs6000_darwin64_record_arg_flush): Ditto.
9277 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
9278 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
9281 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
9283 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
9284 (AARCH64_ROUND_DOWN): Ditto.
9285 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
9287 2015-10-12 Richard Biener <rguenther@suse.de>
9290 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
9291 code that analyzes IVs on each stmt but in a cheaper way avoiding
9294 2015-10-12 Nick Clifton <nickc@redhat.com>
9296 * config/msp430/msp430.c (msp430_mcu_names): Rename to
9297 msp430_mcu_data, add fields for ISA and hardware multiply
9298 support. Import latest data from the devices.csv file.
9299 (msp430_override_option): Use the data from the new array.
9300 (msp430_use_f5_series_hwmult): Likewise.
9301 (use_32bit_hwmult): Likewise.
9302 (msp430_no_hwmult): Likewise.
9303 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
9305 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
9306 not recognised then no hardware multiply support is assumed and
9307 that only the MSP430 ISA is allowed.
9309 2015-10-12 Richard Biener <rguenther@suse.de>
9311 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
9313 (vect_analyze_loop_2): ... here.
9315 2015-10-11 Jason Merrill <jason@redhat.com>
9318 * expr.c (store_field): Call store_constructor directly when
9319 storing a CONSTRUCTOR into a target smaller than its type.
9320 Guard against unsafe bitwise copy.
9322 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9324 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9325 counts when these are more informative.
9327 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9329 * tree-profile.c (tree_profiling): Do not clear
9330 pure/const when not instrumenting.
9331 (pass tree_profile): Add dump of symtab.
9333 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9335 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
9337 (fold_addr_of_array_ref_difference): Likewise.
9339 2015-10-11 Jeff Law <law@redhat.com>
9341 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
9342 tree-ssa-threadbackward.c.
9343 (fsm_find_control_statement_thread_paths): Likewise.
9344 (thread_through_normal_block): Break out FSM bits and move them
9345 into a new function in tree-ssa-threadbackward.c. Call new function
9347 Minimize header file usage.
9348 * tree-ssa-threadbackward.h: New file.
9349 * tree-ssa-threadbackward.c: Likewise.
9350 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
9352 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
9354 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
9356 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
9358 PR rtl-optimization/67864
9359 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
9360 fallthrough edges for conditional jumps. Don't sort candidate
9361 edges if not optimizing for speed.
9363 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9365 * defaults.h (REVERSE_CONDITION): New default definition.
9366 * jump.c (reversed_comparison_code_parts): Adjust.
9368 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9370 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
9371 check HARD_FRAME_POINTER_IS_ARG_POINTER.
9373 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9375 * defaults.h (FRAME_ADDR_RTX): New default definition.
9376 * builtins.c (expand_builtin_return_addr): Adjust.
9378 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9380 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
9381 * builtins.c (expand_builtin_return_addr): Adjust.
9383 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9385 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
9386 * builtins.c (expand_builtin_return_addr): Adjust.
9387 * doc/tm.texi: Likewise.
9388 * doc/tm.texi.in: Likewise.
9389 * except.c (expand_builtin_unwind_init): Likewise.
9391 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9393 * builtins.c (expand_builtin_return_addr): Adjust.
9394 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
9396 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
9398 * tree.c (type_with_interoperable_signedness): New.
9399 (gimple_canonical_types_compatible_p): Use it.
9400 * tree.h (type_with_interoperable_signedness): Declare
9402 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
9404 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
9405 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
9406 when OEP_ADDRESS_OF is se.
9408 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
9409 Sebastian Pop <s.pop@samsung.com>
9411 * graphite-dependences.c (scop_get_dependences): Add dump of the
9412 data dependence graph.
9413 * graphite-poly.c (print_isl_union_map): New.
9414 (debug_isl_union_map): New.
9415 * graphite-poly.h (print_isl_union_map): Declare.
9416 (debug_isl_union_map): Declare.
9418 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
9419 Sebastian Pop <s.pop@samsung.com>
9421 * graphite-poly.c (print_iteration_domain): Remove verbosity.
9422 Remove OpenScop formatting.
9423 (print_iteration_domains): Same.
9424 (debug_iteration_domain): Same.
9425 (debug_iteration_domains): Same.
9428 (dump_gbb_cases): Same.
9429 (dump_gbb_conditions): Same.
9432 (print_pbb_body): Same.
9434 (print_scop_params): Same.
9435 (print_scop_context): Same.
9437 (debug_pbb_domain): Same.
9439 (debug_scop_context): Same.
9441 (debug_scop_params): Same.
9442 * graphite-poly.h: Same.
9443 * graphite.c (graphite_transform_loops): Same.
9445 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9447 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
9448 call that isn't needed.
9450 2015-10-09 Jeff Law <law@redhat.com>
9452 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
9453 rather than moving each name to the freelist individually.
9455 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
9457 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
9458 * frame-header-opt.c: New file.
9459 * config/mips/mips-proto.h (mips_register_frame_header_opt):
9461 * config/mips/mips.c (mips_compute_frame_info): Check
9462 optimize_call_stack flag.
9463 (mips_option_override): Register new frame_header_opt pass.
9464 (mips_frame_info, mips_int_mask, mips_shadow_set,
9465 machine_function): Move these types to...
9466 * config/mips/mips.h: here.
9467 (machine_function): Add does_not_use_frame_header and
9468 optimize_call_stack fields.
9469 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
9470 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
9472 * config/mips/mips.opt (mframe-header-opt): Add new option.
9474 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
9476 * config/i386/i386.c
9477 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
9478 ROUND_DOWN where applicable.
9480 2015-10-09 Jeff Law <law@redhat.com>
9482 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
9485 2015-10-09 Renlin Li <renlin.li@arm.com>
9487 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
9488 operands[0] and operands[2].
9489 (neon_vtrn<mode>_insn): Likewise.
9490 (neon_vzip<mode>_insn): Likewise.
9492 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
9494 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
9495 ((X & C2) << C1): Expand to...
9496 (X {&,^,|} C2 << C1): ...This.
9497 ((X & C2) >> C1): Expand to...
9498 (X {&,^,|} C2 >> C1): ...This.
9500 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
9503 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
9504 Adjust embedded rounding/SAE specifier position.
9505 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
9506 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
9507 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
9508 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
9509 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
9511 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
9513 2015-10-09 Martin Jambor <mjambor@suse.cz>
9515 tree-optimization/67794
9516 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
9517 between types of state,ents but accept original definitions as a
9519 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
9520 iterate over definitions.
9522 2015-10-09 James Norris <jnorris@codesourcery.com>
9524 * config/rs6000/rs6000.c (rs6000_offload_options): New.
9525 (TARGET_OFFLOAD_OPTIONS): New.
9527 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
9530 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
9533 * function.c (expand_function_end): Move return value
9534 promotion past the handling of PARALLELs and CONCATs.
9536 PR rtl-optimization/67828
9537 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
9538 (tree_may_unswitch_on): Don't unswitch on expressions
9539 involving undefined values.
9541 2015-10-09 Richard Biener <rguenther@suse.de>
9543 * genmatch.c (print_operand): Fix formatting.
9544 (dt_node::append_simplify): Warn for multiple simplifiers
9545 that match the same pattern.
9546 * match.pd (log (exp @0)): Remove duplicates.
9548 2015-10-09 Richard Biener <rguenth@suse.de>
9551 * gimple-fold.c (optabs-query.h): Include
9552 (gimple_fold_builtin_memory_op): Allow unaligned stores
9553 when movmisalign_optabs are available.
9555 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9558 * config/arm/arm.md (movmisalign<mode>): New.
9559 * config/arm/iterators.md (HSI): New.
9561 2015-10-09 Richard Biener <rguenther@suse.de>
9563 PR tree-optimization/67891
9564 * gimple-match.h (gimple_simplified_result_is_gimple_val):
9566 (gimple_resimplify1): Declare.
9567 (gimple_resimplify2): Likewise.
9568 (gimple_resimplify3): Likewise.
9569 * gimple-match-head.c (gimple_resimplify1): Export.
9570 (gimple_resimplify2): Likewise.
9571 (gimple_resimplify3): Likewise.
9572 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
9573 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9574 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
9575 to avoid creating stmts without VN info.
9577 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
9579 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
9582 2015-10-08 Jeff Law <law@redhat.com>
9584 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
9585 and release_ssa_name in two places.
9586 (gimple_stringop_fixed_value): Similarly.
9588 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
9591 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
9592 unlink_stmt_vdef and release_ssa_name_fn.
9594 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
9597 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
9599 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
9600 SSE register save area to 16 bytes only if the incoming stack
9601 boundary is no less than 16 bytes.
9603 2015-10-08 Jeff Law <law@redhat.com>
9605 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
9606 release_ssa_name. Fix typo in comment.
9608 2015-10-08 Nathan Sidwell <nathan@acm.org>
9610 * config/nvptx/nvptx.h (struct machine_function): Add comment.
9611 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
9612 may return pointer as well as in memory.
9613 (nvptx_output_return): Likewise.
9615 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
9617 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
9618 (fold_builtin_1): Update accordingly. Handle constant arguments here.
9619 * match.pd: Add rules previously handled by fold_builtin_sqrt
9620 and fold_builtin_cbrt.
9622 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
9624 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
9625 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
9626 * fold-const.h (tree_unary_nonnegative_warnv_p)
9627 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9628 (tree_expr_nonnegative_warnv_p): Add depth parameters.
9629 * fold-const.c: Include gimple-fold.h and params.h.
9630 (tree_ssa_name_nonnegative_warnv_p): New function.
9631 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
9632 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9633 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
9634 Add a depth parameter and increment it for recursive calls to
9635 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
9636 to handle SSA names.
9637 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
9638 (gimple_stmt_nonnegative_warnv_p): Declare.
9639 * tree-vrp.c (remove_range_assertions): Remove assert that condition
9640 cannot be proven false.
9641 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
9642 (gimple_stmt_nonnegative_warnv_p): Move to...
9643 * gimple-fold.c: ...here. Add depth parameters and pass them
9644 down to the tree routines. Accept statements that aren't
9645 assignments or calls but just return false for them.
9646 (gimple_val_nonnegative_real_p): Delete.
9647 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
9648 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
9649 Check HONOR_NANs first.
9651 2015-10-08 Martin Jambor <mjambor@suse.cz>
9653 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
9656 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9658 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
9659 in the tail of outer-loop.
9661 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
9663 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
9666 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9668 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
9669 "cfghooks.h", add prototypes for introduced new functions.
9670 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
9671 checks on ability of loop unswitching to tree_unswitch_single_loop;
9672 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
9673 on innermost loop check.
9674 (tree_unswitch_single_loop): Add all required checks on ability of
9675 loop unswitching under zero recursive level guard.
9676 (tree_unswitch_outer_loop): New function.
9677 (find_loop_guard): Likewise.
9678 (empty_bb_without_guard_p): Likewise.
9679 (used_outside_loop_p): Likewise.
9680 (get_vop_from_header): Likewise.
9681 (hoist_guard): Likewise.
9682 (check_exit_phi): Likewise.
9684 2015-10-08 Marek Polacek <polacek@redhat.com>
9686 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
9689 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9692 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
9693 create_tmp_var_raw instead of create_tmp_var.
9695 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
9697 * expr.c (store_expr_with_bounds): Handle aggregate moves from
9699 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
9700 to define gimple type system; compare aggregates only by size.
9702 2015-10-07 Jeff Law <law@redhat.com>
9704 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
9705 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
9706 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
9709 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9710 Sebastian Pop <s.pop@samsung.com>
9712 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
9713 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
9714 (generate_isl_schedule): Same.
9715 * graphite-optimize-isl.c (scop_get_domains): Same.
9716 (apply_schedule_map_to_scop): Same.
9717 * graphite-poly.c (print_iteration_domains): Same.
9718 (remove_gbbs_in_scop): Same.
9722 * graphite-poly.h (struct scop): Rename bbs to pbbs.
9724 * graphite-scop-detection.c (compare_bb_depths): Remove.
9725 (graphite_sort_dominated_info): Remove.
9726 (try_generate_gimple_bb): Move out of scop_detection.
9727 (all_non_dominated_preds_marked_p): Remove.
9728 (build_scop_bbs_1): Remove.
9729 (build_scop_bbs): Remove.
9730 (nb_pbbs_in_loops): Do not use SCOP_BBS.
9731 (find_scop_parameters): Same.
9732 (sese_dom_walker): Rename gather_bbs.
9733 (before_dom_children): Call try_generate_gimple_bb and collect gbb
9735 (build_scops): Call gather_bbs.
9736 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
9737 (add_conditions_to_constraints): Same.
9738 (build_scop_iteration_domain): Same.
9739 (build_scop_drs): Same.
9740 (new_pbb_from_pbb): Same.
9741 * sese.c (new_sese_info): Create bbs.
9742 * sese.h (struct sese_info_t): Add bbs.
9744 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
9746 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
9747 encoding in 64-bit mode.
9749 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
9752 * config/i386/i386.c (ix86_option_override_internal): Always use
9753 8-byte minimum stack boundary in 64-bit mode.
9754 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
9755 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
9756 Add a REG_CFA_EXPRESSION note if needed.
9757 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
9758 (ix86_handle_force_align_arg_pointer_attribute): New.
9759 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
9760 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
9761 with ix86_handle_force_align_arg_pointer_attribute.
9762 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
9764 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9765 Sebastian Pop <s.pop@samsung.com>
9767 * graphite-scop-detection.c (parameter_index_in_region): Remove
9768 use of SESE_ADD_PARAMS.
9769 (find_scop_parameters): Same.
9770 * sese.c (new_sese_info): Same.
9771 * sese.h (struct sese_info_t): Remove add_params.
9772 (SESE_ADD_PARAMS): Remove.
9774 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9775 Sebastian Pop <s.pop@samsung.com>
9777 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
9780 (copy_internal_parameters): Same.
9781 (translate_isl_ast_to_gimple): Use an sese_l.
9782 (build_iv_mapping): Same.
9783 * graphite-poly.c (new_sese): Rename new_sese_info.
9784 (free_sese): Rename free_sese_info.
9785 * graphite-poly.h (struct scop): Use an sese_info_p.
9786 (scop_set_region): Same.
9787 * graphite-scop-detection.c (struct sese_l): Moved...
9788 (get_entry_bb): Moved...
9789 (get_exit_bb): Moved...
9790 (parameter_index_in_region_1): Use an sese_info_p.
9791 (parameter_index_in_region): Same.
9792 (scan_tree_for_params): Same.
9793 (find_params_in_bb): Same.
9794 (sese_dom_walker): Use an sese_l.
9795 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
9796 (reduction_phi_p): Same.
9797 (parameter_index_in_region_1): Use an sese_info_p.
9798 (propagate_expr_outside_region): Use an sese_l.
9799 * graphite.c: Replace uses of SCOP_REGION.
9800 * sese.c (sese_record_loop): Use an sese_info_p.
9801 (build_sese_loop_nests): Same.
9802 (sese_build_liveouts_use): Same.
9803 (sese_build_liveouts_bb): Same.
9804 (sese_build_liveouts_bb): Same.
9805 (sese_bad_liveouts_use): Same.
9806 (sese_reset_debug_liveouts_bb): Same.
9807 (sese_build_liveouts): Same.
9808 (new_sese): Renamed new_sese_info.
9809 (free_sese): Renamed free_sese_info.
9810 (set_rename): Use an sese_info_p.
9811 (graphite_copy_stmts_from_block): Same.
9812 (copy_bb_and_scalar_dependences): Same.
9813 (outermost_loop_in_sese_1): Use an sese_l.
9814 (outermost_loop_in_sese): Same.
9815 (if_region_set_false_region): Use an sese_info_p.
9816 (move_sese_in_condition): Same.
9817 (scalar_evolution_in_region): Use an sese_l.
9818 * sese.h (struct sese_l): ... here.
9819 (SESE_ENTRY): Remove.
9820 (SESE_ENTRY_BB): Remove.
9821 (SESE_EXIT): Remove.
9822 (SESE_EXIT_BB): Remove.
9823 (sese_contains_loop): Use an sese_info_p.
9824 (sese_nb_params): Same.
9825 (bb_in_sese_p): Use an sese_l.
9826 (stmt_in_sese_p): Same.
9827 (defined_in_sese_p): Same.
9828 (loop_in_sese_p): Same.
9829 (sese_loop_depth): Same.
9830 (struct ifsese_s): Use an sese_info_p.
9831 (gbb_loop_at_index): Use an sese_l.
9832 (nb_common_loops): Same.
9833 (scev_analyzable_p): Same.
9835 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9837 * config/i386/i386.c (ix86_conditional_register_usage): Use
9838 CALL_USED_REGISTERS_MASK.
9839 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
9841 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9844 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
9845 * configure: Regenerated.
9847 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9850 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
9851 (ix86_set_current_function): This.
9852 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
9854 2015-10-07 Richard Biener <rguenther@suse.de>
9856 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
9857 (vinfo_for_stmt): Adjust.
9858 (set_vinfo_for_stmt): Likewise.
9859 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
9860 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
9861 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
9863 (vect_analyze_loop_1): Remove.
9864 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
9865 inner loop when vectorizing an outer loop by splitting out from ...
9866 (vect_analyze_loop_form): ... here.
9868 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9871 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
9872 Use create_tmp_var_raw instead of create_tmp_var.
9874 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
9876 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
9877 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
9878 * real.c (CACHED_FRACTION): New helper macro.
9879 (dconst_third_ptr): Use it.
9880 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
9881 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
9883 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
9885 2015-10-06 Jeff Law <law@redhat.com>
9887 PR tree-optimization/67816
9888 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
9889 from remove_jump_threads_starting_at. Accept an edge rather than
9891 * tree-ssa-threadupdate.c (removed_edges): New hash table.
9892 (remove_jump_threads_including): Note edges that get removed from
9893 the CFG for later pruning of jump threading paths including them.
9894 (thread_through_all_blocks): Remove paths which include edges that
9896 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
9897 on each outgoing edges when optimizing away a control statement.
9899 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9901 * reorg.c (emit_delay_sequence): Store list of delay slot insns
9902 in a vector instead of rtx_insn_list.
9903 (add_to_delay_list): Likewise.
9904 (delete_from_delay_slot): Likewise.
9905 (optimize_skip): Likewise.
9906 (redirect_with_delay_list_safe_p): Likewise.
9907 (check_annul_list_true_false): Likewise.
9908 (steal_delay_list_from_target): Likewise.
9909 (steal_delay_list_from_fallthrough): Likewise.
9910 (redundant_insn): Likewise.
9911 (fill_simple_delay_slots): Likewise.
9912 (fill_slots_from_thread): Likewise.
9913 (fill_eager_delay_slots): Likewise.
9914 (relax_delay_slots): Likewise.
9916 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
9918 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
9919 For -mgpopt=local, also exclude unintialized common symbols.
9920 * doc/invoke.texi (Nios II Options): Document the change.
9922 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
9924 * config/aarch64/iterators.md (vwcore): Add missing cases for
9927 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9928 Sebastian Pop <s.pop@samsung.com>
9930 * graphite-poly.c (new_scop): Initialize drs.
9931 * graphite-poly.h (struct dr_info): New.
9932 (struct scop): Add drs.
9933 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
9934 (pdr_add_memory_accesses): Same.
9935 (build_poly_dr): Same.
9936 (build_alias_set): Same.
9937 (build_scop_drs): Same.
9938 (build_pbb_drs): Remove.
9939 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
9940 * tree-data-ref.h (data_reference): Remove alias_set.
9942 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9943 Sebastian Pop <s.pop@samsung.com>
9945 * graphite-poly.c (free_data_refs_aux): Remove.
9946 (free_gimple_poly_bb): Do not call free_data_refs_aux.
9947 * graphite-poly.h (struct base_alias_pair): Remove.
9948 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
9949 base_alias_pair and dr->aux.
9950 (build_alias_set): Same.
9951 * tree-data-ref.c (create_data_ref): Initialize alias_set.
9952 * tree-data-ref.h (data_reference): Add alias_set.
9954 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9955 Sebastian Pop <s.pop@samsung.com>
9957 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
9958 Do not set PDR_BASE_OBJECT_SET.
9959 * graphite-poly.h (poly_dr): Same.
9960 (PDR_BASE_OBJECT_SET): Remove.
9961 (new_poly_dr): Update decl.
9962 * graphite-sese-to-poly.c (build_poly_dr): Update call to
9964 (write_alias_graph_to_ascii_dimacs): Remove.
9965 (write_alias_graph_to_ascii_dot): Remove.
9966 (write_alias_graph_to_ascii_ecc): Remove.
9967 (dr_same_base_object_p): Remove.
9968 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
9970 (build_base_obj_set_for_drs): Remove.
9971 (dump_alias_graphs): Remove.
9972 (build_scop_drs): Remove dead code.
9974 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9975 Peter Bergner <bergner@vnet.ibm.com>
9978 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
9979 allow registers, but provide insns for the combiner to create for
9980 loads from memory. Separate VSX code from non-VSX code. For
9981 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
9982 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
9983 so that registers come before memory operations. Drop support from
9984 converting DFmode to TFmode, if the DFmode value is in a GPR
9986 (extenddftf2_fprs): Likewise.
9987 (extenddftf2_internal): Likewise.
9988 (extenddftf2_vsx): Likewise.
9989 (extendsftf2): In the expander, only allow registers, but provide
9990 insns for the combiner to create for stores and loads.
9992 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9994 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
9995 from the decl parameter.
9997 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
10000 * gimple-fold.c (gimple_fold_builtin): Add break after
10001 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
10003 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
10005 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
10006 to scop->isl_context.
10008 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
10010 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
10011 (output_probe_stack_range): Rotate the loop and simplify.
10012 (thumb1_expand_prologue): Tweak sorry message.
10013 * config/arm/arm.md (probe_stack): Use bare string.
10015 2015-10-06 Nick Clifton <nickc@redhat.com>
10017 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
10019 2015-10-06 Nick Clifton <nickc@redhat.com>
10021 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
10022 (ATTR_PERSIST): New constant.
10023 (msp430_data_attr): New function - verifies an attribute that only
10024 applies to variables.
10025 (msp430_attributes): Add noinit and persistent attributes.
10026 (noinit_section): New variable.
10027 (presis_section): New variable.
10028 (TARGET_ASM_INIT_SECTIONS): Define.
10029 (msp430_init_sections): New function - initialises the noinit and
10030 persist section variables.
10031 (msp430_select_section): Add support for noinit and persist
10033 (msp430_section_type_flags): Likewise.
10034 * doc/extend.texi: Document the reent, critical, wakeup, noinit
10035 and persistent attributes.
10037 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10038 Sebastian Pop <s.pop@samsung.com>
10040 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
10041 (no_violations): Remove.
10042 (subtract_commutative_associative_deps): Remove.
10043 (compute_deps): Do not call subtract_commutative_associative_deps.
10044 (transform_is_safe): Remove.
10045 (graphite_legal_transform): Remove.
10046 * graphite-poly.h (graphite_legal_transform): Remove.
10048 2015-10-05 Aditya Kumar <hiraditya@msn.com>
10050 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
10051 which are in this region are passed so gcc_assert and remove redundant
10053 * sese.c (sese_build_liveouts): Pass only those bbs which are not
10055 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
10056 gcc_assert on that and remove unnecessary computation.
10057 (sese_build_liveouts_use): Same.
10059 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10061 * graphite-dependences.c (scop_get_reads): Renamed scop->context
10062 to scop->param_context.
10063 (scop_get_must_writes): Same.
10064 (scop_get_may_writes): Same.
10065 (scop_get_original_schedule): Same.
10066 (scop_get_transformed_schedule): Same.
10067 (subtract_commutative_associative_deps): Same.
10068 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
10069 (generate_isl_context): Same.
10070 (generate_isl_schedule): Same.
10071 (scop_to_isl_ast): Same.
10072 (graphite_regenerate_ast_isl): Same.
10073 * graphite-optimize-isl.c (scop_get_domains): Same.
10074 (optimize_isl): Renamed scop->context to scop->param_context.
10075 * graphite-poly.c (new_poly_bb): Change the type of argument to
10077 (new_scop): Renamed scop->context to scop->param_context.
10079 (print_scop_context): Same.
10080 * graphite-poly.h (new_poly_dr): Change the type of argument from
10081 void* to data_reference_p.
10082 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
10083 (new_poly_bb): Change the type of argument from void* to
10085 (pbb_set_black_box): Same.
10086 (struct scop): Rename context to param_context, ctx to isl_context.
10087 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
10088 Move declarations closer to assignment.
10089 (find_params_in_bb): Same.
10090 (find_scop_parameters): Same.
10091 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
10092 Global to be used for statement IDs.
10093 (isl_id_for_pbb): Use ssa_name_version_typesize.
10094 (simple_copy_phi_p): Move declarations closer to assignment.
10095 (build_pbb_scattering_polyhedrons): Same.
10096 (build_scop_scattering): Same.
10097 (isl_id_for_ssa_name): Same.
10098 (extract_affine_name): Same.
10099 (extract_affine_int): Same.
10100 (extract_affine): Same.
10101 (set_scop_parameter_dim): Use renamed member.
10102 (build_loop_iteration_domains): Same.
10103 (add_param_constraints): Same.
10104 (build_scop_iteration_domain): Same.
10105 (pdr_add_data_dimensions): Same.
10106 (build_poly_dr): Same.
10107 (build_scop_drs): Move declarations closer to assignment.
10108 (analyze_drs_in_stmts): Same.
10109 (insert_out_of_ssa_copy): Same.
10110 (insert_out_of_ssa_copy_on_edge): Same.
10111 (propagate_expr_outside_region): Same.
10112 (rewrite_phi_out_of_ssa): Same.
10113 (rewrite_degenerate_phi): Same.
10114 (rewrite_reductions_out_of_ssa): Same.
10115 (rewrite_cross_bb_scalar_dependence): Same.
10116 (handle_scalar_deps_crossing_scop_limits): Same.
10117 (rewrite_cross_bb_scalar_deps): Same.
10118 * graphite.c (graphite_transform_loops): Use renamed member.
10120 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
10123 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
10124 create_tmp_var_raw instead of create_tmp_var.
10126 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10129 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
10130 Use create_tmp_var_raw instead of create_tmp_var.
10132 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
10135 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
10136 split for upper-bank registers when target does not support
10138 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
10139 split when target does not support AVX512VL.
10141 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
10144 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
10145 Adjust to use create_tmp_var_raw instead of create_tmp_var.
10147 2015-10-06 Nick Clifton <nickc@redhat.com>
10149 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
10152 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10154 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
10155 (case ${target}): Add znver1.
10156 * config/i386/cpuid.h(bit_CLZERO): Define.
10157 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
10158 -march=native recognize znver1 processors.
10159 * config/i386/i386-c.c (ix86_target_macros_internal): Add
10160 znver1, clzero def_and_undef.
10161 * config/i386/i386.c (struct processor_costs znver1_cost): New.
10162 (m_znver1): New definition.
10163 (m_AMD_MULTIPLE): Includes m_znver1.
10164 (processor_target_table): Add znver1 entry.
10165 (ix86_target_string) : Add clzero entry.
10166 (static const char *const cpu_names): Add znver1 entry.
10167 (ix86_option_override_internal): Add znver1 instruction sets.
10168 (PTA_CLZERO) : New definition.
10169 (ix86_option_override_internal): Handle new clzerooption.
10170 (ix86_issue_rate): Add znver1.
10171 (ix86_adjust_cost): Add znver1.
10172 (ia32_multipass_dfa_lookahead): Add znver1.
10173 (has_dispatch): Add znver1.
10174 * config/i386/i386.h (TARGET_znver1): New definition.
10175 (TARGET_CLZERO): Define.
10176 (TARGET_CLZERO_P): Define.
10177 (struct ix86_size_cost): Add TARGET_ZNVER1.
10178 (enum processor_type): Add PROCESSOR_znver1.
10179 * config/i386/i386.md (define_attr "cpu"): Add znver1.
10180 (set_attr znver1_decode): New definitions for znver1.
10181 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
10183 * config/i386/mmx.md (set_attr znver1_decode): New definitions
10185 * config/i386/sse.md (set_attr znver1_decode): Likewise.
10186 * config/i386/x86-tune.def: Add znver1 tunings.
10187 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
10188 * doc/invoke.texi: Add details about znver1
10190 2015-10-06 Richard Biener <rguenther@suse.de>
10192 PR tree-optimization/67859
10193 * tree-ssa-pre.c (create_expression_by_pieces): Properly
10194 discard not inserted stmts.
10196 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
10198 * doc/extend.texi (Template Instantiation): Reorder options and
10199 de-emphasize -frepo.
10200 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
10201 example instead of -frepo.
10203 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
10206 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
10207 use create_tmp_var_raw rather than create_tmp_var.
10209 2015-10-06 Richard Biener <rguenther@suse.de>
10211 * tree-vectorizer.h (vec_info): New base class for...
10212 (_loop_vec_info): ... this and ...
10213 (_bb_vec_info): ... this.
10214 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
10215 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
10216 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
10217 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
10218 vect_destroy_datarefs): Adjust interface to take a vec_info *
10219 rather than both a loop_vec_info and a bb_vec_info argument.
10220 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
10221 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
10222 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
10223 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
10225 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
10226 (destroy_loop_vec_info, vect_analyze_loop_2,
10227 vect_is_simple_reduction_1, get_initial_def_for_induction,
10228 vect_create_epilog_for_reduction, vectorizable_reduction,
10229 vectorizable_live_operation, vect_transform_loop): Adjust.
10230 * tree-vect-patterns.c (type_conversion_p,
10231 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
10232 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
10233 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
10234 check_bool_pattern, vect_recog_bool_pattern,
10235 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
10236 * tree-vect-slp.c (vect_get_and_check_slp_defs,
10237 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
10238 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
10239 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
10240 (new_bb_vec_info): Initialize base classs.
10241 * tree-vect-stmts.c (record_stmt_cost, process_use,
10242 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
10243 vectorizable_mask_load_store, vectorizable_call,
10244 vectorizable_simd_clone_call, vectorizable_conversion,
10245 vectorizable_assignment, vectorizable_shift,
10246 vectorizable_operation, vectorizable_store,
10247 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
10248 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
10249 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
10251 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
10254 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
10255 create_tmp_var_raw rather than create_tmp_var.
10257 2015-10-05 Marek Polacek <polacek@redhat.com>
10259 * tree-ssa-loop-im.c
10260 (move_computations_dom_walker::before_dom_children): Don't set
10261 SSA_NAME_ANTI_RANGE_P.
10262 * tree-ssa-phiopt.c (value_replacement): Likewise.
10264 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10265 Sebastian Pop <s.pop@samsung.com>
10267 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
10269 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10270 Sebastian Pop <s.pop@samsung.com>
10272 * graphite-poly.c (new_gimple_poly_bb): ... here.
10273 (free_data_refs_aux): ... here.
10274 (free_gimple_poly_bb): ... here.
10275 (remove_gbbs_in_scop): ... here.
10276 (new_scop): Call new_sese.
10277 (free_scop): Call remove_gbbs_in_scop and free_sese.
10278 * graphite-poly.h (base_alias_pair): ... here.
10279 (new_gimple_poly_bb): Declare.
10280 (free_gimple_poly_bb): Declare.
10281 * graphite-scop-detection.c (parameter_index_in_region_1):
10282 (parameter_index_in_region): ... here.
10283 (scan_tree_for_params): ... here.
10284 (find_params_in_bb): ... here.
10285 (find_scop_parameters): ... here.
10286 (build_scops): Call find_scop_parameters.
10287 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
10288 (free_scops): Move...
10289 (single_pred_cond_non_loop_exit): Move...
10290 (sese_dom_walker::before_dom_children): Move...
10291 (sese_dom_walker::after_dom_children): Move...
10292 (build_poly_scop): Move...
10293 * graphite-sese-to-poly.h (base_alias_pair): Move...
10294 * graphite.c (free_scops): ... here.
10296 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10297 Sebastian Pop <s.pop@samsung.com>
10299 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
10300 (trivially_empty_bb_p): Move...
10301 (same_close_phi_node): Move...
10302 (new_gimple_poly_bb): Move...
10303 (compare_bb_depths): Move...
10304 (graphite_sort_dominated_info): Move...
10305 (remove_duplicate_close_phi): Move...
10306 (make_close_phi_nodes_unique): Move...
10307 (canonicalize_loop_closed_ssa): Move...
10308 (canonicalize_loop_closed_ssa_form): Move...
10309 (loop_ivs_can_be_represented): Move...
10310 (single_pred_cond_non_loop_exit): Move...
10311 (graphite_can_represent_init): Move...
10312 (graphite_can_represent_scev): Move...
10313 (stmt_has_simple_data_refs_p): Move...
10314 (stmt_has_side_effects): Move...
10315 (graphite_can_represent_stmt): Move...
10316 (scop_detection): ... here.
10317 (sese_dom_walker): ... and here.
10318 (build_scops): Call all moved functions.
10319 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
10320 (all_non_dominated_preds_marked_p): Move...
10321 (build_scop_bbs_1): Move...
10322 (build_scop_bbs): Move...
10323 (set_scop_parameter_dim): Move...
10324 (nb_pbbs_in_loops): Move...
10325 (build_poly_scop): Do not call all the moved functions.
10327 2015-10-05 Martin Jambor <mjambor@suse.cz>
10328 Jan Hubicka <hubicka@ucw.cz>
10330 * ipa-cp.c (ipcp_alignment_lattice): New type.
10331 (ipcp_param_lattices): Use the above to represent alignment.
10332 (ipcp_alignment_lattice::print): New function.
10333 (print_all_lattices): Use it to print alignment information.
10334 (ipcp_alignment_lattice::top_p): New function.
10335 (ipcp_alignment_lattice::bottom_p): Likewise.
10336 (ipcp_alignment_lattice::set_to_bottom): Likewise.
10337 (ipcp_alignment_lattice::meet_with_1): Likewise.
10338 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
10339 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
10340 (initialize_node_lattices): Likewise.
10341 (propagate_alignment_accross_jump_function): Work with the new class
10342 for alignment lattices.
10343 (propagate_constants_accross_call): Pass only the alignment lattice to
10344 propagate_alignment_accross_jump_function.
10345 (ipcp_store_alignment_results): Work with the new class for alignment
10348 2015-10-05 Marek Polacek <polacek@redhat.com>
10350 PR tree-optimization/67821
10351 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
10353 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
10356 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
10358 (mkoffload_cleanup): ... this. Adjust all users.
10359 (maybe_unlink): Look at save_temps and verbose flags instead of
10361 (main): Parse "-save-temps" flag.
10362 (generate_target_descr_file, generate_target_offloadend_file)
10363 (generate_host_descr_file, prepare_target_image): Pass it on.
10364 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
10365 (mkoffload_cleanup): New function.
10366 (maybe_unlink): Look at save_temps and verbose flags instead of
10368 (main): Instead of calling utils_cleanup, register atexit handler
10369 for mkoffload_cleanup.
10370 (main): Parse "-save-temps" flag.
10371 (compile_native, main): Pass it on.
10372 * lto-wrapper.c (compile_offload_image): Likewise.
10374 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10376 * gimple.h (gimple_op_ptr): Require a non const gimple *.
10377 (gimple_assign_lhs_ptr): Likewise.
10378 (gimple_assign_rhs1_ptr): Likewise.
10379 (gimple_assign_rhs2_ptr): Likewise.
10380 (gimple_assign_rhs3_ptr): Likewise.
10381 (gimple_call_lhs_ptr): Likewise.
10382 (gimple_call_fn_ptr): Likewise.
10383 (gimple_call_chain_ptr): Likewise.
10384 (gimple_call_arg_ptr): Likewise.
10385 (gimple_cond_lhs_ptr): Likewise.
10386 (gimple_cond_rhs_ptr): Likewise.
10387 (gimple_switch_index_ptr): Likewise.
10388 (gimple_return_retval_ptr): Likewise.
10390 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10392 * gimple.h (gimple_asm_input_op_ptr): Remove.
10393 (gimple_asm_output_op_ptr): Likewise.
10395 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10397 * gimple.h (gimple_location_ptr): Remove.
10398 * tree-vrp.c (check_all_array_refs): Adjust.
10400 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10402 * tree-ssa-operands.c (build_uses): store tree * instead of
10404 (finalize_ssa_uses): Adjust.
10405 (append_use): Likewise.
10406 (verify_ssa_operands): Likewise.
10408 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10410 * real.h (build_real_truncate): Declare.
10411 * tree.c (build_real_truncate): New function.
10412 (strip_float_extensions): Use it.
10413 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
10414 (fold_builtin_hypot, fold_builtin_pow): Likewise.
10415 * match.pd: Likewise.
10417 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
10418 Jiong Wang <jiong.wang@arm.com>
10420 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
10422 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10424 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
10425 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
10426 (aarch64_print_operand, aarch64_float_const_representable_p)
10427 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
10428 instead of REAL_VALUE_FROM_CONST_DOUBLE.
10429 * config/arc/arc.c (arc_print_operand): Likewise.
10430 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
10431 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
10432 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
10434 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
10435 (consttable_16): Likewise.
10436 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
10437 * config/avr/avr.c (avr_print_operand): Likewise.
10438 * config/bfin/bfin.md: Likewise (in a define_split).
10439 * config/c6x/c6x.md: Likewise (in a define_split).
10440 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
10441 (cr16_print_operand): Likewise.
10442 * config/cris/cris.c (cris_print_operand): Likewise.
10443 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
10444 * config/fr30/fr30.c (fr30_print_operand): Likewise.
10445 (fr30_const_double_is_zero): Likewise.
10446 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
10447 * config/frv/frv.md: Likewise (in a define_split).
10448 * config/frv/predicates.md (int_2word_operand): Likewise.
10449 * config/h8300/h8300.c (h8300_print_operand): Likewise.
10450 * config/i386/i386.c (standard_80387_constant_p): Likewise.
10451 (ix86_print_operand, ix86_split_to_parts): Likewise.
10452 * config/i386/i386.md: Likewise (in a define_split).
10453 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
10454 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
10455 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
10456 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
10457 (print_operand): Likewise.
10458 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
10459 * config/mep/mep.md: Likewise (in define_split).
10460 * config/microblaze/microblaze.c (microblaze_const_double_ok)
10461 (print_operand): Likewise.
10462 * config/mips/mips.md (consttable_float): Likewise.
10463 * config/mmix/mmix.c (mmix_intval): Likewise.
10464 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
10465 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
10466 * config/pa/pa.c (pa_singlemove_string): Likewise.
10467 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
10468 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
10469 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
10470 (output_toc): Likewise.
10471 * config/rs6000/rs6000.md: Likewise (in define_splits).
10472 * config/rx/rx.c (rx_print_operand): Likewise.
10473 * config/s390/s390.c (s390_output_pool_entry): Likewise.
10474 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10475 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
10476 (and also in define_splits).
10477 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
10478 (fp_high_losum_p): Likewise.
10479 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
10480 (*movsf_high): Likewise.
10481 * config/spu/spu.c (const_double_to_hwint): Likewise.
10482 * config/v850/v850.c (const_double_split): Likewise.
10483 * config/vax/vax.c (vax_float_literal): Likewise.
10484 * config/visium/visium.c (visium_expand_copysign): Likewise.
10485 * config/visium/visium.md: Likewise (in define_split).
10486 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10487 * config/xtensa/xtensa.c (print_operand): Likewise.
10488 (xtensa_output_literal): Likewise.
10489 * cprop.c (implicit_set_cond_p): Likewise.
10490 * dwarf2out.c (insert_float): Likewise.
10491 * expmed.c (expand_mult, make_tree): Likewise.
10492 * expr.c (compress_float_constant): Likewise.
10493 * rtlanal.c (split_double): Likewise.
10494 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10495 (simplify_const_unary_operation, simplify_binary_operation_1)
10496 (simplify_const_binary_operation): Likewise.
10497 (simplify_const_relational_operation): Likewise.
10498 * varasm.c (output_constant_pool_2): Likewise.
10500 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10502 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
10503 instead of CONST_DOUBLE_FROM_REAL_VALUE.
10504 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
10505 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
10506 instead of CONST_DOUBLE_FROM_REAL_VALUE.
10507 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
10508 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
10509 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
10510 (ix86_emit_swsqrtsf): Likewise.
10511 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
10512 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
10513 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10514 * config/pa/pa.c (pa_expand_builtin): Likewise.
10515 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
10516 (rs6000_scale_v2df): Likewise.
10517 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
10518 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
10519 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
10520 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
10521 (vec_ctul): Likewise.
10522 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
10523 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
10524 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
10525 * cse.c (fold_rtx): Likewise.
10526 * emit-rtl.c (immed_double_const): Likewise (in comments).
10527 (init_emit_once): Likewise.
10528 * expr.c (compress_float_constant, expand_expr_real_1)
10529 (const_vector_from_tree): Likewise.
10530 * optabs.c (expand_float, expand_fix): Likewise.
10531 * reg-stack.c (reg_to_stack): Likewise.
10532 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10533 (simplify_const_unary_operation, simplify_binary_operation_1)
10534 (simplify_const_binary_operation, simplify_relational_operation)
10535 (simplify_immed_subreg): Likewise.
10537 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10539 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
10540 * doc/tm.texi: Regenerate.
10541 * real.h (REAL_ARITHMETIC): Delete.
10542 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
10543 (ix86_expand_round_sse4): Use real_arithmetic instead of
10545 * config/i386/sse.md (round<mode>2): Likewise.
10546 * rtl.h (rtx_to_tree_code): Likewise (in comment).
10547 * explow.c (rtx_to_tree_code): Likewise (in comment).
10548 * match.pd: Likewise.
10549 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10550 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10551 (expand_pow_as_sqrts): Likewise.
10552 * tree-pretty-print.c (dump_generic_node): Remove code that
10553 was conditional on REAL_ARITHMETIC being undefined.
10555 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10557 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
10558 * doc/tm.texi: Regenerate.
10559 * real.h (real_less): Declare.
10560 (REAL_VALUES_LESS): Delete.
10561 * real.c (real_less): New function.
10562 (real_compare): Use it.
10563 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
10564 of REAL_VALUES_LESS.
10565 * config/microblaze/microblaze.c (microblaze_const_double_ok):
10567 * fold-const.c (fold_convert_const_int_from_real): Likewise.
10568 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10569 (simplify_const_relational_operation): Likewise.
10570 * tree-call-cdce.c (check_pow): Likewise.
10571 (gen_conditions_for_pow_cst_base): Likewise.
10573 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10575 * real.h (REAL_VALUES_IDENTICAL): Delete.
10576 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
10577 instead of REAL_VALUES_IDENTICAL.
10578 * fold-const.c (operand_equal_p): Likewise.
10579 * ipa-icf.c (sem_variable::equals): Likewise.
10580 * tree-complex.c (some_nonzerop): Likewise.
10581 (expand_complex_multiplication): Likewise.
10582 * tree.c (simple_cst_equal): Likewise.
10583 * varasm.c (compare_constant): Likewise.
10585 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10587 * real.h (real_equal): Declare.
10588 (REAL_VALUES_EQUAL): Delete.
10589 * real.c (real_equal): New function.
10590 (real_compare): Use it.
10591 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
10592 * doc/tm.texi: Regenerate.
10593 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
10594 real_equal instead of REAL_VALUES_EQUAL.
10595 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
10596 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
10597 (fp_const_from_val): Likewise.
10598 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
10599 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
10600 (floating_exact_log2): Likewise.
10601 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10602 * config/vax/vax.c (vax_float_literal): Likewise.
10603 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10604 * cprop.c (implicit_set_cond_p): Likewise.
10605 * expmed.c (expand_mult): Likewise.
10606 * fold-const.c (const_binop): Likewise.
10607 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10608 (simplify_const_binary_operation): Likewise.
10609 (simplify_const_relational_operation): Likewise.
10610 * tree-call-cdce.c (check_pow): Likewise.
10611 (gen_conditions_for_pow_cst_base): Likewise.
10612 * tree-inline.c (estimate_num_insns): Likewise.
10613 * tree-ssa-dom.c (record_equality): Likewise.
10614 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10615 (gimple_expand_builtin_pow): Likewise.
10616 (pass_optimize_widening_mul::execute): Likewise.
10617 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
10618 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
10619 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
10621 2015-10-05 Richard Biener <rguenther@suse.de>
10624 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
10625 consider loop header PHI defs as IVs.
10627 2015-10-05 Richard Biener <rguenther@suse.de>
10629 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
10631 (create_expression_by_pieces): ... here and build GIMPLE
10632 calls directly. Use gimple_build API and avoid force_gimple_operand.
10633 (insert_into_preds_of_block): Simplify.
10634 (do_regular_insertion): Add comment.
10636 2015-10-04 Jason Merrill <jason@redhat.com>
10638 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
10640 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
10642 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
10643 check for general register.
10644 (ix86_emit_save_regs): Ditto.
10645 (ix86_emit_save_regs_using_mov): Ditto.
10646 (ix86_emit_restore_regs_using_pop): Ditto.
10647 (ix86_emit_restore_regs_using_mov): Ditto.
10649 2015-10-03 Marek Polacek <polacek@redhat.com>
10651 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
10652 (insn-dfatab.o): Likewise.
10654 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
10656 * config.gcc (xtensa*-*-uclinux*): New configuration.
10657 * config/xtensa/uclinux.h: New file.
10658 * config/xtensa/uclinux.opt: New file.
10660 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
10662 * doc/cpp.texi (Standard Predefined Macros): Document value of
10663 __cplusplus for C++14.
10665 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
10667 * gcc.c (process_command): Use spec_machine rather than
10668 spec_host_machine to build tooldir_prefix2.
10670 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10671 Bernd Schmidt <bernds@codesourcery.com>
10673 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
10674 (Token, Stmt): Remove structs.
10675 (decls, vars, fns): Remove variables.
10676 (alloc_comment, append_stmt, is_keyword): Remove macros.
10677 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
10678 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
10679 (parse_init, parse_file): Remove functions.
10680 (read_file): Accept a pointer to a length and store into it.
10681 (process): Don't try to parse the input file, just write it out as
10682 a string, but looking for maps. Also write out the length.
10683 (main): Don't use "-S" to compile PTX code.
10685 2015-10-02 Jeff Law <law@redhat.com>
10687 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
10690 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10693 * config/nvptx/mkoffload.c (main): Scan the argument vector for
10694 -fopenmp, and skip generating an offloading image if specified.
10696 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
10698 * system.h (ROUND_UP): New macro definition.
10699 (ROUND_DOWN): Ditto.
10700 * ggc-page.c (ROUND_UP): Remove local macro definition.
10701 (PAGE_ALIGN): Implement using ROUND_UP macro.
10703 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
10704 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
10706 (ix86_compute_frame_layout): Ditto.
10707 (ix86_expand_prologue): Ditto.
10708 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
10709 to round down values.
10710 (expand_set_or_movmem_via_rep): Ditto.
10712 2015-10-02 Marek Polacek <polacek@redhat.com>
10714 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
10716 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
10718 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
10719 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
10720 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
10721 (free_gimple_bb): Renamed free_gimple_poly_bb.
10722 (try_generate_gimple_bb): Hoist loop invariant code.
10723 (analyze_drs_in_stmts): Same.
10724 (build_scop_drs): Call renamed functions.
10725 (new_pbb_from_pbb): Same.
10726 (scop_ivs_can_be_represented): Delete as functionality now moved to
10727 graphite-scop-detection.c
10728 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
10730 2015-10-02 Aditya Kumar <hiraditya@msn.com>
10732 * graphite-scop-detection.c (stmt_has_side_effects): New function
10733 outlined from stmt_simple_for_scop_p.
10734 (graphite_can_represent_stmt): Same.
10735 (stmt_simple_for_scop_p): Moved code out of this function for better
10738 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10740 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
10742 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
10744 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10746 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
10748 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
10750 PR rtl-optimization/67756
10751 * lra-constraints.c (match_reload): Add a new parameter. Use it
10752 for creating a pseudo with the same value.
10753 (curr_insn_transform): Pass a new argument to match_reload.
10755 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10757 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
10758 (expand_vec_perm_even_odd_1): Handle V64QImode.
10759 (ix86_expand_vec_perm_const_1): Try expansion with
10760 expand_vec_perm_even_odd_trunc as well.
10761 * config/i386/sse.md (VI124_AVX512F): Rename to ...
10762 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
10764 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
10765 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
10766 to V32HI and V16SI.
10767 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
10768 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
10769 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
10770 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
10771 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
10772 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
10774 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10776 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
10777 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
10779 2015-10-02 Jason Merrill <jason@redhat.com>
10782 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
10783 (diagnose_tm_1_op): Also diagnose volatile accesses in
10784 transaction_safe function.
10786 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
10788 * system.h (malloc.h): Don't include obsolete header.
10790 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10792 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
10793 (TLS_SECTION_ASM_FLAG): Delete.
10795 2015-10-02 Marek Polacek <polacek@redhat.com>
10798 * doc/invoke.texi: Document -Wduplicated-cond.
10799 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
10800 (insn-dfatab.o): Likewise.
10801 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
10804 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
10806 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
10809 2015-10-02 Renlin Li <renlin.li@arm.com>
10811 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
10813 2015-10-02 Renlin Li <renlin.li@arm.com>
10816 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
10818 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10820 PR rtl-optimization/67786
10821 PR rtl-optimization/67787
10822 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
10823 it modifies a reg used in the condition calculation.
10825 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
10827 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
10828 alternatives for reads from memory and moves from general-purpose
10830 (*aarch64_combinez_be<mode>): Likewise.
10832 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
10835 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
10836 selectany within this function without need to keep attribute.
10837 (i386_pe_encode_section_info): Remove selectany-code.
10839 2015-10-02 Richard Biener <rguenther@suse.de>
10841 * tree-ssa-sccvn.c (has_VN_INFO): New function.
10842 (free_scc_vn): Use it.
10843 (visit_use): Remove dead code and refactor to use gassign
10844 and use less indentation.
10846 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10850 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
10851 (rs6000_cannot_copy_insn_p): New function.
10852 * config/rs6000/rs6000.md (cannot_copy): New attribute.
10853 (load_toc_v4_PIC_1_normal): Set cannot_copy.
10854 (load_toc_v4_PIC_1_476): Ditto.
10856 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10858 * graphite-scop-detection.c (struct sese_l): New conversion constructor
10859 so that this type can be pushed into a vec.
10860 (class scop_builder): use sese_l to collect scops.
10861 (get_scops): New getter function.
10862 (remove_intersecting_scops): Use sese_l instead of scops_p.
10863 (intersects): Same.
10866 (remove_subscops): Same.
10867 (build_scops): Add scops to vec<scops_p> once all the scops have been
10870 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10872 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
10873 Renamed type from gimple_bb_p to gimple_poly_bb_p.
10874 (translate_isl_ast_node_user): Same.
10875 * graphite-poly.c (new_poly_bb): Same.
10876 * graphite-poly.h (gbb_from_bb): Same.
10878 * graphite-sese-to-poly.c (new_gimple_bb):
10879 gimple_bb_p -> gimple_poly_bb_p
10880 (build_scop_scattering): Same.
10881 (find_params_in_bb): Same.
10882 (add_conditions_to_domain): Same.
10883 (sese_dom_walker::before_dom_children): Same.
10884 (analyze_drs_in_stmts): Same.
10885 (new_pbb_from_pbb): Same.
10886 (free_data_refs_aux): New pointer to type base_alias_pair.
10887 * graphite-sese-to-poly.h: Same.
10888 * sese.c (if_region_set_false_region): Fixed Indentation.
10889 (move_sese_in_condition): Same.
10891 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10892 Aditya Kumar <aditya.k7@samsung.com>
10894 PR tree-optimization/66980
10895 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
10896 when data reference analysis has failed.
10898 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10899 Aditya Kumar <aditya.k7@samsung.com>
10901 PR tree-optimization/67754
10902 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
10903 scev analysis on the same loop nest as analyze_drs_in_stmts.
10904 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
10906 (try_generate_gimple_bb): Call outermost_loop_in_sese.
10907 (analyze_drs_in_stmts): Same.
10908 * sese.c (outermost_loop_in_sese): ...here.
10910 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10911 Aditya Kumar <aditya.k7@samsung.com>
10913 PR tree-optimization/67754
10914 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
10915 recursion on the inner loops.
10917 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10919 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
10920 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
10921 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
10922 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
10923 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
10925 2015-10-01 Marek Polacek <polacek@redhat.com>
10928 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
10929 create_tmp_var_raw rather than create_tmp_var.
10931 2015-10-01 Marek Polacek <polacek@redhat.com>
10933 PR tree-optimization/67769
10934 * tree-ssa-phiopt.c (conditional_replacement): Call
10935 reset_flow_sensitive_info_in_bb.
10936 (minmax_replacement): Likewise.
10937 (abs_replacement): Likewise.
10939 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
10941 * builtins.c: Don't include gomp-constants.h.
10942 (fold_builtin_1): Don't fold acc_on_device here.
10943 * gimple-fold.c: Include gomp-constants.h.
10944 (gimple_fold_builtin_acc_on_device): New.
10945 (gimple_fold_builtin): Call it.
10947 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
10949 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
10950 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
10952 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
10954 * config/arm/aarch-common-protos.h
10955 (aarch_accumulator_forwarding): New.
10956 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10957 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
10958 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10959 * config/arm/cortex-a53.md: Rewrite.
10961 2015-10-01 Richard Biener <rguenther@suse.de>
10963 * gimple-match.h (mprts_hook): Declare.
10964 * gimple-match.head.c (mprts_hook): Define.
10965 (maybe_push_res_to_seq): Use new hook.
10966 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10967 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
10968 (vn_ssa_aux::has_constants): Remove.
10969 * tree-ssa-sccvn.c: Include gimple-match.h.
10970 (VN_INFO_GET): Assert we don't re-use SSA names.
10971 (vn_get_expr_for): Remove.
10972 (expr_has_constants): Likewise.
10973 (stmt_has_constants): Likewise.
10974 (simplify_binary_expression): Likewise.
10975 (simplify_unary_expression): Likewise.
10976 (vn_lookup_simplify_result): New hook.
10977 (visit_copy): Adjust.
10978 (visit_reference_op_call): Likewise.
10979 (visit_phi): Likewise.
10980 (visit_use): Likewise.
10981 (process_scc): Likewise.
10982 (init_scc_vn): Likewise.
10983 (visit_reference_op_load): Likewise. Use match-and-simplify and
10984 a gimple seq for inserted expressions.
10985 (try_to_simplify): Remove GENERIC stmt combining code.
10986 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
10987 * tree-ssa-pre.c (eliminate_insert): Adjust.
10988 (eliminate_dom_walker::before_dom_children): Likewise.
10990 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10992 * doc/invoke.texi (Optimization Options): Add
10993 -freorder-blocks-algorithm=.
10994 (Optimize Options) <-O>: Add -freorder-blocks.
10995 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
10996 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
10997 <-freorder-blocks>: Also enabled at levels -O and -Os.
10998 <-freorder-blocks-algorithm=>: Document new option.
11000 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11002 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
11003 with flag_reorder_blocks_algorithm.
11004 * common.opt (freorder-blocks-algorithm=): New flag.
11005 (reorder_blocks_algorithm): New enum.
11006 * flag-types.h (reorder_blocks_algorithm): New enum.
11007 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
11008 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
11010 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11012 * bb-reorder.c: Add intro comment.
11013 (reorder_basic_blocks_software_trace_cache): Print a header to
11015 (edge_order): New function.
11016 (reorder_basic_blocks_simple): New function.
11017 (reorder_basic_blocks): Choose between the STC and the simple
11018 algorithms (always choose the former).
11020 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11022 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
11023 function, factored out from ...
11024 (reorder_basic_blocks): ... here.
11026 2015-10-01 Tom de Vries <tom@codesourcery.com>
11028 * tree-cfg.c (dump_function_to_file): Dump function attributes using
11029 __attribute__(()) string. Move dumping of function attributes to before
11032 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
11035 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
11036 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
11037 based on gold linker version.
11038 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
11039 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
11040 * configure, config.in: Regenerate.
11042 2015-10-01 Alan Modra <amodra@gmail.com>
11044 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
11045 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
11046 (rs6000_output_mi_thunk): Likewise.
11048 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
11050 * config/nvptx/mkoffload.c (process): Change offload data format.
11052 2015-09-30 Jeff Law <law@redhat.com>
11054 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
11055 with constant conditions.
11056 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
11057 (remove_ctrl_stmt_and_useless_edges): No longer static.
11058 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
11059 (remove_ctrl_stmt_and_useless_edges): Likewise.
11061 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
11062 Cesar Philippidis <cesar@codesourcery.com>
11064 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
11065 (TARGET_GOACC_VALIDATE_DIMS): Override.
11066 * target.def (TARGET_GOACC): New target hook prefix.
11067 (validate_dims): New hook.
11068 * targhooks.h (default_goacc_validate_dims): New.
11069 * omp-low.c (oacc_validate_dims): New.
11070 (execute_oacc_device_lower): New.
11071 (default_goacc_validate_dims): New.
11072 (pass_data_oacc_device_lower): New.
11073 (pass_oacc_device_lower): New pass.
11074 (make_pass_oacc_device_lower): New.
11075 * tree-pass.h (make_pass_oacc_device_lower): Declare.
11076 * passes.def (pass_oacc_device_lower): Add it.
11077 * doc/tm.texi: Rebuilt.
11078 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
11079 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
11081 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11083 PR rtl-optimization/67037
11084 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
11086 2015-09-30 Bernd Schmidt <bernds@redhat.com>
11088 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
11089 * passes.c: Include tree-ssanames.h.
11090 (execute_function_todo): Flush the pending free SSA_NAMEs after
11091 eliminating unreachable basic blocks.
11092 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
11093 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
11094 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
11095 (flush_ssanames_freelist): New function.
11096 (release_ssaname_fn): Put released names on the queue.
11097 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
11098 * tree-ssanames.h (flush_ssanames_freelist): Declare.
11100 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11102 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
11103 (generate_target_descr_file, generate_target_offloadend_file)
11104 (generate_host_descr_file, prepare_target_image): Pass it on.
11105 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
11106 (compile_native, main): Pass it on.
11107 * lto-wrapper.c (compile_offload_image): Likewise.
11109 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11110 Ilya Verbin <ilya.verbin@intel.com>
11111 Andrey Turetskiy <andrey.turetskiy@intel.com>
11113 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
11114 (prepare_target_image, main): Refactor argv building to use
11117 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11119 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
11120 * config/spu/spu.c (spu_expand_atomic_op): New function.
11121 * config/spu/spu.md (AINT): New mode iterator.
11122 (ATOMIC): New code iterator.
11123 (atomic_name, atomic_pred): New code predicates.
11124 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
11125 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
11126 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
11127 "atomic_<atomic_name>_fetch<mode>"): Likewise.
11129 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
11131 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
11133 (scalar_chain::convert_reg): Likewise.
11135 2015-09-30 Richard Biener <rguenther@suse.de>
11137 * builtins.c: Add comment that no new simplifications should
11140 2015-09-30 Marek Polacek <polacek@redhat.com>
11142 PR tree-optimization/67690
11143 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
11144 reset_flow_sensitive_info_in_bb.
11145 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
11146 * tree-ssanames.c: Include "gimple-iterator.h".
11147 (reset_flow_sensitive_info_in_bb): New function.
11148 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
11150 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11152 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
11153 variable, replacing it with...
11154 (offload_abi): ... this new variable. Adjust all users.
11155 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
11157 2015-09-30 Matthias Klose <doko@ubuntu.com>
11159 * configure.ac: Remove extraneous ;;.
11160 * configure: Regenerate.
11162 2015-09-29 James Bowman <james.bowman@ftdichip.com>
11164 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
11165 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
11166 predicate, disallow register for operand 2.
11168 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
11170 * graphite-dependences.c (scop_get_dependences): Moved in down
11171 in order to be visible to its caller.
11172 * graphite-poly.h: Removed compute_deps, and extend_schedule.
11174 2015-09-29 Sebastian Pop <s.pop@samsung.com>
11175 Aditya Kumar <aditya.k7@samsung.com>
11177 PR tree-optimization/67754
11178 * graphite-optimize-isl.c (optimize_isl): Call
11179 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
11181 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
11183 * builtins.c (expand_builtin_acc_on_device): Delete.
11184 (expand_builtin): Don't call it.
11185 (fold_builtin_1): Fold acc_on_device.
11187 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
11189 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
11190 (ix86_nsaved_sseregs): Likewise.
11192 2015-09-29 Jeff Law <law@redhat.com>
11194 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
11195 computation of unused value.
11197 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
11198 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
11199 inline macro expansion.
11201 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
11203 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
11204 (gen_shl_sext): Likewise.
11205 * config/sh/sh.md (divsi3): Likewise.
11206 (imm->ext_dest_operand splitter): Likewise.
11208 2015-09-29 Sebastian Pop <s.pop@samsung.com>
11209 Aditya Kumar <aditya.k7@samsung.com>
11211 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
11212 (nb_data_writes_in_bb): Remove.
11213 (split_pbb): Remove.
11214 (split_reduction_stmt): Remove.
11215 (is_reduction_operation_p): Remove.
11216 (phi_contains_arg): Remove.
11217 (follow_ssa_with_commutative_ops): Remove.
11218 (detect_commutative_reduction_arg): Remove.
11219 (detect_commutative_reduction_assign): Remove.
11220 (follow_inital_value_to_phi): Remove.
11221 (edge_initial_value_for_loop_phi): Remove.
11222 (initial_value_for_loop_phi): Remove.
11223 (used_outside_reduction): Remove.
11224 (detect_commutative_reduction): Remove.
11225 (translate_scalar_reduction_to_array_for_stmt): Remove.
11226 (remove_phi): Remove.
11227 (dr_indices_valid_in_loop): Remove.
11228 (close_phi_written_to_memory): Remove.
11229 (translate_scalar_reduction_to_array): Remove.
11230 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
11231 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
11232 (rewrite_commutative_reductions_out_of_ssa): Remove.
11233 (build_poly_scop): Remove call to
11234 rewrite_commutative_reductions_out_of_ssa.
11236 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
11238 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
11239 Add new insn types for vector load and store pairs.
11240 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
11241 types "neon_ldp{,_q}".
11242 * config/arm/cortex-a57.md (neon_load_c): Add insn types
11244 (neon_store_complex): Add insn types "neon_stp{,_q}".
11245 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
11246 "neon_{ldp,stp}_q".
11248 2015-09-29 Jeff Law <law@redhat.com>
11250 * config/rx/constraints.md (Int08): Fix undefined left shift
11252 (Sint08, Sint16, Sint24): Likewise.
11253 * config/rx/rx.c (rx_get_stack_layout): Likewise.
11255 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
11258 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
11259 left shift behaviour.
11260 * config/msp430/constraints.md ('L' constraint): Similarly.
11261 ('Ys' constraint): Similarly.
11263 2015-09-29 Richard Biener <rguenther@suse.de>
11265 PR tree-optimization/67170
11266 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
11267 the translate function pointer parameter to get the
11268 bool whether to disambiguate only by reference.
11269 (walk_non_aliased_vuses): Likewise.
11270 * tree-ssa-alias.c (maybe_skip_until): Adjust.
11271 (get_continuation_for_phi_1): Likewise.
11272 (get_continuation_for_phi): Likewise.
11273 (walk_non_aliased_vuses): Likewise.
11274 * tree-ssa-sccvn.c (const_parms): New bitmap.
11275 (vn_reference_lookup_3): Adjust for interface change.
11276 Disambiguate parameters pointing to readonly memory.
11277 (free_scc_vn): Free const_parms.
11278 (run_scc_vn): Initialize const_parms from a fn spec attribute.
11280 2015-09-29 Richard Biener <rguenther@suse.de>
11282 PR tree-optimization/67741
11283 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
11284 builtin calls with correct signature.
11286 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
11289 * config/i386/i386.c: Include dbgcnt.h.
11290 (has_non_address_hard_reg): New.
11291 (convertible_comparison_p): New.
11292 (scalar_to_vector_candidate_p): New.
11293 (remove_non_convertible_regs): New.
11294 (scalar_chain): New.
11295 (scalar_chain::scalar_chain): New.
11296 (scalar_chain::~scalar_chain): New.
11297 (scalar_chain::add_to_queue): New.
11298 (scalar_chain::mark_dual_mode_def): New.
11299 (scalar_chain::analyze_register_chain): New.
11300 (scalar_chain::add_insn): New.
11301 (scalar_chain::build): New.
11302 (scalar_chain::compute_convert_gain): New.
11303 (scalar_chain::replace_with_subreg): New.
11304 (scalar_chain::replace_with_subreg_in_insn): New.
11305 (scalar_chain::emit_conversion_insns): New.
11306 (scalar_chain::make_vector_copies): New.
11307 (scalar_chain::convert_reg): New.
11308 (scalar_chain::convert_op): New.
11309 (scalar_chain::convert_insn): New.
11310 (scalar_chain::convert): New.
11311 (convert_scalars_to_vector): New.
11312 (pass_data_stv): New.
11314 (make_pass_stv): New.
11315 (ix86_option_override): Created and register stv pass.
11316 (flag_opts): Add -mstv.
11317 (ix86_option_override_internal): Likewise.
11318 * config/i386/i386.md (SWIM1248x): New.
11319 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
11320 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
11321 (*anddi3_doubleword): New.
11322 (*zext<mode>_doubleword): New.
11323 (*zextsi_doubleword): New.
11324 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
11325 (*<code>di3_doubleword): New.
11326 * config/i386/i386.opt (mstv): New.
11327 * dbgcnt.def (stv_conversion): New.
11329 2015-09-29 Tom de Vries <tom@codesourcery.com>
11331 * tree-cfg.c (dump_function_to_file): Dump function attributes.
11333 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
11336 * config/sh/sh.c (sh_override_options_after_change): New.
11337 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
11338 (sh_option_override): Move align_loops, align_jumps and
11339 align_functions handling into sh_override_options_after_change.
11341 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
11343 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
11344 (nvptx_record_offload_symbol): Record function execution geometry.
11345 * config/nvptx/mkoffload.c (process): Include launch geometry in
11347 * omp-low.c (oacc_launch_pack): New.
11348 (replace_oacc_fn_attrib): New.
11349 (set_oacc_fn_attrib): New.
11350 (get_oacc_fn_attrib): New.
11351 (expand_omp_target): Create keyed varargs for GOACC_parallel call
11353 * omp-low.h (get_oacc_fn_attrib): Declare.
11354 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
11355 (DEF_FUNCTION_TYPE_VAR_11): Delete.
11356 * tree.h (OMP_CLAUSE_EXPR): New.
11357 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
11359 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11360 Sebastian Pop <s.pop@samsung.com>
11362 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
11364 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11365 Sebastian Pop <s.pop@samsung.com>
11367 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
11368 * graphite-scop-detection.c (struct sese_l): New type.
11369 (get_entry_bb): API for getting entry bb of SESE.
11370 (get_exit_bb): API for getting exit bb of SESE.
11371 (class debug_printer): New type. Simple printer in debug mode.
11372 (trivially_empty_bb_p): New. Return true when BB is empty or
11373 contains only debug instructions.
11374 (graphite_can_represent_expr): Call scalar_evoution_in_region
11375 instead of analyze_scalar_evolution. Pass in scop instead of only
11377 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
11379 (stmt_simple_for_scop_p): Same.
11380 (harmful_stmt_in_bb): Same.
11381 (graphite_can_represent_loop): Deleted.
11382 (struct scopdet_info): Deleted.
11383 (scopdet_basic_block_info): Deleted.
11384 (build_scops_1): Deleted.
11385 (bb_in_sd_region): Deleted.
11386 (find_single_entry_edge): Deleted.
11387 (find_single_exit_edge): Deleted.
11388 (create_single_entry_edge): Deleted.
11389 (sd_region_without_exit): Deleted.
11390 (create_single_exit_edge): Deleted.
11391 (unmark_exit_edges): Deleted.
11392 (mark_exit_edges): Deleted.
11393 (create_sese_edges): Deleted.
11394 (build_graphite_scops): Deleted.
11395 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
11396 (build_scops): Use the new scop_builder to build scops.
11397 (dot_all_scops_1): Use the new pretty printer. Print loop father
11399 (loop_body_is_valid_scop): New. Return true if loop body is a
11401 (class scop_builder): New. Builds SCoPs for polyhedral
11403 (scop_builder): New constructor.
11404 (static sese_l invalid_sese): sese_l with invalid edges.
11405 (get_sese): Get an sese (from a loop) if possible, invalid_sese
11407 (get_nearest_dom_with_single_entry): Get nearest dominator of a
11408 basic_block with single entry. Return NULL if we get to the
11409 beginning of a function.
11410 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
11411 a basic_block with single exit. Return NULL if we get to the
11412 beginning of a function.
11413 (print_sese): Pretty-print SESE.
11414 (merge_sese): Merge two SESEs if possible and return the new SESE.
11415 (build_scop_depth): Start building the SCoP within a loop nest.
11416 (build_scop_breadth): Start building the SCoP at a single loop
11417 depth. Merge adjacent SESEs if valid.
11418 (can_represent_loop_1): Returns true if Graphite can represent
11419 loop inside SCoP. Helper for can_represent_loop.
11420 (can_represent_loop): Returns true if Graphite can represent LOOP
11421 and all its nested loops in SCoP.
11422 (loop_is_valid_scop): Returns true if LOOP and all its nests
11423 constitute a valid SCoP.
11424 (region_has_one_loop): Returns true of a region has only one loop.
11425 (add_scop): Add SCoP to the list of valid scops. Removes an
11426 already existing scop if it intersects with or subsumed by this one.
11427 (harmful_stmt_in_region): Returns true if SCoP has any statment
11428 which cannot be represented by Graphite.
11429 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
11430 (remove_subscops): Remove any SCoP from the list of already found
11431 SCoPs, if subsumed by S1.
11432 (intersects): Return true if region bounded by SCoPs S1 and S2
11434 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
11435 * graphite.c (print_graphite_scop_statistics):
11436 (print_graphite_statistics): Print SCoP info while debugging.
11437 (graphite_initialize): Early exit in case number of loops in a
11438 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
11439 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
11440 (graphite_finalize):
11441 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
11442 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
11443 (recompute_all_dominators): Recalculate POST_DOMINATORS.
11444 * tree-cfg.c (print_loops): Print the function name while printing
11447 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11448 Sebastian Pop <s.pop@samsung.com>
11450 PR tree-optimization/67700
11451 * graphite-sese-to-poly.c (parameter_index_in_region): Call
11452 invariant_in_sese_p_rec.
11453 (extract_affine): Same.
11454 (rewrite_cross_bb_scalar_deps): Call update_ssa.
11455 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
11456 * sese.h (invariant_in_sese_p_rec): Declare.
11458 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
11460 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
11462 2015-09-28 Jiong Wang <jiong.wang@arm.com>
11465 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11466 Jiong Wang <jiong.wang@arm.com>
11468 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
11469 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
11470 (REG_CLASS_NAMES): Likewise.
11471 (REG_CLASS_CONTENTS): Likewise.
11472 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
11473 (aarch64_register_move_cost): Likewise.
11474 (aarch64_load_symref_appropriately): Invoke the new added pattern if
11476 * config/aarch64/constraints.md (Uc0): New constraint.
11478 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
11480 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
11482 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
11484 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
11485 SECTION_EXCLUDE in XO mapping class.
11487 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11490 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
11491 and handle ne and eq codes.
11492 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
11493 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
11494 CONST_INT_P. Use reverse_condition.
11495 (sh_split_treg_set_expr): Likewise.
11497 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
11499 * config/arm/types.md (type): Add rotate_imm.
11500 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
11501 ROR immediate case.
11502 (*rorsi3_insn_uxtw): Likewise.
11503 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
11504 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
11505 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
11507 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11509 PR rtl-optimization/67481
11510 * ifcvt.c (contains_ccmode_rtx_p): New function.
11511 (insn_valid_noce_process_p): Use it.
11513 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11515 PR rtl-optimization/67456
11516 PR rtl-optimization/67464
11517 PR rtl-optimization/67465
11518 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
11519 move in the mode of x. Handle combination of complex and simple
11520 block pairs as well as the case when one is empty.
11522 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11524 * doc/gimple.texi: Update references to gimple_statement_base.
11525 * gdbhooks.py: Likewise.
11526 * gimple.h: Likewise.
11528 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11530 * config/sparc/driver-sparc.c: map LEON to leon3
11532 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11534 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
11535 and make it inverse to change default
11536 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
11538 * doc/invoke.texi: Document change of default
11540 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11542 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
11543 true on %f0 for a target without FPU.
11544 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
11546 (untyped_return): Do not load %f0 for a target without FPU.
11548 2015-09-28 Andrew Pinski <apinski@cavium.com>
11550 * config/aarch64/aarch64.md (prefetch):
11551 Change the predicate of operand 0 to register_operand.
11553 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
11555 * config/i386/predicates.md (register_sse4nonimm_operand): New
11557 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
11558 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
11559 Use register_sse4nonimm_operand as operand 0 predicate.
11560 (*vec_extractv8hi_sse2): Remove insn pattern.
11561 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
11562 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
11564 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11565 Kaz Kojima <kkojima@gcc.gnu.org>
11568 * config/sh/sh-protos.h (sh_lra_p): Declare.
11569 * config/sh/sh.c (sh_lra_p): Make non-static.
11570 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
11571 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
11572 Expand into addsi3_scr if operands[2] if needed.
11573 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
11574 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
11575 (addsi3_scr, *addsi3): New insn_and_split patterns.
11577 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
11579 PR rtl-optimization/64164
11580 PR tree-optimization/67312
11581 PR middle-end/67340
11582 PR middle-end/67490
11584 * cfgexpand.c (parm_in_stack_slot_p): Remove.
11585 (ssa_default_def_partition): Remove.
11586 (get_rtl_for_parm_ssa_default_def): Remove.
11587 (set_rtl): Check that RTL assignments match expectations.
11588 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
11589 default def location for params and results. Record SSA names
11590 or types in REG and MEM attrs, respectively.
11591 (set_parm_rtl): New.
11592 (expand_one_ssa_partition): Drop logic that assigned MEMs with
11593 unassigned addresses.
11594 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
11595 deferred stack alloc vars.
11596 (expand_used_vars): Skip partitions holding parm default defs.
11597 Move adjust_one_expanded_partition_var loop...
11598 (pass_expand::execute): ... here. Drop redundant assert.
11599 Adjust comments before the final loop over all ssa names.
11600 Require assigned rtl of parms and results to match exactly.
11601 Reset its attributes to match them, not any other variables in
11602 the same partition.
11603 (expand_debug_expr): Use entry value for PARM's default defs
11604 only iff they have zero nondebug uses.
11605 * cfgexpand.h (parm_in_stack_slot_p): Remove.
11606 (get_rtl_for_parm_ssa_default_def): Remove.
11607 (set_parm_rtl): Declare.
11608 * doc/invoke.texi: Improve wording.
11609 * explow.c (promote_decl_mode): Fix promote_function_mode for
11610 result decls not by reference.
11611 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
11612 bypass TYPE_MODE to get the actual vector mode.
11613 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
11614 2015-08-19's changes as follows. Drop include of
11615 basic-block.h and df.h.
11616 (rtl_for_parm): Remove.
11617 (maybe_reset_rtl_for_parm): Remove.
11618 (parm_in_unassigned_mem_p): Remove.
11619 (use_register_for_decl): Add logic for RESULT_DECLs matching
11620 assign_parms' behavior.
11621 (split_complex_args): Revert.
11622 (assign_parms_augmented_arg_list): Revert. Add comment
11623 referencing the logic above.
11624 (assign_parm_adjust_stack_rtl): Revert.
11625 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
11626 of SET_DECL_RTL. Set up a REG if the parm demands so.
11627 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
11628 calls into a single set_parm_rtl. Set up a temporary RTL
11629 temporarily for expand_assignment.
11630 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
11631 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
11632 (assign_bounds): Revert.
11633 (assign_parms): Revert. Use set_parm_rtl.
11634 (allocate_struct_function): Relayout result and parms of
11635 non-abstruct functions.
11636 (expand_function_start): Revert. Use set_parm_rtl. If the
11637 result is not a hard reg, create a pseudo from the promoted
11638 mode of the default def. Promote static chain mode.
11639 * tree-outof-ssa.c (remove_ssa_form): Drop unused
11640 partition_has_default_def. Set up
11641 partitions_for_parm_default_defs.
11642 (finish_out_of_ssa): Remove partition_has_default_def.
11643 Release partitions_for_parm_default_defs.
11644 * tree-outof-ssa.h (struct ssaexpand): Remove
11645 partition_has_default_def. Add
11646 partitions_for_parm_default_defs.
11647 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
11649 (build_ssa_conflict_graph): Fix conflict-detection of default
11650 defs of even unused default defs of params and results.
11651 (for_all_parms): New.
11652 (create_default_def): New.
11653 (register_default_def): New.
11654 (coalesce_with_default): New.
11655 (create_outofssa_var_map): Create default defs for all parms
11656 and results, and register their partitions. Add GIMPLE_RETURN
11657 operands as coalesce candidates with results. Add default
11658 defs of each parm or result as coalesce candidates with its
11659 other defs. Mark each result def, and each default def of
11660 parms, as used_in_copy.
11661 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
11662 with the ssa names, even anonymous ones. Drop
11663 parm_in_stack_slot_p calls. Require same signedness and
11665 (coalesce_ssa_name): Add coalesce candidates for all defs of
11666 each parm and result, even unused ones.
11667 (parm_default_def_partition_arg): New type.
11668 (set_parm_default_def_partition): New.
11669 (get_parm_default_def_partitions): New.
11670 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
11671 * tree-ssa-live.c (partition_view_init): Regard unused defs of
11672 parms and results as used.
11673 (verify_live_on_entry): Don't error out just because they're
11676 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
11678 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11679 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
11680 (output_fde): Don't output length for debug_frame on AIX.
11681 (output_call_frame_info): Don't output length for debug_frame on AIX.
11682 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
11683 HAVE_XCOFF_DWARF_EXTRAS.
11684 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
11685 HAVE_XCOFF_DWARF_EXTRAS.
11686 (output_compilation_unit_header): Don't output length on AIX.
11687 (output_pubnames): Don't output length on AIX.
11688 (output_aranges): Delete argument. Compute length locally. Don't
11689 output length on AIX.
11690 (output_line_info): Don't output length on AIX.
11691 (dwarf2out_finish): Don't compute aranges_length.
11692 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11693 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
11694 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
11695 symbol decoration for AIX.
11696 (rs6000_xcoff_debug_unwind_info): New.
11697 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
11699 (rs6000_xcoff_declare_function_name): Emit different
11700 .function pseudo-op when DWARF2_DEBUG. Don't call
11701 xcoffout_declare_function for DWARF2_DEBUG.
11702 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
11704 * config/rs6000/aix71.h: New.
11705 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
11707 * configure: Regenerate.
11708 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
11711 2015-09-26 Jeff Law <law@redhat.com>
11713 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
11715 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
11718 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
11721 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
11722 undefined behaviour.
11724 * config/cris/cris.md (asrandb): Fix left shift undefined
11726 (asrandw): Likewise.
11728 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
11731 * lra-constarints.c (match_reload): Check presence of the input pseudo
11732 in the output operand.
11734 2015-09-25 Tobias Burnus <burnus@net-b.de>
11736 * doc/invoke.texi (-fsanitize): Minor wording tweak.
11738 2015-09-25 Tobias Burnus <burnus@net-b.de>
11740 * doc/invoke.texi (-fsanitize): Update URLs.
11742 2015-09-25 Teresa Johnson <tejohnson@google.com>
11744 * opts.c (finish_options): Unset -freorder-blocks-and-partition
11745 if not using profile.
11747 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
11749 PR pretty-print/67567
11750 * pretty-print.c (pp_string): Add gcc_checking_assert.
11751 * pretty-print.h (output_buffer_append_r): Likewise.
11753 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11756 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
11757 addr2 individually. Don't emit logical or insn if one is known to
11758 be aligned approriately.
11759 (sh_expand_cmpnstr): Likewise.
11761 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
11763 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
11764 __builtin_aarch64_fp[sc]r arguments into a register.
11766 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
11768 * config.gcc (x86_archs): Replace lakemount with lakemont.
11769 (with_cpu): Likewise.
11770 (with_arch): Likewise.
11771 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11772 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
11773 __tune_lakemount__ with __tune_lakemont__.
11774 * config/i386/i386.c (lakemount_cost): Renamed to ...
11775 (lakemont_cost): This.
11776 (m_LAKEMOUNT): Renamed to ...
11777 (m_LAKEMONT): This.
11778 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
11779 (processor_target_table): Replace "lakemount" with "lakemont".
11780 (processor_alias_table): Likewise.
11781 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
11782 PROCESSOR_LAKEMONT.
11783 (ix86_adjust_cost): Likewise.
11784 (ia32_multipass_dfa_lookahead): Likewise.
11785 * config/i386/i386.h (processor_type): Likewise.
11786 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
11787 * doc/invoke.texi: Replace lakemount with lakemont. Replace
11788 Lakemount with Lakemont.
11790 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
11792 * config.gcc (x86_archs): Replace iamcu with lakemount.
11793 (with_cpu): Likewise.
11794 (with_arch): Likewise.
11795 * doc/invoke.texi: Likewise.
11796 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11797 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
11798 __tune_iamcu__ with __tune_lakemount__.
11799 * config/i386/i386.c (iamcu_cost): Renamed to ...
11800 (lakemount_cost): This.
11801 (m_IAMCU): Renamed to ...
11802 (m_LAKEMOUNT): This.
11803 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
11804 (processor_target_table): Replace "iamcu" with "lakemount".
11805 (processor_alias_table): Likewise.
11806 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
11807 PROCESSOR_LAKEMOUNT.
11808 (ix86_adjust_cost): Likewise.
11809 (ia32_multipass_dfa_lookahead): Likewise.
11810 * config/i386/i386.h (processor_type): Likewise.
11811 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
11813 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
11815 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
11816 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
11818 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
11819 (pa_expand_compare_and_swap_loop): New.
11820 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
11821 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
11822 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
11823 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
11824 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
11827 2015-09-24 Michael Collison <michael.collison@linaro.org>
11830 * read-md.c (read_name): Allow mode iterators inside angle
11831 brackets in rtl expressions.
11833 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
11836 * ira-color.c (update_allocno_cost): Add parameter.
11837 (update_costs_from_allocno): Decrease conflict cost. Pass the new
11840 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11843 * opts-common.c (prune_options): Discard all -fdiagnostics-color
11844 but the last one, which is moved to the front to be processed
11846 * opts.c (enable_warning_as_error): Reject options that do not
11849 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11851 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
11853 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11855 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
11856 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
11857 (aarch64_cannot_force_const_mem): Likewise.
11858 (aarch64_classify_address): Likewise.
11859 (aarch64_classify_symbolic_expression): Likewise.
11860 (aarch64_print_operand): Likewise.
11861 (aarch64_classify_symbol): Likewise.
11862 (aarch64_mov_operand_p): Likewise.
11863 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
11864 (aarch64_mov_operand): Likewise.
11866 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
11868 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
11869 for info->spe_gp_size.
11871 2015-09-24 Richard Biener <rguenther@suse.de>
11874 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
11877 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
11879 * tree-object-size.c (plus_stmt_object_size)
11880 (cond_expr_object_size): Change the formal parameters from gimple
11882 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
11883 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
11884 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
11886 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11888 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
11889 Check for ld -type pie on Solaris 11.x and 12.
11890 * configure: Regenerate.
11891 * config.in: Regenerate.
11893 * gcc.c (LD_PIE_SPEC): Allow redefinition.
11895 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
11896 (STARTFILE_SPEC): Use it.
11897 (ENDFILE_CRTEND_SPEC): Define.
11898 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
11899 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
11900 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
11901 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
11902 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
11903 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
11904 (ENDFILE_ARCH_SPEC): Define.
11905 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
11907 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11909 * configure.ac (gcc_cv_solaris_crts): New test.
11910 * configure. Regenerate.
11911 * config.in: Regenerate.
11912 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
11913 HAVE_SOLARIS_CRTS variant.
11915 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11917 * tree-inline.h (count_insns_seq): Delete prototype.
11918 (estimate_num_insns_seq): Define prototype.
11919 * tree-inline.c (count_insns_seq): Delete.
11920 (estimate_num_insns_seq): Remove static qualifier.
11921 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
11922 with estimate_num_insns_seq.
11924 2015-09-24 Richard Biener <rguenther@suse.de>
11926 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
11928 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
11929 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
11931 (ao_ref_init_from_vn_reference): Record clique and base in the
11933 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
11935 2015-09-24 Richard Biener <rguenther@suse.de>
11937 PR tree-optimization/48885
11938 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
11939 as not including any restrict tags from other pointers.
11941 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
11943 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
11944 character when appending to offload_targets.
11946 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
11947 offload targets by commas, not colons.
11948 * config.in: Regenerate.
11949 * configure: Likewise.
11950 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
11951 instead of setting up the default offload targets here...
11952 (process_command): ..., do it here.
11954 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
11955 targets are separated by commas.
11956 * config.h.in: Regenerate.
11958 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
11959 Nathan Sidwell <nathan@codesourcery.com>
11961 * omp-low.h (omp_reduction_init_op): Declare.
11962 * omp-low.c (omp_reduction_init_op): New, broken out of ...
11963 (omp_reduction_init): ... here. Call it.
11964 * tree-parloops.c (initialize_reductions): Use
11965 omp_reduction_init_op.
11967 2015-09-23 Richard Biener <rguenther@suse.de>
11969 PR middle-end/67662
11970 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
11971 undefined overflow unless they will cancel out.
11973 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
11975 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
11978 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
11981 * opts.h (write_langs): Declare.
11982 * opts-global.c (write_langs): Make it extern.
11984 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
11987 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
11988 overlapping regs when matching the pattern.
11990 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
11992 * config/aarch64/aarch64-simd.md
11993 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
11994 (aarch64_float_truncate_hi_v4sf_le): New.
11995 (aarch64_float_truncate_hi_v4sf_be): Likewise.
11997 2015-09-23 Richard Biener <rguenther@suse.de>
11999 * tree-ssa-structalias.c (intra_create_variable_infos): Build
12000 representatives for all restrict qualified pointer destinations.
12002 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
12004 * config/i386/i386.md (define_code_attr mshift): New.
12005 (define_mode_iterator SWI1248_AVX512BW): Rename ...
12006 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
12008 (define_insn "*k<logic><mode>"): Use new iterator name.
12009 (define_insn "*<mshift><mode>3"): New.
12011 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
12013 PR middle-end/67649
12014 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
12015 mark the block as accessible.
12017 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
12019 * function.c (thread_prologue_and_epilogue_insns): Delete
12020 orig_entry_edge argument to try_shrink_wrapping.
12021 * shrink-wrap.c (can_get_prologue): New function.
12022 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
12023 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
12024 can_get_prologue where needed. Remove code that finds a single
12025 edge for the prologue. Remove code that tests if any reg clobbered
12026 by the prologue is live on the prologue edge. Remove code that finds
12027 the new prologue edge after duplicating blocks. Make a new prologue
12029 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
12031 2015-09-22 Jeff Law <law@redhat.com>
12033 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
12036 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
12038 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
12039 -Wtemplates, -Wnamespaces): Document.
12041 2015-09-22 Tom de Vries <tom@codesourcery.com>
12043 PR tree-optimization/67671
12044 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
12045 pointer references as restrict.
12047 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
12049 * config/nios2/nios2.c (nios2_legitimize_address): When handling
12050 'reg + reloc' cases, allow first operand to be non-REG, and use
12051 force_reg() to enforce address pattern.
12053 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
12056 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
12057 (define_mode_iterator VI12_AVX_AVX512F): New.
12058 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
12059 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
12060 (define_insn "*<code><mode>3"): ... Into new pattern using
12061 VI12_AVX_AVX512F iterators without masking.
12063 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
12065 * config.gcc: Support "skylake-avx512".
12066 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12067 PROCESSOR_SKYLAKE_AVX512.
12068 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
12069 (processor_target_table): Add "skylake-avx512".
12070 (PTA_SKYLAKE_AVX512): Define.
12071 (ix86_option_override_internal): Add "skylake_avx512".
12072 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
12073 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
12074 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
12075 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
12076 * doc/invoke.texi (skylake-avx512): New.
12078 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
12080 * config/i386/i386.md (define_insn "kunpckhi"): Fix
12081 operand in pattern.
12082 (define_insn "kunpcksi"): Ditto.
12083 (define_insn "kunpckdi"): Ditto.
12085 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
12087 * config/i386/i386.md (define_split not/xor SWI1248x): Use
12088 iterator instead of fixed modes.
12090 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12092 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
12093 Adjust declaration.
12094 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
12095 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
12096 out_result. Update to support update-fetch operations.
12097 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
12098 Adjust for change to aarch64_gen_atomic_ldop.
12099 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
12100 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
12101 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
12102 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
12103 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
12105 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12107 * config/aarch64/aarch64-protos.h
12108 (aarch64_atomic_ldop_supported_p): Declare.
12109 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
12110 (enum aarch64_atomic_load_op_code): New.
12111 (aarch64_emit_atomic_load_op): New.
12112 (aarch64_gen_atomic_ldop): Update to support load-operate
12114 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
12116 (aarch64_atomic_<atomic_optab><mode>): New.
12117 (aarch64_atomic_<atomic_optab><mode>_lse): New.
12118 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
12119 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
12120 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
12122 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12124 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
12125 (UNSPECV_ATOMIC_LDOP_OR): New.
12126 (UNSPECV_ATOMIC_LDOP_BIC): New.
12127 (UNSPECV_ATOMIC_LDOP_XOR): New.
12128 (UNSPECV_ATOMIC_LDOP_PLUS): New.
12129 (ATOMIC_LDOP): New.
12130 (atomic_ldop): New.
12131 (aarch64_atomic_load<atomic_ldop><mode>): New.
12133 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12135 * config/aarch64/aarch64.md
12136 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
12139 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12141 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
12143 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
12144 (aarch64_gen_atomic_ldop): New.
12145 (aarch64_split_atomic_op): Fix whitespace and add a comment.
12146 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
12147 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
12148 (atomic_exchange<mode>): Replace with an expander.
12149 (aarch64_atomic_exchange<mode>): New.
12150 (aarch64_atomic_exchange<mode>_lse): New.
12151 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
12152 (aarch64_atomic_swp<mode>): New.
12154 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
12156 * tree-inline.c (expand_call_inline): Use inform for extra note.
12157 Do not give a note with UNKNOWN_LOCATION.
12158 Replace input_location with gimple_location (stmt).
12159 Use true/false instead of TRUE/FALSE.
12161 2015-09-22 Tom de Vries <tom@codesourcery.com>
12163 PR tree-optimization/67666
12164 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
12165 with single field non-conservative.
12167 2015-09-21 David S. Miller <davem@davemloft.net>
12171 2015-09-11 David S. Miller <davem@davemloft.net>
12173 * config/sparc/constraints.md: Make "U" constraint a real register
12175 * config/sparc/sparc.c (TARGET_LRA_P): Define.
12176 (D_MODES, DF_MODES): Add missing cast.
12177 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12178 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12179 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12181 * config/sparc/sparc.h (PROMOTE_MODE): Define.
12182 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12183 provide these insn when flag_pic.
12185 2015-09-17 David S. Miller <davem@davemloft.net>
12187 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
12189 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
12191 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12192 (HARD_REGNO_CALLER_SAVE_MODE): Define.
12193 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12194 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12195 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12196 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12197 provide when flag_pic.
12199 2015-09-21 Jeff Law <law@redhat.com>
12201 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
12204 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12206 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
12208 2015-09-21 Richard Biener <rguenther@suse.de>
12210 * passes.c (rest_of_decl_compilation): Do not call
12211 dwarf2out_early_global_decl for aliases.
12213 2015-09-21 Richard Biener <rguenther@suse.de>
12216 * dwarf2out.c (add_location_or_const_value_attribute): Remove
12217 attribute parameter. Early exit if either DW_AT_const_value
12218 or DW_AT_location are present already.
12219 (gen_variable_die): Adjust caller.
12220 (dwarf2out_late_global_decl): Likewise.
12222 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12225 * config/sh/sh.c (sh_remove_overlapping_post_inc,
12226 sh_peephole_emit_move_insn): Add new functions.
12227 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
12228 sh_peephole_emit_move_insn): Declere them.
12229 * config/sh/sh.md: Use them in various peephole2 patterns.
12231 2015-09-21 Richard Biener <rguenther@suse.de>
12233 PR middle-end/67651
12234 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
12235 address with -fno-delete-null-pointer-checks.
12237 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
12239 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
12240 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
12241 (reduc_uplus_v16qi): Remove.
12243 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
12244 (reduc_<VEC_reduc_name>_v2df): Remove.
12245 (reduc_<VEC_reduc_name>_v4sf): Remove.
12246 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
12248 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
12249 gen_ function by removing * prefix.
12250 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
12252 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
12254 PR middle-end/60832
12255 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
12256 Print i_bound without converting it to a tree.
12258 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
12260 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
12261 operands[4] operands[5] swap with std::swap, removed tmp variable.
12262 (arm_evpc_neon_vzip): Replaced in0/in1 and
12263 out0/out1 swaps with std::swap, removed x variable.
12264 (arm_evpc_neon_vtrn): Replaced in0/int1 and
12265 out0/out1 swaos with std::swap, removed x variable.
12266 (arm_expand_vec_perm_const_1): Replaced
12267 d->op0/d->op1 swap with std::swap, removed x variable.
12268 (arm_evpc_neon_vuzp): Replaced in0/in1 and
12269 out0/out1 swaps with std::swap, removed x variable.
12271 2015-09-21 Jonathan Yong <10walls@gmail.com>
12273 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12274 sysroot/usr/lib/32api for additional win32 libraries,
12275 fixes failing Cygwin bootstrapping.
12277 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12279 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
12281 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12284 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
12285 (*mov_t_msb_neg): Rewrite negc pattern.
12287 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12289 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
12290 immediate generation code.
12292 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12294 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
12295 redundant immediate generation code.
12297 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12299 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
12300 (AARCH64_NUM_BITMASKS): Remove.
12301 (aarch64_bitmasks_cmp): Remove.
12302 (aarch64_build_bitmask_table): Remove.
12304 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12306 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
12307 slow immediate matching loops with a faster algorithm.
12309 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12311 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
12314 2015-09-20 Jeff Law <law@redhat.com>
12316 PR tree-optimization/47679
12317 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
12318 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
12319 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
12320 (thread_through_normal_block): Use record_temporary_equivalences.
12322 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
12324 * coretypes.h (gimple): Change typedef to be a forward declaration.
12325 * gimple.h (gimple_statement_base): rename to gimple.
12326 * (all functions and types using gimple): Adjust.
12327 * *.[ch]: Likewise.
12329 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
12330 David Edelsohn <dje.gcc@gmail.com>
12332 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
12333 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12334 (EH_FRAME_THROUGH_COLLECT2): Define.
12335 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12336 (ASM_OUTPUT_DWARF_PCREL): Define.
12337 (ASM_OUTPUT_DWARF_DATAREL): Define.
12339 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
12341 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
12344 2015-09-18 Jeff Law <law@redhat.com>
12346 PR tree-optimization/47679
12347 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
12349 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
12350 object. Update constructor.
12351 (pass_dominator::execute): Corresponding chagnes to declaration
12352 and initialization of avail_exprs_stack. Update constructor call
12353 for dom_opt_dom_walker object.
12354 (lookup_avail_expr, record_cond): Accept additional argument. Pass
12355 it down to children as needed.
12356 (record_equivalences_from_incoming_edge): Likewise.
12357 (eliminate_redundant_computations): Likewise.
12358 (record_equivalences_from_stmt): Likewise.
12359 (simplify_stmt_for_jump_threading): Likewise.
12360 (record_temporary_equivalences): Likewise.
12361 (optimize_stmt): Likewise.
12362 (dom_opt_dom_walker::thread_across_edge): Update access to
12363 avail_exprs_stack object and pass it to children as needed.
12364 (dom_opt_dom_walker::before_dom_children): Similarly.
12365 (dom_opt_dom_walker::after_dom_children): Similarly.
12366 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
12367 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
12368 Add avail_expr_stack argument. Pass it to children as needed.
12369 (dummy_simplify): Likewise.
12370 (simplify_control_stmt_condition): Likewise.
12371 (thread_around_empty_blocks): Likewise.
12372 (thread_through_normal_block): Likewise.
12373 (thread_across_edge): Likewise.
12374 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12375 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
12377 PR tree-optimization/47679
12378 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
12380 (dom_opt_dom_walker): New private member holding the const_and_copies
12381 object. Update constructor.
12382 (pass_dominator::execute): Corresponding changes to declaration
12383 and initialization of const_and_copies. Update constructor call
12384 for the dom_opt_dom_walker object.
12385 (record_temporary_equivalences): Accept const_and_copies argument
12386 pass it down to children as needed.
12387 (record_equality): Likewise.
12388 (record_equivalences_from_incoming_edge): Likewise.
12389 (cprop_into_successor_phis, optimize_stmt): Likewise.
12390 (eliminate_redundant_computations): Likewise.
12391 (dom_opt_dom_walker::thread_across_edge): Update access to
12392 const_and_copies object and pass it to children as needed.
12393 (dom_opt_dom_walker::before_dom_children): Similarly.
12394 (dom_opt_dom_walker::after_dom_children): Similarly.
12396 PR tree-optimization/47679
12397 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
12398 it into the avail_exprs_stack class.
12399 (pass_dominator::execute): Corresponding changes to declaration
12400 and initialization of avail_exprs. Pass avail_exprs to
12401 dump_dominator_optimization_stats.
12402 (record_cond): Extract avail_exprs from avail_exprs_stack.
12403 (lookup_avail_expr): Similarly.
12404 (htab_staticstics): Remove unnecessary prototype. Move to earlier
12406 (dump_dominator_optimization_stats): Make static and prototype.
12407 Add argument for the hash table to dump.
12408 (debug_dominator_optimization_stats): Remove.
12409 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
12411 (debug_dominator_optimization_stats): Similarly.
12412 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
12413 "void" in prototype for pop_to_marker method. Add accessor method
12414 for the underlying avail_exprs table.
12416 * tree-ssa-threadedge.c: Remove trailing whitespace.
12418 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
12420 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
12422 (pa_ldil_cint_p): Likewise.
12423 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
12424 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
12426 * config/pa/pa.md: Likewise.
12428 2015-09-18 David Malcolm <dmalcolm@redhat.com>
12430 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
12431 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
12432 (diagnostic_show_locus): Likewise.
12433 (diagnostic_print_caret_line): Likewise.
12434 * diagnostic-show-locus.c: New file.
12436 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
12438 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
12439 "back" parameter. Declare label in #if block.
12441 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
12443 PR middle-end/67619
12444 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
12445 the address to a register.
12447 2015-09-18 Jeff Law <law@redhat.com>
12449 PR tree-optimization/47679
12450 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
12451 * tree-ssa-dom.c: Remove unnecessary header includes.
12452 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
12453 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
12454 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
12455 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
12456 (pass_phi_only_cprop::execute): Likewise.
12457 (make_pass_phi_only_cprop): Likewise.
12458 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
12459 uses of file scoped statics by passing the required objects
12460 as parameters wherever needed.
12462 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
12463 David Edelsohn <dje.gcc@gmail.com>
12465 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
12466 EH_FRAME_THROUGH_COLLECT2.
12467 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
12469 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
12470 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
12471 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
12472 * except.c (switch_to_exception_section): Use a read-only section
12473 even if EH_FRAME_SECTION_NAME is undefined.
12474 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
12475 * collect2.c (write_c_file_stat): Provide dbase on AIX.
12476 (scan_prog_file): Don't export __dso_handle nor
12477 __gcc_unwind_dbase.
12478 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12479 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12480 (ASM_OUTPUT_DWARF_PCREL): Define.
12481 (ASM_OUTPUT_DWARF_DATAREL): Define.
12482 (EH_FRAME_THROUGH_COLLECT2): Define.
12483 (EH_FRAME_IN_DATA_SECTION): Delete.
12484 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
12485 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
12487 (rs6000_asm_output_dwarf_datarel): Declare.
12488 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
12489 (rs6000_aix_asm_output_dwarf_datarel): New.
12490 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
12491 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
12492 (EH_FRAME_THROUGH_COLLECT2): Define.
12493 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
12494 (EH_FRAME_THROUGH_COLLECT2): Define.
12495 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12496 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
12497 (EH_FRAME_THROUGH_COLLECT2): New.
12498 (ASM_OUTPUT_DWARF_DATAREL): New.
12499 * doc/tm.texi: Regenerate.
12501 2015-09-18 Richard Biener <rguenther@suse.de>
12503 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
12504 we're in early phase.
12505 (schedule_generic_params_dies_gen): Likewise.
12506 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
12507 work as possible, retaining unhandled cases.
12508 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
12509 clear out generic_type_instances at the end.
12510 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
12511 (dwarf2out_early_finish): ... here. Do most of
12512 gen_remaining_tmpl_value_param_die_attribute here.
12514 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
12516 PR tree-optimization/67283
12517 * tree-sra.c (type_consists_of_records_p): Rename to...
12518 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12519 (completely_scalarize_record): Rename to...
12520 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12521 (scalarize_elem): New.
12522 (analyze_all_variable_accesses): Follow renamings.
12524 2015-09-18 Richard Biener <rguenther@suse.de>
12526 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
12529 2015-09-18 Richard Biener <rguenther@suse.de>
12531 PR tree-optimization/66142
12532 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
12533 treat MEM[&x] and x the same.
12534 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
12535 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
12536 when we simplified sth.
12537 (vn_reference_maybe_forwprop_address): Likewise.
12538 (valueize_refs_1): When we simplified through
12539 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
12540 set valueized_anything to true.
12541 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
12542 one ref kills the other instead of just a offset-based test.
12543 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
12544 for the operand_equal_p test to compare bases and also compare
12547 2015-09-17 Christian Bruel <christian.bruel@st.com>
12549 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
12551 2015-09-17 Richard Henderson <rth@redhat.com>
12554 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
12555 pointers that encode the alignment of the object.
12557 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
12559 PR rtl-optimization/66790
12560 * df-problems.c (LIVE): Amend documentation.
12562 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
12564 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
12566 (GTFILES): Replace optabs.c with optabs-libfunc.c.
12567 * genopinit.c (main): Add an include guard to insn-opinit.h.
12568 Protect the rtx_code parts with NUM_RTX_CODE.
12569 * optabs.h: Split parts out to...
12570 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
12571 * optabs.c: Split parts out to...
12572 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
12573 * cilk-common.c: Include optabs-query.h rather than optabs.h.
12574 * fold-const.c: Likewise.
12575 * target-globals.c: Likewise.
12576 * tree-if-conv.c: Likewise.
12577 * tree-ssa-forwprop.c: Likewise.
12578 * tree-ssa-loop-prefetch.c: Likewise.
12579 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
12580 Remove unncessary include files.
12581 * tree-ssa-phiopt.c: Likewise.
12582 * tree-ssa-reassoc.c: Likewise.
12583 * tree-switch-conversion.c: Likewise.
12584 * tree-vect-data-refs.c: Likewise.
12585 * tree-vect-generic.c: Likewise.
12586 * tree-vect-loop.c: Likewise.
12587 * tree-vect-patterns.c: Likewise.
12588 * tree-vect-slp.c: Likewise.
12589 * tree-vect-stmts.c: Likewise.
12590 * tree-vrp.c: Likewise.
12591 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
12592 rather than optabs.h.
12593 * expr.c: Include optabs-tree.h.
12594 * function.c: Likewise.
12596 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
12598 PR middle-end/65958
12599 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
12600 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
12601 * config/arm/arm.c: Include common/common-target.h.
12602 (use_return_insn): Return 0 if the static chain register was saved
12603 above a non-APCS frame.
12604 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
12605 (struct scratch_reg): New.
12606 (get_scratch_register_on_entry): New function.
12607 (release_scratch_register_on_entry): Likewise.
12608 (arm_emit_probe_stack_range): Likewise.
12609 (output_probe_stack_range): Likewise.
12610 (arm_expand_prologue): Factor out code dealing with the IP register
12611 for nested function and adjust it for stack checking.
12612 Invoke arm_emit_probe_stack_range if static builtin stack checking
12614 (thumb1_expand_prologue): Sorry out if static builtin stack checking
12616 (arm_expand_epilogue): Add the saved static chain register, if any, to
12617 the amount of pre-pushed registers to pop.
12618 (arm_frame_pointer_required): Return true if static stack checking is
12619 enabled and we want to catch the exception with the EABI unwinder.
12620 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
12621 (UNSPEC_PROBE_STACK_RANGE): Likewise.
12622 * config/arm/arm.md (probe_stack): New insn.
12623 (probe_stack_range): Likewise.
12625 2015-09-17 Richard Biener <rguenther@suse.de>
12627 * genmatch.c (parser::parse_expr): Improve error message
12628 for mis-placed flags.
12630 2015-09-17 Richard Biener <rguenther@suse.de>
12632 * passes.c (rest_of_decl_compilation): Always call early_global_decl
12633 debug hook when we created a varpool node.
12634 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
12635 dwarf2out_early_global_decl, when not just add location or
12636 value attributes to existing DIEs.
12638 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
12640 * config/aarch64/aarch64.md (copysigndf3): New.
12641 (copysignsf3): Likewise.
12643 2015-09-17 David S. Miller <davem@davemloft.net>
12645 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
12646 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
12647 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12648 (HARD_REGNO_CALLER_SAVE_MODE): Define.
12649 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12650 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12651 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12652 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12653 provide when flag_pic.
12655 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
12657 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
12658 object_allocator change.
12660 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12662 PR tree-optimization/66388
12663 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
12664 (dump_iv): Dump no_overflow information.
12665 (alloc_iv): Initialize new field for struct iv.
12666 (mark_bivs): Count number of no_overflow bivs.
12667 (find_deriving_biv_for_expr, record_biv_for_address_use): New
12669 (idx_find_step): Call new functions above.
12670 (add_candidate_1, add_candidate): New paramter.
12671 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
12672 (get_computation_aff): Simplify convertion of cand for BIV.
12673 (get_computation_cost_at): Step cand's base if necessary.
12675 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12677 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
12679 (tree_simplify_using_condition): Ditto.
12680 (simplify_using_initial_conditions): Ditto.
12681 (loop_exits_before_overflow): Pass new argument to function
12682 simplify_using_initial_conditions. Remove case for type conversions
12684 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
12686 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
12687 in iv base using loop initial conditions.
12689 2015-09-16 Jeff Law <law@redhat.com>
12691 PR tree-optimization/47679
12692 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
12693 (free_all_edge_infos): Use it.
12694 (allocate_edge_info): Free preexisting edge info data.
12695 (pass_dominator::execute): Set up initial edge info structures.
12696 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
12697 thread_across_edge.
12698 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
12699 If non-null, then push/pop markers appropriately.
12700 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12701 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
12702 thread-across_edge.
12704 2015-09-16 James Bowman <james.bowman@ftdichip.com>
12706 * config/ft32/ft32.c: Fix the memory address space predicate.
12708 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
12711 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
12712 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12714 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
12716 * toplev.h (check_global_declaration): Remove declaration.
12717 * toplev.c (check_global_declaration): Move to ...
12718 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
12719 (analyze_functions): Update call.
12721 2015-09-16 David S. Miller <davem@davemloft.net>
12723 * lra-constraints.c (simplify_operand_subreg): Do not assume that
12724 lowpart of a SUBREG has offset zero.
12726 2015-09-16 Jeff Law <law@redhat.com>
12728 PR tree-optimization/47679
12729 * tree-ssa-dom.c (enum expr_kind): Moved from here to
12730 tree-ssa-scopedtables.h.
12731 (struct hashable_expr, class expr_hash_elt): Likewise.
12732 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
12733 Move associated methods into tree-ssa-scopedtables.c.
12734 (avail_expr_hash, initialize_expr_from_cond): Similarly.
12735 (hashable_expr_equal_p, add_expr_commutative): Likewise.
12736 (add_hashable_expr): Likewise.
12737 (record_cond): Delete element directly.
12738 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
12739 private copy ctor and assignment operator methods.
12740 (expr_elt_hasher): Inline trivial methods.
12741 (initialize_expr_from_cond): Prototype.
12742 * tree-ssa-scopedtables.c: Add necessary includes, functions and
12743 methods that were previously in tree-ssa-dom.c. Improve various
12746 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
12748 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
12750 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
12753 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12756 2015-09-16 Richard Biener <rguenther@suse.de>
12758 PR middle-end/67253
12759 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
12760 location of possibly shared trees.
12762 2015-09-16 Richard Biener <rguenther@suse.de>
12764 PR middle-end/67271
12765 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
12767 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
12769 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
12770 offset and size computations instead of HOST_WIDE_INT.
12772 2015-09-16 Richard Biener <rguenther@suse.de>
12774 PR middle-end/67442
12775 * fold-const.c (extract_muldiv_1): Properly extend multiplication
12776 result before builting a tree via wide_int_to_tree.
12778 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
12780 * Makefile.in: Add memory-block.cc
12781 (pool_allocator::initialize): Use fixed block size.
12782 (pool_allocator::release): Use memory_block_pool.
12783 (pool_allocator::allocate): Likewise.
12784 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
12786 * cfg.c (initialize_original_copy_tables): Likewise.
12787 * cselib.c (elt_list_pool, elt_loc_list_pool,
12788 cselib_val_pool): Likewise.
12789 * df-problems.c (df_chain_alloc): Likewise.
12790 * df-scan.c (df_scan_alloc): Likewise.
12791 * dse.c (cse_store_info_pool, rtx_store_info_pool,
12792 read_info_type_pool, insn_info_type_pool, bb_info_pool,
12793 group_info_pool, deferred_change_pool): Likewise.
12794 * et-forest.c (et_nodes, et_occurrences): Likewise.
12795 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
12796 ipcp_agg_lattice_pool): Likewise.
12797 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
12798 * ipa-profile.c (histogram_pool): Likewise.
12799 * ipa-prop.c (ipa_refdesc_pool): Likewise.
12800 * ira-build.c (live_range_pool, allocno_pool, object_pool,
12801 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
12802 * ira-color.c (update_cost_record_pool): Likewise.
12803 * lra-lives.c (lra_live_range_pool): Likewise.
12804 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
12805 * memory-block.cc: New file.
12806 * memory-block.h: New file.
12807 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
12808 * sched-deps.c (sched_deps_init): Likewise.
12809 * sel-sched-ir.c (sched_lists_pool): Likewise.
12810 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
12811 * tree-sra.c (access_pool): Likewise.
12812 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
12813 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
12814 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
12815 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12816 * tree-ssa-strlen.c (strinfo_pool): Likewise.
12817 * tree-ssa-structalias.c (variable_info_pool): Likewise.
12818 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
12819 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
12821 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12823 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
12825 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
12828 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12830 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
12831 to pass TLS call argument, according to current ABI.
12832 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
12833 callx0 for TLS call, according to current ABI.
12835 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12837 * tree-eh.c (lower_try_finally_dup_block): Clear location information
12838 on stack restore statements.
12839 (decide_copy_try_finally): Do not consider a stack restore statement as
12840 coming from sources.
12842 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
12844 * config/alpha/alpha.c (alpha_expand_block_clear): Use
12845 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
12847 2015-09-15 Jeff Law <law@redhat.com>
12849 PR tree-optimization/47679
12850 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
12851 methods and private members.
12852 (avail_exprs_stack): Similarly. Change type of global
12853 from a pair of expr_hash_elt_t to the new class.
12854 (expr_elt_hasher::hash): Corresponding changes.
12855 (expr_elt_hasher::equal): Similarly.
12856 (avail_expr_hash): Similarly.
12857 (pass_dominator::execute): Similarly.
12858 (dom_opt_dom_walker::thread_across_edge): Similarly.
12859 (record_cond): Similarly.
12860 (dom_opt_dom_walker::before_dom_children): Similarly.
12861 (dom_opt_dom_walker::after_dom_children): Similarly.
12862 (lookup_avail_expr): Likewise.
12863 (initialize_hash_element): Now a expr_hash_elt constructor.
12864 (initialize_hash_element_from_expr): Similarly.
12865 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
12866 (free_expr_hash_elt): Call dtor for the element.
12867 (remove_local_expressions_from_table): Now the "pop_to_marker"
12868 method in the available_exprs_stack class.
12869 (avail_expr_stack::record_expr): Method factored out.
12870 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
12872 (hashable_expr_equal_p): Fix formatting.
12874 2015-09-15 David Malcolm <dmalcolm@redhat.com>
12876 * input.h (location_get_source_line): Drop "expanded_location"
12877 param in favor of a file and line number.
12878 * input.c (location_get_source_line): Likewise.
12879 (dump_location_info): Update for change in signature of
12880 location_get_source_line.
12881 * diagnostic.c (diagnostic_print_caret_line): Likewise.
12883 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12885 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
12886 Bump to 4KB for SJLJ exceptions.
12887 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
12888 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
12889 * doc/tm.texi: Regenerate.
12891 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12893 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
12894 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
12897 2015-09-15 Richard Biener <rguenther@suse.de>
12899 PR tree-optimization/67470
12900 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
12901 structure for PHI hoisting by inserting a forwarder block
12904 2015-09-15 Christian Bruel <christian.bruel@st.com>
12906 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
12907 (arm_option_print): New function.
12909 2015-09-15 Christian Bruel <christian.bruel@st.com>
12912 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
12913 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
12914 Remove flags parameter.
12915 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
12916 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
12917 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
12918 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
12919 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
12920 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
12921 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
12922 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
12924 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12926 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
12928 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
12929 AARCH64_VALID_SIMD_DREG_MODE.
12931 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12933 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
12934 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
12935 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
12936 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
12937 aarch64_ld4_lane<mode>): Combine together, making...
12938 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12939 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12940 aarch64_st4_lane<mode>): Combine together, making...
12941 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12942 * config/aarch64/iterators.md (nregs): Add comment.
12944 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12946 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
12947 Change operand mode from <V_TWO_ELEM> to BLK.
12948 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
12949 (aarch64_vec_store_lanesoi_lane<mode): Likewise
12950 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12951 (aarch64_ld2_lane<mode>): Likewise.
12952 (aarch64_st2_lane<VQ:mode>): Likewise.
12953 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
12955 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12957 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
12958 Change operand mode from <V_FOUR_ELEM> to BLK.
12959 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
12960 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
12961 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12962 (aarch64_ld4_lane<mode>): Likewise.
12963 (aarch64_st4_lane<mode>): Likewise.
12964 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
12966 2015-09-15 Richard Biener <rguenther@suse.de>
12968 PR middle-end/67563
12969 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
12970 transfer EH info from old to new stmt.
12971 (replace_call_with_value): Likewise.
12972 (replace_call_with_call_and_fold): Likewise.
12973 (gimple_fold_builtin_memory_op): Likewise.
12974 (gimple_fold_builtin_memset): Likewise.
12975 (gimple_fold_builtin_stpcpy): Likewise.
12976 (gimple_fold_call): Likewise.
12978 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12980 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
12982 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
12983 (aarch64_simd_intEI_type_node): Likewise.
12984 (aarch64_simd_builtin_std_type): Remove EImode case.
12985 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
12986 * config/aarch64/aarch64-modes.def: Remove EImode.
12988 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12990 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
12991 Change operand mode from <V_THREE_ELEM> to BLK.
12992 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
12993 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
12994 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12995 (aarch64_ld3_lane<mode>): Likewise.
12996 (aarch64_st3_lane<mode>): Likewise.
12997 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
12999 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13001 * config/aarch64/aarch64-simd.md
13002 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
13003 Change all TImode operands to BLKmode.
13004 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
13005 Change all EImode operands to BLKmode.
13006 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
13007 Change all OImode operands to BLKmode.
13009 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
13010 and call set_mem_size.
13011 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
13013 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
13015 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13017 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
13019 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
13021 (vec_store_lanesci_lane<mode>): Rename to...
13022 (aarch64_vec_store_lanesci_lane<mode>): ...this.
13024 (vec_store_lanesxi_lane<mode>): Rename to...
13025 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
13027 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13028 aarch64_st4_lane<mode>): Follow renaming.
13030 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13032 * config/s390/s390.c (s390_const_operand_ok): Add missing
13035 2015-09-15 Richard Biener <rguenther@suse.de>
13038 * lto-streamer.h (lto_location_cache::current_sysp): Properly
13040 * lto-streamer-out.c (clear_line_info): Likewise.
13042 2015-09-15 Richard Biener <rguenther@suse.de>
13044 * doc/match-and-simplify.texi: Fix wording.
13046 2015-09-15 Bin Cheng <bin.cheng@arm.com>
13048 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
13049 unnecessary type conversion in op1.
13051 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13053 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
13054 (dup_block_and_redirect): Delete function.
13055 (can_dup_for_shrink_wrapping): New function.
13056 (fix_fake_fallthrough_edge): New function.
13057 (try_shrink_wrapping): Rewrite function.
13058 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
13060 2015-09-14 Rich Felker <dalias@libc.org>
13062 * configure.ac: Change target pattern for sh TLS support
13063 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
13064 * configure: Regenerate.
13066 2015-09-14 Jeff Law <law@redhat.com>
13068 PR tree-optimization/47679
13069 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
13070 type rather than void *.
13072 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
13075 * diagnostic.c (diagnostic_initialize): Do not set
13076 some_warnings_are_errors.
13077 (diagnostic_finish): Use DK_WERROR count instead.
13078 (diagnostic_report_diagnostic): Do not set
13079 some_warnings_are_errors.
13080 * diagnostic.h (struct diagnostic_context): Remove
13081 some_warnings_are_errors.
13083 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
13085 * config/sparc/predicates.md (const_all_ones_operand): Use
13086 CONSTM1_RTX to simplify definition.
13088 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
13091 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
13094 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
13096 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
13097 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
13098 OPT_fshow_column to handled saved option cases.
13099 (append_compiler_options): Do not skip the above added options.
13101 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13104 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
13105 nopcrelative_literal_loads.
13106 (aarch64_classify_address): Likewise.
13107 (aarch64_constant_pool_reload_icode): Define.
13108 (aarch64_secondary_reload): Handle secondary reloads for
13110 (aarch64_override_options): Handle nopcrelative_literal_loads.
13111 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
13112 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
13114 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
13115 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
13116 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
13118 * doc/invoke.texi (mpc-relative-literal-loads): Document.
13120 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
13122 PR middle-end/67401
13123 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
13124 sync_compare_and_swap_optab libcall to target_oval.
13126 2015-09-14 Marek Polacek <polacek@redhat.com>
13128 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
13130 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
13132 2015-09-11 Mark Wielaard <mjw@redhat.com>
13135 * toplev.c (check_global_declaration): Check and use
13136 warn_unused_const_variable.
13137 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
13138 (-Wunused-variable): Remove non-constant. For C implies
13139 -Wunused-const-variable.
13140 (-Wunused-const-variable): New.
13142 2015-09-14 Richard Biener <rguenther@suse.de>
13144 * doc/match-and-simplify.texi: Update for changed syntax
13145 of inner ifs and the new switch expression.
13147 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
13149 * config/i386/haswell.md: New file describing Haswell pipeline.
13150 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
13151 haswell-like processors.
13152 (ix86_reassociation_width): Increase reassociation width for 64-bit
13153 Haswell processor family.
13154 * config/i386/i386.md: Introduce haswell cpu and include new md file.
13156 2015-09-14 Richard Biener <rguenther@suse.de>
13158 * doc/match-and-simplify.texi: Fixup some formatting issues
13159 and document the 's' flag.
13161 2015-09-13 Olivier Hainque <hainque@adacore.com>
13162 Eric Botcazou <ebotcazou@adacore.com>
13164 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
13165 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
13166 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
13167 (TARGET_CPU_gr5): Likewise.
13168 (TARGET_CPU_gr6): Likewise.
13169 (MULTILIB_DEFAULTS): Likewise.
13170 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
13171 for mcpu=gr5 and mcpu=gr6.
13172 (MULTILIB_DIRNAMES): Adjust accordingly.
13174 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13176 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
13177 (mem_ref_p): Likewise.
13178 (outermost_indep_loop): Adjust.
13179 (mem_ref_in_stmt): Likewise.
13180 (determine_max_movement): Likewise.
13181 (mem_ref_alloc): Likewise.
13182 (record_mem_ref_loc): Likewise.
13183 (set_ref_stored_in_loop): Likewise.
13184 (mark_ref_stored): Likewise.
13185 (gather_mem_refs_stmt): Likewise.
13186 (mem_refs_may_alias_p): Likewise.
13187 (for_all_locs_in_loop): Likewise.
13188 (struct rewrite_mem_ref_loc): Likewise.
13189 (rewrite_mem_refs): Likewise.
13190 (struct first_mem_ref_loc_1): Likewise.
13191 (first_mem_ref_loc): Likewise.
13192 (struct sm_set_flag_if_changed): Likewise.
13193 (execute_sm_if_changed_flag_set): Likewise.
13194 (execute_sm): Likewise.
13195 (hoist_memory_references):
13196 (struct ref_always_accessed): Likewise.
13197 (ref_always_accessed_p): Likewise.
13198 (refs_independent_p): Likewise.
13199 (record_dep_loop): Likewise.
13200 (ref_indep_loop_p_1): Likewise.
13201 (ref_indep_loop_p_2): Likewise.
13202 (ref_indep_loop_p): Likewise.
13203 (can_sm_ref_p): Likewise.
13204 (find_refs_for_sm): Likewise.
13205 (tree_ssa_lim_finalize): Likewise.
13207 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13209 * dwarf2out.c (dw_attr_ref): Remove typedef.
13210 (dw_line_info_ref): Likewise.
13211 (pubname_ref): Likewise.
13212 (dw_ranges_ref): Likewise.
13213 (dw_ranges_by_label_ref): Likewise.
13214 (comdat_type_node_ref): Likewise.
13216 (get_AT_low_pc): Likewise.
13217 (get_AT_hi_pc): Likewise.
13218 (get_AT_string): Likewise.
13219 (get_AT_flag): Likewise.
13220 (get_AT_unsigned): Likewise.
13221 (get_AT_ref): Likewise.
13222 (get_AT_file): Likewise.
13223 (remove_AT): Likewise.
13224 (print_die): Likewise.
13225 (check_die): Likewise.
13226 (die_checksum): Likewise.
13227 (attr_checksum_ordered): Likewise.
13228 (struct checksum_attributes): Likewise.
13229 (collect_checksum_attributes): Likewise.
13230 (die_checksum_ordered): Likewise.
13231 (same_die_p): Likewise.
13232 (is_declaration_die): Likewise.
13233 (clone_die): Likewise.
13234 (clone_as_declaration): Likewise.
13235 (copy_declaration_context): Likewise.
13236 (break_out_comdat_types): Likewise.
13237 (copy_decls_walk): Likewise.
13238 (output_location_lists): Likewise.
13239 (external_ref_hasher::hash): Likewise.
13240 (optimize_external_refs_1): Likewise.
13241 (build_abbrev_table): Likewise.
13242 (size_of_die): Likewise.
13243 (unmark_all_dies): Likewise.
13244 (size_of_pubnames): Likewise.
13245 (output_die_abbrevs): Likewise.
13246 (output_die): Likewise.
13247 (output_pubnames): Likewise.
13248 (add_ranges_num): Likewise.
13249 (add_ranges_by_labels): Likewise.
13250 (add_high_low_attributes): Likewise.
13251 (gen_producer_string): Likewise.
13252 (dwarf2out_set_name): Likewise.
13253 (new_line_info_table): Likewise.
13254 (prune_unused_types_walk_attribs): Likewise.
13255 (prune_unused_types_update_strings): Likewise.
13256 (prune_unused_types): Likewise.
13257 (resolve_addr): Likewise.
13258 (optimize_location_lists_1): Likewise.
13259 (index_location_lists): Likewise.
13260 (dwarf2out_finish): Likewise.
13262 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13264 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
13266 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13268 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
13269 (dump_asserts_for): Adjust.
13270 (register_new_assert_for): Likewise.
13271 (process_assert_insertions): Likewise.
13272 (insert_range_assertions): Likewise.
13274 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13276 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
13277 and remove typedef.
13278 (new_temp_expr_table): Adjust.
13279 (free_temp_expr_table): Likewise.
13280 (version_to_be_replaced_p): Likewise.
13281 (make_dependent_on_partition): Likewise.
13282 (add_to_partition_kill_list): Likewise.
13283 (remove_from_partition_kill_list): Likewise.
13284 (add_dependence): Likewise.
13285 (finished_with_expr): Likewise.
13286 (process_replaceable): Likewise.
13287 (kill_expr): Likewise.
13288 (kill_virtual_exprs): Likewise.
13289 (mark_replaceable): Likewise.
13290 (find_replaceable_in_bb): Likewise.
13291 (find_replaceable_exprs): Likewise.
13292 (debug_ter): Likewise.
13294 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13296 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
13297 (struct btr_user): Rename from btr_user_s.
13298 (struct btr_def): Rename from btr_def_s.
13299 (find_btr_def_group): Adjust.
13300 (add_btr_def): Likewise.
13301 (new_btr_user): Likewise.
13302 (note_other_use_this_block): Likewise.
13303 (compute_defs_uses_and_gen): Likewise.
13304 (link_btr_uses): Likewise.
13305 (build_btr_def_use_webs): Likewise.
13306 (block_at_edge_of_live_range_p): Likewise.
13307 (btr_def_live_range): Likewise.
13308 (combine_btr_defs): Likewise.
13309 (move_btr_def): Likewise.
13310 (migrate_btr_def): Likewise.
13311 (migrate_btr_defs): Likewise.
13313 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13315 * var-tracking.c (shared_hash_def): Rename to shared_hash.
13316 (shared_hash): Remove typedef.
13317 (struct dataflow_set): Adjust.
13318 (shared_hash_unshare): Likewise.
13319 (dataflow_set_merge): Likewise.
13320 (vt_initialize): Likewise.
13321 (vt_finalize): Likewise.
13323 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13325 * var-tracking.c (struct location_chain): Rename from
13326 location_chain_def.
13327 (struct variable_part): Adjust.
13328 (variable_htab_free): Likewise.
13329 (unshare_variable): Likewise.
13330 (get_init_value): Likewise.
13331 (get_addr_from_local_cache): Likewise.
13332 (drop_overlapping_mem_locs): Likewise.
13333 (val_reset): Likewise.
13334 (struct variable_union_info): Likewise.
13335 (variable_union): Likewise.
13336 (find_loc_in_1pdv): Likewise.
13337 (insert_into_intersection): Likewise.
13338 (intersect_loc_chains): Likewise.
13339 (canonicalize_loc_order_check): Likewise.
13340 (canonicalize_values_mark): Likewise.
13341 (canonicalize_values_star): Likewise.
13342 (canonicalize_vars_star): Likewise.
13343 (variable_merge_over_cur): Likewise.
13344 (remove_duplicate_values): Likewise.
13345 (variable_post_merge_new_vals): Likewise.
13346 (variable_post_merge_perm_vals): Likewise.
13347 (find_mem_expr_in_1pdv): Likewise.
13348 (dataflow_set_preserve_mem_locs): Likewise.
13349 (dataflow_set_remove_mem_locs): Likewise.
13350 (variable_part_different_p): Likewise.
13351 (onepart_variable_different_p): Likewise.
13352 (find_src_set_src): Likewise.
13353 (dump_var): Likewise.
13354 (set_slot_part): Likewise.
13355 (clobber_slot_part): Likewise.
13356 (delete_slot_part): Likewise.
13357 (vt_expand_var_loc_chain): Likewise.
13358 (emit_note_insn_var_location): Likewise.
13359 (vt_finalize): Likewise.
13361 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13363 * dse.c (store_info_t): Remove typedef.
13364 (group_info_t): Likewise.
13365 (const_group_info_t): Likewise.
13366 (deferred_change_t): Likewise.
13367 (get_group_info): Adjust.
13368 (free_store_info): Likewise.
13369 (canon_address): Likewise.
13370 (clear_rhs_from_active_local_stores): Likewise.
13371 (record_store): Likewise.
13372 (replace_read): Likewise.
13373 (check_mem_read_rtx): Likewise.
13374 (scan_insn): Likewise.
13375 (remove_useless_values): Likewise.
13376 (dse_step1): Likewise.
13377 (dse_step2_init): Likewise.
13378 (dse_step2_nospill): Likewise.
13379 (scan_stores_nospill): Likewise.
13380 (scan_reads_nospill): Likewise.
13381 (dse_step3_exit_block_scan): Likewise.
13382 (dse_step3): Likewise.
13383 (dse_step5_nospill): Likewise.
13384 (dse_step6): Likewise.
13386 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13388 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
13389 (alias_set_entry): Remove typedef.
13390 (alias_set_subset_of): Adjust.
13391 (alias_sets_conflict_p): Likewise.
13392 (init_alias_set_entry): Likewise.
13393 (get_alias_set): Likewise.
13394 (new_alias_set): Likewise.
13395 (record_alias_subset): Likewise.
13397 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
13399 * doc/install.texi (Downloading the source): Mark up
13400 contrib/download_prerequisites properly and drop leading "./".
13402 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13404 * config/arc/arc.h: Remove define of STRUCT_VALUE.
13405 * config/lm32/lm32.h: Likewise.
13406 * config/mep/mep.h: Likewise.
13407 * config/visium/visium.h: Likewise.
13408 * system.h: Poison STRUCT_VALUE macro.
13410 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
13412 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
13413 CONSTANT_P operands.
13415 2015-09-11 David S. Miller <davem@davemloft.net>
13417 * config/sparc/constraints.md: Make "U" constraint a real register
13419 * config/sparc/sparc.c (TARGET_LRA_P): Define.
13420 (D_MODES, DF_MODES): Add missing cast.
13421 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13422 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13423 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13425 * config/sparc/sparc.h (PROMOTE_MODE): Define.
13426 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13427 provide these insn when flag_pic.
13429 2015-09-11 Jeff Law <law@redhat.com>
13431 PR tree-optimization/47679
13432 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
13433 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
13434 member with m_. Update inline member functions as necessary. Add
13436 * tree-ssa-scopedtables.c: Update const_and_copies's member
13437 functions to use m_ prefix to access the stack.
13439 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
13441 * graphite-optimize-isl.c (disable_tiling): Remove.
13442 (get_schedule_for_band): Do not use disable_tiling.
13443 (get_prevector_map): Delete function.
13444 (enable_polly_vector): Remove.
13445 (get_schedule_for_band_list): Remove dead code.
13447 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
13449 * graphite-optimize-isl.c (get_tile_map): Refactor.
13450 (get_schedule_for_band): Same.
13451 (getScheduleForBand): Same.
13452 (get_prevector_map): Same.
13453 (get_schedule_for_band_list): Same.
13454 (get_schedule_map): Same.
13455 (get_single_map): Same.
13456 (apply_schedule_map_to_scop): Same.
13457 (optimize_isl): Same.
13459 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13462 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
13464 * config/aarch64/iterators.md (GPF_TF_F16): New.
13467 2015-09-10 Nathan Sidwell <nathan@acm.org>
13469 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
13470 (nvptx_reorg): Adjust comments.
13472 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
13475 * configure.ac: Check if setenv and unsetenv are declared.
13476 * configure: Rebuild.
13477 * config.in: Rebuild.
13478 * system.h: Declare setenv and unsetenv if not declared.
13480 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13482 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
13483 commentary to simplify permute mask adjustment equation.
13484 (special_handling_values): Add SH_VPERM.
13485 (const_load_sequence_p): New function.
13486 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
13487 the mask loaded from the constant pool.
13488 (adjust_vperm): New function.
13489 (handle_special_swappables): Call adjust_vperm.
13490 (dump_swap_insn_table): Handle SH_VPERM.
13492 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
13494 * shrink-wrap.c (requires_stack_frame_p): Remove static.
13495 * shrink-wrap.h (requires_stack_frame_p): Put back.
13497 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
13499 * reload1.c (elimination_costs_in_insn): Locally turn
13500 -Wmaybe-uninitialized into a warning.
13502 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
13504 * shrink-wrap.c (requires_stack_frame_p): Make static.
13505 (prepare_shrink_wrap): Likewise.
13506 (dup_block_and_redirect): Likewise.
13507 * shrink-wrap.h: Remove declarations of those functions.
13509 2015-09-10 Mark Wielaard <mjw@redhat.com>
13511 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
13513 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
13516 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
13517 missing simplify_gen_subreg.
13519 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13521 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
13522 the vector element is bigger than 64 bit.
13524 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13526 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
13527 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
13529 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13531 * config/s390/s390.c: Add V1TImode to constant pool modes.
13533 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13536 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
13537 predicate. Set predicable_short_it attr to "no".
13539 2015-09-10 Jiong Wang <jiong.wang@arm.com>
13541 PR rtl-optimization/67421
13542 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
13543 left wide shift tranformation.
13545 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
13547 * common/config/arc/arc-common.c: Remove references to A5.
13548 * config/arc/arc-opts.h: Likewise.
13549 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
13550 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
13551 * config/arc/t-arc-newlib: Likewise.
13553 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
13555 * config/arc/arc.md (length): Fix attribute length for conditional
13556 executed instructions with long immediate.
13558 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13560 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
13561 type for second alternative.
13563 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
13565 * doc/invoke.texi (Downloading GCC): Mention
13566 contrib/download_prerequisites script.
13568 2015-09-10 Jakub Jelinek <jakub@redhat.com>
13571 * gimplify.c (gimplify_omp_for): If inner stmt is not found
13572 for combined loop, assert seen_error () and return GS_ERROR.
13574 PR middle-end/67521
13575 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
13576 if decl is already in outer->variables.
13578 PR middle-end/67517
13579 * gimplify.c (gimplify_scan_omp_clauses): Instead of
13580 asserting that decl is not specified in octx->variables,
13581 break out of the loop if it is.
13584 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
13585 iterator is not explicitly determined, but is defined inside
13586 of the combined workshare region, handle it like if it has
13587 DECL_EXPR in OMP_FOR_PRE_BODY.
13589 2015-09-09 Nathan Sidwell <nathan@acm.org>
13591 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
13592 (*cmp<mode>): Add assembler spacing.
13593 (setcc_int<mode>, set_cc_float<mode>): Likewise.
13594 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
13596 (write_func_decl_from_insn): Refactor argument loops & comma emission.
13597 (nvptx_expand_call): Likewise.
13598 (nvptx_output_call_insn): Likewise.
13599 (nvptx_reorg_subreg): Add spacing.
13601 2015-09-09 Marek Polacek <polacek@redhat.com>
13603 PR middle-end/67512
13604 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
13607 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
13610 * doc/invoke.texi ([Wsubobject-linkage]): Document.
13612 2015-09-09 Tom de Vries <tom@codesourcery.com>
13614 * params-list.h: Add missing copyright notice.
13616 2015-09-09 Nathan Sidwell <nathan@acm.org>
13618 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
13619 sel_truesi, not andsi.
13621 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13623 * config/arm/arm.md (*subsi3_compare0): Rename to...
13624 (subsi3_compare0): ... This.
13625 (modsi3): New define_expand.
13626 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
13627 when operand is power of 2.
13629 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13631 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
13632 (*neg<mode>2_compare0): Rename to...
13633 (neg<mode>2_compare0): ... This.
13634 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
13635 Move check for speed inside the if-then-elses. Reflect
13636 CSNEG sequence in MOD by power of 2 case.
13638 2015-09-09 Alan Modra <amodra@gmail.com>
13641 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
13642 reload replacement for PRE_MODIFY address reg.
13644 2015-09-09 Sebastian Pop <s.pop@samsung.com>
13646 PR tree-optimization/53852
13647 * config.in: Regenerate.
13648 * configure: Regenerate.
13649 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
13650 * graphite-optimize-isl.c (optimize_isl): Stop computation when
13651 PARAM_MAX_ISL_OPERATIONS is reached.
13652 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
13653 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
13654 result equal to isl_stat_ok as the status now can be isl_error_quota.
13655 (subtract_commutative_associative_deps): Same.
13656 (compute_deps): Same.
13658 2015-09-08 Aditya Kumar <hiraditya@msn.com>
13659 Sebastian Pop <s.pop@samsung.com>
13661 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
13662 Return the parameter if it was saved in corresponding
13663 parameter_rename_map of the region.
13664 (copy_def): Copy def from sese region to the newly created region.
13665 (copy_internal_parameters): Copy all the internal parameters defined
13666 within a region to the newly created region.
13667 (graphite_regenerate_ast_isl): Copy parameters to the new region before
13668 translating isl to gimple.
13669 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
13670 the loop-nest does not have any data-references.
13671 (build_graphite_scops): Create a scop only when there is at least one
13673 (contains_only_close_phi_nodes): Deleted.
13674 (print_graphite_scop_statistics): Deleted
13675 (print_graphite_statistics): Deleted
13676 (limit_scops): Deleted.
13677 (build_scops): Removed call to limit_scops.
13678 * sese.c (new_sese): Construct.
13679 (free_sese): Destruct.
13680 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
13682 (set_rename): Pass sese region so that parameters inside the region can
13683 be added to its parameter_rename_map.
13684 (rename_uses): Pass sese region.
13685 (graphite_copy_stmts_from_block): Do not copy parameters that have been
13686 generated in the header of the scop. For each SSA_NAME in the
13687 parameter_rename_map rename its usage.
13688 (invariant_in_sese_p_rec): Return false if tree t is defined outside
13690 (scalar_evolution_in_region): If the tree t is invariant just return t.
13691 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
13692 struct sese to keep track of all the parameters which need renaming.
13693 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
13695 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
13697 2015-09-08 Tom de Vries <tom@codesourcery.com>
13699 * Makefile.in (generated_files): Add params.list.
13700 (params.list, s-params.list): Add rule.
13701 * params.h (enum compiler_param): Include params-list.h. Move define
13702 DEFPARAM, include params.def and undef DEFPARAM ...
13703 * params-list.h: ... here. New file.
13705 2015-09-08 David Malcolm <dmalcolm@redhat.com>
13707 * pretty-print.h (printer_fn): Fix typo in comment.
13709 2015-09-07 Jeff Law <law@redhat.com>
13711 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
13713 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13715 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
13716 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
13717 (arm_neon_fp16_hw): New.
13719 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13721 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
13722 UNITS_PER_WORD >= 4.
13724 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13726 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
13727 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
13728 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
13729 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
13730 (aarch64_float_extend_lo_v2df): Rename to...
13731 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
13733 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
13734 (float_extend_lo): Add v4sf.
13736 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
13737 * config/aarch64/iterators.md (VQ_HSF): New iterator.
13738 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
13739 (Vwide): New mode_attr.
13741 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13743 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
13744 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
13745 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
13746 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
13747 V4HF and V8HF variants to iterator.
13749 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
13751 * config/aarch64/iterators.md (VDQF_F16): New.
13752 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
13754 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13756 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
13757 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13758 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
13759 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
13760 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
13761 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13762 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
13763 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
13764 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
13765 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
13766 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
13767 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13768 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
13769 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
13770 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
13771 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
13772 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
13773 vld1q_dup_f16): New.
13775 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13777 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
13778 Reparameterize to...
13779 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
13780 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
13781 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
13783 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
13785 (float_truncate_lo_): Use BUILTIN_VDF iterator.
13787 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
13789 * config/aarch64/iterators.md (VDF, Vdtype): New.
13790 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
13792 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13794 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
13795 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
13796 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
13797 Add __builtin_aarch64_simd_hf.
13798 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
13799 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
13800 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
13801 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
13802 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
13803 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
13804 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
13805 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
13806 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
13808 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
13809 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
13810 (VDC, Vdbl): Add V4HF.
13812 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13814 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
13815 V4HFmode and V8HFmode.
13816 (aarch64_split_simd_move): Add case for V8HFmode.
13817 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
13818 (aarch64_simd_builtin_std_type): Handle HFmode.
13819 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
13821 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
13822 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
13823 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
13825 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
13828 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
13829 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
13831 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
13832 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
13833 vst1q_lane_f16): New.
13834 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
13835 (VALLDI_F16, VALL_F16): New.
13836 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
13837 Add cases for V4HF and V8HF.
13838 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
13840 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13842 * config/arm/arm-builtins.c (VAR11, VAR12): New.
13843 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
13844 vld4_dup): Add v4hf variant.
13845 (vget_high, vget_low): Add v8hf variant.
13846 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
13847 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
13848 v4hf and v8hf variants.
13850 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
13852 (V_DOUBLE): Add case for V4HF.
13854 (V_HALF): Add case for V8HF.
13855 (VDQX): Add V4HF, V8HF.
13856 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
13857 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
13859 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
13860 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
13861 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
13862 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
13863 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
13864 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
13865 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
13866 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
13867 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
13869 (neon_vcreate, neon_vreinterpretv8qi<mode>,
13870 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
13871 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
13872 Change VDX to VD_RE.
13874 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
13875 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
13876 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
13878 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
13879 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
13880 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
13881 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
13882 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
13883 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
13884 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
13885 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
13886 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
13888 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13890 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
13891 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
13892 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
13893 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
13894 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13895 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
13896 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
13897 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
13898 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
13899 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
13902 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13904 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
13906 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
13908 * config/arm/arm-builtins.c (v8hf_UP): New.
13909 (arm_init_simd_builtin_types): Initialise Float16x8_t.
13911 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
13913 * config/arm/arm_neon.h (float16x8_t): New typedef.
13915 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13917 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
13918 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
13919 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
13920 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
13921 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13922 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
13923 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
13924 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
13925 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13926 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
13928 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
13930 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
13931 non-alphanumeric characters in the symbol name.
13933 2015-09-07 Marek Polacek <polacek@redhat.com>
13935 PR inline-asm/67448
13936 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
13939 2015-09-07 Marek Polacek <polacek@redhat.com>
13941 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
13943 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
13945 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
13948 2015-09-04 Jakub Jelinek <jakub@redhat.com>
13950 PR middle-end/67452
13951 * tree-ssa-live.c: Include cfgloop.h.
13952 (remove_unused_locals): Clear loop->simduid if simduid is about
13953 to be removed from cfun->local_decls.
13955 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13958 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
13961 2015-09-04 Tom de Vries <tom@codesourcery.com>
13963 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
13965 2015-09-04 Jeff Law <law@redhat.com>
13967 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
13968 unnecessary constructor. It's now trivial and implemented inside...
13969 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
13970 constructor. Add comments to various methods. Remove unused
13972 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
13973 * tree-vrp.c (identify_jump_threads): Likewise.
13974 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
13975 indentation issues.
13976 (thread_across_edge): Similarly.
13977 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
13978 arguments in constructor call.
13980 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
13982 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
13983 temp path contains a '-'.
13985 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
13986 Petr Murzin <petr.murzin@intel.com>
13987 Kirill Yukhin <kirill.yukhin@intel.com>
13989 * config/i386/i386-builtin-types.def
13990 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
13991 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
13992 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
13993 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
13994 * config/i386/i386.c
13995 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
13996 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13997 IX86_BUILTIN_SCATTERALTDIV16SI.
13998 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
13999 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
14000 __builtin_ia32_scatteraltdiv8si.
14001 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
14002 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14003 IX86_BUILTIN_SCATTERALTDIV16SI.
14004 (ix86_vectorize_builtin_scatter): New.
14005 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
14006 ix86_vectorize_builtin_scatter.
14008 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
14009 Petr Murzin <petr.murzin@intel.com>
14010 Kirill Yukhin <kirill.yukhin@intel.com>
14012 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
14013 * doc/tm.texi: Regenerate.
14014 * target.def: Add scatter builtin.
14015 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
14016 for loads/stores in case of gather/scatter accordingly.
14017 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14018 STMT_VINFO_GATHER_P(S).
14019 (vect_check_gather): Rename to ...
14020 (vect_check_gather_scatter): this.
14021 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
14022 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
14023 (vect_check_gather_scatter): Use it instead of vect_check_gather.
14024 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
14025 variable and new checkings for it accordingly.
14026 * tree-vect-stmts.c
14027 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14028 STMT_VINFO_GATHER_P(S).
14029 (vect_check_gather_scatter): Use it instead of vect_check_gather.
14030 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
14032 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
14034 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
14036 (mulv16qi3): New define_expand.
14038 2015-09-03 Martin Sebor <msebor@redhat.com>
14041 * doc/extend.texi (Other Builtins): Document when the address
14042 of a built-in function can be taken.
14044 2015-09-03 Richard Biener <rguenther@suse.de>
14046 * dwarf2out.c (flush_limbo_die_list): Split out from ...
14047 (dwarf2out_early_finish): ... here.
14048 (dwarf2out_finish): Do not call dwarf2out_early_finish but
14049 flush_limbo_die_list. Assert we have no deferred asm names.
14051 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14053 * optabs.c (expand_binop): Don't create a broadcast vector with a
14054 source element wider than the inner mode.
14056 2015-09-03 Richard Biener <rguenther@suse.de>
14058 * varasm.c (output_constant): Use fold_convert instead of
14061 2015-09-03 Tom de Vries <tom@codesourcery.com>
14063 PR tree-optimization/65637
14064 * omp-low.c (expand_omp_for_static_chunk): Handle case that
14065 fin_bb has 2 predecessors.
14067 2015-09-03 Tom de Vries <tom@codesourcery.com>
14069 PR tree-optimization/65637
14070 * omp-low.c (find_phi_with_arg_on_edge): New function.
14071 (expand_omp_for_static_chunk): Fix inner loop phi.
14073 2015-09-03 Tom de Vries <tom@codesourcery.com>
14075 PR tree-optimization/65637
14076 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
14079 2015-09-03 Tom de Vries <tom@codesourcery.com>
14081 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
14083 2015-09-03 Tom de Vries <tom@codesourcery.com>
14085 * doc/invoke.texi (parloops-chunk-size): Add item.
14086 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
14087 * tree-parloops.c: Include params.h.
14088 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
14089 param parloops-chunk-size is used.
14091 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14093 PR middle-end/67351
14094 * fold-const.c (fold_binary_loc) : Move
14095 Transform (x >> c) << c into x & (-1<<c) or
14096 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
14097 types using simplify and match.
14098 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
14099 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
14101 2015-09-03 Richard Biener <rguenther@suse.de>
14104 * tree-ssa-structalias.c (ctor_for_analysis): New function.
14105 (create_variable_info_for_1): Use ctor_for_analysis instead
14106 of get_constructor.
14107 (create_variable_info_for): Likewise.
14109 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
14112 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
14113 in new callgraph edge.
14115 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
14120 * config/aarch64/aarch64-simd.md
14121 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
14122 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
14123 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
14124 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
14126 2015-09-02 Alan Modra <amodra@gmail.com>
14128 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
14129 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
14130 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
14132 2015-09-02 Alan Modra <amodra@gmail.com>
14135 * config/rs6000/predicates.md (current_file_function_operand): Don't
14136 return true for weak symbols.
14137 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
14139 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
14140 Andrew Bennett <andrew.bennett@imgtec.com>
14142 * config/mips/mips-opts.h (mips_cb_setting): New enum.
14143 * config/mips/mips-protos.h: Add definitions for
14144 mips_output_jump and mips_output_equal_conditional_branch
14145 * config/mips/mips.c (MIPS_JR): Change to support the
14147 (mips_emit_compare): Add support for the MIPS R6 conditional
14149 (mips_process_sync_loop): Likewise.
14150 (mips_output_order_conditional_branch): Likewise.
14151 (mips16_build_call_stub): Change MIPS_CALL to
14153 (mips_print_operand_punctuation): Update 's' case to only
14154 apply to micromips r2.
14155 (mips_adjust_insn_length): Add support for forbidden slot
14157 (mips_avoid_hazard): Likewise.
14158 (mips_reorg_process_insns): Likewise.
14159 (mips_output_jump): New function.
14160 (mips_output_equal_conditional_branch): Likewise.
14161 (mips_output_conditional_branch): Use jrc/bc if compact
14162 branch support is enabled. Ensure the forbidden slots
14163 between the two branch instructions is filled with a nop.
14164 (mips_option_override): Add support to process the compact
14165 branch option and set the correct defaults. Prevent
14166 non-explict relocs being using for MIPS R6.
14167 (mips_trampoline_init): Add compact branch support.
14168 (mips_mult_zero_zero_cost): Allow zero initialisation of
14169 accumulators with TARGET_DSP.
14170 * config/mips/mips.h (TARGET_CB_NEVER): New define.
14171 (TARGET_CB_MAYBE): New define.
14172 (TARGET_CB_ALWAYS): New define.
14173 (ISA_HAS_DELAY_SLOTS): New define.
14174 (ISA_HAS_COMPACT_BRANCHES): New define.
14175 (ISA_HAS_JRC): New define.
14176 (MIPS_BRANCH_C): New define.
14177 (MIPS_CALL): Removed.
14178 (MICROMIPS_J): Removed.
14179 * config/mips/mips.md (compact_form): New attr.
14180 (hazard): Add support for forbidden slots.
14181 (define_delay): Add support for compact branches.
14182 (*branch_order<mode>): Likewise.
14183 (*branch_order<mode>_inverted): Likewise.
14184 (*branch_equality<mode>): Likewise.
14185 (*branch_equality<mode>_inverted): Likewise.
14186 (*jump_absolute): Likewise.
14187 (*jump_pic): Likewise.
14188 (indirect_jump): Use mips_output_jump to produce assembly output.
14189 (tablejump_<mode>"): Likewise.
14190 (*<optab>"): Likewise.
14191 (<optab>_internal): Likewise.
14192 (sibcall_internal): Likewise.
14193 (sibcall_value_internal): Likewise.
14194 (sibcall_value_multiple_internal): Likewise.
14195 (call_internal): Likewise.
14196 (call_split): Likewise.
14197 (call_internal_direct): Likewise.
14198 (call_direct_split): Likewise.
14199 (call_value_internal): Likewise.
14200 (call_value_split): Likewise.
14201 (call_value_internal_direct): Likewise.
14202 (call_value_direct_split): Likewise.
14203 (call_value_multiple_internal): Likewise.
14204 (call_value_multiple_split): Likewise.
14205 (mips_get_fcsr_mips16_<mode>): Likewise.
14206 (mips_set_fcsr_mips16_<mode>): Likewise.
14207 (tls_get_tp_mips16_<mode>): Likewise.
14208 * config/mips/mips.opt: Add -mcompact-branches option.
14209 * config/mips/predicates.md (order_operator): Ensure the
14210 conditional compact branches are only used if the ISA them.
14211 * doc/invoke.texi: Document -mcompact-branches option.
14213 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
14216 * lra-lives.c (process_bb_lives): Process move pseudos with the
14217 same value for copies and preferences
14218 * lra-constraints.c (match_reload): Create match reload pseudo
14219 with the same value from single dying input pseudo.
14221 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
14224 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
14226 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
14228 * trans-mem.c: Add contributed-by.
14229 * trans-mem.h: Same.
14231 2015-09-01 Richard Biener <rguenther@suse.de>
14233 * expr.c (expand_expr_real_1): For expanding TERed defs
14234 set the current location to that of the def if not UNKNOWN.
14236 2015-09-01 David Sherwood <david.sherwood@arm.com>
14238 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
14240 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14242 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
14243 then_cost, else_cost fields. Change branch_cost field to unsigned int.
14244 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
14245 Include rtl-iter.h.
14246 (noce_simple_bbs): New function.
14247 (noce_try_move): Bail if basic blocks are not simple.
14248 (noce_try_store_flag): Likewise.
14249 (noce_try_store_flag_constants): Likewise.
14250 (noce_try_addcc): Likewise.
14251 (noce_try_store_flag_mask): Likewise.
14252 (noce_try_cmove): Likewise.
14253 (noce_try_minmax): Likewise.
14254 (noce_try_abs): Likewise.
14255 (noce_try_sign_mask): Likewise.
14256 (noce_try_bitop): Likewise.
14257 (bbs_ok_for_cmove_arith): New function.
14258 (noce_emit_all_but_last): Likewise.
14259 (noce_emit_insn): Likewise.
14260 (noce_emit_bb): Likewise.
14261 (noce_try_cmove_arith): Handle non-simple basic blocks.
14262 (insn_valid_noce_process_p): New function.
14263 (contains_mem_rtx_p): Likewise.
14264 (bb_valid_for_noce_process_p): Likewise.
14265 (noce_process_if_block): Allow non-simple basic blocks
14268 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
14270 * tree-ssa-dom.c (record_equivalences_from_phis,
14271 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
14272 (lookup_avail_expr): Likewise, and remove comment and unused temp.
14274 2015-09-01 Nick Clifton <nickc@redhat.com>
14276 * config/msp430/msp430.opt (mcpu): Fix typo.
14278 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14280 * config/aarch64/aarch64.c (aarch64_set_current_function):
14281 Re-layout any vector parameters have non-simd layout.
14282 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
14284 (aarch64_simd_expand_args): Delete call to the above.
14286 2015-08-31 Mike Frysinger <vapier@gentoo.org>
14288 * doc/invoke.texi (asan-stack): Add space before option.
14290 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
14292 * tree.h (zerop): New function.
14293 * tree.c (zerop): Likewise.
14294 (element_precision): Handle expressions.
14295 * match.pd (define_predicates): Add zerop.
14296 (x <= +Inf): Fix comment.
14297 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
14298 * fold-const.c (fold_binary_loc): ... here. Remove.
14300 2015-08-31 Richard Biener <rguenther@suse.de>
14302 PR middle-end/67381
14303 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
14305 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
14307 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
14308 (CEXPI): New operator list.
14309 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
14310 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
14312 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
14314 2015-08-31 Tom de Vries <tom@codesourcery.com>
14316 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
14317 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
14319 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
14320 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
14321 (rewrite_into_loop_closed_ssa): ... here.
14322 (replace_uses_in_dominated_bbs): Remove function.
14323 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
14324 rewrite_into_loop_closed_ssa_1.
14326 2015-08-31 Michael Matz <matz@suse.de>
14328 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
14329 enter entry and exit blocks for reverse post order.
14331 2015-08-31 Richard Biener <rguenther@suse.de>
14333 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
14334 (lto_location_cache::current_sysp): Likewise.
14335 (output_block::current_sysp): Likewise.
14336 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
14337 (lto_location_cache::apply_location_cache): Properly record
14338 system header locations.
14339 (lto_location_cache::input_location): Input whether a file
14340 is a system header.
14341 * lto-streamer-out.c (lto_output_location): Stream whether a file
14342 is a system header.
14344 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14347 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
14349 2015-08-31 Tom de Vries <tom@codesourcery.com>
14351 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
14352 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
14353 Improve function header comments.
14355 2015-08-30 Michael Collison <michael.collison@linaro.org>
14358 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
14361 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14363 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
14364 special_handling bitfield.
14365 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
14366 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
14367 that represents a general xxpermdi.
14368 (insn_is_swappable_p): Add handling for vec_concat of two
14369 doublewords, which maps to a specific xxpermdi.
14370 (adjust_xxpermdi): New function.
14371 (adjust_concat): Likewise.
14372 (handle_special_swappables): Call adjust_xxpermdi and
14374 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
14376 2015-08-30 Rich Felker <dalias@libc.org>
14378 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
14379 case instead of sh[123456ble]-*-*.
14381 2015-08-29 Anatoly Sokolov <aesok@post.ru>
14383 * ira.c (print_unform_and_important_classes,
14384 print_translated_classes): Remove reg_class_names static array.
14385 (print_unform_and_important_classes): Rename to ...
14386 (print_uniform_and_important_classes): ... this.
14387 (ira_debug_allocno_classes): Update accordingly.
14389 2015-08-29 Tom de Vries <tom@codesourcery.com>
14391 PR tree-optimization/46193
14392 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
14395 2015-08-28 Jeff Law <law@redhat.com>
14398 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14399 unable to find X NE 0 in the tables, return X as the simplified
14401 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14402 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
14404 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14405 after removing the control flow statement and unnecessary edges.
14407 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
14410 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14412 PR tree-optimization/67283
14413 * tree-sra.c (type_consists_of_records_p): Rename to...
14414 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14416 (completely_scalarize_record): Rename to...
14417 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
14419 (scalarize_elem): New.
14421 2015-08-28 Jiong Wang <jiong.wang@arm.com>
14423 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
14424 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
14425 (aarch64_symbol_type): Likewise.
14426 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14428 (aarch64_expand_mov_immediate): Likewise.
14429 (aarch64_print_operand): Likewise.
14430 (aarch64_classify_tls_symbol): Likewise.
14432 2015-08-28 Richard Biener <rguenther@suse.de>
14434 * cgraphunit.c (symbol_table::compile): Move early debug generation
14436 (symbol_table::finalize_compilation_unit): ... back here and
14437 add a !seen_error () guard.
14439 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14441 * toplev.c (process_options): Do not use flag_loop_block,
14442 flag_loop_interchange, and flag_loop_strip_mine. Add check for
14443 flag_loop_optimize_isl.
14445 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14447 * Makefile.in (OBJS): Remove graphite-blocking.o and
14448 graphite-interchange.o.
14449 * common.opt (floop-strip-mine, floop-interchange, floop-block):
14450 Alias of floop-nest-optimize.
14451 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
14452 Document as alias of -floop-nest-optimize.
14453 * graphite-blocking.c: Remove.
14454 * graphite-interchange.c: Remove.
14455 * graphite-optimize-isl.c: Include dumpfile.h.
14456 (getScheduleForBand): Add dump for tiled loops. Use
14457 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
14458 * graphite-poly.c (scop_max_loop_depth): Remove.
14459 (print_scattering_function_1): Remove.
14460 (print_scattering_function): Remove.
14461 (print_scattering_functions): Remove.
14462 (debug_scattering_function): Remove.
14463 (debug_scattering_functions): Remove.
14464 (apply_poly_transforms): Remove use of flag_loop_block,
14465 flag_loop_strip_mine, and flag_loop_interchange.
14466 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
14468 (print_pdr_access_layout): Remove.
14469 (print_pdr): Print ISL representation.
14470 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
14471 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
14473 (openscop_print_pbb_domain): Remove.
14474 (print_pbb): Remove call to print_scattering_function.
14475 (openscop_print_scop_context): Remove.
14476 (print_scop_context): Do not print matrices anymore.
14477 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
14478 SCOP_TRANSFORMED_SCHEDULE.
14479 (print_isl_set): Add printing of a new line.
14480 (print_isl_map): Same.
14481 (print_isl_aff): Same.
14482 (print_isl_constraint): Same.
14483 (loop_to_lst): Remove.
14484 (scop_to_lst): Remove.
14485 (lst_indent_to): Remove.
14486 (print_lst): Remove.
14487 (debug_lst): Remove.
14488 (dot_lst_1): Remove.
14490 (reverse_loop_at_level): Remove.
14491 (reverse_loop_for_pbbs): Remove.
14492 * graphite-poly.h (pdr_dim_iter_domain): Remove.
14493 (pdr_nb_params): Remove.
14494 (pdr_alias_set_dim): Remove.
14495 (pdr_subscript_dim): Remove.
14496 (pdr_iterator_dim): Remove.
14497 (pdr_parameter_dim): Remove.
14498 (same_pdr_p): Remove.
14499 (struct poly_scattering): Remove.
14500 (struct poly_bb): Remove _original, _transformed, _saved.
14501 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
14502 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
14503 (PBB_NB_LOCAL_VARIABLES): Remove.
14504 (PBB_NB_SCATTERING_TRANSFORM): Remove.
14505 (schedule_to_scattering): Remove.
14506 (number_of_write_pdrs): Remove.
14507 (pbb_dim_iter_domain): Remove.
14508 (pbb_nb_params): Remove.
14509 (pbb_nb_scattering_orig): Remove.
14510 (pbb_nb_scattering_transform): Remove.
14511 (pbb_nb_dynamic_scattering_transform): Remove.
14512 (pbb_nb_local_vars): Remove.
14513 (pbb_iterator_dim): Remove.
14514 (pbb_parameter_dim): Remove.
14515 (psco_scattering_dim): Remove.
14516 (psct_scattering_dim): Remove.
14517 (psct_local_var_dim): Remove.
14518 (psco_iterator_dim): Remove.
14519 (psct_iterator_dim): Remove.
14520 (psco_parameter_dim): Remove.
14521 (psct_parameter_dim): Remove.
14522 (psct_dynamic_dim): Remove.
14523 (psct_static_dim): Remove.
14524 (psct_add_local_variable): Remove.
14525 (new_lst_loop): Remove.
14526 (new_lst_stmt): Remove.
14527 (free_lst): Remove.
14528 (copy_lst): Remove.
14529 (lst_add_loop_under_loop): Remove.
14530 (lst_depth): Remove.
14531 (lst_dewey_number): Remove.
14532 (lst_dewey_number_at_depth): Remove.
14533 (lst_pred): Remove.
14534 (lst_succ): Remove.
14535 (lst_find_pbb): Remove.
14536 (find_lst_loop): Remove.
14537 (lst_find_first_pbb): Remove.
14538 (lst_empty_p): Remove.
14539 (lst_find_last_pbb): Remove.
14540 (lst_contains_p): Remove.
14541 (lst_contains_pbb): Remove.
14542 (lst_create_nest): Remove.
14543 (lst_remove_from_sequence): Remove.
14544 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
14545 (lst_niter_for_loop): Remove.
14546 (pbb_update_scattering): Remove.
14547 (lst_update_scattering_under): Remove.
14548 (lst_update_scattering): Remove.
14549 (lst_insert_in_sequence): Remove.
14550 (lst_replace): Remove.
14551 (lst_substitute_3): Remove.
14552 (lst_distribute_lst): Remove.
14553 (lst_remove_all_before_including_pbb): Remove.
14554 (lst_remove_all_before_excluding_pbb): Remove.
14555 (struct scop): Remove original_schedule, transformed_schedule, and
14557 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
14558 (SCOP_SAVED_SCHEDULE): Remove.
14559 (poly_scattering_new): Remove.
14560 (poly_scattering_free): Remove.
14561 (poly_scattering_copy): Remove.
14562 (store_scattering_pbb): Remove.
14563 (store_lst_schedule): Remove.
14564 (restore_lst_schedule): Remove.
14565 (store_scattering): Remove.
14566 (restore_scattering_pbb): Remove.
14567 (restore_scattering): Remove.
14568 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
14569 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
14570 compute the scattering polyhedron dimension from the dimension of
14572 (build_scop_scattering): Update call to
14573 build_pbb_scattering_polyhedrons.
14574 (build_poly_scop): Remove call to scop_to_lst.
14575 * graphite.c (graphite_transform_loops): Add call to print_scop.
14576 (gate_graphite_transforms): Remove use of flag_loop_block,
14577 flag_loop_interchange, and flag_loop_strip_mine.
14579 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14581 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
14582 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
14583 -floop-nest-optimize.
14584 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
14585 (generate_luj_sepclass): Remove.
14586 (generate_luj_options): Remove.
14587 (set_options): Remove opt_luj.
14588 (scop_to_isl_ast): Remove opt_luj.
14589 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
14590 flag_loop_unroll_jam.
14591 (getPrevectorMap_full): Remove.
14592 (getScheduleForBandList): Remove map_sepcl.
14593 (getScheduleMap): Same.
14594 (apply_schedule_map_to_scop): Remove sepcl.
14595 (optimize_isl): Same.
14596 * graphite-poly.c (apply_poly_transforms): Remove check for
14597 flag_loop_unroll_jam.
14598 (new_poly_bb): Remove map_sepclass.
14599 * graphite-poly.h (struct poly_bb): Same.
14600 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
14601 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
14602 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
14603 * toplev.c (process_options): Remove flag_loop_unroll_jam.
14605 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
14608 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
14609 (addqi3_cc): Ditto.
14610 (UNSPEC_ADD_CARRY): Remove.
14611 (addqi3_cconly_overflow): New expander.
14612 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
14613 Adjust for changed add<mode>3_carry.
14614 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
14615 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
14616 (<plusminus_insn><mode>3_carry): Remove expander.
14617 (*<plusminus_insn><mode>3_carry): Split insn pattern to
14618 add<mode>3_carry and sub<mode>3_carry.
14619 (plusminus_carry_mnemonic): Remove code attribute.
14620 (add<mode>3_carry): Canonicalize insn pattern.
14621 (*addsi3_carry_zext): Ditto.
14622 (sub<mode>3_carry): Ditto.
14623 (*subsi3_carry_zext): Ditto.
14624 (adcx<mode>3): Remove insn pattern.
14625 (addcarry<mode>): New insn pattern.
14626 (subborrow<mode>): Ditto.
14627 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
14628 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
14629 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
14630 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
14631 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
14632 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
14633 Rewrite expander to not clobber carry flag chains.
14635 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
14637 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
14638 instead of a rotate.
14640 2015-08-27 Marek Polacek <polacek@redhat.com>
14642 PR middle-end/67005
14643 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
14644 an entry into an irreducible region.
14646 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14648 * configure: Regenerate.
14650 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14652 PR tree-optimization/67283
14653 * tree-sra.c (type_consists_of_records_p): Rename to...
14654 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14656 (completely_scalarize_record): Rename to...
14657 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14658 (scalarize_elem): New.
14660 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14662 * tree-sra.c (completely_scalarize_var): Rename to...
14663 (create_total_scalarization_access): ... Here. Drop call to
14664 completely_scalarize_record.
14666 (analyze_all_variable_accesses): Replace completely_scalarize_var
14667 with create_total_scalarization_access and completely_scalarize_record.
14669 2015-08-27 Alan Modra <amodra@gmail.com>
14672 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
14675 2015-08-27 Richard Biener <rguenther@suse.de>
14677 * passes.c (rest_of_decl_compilation): Guard early_global_decl
14678 call with !seen_error ().
14679 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
14680 early debug generation and finish...
14681 (symbol_table::compile): ... here to put it after a !seen_error ()
14684 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14686 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
14689 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14690 Andre Vieira <andre.simoesdiasvieira@arm.com>
14692 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
14693 (*cb<optab><mode>1): Likewise.
14694 (*tb<optab><mode>1): Likewise.
14695 (*cb<optab><mode>1): Likewise.
14696 * config/aarch64/iterators.md (inv_cb): New code attribute.
14697 (inv_tb): Likewise.
14698 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
14699 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
14701 2015-08-27 Richard Biener <rguenther@suse.de>
14703 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
14705 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
14707 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
14710 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14712 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
14715 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
14717 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
14718 floating point in VSX registers.
14719 (rs6000_output_move_128bit): Always print out the set insn if we
14720 can't generate an appropriate 128-bit move.
14721 (rs6000_generate_compare): Add support for IEEE 128-bit floating
14722 point in VSX registers comparisons.
14723 (rs6000_expand_float128_convert): Likewise.
14725 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
14726 predicate for only GPR hard registers.
14728 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
14729 modes to iterators. Add new iterators for moving 128-bit values in
14730 scalar FPR registers and VSX registers.
14731 (FMOVE128): Likewise.
14732 (FMOVE128_FPR): Likewise.
14733 (FMOVE128_GPR): Likewise.
14734 (FMOVE128_VSX): Likewise.
14735 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
14738 (IBM128): Likewise.
14739 (TFIFKF): Likewise.
14740 (RELOAD): Add IEEE 128-bit floating point modes.
14741 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
14742 floating point in VSX registers modes.
14743 (signbit<mode>2, IBM128 iterator): Likewise.
14744 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
14745 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14746 (negtf2): Likewise.
14747 (neg<mode>2, TFIFKF iterator): Likewise.
14748 (negtf2_internal): Likewise.
14749 (abstf2): Likewise.
14750 (abs<mode>2, TFIFKF iterator): Likewise.
14751 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
14752 VSX insn support for negate, absolute value, and negative absolute
14754 (ieee_128bit_vsx_neg<mode>2): Likewise.
14755 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
14756 (ieee_128bit_vsx_abs<mode>2): Likewise.
14757 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
14758 (ieee_128bit_vsx_nabs<mode>2): Likewise.
14759 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
14760 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
14761 floating point in VSX registers.
14762 (unpack<mode>_dm): Likewise.
14763 (unpack<mode>_nodm): Likewise.
14764 (pack<mode>): Likewise.
14765 (unpackv1ti): Likewise.
14766 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
14767 (packv1ti): Likewise.
14768 (pack<mode>, FMOVE128_VSX iterator): Likewise.
14769 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
14771 (extenddftf2_internal): Likewise.
14772 (trunctfdf2): Likewise.
14773 (trunctfdf2_internal2): Likewise.
14774 (fix_trunc_helper): Likewise.
14775 (fix_trunctfdi2"): Likewise.
14776 (floatditf2): Likewise.
14777 (floatuns<mode>tf2): Likewise.
14778 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
14779 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
14780 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
14781 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
14782 (float<SDI:mode><IFKF:mode>2): Likewise.
14783 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
14785 2015-08-26 Renlin Li <renlin.li@arm.com>
14787 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
14789 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14790 Jiong Wang <jiong.wang@arm.com>
14792 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
14793 (tlsie_tiny_<mode>): New define_insn.
14794 (tlsie_tiny_sidi): Likewise.
14795 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
14797 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
14798 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14800 (aarch64_expand_mov_immediate): Likewise.
14801 (aarch64_print_operand): Likewise.
14802 (arch64_classify_tls_symbol): Likewise.
14804 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14806 * config/arm/arm-arches.def: Replace single value flags with
14807 an initializer built from ARM_FSET_MAKE_CPU1.
14808 * config/arm/arm-cores.def: Likewise.
14809 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
14810 derivation from the ARM_CORE macro definition, use the given value
14812 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
14813 ARM_ARCH macro definition, use the given value instead.
14815 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14817 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
14819 (struct builtin_description): Replace field mask with field
14821 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
14822 (IWMMXT2_BUILTIN): Likewise.
14823 (IWMMXT2_BUILTIN2): Likewise.
14824 (FP_BUILTIN): Likewise.
14825 (CRC32_BUILTIN): Likewise.
14826 (CRYPTO_BUILTIN): Likewise.
14827 (iwmmx_mbuiltin): Likewise.
14828 (iwmmx2_mbuiltin): Likewise.
14829 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
14830 struct builtin_description.
14832 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14834 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
14835 (struct builtin_description): Change type of mask to unsigned
14837 * config/arm/arm-protos.h (insn_flags): Declare as type
14839 (tune_flags): Likewise.
14840 * config/arm/arm.c (feature_count): New.
14841 (insn_flags): Define as type arm_feature_set.
14842 (tune_flags): Likewise.
14843 (struct processors): Define field flags as type arm_feature_set.
14844 (all_cores): Update for change to struct processors.
14845 (all_architectures): Likewise.
14846 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
14848 (arm_option_override_internal): Likewise.
14849 (arm_option_override): Likewise.
14851 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14852 Jiong Wang <jiong.wang@arm.com>
14854 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
14855 tls size for tiny, small, large memory model.
14856 (aarch64_load_symref_appropriately): Support new symbol types.
14857 (aarch64_expand_mov_immediate): Likewise.
14858 (aarch64_print_operand): Likewise.
14859 (aarch64_classify_tls_symbol): Likewise.
14860 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
14861 (aarch64_symbol_type): Likewise.
14862 * config/aarch64/aarch64.md (tlsle): Deleted.
14863 (tlsle12_<mode>): New define_insn.
14864 (tlsle24_<mode>): Likewise.
14865 (tlsle32_<mode>): Likewise.
14866 (tlsle48_<mode>): Likewise.
14867 * doc/sourcebuild.texi (AArch64-specific attributes): Document
14870 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14872 * config/arm/arm-protos.h (FL_NONE): New.
14874 (arm_feature_set): New.
14875 (ARM_FSET_MAKE): New.
14876 (ARM_FSET_MAKE_CPU1): New.
14877 (ARM_FSET_MAKE_CPU2): New.
14878 (ARM_FSET_CPU1): New.
14879 (ARM_FSET_CPU2): New.
14880 (ARM_FSET_EMPTY): New.
14881 (ARM_FSET_ANY): New.
14882 (ARM_FSET_HAS_CPU1): New.
14883 (ARM_FSET_HAS_CPU2): New.
14884 (ARM_FSET_HAS_CPU): New.
14885 (ARM_FSET_ADD_CPU1): New.
14886 (ARM_FSET_ADD_CPU2): New.
14887 (ARM_FSET_DEL_CPU1): New.
14888 (ARM_FSET_DEL_CPU2): New.
14889 (ARM_FSET_UNION): New.
14890 (ARM_FSET_INTER): New.
14891 (ARM_FSET_XOR): New.
14892 (ARM_FSET_EXCLUDE): New.
14893 (AFM_FSET_IS_EMPTY): New.
14894 (ARM_FSET_CPU_SUBSET): New.
14896 2015-08-26 Jiong Wang <jiong.wang@arm.com>
14898 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14899 SYMBOL_TLSLE to SYMBOL_TLSLE24.
14900 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14902 (aarch64_expand_mov_immediate): Likewise.
14903 (aarch64_print_operand): Likewise.
14904 (aarch64_classify_symbol): Likewise.
14906 2015-08-26 Jiong Wang <jiong.wang@arm.com>
14908 * config/aarch64/aarch64.opt (mtls-size): New entry.
14909 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
14910 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
14911 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
14913 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14915 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
14916 ARM_CORE entry. Fix some white-space.
14917 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
14918 ARM_CORE definition.
14920 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14922 * fold-const.c (fold_binary_loc) : Move Optimize
14923 root(x)*root(y) as root(x*y) to match.pd.
14924 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
14925 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
14926 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
14927 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
14928 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
14929 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
14930 (mult (exps:s @0) (exps:s @1)) : New simplifier.
14931 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
14932 (rdiv @0 (exps:s @1)) : New simplifier.
14934 2015-08-25 Joseph Myers <joseph@codesourcery.com>
14936 * gcc.c (driver::finalize): Only assign to extra_specs if
14939 2015-08-25 Marek Polacek <polacek@redhat.com>
14941 PR middle-end/67330
14942 * varasm.c (declare_weak): Return after giving an error.
14944 2015-08-25 David Malcolm <dmalcolm@redhat.com>
14946 * gcc-main.c (main): Add params to driver ctor.
14947 * gcc.c (class env_manager): New.
14949 (env_manager::init): New.
14950 (env_manager::get): New.
14951 (env_manager::xput): New.
14952 (env_manager::restore): New.
14953 Poison getenv and putenv.
14954 (DEFAULT_TARGET_SYSTEM_ROOT): New.
14955 (target_system_root): Update initialization to use
14956 DEFAULT_TARGET_SYSTEM_ROOT.
14957 (struct spec_list): Add field "default_ptr".
14958 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
14959 (init_spec): Likewise.
14960 (set_spec): Clear field "default_ptr".
14961 (read_specs): Free "spec" and "buffer".
14962 (xputenv): Reimplement in terms of env_manager.
14963 (process_command): Replace ::getenv calls with calls to the
14964 env_manager singleton.
14965 (process_brace_body): Free string in three places.
14966 (driver::driver): New.
14967 (driver::~driver): New.
14968 (used_arg): Convert from a function to...
14969 (class used_arg_t): ...this class, and...
14970 (used_arg): ...this new global instance.
14971 (used_arg_t::finalize): New function.
14972 (getenv_spec_function): Add "const" to local "value". Replace
14973 ::getenv call with call to the env_manager singleton.
14974 (path_prefix_reset): New function.
14975 (driver::finalize): New function.
14976 * gcc.h (driver::driver): New.
14977 (driver::~driver): New.
14978 (driver::finalize): New.
14980 2015-08-25 Nathan Sidwell <nathan@acm.org>
14982 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
14983 target doesn't have one.
14985 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
14988 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
14990 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
14993 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
14994 a define_insn, remove second alternative.
14996 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
14997 Joseph Myers <joseph@codesourcery.com>
14999 * gcc.c (struct switchstr): Expand comment.
15001 2015-08-25 Nathan Sidwell <nathan@acm.org>
15003 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
15004 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
15006 2015-08-25 Richard Biener <rguenther@suse.de>
15008 PR middle-end/67306
15009 * genmatch.c (expr::gen_transform): Verify the result of
15010 builtin_decl_implicit.
15011 (dt_simplify::gen_1): Likewise.
15013 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
15015 * config/arm/constraints.md: Also list Cs and US ARM-specific
15016 constraints as used.
15018 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
15021 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
15023 (nonpic_symbol_mentioned_p): Likewise.
15024 (sh_delegitimize_address): Likewise.
15025 (sh_function_ok_for_sibcall): Take into account weak symbols.
15026 (sh_expand_sym_label2reg): New.
15027 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
15028 * config/sh/sh.md (UNSPEC_PCREL): New enum.
15029 (call_pcrel): Use sh_expand_sym_label2reg.
15030 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
15031 (symPCREL_label2reg) New expand.
15033 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
15035 * graphite-poly.c: Change type of region from void* to sese.
15036 * graphite-poly.h (struct scop): Changing the type of scop::region
15037 from void* to sese. Change accessor macro accordingly.
15038 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
15040 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
15042 * graphite-scop-detection.c (stmt_simple_for_scop_p):
15043 Constrain only on INTEGER_TYPE.
15045 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15048 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
15049 -mefficient-unaligned-vsx on ISA 2.7.
15051 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
15052 option to a masked option.
15054 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
15055 logic for -mefficient-unaligned-vsx so that it is set via an arch
15056 ISA option, instead of being set if -mtune=power8 is set. Move
15057 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
15058 near other default option handling.
15060 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15062 * genflags.c (gen_macro): Delete.
15063 (gen_proto): Don't create GEN.*CALL.* macros.
15064 * gensupport.h (get_file_location): Declare.
15065 * gensupport.c (rtx_locs): New variable.
15066 (read_md_rtx): Record rtx locations.
15067 (get_file_location): New function.
15068 * target-insns.def (call, call_pop, call_value, call_value_pop)
15069 (sibcall, sibcall_value): New patterns.
15070 * gentarget-def.c (parse_argument): New function.
15071 (def_target_insn): Use it. Handle optional operands. Raise an
15072 error if an .md pattern has the wrong number of operands for the
15073 pattern name. Remove the names of unused operands from the prototype.
15074 * builtins.c (expand_builtin_apply): Use targetm functions
15075 instead of HAVE_call_value and GEN_CALL_VALUE.
15076 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
15077 and sibcall_value_pop.
15078 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
15080 * config/alpha/alpha.md (untyped_call): Likewise.
15081 * config/iq2000/iq2000.md (untyped_call): Likewise.
15082 * config/m68k/m68k.md (untyped_call): Likewise.
15083 * config/mips/mips.md (untyped_call): Likewise.
15084 * config/pa/pa.md (untyped_call): Likewise.
15085 * config/rs6000/rs6000.md (untyped_call): Likewise.
15086 * config/sparc/sparc.md (untyped_call): Likewise.
15087 * config/tilegx/tilegx.md (untyped_call): Likewise.
15088 * config/tilepro/tilepro.md (untyped_call): Likewise.
15089 * config/visium/visium.md (untyped_call): Likewise.
15090 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
15091 gen_call_value instead of GEN_CALL_VALUE.
15092 * config/arm/arm.md (untyped_call): Likewise.
15093 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
15096 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15098 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
15099 (have_cbranchcc4): New variable.
15100 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
15101 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
15102 (if_convert): Initialize have_cbranchcc4.
15104 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15106 * builtins.c (expand_cmpstrn): Rename to...
15107 (expand_cmpstrn_or_cmpmem): ...this.
15108 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
15109 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
15110 Remove mode argument.
15111 (expand_builtin): Update accordingly.
15113 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15115 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
15116 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
15117 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
15118 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
15119 Add predicates for operands 0 and 3.
15120 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
15122 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
15123 immediate_operand to nonmemory_operand.
15125 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15127 * df-scan.c (df_insn_info_init_fields): New function, split out
15129 (df_insn_create_insn_record): ...here.
15130 (df_insn_info_free_fields): New function, split out from...
15131 (df_insn_info_delete): ...here.
15132 (df_insn_rescan): Use the new functions instead of freeing and
15133 reallocating the df_insn_info.
15135 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15137 * doc/install.texi (Binaries): Remove links no longer valid.
15139 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
15141 * config/nvptx/mkoffload.c (process): Replace
15142 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
15144 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
15147 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
15149 2015-08-24 Renlin Li <renlin.li@arm.com>
15151 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
15152 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
15153 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
15154 * config/arm/constraints.md ("j"): Add check for high code.
15156 2015-08-24 Tom de Vries <tom@codesourcery.com>
15158 PR tree-optimization/65468
15159 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
15162 2015-08-24 Nathan Sidwell <nathan@acm.org>
15164 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
15165 change to nvptx_type_from_mode call. Use arg_promotion for both
15166 split and non-split args.
15168 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15170 * target-insns.def (movstr): New pattern.
15171 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
15172 (expand_movstr): Use targetm rather than HAVE_movstr/
15175 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15177 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
15180 2015-08-24 Andrew Pinski <apinski@cavium.com>
15182 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
15183 AARCH64_EXTRA_TUNING_OPTION.
15184 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
15186 (aarch64_extra_tuning_flags): Base the shifted value on the index
15187 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
15188 * config/aarch64/aarch64.c: Remove the last argument to
15189 AARCH64_EXTRA_TUNING_OPTION.
15191 2015-08-23 Nathan Sidwell <nathan@acm.org>
15193 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
15195 (nvptx_declare_function_name): Insert formatting tabs for
15198 2015-08-23 Tom de Vries <tom@codesourcery.com>
15200 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
15201 parm_decl, rather than generating a dummy default def in cfun.
15202 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
15203 ssa_name from cfun and child_fn do not share a stmt as def stmt.
15204 (move_stmt_op): Handle PARM_DECl.
15205 (gather_ssa_name_hash_map_from): New function.
15206 (move_sese_region_to_fn): Add default defs for function params, and add
15207 them to vars_map. Release copied ssa names.
15208 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
15210 2015-08-23 Tom de Vries <tom@codesourcery.com>
15212 * doc/sourcebuild.texi: Rename vect_no_int_max with
15213 vect_no_int_min_max. Update description.
15215 2015-08-22 Andrew Pinski <apinski@cavium.com>
15217 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
15218 * config/aarch64/aarch64-protos.h
15219 (aarch64_fusion_pairs_index): New enum.
15220 (aarch64_fusion_pairs): Base the shifted value on the index instead
15221 Rewrite AARCH64_FUSE_ALL to be based on the end index.
15222 of the argument to AARCH64_FUSION_PAIR.
15223 * config/aarch64/aarch64.c: Remove the last argument to
15224 AARCH64_FUSION_PAIR.
15226 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
15228 * dominance.c (new_zero_array): Define.
15229 (dom_info): Redefine as class with proper encapsulation.
15230 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
15232 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
15233 allocations/deallocations. Pass function as parameter (instead of
15235 (dom_info::get_idom): Define accessor method.
15236 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
15237 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
15238 (calculate_dominance_info): Adjust to use dom_info class.
15239 (verify_dominators): Likewise.
15241 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
15243 * print-rtl.c (print_rtx): Check the correct range for
15244 flag_dump_unnumbered_links to behave as documented.
15246 PR rtl-optimization/67227
15247 PR rtl-optimization/64164
15248 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
15249 (nonoverlapping_memrefs_p): Test offsets and sizes when given
15250 identical gimple_reg exprs.
15252 2015-08-21 Nathan Sidwell <nathan@acm.org>
15254 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
15256 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
15257 crtl->stack_alignment_needed to determine alignment.
15258 (nvptx_get_drap_rtx): New.
15259 (TARGET_GET_DRAP_RTX): Override.
15260 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
15262 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15264 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
15266 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15268 * configure.ac: Remove uwin* cases.
15269 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
15270 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
15271 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
15272 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
15273 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
15274 i[34567]86-*-uwin*, powerpc-*-beos*.
15276 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
15278 * gencodes.c (gencodes): Print the comma for the preceding
15279 enum value rather than the current one. Use aliased enum values
15280 rather than #defines for compiled-out patterns.
15281 (main): Update accordingly. Replace LAST_INSN_CODE with
15283 * lra.c (insn_code_data): Update accordingly.
15284 (finish_insn_code_data_once, get_static_insn_data): Likewise.
15285 * recog.h (target_recog): Likewise.
15286 (preprocess_insn_constraints): Change parameter to unsigned int.
15287 * recog.c (preprocess_insn_constraints): Likewise.
15288 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
15289 * tree-vect-stmts.c (vectorizable_operation): Simplify.
15291 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
15293 PR rtl-optimization/61657
15294 * loop-iv.c (iv_number_of_iterations): Declare up and down as
15295 unsigned. Remove superflous uint64_t cast.
15297 2014-08-21 Felix Yang <felix.yang@huawei.com>
15298 Jiji Jiang <jiangjiji@huawei.com>
15300 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
15301 argument and get builtin function code directly from CALL.
15302 (gimple_stringop_fixed_value): Modified accordingly.
15303 (gimple_stringops_transform, gimple_stringops_values_to_profile):
15304 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
15306 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
15308 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
15310 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15312 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
15314 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
15315 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
15316 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
15317 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
15318 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
15319 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
15320 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
15321 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
15322 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
15323 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
15325 * match.pd (SIN ) : New Operator.
15326 (TAN) : New Operator.
15327 (mult (SQRT@1 @0) @1) : New simplifier.
15328 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
15329 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15330 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15331 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
15332 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
15333 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
15334 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
15335 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
15336 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
15337 (rdiv @0 (POW:s @1 @2)) : New simplifier.
15339 2015-08-21 Bin Cheng <bin.cheng@arm.com>
15341 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
15342 loop if EXPR is simplified to const value.
15344 2015-08-21 Yury Gribov <y.gribov@samsung.com>
15346 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
15347 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
15349 2015-08-21 Richard Biener <rguenther@suse.de>
15351 PR middle-end/67285
15352 * gimple-fold.c (replace_stmt_with_simplification): Assert
15353 seq is empty when replacing a call with itself but different
15355 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
15356 a call require that it is const.
15358 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15360 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
15361 * builtins.c (get_object_alignment_2): Adjust.
15362 * varasm.c (align_variable): Likewise.
15363 (get_variable_align): Likewise.
15364 (build_constant_desc): Likewise.
15365 (force_const_mem): Likewise.
15366 * doc/tm.texi.in: Likewise.
15367 * doc/tm.texi: Regenerate.
15369 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15371 * genconfig.c (main): Always define HAVE_cc0.
15372 * recog.c (rest_of_handle_peephole2): Adjust.
15374 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15376 * reorg.c (relax_delay_slots): Don't use #if to check value of
15379 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15381 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
15382 * targhooks.c (default_have_conditional_execution): Adjust.
15384 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
15386 * rtl.h (rtvec_all_equal_p): Declare.
15387 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
15388 * rtl.c (rtvec_all_equal_p): New function.
15389 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
15390 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
15391 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
15392 * config/arm/arm.c (neon_vdup_constant): Likewise.
15393 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
15394 * config/tilegx/constraints.md (W, Y): Likewise.
15395 * config/tilepro/constraints.md (W, Y): Likewise.
15396 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
15397 (classify_immediate): Use unwrap_const_vec_duplicate.
15398 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
15399 (reg_or_v2s8bit_operand): Likewise.
15400 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
15401 (reg_or_v4s8bit_operand): Likewise.
15403 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15405 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
15406 (vec_shasigma_be): New #define.
15407 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
15408 (VPMSUMH): Likewise.
15409 (VPMSUMW): Likewise.
15410 (VPMSUMD): Likewise.
15411 (VPMSUM): New BU_P8V_OVERLOAD_2.
15412 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
15413 entries for VEC_MADD and VEC_VPMSUM.
15415 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
15417 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
15418 Multiply argument avr_n_flash by 64 to match unit of "KiB".
15419 (avr_pgm_check_var_decl): Same.
15421 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
15423 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
15424 initialization of HFmode scalar type (float16_t) to...
15425 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
15428 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
15430 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
15431 having an -mfp16-format.
15433 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
15435 * config/i386/predicates.md (vector_all_ones_operand): Use
15436 CONSTM1_RTX to simplify definition.
15438 2015-08-20 Richard Biener <rguenther@suse.de>
15440 * toplev.c (compile_file): Remove loop calling late_global_decl
15442 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
15443 on decls we assembled.
15445 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
15447 * common/config/aarch64/aarch64-common.c
15448 (AARCH64_CPU_NAME_LENGTH): Delete.
15449 (aarch64_option_extension): New.
15450 (all_extensions): Likewise.
15451 (processor_name_to_arch): Likewise.
15452 (arch_to_arch_name): Likewise.
15454 (all_architectures): Likewise.
15455 (aarch64_get_extension_string_for_isa_flags): Likewise.
15456 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
15457 architecture names.
15458 * config/aarch64/aarch64-protos.h
15459 (aarch64_get_extension_string_for_isa_flags): New.
15460 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
15461 (aarch64_option_print): Get the string to print from
15462 aarch64_get_extension_string_for_isa_flags.
15463 (aarch64_declare_function_name): Likewise.
15464 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
15465 (MCPU_TO_MARCH_SPEC): This.
15466 (ASM_CPU_SPEC): Use it.
15467 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
15468 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
15469 (EXTRA_SPEC_FUNCTIONS): Use it.
15471 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
15473 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
15474 expansion when !ISA_HAS_LWL_LWR.
15475 (mips_block_move_straight): Update the size of elements copied to
15476 account for alignment when !ISA_HAS_LWL_LWR.
15477 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
15479 2015-08-19 Jiong Wang <jiong.wang@arm.com>
15481 * expr.c (expand_expr_real_2): Check gimple statement during
15482 LSHIFT_EXPR expand.
15484 2015-08-19 Magnus Granberg <zorry@gentoo.org>
15486 * common.opt (fstack-protector): Initialize to -1.
15487 (fstack-protector-all): Likewise.
15488 (fstack-protector-strong): Likewise.
15489 (fstack-protector-explicit): Likewise.
15490 * configure.ac: Add --enable-default-ssp.
15491 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
15492 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
15494 * doc/install.texi: Document --enable-default-ssp.
15495 * config.in: Regenerated.
15496 * configure: Likewise.
15498 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
15500 PR rtl-optimization/64164
15501 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
15502 (parm_in_stack_slot_p): ... this. Disregard mode, what
15503 matters is whether the parm will live in a pseudo or a stack
15505 (expand_one_ssa_partition): Deal with params without a default
15506 def. Disregard mode.
15507 * cfgexpand.h: Renamed function declaration.
15508 * tree-ssa-coalesce.c: Adjust.
15509 * function.c (split_complex_args): Allocate stack slot for
15510 unassigned parms before splitting.
15511 (parm_in_unassigned_mem_p): New. Use it instead of
15512 parm_maybe_byref_p throughout this file.
15513 (assign_parm_setup_block): Use it. Accept pseudos in the
15514 expand-assigned rtl.
15515 (assign_parm_setup_reg): Drop BLKmode requirement.
15516 (assign_parm_setup_stack): Allocate and fill in the address of
15517 unassigned MEM parms.
15519 2015-08-19 David Sherwood <david.sherwood@arm.com>
15521 * genmodes.c (emit_mode_unit_size_inline): New function.
15522 (emit_mode_unit_precision_inline): New function.
15523 (emit_insn_modes_h): Emit new #define. Emit new functions.
15524 (emit_mode_unit_size): New function.
15525 (emit_mode_unit_precision): New function.
15526 (emit_mode_adjustments): Add mode_unit_size adjustments.
15527 (emit_insn_modes_c): Emit new arrays.
15528 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
15529 use new inline methods.
15531 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15533 * config/aarch64/aarch64.c (bit_count): Delete prototype
15535 (aarch64_print_operand): Use popcount_hwi instead of the above.
15537 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15539 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
15542 2015-08-19 Marek Polacek <polacek@redhat.com>
15544 PR middle-end/67133
15545 * gimple-ssa-isolate-paths.c
15546 (insert_trap_and_remove_trailing_statements): Rename to ...
15547 (insert_trap): ... this. Don't remove trailing statements; split
15549 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
15551 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
15554 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
15555 conditionalize the whole on __GNUC__. Add fallback code
15556 depending neither on undefined nor implementation-defined behaviour.
15558 2015-08-19 Jiong Wang <jiong.wang@arm.com>
15560 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
15561 whitespaces with tab.
15563 2015-08-19 Florian Weimer <fweimer@redhat.com>
15565 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
15566 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
15567 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
15568 Move Name_Ids instantiation to the Prj.Proc package, to avoid
15571 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15573 * config/arm/arm.c (bounds_check): Use %wd print format
15574 for HOST_WIDE_INT arguments.
15576 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
15578 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
15579 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
15580 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
15581 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
15582 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
15583 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
15584 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
15585 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
15586 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
15589 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
15591 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
15592 function.c, graphite-scop-detection.c, haifa-sched.c,
15593 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
15594 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
15595 varasm.c: Remove typedefs of structs.
15597 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15599 * config/rs6000/altivec.h (vec_adde): New define.
15600 (vec_addec): Likewise.
15601 (vec_double): Likewise.
15602 (vec_bperm): Likewise.
15603 (vec_gb): Likewise.
15604 * config/rs6000/rs6000-builtin.def (ADDE): New
15605 BU_ALTIVEC_OVERLOAD_3.
15607 (DOUBLE): New BU_VSX_OVERLOAD_1.
15608 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
15609 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
15610 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
15611 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
15612 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
15613 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
15614 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
15615 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
15616 and P8V_BUILTIN_VEC_VBPERMQ.
15618 2015-08-18 Jason Merrill <jason@redhat.com>
15620 * print-tree.c (print_node): Handle TREE_BINFO.
15622 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15624 PR middle-end/36757
15625 * builtins.c (expand_builtin_signbit): Add asserts to make sure
15626 we can expand BUILT_IN_SIGNBIT inline.
15627 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
15628 * doc/extend.texi: Document the type-generic __builtin_signbit.
15630 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
15632 PR rtl-optimization/67218
15633 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
15634 (simplify_unary_operation_1): Use it.
15636 2015-08-18 Marek Polacek <polacek@redhat.com>
15638 PR middle-end/67222
15639 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
15640 if the call isn't valid.
15641 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
15642 gimple_call_builtin_p.
15643 (call_may_clobber_ref_p_1): Likewise.
15644 (stmt_kills_ref_p): Likewise.
15646 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
15648 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
15649 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
15650 (mips_hard_regno_scratch_ok): Likewise.
15651 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
15652 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
15654 2015-08-18 Bin Cheng <bin.cheng@arm.com>
15656 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
15657 (determine_value_range): Call refine_value_range_using_guard for
15658 each loop initial condition to improve value range.
15660 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
15662 * config/i386/i386.c: Remove include of fibheap.h.
15664 2015-08-17 Richard Biener <rguenther@suse.de>
15666 PR tree-optimization/67221
15667 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
15668 (sccvn_dom_walker::before_dom_children): Mark backedges of
15669 non-executable blocks as not executable.
15671 2015-08-17 David Sherwood <david.sherwood@arm.com>
15673 * config/arm/arm.c (neon_element_bits): Replace call to
15674 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
15675 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
15676 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
15677 (neon_vdup_lane<mode>): Likewise.
15678 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
15679 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
15680 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
15681 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
15682 * config/spu/spu.c (arith_immediate_p): Likewise.
15683 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
15684 * expr.c (expand_expr_real_2): Likewise.
15685 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
15686 * simplify-rtx.c (simplify_immed_subreg): Likewise.
15687 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
15688 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
15690 * fold-const.c (fold_binary_loc): Replace call to
15691 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
15692 GET_MODE_UNIT_PRECISION (m).
15694 2015-08-17 Mike Stump <mikestump@comcast.net>
15696 * config/arm/arm.c (arm_block_move_unaligned_straight):
15697 Emit normal move instead of unaligned load when source or destination
15698 are appropriately aligned.
15700 2015-08-17 Richard Biener <rguenther@suse.de>
15701 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15703 PR middle-end/16107
15704 * match.pd (div (coss (op @0) : New simplifier.
15706 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
15708 PR rtl-optimization/64164
15710 PR middle-end/66983
15711 PR rtl-optimization/67000
15712 PR middle-end/67034
15713 PR middle-end/67035
15714 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15715 * tree-ssa-copyrename.c: Removed.
15716 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15717 -ftree-coalesce-vars.
15718 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15719 * common.opt (ftree-copyrename): Ignore.
15720 (ftree-coalesce-inlined-vars): Likewise.
15721 * doc/invoke.texi: Remove the ignored options above.
15722 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15723 * tree-ssa-coalesce.h: ... here.
15724 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15725 headers required by it.
15726 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15727 across variables when flag_tree_coalesce_vars. Check register
15728 use and promoted modes to allow coalescing. Do not coalesce
15729 maybe-byref parms with SSA_NAMEs of other variables, or
15730 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
15731 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15732 with its member functions to tree-ssa-coalesce.c.
15733 (var_map_base_init): Likewise. Renamed to
15734 compute_samebase_partition_bases.
15735 (partition_view_normal): Drop want_bases parameter.
15736 (partition_view_bitmap): Likewise.
15737 * tree-ssa-live.h: Adjust declarations.
15738 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
15739 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15740 default defs at the entry point.
15741 (dump_part_var_map): New.
15742 (compute_optimized_partition_bases): New, called by...
15743 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15744 of compute_samebase_partition_bases. Adjust.
15745 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15746 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
15747 (ssa_default_def_partition): New.
15748 (get_rtl_for_parm_ssa_default_def): New.
15749 (align_local_variable, add_stack_var): Support anonymous SSA
15751 (defer_stack_allocation): Likewise. Declare earlier.
15752 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15753 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15754 Do no record deferred-allocation marker in
15755 SA.partition_to_pseudo.
15756 (expand_stack_vars): Adjust check for the marker in it.
15757 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15758 redundant MEM attr setting.
15759 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15761 (expand_one_stack_var): ... this. New wrapper to check and
15762 skip already expanded SSA partitions.
15763 (record_alignment_for_reg_var): New, factored out of...
15764 (expand_one_var): ... this.
15765 (expand_one_ssa_partition): New.
15766 (adjust_one_expanded_partition_var): New.
15767 (expand_one_register_var): Check and skip already expanded SSA
15769 (expand_used_vars): Don't create DECLs for anonymous SSA
15770 names. Expand all SSA partitions, then adjust all SSA names.
15771 (pass::execute): Replace the loops that set
15772 SA.partition_to_pseudo from partition leaders and cleared
15773 DECL_RTL for multi-location variables, and that which used to
15774 rename vars and set attrs, with one that clears DECL_RTL and
15775 checks that PARMs and RESULTs default_defs match DECL_RTL.
15776 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15777 * emit-rtl.c: Include stor-layout.h.
15778 (set_reg_attrs_for_parm): Handle NULL decl.
15779 (set_reg_attrs_for_decl_rtl): Take mode from expression if
15781 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
15782 rather than its possibly-NULL DECL.
15783 * explow.c (promote_ssa_mode): New.
15784 * explow.h (promote_ssa_mode): Declare.
15785 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15786 (read_complex_part): Export.
15787 * expr.h (read_complex_part): Declare.
15788 * cfgexpand.h (parm_maybe_byref_p): Declare.
15789 * function.c: Include cfgexpand.h.
15790 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15791 (use_register_for_parm_decl): Wrapper for the above to
15792 special-case the result_ptr.
15793 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15794 (split_complex_args): Take assign_parm_data_all argument.
15795 Pass it to rtl_for_parm. Set up rtl and context for split
15796 args. Reset complex parm before fetching its default decl
15798 (assign_parms_unsplit_complex): Use the default-def complex
15799 parm rtl if it matches the components.
15800 (assign_parms_augmented_arg_list): Adjust.
15801 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15802 multiple locations. Recognize split complex args.
15803 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15804 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15805 (assign_parm_setup_block): Prefer SSA-assigned location, and
15806 fill in its address if the memory location of a maybe-byref
15807 parm was not assigned by cfgexpand.
15808 (assign_parm_setup_reg): Likewise. Adjust its mode as
15809 needed. Use entry_parm for equiv if stack_parm is NULL. Make
15810 sure passed_pointer parms don't need conversion. Copy address
15811 or value as needed.
15812 (assign_parm_setup_stack): Prefer SSA-assigned location.
15813 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15814 rtl before testing for pointer bounds. Special-case result_ptr.
15815 (expand_function_start): Maybe reset DECL_RTL of result.
15816 Prefer SSA-assigned location for result and static chain.
15817 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
15818 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
15819 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15820 anonymous SSA names. Use promote_ssa_mode.
15821 (get_temp_reg): Likewise.
15822 (remove_ssa_form): Adjust.
15823 * stor-layout.c (layout_decl): Don't set mem attributes of
15825 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15826 and get its reg_usage for reg invalidation.
15827 (compute_bb_dataflow): Pass it insn.
15828 (emit_notes_in_bb): Likewise.
15830 2015-08-14 Marek Polacek <polacek@redhat.com>
15832 * tree-core.h (tree_base): Fix typo.
15834 2015-08-14 Marek Polacek <polacek@redhat.com>
15836 PR middle-end/67133
15837 * gimple.c (infer_nonnull_range_by_attribute): Check that the
15838 nonnull argument position is not outside function arguments.
15840 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
15843 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
15844 'lconst_atomic' with 'const_atomic'.
15845 (atomic_fetch_<optab><mode>): Likewise.
15846 (atomic_<optab>_fetch<mode>): Likewise.
15847 * config/aarch64/iterators.md (lconst-atomic): Move below
15849 (const_atomic): New.
15851 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
15852 Bernd Schmidt <bernds@codesourcery.com>
15854 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
15856 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
15857 (DWARF2_DEBUGGING_INFO): Don't define.
15858 * debug.h (dwarf2_lineno_debug_hooks): Declare.
15859 * toplev.c (process_options): Add a case for it.
15860 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
15861 (dwarf2out_init): Skip most initializations if
15862 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
15864 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
15865 DWARF2_LINENO_DEBUGGING_INFO.
15866 * opts.c (set_debug_level): Likewise.
15868 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
15870 * config/arm/types.md (is_neon_type): Add missing types.
15872 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
15874 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
15876 * config/i386/i386.c (PTA_SKYLAKE): New macros.
15877 (processor_alias_table): Add skylake description.
15878 (enum processor_model): Add skylake processor.
15879 (arch_names_table): Add skylake record.
15880 * doc/invoke.texi: Add skylake item.
15882 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
15884 * ira-int.h: Include recog.h.
15885 * ira-build.c: Don't include recog.h.
15886 * ira-color.c: Likewise.
15887 * ira-conflicts.c: Likewise.
15888 * ira-costs.c: Likewise.
15889 * ira-emit.c: Likewise.
15890 * ira-lives.c: Likewise.
15892 * sched-deps.c: Likewise.
15893 * sel-sched.c: Likewise.
15894 * target-globals.c: Likewise.
15896 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
15899 * reload1.c (elimination_costs_in_insn): Make it obvious to the
15900 compiler that the n_dups and n_operands loop bounds are invariant.
15902 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15904 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
15905 expressions in A and B.
15907 2015-08-13 Richard Biener <rguenther@suse.de>
15909 * tree.c (nonnull_arg_p): Move from ...
15910 * tree-vrp.c (nonnull_arg_p): ... here.
15911 * tree.h (nonnull_arg_p): Declare.
15912 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
15913 here, register ptr != 0 for nonnull_arg_p pointer arguments.
15914 Properly initialize static chain and by-reference result pointer.
15915 (run_scc_vn): Adjust.
15917 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
15919 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
15922 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
15924 * config/aarch64/aarch64-protos.h
15925 (aarch64_gen_atomic_cas): Declare.
15926 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
15927 Choose appropriate instruction pattern for the target.
15928 (aarch64_gen_atomic_cas): New.
15929 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
15930 (atomic_compare_and_swap<mode>_1): Rename to
15931 aarch64_compare_and_swap<mode>. Fix some indentation.
15932 (aarch64_compare_and_swap<mode>_lse): New.
15933 (aarch64_atomic_cas<mode>): New.
15935 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
15937 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
15940 2015-08-13 Richard Biener <rguenther@suse.de>
15942 PR tree-optimization/67191
15943 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
15944 assert we value-numbered last stmts operand because it can validly
15945 trigger for unreachable code.
15947 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15949 PR rtl-optimization/67103
15950 * ifcvt.c (noce_try_store_flag_constants): Move
15951 x = (-(test != 0) & (b - a)) + a transformation to...
15952 (noce_try_cmove): ... Here. Try it if normal conditional
15955 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
15957 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
15959 * config/mips/mips.md (processor): Remove w32 and w64.
15961 2015-08-13 Richard Biener <rguenther@suse.de>
15963 PR tree-optimization/66502
15964 PR tree-optimization/67167
15965 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
15966 backedge arguments.
15967 (vn_phi_lookup): Adjust.
15968 (vn_phi_insert): Likewise.
15969 (visit_phi): Prefer to value-number to another PHI node
15970 over value-numbering to a PHI argument.
15971 (init_scc_vn): Mark DFS back edges.
15973 2015-08-13 Richard Biener <rguenther@suse.de>
15975 * gimple.h (gcall::code_): New constant static member.
15976 (gcond::code_): Likewise.
15977 * gimple.c (gcall::code_): Define.
15978 (gcond::code_): Likewise.
15979 (is_a_helper <const gcond *>): Add.
15980 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
15981 and forward to a new gcall overload with less checking and a
15982 cheaper way to access the operand.
15983 (gimple_call_lhs_ptr): Likewise.
15984 (gimple_call_set_lhs): Likewise.
15985 (gimple_call_internal_p): Likewise.
15986 (gimple_call_with_bounds_p): Likewise.
15987 (gimple_call_set_with_bounds): Likewise.
15988 (gimple_call_internal_fn): Likewise.
15989 (gimple_call_set_ctrl_altering): Likewise.
15990 (gimple_call_ctrl_altering_p): Likewise.
15991 (gimple_call_fntype): Likewise.
15992 (gimple_call_fn): Likewise.
15993 (gimple_call_fn_ptr): Likewise.
15994 (gimple_call_set_fndecl): Likewise.
15995 (gimple_call_fndecl): Likewise.
15996 (gimple_call_chain): Likewise.
15997 (gimple_call_num_args): Likewise.
15998 (gimple_call_arg): Likewise.
15999 (gimple_call_arg_ptr): Likewise.
16000 (gimple_call_set_arg): Likewise.
16001 (gimple_call_noreturn_p): Likewise.
16002 (gimple_cond_code): Likewise.
16003 (gimple_cond_lhs): Likewise.
16004 (gimple_cond_rhs): Likewise.
16005 (gimple_has_lhs): Reduce checking.
16007 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16009 PR middle-end/25529
16010 * match.pd (div (mult @0 @1) @1) : New simplifier.
16012 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16015 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
16016 predicate to allow construction of vector constants using the
16017 VSLDOI vector shift instruction.
16019 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
16022 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
16023 the number of bytes to be shifted left and filled in with either
16024 all zero or all one bits.
16025 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
16027 (output_vec_const_move): On power8, generate XXLORC to generate
16028 a vector constant with all 1's. Do a split if we need to use a
16029 VSLDOI instruction.
16031 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
16032 properly test for the MSB.
16034 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
16035 vector constants that can be created with VSLDOI.
16037 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
16040 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16041 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16042 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16043 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16044 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16045 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16046 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16047 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16048 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16050 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
16052 * config/xtensa/constraints.md (define_constraint "Y"): New
16054 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
16055 * config/xtensa/linux.h (ASM_SPEC): Likewise.
16056 * config/xtensa/predicates.md (move_operand): Match constants
16057 and symbols in the presence of TARGET_AUTO_LITPOOLS.
16058 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
16059 immediate references to TLS data.
16060 (xtensa_emit_move_sequence): Don't force constants to memory in
16061 the presence of TARGET_AUTO_LITPOOLS.
16062 (print_operand): Add 'y' format, same as default, but capable of
16063 printing SF mode constants as well.
16064 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
16065 (movsf_internal): Add movi pattern that loads literal.
16066 (movsf, movdf): Don't force constants to memory in the presence
16067 of TARGET_AUTO_LITPOOLS.
16068 (movdf_internal): Add 'Y' constraint.
16069 * config/xtensa/xtensa.opt (mauto-litpools): New option.
16070 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
16072 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
16074 * config/arm/arm-fpus.def: Replace booleans with feature flags.
16076 * config/arm/arm.c (ARM_FPU): Update macro.
16077 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
16078 (TARGET_FP16): Likewise.
16079 (TARGET_CRYPTO): Likewise.
16080 (TARGET_NEON): Likewise.
16081 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
16084 2015-08-12 Tom de Vries <tom@codesourcery.com>
16088 * doc/install.texi: Remove --with_host_libstdcxx item. Update
16089 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
16090 accordingly. Mention default for --with-stage1-ldflags.
16092 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
16094 * config/arm/arm.h (arm_fpu_feature_set): New.
16095 (ARM_FPU_FSET_HAS): New.
16096 (FPU_FL_NONE): New.
16097 (FPU_FL_NEON): New.
16098 (FPU_FL_FP16): New.
16099 (FPU_FL_CRYPTO): New.
16101 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16103 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
16104 after -mcmodel=large -fPIC sorry.
16106 2015-08-12 Richard Biener <rguenther@suse.de>
16108 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
16109 comparison operand order and commutative ternary op operand order.
16110 (sccvn_dom_walker::cond_stack): New state to track temporary
16112 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
16114 (sccvn_dom_walker::record_cond): Add a single temporary conditional
16116 (sccvn_dom_walker::record_conds): Add a temporary conditional
16117 expressions and all related expressions also true/false.
16118 (sccvn_dom_walker::before_dom_children): Record temporary
16119 expressions based on the controlling condition of a single
16120 predecessor. When trying to simplify a conditional statement
16121 lookup expressions we might have inserted earlier.
16123 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
16126 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
16127 to ARM core registers.
16129 2015-08-12 Nathan Sidwell <nathan@acm.org>
16131 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
16132 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
16134 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
16136 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
16137 line with comments.
16138 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
16140 2015-08-12 Richard Biener <rguenther@suse.de>
16142 * gimple.h (remove_pointer): New trait.
16143 (GIMPLE_CHECK2): New inline template function.
16144 (gassign::code_): New constant static member.
16145 (is_a_helper<const gassign *>): Add.
16146 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
16147 and forward to a new gassign overload with less checking and a
16148 cheaper way to access the operand.
16149 (gimple_assign_lhs_ptr): Likewise.
16150 (gimple_assign_set_lhs): Likewise.
16151 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
16153 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
16155 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
16157 (gimple_assign_rhs_code): Likewise.
16158 * gimple.c (gassign::code_): Define.
16160 2015-08-12 Richard Biener <rguenther@suse.de>
16162 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16163 Eliminate edges marked as not executable by SCCVN.
16164 * tree-ssa-sccvn.c: Include gimple-iterator.h.
16165 (cond_dom_walker): Rename to sccvn_dom_walker.
16166 (sccvn_dom_walker::before_dom_children): Value-number defs
16168 (run_scc_vn): Remove loop value-numbering all SSA names.
16169 Drop not visited SSA names to varying.
16171 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
16173 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16174 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16175 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16176 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16177 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16178 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16179 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16180 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16181 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16183 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
16186 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
16187 to enum feature_priority and feature_list.
16188 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
16189 and isa_names_table.
16191 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
16193 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
16194 vect_induction_def.
16196 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16200 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
16201 account when deciding what was the command-line status.
16203 2015-08-11 Nathan Sidwell <nathan@acm.org>
16205 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
16207 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
16208 we're not the only contributor to target phi.
16210 2015-08-11 Jiong Wang <jiong.wang@arm.com>
16212 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
16215 2015-08-11 Tom de Vries <tom@codesourcery.com>
16217 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
16219 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
16221 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
16223 * config/i386/i386.md (cpu): Remove knl.
16225 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
16228 PR middle-end/66332
16229 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
16230 open-coded sequence.
16231 * omp-low.c (oacc_process_reduction_data): Remove handline of
16232 GOMP_DEVICE_HOST_NONSHM.
16234 * lto-streamer-in.c (lto_input_mode_table): Adjust to
16235 GET_MODE_INNER changes.
16237 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
16238 Ilya Verbin <ilya.verbin@intel.com>
16240 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
16242 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
16244 * doc/options.texi (EnabledBy): Document that the argument must be
16246 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
16247 Not enabled by -Wall.
16248 * optc-gen.awk: Give nicer error messages. Detect if the argument
16249 of EnabledBy is not a Common option.
16250 * common.opt (Wnull-dereference): Not enabled by -Wall.
16251 * opt-functions.awk (lang_enabled_by): Nicer error messages.
16253 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
16255 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
16256 model == 0x4f as Broadwell.
16258 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16260 PR rtl-optimization/67028
16261 * combine.c (simplify_comparison): Fix comment. Rearrange code.
16262 Add test to see if a const_int fits in the new mode.
16264 2015-08-07 DJ Delorie <dj@redhat.com>
16266 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
16268 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
16270 PR rtl-optimization/67029
16271 * ira-color.c: Include "recog.h" before including "ira-int.h".
16272 * target-globals.c: Likewise.
16273 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
16274 adds an alternative_mask argument and use it instead of
16275 preferred_alternatives.
16276 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
16277 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
16278 * sched-deps.c: Include "ira-int.h" after including "ira.h".
16279 (sched_analyze_insn): Update call to
16280 ira_implicitly_set_insn_hard_regs.
16281 * sel-sched.c: Include "ira-int.h" after including "ira.h".
16282 (implicit_clobber_conflict_p): Update call to
16283 ira_implicitly_set_insn_hard_regs.
16285 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
16287 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
16289 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
16292 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
16293 currently_expanding_to_rtl is set.
16295 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
16297 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
16298 * configure: Regenerate.
16300 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16301 Jiong Wang <jiong.wang@arm.com>
16303 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
16304 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
16305 (REG_CLASS_NAMES): Likewise.
16306 (REG_CLASS_CONTENTS): Likewise.
16307 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
16308 (aarch64_register_move_cost): Likewise.
16309 (aarch64_load_symref_appropriately): Invoke the new added pattern if
16311 * config/aarch64/constraints.md (Uc0): New constraint.
16313 2015-08-06 Jiong Wang <jiong.wang@arm.com>
16315 * config/aarch64/constraints.md (Usf): Add the test of
16316 aarch64_is_noplt_call_p.
16318 2015-08-06 Jiong Wang <jiong.wang@arm.com>
16320 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
16322 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
16323 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
16324 (call_symbol): Likewise.
16326 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
16328 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
16329 for vectorizing multiplication patterns.
16330 * tree-vectorizer.h: Adjust the number of patterns.
16332 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
16334 * config/i386/sse.md (*vec_concatv2df): Declare added
16335 alternatives as sselog type.
16337 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16339 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
16342 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16344 * config/s390/s390.c (s390_expand_tbegin): Expand either
16345 tbegin_1_z13 or tbegin_1 depending on VX flag.
16346 * config/s390/s390.md ("tbegin_1_z13"): New expander.
16348 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16350 * config/s390/s390.opt: Clarify description for -mzvector
16351 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
16354 2015-08-06 Richard Biener <rguenther@suse.de>
16356 * gimple.h (gimple_call_set_fn): Access op member directly.
16357 (gimple_call_chain_ptr): Likewise.
16358 (gimple_call_set_chain): Likewise.
16359 (gimple_cond_lhs_ptr): Likewise.
16360 (gimple_cond_set_lhs): Likewise.
16361 (gimple_cond_rhs_ptr): Likewise.
16362 (gimple_cond_set_rhs): Likewise.
16363 (gimple_cond_true_label): Likewise.
16364 (gimple_cond_set_true_label): Likewise.
16365 (gimple_cond_set_false_label): Likewise.
16366 (gimple_cond_false_label): Likewise.
16367 (gimple_label_label): Likewise.
16368 (gimple_label_set_label): Likewise.
16369 (gimple_goto_set_dest): Likewise.
16370 (gimple_asm_input_op): Likewise.
16371 (gimple_asm_input_op_ptr): Likewise.
16372 (gimple_asm_set_input_op): Likewise.
16373 (gimple_asm_output_op): Likewise.
16374 (gimple_asm_output_op_ptr): Likewise.
16375 (gimple_asm_set_output_op): Likewise.
16376 (gimple_asm_clobber_op): Likewise.
16377 (gimple_asm_set_clobber_op): Likewise.
16378 (gimple_asm_label_op): Likewise.
16379 (gimple_asm_set_label_op): Likewise.
16380 (gimple_switch_index): Likewise.
16381 (gimple_switch_index_ptr): Likewise.
16382 (gimple_return_retval_ptr): Likewise.
16383 (gimple_return_retval): Likewise.
16384 (gimple_return_set_retval): Likewise.
16385 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
16386 (gimple_switch_label): Likewise.
16387 (gimple_switch_set_label): Likewise.
16389 2015-08-06 Richard Biener <rguenther@suse.de>
16391 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
16392 bool comparison canonicalization and restrict to integers.
16394 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
16396 * coretypes.h (enum symbol_visibility): Relocate here.
16397 * flag-types.h (enum symbol_visibility): Remove.
16398 * tree-core.h (enum symbol_visibility): Remove.
16400 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
16403 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
16404 for no_split_stack function attribute along with
16406 (rs6000_expand_split_stack_prologue): Likewise.
16408 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
16409 Jeff Law <law@redhat.com>
16412 * doc/invoke.texi (Wnull-dereference): New.
16413 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
16414 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
16415 Warn for potential NULL dereferences.
16416 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
16417 * ubsan.c (instrument_nonnull_arg): Call
16418 infer_nonnull_range_by_attribute.
16419 (instrument_nonnull_return): Likewise.
16420 * common.opt (Wnull-dereference); New.
16421 * gimple.c (infer_nonnull_range): Remove bool arguments.
16422 (infer_nonnull_range_by_dereference): New.
16423 (infer_nonnull_range_by_attribute): New.
16424 * gimple.h: Update declarations.
16426 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16428 * gensupport.c (sequence_num): Replace with...
16429 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
16430 ...these new variables.
16431 (init_rtx_reader_args_cb): Update accordingly.
16432 (get_num_code_insns): Likewise.
16433 (read_md_rtx): Rework to use a while loop and get_c_test.
16434 Use the new counters. Remove redundant DEFINE_SUBST case.
16435 * genoutput.c (gen_split): Delete.
16436 (main): Don't call it.
16438 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16440 * gensupport.h (get_c_test): Declare.
16441 * gensupport.c (get_c_test): New function.
16442 * genconditions.c (main): Use it.
16443 * genrecog.c (validate_pattern): Likewise.
16444 (match_pattern_1): Likewise. Remove c_test argument.
16445 (match_pattern): Update accordingly and remove c_test argument.
16446 (main): Update accordingly.
16448 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16450 * gensupport.h (get_num_insn_codes): Declare.
16451 * gensupport.c (get_num_insn_codes): New function.
16452 * genattrtab.c (optimize_attrs): Rename max_insn_code to
16454 (main): Likewise. Use get_num_insn_codes.
16455 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
16457 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16459 PR middle-end/66311
16460 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
16461 is zero- rather than sign-extended.
16463 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16465 * target-insns.def (can_extend): Delete.
16467 2015-08-05 Richard Biener <rguenther@suse.de>
16469 PR tree-optimization/67121
16470 * tree-if-conv.c (combine_blocks): Clear range-info produced
16471 by stmts no longer executed conditionally.
16473 2015-08-05 Nick Clifton <nickc@redhat.com>
16475 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
16476 to allow identical far pointers to remain.
16478 2015-08-05 Richard Biener <rguenther@suse.de>
16480 PR middle-end/67120
16481 * match.pd: Compare address bases with == if they are decls
16482 or SSA names, not operand_equal_p. Otherwise fail.
16484 2015-08-05 Richard Biener <rguenther@suse.de>
16486 PR tree-optimization/67055
16487 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
16490 * g++.dg/torture/pr67055.C: New testcase.
16492 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
16494 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
16496 (define_attr "enabled"): Handle avx521vl and noavx512vl.
16497 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
16498 AVX-512 alternative out of SSE.
16499 (define_insn "*vec_concatv2df"): Ditto.
16501 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
16503 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
16504 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
16505 CODE_FOR_avx_ptestv4di.
16506 * config/i386/sse.md (define_mode_iterator V_AVX): New.
16507 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
16508 (define_insn "avx_ptest256"): Merge this ...
16509 (define_insn "sse4_1_ptest"): And this ...
16510 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
16512 2015-08-05 Richard Biener <rguenther@suse.de>
16514 PR tree-optimization/67109
16515 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
16516 against too big groups. Print whether this is a load or store
16517 group. Rename from ...
16518 (vect_analyze_group_access): ... this which is now a wrapper
16519 dissolving an invalid group.
16520 (vect_analyze_data_ref_accesses): Print whether this is a load
16523 2015-08-05 Richard Biener <rguenther@suse.de>
16525 PR middle-end/67107
16526 * match.pd: Guard const_binop result checking against NULL_TREE
16529 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
16531 * cse.c (cse_insn): Restoring old behaviour for src_eqv
16532 when dest and value in the REG_EQUAL are same and dest
16533 is STRICT_LOW_PART.
16535 2015-08-04 Anatoly Sokolov <aesok@post.ru>
16537 * config/moxie/moxie.h (PRINT_OPERAND,
16538 PRINT_OPERAND_ADDRESS): Remove macros.
16539 * config/moxie/moxie-protos.h (moxie_print_operand,
16540 moxie_print_operand_address): Remove declaration.
16541 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
16542 TARGET_PRINT_OPERAND_ADDRESS): Define.
16543 (moxie_print_operand, moxie_print_operand_address): Make static.
16545 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16548 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
16549 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
16551 2015-08-04 Richard Biener <rguenther@suse.de>
16553 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
16555 (dt_operand::gen_gimple_expr): Adjust.
16557 2015-08-04 Richard Biener <rguenther@suse.de>
16559 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
16560 bool compares on RHS.
16561 * match.pd: Add X ==/!= !X is false/true pattern.
16563 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
16565 * config/aarch64/aarch64.c: Change inner loop statement cost
16566 to be consistent with other targets.
16568 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
16570 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
16573 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
16575 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
16576 (machine_function): Remove pseudos field.
16578 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16580 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16581 Exit early and use target_option_current_node if processing current
16584 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16586 * doc/extend.texi (AArch64 Function Attributes): New node.
16587 (AArch64 Pragmas): Likewise.
16589 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16591 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16592 Initialize simd builtins if TARGET_SIMD.
16593 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
16594 Make sure that the builtins are initialized only once no matter how
16595 many times the function is called.
16596 (aarch64_init_builtins): Unconditionally initialize crc builtins.
16597 (aarch64_relayout_simd_param): New function.
16598 (aarch64_simd_expand_args): Use above during argument expansion.
16599 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
16600 simd builtins if TARGET_SIMD.
16601 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
16603 (aarch64_relayout_simd_types): Likewise.
16605 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16607 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
16608 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
16609 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
16610 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16612 (aarch64_reset_previous_fndecl): New function.
16613 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
16615 * config/aarch64/aarch64-c.c: New file.
16616 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
16617 Push and pop options at beginning and end. Remove ifdef
16618 __ARM_FEATURE_CRC32.
16619 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
16620 Add pragma +nothing+simd and +nothing+crypto where appropriate.
16621 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
16622 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
16624 (aarch64_register_pragmas): Likewise.
16625 (aarch64_reset_previous_fndecl): Likewise.
16626 (aarch64_process_target_attr): Likewise.
16627 (aarch64_override_options_internal): Likewise.
16629 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16631 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
16633 (aarch64_can_inline_p): Likewise.
16634 (TARGET_CAN_INLINE_P): Define.
16636 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16638 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
16639 Remove static. Handle OPT_mgeneral_regs_only,
16640 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
16641 OPT_momit_leaf_frame_pointer.
16642 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
16643 (aarch64_attr_opt_type): New enum.
16644 (aarch64_attribute_info): New struct.
16645 (aarch64_handle_attr_arch): New function.
16646 (aarch64_handle_attr_cpu): Likewise.
16647 (aarch64_handle_attr_tune): Likewise.
16648 (aarch64_handle_attr_isa_flags): Likewise.
16649 (aarch64_attributes): New table.
16650 (aarch64_process_one_target_attr): New function.
16651 (num_occurences_in_str): Likewise.
16652 (aarch64_process_target_attr): Likewise.
16653 (aarch64_option_valid_attribute_p): Likewise.
16654 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16655 * config/aarch64/aarch64-protos.h: Include input.h
16656 (aarch64_handle_option): Declare prototype.
16658 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16660 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
16661 * config/aarch64/aarch64.c: Include target-globals.h
16662 (aarch64_previous_fndecl): New variable.
16663 (aarch64_set_current_function): New function.
16664 (TARGET_SET_CURRENT_FUNCTION): Define.
16666 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16668 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
16669 (explicit_arch): Likewise.
16670 (x_aarch64_isa_flags): Likewise.
16671 (mgeneral-regs-only): Mark as Save.
16672 (mfix-cortex-a53-835769): Likewise.
16673 (mcmodel=): Likewise.
16674 (mstrict-align): Likewise.
16675 (momit-leaf-frame-pointer): Likewise.
16676 (mtls-dialect): Likewise.
16677 (master=): Likewise.
16678 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
16679 (aarch64_isa_flags): Remove extern declaration.
16680 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
16681 to indicate success or failure.
16682 (aarch64_validate_march): Likewise.
16683 (aarch64_validate_mtune): Likewise.
16684 (aarch64_isa_flags): Delete.
16685 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
16686 instead of aarch64_isa_flags.
16687 (aarch64_get_tune_cpu): New function.
16688 (aarch64_get_arch): Likewise.
16689 (aarch64_override_options): Use above and set up explicit_tune_core
16691 (aarch64_print_extension): Move earlier in file. Add isa_flags
16692 argument and use that instead of the global aarch64_isa_flags.
16693 (aarch64_option_save): New function.
16694 (aarch64_option_restore): Likewise.
16695 (aarch64_option_print): Likewise.
16696 (aarch64_declare_function_name): Likewise.
16697 (aarch64_start_file): Delete.
16698 (TARGET_ASM_FILE_START): Do not define.
16699 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
16700 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
16703 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16705 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
16706 flag_omit_leaf_frame_pointer to 2.
16708 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16710 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
16712 (TARGET_FIX_ERR_A53_835769): New macro.
16713 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16714 handling of opts->x_aarch64_fix_a53_err835769.
16715 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
16716 than aarch64_fix_a53_err835769.
16717 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
16718 * config/aarch64/aarch64-linux.h: Likewise.
16720 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
16722 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
16723 ix86_expand_int_movcc as boolean.
16725 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16727 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
16728 (aarch64_cpu_string): Likewise.
16729 (aarch64_tune_string): Likewise.
16730 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
16731 (aarch64_parse_extension): Return aarch64_parse_opt_result.
16732 Add extra argument to put result into.
16733 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
16734 (aarch64_parse_cpu): Add arguments to put results into. Return
16735 aarch64_parse_opt_result.
16736 (aarch64_parse_tune): Likewise.
16737 (aarch64_override_options_after_change_1): New function.
16738 (aarch64_override_options_internal): New function.
16739 (aarch64_validate_mcpu): Likewise.
16740 (aarch64_validate_march): Likewise.
16741 (aarch64_validate_mtune): Likewise.
16742 (aarch64_override_options): Update to reflect above changes.
16743 Move some logic into aarch64_override_options_internal.
16744 Initialize target_option_default_node and target_option_current_node.
16745 (aarch64_override_options_after_change): Move logic into
16746 aarch64_override_options_after_change_1 and call it with global_options.
16747 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
16748 flag values from that.
16750 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16752 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16753 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
16754 * config/aarch64/aarch64.c (struct processor): Add arch field.
16755 (all_architectures): Handle above, move above all_cores.
16756 (all_cores): Handle above.
16757 (aarch64_parse_arch): Handle above changes.
16758 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
16759 above. Update comments.
16760 (armv8.1-a): Likewise.
16761 * config/aarch64/aarch64-cores.def: Update according to above.
16762 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
16763 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
16764 aarch64_arch_driver_info.
16766 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16768 * config/aarch64/aarch64.c (struct processor): Add ident field.
16769 Rename core sched_core.
16770 (all_cores): Handle above changes.
16771 (all_architectures): Likewise.
16772 (aarch64_parse_arch): Likewise.
16773 (aarch64_override_options): Likewise.
16775 2015-08-04 Richard Biener <rguenther@suse.de>
16777 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16778 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
16779 comparisons embedded in [VEC_]COND_EXPRs.
16781 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
16783 * tree-if-conv.c: Fix various typos in comments.
16784 * tree-vect-stmts.c: Likewise.
16786 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
16788 PR tree-optimization/67043
16789 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
16790 preheader after hoisting invariant in it.
16791 (find_defs): Force recomputation of all luids.
16793 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
16795 * config/rs6000/htm.md (tabort.): Restrict the source operand to
16796 using a base register.
16798 2015-08-03 David Malcolm <dmalcolm@redhat.com>
16800 * main.c (main): Pass in NULL for toplev's external_timer.
16801 * timevar.c: Include coretypes.h.
16802 (class timer::named_items): New.
16803 (timer::named_items::named_items): New.
16804 (timer::named_items::~named_items): New.
16805 (timer::named_items::push): New.
16806 (timer::named_items::pop): New.
16807 (timer::named_items::print): New.
16808 (timer::timer): Initialize field "m_jit_client_items".
16809 (timer::~timer): New.
16810 (timer::push): Move bulk of implementation to...
16811 (timer::push_internal): ...here. New function.
16812 (timer::pop): Move bulk of implementation to...
16813 (timer::pop_internal): ...here. New function.
16814 (timer::push_client_item): New.
16815 (timer::pop_client_item): New.
16816 (timer::print_row): New function, taken from timer::print.
16817 (timer::print): Print "GCC items" header if we also have client
16818 items. Move row-printing to timer::print_row. Print any client
16820 (timer::get_topmost_item_name): New method.
16821 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
16822 (TV_JIT_CLIENT_CODE): New.
16823 * timevar.h (timer::push_client_item): New declaration.
16824 (timer::pop_client_item): New declaration.
16825 (timer::get_topmost_item_name): New method.
16826 (timer::push_internal): New declaration.
16827 (timer::pop_internal): New declaration.
16828 (timer::print_row): New declaration.
16829 (timer::named_items): New declaration.
16830 (timer::m_jit_client_items): New field.
16831 (timer): Add friend class named_items.
16832 (auto_timevar::auto_timevar): Add timer param.
16833 (auto_timevar::~auto_timevar): Use field "m_timer".
16834 (auto_timevar::m_timer): New field.
16835 * toplev.c (initialize_rtl): Add g_timer as param when
16836 constructing auto_timevar instance.
16837 (toplev::toplev): Add "external_timer" param, and use it to
16838 initialize the "g_timer" global if non-NULL.
16839 (toplev::~toplev): If this created "g_timer", delete it.
16840 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
16841 with "external_timer" timer *.
16843 2015-08-03 Alexander Basov <coohpt@gmail.com>
16845 PR middle-end/64744
16846 PR middle-end/48470
16847 PR middle-end/43404
16848 * cfgexpand.c (expand_one_var): Add check if stack is going to
16849 be used in naked function.
16850 * expr.c (expand_expr_addr_expr_1): Remove excess checking
16851 whether expression should not reside in MEM.
16852 * function.c (use_register_for_decl): Do not use registers for
16853 non-register things (volatile, float, BLKMode) in naked functions.
16855 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
16858 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
16859 Adjust splits to match new pattern.
16861 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16863 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
16866 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
16867 point in VSX registers.
16869 * config/rs6000/constraints.md (wb constraint): Document unused
16871 (we constraint): Likewise.
16872 (wo constraint): Likewise.
16873 (wp constraint): New constraint for IEEE 128-bit floating point in
16875 (wq constraint): Likewise.
16877 * config/rs6000/predicates.md (easy_fp_constant): Add support for
16878 IEEE 128-bit floating point in VSX registers.
16879 (easy_scalar_constant): Likewise.
16881 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
16882 constraints (wp, wq) for IEEE 128-bit floating point in VSX
16884 (rs6000_init_hard_regno_mode_ok): Likewise.
16886 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
16887 floating point in VSX registers.
16890 (VSX_M2): Likewise.
16896 (vsx_le_permute_<mode>): Add support to properly swap bytes for
16897 IEEE 128-bit floating point in VSX registers on little endian.
16898 (vsx_le_undo_permute_<mode>): Likewise.
16899 (vsx_le_perm_load_<mode>): Likewise.
16900 (vsx_le_perm_store_<mode>): Likewise.
16901 (splitters for IEEE 128-bit fp moves): Likewise.
16903 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
16906 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
16907 floating point in VSX registers.
16910 * doc/md.text (Machine Constraints): Document wp and wq
16911 constraints on PowerPC.
16913 2015-08-03 Jeff Law <law@redhat.com>
16915 PR middle-end/66314
16916 PR gcov-profile/66899
16917 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
16918 iterate over the jump threading paths when an element in the
16919 jump threading paths array is eliminated.
16921 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
16923 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
16925 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
16927 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
16928 is_use_properly_guarded the variable def_preds. Free its
16929 contents before returning.
16930 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
16931 (is_use_properly_guarded): Replace local variable def_preds with
16932 a parameter. Adjust accordingly. Only update *def_preds if it's
16935 2015-08-03 Richard Biener <rguenther@suse.de>
16937 * genmatch.c (simplify::for_subst_vec): New member.
16938 (binary_ok): New helper for for lowering.
16939 (lower_for): Delay substituting operators into result expressions
16940 if we can merge the results eventually again.
16941 (capture_info::walk_result): Adjust for user_id appearing as
16942 result expression operator.
16943 (expr::gen_transform): Likewise.
16944 (dt_simplify::gen_1): Likewise.
16945 (dt_simplify::gen): Pass not substituted operators to tail
16946 functions or initialize local variable with it.
16947 (decision_tree::gen): Adjust function signature.
16948 * match.pd: Fix tests against global code and add default
16949 cases to switch stmts.
16951 2015-08-03 Richard Biener <rguenther@suse.de>
16953 * genmatch.c (dt_simplify::gen): Create captures array
16954 with an initializer.
16956 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16958 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
16959 the host compiler is affected by placement new aliasing bug.
16960 * configure: Regenerate.
16961 * Makefile.in (ALIASING_FLAGS): New variable.
16962 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
16964 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16967 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
16968 (negmulsf3_vfp): Likewise.
16969 (muldf3negdf_vfp): Disable for -frounding-math.
16970 (mulsf3negsf_vfp): Likewise.
16971 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
16972 fix MULT cost with -frounding-math.
16974 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16976 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
16977 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
16978 explicit. Prefer to add the flag whenever possible.
16979 (noce_process_if_block): Try noce_try_store_flag_constants before
16982 2015-08-03 Richard Biener <rguenther@suse.de>
16984 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
16985 New hash-map to record equivalent transforms.
16986 (dt_node::analyze): Populate the equivalent transforms hash-map.
16987 (dt_simplify::info): Add reference to hash-map entry.
16988 (dt_simplify::gen): If we have split out a function for the
16989 transform, generate a call to it.
16990 (sinfo_hashmap_traits::hash): New function.
16991 (compare_op): New helper function for ...
16992 (sinfo_hashmap_traits::equal_keys): ... this new function.
16993 (decision_tree::gen): Split out common equivalent transforms
16996 2015-08-03 Richard Biener <rguenther@suse.de>
16998 * gimple-fold.c (fold_gimple_assign): Remove folding of
16999 the comparison in COND_EXPRs.
17001 2015-08-03 Richard Biener <rguenther@suse.de>
17003 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
17004 on the rhs of assignments first simplify the embedded
17007 2015-08-03 Richard Biener <rguenther@suse.de>
17009 PR tree-optimization/66917
17010 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
17012 (DR_VECT_AUX): New macro.
17013 (set_dr_misalignment): Adjust.
17014 (dr_misalignment): Likewise.
17015 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17016 Compute whether the base is at least element aligned.
17017 * tree-vect-stmts.c (ensure_base_align): Adjust.
17018 (vectorizable_store): If the base is not element aligned
17019 preserve alignment of the original access if misalignment is unknown.
17020 (vectorizable_load): Likewise.
17022 2015-08-02 Martin Sebor <msebor@redhat.com>
17024 * c-family/c.opt (-Wframe-address): New warning option.
17025 * doc/invoke.texi (Wframe-address): Document it.
17026 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
17027 Clarify possible effects of calling the functions with non-zero
17028 arguments and mention -Wframe-address.
17029 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
17031 2015-08-01 Michael Collison <michael.collison@linaro.org
17032 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17034 * config/arm/arm.md (*arm_smin_cmp): New pattern.
17035 (*arm_umin_cmp): Likewise.
17037 2015-08-01 Caroline Tice <cmtice@google.com>
17040 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
17042 (vtbl_find_mangled_name): New function.
17043 (vtbl_register_mangled_name): New function.
17044 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
17045 mangled name in mangled name vectors.
17046 (find_or_create_vtbl_map_node): Ditto.
17047 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
17048 update recursion_depth on function entry; pass it to every recursive
17049 call; automatically exit if depth > 25 (give up looking at that point).
17050 (verify_bb_vtables): Initialize recursion_depth and pass it to
17051 var_is_used_for_virtual_call_p.
17052 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
17053 global variable decls.
17054 (vtbl_register_mangled_name): New extern function decl.
17056 2015-08-01 Tom de Vries <tom@codesourcery.com>
17058 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
17060 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
17062 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
17063 operation_no_trapping_overflow. Allow non-overflow operations.
17064 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
17067 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
17070 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
17072 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17074 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
17075 Enable for TARGET_32BIT.
17076 (*if_move_neg): Likewise.
17078 2015-07-31 Nick Clifton <nickc@redhat.com>
17080 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
17081 Returns true for __model__.
17082 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17084 2015-07-31 Alan Modra <amodra@gmail.com>
17087 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
17088 (rs6000_emit_prologue): Set it.
17089 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
17091 2015-07-31 Richard Biener <rguenther@suse.de>
17093 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
17094 -> X == (C1 ^ C2) which is already implemented in match.pd.
17095 Remove redundant dispatching to fold_relational_const.
17096 Move unordered self and NaN compares ...
17097 * match.pd: ... as patterns here. Remove some stray captures
17100 2015-07-31 Petr Murzin <petr.murzin@intel.com>
17102 * config/i386/i386.c
17103 (bdesc_special_args): Convert mask type from signed to unsigned for
17105 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
17106 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
17107 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
17108 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
17109 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
17110 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
17111 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
17112 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
17113 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
17114 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
17115 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
17116 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
17117 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
17118 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
17119 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
17120 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
17121 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
17122 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
17123 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
17124 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
17125 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
17126 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
17127 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
17128 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
17129 * config/i386/i386-builtin-types.def
17130 (V16QI_FTYPE_V16SI): Remove.
17131 (V8DF_FTYPE_V8SI): Ditto.
17132 (V8HI_FTYPE_V8DI): Ditto.
17133 (V8SI_FTYPE_V8DI): Ditto.
17134 (V8SF_FTYPE_V8DF): Ditto.
17135 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
17136 (V16HI_FTYPE_V16SI): Ditto.
17137 (V16SF_FTYPE_V16HI): Ditto.
17138 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
17139 (V16SF_FTYPE_V16SI): Ditto.
17140 (V4DI_FTYPE_V4DI): Ditto.
17141 (V16SI_FTYPE_V16SF): Ditto.
17142 (V16SF_FTYPE_FLOAT): Ditto.
17143 (V8DF_FTYPE_DOUBLE): Ditto.
17144 (V8DI_FTYPE_INT64): Ditto.
17145 (V8DI_FTYPE_V4DI): Ditto.
17146 (V16QI_FTYPE_V8DI): Ditto.
17147 (UINT_FTYPE_V4SF): Ditto.
17148 (UINT64_FTYPE_V4SF): Ditto.
17149 (UINT_FTYPE_V2DF): Ditto.
17150 (UINT64_FTYPE_V2DF): Ditto.
17151 (V16SI_FTYPE_V16SI): Ditto.
17152 (V8DI_FTYPE_V8DI): Ditto.
17153 (V16SI_FTYPE_PV4SI): Ditto.
17154 (V16SF_FTYPE_PV4SF): Ditto.
17155 (V8DI_FTYPE_PV2DI): Ditto.
17156 (V8DF_FTYPE_PV2DF): Ditto.
17157 (V4DI_FTYPE_PV2DI): Ditto.
17158 (V4DF_FTYPE_PV2DF): Ditto.
17159 (V16SI_FTYPE_PV2SI): Ditto.
17160 (V16SF_FTYPE_PV2SF): Ditto.
17161 (V8DI_FTYPE_PV4DI): Ditto.
17162 (V8DF_FTYPE_PV4DF): Ditto.
17163 (V8SF_FTYPE_FLOAT): Ditto.
17164 (V4SF_FTYPE_FLOAT): Ditto.
17165 (V4DF_FTYPE_DOUBLE): Ditto.
17166 (V8SF_FTYPE_PV4SF): Ditto.
17167 (V8SI_FTYPE_PV4SI): Ditto.
17168 (V4SI_FTYPE_PV2SI): Ditto.
17169 (V8SF_FTYPE_PV2SF): Ditto.
17170 (V8SI_FTYPE_PV2SI): Ditto.
17171 (V16SF_FTYPE_PV8SF): Ditto.
17172 (V16SI_FTYPE_PV8SI): Ditto.
17173 (V8DI_FTYPE_V8SF): Ditto.
17174 (V4DI_FTYPE_V4SF): Ditto.
17175 (V2DI_FTYPE_V4SF): Ditto.
17176 (V64QI_FTYPE_QI): Ditto.
17177 (V32HI_FTYPE_HI): Ditto.
17178 (V8UHI_FTYPE_V8UHI): Ditto.
17179 (V16UHI_FTYPE_V16UHI): Ditto.
17180 (V32UHI_FTYPE_V32UHI): Ditto.
17181 (V2UDI_FTYPE_V2UDI): Ditto.
17182 (V4UDI_FTYPE_V4UDI): Ditto.
17183 (V8UDI_FTYPE_V8UDI): Ditto.
17184 (V4USI_FTYPE_V4USI): Ditto.
17185 (V8USI_FTYPE_V8USI): Ditto.
17186 (V16USI_FTYPE_V16USI): Ditto.
17187 (V2DF_FTYPE_V2DF_UINT64): Ditto.
17188 (V2DI_FTYPE_V2DF_V2DF): Ditto.
17189 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
17190 (V8DF_FTYPE_V8DF_V8DI): Ditto.
17191 (V4SF_FTYPE_V4SF_UINT64): Ditto.
17192 (V4SI_FTYPE_V4SF_V4SF): Ditto.
17193 (V16SF_FTYPE_V16SF_V16SI): Ditto.
17194 (V64QI_FTYPE_V32HI_V32HI): Ditto.
17195 (V32HI_FTYPE_V16SI_V16SI): Ditto.
17196 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
17197 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
17198 (V32HI_FTYPE_V64QI_V64QI): Ditto.
17199 (V32HI_FTYPE_V32HI_V32HI): Ditto.
17200 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
17201 (V16SI_FTYPE_V16SI_V4SI): Ditto.
17202 (V16SI_FTYPE_V16SI_V16SI): Ditto.
17203 (V16SI_FTYPE_V32HI_V32HI): Ditto.
17204 (V16SI_FTYPE_V16SI_SI): Ditto.
17205 (V8DI_FTYPE_V8DI_V8DI): Ditto.
17206 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
17207 (V8DI_FTYPE_V16SI_V16SI): Ditto.
17208 (V8DI_FTYPE_V8DI_V2DI): Ditto.
17209 (QI_FTYPE_QI): Ditto.
17210 (SI_FTYPE_SI): Ditto.
17211 (DI_FTYPE_DI): Ditto.
17212 (QI_FTYPE_QI_QI): Ditto.
17213 (QI_FTYPE_QI_INT): Ditto.
17214 (HI_FTYPE_HI_INT): Ditto.
17215 (SI_FTYPE_SI_INT): Ditto.
17216 (DI_FTYPE_DI_INT): Ditto.
17217 (HI_FTYPE_V16QI_V16QI): Ditto.
17218 (SI_FTYPE_V32QI_V32QI): Ditto.
17219 (DI_FTYPE_V64QI_V64QI): Ditto.
17220 (QI_FTYPE_V8HI_V8HI): Ditto.
17221 (HI_FTYPE_V16HI_V16HI): Ditto.
17222 (SI_FTYPE_V32HI_V32HI): Ditto.
17223 (QI_FTYPE_V4SI_V4SI): Ditto.
17224 (QI_FTYPE_V8SI_V8SI): Ditto.
17225 (QI_FTYPE_V2DI_V2DI): Ditto.
17226 (QI_FTYPE_V4DI_V4DI): Ditto.
17227 (QI_FTYPE_V8DI_V8DI): Ditto.
17228 (HI_FTYPE_V16SI_V16SI): Ditto.
17229 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
17230 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
17231 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
17232 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
17233 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
17234 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
17235 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
17236 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
17237 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
17238 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
17239 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
17240 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
17241 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
17242 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
17243 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
17244 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
17245 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
17246 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
17247 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
17248 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
17249 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
17250 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
17251 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
17252 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
17253 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
17254 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
17255 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
17256 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
17257 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
17258 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
17259 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
17260 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
17261 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
17262 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
17263 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
17264 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
17265 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
17266 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
17267 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
17268 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
17269 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
17270 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
17271 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
17272 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
17273 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
17274 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
17275 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
17276 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
17277 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
17278 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
17279 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
17280 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
17281 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
17282 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
17283 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
17284 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
17285 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
17286 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
17287 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
17288 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
17289 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
17290 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
17291 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
17292 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
17293 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
17294 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
17295 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
17296 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
17297 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
17298 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
17299 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
17300 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
17301 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
17302 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
17303 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
17304 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
17305 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
17306 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
17307 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
17308 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
17309 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
17310 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
17311 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
17312 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
17313 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
17314 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
17315 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
17316 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
17317 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
17318 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
17319 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
17320 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
17321 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
17322 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
17323 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
17324 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
17325 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
17326 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
17327 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
17328 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
17329 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
17330 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
17331 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
17332 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
17333 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
17334 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
17335 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
17336 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
17337 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
17338 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
17339 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
17340 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
17341 (HI_FTYPE_HI): Ditto.
17342 (HI_FTYPE_V16QI): Ditto.
17343 (SI_FTYPE_V32QI): Ditto.
17344 (DI_FTYPE_V64QI): Ditto.
17345 (QI_FTYPE_V8HI): Ditto.
17346 (HI_FTYPE_V16HI): Ditto.
17347 (SI_FTYPE_V32HI): Ditto.
17348 (QI_FTYPE_V4SI): Ditto.
17349 (QI_FTYPE_V8SI): Ditto.
17350 (HI_FTYPE_V16SI): Ditto.
17351 (QI_FTYPE_V2DI): Ditto.
17352 (QI_FTYPE_V4DI): Ditto.
17353 (QI_FTYPE_V8DI): Ditto.
17354 (V16QI_FTYPE_HI): Ditto.
17355 (V32QI_FTYPE_SI): Ditto.
17356 (V64QI_FTYPE_DI): Ditto.
17357 (V8HI_FTYPE_QI): Ditto.
17358 (V16HI_FTYPE_HI): Ditto.
17359 (V32HI_FTYPE_SI): Ditto.
17360 (V4SI_FTYPE_QI): Ditto.
17361 (V4SI_FTYPE_HI): Ditto.
17362 (V8SI_FTYPE_QI): Ditto.
17363 (V8SI_FTYPE_HI): Ditto.
17364 (V2DI_FTYPE_QI): Ditto.
17365 (V4DI_FTYPE_QI): Ditto.
17366 (HI_FTYPE_HI_HI): Ditto.
17367 (SI_FTYPE_SI_SI): Ditto.
17368 (DI_FTYPE_DI_DI): Ditto.
17369 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
17370 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
17371 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
17372 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
17373 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
17374 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
17375 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
17376 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
17377 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
17378 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
17379 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
17380 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
17381 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
17382 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
17383 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
17384 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
17385 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
17386 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
17387 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
17388 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
17389 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
17390 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
17391 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
17392 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
17393 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
17394 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
17395 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
17396 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
17397 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
17398 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
17399 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
17400 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
17401 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
17402 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
17403 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
17404 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
17405 (V16SI_FTYPE_HI): Ditto.
17406 (V8DI_FTYPE_QI): Ditto.
17407 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
17408 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
17409 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
17410 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
17411 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
17412 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
17413 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
17414 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
17415 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
17416 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
17417 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
17418 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
17419 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
17420 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
17421 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
17422 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
17423 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
17424 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
17425 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
17426 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
17427 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
17428 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
17429 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
17430 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
17431 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
17432 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
17433 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
17434 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
17435 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
17436 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
17437 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
17438 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
17439 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
17440 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
17441 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
17442 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
17443 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
17444 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
17445 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
17446 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
17447 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
17448 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
17449 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
17450 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
17451 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
17452 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
17453 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
17454 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
17455 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
17456 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
17457 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
17458 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
17459 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
17460 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
17461 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
17462 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
17463 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
17464 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
17465 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
17466 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
17467 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
17468 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
17469 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
17470 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
17471 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
17472 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
17473 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
17474 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
17475 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
17476 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
17477 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
17478 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
17479 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
17480 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
17481 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
17482 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
17483 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
17484 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
17485 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
17486 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
17487 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
17488 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
17489 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
17490 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
17491 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
17492 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
17493 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
17494 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
17495 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
17496 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
17497 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
17498 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
17499 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
17500 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
17501 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
17502 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
17503 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
17504 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
17505 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
17506 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
17507 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
17508 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
17509 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
17510 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
17511 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
17512 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
17513 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
17514 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
17515 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
17516 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
17517 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
17518 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
17519 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
17520 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
17521 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
17522 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
17523 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
17524 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
17525 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
17526 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
17527 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
17528 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
17529 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
17530 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
17531 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
17532 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
17533 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
17534 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
17535 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
17536 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
17537 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
17538 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
17539 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
17540 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
17541 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
17542 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
17543 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
17544 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
17545 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
17546 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
17547 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
17548 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
17549 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
17550 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
17551 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
17552 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
17553 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
17554 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
17555 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
17556 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
17557 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
17558 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
17559 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
17560 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
17561 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
17562 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
17563 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
17564 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
17565 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
17566 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
17567 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
17568 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
17569 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
17570 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
17571 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
17572 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
17573 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
17574 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
17575 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
17576 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
17577 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
17578 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
17579 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
17580 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
17581 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
17582 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
17583 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
17584 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
17585 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
17586 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
17587 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
17588 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
17589 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
17590 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
17591 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
17592 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
17593 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
17594 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
17595 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
17596 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
17597 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
17598 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
17599 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
17600 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
17601 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
17602 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
17603 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
17604 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
17605 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
17606 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
17607 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
17608 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
17609 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
17610 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
17611 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
17612 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
17613 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
17614 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
17615 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
17616 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
17617 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
17618 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
17619 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
17620 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
17621 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
17622 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
17623 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
17624 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
17625 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
17626 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
17627 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
17628 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
17629 (QI_FTYPE_V8DF_INT_QI): Ditto.
17630 (QI_FTYPE_V4DF_INT_QI): Ditto.
17631 (QI_FTYPE_V2DF_INT_QI): Ditto.
17632 (HI_FTYPE_V16SF_INT_HI): Ditto.
17633 (QI_FTYPE_V8SF_INT_QI): Ditto.
17634 (QI_FTYPE_V4SF_INT_QI): Ditto.
17635 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
17637 2015-07-31 Richard Biener <rguenther@suse.de>
17639 * gimple-fold.c (fold_gimple_assign): Remove folding of
17642 2015-07-31 Tom de Vries <tom@codesourcery.com>
17644 PR tree-optimization/66846
17645 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
17646 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
17647 (expand_omp_target) [ENABLE_CHECKING]: Same.
17648 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
17649 cfun if !LOOPS_NEED_FIXUP.
17650 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
17651 that omp_for already has its own loop struct.
17652 * tree-parloops.c (create_phi_for_local_result)
17653 (create_call_for_reduction): Handle simple latch bb.
17654 (create_parallel_loop): Add simple latch bb to preserve
17655 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
17656 (gen_parallel_loop): Remove call to cancel_loop_tree.
17657 (parallelize_loops): Skip loops that are inner loops of parallelized
17659 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
17660 verify_loop_structure.
17662 2015-07-30 Anatoly Sokolov <aesok@post.ru>
17664 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
17665 * config/v850/v850.md (RV_REGNUM): New constants.
17666 * config/v850/v850.c (v850_libcall_value): New functions.
17667 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
17668 (TARGET_LIBCALL_VALUE): Define.
17670 2015-07-30 Anatoly Sokolov <aesok@post.ru>
17672 * rtl.h (lowpart_subreg): Move in file.
17673 * loop-iv.c (lowpart_subreg): Move to...
17674 * simplify-rtx.c (lowpart_subreg): ...here.
17675 (simplify_binary_operation_1): Use lowpart_subreg instead of
17676 simplify_gen_subreg.
17677 * expr.c (expand_expr_real_2): Ditto.
17678 * emit-rtl.c (gen_lowpart_common): Ditto.
17679 * combine.c (gen_lowpart_for_combine): Ditto.
17680 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
17681 expand_debug_source_expr): Ditto.
17683 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
17685 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
17686 (expand_builtin_atomic_clear): Remove support for atomic_clear
17689 2015-07-30 Richard Biener <rguenther@suse.de>
17691 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
17692 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
17693 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
17694 redundant operand canonicalization.
17696 2015-07-30 David Sherwood <david.sherwood@arm.com>
17698 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
17699 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
17700 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
17701 * config/arm/arm.c (neon_valid_immediate): Likewise.
17702 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
17703 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
17704 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
17705 (expand_vec_perm_vpshufb2_vpermq): Likewise.
17706 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
17707 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
17708 * config/i386/sse.md
17709 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
17710 (*ssse3_palignr<mode>_perm): Likewise.
17711 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
17712 * config/spu/spu.c (arith_immediate_p): Likewise.
17713 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17714 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
17716 2015-07-30 Richard Biener <rguenther@suse.de>
17718 * genmatch.c (decision_tree::gen_gimple): Merge with ...
17719 (decision_tree::gen_generic): ... this into ...
17720 (decision_tree::gen): ... this.
17721 (main): Adjust callers.
17723 2015-07-30 Richard Biener <rguenther@suse.de>
17725 * genmatch.c (verbose): New global.
17726 (warning_at): Add overload with source_location.
17727 (capture_info::capture_info): Add bool whether generating gimple
17728 or generic. Add gimple member.
17729 (capture_info::cinfo): Add capture member.
17730 (capture_info::walk_match): Record capture. Warn on
17731 non-captured leafs.
17732 (capture_info::walk_c_expr): Add more fragments captures cannot
17733 escape through. Warn on escaped captures.
17734 (dt_simplify::gen_1): Warn on operands we force to have no
17736 (main): Initialize verbose.
17737 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
17739 2015-07-30 Richard Biener <rguenther@suse.de>
17741 PR middle-end/67053
17742 * match.pd: Allow both operands to independently have conversion
17743 when simplifying compares of addresses.
17745 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
17749 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
17750 around those cases that need one.
17752 2015-07-29 Aditya Kumar <hiraditya@msn.com>
17754 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
17756 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
17758 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
17759 New. Copied from config/i386/gnu-user.h.
17760 (ASM_COMMENT_START): Likewise.
17761 (DBX_REGISTER_NUMBER): Likewise.
17763 2015-07-29 Richard Biener <rguenther@suse.de>
17765 * gimple-fold.c (fold_gimple_cond): Remove.
17766 (fold_stmt_1): Do not call it.
17768 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
17770 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
17771 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
17773 * config/aarch64/aarch64-modes.def: Add HFmode.
17775 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17776 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
17778 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
17779 aarch64_promoted_type): New.
17781 (aarch64_float_const_representable_p): Disable HFmode.
17782 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
17783 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
17784 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
17786 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
17787 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
17789 * config/aarch64/iterators.md (GPF_F16): New.
17791 2015-07-29 Richard Biener <rguenther@suse.de>
17793 * match.pd: Merge address comparison patterns and make them
17794 handle some more cases.
17796 2015-07-29 Richard Biener <rguenther@suse.de>
17798 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
17799 (parser::parse_capture): Add bool argument on whether to reject
17801 (parser::parse_expr): Adjust.
17802 (parser::parse_op): Likewise.
17803 (parser::parse_pattern): Likewise.
17805 2015-07-29 Richard Biener <rguenther@suse.de>
17807 * gimple-fold.c (has_use_on_stmt): New function.
17808 (replace_stmt_with_simplification): Use it to allow
17809 abnormals originally referenced in the stmt.
17810 (fold_stmt_1): Canonicalize operand order.
17812 2015-07-28 David Sherwood <david.sherwood@arm.com>
17814 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
17815 GET_MODE_INNER unconditionally.
17816 * config/spu/spu.c (arith_immediate_p): Likewise.
17817 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
17818 * expmed.c (synth_mult): Remove check for VOIDmode result from
17820 (expand_mult_const): Likewise.
17821 * fold-const.c (fold_binary_loc): Replace call to element_precision
17822 with call to GET_MODE_PRECISION.
17823 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
17825 (emit_mode_inner): Likewise.
17826 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
17828 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
17829 (GET_MODE_UNIT_PRECISION): Likewise.
17830 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
17831 * simplify-rtx.c (simplify_immed_subreg): Likewise.
17832 * stor-layout.c (bitwise_type_for_mode): Update assert.
17833 (element_precision): Remove.
17835 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17837 * target-insns.def (reload_load_address): New targetm instruction
17839 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
17841 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17843 * target-insns.def (atomic_test_and_set): New targetm instruction
17845 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
17846 HAVE_*/gen_* interface.
17848 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17850 * target-insns.def (can_extend, ptr_extend): New targetm instruction
17852 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
17853 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
17854 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
17855 * rtlanal.c (nonzero_bits1): Likewise.
17856 (num_sign_bit_copies1): Likewise.
17858 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17860 * target-insns.def (eh_return): New targetm instruction pattern.
17861 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
17863 * function.c (thread_prologue_and_epilogue_insns): Remove
17864 preprocessor condition.
17866 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17868 * target-insns.def (indirect_jump): New targetm instruction pattern.
17869 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
17872 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17874 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
17875 instead of nonimmediate_operand. Remove C condiition.
17877 2015-07-28 Richard Biener <rguenther@suse.de>
17879 * match.pd: Add more simplification of address comparisons.
17881 2015-07-28 Richard Biener <rguenther@suse.de>
17883 * match.pd: Re-order two cases in comparison with max/min
17884 value simplification to make it apply for bools.
17886 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17888 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
17889 Handle simple SIGN_EXTEND or ZERO_EXTEND.
17890 (aarch64_rtx_costs): Properly strip extend or extract before
17891 passing down to rtx costs again.
17893 2015-07-28 Nick Clifton <nickc@redhat.com>
17895 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
17896 Optimizes the case where -mes0 is active and a constant symbolic
17898 * config/rl78/rl78-protos.h: Prototype the new function.
17899 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
17901 2015-07-28 Tom de Vries <tom@codesourcery.com>
17903 * tree-parloops.c (reduc_stmt_res): New function.
17904 (initialize_reductions, add_field_for_reduction)
17905 (create_phi_for_local_result, create_loads_for_reductions)
17906 (create_stores_for_reduction, build_new_reduction): Handle case that
17907 reduc_stmt is a phi.
17908 (gather_scalar_reductions): Allow double_reduc reductions.
17910 2015-07-28 Richard Biener <rguenther@suse.de>
17912 * fold-const.c (fold_comparison): Remove equality folding
17913 of decl addresses ...
17914 * match.pd: ... here and merge with existing pattern.
17916 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
17918 PR tree-optimization/66828
17919 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
17920 from int64_t to uint64_t.
17922 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
17924 * opts-common.c (read_cmdline_option): List DriverOnly enum values
17925 as valid only in the error message of the driver, not in the
17926 messages of the language compilers.
17928 2015-07-27 Tom de Vries <tom@codesourcery.com>
17930 * tree-parloops.c (gather_scalar_reductions): Simplify function
17933 2015-07-27 Marek Polacek <polacek@redhat.com>
17935 * ipa-devirt.c (types_same_for_odr): Fix typo.
17937 2015-07-27 Jason Merrill <jason@redhat.com>
17940 * dwarf2out.c (gen_inlined_subroutine_die): Check
17941 cgraph_function_possibly_inlined_p.
17943 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
17945 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
17946 Place integer variant first.
17947 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17949 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
17952 * config/arm/arm-builtins.c (enum arm_builtins):
17953 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
17954 (ARM_BUILTIN_NEON_BASE): Rename macro to....
17955 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
17956 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
17957 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
17959 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
17962 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
17963 Add qualifier_lane_index.
17964 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
17965 (arm_getlane_qualifiers): Use qualifier_lane_index.
17966 (arm_lanemac_qualifiers): Rename to...
17967 (arm_mac_n_qualifiers): ...this.
17968 (LANEMAC_QUALIFIERS): Rename to...
17969 (MAC_N_QUALIFIERS): ...this.
17970 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
17971 (arm_setlane_qualifiers): Use qualifier_lane_index.
17972 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
17973 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
17974 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
17975 (arm_expand_neon_builtin): Handle qualifier_lane_index.
17977 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
17978 * config/arm/arm.c (bounds_check): Likewise, improve error message.
17979 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
17980 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
17981 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
17982 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
17983 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
17984 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
17985 qualifiers to TERNOP_IMM.
17986 (vdup_lane): Change qualifiers to GETLANE.
17987 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
17988 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
17989 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
17990 vqdmlsl_n): Change qualifiers to MAC_N.
17992 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
17993 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
17994 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
17995 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
17996 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
17997 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
17998 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
17999 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
18000 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
18001 Remove call to neon_lane_bounds.
18003 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
18005 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
18006 Place integer variant first.
18008 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
18010 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
18011 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
18012 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
18013 for armv6kz targets.
18014 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
18015 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
18016 (FL_FOR_ARCH6ZK): Remove.
18017 (FL_FOR_ARCH6KZ): New.
18018 (arm_arch6zk): New declaration.
18019 * config/arm/arm-tables.opt: Regenerate.
18020 * config/arm/arm.c (arm_arch6kz): New.
18021 (arm_option_override): Set arm_arch6kz.
18022 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
18023 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
18024 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
18026 2015-07-27 Marek Polacek <polacek@redhat.com>
18030 * doc/invoke.texi: Document -Wtautological-compare.
18032 2015-07-27 Richard Biener <rguenther@suse.de>
18034 * genmatch.c (decision_tree::gen_gimple): Split out large
18035 subtrees into separate functions.
18036 (decision_tree::gen_generic): Likewise.
18038 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
18040 * config/alpha/alpha.c: Use SUBREG_P predicate.
18041 * config/alpha/predicates.md: Ditto.
18043 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
18045 * config.host (s390*-*-*): Include driver-native.c only when
18046 building with s390* as host *and* target.
18048 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
18051 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
18052 T bit register modified_between_p check.
18054 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18056 * config/i386/i386.c: Use SUBREG_P predicate.
18057 * config/i386/i386.md: Ditto.
18058 * config/i386/sse.md: Ditto.
18059 * config/i386/predicates.md: Ditto.
18061 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18064 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
18065 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
18067 2015-07-25 Sebastian Pop <s.pop@samsung.com>
18069 * Makefile.in: Remove use of TREEBROWSER.
18070 * config.in: Regenerated.
18071 * configure: Regenerated.
18072 * configure.ac: Remove definition of TREEBROWSER.
18073 * tree-browser.c: Removed.
18074 * tree-browser.def: Removed.
18076 2015-07-25 Sebastian Pop <s.pop@samsung.com>
18078 * graphite-scop-detection.c: Include gimple-pretty-print.h.
18079 (stmt_simple_for_scop_p): Print when a stmt is not handled in
18081 (scopdet_basic_block_info): Print when a loop or bb cannot be
18082 represented in Graphite.
18084 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18087 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
18088 execution guard when min_size is less than size_needed.
18090 2015-07-25 Sebastian Pop <s.pop@samsung.com>
18092 * doc/install.texi: Document supported versions of ISL.
18094 2015-07-25 Jeff Law <law@redhat.com>
18098 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18099 unable to find X NE 0 in the tables, return X as the simplified
18101 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18102 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
18103 to VISISTED_BBS. */
18104 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18105 after removing the control flow statement and unnecessary edges.
18107 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
18110 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
18112 PR rtl-optimization/64164
18113 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18114 * tree-ssa-copyrename.c: Removed.
18115 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18116 -ftree-coalesce-vars.
18117 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18118 * common.opt (ftree-copyrename): Ignore.
18119 (ftree-coalesce-inlined-vars): Likewise.
18120 * doc/invoke.texi: Remove the ignored options above.
18121 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18122 * tree-ssa-coalesce.h: ... here.
18123 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18124 headers required by it.
18125 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18126 across variables when flag_tree_coalesce_vars. Check register
18127 use and promoted modes to allow coalescing. Moved to
18128 tree-ssa-coalesce.c.
18129 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18130 with its member functions to tree-ssa-coalesce.c.
18131 (var_map_base_init): Likewise. Renamed to
18132 compute_samebase_partition_bases.
18133 (partition_view_normal): Drop want_bases parameter.
18134 (partition_view_bitmap): Likewise.
18135 * tree-ssa-live.h: Adjust declarations.
18136 * tree-ssa-coalesce.c: Include explow.h.
18137 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18138 default defs at the entry point.
18139 (dump_part_var_map): New.
18140 (compute_optimized_partition_bases): New, called by...
18141 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18142 of compute_samebase_partition_bases. Adjust.
18143 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18144 * cfgexpand.c (leader_merge): New.
18145 (get_rtl_for_parm_ssa_default_def): New.
18146 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18147 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18148 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18149 redundant MEM attr setting.
18150 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18152 (expand_one_stack_var): ... this. New wrapper to check and
18153 skip already expanded SSA partitions.
18154 (record_alignment_for_reg_var): New, factored out of...
18155 (expand_one_var): ... this.
18156 (expand_one_ssa_partition): New.
18157 (adjust_one_expanded_partition_var): New.
18158 (expand_one_register_var): Check and skip already expanded SSA
18160 (expand_used_vars): Don't create DECLs for anonymous SSA
18161 names. Expand all SSA partitions, then adjust all SSA names.
18162 (pass::execute): Replace the loops that set
18163 SA.partition_to_pseudo from partition leaders and cleared
18164 DECL_RTL for multi-location variables, and that which used to
18165 rename vars and set attrs, with one that clears DECL_RTL and
18166 checks that PARMs and RESULTs default_defs match DECL_RTL.
18167 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18168 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18169 * explow.c (promote_ssa_mode): New.
18170 * explow.h (promote_ssa_mode): Declare.
18171 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18172 * function.c: Include cfgexpand.h.
18173 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18174 (use_register_for_parm_decl): Wrapper for the above to
18175 special-case the result_ptr.
18176 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18177 (split_complex_args): Take assign_parm_data_all argument.
18178 Pass it to rtl_for_parm. Set up rtl and context for split
18180 (assign_parms_augmented_arg_list): Adjust.
18181 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18182 multiple locations. Recognize split complex args.
18183 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18184 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18185 (assign_parm_setup_block): Prefer SSA-assigned location.
18186 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18187 if stack_parm is NULL.
18188 (assign_parm_setup_stack): Prefer SSA-assigned location.
18189 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18190 rtl before testing for pointer bounds. Special-case result_ptr.
18191 (expand_function_start): Maybe reset DECL_RTL of result.
18192 Prefer SSA-assigned location for result and static chain.
18193 Factor out DECL_RESULT and SET_DECL_RTL.
18194 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18195 anonymous SSA names. Use promote_ssa_mode.
18196 (get_temp_reg): Likewise.
18197 (remove_ssa_form): Adjust.
18198 * stor-layout.c (layout_decl): Don't set mem attributes of
18200 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18201 and get its reg_usage for reg invalidation.
18202 (compute_bb_dataflow): Pass it insn.
18203 (emit_notes_in_bb): Likewise.
18205 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18207 * config/i386/i386.c (ix86_va_start): Remove
18208 unneeded !TARGET_64BIT check.
18209 (ix86_gimplify_va_arg): Ditto.
18211 2015-07-24 Tom de Vries <tom@codesourcery.com>
18213 * graphite-sese-to-poly.c (build_poly_scop): Always call
18214 rewrite_commutative_reductions_out_of_ssa.
18216 2015-07-24 Tom de Vries <tom@codesourcery.com>
18218 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
18219 flag_associative_math to FLOAT_TYPE_P. Honour
18220 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
18222 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
18225 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
18226 and "%qD" in warning_at instead of "%q+D" in warning.
18228 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
18230 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
18231 (ix86_function_abi): Cleanup.
18233 2015-07-24 Michael Darling <darlingm@gmail.com>
18236 * acinclude.m4: Reflects renaming of configure.in to configure.ac
18237 * configure: Likewise
18238 * configure.ac: Likewise
18239 * doc/install.texi: Likewise
18240 * doc/tm.texi: Likewise
18241 * doc/tm.texi.in: Likewise
18243 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18245 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
18246 manually swapping values.
18247 * cse.c (fold_rtx): Likewise.
18248 * lra-eliminations.c (form_sum): Likewise.
18250 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
18253 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
18254 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
18255 (*jcc_1, *jcc_2, jump, simple_return_internal)
18256 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
18257 Set length_nobnd attribute instead of length attribute.
18258 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
18259 (length_nobnd): Remove attribute.
18260 (length): Remove length_nobnd processing.
18262 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
18264 * gimplify.c (omp_default_clause): New function. Reorganize flow
18265 for clarity. Broken out of ...
18266 (omp_notice_variable): ... here.
18268 2015-07-24 Gary Funck <gary@intrepid.com>
18270 PR middle-end/66984
18271 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
18272 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
18274 2015-07-24 Tom de Vries <tom@codesourcery.com>
18276 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
18277 exit-first loop transform.
18279 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
18282 * tree-cfg.c (struct replace_decls_d): New struct.
18283 (replace_block_vars_by_duplicates_1): New function.
18284 (replace_block_vars_by_duplicates): Use it to replace the decls
18285 in the value exprs by duplicates.
18287 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18289 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
18290 -shared, -symbolic, -rdynamic.
18292 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18295 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
18296 -dynamic-linker within %{!static %{!shared, and -rdynamic within
18299 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
18302 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
18303 edge summary is available.
18305 2015-07-24 Richard Biener <rguenther@suse.de>
18307 * genmatch.c (struct dt_node): Add statistic fields.
18308 (dt_node::analyze): New method.
18309 (decision_tree::gen_gimple): Call analyze on the root node
18310 and print statistics to stderr.
18311 (decision_tree::gen_generic): Likewise.
18313 2015-07-24 Richard Biener <rguenther@suse.de>
18315 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
18316 against the highest or lowest possible integer ...
18317 * match.pd: ... as patterns here.
18319 2015-07-24 Richard Biener <rguenther@suse.de>
18321 * genmatch.c (struct capture_info): Add same_as field.
18322 (capture_info::capture_info): Initialize same_as.
18323 (capture_info::walk_match): Compute same_as.
18324 (capture_info::walk_result): Compute stuff for the leader.
18325 (capture_info::walk_c_expr): Likewise.
18326 (dt_simplify::gen_1): Only look at leaders when deciding
18327 to force no side-effects or emit side-effects of omitted operands.
18329 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18331 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
18332 reg note to the GPR -> FPR save instructions.
18334 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18336 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
18338 (s390_expand_insv): Don't generate risbg pattern for constant zero
18340 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
18341 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
18344 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18346 * config/s390/s390.c (s390_reorg): Clean up handling of processors
18349 (s390_issue_rate): Likewise.
18350 (s390_sched_reorder): Likewise.
18351 (s390_sched_variable_issue): Likewise.
18352 (s390_loop_unroll_adjust): Likewise.
18353 (s390_option_override): Likewise.
18355 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18357 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
18358 processor capabilities with -march=native.
18359 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
18360 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
18361 (S390_TARGET_BITS_STRING): Macro to simplify specs.
18363 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18365 * config/s390/s390.c (s390_issue_rate): Handle
18366 PROCESSOR_2094_Z9_EC.
18367 (s390_option_override): Likewise.
18368 (s390_adjust_priority): Likewise.
18370 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18372 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
18373 when cross compiling.
18375 2015-07-24 Richard Biener <rguenther@suse.de>
18377 * fold-const.c (maybe_canonicalize_comparison_1): Move
18378 A code CST canonicalization ...
18379 * match.pd: ... to a pattern here.
18381 2015-07-24 Jiong Wang <jiong.wang@arm.com>
18384 2015-07-22 Jiong Wang <jiong.wang@arm.com>
18386 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18387 (HONOR_REG_ALLOC_ORDER): Define.
18389 2015-07-24 Richard Biener <rguenther@suse.de>
18391 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
18392 * fold-const.c (fold_comparison): Move parameter does not
18393 alias &local simplification ...
18394 * match.pd: ... as a pattern here.
18396 2015-07-24 Richard Biener <rguenther@suse.de>
18398 * gimple-fold.c (replace_stmt_with_simplification): Special-case
18399 valueizing call operands.
18400 * gimple-match-head.c (maybe_push_res_to_seq): Take
18401 number of call arguments from ops array.
18402 (do_valueize): New function.
18403 (gimple_simplify): Return true if valueization changed
18404 any operand even if the result didn't simplify further.
18406 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18408 PR middle-end/25530
18409 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
18411 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18413 PR middle-end/25529
18414 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
18416 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18418 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
18421 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18423 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
18426 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
18428 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
18429 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
18431 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
18432 ms_va_list_type_node initialization.
18434 2015-07-23 Jeff Law <law@redhat.com>
18437 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18438 unable to find X NE 0 in the tables, return X as the simplified
18440 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18441 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
18442 to VISISTED_BBS. */
18443 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18444 after removing the control flow statement and unnecessary edges.
18446 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
18448 * tree-pass.h (get_current_pass_name): Removed.
18450 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
18452 PR rtl-optimization/64164
18453 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18454 * tree-ssa-copyrename.c: Removed.
18455 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18456 -ftree-coalesce-vars.
18457 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18458 * common.opt (ftree-copyrename): Ignore.
18459 (ftree-coalesce-inlined-vars): Likewise.
18460 * doc/invoke.texi: Remove the ignored options above.
18461 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18462 * tree-ssa-coalesce.h: ... here.
18463 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18464 headers required by it.
18465 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18466 across variables when flag_tree_coalesce_vars. Check register
18467 use and promoted modes to allow coalescing. Moved to
18468 tree-ssa-coalesce.c.
18469 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18470 with its member functions to tree-ssa-coalesce.c.
18471 (var_map_base_init): Likewise. Renamed to
18472 compute_samebase_partition_bases.
18473 (partition_view_normal): Drop want_bases parameter.
18474 (partition_view_bitmap): Likewise.
18475 * tree-ssa-live.h: Adjust declarations.
18476 * tree-ssa-coalesce.c: Include explow.h.
18477 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18478 default defs at the entry point.
18479 (dump_part_var_map): New.
18480 (compute_optimized_partition_bases): New, called by...
18481 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18482 of compute_samebase_partition_bases. Adjust.
18483 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18484 * cfgexpand.c (leader_merge): New.
18485 (get_rtl_for_parm_ssa_default_def): New.
18486 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18487 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18488 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18489 redundant MEM attr setting.
18490 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18492 (expand_one_stack_var): ... this. New wrapper to check and
18493 skip already expanded SSA partitions.
18494 (record_alignment_for_reg_var): New, factored out of...
18495 (expand_one_var): ... this.
18496 (expand_one_ssa_partition): New.
18497 (adjust_one_expanded_partition_var): New.
18498 (expand_one_register_var): Check and skip already expanded SSA
18500 (expand_used_vars): Don't create DECLs for anonymous SSA
18501 names. Expand all SSA partitions, then adjust all SSA names.
18502 (pass::execute): Replace the loops that set
18503 SA.partition_to_pseudo from partition leaders and cleared
18504 DECL_RTL for multi-location variables, and that which used to
18505 rename vars and set attrs, with one that clears DECL_RTL and
18506 checks that PARMs and RESULTs default_defs match DECL_RTL.
18507 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18508 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18509 * explow.c (promote_ssa_mode): New.
18510 * explow.h (promote_ssa_mode): Declare.
18511 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18512 * function.c: Include cfgexpand.h.
18513 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18514 (use_register_for_parm_decl): Wrapper for the above to
18515 special-case the result_ptr.
18516 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18517 (split_complex_args): Take assign_parm_data_all argument.
18518 Pass it to rtl_for_parm. Set up rtl and context for split
18520 (assign_parms_augmented_arg_list): Adjust.
18521 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18522 multiple locations. Recognize split complex args.
18523 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18524 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18525 (assign_parm_setup_block): Prefer SSA-assigned location.
18526 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18527 if stack_parm is NULL.
18528 (assign_parm_setup_stack): Prefer SSA-assigned location.
18529 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18530 rtl before testing for pointer bounds. Special-case result_ptr.
18531 (expand_function_start): Maybe reset DECL_RTL of result.
18532 Prefer SSA-assigned location for result and static chain.
18533 Factor out DECL_RESULT and SET_DECL_RTL.
18534 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18535 anonymous SSA names. Use promote_ssa_mode.
18536 (get_temp_reg): Likewise.
18537 (remove_ssa_form): Adjust.
18538 * stor-layout.c (layout_decl): Don't set mem attributes of
18540 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18541 and get its reg_usage for reg invalidation.
18542 (compute_bb_dataflow): Pass it insn.
18543 (emit_notes_in_bb): Likewise.
18545 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
18548 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
18550 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
18551 (rs6000_emit_2insn_and): Handle dot forms.
18552 * config/rs6000/rs6000.md (and<mode>3): Adjust.
18553 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
18554 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
18556 2015-07-23 Richard Biener <rguenther@suse.de>
18558 * generic-match-head.c: Include cgraph.h.
18559 * gimple-match-head.c: Likewise.
18560 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
18562 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
18563 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
18566 2015-07-23 Richard Biener <rguenther@suse.de>
18568 * gimple-fold.c (fold_gimple_cond): Do not require folding
18569 results to pass valid_gimple_rhs_p.
18570 * tree-cfg.h (fold_cond_expr_cond): Remove.
18571 * tree-cfg.c (fold_cond_expr_cond): Likewise.
18572 (make_edges): Do not call it.
18573 * tree-inline.c (tree_function_versioning): Likewise.
18575 2015-07-23 Tom de Vries <tom@codesourcery.com>
18577 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
18578 vect_force_simple_reduction.
18579 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
18580 (vect_is_simple_reduction_1): Add and handle
18581 need_wrapping_integral_overflow parameter.
18582 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
18583 need_wrapping_integral_overflow parameter.
18584 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
18585 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
18588 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
18590 PR tree-optimization/66926,66951
18591 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
18592 INNER_LOOP and fix up condition for renaming virtual operands.
18594 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18596 * combine.c (try_combine): Use std::swap instead of manually
18599 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
18601 * config/mips/i6400.md: New file.
18602 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
18603 (mips64r6): Likewise.
18605 * config/mips/mips-tables.opt: Regenerate.
18606 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
18607 (mips_issue_rate): Add support for i6400.
18608 (mips_multipass_dfa_lookahead): Likewise.
18609 * config/mips/mips.h (TUNE_I6400): Define.
18610 * config/mips/mips.md: Include i6400.md.
18611 (processor): Add i6400.
18612 * doc/invoke.texi (-march=@var{arch}): Add i6400.
18614 2015-07-23 Richard Biener <rguenther@suse.de>
18616 PR middle-end/66916
18617 * match.pd: Guard widen and sign-change comparison simplification
18620 2015-07-23 Richard Biener <rguenther@suse.de>
18622 PR tree-optimization/66945
18623 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
18624 ::before_dom_children): Force the propagators idea of
18625 non-executable edges to materialize, not what the folder
18628 2015-07-23 Richard Biener <rguenther@suse.de>
18630 * gimple.h (gimple_cond_make_false): Use 0 != 0.
18631 (gimple_cond_make_true): Use 1 != 0.
18633 2015-07-22 DJ Delorie <dj@redhat.com>
18635 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
18638 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
18639 (ashrhi3): Likewise.
18640 (lshrhi3): Likewise.
18641 (movhi): Take advantage of zero-extend to load small constants.
18642 (movpsi): Likewise.
18643 (and<mode>3): Likewise.
18644 (zero_extendqihi2): Likewise.
18645 (zero_extendqisi2): New.
18646 * config/msp430/constraints.md (N,O): New.
18647 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
18649 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
18652 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
18653 to enum feature_priority and feature_list.
18654 (fold_builtin_cpu): Add F_AES to enum processor_features
18655 and isa_names_table.
18657 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
18660 * config/i386/linux-common.h (MPX_SPEC): Use linker option
18661 for 64bit target only.
18663 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
18665 * config/nvptx/nvptx.c: Expand some comments.
18667 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
18669 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
18670 (cortex_a53_advsimd): ...This.
18672 2015-07-22 Richard Biener <rguenther@suse.de>
18674 * genmatch.c (expr::gen_transform): Clarify error message
18675 and display location.
18677 2015-07-22 Richard Biener <rguenther@suse.de>
18679 * genmatch.c (struct operand): Add location member.
18680 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
18682 (struct simplify): Remove match_location and result_location
18684 (elsehwere): Adjust.
18686 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
18688 * config/mips/m5100.md: New file.
18689 * config/mips/mips-cpus.def (m5100, m5101): Define.
18690 * config/mips/mips-tables.opt: Regenerate.
18691 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
18692 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
18693 -march=m5101 to -mips32r5.
18694 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
18695 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
18697 * config/mips/mips.md: Include m5100.md.
18698 (processor): Add m5100.
18699 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
18701 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
18703 * config/mips/mips-cpus.def (interaptiv): Define.
18704 * config/mips/mips-tables.opt: Regenerate.
18705 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
18707 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
18708 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
18710 2015-07-22 Jiong Wang <jiong.wang@arm.com>
18713 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18714 (HONOR_REG_ALLOC_ORDER): Define.
18716 2015-07-22 Richard Biener <rguenther@suse.de>
18718 PR tree-optimization/66952
18719 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
18720 blocks we end up executing unconditionally reset all SSA
18721 info such as range and alignment.
18722 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
18723 * tree-ssanames.c (reset_flow_sensitive_info): New function.
18725 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
18727 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
18730 2015-07-22 Richard Biener <rguenther@suse.de>
18732 * genmatch.c (parser::parse_result): Properly handle
18733 match with result operands and conditions.
18735 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
18738 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18739 Add qualifier_struct_load_store_lane_index.
18740 (aarch64_types_loadstruct_lane_qualifiers): Use
18741 qualifier_struct_load_store_lane_index for lane index argument for
18743 (aarch64_types_storestruct_lane_qualifiers): Ditto.
18744 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18745 (aarch64_simd_expand_args): Add new argument describing mode of
18746 builtin. Check lane bounds for arguments with
18747 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18748 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
18749 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18750 (aarch64_simd_expand_builtin): Handle arguments with
18751 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
18752 aarch64_simd_expand_args.
18753 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
18754 vst[234]_lane with BUILTIN_VALLDIF.
18755 * config/aarch64/aarch64-simd.md:
18756 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
18757 endianness reversal on lane index.
18758 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
18759 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
18760 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
18761 (vec_store_lanesci_lane<mode>): Ditto.
18762 (vec_store_lanesxi_lane<mode>): Ditto.
18763 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
18764 reversal of lane index.
18765 (aarch64_ld3_lane<mode>): Ditto.
18766 (aarch64_ld4_lane<mode>): Ditto.
18767 (aarch64_st2_lane<mode>): Ditto.
18768 (aarch64_st3_lane<mode>): Ditto.
18769 (aarch64_st4_lane<mode>): Ditto.
18770 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
18771 to qmode. Add new mode parameter. Update uses.
18772 (__LD3_LANE_FUNC): Ditto.
18773 (__LD4_LANE_FUNC): Ditto.
18774 (__ST2_LANE_FUNC): Ditto.
18775 (__ST3_LANE_FUNC): Ditto.
18776 (__ST4_LANE_FUNC): Ditto.
18778 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
18780 * doc/invoke.texi (Language Independent Options): Rename node to
18781 Diagnostic Message Formatting Options.
18783 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
18786 * lra-remat.c (operand_to_remat): Prevent using insns with input
18787 subregs processed separately by IRA.
18789 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
18791 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
18793 (single_imm_use): Check for iterator node.
18794 (num_imm_uses): Likewise.
18795 * tree-ssa-operands.c (has_zero_uses_1): Delete.
18796 (single_imm_use_1): Check for iterator node.
18798 2015-07-21 Mike Frysinger <vapier@gentoo.org>
18799 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18801 * configure.ac: Add check for new options in isl-0.15.
18802 * config.in, configure: Rebuilt.
18803 * graphite-blocking.c: Include <isl/constraint.h>
18804 * graphite-interchange.c, graphite-poly.c: Likewise.
18805 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
18806 * graphite.c: Likewise.
18807 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
18809 * graphite-dependences.c: Include <isl/constraint.h>.
18810 (max_number_of_out_dimensions): Returns isl_stat.
18811 (extend_schedule_1): Likewise
18812 (extend_schedule): Corresponding changes.
18813 * graphite-optimize-isl.c: Include <isl/constraint.h> and
18815 (getSingleMap): Change return type of isl_stat.
18816 (optimize_isl): Conditionally use
18817 isl_options_set_schedule_serialize_sccs.
18818 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
18819 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
18821 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
18824 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
18825 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
18827 2015-07-21 Richard Biener <rguenther@suse.de>
18829 PR tree-optimization/66948
18830 * genmatch.c (capture_info::walk_match): Also recurse to
18831 captures. Properly compute expr state from captures of
18833 * match.pd: Add single-use guards to
18834 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
18836 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
18838 * config/nvptx/mkoffload.c (process): Add static destructor call.
18840 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18842 PR middle-end/66915
18843 * match.pd (A - B -> A + (-B)): Don't allow folding
18844 when type if a fixed-point type.
18846 2015-07-20 DJ Delorie <dj@redhat.com>
18848 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
18849 (iorqi3_real): Likewise for set1.
18851 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
18853 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
18856 2015-07-20 Aditya Kumar <hiraditya@msn.com>
18858 * graphite-isl-ast-to-gimple.c:
18859 Refactor so that each function can access 'region'. This will help
18860 maintain a parameter rename_map within a region.
18862 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18864 * config/rs6000/rs6000.md (*lt0_disi): New.
18866 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18869 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
18870 "available letters" comment.
18871 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
18872 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
18873 and_2rld_operand): Delete.
18874 (and_operand): Adjust.
18875 (rotate_mask_operator): New.
18876 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
18877 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
18878 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
18879 extract_ME): Delete.
18880 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18881 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
18882 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
18883 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18884 rs6000_emit_2insn_and): New.
18885 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
18886 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
18887 includes_rldic_lshift_p, includes_rldicr_lshift_p,
18888 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
18889 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18890 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
18891 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
18892 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18893 rs6000_emit_2insn_and): New.
18894 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
18895 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
18897 <NOT>: Don't fall through to next case.
18898 <AND>: Handle the various rotate-and-mask cases directly.
18899 <IOR>: Always cost as one insn.
18900 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
18901 (and<mode>3): Adjust expander for the new patterns.
18902 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
18903 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
18904 (*and<mode>3_imm_dot_shifted): New.
18905 (*and<mode>3_mask): Delete, rewrite as ...
18906 (and<mode>3_mask): ... New.
18907 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
18908 (andsi3_internal0_nomc): Delete.
18909 (*andsi3_internal6): Delete.
18910 (*and<mode>3_2insn): New.
18911 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18912 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18913 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
18914 *insvdi_internal3): Delete.
18915 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
18916 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
18917 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
18918 *ior<mode>_mask): New.
18919 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
18920 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18921 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18922 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18924 (ashr<mode>3): Delete expander.
18925 (*ashr<mode>3): Rename to ...
18926 (ashr<mode>3): ... This.
18927 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
18928 (*rotldi3_internal4, *rotldi3_internal5 and split,
18929 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
18930 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
18931 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
18932 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
18933 (splitter for loading a mask): Adjust.
18934 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
18936 2015-07-20 Marek Polacek <polacek@redhat.com>
18938 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
18939 output_add_clobbers, output_added_clobbers_hard_reg_p,
18940 gen_rtx_scratch): Remove declarations.
18942 2015-07-20 Marek Polacek <polacek@redhat.com>
18945 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
18947 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18949 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
18950 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
18952 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18954 * combine.c (combine_simplify_rtx): Move simplification step
18955 before various transformations/substitutions.
18957 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
18959 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
18960 (struct int_traits): Likewise.
18962 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18964 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
18965 function to vmsdbgout_function_decl.
18967 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
18970 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
18971 from misaligned positions.
18972 (ix86_expand_pinsr): Reject insertions to misaligned positions.
18974 2015-07-18 Sebastian Pop <s.pop@samsung.com>
18976 PR middle-end/46851
18977 PR middle-end/60340
18978 * Makefile.in: Removed omega.o.
18979 * common.opt: Document flag fcheck-data-deps as deprecated.
18980 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
18981 its associated params: omega-max-vars, omega-max-geqs,
18982 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
18983 omega-max-keys, omega-eliminate-redundant-constraints.
18984 * doc/loop.texi: Remove all the section on Omega.
18985 * graphite-blocking.c: Include missing params.h: it used to be
18986 included through tree-data-ref.h and omega.h.
18987 * graphite-isl-ast-to-gimple.c: Same.
18988 * graphite-optimize-isl.c: Same.
18989 * graphite-sese-to-poly.c: Same.
18990 * graphite.c: Same.
18993 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
18994 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
18995 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
18996 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
18997 * passes.def: Remove pass_check_data_deps.
18998 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
18999 (dump_conflict_function): Same.
19000 (dump_subscript): Same.
19001 (print_direction_vector): Same.
19002 (print_dir_vectors): Same.
19003 (print_lambda_vector): Same.
19004 (print_dist_vectors): Same.
19005 (dump_data_dependence_relation): Same.
19006 (dump_data_dependence_relations): Same.
19007 (dump_dist_dir_vectors): Same.
19009 (init_omega_eq_with_af): Removed.
19010 (omega_extract_distance_vectors): Removed.
19011 (omega_setup_subscript): Removed.
19012 (init_omega_for_ddr_1): Removed.
19013 (init_omega_for_ddr): Removed.
19014 (ddr_consistent_p): Removed.
19015 (compute_affine_dependence): Do not use omega to check data
19017 (compute_data_dependences_for_bb): Removed.
19018 (analyze_all_data_dependences): Removed.
19019 (tree_check_data_deps): Removed.
19020 * tree-data-ref.h: Do not include omega.h.
19021 (compute_data_dependences_for_bb): Removed.
19022 (tree_check_data_deps): Removed.
19023 * tree-ssa-loop.c (pass_check_data_deps): Removed.
19024 (make_pass_check_data_deps): Removed.
19025 * tree-ssa-phiopt.c: Include params.h.
19026 * tree-vect-data-refs.c: Same.
19027 * tree-vect-slp.c: Same.
19029 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
19031 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
19032 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
19033 (mem->fpreg splitters): Ditto.
19034 (general_operand->nonimmediate_operand splitter): Use explicit modes.
19035 Disable DFmode for TARGET_64BIT.
19037 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
19040 * config/i386/i386.c (ix86_expand_prologue): Replicate static
19041 chain on the stack.
19043 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
19045 * config/nvptx/mkoffload.c (process): Constify host data.
19046 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19047 Constify host data.
19048 (generate_host_descr_file): Likewise.
19050 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
19051 Sebastian Pop <s.pop@samsung.com>
19053 PR middle-end/61929
19054 * graphite-dependences.c (add_pdr_constraints): Renamed
19055 pdr->extent to pdr->subscript_sizes.
19056 * graphite-interchange.c (build_linearized_memory_access): Add
19057 back all gcc_assert's that the "isl_int to isl_val conversion"
19058 patch has removed. Refactored.
19059 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
19060 * graphite-poly.c (new_poly_dr): Same.
19061 (free_poly_dr): Same.
19062 * graphite-poly.h (struct poly_dr): Same.
19063 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
19064 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
19065 * graphite-scop-detection.h: Fix space.
19066 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
19067 back all gcc_assert's removed by a previous patch.
19068 (wrap): Remove the_isl_ctx global variable that the same patch has
19070 (build_loop_iteration_domains): Same.
19071 (add_param_constraints): Same.
19072 (pdr_add_data_dimensions): Same. Refactored.
19073 (build_poly_dr): Renamed extent to subscript_sizes.
19075 2015-07-17 Marek Polacek <polacek@redhat.com>
19077 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
19078 * match.pd: ... here.
19080 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
19082 * config/nvptx/mkoffload.c (process): Constify target data.
19083 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19084 Constify target data.
19085 (generate_target_offloadend_file): Likewise.
19087 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
19089 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
19090 to allow renaming of PHI arguments on edges incoming from outer
19091 loop header, add corresponding check before start PHI iterator.
19092 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
19093 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
19094 with true force_vectorize. Set-up dominator for outer loop too.
19095 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
19096 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
19097 was marked with force_vectorize and has restricted cfg.
19098 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
19100 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
19101 do peeling for outer loops.
19103 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
19104 Matthias Klose <doko@ubuntu.com>
19106 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
19107 build-sysroot, sysroot from the `Miscenalleous configure options' to
19108 the `Directories' section and strip trailing `/' from with_sysroot.
19109 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
19110 * configure: Regenerated.
19112 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
19115 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
19116 (TARGET_HARD_DF_REGS): Ditto.
19117 (TARGET_HARD_XF_REGS): Ditto.
19118 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
19119 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
19120 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
19121 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
19122 (*movsf_internal): Add alternatives 16 and 17. Enable
19123 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
19125 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
19127 PR rtl-optimization/66891
19128 * calls.c (expand_call): Wrap precompute_register_parameters with
19129 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
19131 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
19133 * config/nvptx/mkoffload.c (process): Constify mapping variables.
19134 Define target data struct and initialize it.
19136 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
19138 PR rtl-optimization/66626
19139 * ira.h (emit-rtl.h): Include.
19140 (non_spilled_static_chain_regno_p): New.
19141 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
19142 unless it is non spilled static chain pseudo.
19143 (assign_hard_rego): Spill memory profitable allocno unless it is
19144 non spilled static chain pseudo.
19145 (allocno_spill_priority_compare): Put non spilled static chain
19146 pseudo at the end of sorted array.
19147 (improve_allocation): Do nothing if we have static chain and
19149 (allocno__priority_compare_func): Put non spilled static chain
19150 pseudo at the beginning of sorted array.
19151 (move_spill_restore): Ignore non spilled static chain pseudo.
19152 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
19153 to non spilled static chain pseudo.
19154 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
19155 pseudo at the beginning of sorted array.
19156 (spill_for): Spill non spilled static chain pseudo last.
19157 * lra-constraints.c (lra_constraints): Remove static chain pseudo
19158 check for equivalence.
19160 2015-07-16 Martin Liska <mliska@suse.cz>
19163 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
19164 dst_ctx if it does not exist.
19166 2015-07-16 Martin Liska <mliska@suse.cz>
19168 * hash-set.h (remove): New function.
19169 (iterator): New iteration class for hash_set.
19171 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19173 * genattrtab.c (make_canonical): Add a file_location parameter.
19174 Use fatal_at rather than fatal.
19175 (get_attr_value): Likewise. Update call to make_canonical.
19176 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
19177 (make_internal_attr): Update calls accordingly.
19179 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19181 * read-md.h (message_with_line, error_with_line): Delete.
19182 * read-md.c (message_with_line, error_with_line): Delete.
19183 * gensupport.h: Include read-md.h.
19184 (md_rtx_info): New structure.
19185 (read_md_rtx): Use it. Return a bool success value.
19186 * gensupport.c (read_md_rtx): Likewise.
19187 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
19188 (main): Update after interface changes.
19189 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
19190 (main): Update after interface changes.
19191 * genattrtab.c (insn_code_number): Delete.
19192 (optimize_attrs): Add a max_insn_code parameter and use it instead
19193 of insn_code_number.
19194 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
19195 Use *_at rather than *_with_line functions.
19196 (gen_insn): Likewise.
19197 (gen_delay): Likewise.
19198 (gen_insn_reserv): Likewise.
19199 (gen_bypass): Take an md_rtx_info rather than an rtx.
19200 (main): Update after interface changes. Use a local max_insn_code
19201 variable instead of insn_code_number.
19202 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
19203 an rtx. Use fatal_at rather than fatal.
19204 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
19205 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
19206 (gen_absence_set, gen_final_absence_set, gen_automaton)
19207 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
19208 (main): Update after interface changes.
19209 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
19211 (main): Update after interface changes.
19212 * genconditions.c (main): Use new read_md_rtx interface.
19213 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
19214 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
19215 (main): Update after interface changes.
19216 * genemit.c (insn_code_number, insn_index_number): Delete.
19217 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19218 Use fatal_at rather than fatal.
19219 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
19221 (gen_split): Likewise.
19222 (main): Update after interface changes.
19223 * genextract.c (line_no): Delete.
19224 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19225 Update call to walk_rtx.
19226 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
19227 rather than message_with_line.
19228 (walk_rtx): Add an md_rtx_info argument. Update call to
19229 VEC_safe_set_locstr.
19230 (main): Update after interface changes.
19231 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
19232 and lineno. Use error_at rather than separate message_with_line
19233 calls and have_error assignments.
19234 (main): Update after interface changes.
19235 * genmddump.c (main): Use new read_md_rtx interface.
19236 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
19237 (main): Update after interface changes.
19238 * genoutput.c (next_code_number): Delete.
19239 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19240 (gen_peephole, gen_expand, gen_split): Likewise.
19241 (note_constraint): Likewise. Use *_at rather than *_with_line
19243 (main): Update after interface changes.
19244 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
19246 (main): Update after interface changes.
19247 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
19248 than an rtx and lineno.
19249 (process_define_constraint): Likewise.
19250 (process_define_register_constraint): Likewise.
19251 (main): Update after interface changes.
19252 * genrecog.c (next_insn_code, pattern_lineno): Delete.
19253 (validate_pattern): Replace top-level rtx with an md_rtx_info.
19254 Use *_at rather than *_with_line functions.
19255 (match_pattern_2): Likewise.
19256 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
19257 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
19258 Use *_at rather than *_with_line functions.
19259 * gentarget-def.c (add_insn): New function.
19260 (main): Use it. Use new read_md_rtx interface.
19262 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19264 * gensupport.h (compute_test_codes): Take a file_location rather
19265 than a line number.
19266 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
19267 rather than *_with_line functions.
19268 (process_define_predicate): Update call to compute_test_codes.
19269 * genpreds.c (validate_exp): Take a file_location rather than a
19270 line number. Use *_at functions rather than *_with_line functions.
19271 (process_define_predicate): Update call to validate_exp.
19272 (constraint_data): Replace lineno field with a file_location.
19273 (add_constraint): Take a file_location rather than a line number.
19274 Use *_at functions rather than *_with_line functions. Fix error
19275 message for address constraints. Update after changes to
19276 validate_exp, constraint_data and compute_test_codes.
19277 (process_define_constraint): Update accordingly.
19278 (process_define_register_constraint): Likewise.
19280 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19282 * genoutput.c (data): Use a file_location to record the source
19285 (idata, idata_end): Remove initialization.
19286 (constraint_data): Replace lineno with a file_location.
19287 (output_insn_data): Update after changes to data.
19288 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
19289 (scan_operands): Likewise, using *_at rather than *_with_line
19291 (process_template): Likewise.
19292 (validate_insn_alternatives): Likewise.
19293 (validate_insn_operands): Likewise.
19294 (validate_optab_operands): Likewise.
19295 (init_insn_for_nothing): Initialize idata and idata_end.
19296 (note_constraint): Update after changes to constraint_data,
19297 using at rather than with_line functions.
19298 (mdep_constraint_len): Take a file_location rather than a
19299 line number. Use at rather than with_line functions.
19301 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19303 * read-md.h (fatal_at): Declare.
19304 * read-md.c (fatal_at): New function.
19305 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
19306 to record the source position.
19307 (check_attr_test): Take a file_location instead of a line number.
19308 Use fatal_at instead of fatal.
19309 (check_attr_value): Update after above changes, using "at"
19310 rather than "with_line" reporting functions.
19311 (convert_set_attr_alternative): Likewise.
19312 (gen_attr): Likewise.
19313 (check_defs): Likewise. Don't assign to read_md_filename.
19314 (gen_insn): Update initialization after above changes.
19315 (gen_delay): Likewise.
19316 (write_insn_cases): Print the filename for a define_peephole.
19317 (gen_insn_reserv): Take a line number as argument and update
19318 the call to check_attr_test.
19319 (main): Pass a line number to gen_insn_reserv.
19321 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19323 * read-md.h (file_location): New structure.
19324 (directive_handler_t): Take a file_location rather than a line number.
19325 (message_at, error_at): Declare.
19326 (read_skip_construct): Delete.
19327 * read-md.c (message_with_line_1): Replace with...
19328 (message_at_1): ...this new function.
19329 (message_at, error_at): New functions.
19330 (message_with_line, error_with_line): Update to use message_at_1.
19331 (handle_enum): Take a file_location rather than a line number
19332 and use error_at for error reporting.
19333 (handle_include): Likewise.
19334 (read_skip_construct): Likewise. Make static.
19335 (handle_file): Update after above changes. Pass a file_location
19336 rather than a line number to handle_directive.
19337 * gensupport.c (queue_elem): Replace separate filename and lineno
19338 with a file_location.
19339 (queue_pattern): Replace filename and lineno arguments with a
19340 file_location. Update after change to queue_elem.
19341 (process_define_predicate): Replace lineno argument with a
19342 file_location and use error_at for error reporting. Update
19343 after above changes.
19344 (process_rtx): Likewise.
19345 (subst_pattern_match): Likewise.
19346 (get_alternatives_number): Likewise.
19347 (alter_predicate_for_insn): Likewise.
19348 (rtx_handle_directive): Likewise.
19349 (is_predicable): Update after above changes, using error_at rather
19350 than error_with_line.
19351 (has_subst_attribute): Likewise.
19352 (identify_predicable_attribute): Likewise.
19353 (alter_attrs_for_subst_insn): Likewise.
19354 (process_one_cond_exec): Likewise.
19355 (process_substs_on_one_elem): Likewise.
19356 (process_define_subst): Likewise.
19357 (check_define_attr_duplicates): Likewise.
19358 (read_md_rtx): Update after change to queue_elem.
19360 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19362 * genoutput.c (next_index_number): Delete.
19363 (data): Remove index_number.
19364 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
19365 (main): Remove manipulation of next_index_number.
19367 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19369 * genattrtab.c (check_attr_value): Remove handling of null attrs.
19370 (make_canonical): Likewise.
19372 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
19374 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
19375 instead of adjust_address_nv.
19376 (restore_stack_nonlocal): Likewise.
19377 (nonlocal_goto): Likewise.
19379 2015-07-16 Tom de Vries <tom@codesourcery.com>
19381 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
19382 not have a corresponding loop header phi.
19384 2015-07-16 Tom de Vries <tom@codesourcery.com>
19386 * tree-parloops.c (create_loads_for_reductions): Handle case that
19387 reduction is unused.
19389 2015-07-16 Richard Biener <rguenther@suse.de>
19391 PR tree-optimization/66894
19392 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
19393 about deriving NE_EXPR from truncated values.
19395 2015-07-16 Martin Liska <mliska@suse.cz>
19398 (object_allocator): Add new class.
19399 (pool_allocator::initialize): Use the underlying class.
19400 (pool_allocator::allocate): Likewise.
19401 (pool_allocator::remove): Likewise.
19402 (operator new): A new generic allocator.
19403 * asan.c (struct asan_mem_ref): Remove unused members.
19404 (asan_mem_ref_new): Replace new operator with
19405 object_allocator::allocate.
19406 (free_mem_ref_resources): Change deallocation.
19407 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
19408 with object_allocator.
19409 * config/sh/sh.c (add_constant): Replace new operator with
19410 object_allocator::allocate.
19411 (sh_reorg): Change call to a release method.
19412 * cselib.c (struct elt_list): Remove unused members.
19413 (new_elt_list): Replace new operator with
19414 object_allocator::allocate.
19415 (new_elt_loc_list): Likewise.
19416 (new_cselib_val): Likewise.
19417 (unchain_one_elt_list): Change delete operator with remove method.
19418 (unchain_one_elt_loc_list): Likewise.
19419 (unchain_one_value): Likewise.
19420 (cselib_finish): Release newly added static allocators.
19421 * cselib.h (struct cselib_val): Remove unused members.
19422 (struct elt_loc_list): Likewise.
19423 * df-problems.c (df_chain_alloc): Replace pool_allocator with
19425 * df-scan.c (struct df_scan_problem_data): Likewise.
19426 (df_scan_alloc): Likewise.
19427 * df.h (struct dataflow): Likewise.
19428 * dse.c (struct read_info_type): Likewise.
19429 (struct insn_info_type): Likewise.
19430 (struct dse_bb_info_type): Likewise.
19431 (struct group_info): Likewise.
19432 (struct deferred_change): Likewise.
19433 (get_group_info): Likewise.
19434 (delete_dead_store_insn): Likewise.
19435 (free_read_records): Likewise.
19436 (replace_read): Likewise.
19437 (check_mem_read_rtx): Likewise.
19438 (scan_insn): Likewise.
19439 (dse_step1): Likewise.
19440 (dse_step7): Likewise.
19441 * et-forest.c (struct et_occ): Remove unused members.
19442 (et_new_occ): Use allocate instead of new operator.
19443 (et_new_tree): Likewise.
19444 (et_free_tree): Call release method explicitly.
19445 (et_free_tree_force): Likewise.
19446 (et_free_pools): Likewise.
19447 (et_split): Use remove instead of delete operator.
19448 * et-forest.h (struct et_node): Remove unused members.
19449 * ipa-cp.c: Change pool_allocator to object_allocator.
19450 * ipa-inline-analysis.c: Likewise.
19451 * ipa-profile.c: Likewise.
19452 * ipa-prop.c: Likewise.
19453 * ipa-prop.h: Likewise.
19454 * ira-build.c (initiate_cost_vectors): Cast return value.
19455 (ira_allocate_cost_vector): Likewise.
19456 * ira-color.c (struct update_cost_record): Remove unused members.
19457 * lra-int.h (struct lra_live_range): Likewise.
19458 (struct lra_copy): Likewise.
19459 (struct lra_insn_reg): Likewise.
19460 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
19461 * lra.c (new_insn_reg): Replace new operator with allocate method.
19462 (free_insn_regs): Same for operator delete.
19463 (finish_insn_regs): Release new static allocator.
19464 (finish_insn_recog_data): Likewise.
19465 (lra_free_copies): Replace delete operator with remove method.
19466 (lra_create_copy): Replace operator new with allocate method.
19467 (invalidate_insn_data_regno_info): Same for remove method.
19468 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
19469 (free_debug_insn_changes): Replace delete operator with remove method.
19470 (replace_oldest_value_reg): Replace operator new with allocate method.
19471 (pass_cprop_hardreg::execute): Release new static variable.
19472 * sched-deps.c (sched_deps_init): Change pool_allocator to
19474 * sel-sched-ir.c: Likewise.
19475 * sel-sched-ir.h: Likewise.
19476 * stmt.c (expand_case): Likewise.
19477 (expand_sjlj_dispatch_table): Likewise.
19478 * tree-sra.c (struct access): Remove unused members.
19479 (struct assign_link): Likewise.
19480 (sra_deinitialize): Release newly added static pools.
19481 (create_access_1):Replace operator new with allocate method.
19482 (build_accesses_from_assign): Likewise.
19483 (create_artificial_child_access): Likewise.
19484 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
19485 pool_allocator to object_allocator.
19486 * tree-ssa-pre.c: Likewise.
19487 * tree-ssa-reassoc.c: Likewise.
19488 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
19489 * tree-ssa-strlen.c: Likewise.
19490 * tree-ssa-structalias.c: Likewise.
19491 * var-tracking.c (onepart_pool_allocate): New function.
19492 (unshare_variable): Use the newly added function.
19493 (variable_merge_over_cur): Likewise.
19494 (variable_from_dropped): Likewise.
19495 (variable_was_changed): Likewise.
19496 (set_slot_part): Likewise.
19497 (emit_notes_for_differences_1): Likewise.
19498 (vt_finalize): Release newly added static pools.
19500 2015-07-16 Martin Jambor <mjambor@suse.cz>
19502 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
19503 all uses. Fix two typos in its general comment.
19504 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
19506 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
19508 * config/i386/linux-common.h (LINK_MPX): New.
19509 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
19510 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
19511 indicating '-z bndplt' support by linker.
19512 * configure: Regenerate.
19513 * config.in: Regenerate.
19515 2015-07-16 Richard Biener <rguenther@suse.de>
19517 * fold-const.c (fold_widened_comparison): Remove.
19518 (fold_sign_changed_comparison): Likewise.
19519 (fold_comparison): Move widened and sign-changed comparison
19521 * match.pd: ... to patterns here.
19522 * generic-match-head.c: Include target.h.
19523 * gimple-match-head.c: Likewise.
19525 2015-07-16 Richard Biener <rguenther@suse.de>
19527 * tree-ssa-dom.c (dom_valueize): New function.
19528 (record_temporary_equivalences): Also record equivalences
19529 for dominating stmts that have uses of equivalences we are
19532 2015-07-16 Bin Cheng <bin.cheng@arm.com>
19534 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
19535 add_autoinc_candidates.
19536 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
19537 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
19538 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
19539 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
19541 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
19542 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
19543 Remove parameter struct iv*. Call add_autoinc_candidates here.
19544 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
19545 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
19547 (find_iv_candidates): Call new functions.
19549 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
19551 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
19552 uninitialized-variable warning.
19554 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
19557 * config/sh/sh.md (movdi): Split simple reg move to two movsi
19558 when the destination is R0.
19560 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
19563 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
19564 * config/i386/i386.c (ix86_expand_pextr): New function.
19565 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
19566 for non-lowpart subregs.
19567 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
19568 (insv<mode>): Use SWI248 mode iterator.
19569 (insv<mode>_1): Ditto.
19571 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19572 Sebastian Pop <s.pop@samsung.com>
19574 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
19575 iterator to use_stmt.
19577 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19578 Sebastian Pop <s.pop@samsung.com>
19580 * graphite-scop-detection.c (build_scops_1): Discard scops for
19583 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19584 Sebastian Pop <s.pop@samsung.com>
19586 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
19587 case of a return statement in scop.
19589 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19590 Sebastian Pop <s.pop@samsung.com>
19592 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
19593 INTEGER_TYPE parameters.
19594 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
19595 VECTOR_CST in scan_tree_for_params.
19596 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
19598 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
19600 * gimple-pretty-print.h: Don't include pretty-print.h.
19601 * tree-streamer.h: Don't include lto-streamer.h.
19602 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
19603 * gimple-streamer-in.c: Remove redundant includes.
19604 * gimple-streamer-out.c: Likewise.
19605 * ipa-devirt.c: Likewise.
19606 * ipa-icf.c: Likewise.
19607 * ipa-inline-analysis.c: Likewise.
19608 * ipa-polymorphic-call.c: Likewise.
19609 * ipa-profile.c: Likewise.
19610 * ipa-prop.c: Likewise.
19611 * ipa-pure-const.c: Likewise.
19612 * lto-cgraph.c: Likewise.
19613 * lto-streamer-in.c: Likewise.
19614 * lto-streamer-out.c: Likewise.
19615 * lto-streamer.c: Likewise.
19616 * tree-streamer-in.c: Likewise.
19617 * tree-streamer-out.c: Likewise.
19618 * tree-streamer.c: Likewise.
19620 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
19622 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
19624 * opts.c: Remove multiline #include comment.
19626 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
19628 * config/nvptx/mkoffload.c (process): Add C++ protection to
19631 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19634 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
19635 null before IEEE 128-bit floating point support patch.
19637 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19639 * simplify-rtx.c (simplify_ternary_operation): Add simplification
19640 for (!c) != {0,...,0} ? a : b for vector modes.
19642 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
19643 Martin Jambor <mjambor@suse.cz>
19645 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
19646 struct func_body_info* instead of struct ipa_node_params*, expecting
19647 fbi->info to be filled in. Replace throughout. Adjust call to
19648 ipa_load_from_parm_agg.
19649 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
19650 instead of struct ipa_node_params*. Adjust calls to other functions
19651 so that they pass either fbi or fbi->info.
19652 (set_switch_stmt_execution_predicate): Likewise.
19653 (will_be_nonconstant_predicate): Likewise.
19654 (compute_bb_predicates): Likewise.
19655 (estimate_function_body_sizes): Move asserts earlier. Fill in
19656 struct func_body_info, replace parms_info with fbi.info. Adjust
19657 calls to functions that now accept struct func_body_info.
19658 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
19659 (struct func_body_info): Likewise.
19660 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
19661 remove static. Adjust callers.
19662 (ipa_load_from_parm_agg): Remove.
19663 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
19664 (func_body_info): Likewise.
19665 (ipa_load_from_parm_agg): Adjust prototype.
19667 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19669 * gensupport.c (rtx_handle_directive): Adjust.
19670 * read-rtl.c (apply_iterators): Take vector to add rtxs to
19671 instead of expr list rtx.
19672 (add_define_attr_for_define_subst): Likewise.
19673 (add_define_subst_attr): Likewise.
19674 (read_subst_mapping): Likewise.
19675 (read_rtx): Likewise.
19676 * rtl.h (read_rtx): Adjust.
19678 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19680 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
19682 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19685 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
19686 (*tls_local_dynamic_base_64_<mode>): Ditto.
19687 (*tls_local_dynamic_base_64_largepic): Ditto.
19688 (tls_global_dynamic_64_<mode>): Update expander pattern.
19689 (tls_local_dynamic_base_64_<mode>): Ditto.
19691 2015-07-15 Richard Biener <rguenther@suse.de>
19693 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
19694 and bool_var == 1 -> bool_var simplifications ...
19695 * match.pd: ... to patterns here. Factor out negate_expr_p
19696 cases from the A - B -> A + (-B) patterns as negate_expr_p
19697 predicate and add a -(A + B) -> (-B) - A pattern.
19699 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
19701 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
19703 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
19704 Robert Suchanek <robert.suchanek@imgtec.com>
19706 * config/mips/mips.c (mips_int_mask): New enum.
19707 (mips_shadow_set): Likewise.
19708 (int_mask): New variable.
19709 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
19710 (machine_function): Add int_mask and use_shadow_register_set.
19711 (mips_attribute_table): Add attribute handlers for interrupt and
19712 use_shadow_register_set.
19713 (mips_interrupt_mask): New static function.
19714 (mips_handle_interrupt_attr): Likewise.
19715 (mips_handle_use_shadow_register_set_attr): Likewise.
19716 (mips_use_shadow_register_set): Change return type to enum
19717 mips_shadow_set. Add argument handling for use_shadow_register_set
19719 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
19720 compare with mips_shadow_set enum.
19721 (mips_compute_frame_info): Add interrupt mask and
19722 use_shadow_register_set to per-function information structure.
19723 Add a stack slot for EPC unconditionally.
19724 (mips_expand_prologue): Compare use_shadow_register_set value
19725 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
19726 masked interrupt register but in EIC mode use K0 and save Cause in K0.
19727 EPC saved and restored unconditionally. Use PMODE_INSN macro when
19728 copying the stack pointer from the shadow register set.
19729 * config/mips/mips.h (SR_IM0): New define.
19730 * config/mips/mips.md (mips_rdpgpr): Rename to...
19731 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
19732 * doc/extend.texi (Declaring Attributes of Functions): Document
19733 optional arguments for interrupt and use_shadow_register_set
19736 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
19738 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
19739 interrupt attribute.
19740 (mips_expand_prologue): Disable the floating point unit in an ISR.
19741 * config/mips/mips.h (SR_COP1): New define.
19743 2015-07-15 Richard Biener <rguenther@suse.de>
19745 * genmatch.c (parser::peek, parser::peek_ident): Add argument
19746 to tell how many tokens to peek ahead (default 1).
19747 (parser::eat_token, parser::eat_ident): Return token consumed.
19748 (parser::parse_result): Parse new switch statement.
19749 * match.pd: Use case statements where appropriate.
19751 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19753 PR rtl-optimization/58066
19754 * calls.c (expand_call): Precompute register parameters before stack
19755 alignment is performed.
19757 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19759 PR rtl-optimization/66838
19760 * postreload.c (reload_cse_move2add): Also process
19761 CALL_INSN_FUNCTION_USAGE when resetting information of
19762 call-clobbered registers.
19764 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19765 Cesar Philippidis <cesar@codesourcery.com>
19766 Chung-Lin Tang <cltang@codesourcery.com>
19768 * config/nios2/constraints.md (U, v): New constraints.
19769 * config/nios2/predicates.md (rdprs_dcache_operand): New.
19770 (ldstex_memory_operand): New.
19771 * config/nios2/sync.md: New file.
19772 * config/nios2/nios2.md (unspecv): Add new builtin function
19774 (rdprs, flushd, flushda, wrpie, eni): New patterns.
19775 (top-level): Include sync.md.
19776 * config/nios2/nios2.c (N2_FTYPES): Add function types for
19778 (N2_BUILTINS): Add arch field setting, add new builtins.
19779 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
19781 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
19782 Also handle ldex/stex/ldsex/stsex builtins.
19783 (nios2_expand_rdprs_builtin): New function.
19784 (nios2_expand_cache_builtin): New function.
19785 (nios2_expand_wrpie_builtin): New function.
19786 (nios2_expand_eni_builtin): New function.
19787 (nios2_expand_builtin): Add arch field handling and new builtin
19789 * doc/extend.texi (Altera Nios II Built-in Functions): Document
19791 * doc/md.texi (Machine Constraints): Document U and v constraints.
19793 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19794 Cesar Philippidis <cesar@codesourcery.com>
19795 Chung-Lin Tang <cltang@codesourcery.com>
19797 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
19798 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
19799 callee_save_reg_size and uses_anonymous_args fields.
19800 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
19801 (nios2_create_cfa_notes): New function.
19802 (nios2_adjust_stack): New function for adjusting stack.
19803 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
19804 Use nios2_adjust_stack.
19805 (nios2_expand_epilogue): Likewise.
19806 (nios2_expand_return): New function.
19807 (nios2_can_use_return_insn): Update for CDX pop.n usage.
19808 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
19809 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
19810 * config/nios2/nios2.md (return): Use nios2_expand_return.
19812 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19813 Cesar Philippidis <cesar@codesourcery.com>
19814 Chung-Lin Tang <cltang@codesourcery.com>
19816 * config/nios2/predicates.md (pop_operation): New.
19817 (ldwm_operation, stwm_operation): New.
19818 (nios2_hard_register_operand): New.
19819 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
19820 (ldstwm_operation_p): Declare.
19821 (gen_ldstwm_peep): Declare.
19822 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
19823 (base_reg_adjustment_p): New.
19824 (pop_operation_p): New.
19825 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
19826 (nios2_ldstwm_regset_p): New.
19827 (ldstwm_operation_p): New.
19829 (nios2_ldst_parallel): New.
19830 (struct ldswm_operand): Declare.
19831 (compare_ldstwm_operands): New.
19832 (can_use_cdx_ldstw): New.
19833 (gen_ldstwm_peep): New.
19834 * config/nios2/nios2-ldstwm.sml: New.
19835 * config/nios2/nios2.md: Include ldstwm.md.
19836 * config/nios2/ldstwm.md: Generated.
19838 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19839 Cesar Philippidis <cesar@codesourcery.com>
19840 Chung-Lin Tang <cltang@codesourcery.com>
19842 * config/nios2/nios2.h (LABEL_ALIGN): Define.
19843 (REG_ALLOC_ORDER): Define.
19844 (ADJUST_REG_ALLOC_ORDER): Define.
19845 (HONOR_REG_ALLOC_ORDER): Define.
19846 (CDX_REG_P): Define.
19847 (ANDCLEAR_INT): Define.
19848 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
19849 (nios2_label_align): Declare.
19850 (nios2_cdx_narrow_form_p): Declare.
19851 (nios2_adjust_reg_alloc_order): Declare.
19852 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
19854 (nios2_large_unspec_reloc_p): New function, split from...
19855 (nios2_legitimate_pic_operand_p): ...here.
19856 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
19857 (nios2_print_operand_punct_valid_p): New.
19858 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
19859 (split_mem_address): New.
19860 (split_alu_insn): New.
19862 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
19863 (enum nios2_add_insn_kind): New.
19864 (nios2_add_insn_names, nios2_add_insn_narrow): New.
19865 (nios2_add_insn_classify): New.
19866 (nios2_add_insn_asm): New.
19867 (nios2_cdx_narrow_form_p): New.
19868 (label_align, min_labelno, max_labelno): New.
19869 (nios2_reorg): New.
19870 (nios2_label_align): New.
19871 (nios2_adjust_reg_alloc_order): New.
19872 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19873 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19874 * config/nios2/constraints.md (P): New constraint.
19875 * config/nios2/predicates.md (const_and_operand): New.
19876 (and_operand): New.
19877 (stack_memory_operand): New.
19878 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
19879 (length): Update to use nios2_cdx_narrow_form_p().
19880 (type): Add new insn type values.
19881 (control, alu, st, ld, shift): Update insn reservations with
19882 new insn type values.
19883 (*high, *lo_sum): Define new insn patterns for constant generation.
19884 (movqi_internal, movhi_internal, movsi_internal): Reduce
19885 alternatives, update asm template to handle CDX variants, update
19887 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
19888 template, update type attributes.
19889 (extendhisi2, extendqi<mode>2): Likewise.
19890 (addsi3): Change to use function for asm string.
19891 (subsi3): Add CDX notation to asm template, update type attributes.
19892 (negsi3, one_cmplsi3): Likewise.
19893 (andsi3): New pattern, specialized from logical patterns.
19894 (<code>si3): Remove and case, combine alternatives, update asm
19896 (<shift_op>si3): Add CDX notation, update type attributes.
19897 (rotrsi3): Update type attribute.
19898 (*merge, extzv, insv): New insn patterns.
19899 (return): Change to define_expand.
19900 (simple_return): Add CDX notation, update type attributes.
19901 (indirect_jump): Add CDX notation.
19902 (jump): Update asm cases, update length attribute expression.
19903 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
19904 (nios2_cbranch): Update asm cases and length attribute expression
19905 to handle CDX variants.
19906 (nios2_cmp<code>): Update asm template.
19907 (nop): Add CDX notation, update type attributes.
19908 (trap): Add CDX notation.
19909 (ctrapsi4): Update asm cases and length attribute expression to
19910 handle CDX variant.
19911 * doc/md.texi (Machine Constraints): Document P constraint.
19913 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19914 Cesar Philippidis <cesar@codesourcery.com>
19915 Chung-Lin Tang <cltang@codesourcery.com>
19917 * config/nios2/nios2.h (SMALL_INT12): New macro.
19918 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
19919 (nios2_valid_addr_expr_p): Use it.
19920 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
19921 with implicit "io" instructions on R2.
19922 * config/nios2/constraints.md (w): New constraint.
19923 * config/nios2/predicates.md (ldstio_memory_operand): New.
19924 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
19925 operand predicate and constraint.
19926 (ld<bh>io_signed, st<bhw>io>): Likewise.
19927 * doc/md.texi (Machine Constraints): Document w constraint.
19929 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19930 Cesar Philippidis <cesar@codesourcery.com>
19931 Chung-Lin Tang <cltang@codesourcery.com>
19933 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
19934 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
19935 Nios II architecture level.
19936 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
19937 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
19938 (OPTION_DEFAULT_SPECS): Define.
19939 (ASM_SPEC): Add -march= spec strings.
19940 * config/nios2/nios2.c (nios2_option_override): Check for
19941 conflicts involving new options.
19942 * config.gcc (nios2*-*-*): Support --with-arch=.
19943 * doc/invoke.texi (Option Summary, Nios II Options): Document
19944 -march=, -mbmx, and -mcdx.
19946 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
19948 PR rtl-optimization/66626
19949 * lra-constraints.c (lra_constraints): Prevent equivalence
19950 substitution for static chain pseudo in functions with nonlocal
19953 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19955 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
19956 (nios2_emit_stack_limit_check): Add size parameter. Handle
19957 -fstack-limit-symbol as well as -fstack-limit-register.
19958 (nios2_expand_prologue): Emit only a single stack limit check,
19959 even if multiple stack adjustments are required.
19960 (nios2_option_override): Diagnose unsupported combination of -fpic
19961 and -stack-limit-symbol.
19963 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
19965 * Makefile.in (top_srcdir): New.
19966 * configure.ac: Use AM_ZLIB.
19967 * configure: Regeneated.
19969 2015-07-14 Matthias Klose <doko@ubuntu.com>
19972 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
19974 2015-07-14 Richard Biener <rguenther@suse.de>
19976 PR tree-optimization/66863
19977 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
19978 what we record for conversion use stmt lhs inequalities.
19980 2015-07-14 Richard Biener <rguenther@suse.de>
19982 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
19983 (decision_tree::gen_gimple): Likewise.
19985 2015-07-14 Tom de Vries <tom@codesourcery.com>
19987 * gcc.c (greater_than_spec_func): Declare forward.
19988 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
19989 -ftree-parallelize-loops={0,1}.
19990 (static_spec_functions): Add greater_than_spec_func function with name
19992 (greater_than_spec_func): New function.
19994 2015-07-14 Richard Biener <rguenther@suse.de>
19996 * tree-ssa-dom.c (record_temporary_equivalences): Merge
19997 wideing type conversion case from record_equivalences_from_incoming_edge
19998 and use record_equality to record equivalences.
19999 (record_equivalences_from_incoming_edge): Call
20000 record_temporary_equivalences.
20002 2015-07-14 Richard Biener <rguenther@suse.de>
20004 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
20005 (struct if_expr): New.
20006 (struct with_expr): Likewise.
20007 (is_a_helper): Add helpers for if_expr and with_expr.
20008 (struct simplify): Add simplify_kind enum and member. Remove
20010 (simplify::simplify): Adjust.
20011 (lower_commutative): Adjust.
20012 (lower_opt_convert): Likewise.
20013 (lower_cond): Likewise.
20014 (replace_id): Handle with_expr and if_expr.
20015 (lower_for): Adjust.
20016 (dt_simplify::gen_1): New recursive worker, split out from ...
20017 (dt_simplify::gen): ... here. Deal with if and with expansion
20019 (capture_info::capture_info): Take context argument
20020 (capture_info::walk_result): Only analyze specific result.
20021 (parser::parse_result): New function.
20022 (parser::parse_simplify): Adjust to parse ifs with then end
20024 (parser::parse_if): Simplify.
20025 (parser::parse_pattern): Pass down simplify kind.
20026 * match.pd: Convert if structure to new syntax.
20028 2015-07-13 Marek Polacek <polacek@redhat.com>
20030 * rtl.c (rtx_equal_p_cb): Fix typo.
20032 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
20034 * omega.h: Don't include config.h, don't include params.h again if
20035 omega.h has already been included.
20036 * graphite-poly.h: Include sese.h.
20037 * graphite.c: Don't include sese.h, remove needless includes and
20038 minimize includes outside #ifdef HAVE_isl block.
20039 * graphite-blocking.c: Don't include sese.h, remove needless includes,
20040 and wrap entire file in #ifdef HAVE_isl
20041 * graphite-dependences.c: Likewise.
20042 * graphite-interchange.c: Likewise.
20043 * graphite-isl-ast-to-gimple.c: Likewise.
20044 * graphite-optimize-isl.c: Likewise.
20045 * graphite-poly.c: Likewise.
20046 * graphite-scop-detection.c: Likewise.
20047 * graphite-sese-to-poly.c: Likewise.
20049 2015-07-13 Tom de Vries <tom@codesourcery.com>
20051 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
20053 2015-07-13 Renlin Li <renlin.li@arm.com>
20056 * simplify-rtx.c (simplify_const_relational_operation): Add
20057 side_effects_p checks.
20059 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
20061 * bitmap.h: Fix double word typos.
20062 * builtins.c: Same.
20064 * cfgloopmanip.c: Same.
20067 * cgraphclones.c: Same.
20069 * config/aarch64/aarch64-protos.h: Same.
20070 * config/aarch64/aarch64.c: Same.
20071 * config/aarch64/aarch64.md: Same.
20072 * config/arm/arm.md: Same.
20073 * config/arm/arm1020e.md: Same.
20074 * config/arm/arm1026ejs.md: Same.
20075 * config/arm/arm926ejs.md: Same.
20076 * config/arm/fa526.md: Same.
20077 * config/arm/fa606te.md: Same.
20078 * config/arm/fa626te.md: Same.
20079 * config/arm/fa726te.md: Same.
20080 * config/arm/fmp626.md: Same.
20081 * config/darwin.c: Same.
20082 * config/epiphany/epiphany.c: Same.
20083 * config/frv/frv.c: Same.
20084 * config/ft32/ft32.c: Same.
20085 * config/gnu-user.h: Same.
20086 * config/h8300/constraints.md: Same.
20087 * config/i386/i386.c: Same.
20088 * config/i386/i386.md: Same.
20089 * config/iq2000/iq2000.md: Same.
20090 * config/mips/mips.c: Same.
20091 * config/mmix/mmix.md: Same.
20092 * config/moxie/moxie.c: Same.
20093 * config/nds32/nds32.md: Same.
20094 * config/pa/pa.h: Same.
20095 * config/rs6000/aix.h: Same.
20096 * config/rs6000/rs6000.h: Same.
20097 * config/sh/sh.c: Same.
20098 * config/tilegx/tilegx.md: Same.
20099 * config/tilepro/gen-mul-tables.cc: Same.
20102 * doc/invoke.texi: Same.
20104 * dwarf2out.c: Same.
20107 * genmatch.c: Same.
20108 * gimplify.c: Same.
20109 * hash-table.h: Same.
20110 * internal-fn.c: Same.
20112 * ipa-devirt.c: Same.
20115 * ipa-profile.c: Same.
20116 * ipa-prop.c: Same.
20117 * ipa-prop.h: Same.
20120 * reg-stack.c: Same.
20121 * regcprop.c: Same.
20126 * tree-inline.c: Same.
20127 * tree-sra.c: Same.
20128 * tree-ssa-dom.c: Same.
20129 * tree-ssa-loop-ivopts.c: Same.
20130 * tree-ssa-structalias.c: Same.
20131 * tree-ssa-tail-merge.c: Same.
20132 * tree-ssa-ter.c: Same.
20133 * tree-ssa-threadupdate.c: Same.
20134 * tree-ssa-uninit.c: Same.
20135 * tree-ssanames.c: Same.
20136 * tree-vect-loop-manip.c: Same.
20137 * tree-vrp.c: Same.
20139 * valtrack.c: Same.
20142 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20144 PR middle-end/66726
20145 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
20146 tree_ssa_phiopt_worker): Call it.
20148 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20150 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
20151 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
20154 2015-07-11 Marek Polacek <polacek@redhat.com>
20156 PR middle-end/66353
20157 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
20158 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
20159 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
20160 rather than bb_has_abnormal_call_pred.
20161 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
20162 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
20163 rather than bb_has_abnormal_call_pred.
20165 2015-07-10 Anatoly Sokolov <aesok@post.ru>
20167 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
20168 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
20169 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20170 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
20171 v850_legitimate_address_p): New functions.
20172 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20174 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
20177 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
20178 indirect sibcall with register arguments if register available
20179 for argument passing.
20180 (init_cumulative_args): Set cfun->machine->arg_reg_available
20181 to (cum->nregs > 0) or to true if function has a variable
20183 (function_arg_advance_32): Set cfun->machine->arg_reg_available
20184 to false if cum->nregs <= 0.
20185 * config/i386/i386.h (machine_function): Add arg_reg_available.
20187 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
20189 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
20190 and gen_higpart instead of gen_rtx_SUBREG.
20191 * config/i386/i386.md
20192 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
20193 (read-modify peephole2): Use gen_lowpart instead of
20194 gen_rtx_SUBREG for operand 5.
20196 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
20198 * config/tilepro/gen-mul-tables.cc (main): Change include list for
20200 * config/tilepro/mul-tables.c: Regenerate.
20201 * config/tilegx/mul-tables.c: Regenerate.
20203 2015-07-10 Richard Biener <rguenther@suse.de>
20205 * fold-const.c (distribute_bit_expr): Remove.
20206 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
20207 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
20208 to A & (B | C) and simplifying A << C1 << C2 to ...
20209 * match.pd: ... patterns here.
20211 2015-07-10 Jiong Wang <jiong.wang@arm.com>
20213 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
20214 Mark mem as READONLY and NOTRAP for PIC symbol.
20216 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
20218 * gimple-predict.h: New file.
20219 (gimple_predict_predictor, gimple_predict_set_predictor,
20220 gimple_predict_outcome, gimple_predict_set_outcome,
20221 gimple_build_predict): Relocate here.
20222 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
20223 gimple_predict_outcome, gimple_predict_set_outcome): Move to
20225 * gimple.c (gimple_build_predict): Move to gimple-predict.h
20226 * basic-block.h: Don't include cfghooks.h.
20227 * backend.h: Don't include predict.h.
20228 * cfghooks.h: Include predict.h.
20229 * gimple-pretty-print.c: Include gimple-predict.h.
20230 * gimplify.c: Likwise.
20231 * predict.c: Adjust includes.
20232 * tree-inline.c: Likewise.
20233 * asan.c: Likewise.
20234 * auto-inc-dec.c: Likewise.
20235 * auto-profile.c: Likewise.
20236 * bb-reorder.c: Likewise.
20237 * builtins.c: Likewise.
20238 * caller-save.c: Likewise.
20239 * calls.c: Likewise.
20240 * cfganal.c: Likewise.
20241 * cfgbuild.c: Likewise.
20243 * cfgcleanup.c: Likewise.
20244 * cfgexpand.c: Likewise.
20245 * cfghooks.c: Likewise.
20246 * cfgloopanal.c: Likewise.
20247 * cfgloop.c: Likewise.
20248 * cfgloopmanip.c: Likewise.
20249 * cfgrtl.c: Likewise.
20250 * cgraph.c: Likewise.
20251 * cgraphunit.c: Likewise.
20252 * combine.c: Likewise.
20253 * cprop.c: Likewise.
20256 * dojump.c: Likewise.
20258 * except.c: Likewise.
20259 * expmed.c: Likewise.
20260 * expr.c: Likewise.
20261 * final.c: Likewise.
20262 * fold-const.c: Likewise.
20263 * function.c: Likewise.
20264 * fwprop.c: Likewise.
20265 * gcc-plugin.h: Likewise.
20266 * gcse.c: Likewise.
20267 * genattrtab.c: Likewise.
20268 * genemit.c: Likewise.
20269 * gengtype.c: Likewise.
20270 * genopinit.c: Likewise.
20271 * genoutput.c: Likewise.
20272 * genpreds.c: Likewise.
20273 * genrecog.c: Likewise.
20274 * gimple-fold.c: Likewise.
20275 * gimple-iterator.c: Likewise.
20276 * gimple-ssa-isolate-paths.c: Likewise.
20277 * gimple-ssa-strength-reduction.c: Likewise.
20278 * graph.c: Likewise.
20279 * graphite-blocking.c: Likewise.
20280 * graphite.c: Likewise.
20281 * graphite-dependences.c: Likewise.
20282 * graphite-interchange.c: Likewise.
20283 * graphite-isl-ast-to-gimple.c: Likewise.
20284 * graphite-optimize-isl.c: Likewise.
20285 * graphite-poly.c: Likewise.
20286 * graphite-scop-detection.c: Likewise.
20287 * graphite-sese-to-poly.c: Likewise.
20288 * haifa-sched.c: Likewise.
20289 * ifcvt.c: Likewise.
20290 * internal-fn.c: Likewise.
20291 * ipa-cp.c: Likewise.
20292 * ipa-profile.c: Likewise.
20293 * ipa-split.c: Likewise.
20294 * ipa-utils.c: Likewise.
20295 * ira-build.c: Likewise.
20296 * ira-color.c: Likewise.
20297 * ira-conflicts.c: Likewise.
20298 * ira-costs.c: Likewise.
20299 * ira-emit.c: Likewise.
20300 * ira-lives.c: Likewise.
20301 * jump.c: Likewise.
20302 * loop-doloop.c: Likewise.
20303 * loop-init.c: Likewise.
20304 * loop-invariant.c: Likewise.
20305 * loop-unroll.c: Likewise.
20306 * lower-subreg.c: Likewise.
20307 * lra-assigns.c: Likewise.
20309 * lra-coalesce.c: Likewise.
20310 * lra-constraints.c: Likewise.
20311 * lra-lives.c: Likewise.
20312 * lto-cgraph.c: Likewise.
20313 * lto-streamer-in.c: Likewise.
20314 * mode-switching.c: Likewise.
20315 * modulo-sched.c: Likewise.
20316 * omp-low.c: Likewise.
20317 * optabs.c: Likewise.
20318 * passes.c: Likewise.
20319 * postreload.c: Likewise.
20320 * postreload-gcse.c: Likewise.
20321 * profile.c: Likewise.
20322 * recog.c: Likewise.
20323 * regstat.c: Likewise.
20324 * reload1.c: Likewise.
20325 * reorg.c: Likewise.
20326 * rtlanal.c: Likewise.
20327 * sched-ebb.c: Likewise.
20328 * sel-sched-ir.c: Likewise.
20329 * sese.c: Likewise.
20330 * shrink-wrap.c: Likewise.
20331 * simplify-rtx.c: Likewise.
20332 * stmt.c: Likewise.
20333 * store-motion.c: Likewise.
20334 * tracer.c: Likewise.
20335 * trans-mem.c: Likewise.
20336 * tree-call-cdce.c: Likewise.
20337 * tree-cfg.c: Likewise.
20338 * tree-cfgcleanup.c: Likewise.
20339 * tree-chkp.c: Likewise.
20340 * tree-complex.c: Likewise.
20341 * tree-eh.c: Likewise.
20342 * tree-if-conv.c: Likewise.
20343 * tree-loop-distribution.c: Likewise.
20344 * tree-outof-ssa.c: Likewise.
20345 * tree-parloops.c: Likewise.
20346 * tree-predcom.c: Likewise.
20347 * tree-pretty-print.c: Likewise.
20348 * tree-profile.c: Likewise.
20349 * tree-sra.c: Likewise.
20350 * tree-ssa.c: Likewise.
20351 * tree-ssa-coalesce.c: Likewise.
20352 * tree-ssa-dce.c: Likewise.
20353 * tree-ssa-dom.c: Likewise.
20354 * tree-ssa-forwprop.c: Likewise.
20355 * tree-ssa-ifcombine.c: Likewise.
20356 * tree-ssa-loop-ch.c: Likewise.
20357 * tree-ssa-loop-im.c: Likewise.
20358 * tree-ssa-loop-ivcanon.c: Likewise.
20359 * tree-ssa-loop-ivopts.c: Likewise.
20360 * tree-ssa-loop-manip.c: Likewise.
20361 * tree-ssa-loop-prefetch.c: Likewise.
20362 * tree-ssa-loop-unswitch.c: Likewise.
20363 * tree-ssa-math-opts.c: Likewise.
20364 * tree-ssa-phiopt.c: Likewise.
20365 * tree-ssa-pre.c: Likewise.
20366 * tree-ssa-reassoc.c: Likewise.
20367 * tree-ssa-sink.c: Likewise.
20368 * tree-ssa-tail-merge.c: Likewise.
20369 * tree-ssa-threadedge.c: Likewise.
20370 * tree-ssa-threadupdate.c: Likewise.
20371 * tree-switch-conversion.c: Likewise.
20372 * tree-tailcall.c: Likewise.
20373 * tree-vect-data-refs.c: Likewise.
20374 * tree-vect-loop.c: Likewise.
20375 * tree-vect-loop-manip.c: Likewise.
20376 * tree-vectorizer.c: Likewise.
20377 * tree-vrp.c: Likewise.
20378 * ubsan.c: Likewise.
20379 * value-prof.c: Likewise.
20380 * varasm.c: Likewise.
20381 * var-tracking.c: Likewise.
20382 * config/aarch64/aarch64-builtins.c: Likewise.
20383 * config/aarch64/aarch64.c: Likewise.
20384 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20385 * config/alpha/alpha.c: Likewise.
20386 * config/arc/arc.c: Likewise.
20387 * config/arm/arm.c: Likewise.
20388 * config/avr/avr.c: Likewise.
20389 * config/bfin/bfin.c: Likewise.
20390 * config/c6x/c6x.c: Likewise.
20391 * config/cr16/cr16.c: Likewise.
20392 * config/cris/cris.c: Likewise.
20393 * config/darwin.c: Likewise.
20394 * config/darwin-c.c: Likewise.
20395 * config/epiphany/epiphany.c: Likewise.
20396 * config/epiphany/mode-switch-use.c: Likewise.
20397 * config/epiphany/resolve-sw-modes.c: Likewise.
20398 * config/fr30/fr30.c: Likewise.
20399 * config/frv/frv.c: Likewise.
20400 * config/ft32/ft32.c: Likewise.
20401 * config/h8300/h8300.c: Likewise.
20402 * config/i386/i386.c: Likewise.
20403 * config/i386/winnt.c: Likewise.
20404 * config/ia64/ia64.c: Likewise.
20405 * config/iq2000/iq2000.c: Likewise.
20406 * config/lm32/lm32.c: Likewise.
20407 * config/m32c/m32c.c: Likewise.
20408 * config/m32r/m32r.c: Likewise.
20409 * config/m68k/m68k.c: Likewise.
20410 * config/mcore/mcore.c: Likewise.
20411 * config/mep/mep.c: Likewise.
20412 * config/microblaze/microblaze.c: Likewise.
20413 * config/mips/mips.c: Likewise.
20414 * config/mmix/mmix.c: Likewise.
20415 * config/mn10300/mn10300.c: Likewise.
20416 * config/moxie/moxie.c: Likewise.
20417 * config/msp430/msp430.c: Likewise.
20418 * config/nds32/nds32.c: Likewise.
20419 * config/nds32/nds32-cost.c: Likewise.
20420 * config/nds32/nds32-fp-as-gp.c: Likewise.
20421 * config/nds32/nds32-intrinsic.c: Likewise.
20422 * config/nds32/nds32-isr.c: Likewise.
20423 * config/nds32/nds32-md-auxiliary.c: Likewise.
20424 * config/nds32/nds32-memory-manipulation.c: Likewise.
20425 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20426 * config/nds32/nds32-predicates.c: Likewise.
20427 * config/nios2/nios2.c: Likewise.
20428 * config/nvptx/nvptx.c: Likewise.
20429 * config/pa/pa.c: Likewise.
20430 * config/pdp11/pdp11.c: Likewise.
20431 * config/rl78/rl78.c: Likewise.
20432 * config/rs6000/rs6000.c: Likewise.
20433 * config/rx/rx.c: Likewise.
20434 * config/s390/s390.c: Likewise.
20435 * config/sh/sh.c: Likewise.
20436 * config/sh/sh-mem.cc: Likewise.
20437 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20438 * config/sh/sh_treg_combine.cc: Likewise.
20439 * config/sparc/sparc.c: Likewise.
20440 * config/spu/spu.c: Likewise.
20441 * config/stormy16/stormy16.c: Likewise.
20442 * config/tilegx/tilegx.c: Likewise.
20443 * config/tilepro/tilepro.c: Likewise.
20444 * config/v850/v850.c: Likewise.
20445 * config/vax/vax.c: Likewise.
20446 * config/visium/visium.c: Likewise.
20447 * config/xtensa/xtensa.c: Likewise.
20449 2015-07-10 Richard Biener <rguenther@suse.de>
20451 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
20452 (decision_tree::gen_gimple): Likewise.
20453 (decision_tree::gen_generic): Likewise.
20455 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
20458 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
20459 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
20461 2015-07-10 Jakub Jelinek <jakub@redhat.com>
20463 PR middle-end/66820
20464 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
20465 or ORT_TASK contexts.
20466 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
20469 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20471 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
20474 2015-07-10 Tom de Vries <tom@codesourcery.com>
20476 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
20477 insert nit + 1 bound.
20479 2015-07-10 Richard Biener <rguenther@suse.de>
20481 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
20482 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
20483 (if_convertible_loop_p_1): For this always compute bb predicates.
20484 (if_convertible_loop_p): And free them.
20486 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20488 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
20491 2015-07-10 Richard Biener <rguenther@suse.de>
20493 PR tree-optimization/66823
20494 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
20495 inverted predicate.
20497 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
20499 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
20500 to handle mips[32|64]r3 and mips[32|64]r5.
20502 2015-07-09 Jakub Jelinek <jakub@redhat.com>
20504 PR middle-end/66633
20505 * tree-nested.c (get_static_chain): Or in a flag into
20506 info->static_chain_added.
20507 (get_frame_field, get_nonlocal_debug_decl): Likewise.
20508 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
20509 2015-07-01 changes.
20510 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
20511 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
20514 PR tree-optimization/66718
20515 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
20517 (vect_simd_lane_linear): New function.
20518 (vectorizable_simd_clone_call): Support using linear arguments for
20519 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
20521 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20524 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
20526 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
20528 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
20529 Use machine mode, not enum machine_mode in the prototype.
20531 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
20532 classify 128-bit floating point support.
20533 (FLOAT128_IBM_P): Likewise.
20534 (FLOAT128_VECTOR_P): Likewise.
20535 (FLOAT128_2REG_P): Likewise.
20536 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
20537 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
20538 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
20539 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
20541 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
20542 tests against TFmode/TDmode, since those modes do not use VSX
20544 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
20546 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
20547 tests against TFmode, etc.
20548 (invalid_e500_subreg): Add tests against IFmode/KFmode.
20549 (reg_offset_addressing_ok_p): Likewise.
20550 (rs6000_legitimate_offset_address_p): Likewise.
20551 (rs6000_legitimize_address): Likewise.
20552 (rs6000_legitimize_reload_address): Likewise.
20553 (rs6000_legitimate_address_p): Clean up tests against TFmode and
20554 TDmode to use the new helper macros, which will include IFmode and
20556 (rs6000_emit_move): Likewise.
20557 (rs6000_darwin64_record_arg_recurse): Likewise.
20558 (print_operand): Likewise.
20559 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
20560 that uses a single vector register as a vector and not as a
20561 floating point register in terms of the calling sequence.
20562 (rs6000_discover_homogeneous_aggregate): Likewise.
20563 (rs6000_return_in_memory): Likewise.
20564 (init_cumulative_args): Likewise.
20565 (rs6000_function_arg_boundary): Likewise.
20566 (rs6000_function_arg_advance_1): Likewise.
20567 (rs6000_function_arg): Likewise.
20568 (rs6000_pass_by_reference): Likewise.
20569 (rs6000_gimplify_va_arg): Likewise.
20570 (rs6000_secondary_reload_memory): Use machine_mode not enum
20572 (rs6000_split_multireg_move): Use new helper macros.
20573 (spe_func_has_64bit_regs_p): Likewise.
20574 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
20575 (output_toc): Use new helper macros.
20576 (rs6000_register_move_cost): Likewise.
20577 (rs6000_function_value): Add IEEE 128-bit floating point calling
20579 (rs6000_libcall_value): Likewise.
20580 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
20581 floating point support.
20582 (rs6000_vector_mode_supported_p): Likewise.
20584 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
20586 PR rtl-optimization/66782
20587 * lra-int.h (struct lra_insn_recog_data): Add comment about
20588 clobbered hard regs for arg_hard_regs.
20589 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
20590 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
20591 Add condition for processing used hard regs.
20592 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
20593 Process clobbered hard regs.
20595 2015-07-09 Michael Matz <matz@suse.de>
20597 * genmatch.c (fprintf_indent): New function.
20598 (operand::gen_transform): Add indent parameter.
20599 (expr::gen_transform, c_expr::gen_transform,
20600 capture::gen_transform): Ditto and use fprintf_indent.
20601 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
20602 (dt_operand::gen, dt_operand::gen_predicate,
20603 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
20604 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
20605 (decision_tree::gen_gimple): Adjust calls and indent generated
20607 (decision_tree::gen_generic): Ditto.
20608 (write_predicate): Ditto.
20610 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20613 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
20614 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
20615 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
20616 {GENERAL,SSE,MMX}_REG_P where appropriate.
20618 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
20620 * lto-streamer.h: Don't include target.h and alloc-pool.h.
20621 * builtins.c: Adjust includes.
20622 * gimple.c: Likewise.
20623 * ipa-icf.c: Likewise.
20624 * lto-opts.c: Likewise.
20625 * ipa-reference.c: Likewise.
20626 * lto-section-out.c: Likewise.
20627 * lto-streamer-in.c: Likewise.
20628 * lto-streamer-out.c: Likewise.
20629 * opts-global.c: Likewise.
20630 * symtab.c: Likewise.
20631 * tree-chkp.c: Likewise.
20632 * tree-ssa-live.c: Likewise.
20633 * tree-streamer-in.c: Likewise.
20634 * tree-streamer-out.c: Likewise.
20635 * config/darwin.c: Likewise.
20636 * config/i386/winnt.c: Likewise.
20638 2015-07-09 Richard Biener <rguenther@suse.de>
20640 * genmatch.c (struct expr): Add force_single_use flag.
20641 (expr::expr): Add copy constructor.
20642 (capture_info::walk_match): Gather force_single_use captures.
20643 (expr::gen_transform): Use possibly NULLified sequence.
20644 (dt_simplify::gen): Apply single-use restrictions by NULLifying
20645 seq if any constrained expr is not single-use.
20646 (parser::parse_expr): Refactor to allow multiple flags. Handle
20647 's' flag to force an expression have a single-use if the pattern
20648 simplifies to more than one statement.
20649 * match.pd: Convert most single_use conditionals to :s flags.
20651 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20653 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
20654 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20655 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
20657 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
20659 * flags.h: Don't include flag-types.h or options.h.
20660 * opts-common.c: Adjust includes.
20661 * opts-global.c: Likewise.
20662 * common/config/epiphany/epiphany-common.c: Likewise.
20664 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20667 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
20670 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20673 * config/i386/i386.c (ix86_return_in_memory): Return true
20674 if int_size_in_bytes returns negative for IA MCU.
20676 2015-07-09 Marek Polacek <polacek@redhat.com>
20678 PR tree-optimization/66718
20679 * Makefile.in (OBJS): Add gimple-laddress.o.
20680 * passes.def: Schedule pass_laddress.
20681 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
20682 * tree-pass.h (make_pass_laddress): Declare.
20683 * gimple-laddress.c: New file.
20685 2015-07-09 Richard Biener <rguenther@suse.de>
20687 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
20689 2015-07-09 Richard Biener <rguenther@suse.de>
20691 PR tree-optimization/66807
20692 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
20694 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
20696 * function.c (stack_protect_epilogue): Use if rather than switch for
20697 check targetm.have_stack_protect_test.
20699 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20701 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
20702 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
20703 * config/arc/arc.h: Likewise.
20704 * config/arm/arm.h: Likewise.
20705 * config/bfin/bfin.h: Likewise.
20706 * config/epiphany/epiphany.h: Likewise.
20707 * config/frv/frv.h: Likewise.
20708 * config/ia64/ia64.h: Likewise.
20709 * config/iq2000/iq2000.h: Likewise.
20710 * config/lm32/lm32.h: Likewise.
20711 * config/m32r/m32r.h: Likewise.
20712 * config/mcore/mcore.h: Likewise.
20713 * config/mep/mep.h: Likewise.
20714 * config/microblaze/microblaze.h: Likewise.
20715 * config/mips/mips.h: Likewise.
20716 * config/mmix/mmix.h: Likewise.
20717 * config/mn10300/mn10300.h: Likewise.
20718 * config/nds32/nds32.h: Likewise.
20719 * config/nios2/nios2.h: Likewise.
20720 * config/pa/pa.h: Likewise.
20721 * config/rl78/rl78.h: Likewise.
20722 * config/sh/sh.h: Likewise.
20723 * config/sparc/sparc.h: Likewise.
20724 * config/stormy16/stormy16.h: Likewise.
20725 * config/tilegx/tilegx.h: Likewise.
20726 * config/tilepro/tilepro.h: Likewise.
20727 * config/v850/v850.h: Likewise.
20728 * config/xtensa/xtensa.h: Likewise.
20729 * doc/tm.texi: Regenerate.
20730 * doc/tm.texi.in: Adjust.
20731 * combine.c (simplify_set): Likewise.
20732 (simplify_comparison): Likewise.
20733 * expr.c (store_constructor): Likewise.
20734 * internal-fn.c (expand_arith_overflow): Likewise.
20735 * reload.c (push_reload): Likewise.
20736 (find_reloads): Likewise.
20737 (find_reloads_subreg_address): Likewise.
20738 * reload1.c (eliminate_regs_1): Likewise.
20739 * rtlanal.c (nonzero_bits1): Likewise.
20740 (num_sign_bit_copies1): Likewise.
20741 * simplify-rtx.c (simplify_truncation): Likewise.
20743 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20745 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
20746 of AUTO_INC_DEC with the preprocessor.
20747 * combine.c (combine_instructions): Likewise.
20748 (can_combine_p): Likewise.
20749 (try_combine): Likewise.
20750 * emit-rtl.c (try_split): Likewise.
20751 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20752 * lower-subreg.c (resolve_simple_move): Likewise.
20753 * lra.c (update_inc_notes): Likewise.
20754 * recog.c (asm_operand_ok): Likewise.
20755 (constrain_operands): Likewise.
20756 * regrename.c (scan_rtx_address): Likewise.
20757 * reload.c (update_auto_inc_notes): Likewise.
20758 (reg_inc_found_and_valid_p): Likewise.
20759 * reload1.c (reload): Likewise.
20760 (emit_input_reload_insns): Likewise.
20761 (delete_output_reload): Likewise.
20762 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20763 * valtrack.c (cleanup_auto_inc_dec): Likewise.
20765 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20767 * rtl.h: Always define AUTO_INC_DEC.
20768 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
20769 * combine.c (combine_instructions): Likewise.
20770 (can_combine_p): Likewise.
20771 (try_combine): Likewise.
20772 * emit-rtl.c (try_split): Likewise.
20773 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20774 * lower-subreg.c (resolve_simple_move): Likewise.
20775 * lra.c (update_inc_notes): Likewise.
20776 * recog.c (asm_operand_ok): Likewise.
20777 (constrain_operands): Likewise.
20778 * regrename.c (scan_rtx_address): Likewise.
20779 * reload.c (update_auto_inc_notes): Likewise.
20780 (find_equiv_reg): Likewise.
20781 * reload1.c (reload): Likewise.
20782 (reload_as_needed): Likewise.
20783 (choose_reload_regs): Likewise.
20784 (emit_input_reload_insns): Likewise.
20785 (delete_output_reload): Likewise.
20786 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20787 * valtrack.c (cleanup_auto_inc_dec): Likewise.
20789 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20791 * combine.c (can_combine_def_p): Don't check the value of
20792 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
20793 (combinable_i3pat): Likewise.
20794 (mark_used_regs_combine): Likewise.
20795 * regrename.c (rename_chains): Likewise.
20796 * reload.c (find_reloads_address): Likewise.
20797 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20799 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20801 * combine.c (update_rsp_from_reg_equal): Don't check if
20802 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
20803 (reg_nonzero_bits_for_combine): Likewise.
20804 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
20806 * config/frv/frv.h: Likewise.
20807 * config/lm32/lm32.h: Likewise.
20808 * config/mep/mep.h: Likewise.
20809 * config/mips/mips.h: Likewise.
20810 * config/rs6000/rs6000.h: Likewise.
20811 * config/sh/sh.h: Likewise.
20812 * config/tilegx/tilegx.h (enum reg_class): Likewise.
20813 * config/tilepro/tilepro.h: Likewise.
20814 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
20815 * doc/tm.texi: Regenerate.
20816 * doc/tm.texi.in: Adjust.
20817 * rtlanal.c (nonzero_bits1): Likewise.
20819 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20821 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
20822 with the preprocessor.
20823 (combine_instructions): Likewise.
20824 (try_combine): Likewise.
20826 (distribute_notes): Likewise.
20828 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20830 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
20832 (simplify_set): Likewise.
20833 * cse.c (cse_insn): Likewise.
20834 * fold-const.c (fold_single_bit_test): Likewise.
20835 (fold_unary_loc): Likewise.
20836 * postreload.c (reload_cse_simplify_set): Likewise.
20837 (reload_cse_simplify_operands): Likewise.
20839 2015-07-08 Jiong Wang <jiong.wang@arm.com>
20841 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
20842 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
20844 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20847 * config/i386/x86intrin.h: Include <adxintrin.h> even if
20848 __iamcu__ is defined.
20850 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20852 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
20854 2015-07-08 Iain Sandoe <iain@codesourcery.com>
20857 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
20858 names from preservation.
20860 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20863 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
20865 (function_arg_advance_32): Don't pass vectors in registers for
20867 (function_arg_32): Likewise.
20868 (ix86_return_in_memory): Don't return vectors in registers for
20871 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
20873 PR middle-end/66334
20874 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
20875 hard regno live at the start of BB with incoming abnormal edges.
20876 * lra-lives.c (process_bb_lives): Ditto.
20878 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
20881 * config/nvptx/mkoffload.c (main): Create an offload image only in
20882 64-bit configurations.
20884 2015-07-08 Martin Liska <mliska@suse.cz>
20887 * tree-sra.c (create_access_1): Call ctor without brackets.
20888 (create_artificial_child_access): Likewise.
20890 2015-07-08 Richard Biener <rguenther@suse.de>
20892 PR tree-optimization/66793
20893 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
20894 Properly split the block after stmts ending it.
20896 2015-07-08 Richard Biener <rguenther@suse.de>
20898 PR tree-optimization/66794
20899 * passes.c (execute_function_todo): Assert that post-dominators
20901 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
20902 Free post-dominators.
20904 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20906 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
20909 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20911 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
20912 more than or equal 8 and less than 32 when optimizing for size.
20914 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20916 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
20917 COSTS_N_INSNS (1) and increment it appropriately throughout the
20920 2015-07-08 Richard Biener <rguenther@suse.de>
20922 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
20924 2015-07-08 Alan Modra <amodra@gmail.com>
20926 * target.def (rtx_costs): Remove "code" param, add "mode".
20927 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
20928 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
20929 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
20930 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
20931 call. Track mode when given in rtx.
20932 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
20933 (default_address_cost): Pass Pmode to rtx_cost.
20934 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
20935 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
20937 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
20938 (notreg_cost): Add mode param. Use it.
20939 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
20940 mode param and pass to set_src_cost. Update all calls.
20941 (hash_scan_set): Formatting.
20942 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
20943 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
20945 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
20946 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
20947 emit_store_flag): Update set_src_cost and rtx_cost calls.
20948 * auto-inc-dec.c (attempt_change): Likewise.
20949 * calls.c (precompute_register_parameters): Likewise.
20950 * combine.c (expand_compound_operation, make_extraction,
20951 force_to_mode, distribute_and_simplify_rtx): Likewise.
20952 * dojump.c (prefer_and_bit_test): Likewise.
20953 * dse.c (find_shift_sequence): Likewise.
20954 * expr.c (compress_float_constant): Likewise.
20955 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
20956 * ifcvt.c (noce_try_sign_mask): Likewise.
20957 * loop-doloop.c (doloop_optimize): Likewise.
20958 * loop-invariant.c (create_new_invariant): Likewise.
20959 * lower-subreg.c (shift_cost, compute_costs): Likewise.
20960 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
20961 lshift_cheap_p): Likewise.
20962 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
20963 try_replace_in_use, reload_cse_move2add): Likewise.
20964 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
20966 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20967 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20968 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
20969 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20970 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
20971 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
20973 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
20974 * config/arc/arc.c (arc_rtx_costs): Likewise.
20975 * config/arm/arm.c (arm_rtx_costs): Likewise.
20976 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
20977 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
20978 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
20979 * config/cris/cris.c (cris_rtx_costs): Likewise.
20980 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
20981 * config/frv/frv.c (frv_rtx_costs): Likewise.
20982 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
20983 * config/i386/i386.c (ix86_rtx_costs): Likewise.
20984 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
20985 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
20986 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
20987 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
20988 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
20989 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
20990 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
20991 * config/mep/mep.c (mep_rtx_cost): Likewise.
20992 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
20993 * config/mips/mips.c (mips_rtx_costs): Likewise.
20994 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
20995 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
20996 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
20997 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
20998 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
20999 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
21000 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
21001 * config/pa/pa.c (hppa_rtx_costs): Likewise.
21002 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
21003 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
21004 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
21005 * config/s390/s390.c (s390_rtx_costs): Likewise.
21006 * config/sh/sh.c (sh_rtx_costs): Likewise.
21007 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
21008 * config/spu/spu.c (spu_rtx_costs): Likewise.
21009 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
21010 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
21011 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
21012 * config/v850/v850.c (v850_rtx_costs): Likewise.
21013 * config/vax/vax.c (vax_rtx_costs): Likewise.
21014 * config/visium/visium.c (visium_rtx_costs): Likewise.
21015 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
21016 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
21017 "code" param, and pass as outer_code to first rtx_cost call. Pass
21018 mode to rtx_cost calls.
21019 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
21021 (aarch64_rtx_costs_wrapper): Update.
21022 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
21023 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
21025 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
21026 and rtx_cost calls.
21027 (avr_operand_rtx_cost): Similarly.
21028 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
21029 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
21030 * config/mips/mips.c (mips_stack_address_p): Comment typo.
21031 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
21032 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
21033 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
21035 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
21036 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
21037 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
21038 * doc/tm.texi: Regenerate.
21040 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
21042 * tree-core.h: Include symtab.h.
21043 * rtl.h: Include hard-reg-set.h but not flags.h.
21044 (HARD_CONST): Remove condition compilation involving HARD_CONST since
21045 hard-reg-set.h is always included.
21046 * regs.h: Don't include hard-reg-set.h or rtl.h.
21047 * cfg.h: Include dominance.h.
21048 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
21049 * backend.h: New. Aggregate commonly used backend header files.
21050 * gimple-ssa.h: Don't include tree-hasher.h.
21051 * ssa.h: New. Aggregate commonly used SSA header files.
21052 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
21053 * sel-sched-ir.h: Flatten includes.
21054 * lra-int.h: Flatten completely.
21055 * sel-sched-dump.h: Flatten includes.
21056 * ira-int.h: Flatten includes.
21057 * gimple-streamer.h: Remove all includes.
21058 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
21059 * resource.h: Flatten hard-reg-set.h and df.h.
21060 * sched-int.h: Flatten insn-arrt.h and df.h.
21061 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
21062 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
21063 * genattrtab.c (write_header): Adjust generated includes.
21064 * genautomata.c (main): Likewise.
21065 * genconditions.c (write-header): Likewise.
21066 * genemit.c (main): Likewise.
21067 * gengtype.c (open_base_files): Likewise.
21068 * genopinit.c (main): Likewise.
21069 * genoutput.c (output_prologue): Likewise.
21070 * genpeep.c (main): Likewise.
21071 * genpreds.c (write_insn_preds_c): Likewise.
21072 * genrecog.c (write_header): Likewise.
21073 * alias.c: Adjust includes.
21074 * asan.c: Likewise.
21075 * attribs.c: Likewise.
21076 * auto-inc-dec.c: Likewise.
21077 * auto-profile.c: Likewise.
21078 * bb-reorder.c: Likewise.
21079 * bt-load.c: Likewise.
21080 * builtins.c: Likewise.
21081 * caller-save.c: Likewise.
21082 * calls.c: Likewise.
21083 * ccmp.c: Likewise.
21085 * cfganal.c: Likewise.
21086 * cfgbuild.c: Likewise.
21087 * cfgcleanup.c: Likewise.
21088 * cfgexpand.c: Likewise.
21089 * cfghooks.c: Likewise.
21090 * cfgloop.c: Likewise.
21091 * cfgloopanal.c: Likewise.
21092 * cfgloopmanip.c: Likewise.
21093 * cfgrtl.c: Likewise.
21094 * cgraph.c: Likewise.
21095 * cgraphbuild.c: Likewise.
21096 * cgraphclones.c: Likewise.
21097 * cgraphunit.c: Likewise.
21098 * cilk-common.c: Likewise.
21099 * combine-stack-adj.c: Likewise.
21100 * combine.c: Likewise.
21101 * compare-elim.c: Likewise.
21102 * convert.c: Likewise.
21103 * coverage.c: Likewise.
21104 * cppbuiltin.c: Likewise.
21105 * cprop.c: Likewise.
21107 * cselib.c: Likewise.
21108 * data-streamer-in.c: Likewise.
21109 * data-streamer-out.c: Likewise.
21110 * data-streamer.c: Likewise.
21111 * dbxout.c: Likewise.
21114 * debug.c: Likewise.
21115 * df-core.c: Likewise.
21116 * df-problems.c: Likewise.
21117 * df-scan.c: Likewise.
21119 * dojump.c: Likewise.
21120 * dominance.c: Likewise.
21121 * domwalk.c: Likewise.
21122 * double-int.c: Likewise.
21124 * dumpfile.c: Likewise.
21125 * dwarf2asm.c: Likewise.
21126 * dwarf2cfi.c: Likewise.
21127 * dwarf2out.c: Likewise.
21128 * emit-rtl.c: Likewise.
21129 * et-forest.c: Likewise.
21130 * except.c: Likewise.
21131 * explow.c: Likewise.
21132 * expmed.c: Likewise.
21133 * expr.c: Likewise.
21134 * final.c: Likewise.
21135 * fixed-value.c: Likewise.
21136 * fold-const.c: Likewise.
21137 * function.c: Likewise.
21138 * fwprop.c: Likewise.
21139 * gcc-plugin.h: Likewise.
21140 * gcse-common.c: Likewise.
21141 * gcse.c: Likewise.
21142 * generic-match-head.c: Likewise.
21143 * ggc-page.c: Likewise.
21144 * gimple-builder.c: Likewise.
21145 * gimple-expr.c: Likewise.
21146 * gimple-fold.c: Likewise.
21147 * gimple-iterator.c: Likewise.
21148 * gimple-low.c: Likewise.
21149 * gimple-match-head.c: Likewise.
21150 * gimple-pretty-print.c: Likewise.
21151 * gimple-ssa-isolate-paths.c: Likewise.
21152 * gimple-ssa-strength-reduction.c: Likewise.
21153 * gimple-streamer-in.c: Likewise.
21154 * gimple-streamer-out.c: Likewise.
21155 * gimple-walk.c: Likewise.
21156 * gimple.c: Likewise.
21157 * gimplify-me.c: Likewise.
21158 * gimplify.c: Likewise.
21159 * godump.c: Likewise.
21160 * graph.c: Likewise.
21161 * graphite-blocking.c: Likewise.
21162 * graphite-dependences.c: Likewise.
21163 * graphite-interchange.c: Likewise.
21164 * graphite-isl-ast-to-gimple.c: Likewise.
21165 * graphite-optimize-isl.c: Likewise.
21166 * graphite-poly.c: Likewise.
21167 * graphite-scop-detection.c: Likewise.
21168 * graphite-sese-to-poly.c: Likewise.
21169 * graphite.c: Likewise.
21170 * haifa-sched.c: Likewise.
21171 * hw-doloop.c: Likewise.
21172 * ifcvt.c: Likewise.
21173 * init-regs.c: Likewise.
21174 * internal-fn.c: Likewise.
21175 * ipa-chkp.c: Likewise.
21176 * ipa-comdats.c: Likewise.
21177 * ipa-cp.c: Likewise.
21178 * ipa-devirt.c: Likewise.
21179 * ipa-icf-gimple.c: Likewise.
21180 * ipa-icf.c: Likewise.
21181 * ipa-inline-analysis.c: Likewise.
21182 * ipa-inline-transform.c: Likewise.
21183 * ipa-inline.c: Likewise.
21184 * ipa-polymorphic-call.c: Likewise.
21185 * ipa-profile.c: Likewise.
21186 * ipa-prop.c: Likewise.
21187 * ipa-pure-const.c: Likewise.
21188 * ipa-ref.c: Likewise.
21189 * ipa-reference.c: Likewise.
21190 * ipa-split.c: Likewise.
21191 * ipa-utils.c: Likewise.
21192 * ipa-visibility.c: Likewise.
21194 * ira-build.c: Likewise.
21195 * ira-color.c: Likewise.
21196 * ira-conflicts.c: Likewise.
21197 * ira-costs.c: Likewise.
21198 * ira-emit.c: Likewise.
21199 * ira-lives.c: Likewise.
21201 * jump.c: Likewise.
21202 * langhooks.c: Likewise.
21204 * loop-doloop.c: Likewise.
21205 * loop-init.c: Likewise.
21206 * loop-invariant.c: Likewise.
21207 * loop-iv.c: Likewise.
21208 * loop-unroll.c: Likewise.
21209 * lower-subreg.c: Likewise.
21210 * lra-assigns.c: Likewise.
21211 * lra-coalesce.c: Likewise.
21212 * lra-constraints.c: Likewise.
21213 * lra-eliminations.c: Likewise.
21214 * lra-lives.c: Likewise.
21215 * lra-remat.c: Likewise.
21216 * lra-spills.c: Likewise.
21218 * lto-cgraph.c: Likewise.
21219 * lto-compress.c: Likewise.
21220 * lto-opts.c: Likewise.
21221 * lto-section-in.c: Likewise.
21222 * lto-section-out.c: Likewise.
21223 * lto-streamer-in.c: Likewise.
21224 * lto-streamer-out.c: Likewise.
21225 * lto-streamer.c: Likewise.
21227 * mode-switching.c: Likewise.
21228 * modulo-sched.c: Likewise.
21229 * omega.c: Likewise.
21230 * omp-low.c: Likewise.
21231 * optabs.c: Likewise.
21232 * opts-global.c: Likewise.
21233 * passes.c: Likewise.
21234 * plugin.c: Likewise.
21235 * postreload-gcse.c: Likewise.
21236 * postreload.c: Likewise.
21237 * predict.c: Likewise.
21238 * print-rtl.c: Likewise.
21239 * print-tree.c: Likewise.
21240 * profile.c: Likewise.
21241 * real.c: Likewise.
21242 * realmpfr.c: Likewise.
21243 * recog.c: Likewise.
21245 * reg-stack.c: Likewise.
21246 * regcprop.c: Likewise.
21247 * reginfo.c: Likewise.
21248 * regrename.c: Likewise.
21249 * regstat.c: Likewise.
21250 * reload.c: Likewise.
21251 * reload1.c: Likewise.
21252 * reorg.c: Likewise.
21253 * resource.c: Likewise.
21254 * rtl-chkp.c: Likewise.
21255 * rtlanal.c: Likewise.
21256 * rtlhooks.c: Likewise.
21257 * sanopt.c: Likewise.
21258 * sched-deps.c: Likewise.
21259 * sched-ebb.c: Likewise.
21260 * sched-rgn.c: Likewise.
21261 * sched-vis.c: Likewise.
21262 * sdbout.c: Likewise.
21263 * sel-sched-dump.c: Likewise.
21264 * sel-sched-ir.c: Likewise.
21265 * sel-sched.c: Likewise.
21266 * sese.c: Likewise.
21267 * shrink-wrap.c: Likewise.
21268 * simplify-rtx.c: Likewise.
21269 * stack-ptr-mod.c: Likewise.
21270 * stmt.c: Likewise.
21271 * stor-layout.c: Likewise.
21272 * store-motion.c: Likewise.
21273 * stringpool.c: Likewise.
21274 * symtab.c: Likewise.
21275 * target-globals.c: Likewise.
21276 * targhooks.c: Likewise.
21277 * toplev.c: Likewise.
21278 * tracer.c: Likewise.
21279 * trans-mem.c: Likewise.
21280 * tree-affine.c: Likewise.
21281 * tree-browser.c: Likewise.
21282 * tree-call-cdce.c: Likewise.
21283 * tree-cfg.c: Likewise.
21284 * tree-cfgcleanup.c: Likewise.
21285 * tree-chkp-opt.c: Likewise.
21286 * tree-chkp.c: Likewise.
21287 * tree-chrec.c: Likewise.
21288 * tree-complex.c: Likewise.
21289 * tree-data-ref.c: Likewise.
21290 * tree-dfa.c: Likewise.
21291 * tree-diagnostic.c: Likewise.
21292 * tree-dump.c: Likewise.
21293 * tree-eh.c: Likewise.
21294 * tree-emutls.c: Likewise.
21295 * tree-if-conv.c: Likewise.
21296 * tree-inline.c: Likewise.
21297 * tree-into-ssa.c: Likewise.
21298 * tree-iterator.c: Likewise.
21299 * tree-loop-distribution.c: Likewise.
21300 * tree-nested.c: Likewise.
21301 * tree-nrv.c: Likewise.
21302 * tree-object-size.c: Likewise.
21303 * tree-outof-ssa.c: Likewise.
21304 * tree-parloops.c: Likewise.
21305 * tree-phinodes.c: Likewise.
21306 * tree-predcom.c: Likewise.
21307 * tree-pretty-print.c: Likewise.
21308 * tree-profile.c: Likewise.
21309 * tree-scalar-evolution.c: Likewise.
21310 * tree-sra.c: Likewise.
21311 * tree-ssa-address.c: Likewise.
21312 * tree-ssa-alias.c: Likewise.
21313 * tree-ssa-ccp.c: Likewise.
21314 * tree-ssa-coalesce.c: Likewise.
21315 * tree-ssa-copy.c: Likewise.
21316 * tree-ssa-copyrename.c: Likewise.
21317 * tree-ssa-dce.c: Likewise.
21318 * tree-ssa-dom.c: Likewise.
21319 * tree-ssa-dse.c: Likewise.
21320 * tree-ssa-forwprop.c: Likewise.
21321 * tree-ssa-ifcombine.c: Likewise.
21322 * tree-ssa-live.c: Likewise.
21323 * tree-ssa-loop-ch.c: Likewise.
21324 * tree-ssa-loop-im.c: Likewise.
21325 * tree-ssa-loop-ivcanon.c: Likewise.
21326 * tree-ssa-loop-ivopts.c: Likewise.
21327 * tree-ssa-loop-manip.c: Likewise.
21328 * tree-ssa-loop-niter.c: Likewise.
21329 * tree-ssa-loop-prefetch.c: Likewise.
21330 * tree-ssa-loop-unswitch.c: Likewise.
21331 * tree-ssa-loop.c: Likewise.
21332 * tree-ssa-math-opts.c: Likewise.
21333 * tree-ssa-operands.c: Likewise.
21334 * tree-ssa-phiopt.c: Likewise.
21335 * tree-ssa-phiprop.c: Likewise.
21336 * tree-ssa-pre.c: Likewise.
21337 * tree-ssa-propagate.c: Likewise.
21338 * tree-ssa-reassoc.c: Likewise.
21339 * tree-ssa-sccvn.c: Likewise.
21340 * tree-ssa-scopedtables.c: Likewise.
21341 * tree-ssa-sink.c: Likewise.
21342 * tree-ssa-strlen.c: Likewise.
21343 * tree-ssa-structalias.c: Likewise.
21344 * tree-ssa-tail-merge.c: Likewise.
21345 * tree-ssa-ter.c: Likewise.
21346 * tree-ssa-threadedge.c: Likewise.
21347 * tree-ssa-threadupdate.c: Likewise.
21348 * tree-ssa-uncprop.c: Likewise.
21349 * tree-ssa-uninit.c: Likewise.
21350 * tree-ssa.c: Likewise.
21351 * tree-ssanames.c: Likewise.
21352 * tree-stdarg.c: Likewise.
21353 * tree-streamer-in.c: Likewise.
21354 * tree-streamer-out.c: Likewise.
21355 * tree-streamer.c: Likewise.
21356 * tree-switch-conversion.c: Likewise.
21357 * tree-tailcall.c: Likewise.
21358 * tree-vect-data-refs.c: Likewise.
21359 * tree-vect-generic.c: Likewise.
21360 * tree-vect-loop-manip.c: Likewise.
21361 * tree-vect-loop.c: Likewise.
21362 * tree-vect-patterns.c: Likewise.
21363 * tree-vect-slp.c: Likewise.
21364 * tree-vect-stmts.c: Likewise.
21365 * tree-vectorizer.c: Likewise.
21366 * tree-vrp.c: Likewise.
21367 * tree.c: Likewise.
21368 * tsan.c: Likewise.
21369 * ubsan.c: Likewise.
21370 * valtrack.c: Likewise.
21371 * value-prof.c: Likewise.
21372 * var-tracking.c: Likewise.
21373 * varasm.c: Likewise.
21374 * varpool.c: Likewise.
21375 * vmsdbgout.c: Likewise.
21376 * vtable-verify.c: Likewise.
21378 * wide-int.cc: Likewise.
21379 * xcoffout.c: Likewise.
21380 * config/aarch64/aarch64-builtins.c: Likewise.
21381 * config/aarch64/aarch64.c: Likewise.
21382 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21383 * config/alpha/alpha.c: Likewise.
21384 * config/arc/arc.c: Likewise.
21385 * config/arm/aarch-common.c: Likewise.
21386 * config/arm/arm-builtins.c: Likewise.
21387 * config/arm/arm-c.c: Likewise.
21388 * config/arm/arm.c: Likewise.
21389 * config/avr/avr-c.c: Likewise.
21390 * config/avr/avr-log.c: Likewise.
21391 * config/avr/avr.c: Likewise.
21392 * config/bfin/bfin.c: Likewise.
21393 * config/c6x/c6x.c: Likewise.
21394 * config/cr16/cr16.c: Likewise.
21395 * config/cris/cris.c: Likewise.
21396 * config/darwin-c.c: Likewise.
21397 * config/darwin.c: Likewise.
21398 * config/epiphany/epiphany.c: Likewise.
21399 * config/epiphany/mode-switch-use.c: Likewise.
21400 * config/epiphany/resolve-sw-modes.c: Likewise.
21401 * config/fr30/fr30.c: Likewise.
21402 * config/frv/frv.c: Likewise.
21403 * config/ft32/ft32.c: Likewise.
21404 * config/h8300/h8300.c: Likewise.
21405 * config/i386/i386-c.c: Likewise.
21406 * config/i386/i386.c: Likewise.
21407 * config/i386/msformat-c.c: Likewise.
21408 * config/i386/winnt-cxx.c: Likewise.
21409 * config/i386/winnt-stubs.c: Likewise.
21410 * config/i386/winnt.c: Likewise.
21411 * config/ia64/ia64-c.c: Likewise.
21412 * config/ia64/ia64.c: Likewise.
21413 * config/iq2000/iq2000.c: Likewise.
21414 * config/lm32/lm32.c: Likewise.
21415 * config/m32c/m32c-pragma.c: Likewise.
21416 * config/m32c/m32c.c: Likewise.
21417 * config/m32r/m32r.c: Likewise.
21418 * config/m68k/m68k.c: Likewise.
21419 * config/mcore/mcore.c: Likewise.
21420 * config/mep/mep-pragma.c: Likewise.
21421 * config/mep/mep.c: Likewise.
21422 * config/microblaze/microblaze-c.c: Likewise.
21423 * config/microblaze/microblaze.c: Likewise.
21424 * config/mips/mips.c: Likewise.
21425 * config/mmix/mmix.c: Likewise.
21426 * config/mn10300/mn10300.c: Likewise.
21427 * config/moxie/moxie.c: Likewise.
21428 * config/msp430/msp430-c.c: Likewise.
21429 * config/msp430/msp430.c: Likewise.
21430 * config/nds32/nds32-cost.c: Likewise.
21431 * config/nds32/nds32-fp-as-gp.c: Likewise.
21432 * config/nds32/nds32-intrinsic.c: Likewise.
21433 * config/nds32/nds32-isr.c: Likewise.
21434 * config/nds32/nds32-md-auxiliary.c: Likewise.
21435 * config/nds32/nds32-memory-manipulation.c: Likewise.
21436 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21437 * config/nds32/nds32-predicates.c: Likewise.
21438 * config/nds32/nds32.c: Likewise.
21439 * config/nios2/nios2.c: Likewise.
21440 * config/nvptx/nvptx.c: Likewise.
21441 * config/pa/pa.c: Likewise.
21442 * config/pdp11/pdp11.c: Likewise.
21443 * config/rl78/rl78-c.c: Likewise.
21444 * config/rl78/rl78.c: Likewise.
21445 * config/rs6000/rs6000-c.c: Likewise.
21446 * config/rs6000/rs6000.c: Likewise.
21447 * config/rx/rx.c: Likewise.
21448 * config/s390/s390-c.c: Likewise.
21449 * config/s390/s390.c: Likewise.
21450 * config/sh/sh-c.c: Likewise.
21451 * config/sh/sh-mem.cc: Likewise.
21452 * config/sh/sh.c: Likewise.
21453 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21454 * config/sh/sh_treg_combine.cc: Likewise.
21455 * config/sol2-c.c: Likewise.
21456 * config/sol2-cxx.c: Likewise.
21457 * config/sol2-stubs.c: Likewise.
21458 * config/sol2.c: Likewise.
21459 * config/sparc/sparc-c.c: Likewise.
21460 * config/sparc/sparc.c: Likewise.
21461 * config/spu/spu-c.c: Likewise.
21462 * config/spu/spu.c: Likewise.
21463 * config/stormy16/stormy16.c: Likewise.
21464 * config/tilegx/mul-tables.c: Likewise.
21465 * config/tilegx/tilegx-c.c: Likewise.
21466 * config/tilegx/tilegx.c: Likewise.
21467 * config/tilepro/mul-tables.c: Likewise.
21468 * config/tilepro/tilepro-c.c: Likewise.
21469 * config/tilepro/tilepro.c: Likewise.
21470 * config/v850/v850-c.c: Likewise.
21471 * config/v850/v850.c: Likewise.
21472 * config/vax/vax.c: Likewise.
21473 * config/visium/visium.c: Likewise.
21474 * config/vms/vms-c.c: Likewise.
21475 * config/vms/vms.c: Likewise.
21476 * config/vxworks.c: Likewise.
21477 * config/xtensa/xtensa.c: Likewise.
21479 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
21481 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
21482 Remove operand constraints. Change operand 2 predicate to
21483 nonmemory operand. Limit const_int values to mode bitsize. Only
21484 allow const_int values less than 32 when optimizing for size.
21485 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
21486 Remove operand constraints.
21487 (*bt<mode>): Use SImode for const_int values less than 32.
21488 (regmode): Remove mode attribute.
21490 2015-07-07 Anatoly Sokolov <aesok@post.ru>
21492 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21493 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
21494 moxie_legitimate_address_p): New functions.
21495 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21497 2015-07-07 Tom de Vries <tom@codesourcery.com>
21499 PR tree-optimization/66642
21500 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
21501 header comment. Rename split_edge variable to edge_at_split. Split
21502 exit edge to create new loop exit bb. Insert loop exit phis in new
21505 2015-07-07 Tom de Vries <tom@codesourcery.com>
21507 * tree-cfg.c (get_virtual_phi): New function.
21508 * tree-cfg.h (get_virtual_phi): Declare.
21509 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
21510 (rewrite_virtuals_into_loop_closed_ssa): New function.
21511 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
21513 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
21514 (transform_to_exit_first_loop_alt): Use
21515 rewrite_virtuals_into_loop_closed_ssa.
21517 2015-07-07 Richard Biener <rguenther@suse.de>
21519 * fold-const.c (fold_binary_loc): Move
21520 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
21521 * match.pd: ... here.
21522 Add (X * C1) % C2 -> 0 simplification pattern derived from
21525 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
21528 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
21529 change for target/65249.
21531 2015-07-07 Paulo Matos <pmatos@broadcom.com>
21533 * symtab.c (address_matters_1): Fix typo in comment above.
21534 (can_increase_alignment_p): Likewise.
21536 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21538 * function.c (free_after_compilation): Clear PROP_cfg in
21539 f->curr_properties.
21541 2015-07-07 Richard Biener <rguenther@suse.de>
21543 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
21545 (add_control_edge): Remove excessive vertical space in dumping.
21546 (process_ssa_edge_worklist): Simulate at most one statement and
21547 return whether we did. Do not simulate PHIs if they are in a
21548 BB not yet simulated.
21549 (ssa_propagate): Adjust to always drain the BB worklist whenever
21550 a BB is available there, likewise the VARYING edges list before
21551 the interesting edge list.
21553 2015-07-07 Christian Bruel <christian.bruel@st.com>
21556 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
21558 2015-07-07 Richard Biener <rguenther@suse.de>
21560 PR middle-end/66739
21561 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
21564 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
21566 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
21567 modes for operands 0 and 3. Use SImode for operands 2 and 3.
21568 Copy operand 0 to a temporary if !ext_register_operand. Remove
21569 ancient extract_bit_field workaround.
21570 (insv<mode>_1): Rename from mov<mode>_insv_1.
21571 (*insvqi): Rename from *movqi_insv_2.
21572 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
21573 for renamed insvsi_1.
21574 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
21576 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
21578 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
21579 call to nvptx_reorg_subreg.
21581 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
21583 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
21584 * graphite-dependencies.c, graphite-interchange.c,
21585 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
21586 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
21589 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
21591 * match.pd: Remove element_mode inside HONOR_*.
21592 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
21593 (~X | X -> -1, ~X ^ X -> -1): Merge.
21594 * tree.c (build_each_one_cst): New function.
21595 * tree.h (build_each_one_cst): Likewise.
21597 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21599 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21602 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
21604 * config.gcc <mips*-*-*>: Add fused-madd.opt.
21605 * config/mips/mips.opt (mfused-madd): Remove.
21606 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
21607 * config/mips/mips.h (TARGET_MIPS8000): New.
21608 (ISA_HAS_FP_MADD4_MSUB4): Remove.
21609 (ISA_HAS_FP_MADDF_MSUBF): Remove.
21610 (ISA_HAS_FP_MADD3_MSUB3): Remove.
21611 (ISA_HAS_NMADD4_NMSUB4): Remove.
21612 (ISA_HAS_NMADD3_NMSUB3): Remove.
21613 (ISA_HAS_FUSED_MADD4): New.
21614 (ISA_HAS_UNFUSED_MADD4): New.
21615 (ISA_HAS_FUSED_MADDF): New.
21616 (ISA_HAS_FUSED_MADD3): New.
21617 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
21618 (*fma<mode>4_madd3) New.
21619 (*fma<mode>4_madd4) New.
21620 (*fma<mode>4_maddf) New.
21622 (*fms<mode>4_msub3) New.
21623 (*fms<mode>4_msub4) New.
21625 (*fnma<mode>4_nmadd3) New.
21626 (*fnma<mode>4_nmadd4) New.
21628 (*fnms<mode>4_nmsub3) New.
21629 (*fnms<mode>4_nmsub4) New.
21630 (*madd4<mode>) Modify to be unfused only.
21631 (*msub4<mode>) Modify to be unfused only.
21632 (*nmadd4<mode>) Modify to be unfused only.
21633 (*nmsub4<mode>) Modify to be unfused only.
21634 (*madd3<mode>) Remove.
21635 (*msub3<mode>) Remove.
21636 (*nmadd3<mode>) Remove.
21637 (*nmsub3<mode>) Remove.
21638 (*nmadd3<mode>_fastmath) Remove.
21639 (*nmsub3<mode>_fastmath) Remove.
21640 (*nmadd4<mode>_fastmath) Update condition.
21641 (*nmsub4<mode>_fastmath) Update condition.
21643 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21646 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
21647 alignment attribute, exploring one level down for records and arrays.
21649 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
21651 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
21652 modes for operands 0 and 1. Use SImode for operands 2 and 3.
21653 Copy operand 1 to a temporary if !ext_register_operand. Remove
21654 ancient extract_bit_field workaround.
21655 (*extv<mode>): Rename from *mov<mode>_extv_1.
21656 (*extvqi): Rename from *movqi_extv_1.
21657 (extzv<mode>): Rename from extzv. Use SWI248 modes for
21658 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
21659 to a temporary if !ext_register_operand. Remove ancient
21660 extract_bit_field workaround.
21661 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
21662 (*extzvqi): Rename from *movqi_extzv_2.
21663 (*testqi_ext_3): Remove modes from const_int_operand predicated
21664 operands. Add "n" constraint.
21665 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
21666 operand. Add "J" constraint.
21667 (*btsq, *btrq, *btcq peephole2s): Remove mode from
21668 const_0_to_63 predicated operand.
21669 (regmode): New insn attribute.
21670 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
21671 to nonmemory_operand. Use regmode insn attribute.
21672 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
21673 (*jcc_bt<mode>_mask): Remove mode from operand 3.
21674 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
21675 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
21676 operands. Use "N" constraint instead of "n".
21678 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21680 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
21682 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21685 * config/i386/i386.c (iamcu_cost): New.
21686 (m_IAMCU): Likewise.
21687 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
21688 (processor_target_table): Add an entry for "iamcu".
21689 (processor_alias_table): Likewise.
21690 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
21691 (ix86_adjust_cost): Likewise.
21692 (ia32_multipass_dfa_lookahead): Likewise.
21693 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
21694 * config/i386/x86-tune.def: Updated for m_IAMCU.
21696 2015-07-06 Richard Biener <rguenther@suse.de>
21698 PR tree-optimization/66772
21699 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
21700 values are available in the PHI node BB when there are
21701 still unexecutable edges.
21703 2015-07-06 Richard Biener <rguenther@suse.de>
21705 PR tree-optimization/66767
21706 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
21707 Make sure to build the alignment test on a SSA name without
21708 final alignment info valid only if the alignment test
21711 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
21714 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
21715 loop start when inserting LSETUP.
21717 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21720 * config/i386/i386.c (ix86_option_override_internal): Allow
21721 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
21723 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21725 * read-md.c (decimal_string): Rename to ...
21726 (md_decimal_string): ... this.
21727 (handle_enum): Reflect this.
21729 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
21732 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
21734 2015-07-06 Richard Biener <rguenther@suse.de>
21736 PR middle-end/66759
21737 * match.pd: Add missing constraint of y to REAL_CST in
21738 REAL_CST - x CMP y to y - CST CMP x simplification.
21740 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
21742 PR tree-optimization/66757
21743 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
21745 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
21746 Sandra Loosemore <sandra@codesourcery.com>
21748 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
21749 Delete extern declaration.
21750 (gprel_constant_p): Add extern declaration.
21751 * config/nios2/constraints.md ("S"): Use gprel_constant_p
21752 instead of nios2_symbol_ref_in_small_data_p.
21753 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
21754 (nios2_symbol_ref_in_small_data_p): Make static.
21755 (gprel_constant_p): Make non-static.
21757 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
21759 * doc/fragments.texi (Target Fragment): Convert debian.org
21761 * doc/install.texi (Configuration): Ditto.
21763 2015-07-05 Jakub Jelinek <jakub@redhat.com>
21765 PR tree-optimization/66718
21766 * tree-vect-stmts.c (vectorizable_call): Replace uses of
21767 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
21769 PR tree-optimization/66718
21770 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
21771 vectorizable_load, vectorizable_condition): Move vectype,
21772 nunits, ncopies computation after checking what kind of statement
21775 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21777 * target-insns.def (extv, extzv, insv): New targetm instruction
21779 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
21781 * recog.c (simplify_while_replacing): Likewise.
21783 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21785 * target-insns.def (doloop_begin, doloop_end): New targetm
21786 instruction patterns.
21787 * loop-init.c: Include target.h.
21788 (pass_loop2::gate): Use the new targetm patterns instead of
21789 HAVE_*/gen_* interface.
21790 (pass_rtl_doloop::gate): Likewise.
21791 (pass_rtl_doloop::execute): Remove preprocessor condition.
21792 * hw-doloop.c: Build unconditionally.
21793 * loop-doloop.c: Likewise.
21794 (doloop_optimize): Use the new targetm patterns instead of
21795 HAVE_*/gen_* interface.
21796 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
21797 * modulo-sched.c (doloop_register_get): Likewise.
21799 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21801 * target-insns.def (clear_cache): New targetm instruction pattern.
21802 * builtins.c (expand_builtin___clear_cache): Use it instead of
21803 HAVE_*/gen_* interface.
21805 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21807 * target-insns.def (allocate_stack, check_stack, probe_stack)
21808 (probe_stack_address, split_stack_prologue, split_stack_space_check):
21809 New targetm instruction patterns.
21810 * explow.c (allocate_dynamic_stack_space): Use them instead of
21811 HAVE_*/gen_* interface.
21812 (emit_stack_probe): Likewise.
21813 (probe_stack_range): Likewise.
21814 * function.c (thread_prologue_and_epilogue_insns): Likewise.
21816 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21818 * target-insns.def (stack_protect_set, stack_protect_test): New
21819 targetm instruction patterns.
21820 * cfgexpand.c (stack_protect_prologue): Use them instead of
21821 HAVE_*/gen_* interface.
21822 * function.c (stack_protect_epilogue): Likewise.
21824 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21826 * expr.h (gen_move_insn_uncast): Delete.
21827 * expr.c (gen_move_insn_uncast): Delete.
21829 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21831 * target-insns.def (restore_stack_block, restore_stack_function)
21832 (restore_stack_nonlocal, save_stack_block, save_stack_function)
21833 (save_stack_nonlocal): New targetm instruction patterns.
21834 * builtins.c (expand_builtin_apply): Use them instead of
21835 HAVE_*/gen_* interface.
21836 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
21838 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21840 * target-insns.def (trap): New targetm instruction pattern.
21841 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
21843 * explow.c (allocate_dynamic_stack_space): Likewise.
21844 * ifcvt.c (find_if_header): Likewise.
21846 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21848 * target-insns.def (prefetch): New targetm instruction pattern.
21849 * tree-ssa-loop-prefetch.c: Include targeth.
21850 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
21851 of HAVE_*/gen_* interface.
21852 * builtins.c (expand_builtin_prefetch): Likewise.
21853 * toplev.c (process_options): Likewise.
21855 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21857 * target-insns.def (untyped_call, untyped_return): New targetm
21858 instruction patterns.
21859 * builtins.c (expand_builtin_apply): Use them instead of
21860 HAVE_*/gen_* interface.
21861 (result_vector): Define unconditionally.
21863 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21865 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
21866 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
21867 (nonlocal_goto_receiver): New targetm instruction patterns.
21868 * builtins.c (expand_builtin_setjmp_setup): Use them instead
21869 of HAVE_*/gen_* interface.
21870 (expand_builtin_setjmp_receiver): Likewise.
21871 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
21872 * except.c (expand_dw2_landing_pad_for_region): Likewise.
21874 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21876 * target.def: Add code_for_* hooks.
21877 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
21878 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
21879 * target-insns.def (casesi, tablejump): New targetm instruction
21881 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
21882 (do_tablejump): Likewise.
21883 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
21884 (expand_sjlj_dispatch_table): Likewise.
21885 * targhooks.c (default_case_values_threshold): Likewise.
21887 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
21889 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
21890 Use rtx_insn * instead of rtx.
21891 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
21892 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
21893 (nios2_call_tls_get_addr): Likewise.
21894 (nios2_emit_expensive_div): Likewise.
21895 (nios2_emit_move_sequence): Change return type to bool.
21896 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
21897 Change return type to bool.
21899 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
21902 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
21904 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
21907 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
21908 of register_operand. Remove constraint.
21910 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
21912 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
21913 the first argument.
21915 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
21917 * attribs.c (decl_attributes): Guard inform with the return value
21918 of the preceding warning.
21920 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
21922 * doc/invoke.texi (moverride): Move to correct section.
21924 2015-07-03 Richard Biener <rguenther@suse.de>
21926 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
21928 (dt_operand::gen_gimple_expr): After valueizing operands
21929 re-canonicalize operand order for commutative tree codes.
21931 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
21934 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
21936 (__crc32w): Likewise.
21937 (__crc32d): Likewise.
21938 (__rdpmc): Likewise.
21939 (__rdtscp): Likewise.
21940 (_rdpmc): Likewise.
21941 (_rdtscp): Likewise.
21942 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
21945 2015-07-03 Richard Biener <rguenther@suse.de>
21947 * fold-const.c (fold_mathfn_compare): Remove.
21948 (fold_inf_compare): Likewise.
21949 (fold_comparison): Move floating point comparison simplifications...
21950 * match.pd: ... to patterns here. Introduce simple_comparisons
21951 operator list and use it for patterns formerly in fold_comparison.
21953 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
21955 PR tree-optimization/66119
21956 * toplev.c (process_options): Don't set up default values for
21957 the sra_max_scalarization_size_{speed,size} parameters.
21958 * tree-sra (analyze_all_variable_accesses): If no values
21959 have been set for the sra_max_scalarization_size_{speed,size}
21960 parameters, call get_move_ratio to get target defaults.
21962 2015-07-03 Richard Biener <rguenther@suse.de>
21964 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
21965 * match.pd: ... here.
21967 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
21970 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
21971 is not actually the default on FreeBSD.
21973 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21975 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
21977 (CMPGE_8HI): Likewise.
21978 (CMPGE_4SI): Likewise.
21979 (CMPGE_2DI): Likewise.
21980 (CMPGE_U16QI): Likewise.
21981 (CMPGE_U8HI): Likewise.
21982 (CMPGE_U4SI): Likewise.
21983 (CMPGE_U2DI): Likewise.
21984 (CMPLE_16QI): Likewise.
21985 (CMPLE_8HI): Likewise.
21986 (CMPLE_4SI): Likewise.
21987 (CMPLE_2DI): Likewise.
21988 (CMPLE_U16QI): Likewise.
21989 (CMPLE_U8HI): Likewise.
21990 (CMPLE_U4SI): Likewise.
21991 (CMPLE_U2DI): Likewise.
21992 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21993 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
21994 ALTIVEC_BUILTIN_VEC_CMPLE.
21995 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
21996 floating-point vector modes.
21997 (vector_nlt<mode>): New define_expand.
21998 (vector_nltu<mode>): Likewise.
21999 (vector_ngt<mode>): Likewise.
22000 (vector_ngtu<mode>): Likewise.
22002 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
22004 PR rtl-optimization/66706
22005 * combine.c (make_compound_operation): If an AND of SUBREG of
22006 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
22008 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
22010 * tree-pass.h (make_pass_ch_vect): New.
22011 * passes.def: Add pass_ch_vect just before pass_if_conversion.
22013 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
22014 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
22015 make_pass_ch_vect): New.
22016 (pass_ch): Extend ch_base.
22018 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
22019 (ch_base::copy_headers): ...here.
22021 2015-07-02 Richard Biener <rguenther@suse.de>
22023 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
22024 * fold-const.c (get_pointer_modulus_and_residue): Remove.
22025 (fold_binary_loc): Implement (T)ptr & CST in terms of
22026 get_pointer_alignment_1.
22027 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
22028 Make sure to build the alignment test on a SSA name without
22029 final alignment info valid only after the prologue.
22031 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
22033 * config/cris/cris.md ("epilogue"): Remove condition.
22034 ("prologue"): Ditto.
22036 2015-07-02 Richard Biener <rguenther@suse.de>
22038 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
22039 parameter to record a condition that is false.
22040 (record_conditions): When recording an extra NE_EXPR that is
22041 true also record a EQ_EXPR that is false.
22043 2015-07-02 Bin Cheng <bin.cheng@arm.com>
22045 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
22046 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
22047 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
22048 (set_iv, find_interesting_uses_address, add_candidate_1): New
22049 argument to alloc_iv.
22050 (find_interesting_uses_op, find_interesting_uses_cond): Don't
22051 duplicate struct iv.
22052 (free_loop_data): Don't free struct iv explicitly.
22053 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
22055 2015-07-01 DJ Delorie <dj@redhat.com>
22057 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
22059 (SUPPORTS_DISCRIMINATOR): Define.
22061 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
22064 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
22065 there are no CALLs in the same pattern.
22067 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
22069 PR rtl-optimization/61047
22070 * rtlanal.c (get_initial_register_offset): New function.
22071 (rtx_addr_can_trap_p_1): Check offsets of stack references.
22073 2015-07-01 Richard Biener <rguenther@suse.de>
22075 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
22076 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
22077 ~X CMP C -> X CMP' ~C to ...
22078 * match.pd: ... patterns here.
22080 2015-07-01 Nick Clifton <nickc@redhat.com>
22082 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
22083 a 16-bit value into a 20-bit memory slot.
22085 2015-07-01 Jiong Wang <jiong.wang@arm.com>
22087 * doc/sourcebuild.texi (AArch64-specific attributes): Document
22088 "aarch64_tiny", "aarch64_small", "aarch64_large",
22089 "aarch64_little_endian", "aarch64_big_endian".
22091 2015-07-01 Jiong Wang <jiong.wang@arm.com>
22093 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
22094 Document "aarch64_small_fpic".
22096 2015-07-01 Jiong Wang <jiong.wang@arm.com>
22098 * configure.ac: Add check for aarch64 assembler -fpic relocation
22100 * configure: Regenerate.
22101 * config.in: Regenerate.
22102 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
22103 to -fPIC if not support of -fpic relocation modifier in assembler.
22105 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
22108 * rtl.c (classify_insn): Handle returns in PARALLELs.
22110 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
22112 PR middle-end/66633
22113 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
22114 to true if the function is nested and if not optimizing.
22115 (convert_local_omp_clauses): Initialize need_frame to true if the
22116 function contains nested functions and if not optimizing.
22118 2015-07-01 Richard Biener <rguenther@suse.de>
22120 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
22121 (X & Y) ^ Y -> ~X & Y transforms to ...
22122 * match.pd: ... here.
22124 2015-07-01 Richard Biener <rguenther@suse.de>
22126 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
22127 of converts to avoid uninteresting noise from the conversion
22128 simplifying patterns.
22130 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
22132 * config/c6x/c6x.c (try_rename_operands): Do not depend on
22133 gcc_assert evaluating its argument for side-effect.
22135 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
22138 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
22141 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
22143 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
22144 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
22145 (hash_scc): Add this_ref_p and ref_p parameters and pass them
22146 to the inner DFS walk.
22148 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22150 * target-insns.def (jump): New targetm instruction pattern.
22151 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
22152 instead of gen_jump.
22153 (fix_up_crossing_landing_pad): Likewise.
22154 (add_labels_and_missing_jumps): Likewise.
22155 (fix_crossing_conditional_branches): Likewise.
22156 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
22157 (force_nonfallthru_and_redirect): Likewise.
22158 * cse.c (cse_insn): Likewise.
22159 * expmed.c (expand_divmod): Likewise.
22160 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
22161 * haifa-sched.c (init_before_recovery): Likewise.
22162 (sched_create_recovery_edges): Likewise.
22163 * ifcvt.c (find_cond_trap): Likewise.
22164 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
22165 (expand_float, expand_fix): Likewise.
22166 * stmt.c (emit_jump): Likewise.
22168 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22170 * defaults.h (HAVE_load_multiple, gen_load_multiple)
22171 (HAVE_store_multiple, gen_store_multiple): Delete.
22172 * target-insns.def (load_multiple, store_multiple): New targetm
22173 instruction patterns.
22174 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
22175 of HAVE_*/gen_* interface.
22177 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22179 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
22180 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
22181 (gen_mem_signal_fence): Delete.
22182 * target-insns.def (mem_signal_fence, mem_thread_fence)
22183 (memory_barrier): New targetm instruction patterns.
22184 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
22186 (expand_mem_signal_fence): Likewise.
22188 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22190 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
22191 * target-insns.def (epilogue, prologue, sibcall_prologue): New
22192 targetm instruction patterns.
22193 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
22195 * calls.c (expand_call): Likewise.
22196 * cfgrtl.c (cfg_layout_finalize): Likewise.
22197 * df-scan.c (df_get_entry_block_def_set): Likewise.
22198 (df_get_exit_block_use_set): Likewise.
22199 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
22200 * final.c (final_start_function): Likewise.
22201 * function.c (thread_prologue_and_epilogue_insns): Likewise.
22202 (reposition_prologue_and_epilogue_notes): Likewise.
22203 * reorg.c (find_end_label): Likewise.
22204 * toplev.c (process_options): Likewise.
22206 2015-06-30 David Malcolm <dmalcolm@redhat.com>
22208 * typed-splay-tree.h: New file.
22210 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
22213 * lra-int.h (lra_substitute_pseudo): Add a parameter.
22214 (lra_substitute_pseudo_within_insn): Ditto.
22215 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
22217 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
22218 to lra_substitute_pseudo.
22219 * lra-lives.c (process_bb_lives): Add an argument to
22220 lra_substitute_pseudo_within_insn call.
22221 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
22222 argument to lra_substitute_pseudo and
22223 lra_substitute_pseudo_within_insn calls.
22224 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
22226 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
22228 * configure: Regenerated.
22230 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
22232 * config.gcc: Support i[34567]86-*-elfiamcu target.
22233 * config/i386/iamcu.h: New.
22234 * config/i386/i386.opt: Add -miamcu.
22235 * doc/invoke.texi: Document -miamcu.
22236 * common/config/i386/i386-common.c (ix86_handle_option): Turn
22237 off x87/MMX/SSE/AVX codegen for -miamcu.
22238 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22239 __iamcu/__iamcu__ for -miamcu.
22240 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
22241 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
22242 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
22243 * config/i386/i386.c (ix86_option_override_internal): Ignore and
22244 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
22245 MCU by default. Default long double to 64-bit for Intel MCU.
22246 Turn on -freg-struct-return for Intel MCU. Issue an error when
22247 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
22249 (function_arg_advance_32): Pass value whose size is no larger
22250 than 8 bytes in registers for Intel MCU.
22251 (function_arg_32): Likewise.
22252 (ix86_return_in_memory): Return value whose size is no larger
22253 than 8 bytes in registers for Intel MCU.
22254 (iamcu_alignment): New function.
22255 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
22257 (ix86_local_alignment): Don't increase alignment for Intel MCU.
22258 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
22261 2015-06-30 Marek Polacek <polacek@redhat.com>
22263 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
22264 both operands of the resulting expression.
22266 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
22267 the final expression with the operand's type and then convert
22268 it to the type of the expression.
22270 2015-06-30 Richard Biener <rguenther@suse.de>
22272 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
22273 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
22274 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
22275 * match.pd: ... to patterns here.
22277 2015-06-30 Richard Biener <rguenther@suse.de>
22279 PR tree-optimization/66704
22280 * tree-vect-data-refs.c (vect_setup_realignment): Use
22281 make_ssa_name for non-SSA name source.
22283 2015-06-30 Jakub Jelinek <jakub@redhat.com>
22285 PR middle-end/66702
22286 * omp-low.c (simd_clone_adjust): Handle addressable linear
22287 or uniform parameters or non-gimple type uniform parameters.
22289 2015-06-30 Richard Biener <rguenther@suse.de>
22291 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
22292 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
22293 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
22294 * match.pd: ... here.
22295 Add a few cases of A - B -> A + (-B) when B "easily" negates.
22296 Move (x & y) | x -> x and friends before
22297 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
22299 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
22301 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
22302 -mfix-ut699 is not specified.
22303 (leon3_load): Rename into...
22304 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
22307 2015-06-30 Marek Polacek <polacek@redhat.com>
22309 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
22310 * match.pd: ... here.
22312 2015-06-30 Richard Biener <rguenther@suse.de>
22314 * target-insns.def (canonicalize_funcptr_for_compare): Add.
22315 * fold-const.c (build_range_check): Replace uses of
22316 HAVE_canonicalize_funcptr_for_compare.
22317 (fold_widened_comparison): Likewise.
22318 (fold_sign_changed_comparison): Likewise.
22319 * dojump.c: Include "target.h".
22320 (do_compare_and_jump): Replace uses of
22321 HAVE_canonicalize_funcptr_for_compare and
22322 gen_canonicalize_funcptr_for_compare.
22323 * expr.c (do_store_flag): Likewise.
22325 2015-06-30 Tom de Vries <tom@codesourcery.com>
22327 PR tree-optimization/66652
22328 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
22329 max_loop_iterations to determine if nit + 1 overflows.
22331 2015-06-30 Richard Biener <rguenther@suse.de>
22333 * tree-vrp.c (register_edge_assert_for_2): Also register
22334 asserts for dominating conversion results.
22336 2015-06-30 Bin Cheng <bin.cheng@arm.com>
22338 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
22339 field in struct iv.
22341 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
22344 * configure.ac: Fix filds and fildq test for 64-bit.
22345 * configure: Regenerated.
22347 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
22349 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
22350 (nvptx_reorg): Here. Keep the non-subreg pieces.
22352 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
22354 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
22355 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22357 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
22359 * config/i386/i386.md (*jcc_1): Use %! in asm template.
22360 Set attribute "length_nobnd" instead of "length".
22363 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
22365 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
22367 * config/nios2/nios2.c (nios2_delegitimize_address): Make
22368 assert less restrictive.
22370 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
22373 * cgraphunit.c (cgraph_node::finalize_function): Do not call
22374 do_warn_unused_parameter.
22375 * function.c (do_warn_unused_parameter): Move from here.
22376 * function.h (do_warn_unused_parameter): Do not declare.
22378 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22381 * gcc.target/arm/armv-sync-comp-swap.c: New.
22382 * gcc.target/arm/armv-sync-op-acquire.c: New.
22383 * gcc.target/arm/armv-sync-op-full.c: New.
22384 * gcc.target/arm/armv-sync-op-release.c: New.
22386 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22389 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
22390 initial acquire barrier with final barrier.
22392 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22395 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
22396 initial acquire barrier with final barrier.
22398 2015-06-29 Richard Henderson <rth@redhat.com>
22400 * config/i386/constraints.md (Bf): New constraint.
22401 * config/i386/i386-c.c (ix86_target_macros): Define
22402 __GCC_ASM_FLAG_OUTPUTS__.
22403 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
22405 * doc/extend.texi (FlagOutputOperands): Document them.
22407 2015-06-29 Jiong Wang <jiong.wang@arm.com>
22409 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
22410 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
22412 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
22413 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
22414 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
22415 (aarch64_symbol_context): Ditto.
22416 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
22417 and use new pattern name.
22418 (aarch64_expand_mov_immediate): Ditto.
22419 (aarch64_print_operand): Ditto.
22420 (aarch64_classify_tls_symbol): Ditto.
22422 2015-06-29 Marek Polacek <polacek@redhat.com>
22423 Marc Glisse <marc.glisse@inria.fr>
22425 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
22426 * match.pd: ... pattern here.
22428 2015-06-29 Tom de Vries <tom@codesourcery.com>
22430 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
22431 function structure.
22433 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22435 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
22436 feature description, split out the native option, add a link to
22437 the feature documentation, rearrange and slightly rewrite text.
22438 (Aarch64 options, -mcpu): Likewise.
22439 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
22440 +rdma implies Adv. SIMD.
22442 2015-06-29 Marek Polacek <polacek@redhat.com>
22445 * function.c (stack_protect_epilogue): Remove a cast to int.
22446 * doc/invoke.texi: Update -Wswitch-bool description.
22448 2015-06-29 Richard Biener <rguenther@suse.de>
22450 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
22451 * fold-const.c (fold_binary_loc): Move &A - &B simplification
22452 via ptr_difference_const ...
22453 * match.pd: ... here.
22454 When matching (X ^ Y) == Y also match with swapped operands.
22456 2015-06-29 Richard Biener <rguenther@suse.de>
22458 * lto-streamer.h (LTO_major_version): Bump to 5.
22460 2015-06-29 Richard Biener <rguenther@suse.de>
22462 PR tree-optimization/66677
22463 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
22464 STMT_VINFO_VEC_STMT clobbering less strict.
22466 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
22468 PR middle-end/64130
22469 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
22470 division, compute max and min when value ranges for dividend and
22471 divisor are available.
22473 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
22474 Sandra Loosemore <sandra@codesourcery.com>
22476 * regrename.h (regrename_do_replace): Change to return bool.
22477 * regrename.c (rename_chains): Check return value of
22478 regname_do_replace.
22479 (regrename_do_replace): Re-validate the modified insns and
22480 return bool status.
22481 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
22482 Update to match rename_chains changes.
22483 * config/c6x/c6x.c (try_rename_operands): Assert that
22484 regrename_do_replace returns true.
22486 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
22488 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
22489 operand 2 here. Use copy_addr_to_reg to copy non-index
22490 register operand 2 to a temporary.
22491 (<mode>_stx): Ditto for operand 1.
22492 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
22493 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
22494 (ix86_store_bounds): Ditto.
22496 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
22498 * print-tree.c (print_node) [TREE_VEC]: Print its length.
22500 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
22502 * gimple.c (gimple_call_set_fndecl): Remove.
22503 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
22504 build1_loc directly instead of build_fold_addr_expr_loc.
22506 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
22508 * hash-map.h (hash_map::traverse): Use the definition of the
22509 Key typedef rather than the typedef itself.
22511 2015-06-26 Martin Jambor <mjambor@suse.cz>
22514 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
22515 NULL instead of calling dump_enabled_p.
22517 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22519 * config/aarch64/aarch64.opt: (override): New.
22520 * doc/invoke.texi (override): Document.
22521 * config/aarch64/aarch64.c (aarch64_flag_desc): New
22522 (aarch64_fusible_pairs): Likewise.
22523 (aarch64_tuning_flags): Likewise.
22524 (aarch64_tuning_override_function): Likewise.
22525 (aarch64_tuning_override_functions): Likewise.
22526 (aarch64_parse_one_option_token): Likewise.
22527 (aarch64_parse_boolean_options): Likewise.
22528 (aarch64_parse_fuse_string): Likewise.
22529 (aarch64_parse_tune_string): Likewise.
22530 (aarch64_parse_one_override_token): Likewise.
22531 (aarch64_parse_override_string): Likewise.
22532 (aarch64_override_options): Parse the -override string if it
22535 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22537 * config/aarch64/aarch64-protos.h (tune_params): Remove
22538 const from members.
22539 (aarch64_tune_params): Remove const, change to no longer be
22541 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
22542 change to no longer be a pointer, initialize to generic_tunings.
22543 (aarch64_min_divisions_for_recip_mul): Change dereference of
22544 aarch64_tune_params to member access.
22545 (aarch64_reassociation_width): Likewise.
22546 (aarch64_rtx_mult_cost): Likewise.
22547 (aarch64_address_cost): Likewise.
22548 (aarch64_branch_cost): Likewise.
22549 (aarch64_rtx_costs): Likewise.
22550 (aarch64_register_move_cost): Likewise.
22551 (aarch64_memory_move_cost): Likewise.
22552 (aarch64_sched_issue_rate): Likewise.
22553 (aarch64_builtin_vectorization_cost): Likewise.
22554 (aarch64_override_options): Take a copy of the selected tuning
22555 struct in to aarch64_tune_params, rather than just setting
22556 a pointer, change dereferences of aarch64_tune_params to member
22558 (aarch64_override_options_after_change): Change dereferences of
22559 aarch64_tune_params to member access.
22560 (aarch64_macro_fusion_p): Likewise.
22561 (aarch_macro_fusion_pair_p): Likewise.
22562 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
22564 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22566 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
22567 (aarch64_tune_flags): Likewise.
22568 (AARCH64_TUNE_FMA_STEERING): Likewise.
22569 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
22570 to AARCH64_FL_USE_FMA_STEERING_PASS.
22571 (cortex-a57.cortex-a53): Likewise.
22572 (cortex-a72): Use cortexa72_tunings.
22573 (cortex-a72.cortex-a53): Likewise.
22574 (exynos-m1): Likewise.
22575 * config/aarch64/aarch64-protos.h (tune_params): Add
22576 a field: extra_tuning_flags.
22577 * config/aarch64/aarch64-tuning-flags.def: New.
22578 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
22579 (aarch64_extra_tuning_flags): Likewise.
22580 (aarch64_tune_params): Declare here.
22581 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
22582 (cortexa53_tunings): Likewise.
22583 (cortexa57_tunings): Likewise.
22584 (thunderx_tunings): Likewise.
22585 (xgene1_tunings): Likewise.
22586 (cortexa72_tunings): New.
22587 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
22588 (gate): Check against aarch64_tune_params.
22589 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
22592 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22594 * config/aarch64/aarch64-fusion-pairs.def: New.
22595 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
22596 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
22597 aarch64_fusion_pairs.
22598 (AARCH64_FUSE_MOV_MOVK): Likewise.
22599 (AARCH64_FUSE_ADRP_ADD): Likewise.
22600 (AARCH64_FUSE_MOVK_MOVK): Likewise.
22601 (AARCH64_FUSE_ADRP_LDR): Likewise.
22602 (AARCH64_FUSE_CMP_BRANCH): Likewise.
22604 2015-06-26 Jiong Wang <jiong.wang@arm.com>
22606 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
22607 SYMBOL_SMALL_GOT_28K.
22608 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
22609 relocation modifiers.
22610 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
22611 (ldr_got_small_28k_<mode>): New.
22612 (ldr_got_small_28k_sidi): New.
22613 * config/aarch64/iterators.md (got_modifier): New mode iterator.
22614 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
22615 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
22616 SYMBOL_SMALL_GOT_28K.
22617 (aarch64_rtx_costs): Add costs for new instruction sequences.
22618 (initialize_aarch64_code_model): Initialize new model.
22619 (aarch64_classify_symbol): Recognize new model and new symbol classification.
22620 (aarch64_asm_preferred_eh_data_format): Support new model.
22621 (aarch64_load_symref_appropriately): Generate new instruction
22622 sequences for -fpic.
22623 (TARGET_USE_PSEUDO_PIC_REG): New definition.
22624 (aarch64_use_pseudo_pic_reg): New function.
22626 2015-06-26 Jiong Wang <jiong.wang@arm.com>
22628 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
22629 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
22630 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
22631 (aarch64_expand_mov_immediate): Ditto.
22632 (aarch64_print_operand): Ditto.
22633 (aarch64_classify_symbol): Ditto.
22635 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
22637 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
22639 2015-06-26 Bin Cheng <bin.cheng@arm.com>
22642 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
22643 assertion failed. Remove assertion itself.
22645 2015-06-26 Richard Biener <rguenther@suse.de>
22647 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
22648 and -A CMP CST -> A CMP -CST which is redundant with a pattern
22650 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
22651 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
22652 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
22653 * match.pd: ... patterns here.
22655 2015-06-26 Marek Polacek <polacek@redhat.com>
22657 * match.pd ((x | y) & ~(x & y) -> x ^ y,
22658 (x | y) & (~x ^ y) -> x & y): New patterns.
22660 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
22662 * rtl.h (emit): Add an optional boolean parameter to control
22663 whether barriers are emitted.
22664 * emit-rtl.c (emit): Likewise.
22665 * gensupport.c (get_emit_function): Return null rather than "emit".
22666 * genemit.c (gen_emit_seq): Handle the null return value.
22667 Don't emit barriers after the final instruction in the sequence.
22668 * gentarget-def.c (main): Don't emit barriers after the instruction.
22670 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22672 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
22673 TARGET_UNIFIED_ASM.
22675 2015-06-26 Richard Biener <rguenther@suse.de>
22677 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
22679 2015-06-26 Richard Biener <rguenther@suse.de>
22681 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
22682 irrespective on whether the inner operation has a single use
22683 of both off are constant.
22685 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
22686 Segher Boessenkool <segher@kernel.crashing.org>
22689 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
22690 before doing PUT_MODE or PUT_CODE on operands to avoid
22691 in-place RTX modification.
22693 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22695 * gentarget-def.c (def_target_insn): Cast return of strtol to
22698 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22700 * gimple.h (gimple_call_set_fn): Move inline function.
22701 * gimple.c (gimple_call_set_fn): Relocate here.
22703 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
22707 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
22708 the replacement insn will work.
22710 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22712 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
22715 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22717 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
22718 * cgraph.h: Include ipa-ref.h and plugin-api.h.
22719 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
22720 (symtab_node::address_can_be_compared_p): Move function.
22721 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
22723 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
22724 * auto-profile.c: Likewise.
22725 * bb-reorder.c: Likewise.
22726 * builtins.c: Likewise.
22727 * calls.c: Likewise.
22728 * cfgexpand.c: Likewise.
22729 * cgraphbuild.c: Likewise.
22730 * cgraphclones.c: Likewise.
22731 * cgraphunit.c: Likewise.
22732 * combine.c: Likewise.
22733 * coverage.c: Likewise.
22734 * data-streamer-in.c: Likewise.
22735 * data-streamer-out.c: Likewise.
22736 * data-streamer.c: Likewise.
22737 * dbxout.c: Likewise.
22738 * dwarf2out.c: Likewise.
22739 * except.c: Likewise.
22740 * expr.c: Likewise.
22741 * final.c: Likewise.
22742 * fold-const.c: Likewise.
22743 * ggc-page.c: Likewise.
22744 * gimple-fold.c: Likewise.
22745 * gimple-iterator.c: Likewise.
22746 * gimple-pretty-print.c: Likewise.
22747 * gimple-streamer-in.c: Likewise.
22748 * gimple-streamer-out.c: Likewise.
22749 * gimple.c: Likewise.
22750 * gimplify.c: Likewise.
22751 * ipa-chkp.c: Likewise.
22752 * ipa-comdats.c: Likewise.
22753 * ipa-cp.c: Likewise.
22754 * ipa-devirt.c: Likewise.
22755 * ipa-icf-gimple.c: Likewise.
22756 * ipa-icf.c: Likewise.
22757 * ipa-inline-analysis.c: Likewise.
22758 * ipa-inline-transform.c: Likewise.
22759 * ipa-inline.c: Likewise.
22760 * ipa-polymorphic-call.c: Likewise.
22761 * ipa-profile.c: Likewise.
22762 * ipa-prop.c: Likewise.
22763 * ipa-pure-const.c: Likewise.
22764 * ipa-ref.c: Likewise.
22765 * ipa-reference.c: Likewise.
22766 * ipa-split.c: Likewise.
22767 * ipa-utils.c: Likewise.
22768 * ipa-visibility.c: Likewise.
22770 * langhooks.c: Likewise.
22771 * lto-cgraph.c: Likewise.
22772 * lto-compress.c: Likewise.
22773 * lto-opts.c: Likewise.
22774 * lto-section-in.c: Likewise.
22775 * lto-section-out.c: Likewise.
22776 * lto-streamer-in.c: Likewise.
22777 * lto-streamer-out.c: Likewise.
22778 * lto-streamer.c: Likewise.
22779 * omp-low.c: Likewise.
22780 * opts-global.c: Likewise.
22781 * passes.c: Likewise.
22782 * predict.c: Likewise.
22783 * print-tree.c: Likewise.
22784 * profile.c: Likewise.
22786 * sanopt.c: Likewise.
22787 * stor-layout.c: Likewise.
22788 * symtab.c: Likewise.
22789 * toplev.c: Likewise.
22790 * trans-mem.c: Likewise.
22791 * tree-cfg.c: Likewise.
22792 * tree-chkp.c: Likewise.
22793 * tree-eh.c: Likewise.
22794 * tree-emutls.c: Likewise.
22795 * tree-inline.c: Likewise.
22796 * tree-nested.c: Likewise.
22797 * tree-parloops.c: Likewise.
22798 * tree-pretty-print.c: Likewise.
22799 * tree-profile.c: Likewise.
22800 * tree-sra.c: Likewise.
22801 * tree-ssa-alias.c: Likewise.
22802 * tree-ssa-live.c: Likewise.
22803 * tree-ssa-loop-ivcanon.c: Likewise.
22804 * tree-ssa-loop-ivopts.c: Likewise.
22805 * tree-ssa-pre.c: Likewise.
22806 * tree-ssa-sccvn.c: Likewise.
22807 * tree-ssa-strlen.c: Likewise.
22808 * tree-ssa-structalias.c: Likewise.
22809 * tree-streamer-in.c: Likewise.
22810 * tree-streamer-out.c: Likewise.
22811 * tree-streamer.c: Likewise.
22812 * tree-switch-conversion.c: Likewise.
22813 * tree-tailcall.c: Likewise.
22814 * tree-vect-data-refs.c: Likewise.
22815 * tree-vect-stmts.c: Likewise.
22816 * tree-vectorizer.c: Likewise.
22817 * tree.c: Likewise.
22818 * tsan.c: Likewise.
22819 * ubsan.c: Likewise.
22820 * value-prof.c: Likewise.
22821 * varasm.c: Likewise.
22822 * varpool.c: Likewise.
22823 * config/arm/arm.c: Likewise.
22824 * config/bfin/bfin.c: Likewise.
22825 * config/c6x/c6x.c: Likewise.
22826 * config/cris/cris.c: Likewise.
22827 * config/darwin-c.c: Likewise.
22828 * config/darwin.c: Likewise.
22829 * config/i386/i386.c: Likewise.
22830 * config/i386/winnt.c: Likewise.
22831 * config/microblaze/microblaze.c: Likewise.
22832 * config/mips/mips.c: Likewise.
22833 * config/rs6000/rs6000.c: Likewise.
22834 * config/rx/rx.c: Likewise.
22835 * config/s390/s390.c: Likewise.
22836 * config/tilegx/mul-tables.c: Likewise.
22838 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22840 * config/aarch64/aarch64.c, config/alpha/alpha.c,
22841 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
22842 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
22843 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
22844 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22845 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22846 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22847 config/microblaze/microblaze.c, config/mips/mips.c,
22848 config/mmix/mmix.c, config/mn10300/mn10300.c,
22849 config/moxie/moxie.c, config/msp430/msp430.c,
22850 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22851 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22852 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22853 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22854 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22855 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22856 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
22857 target-def.h include.
22858 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
22860 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22862 * Makefile.in (TARGET_DEF): Add target-insns.def.
22863 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
22864 (build/gentarget-def.o): New rule.
22865 (genprogrtl): Add target-def.
22866 * target-insns.def, gentarget-def.c: New files.
22867 * target.def: Add targetm.have_* and targetm.gen_* hooks,
22868 based on the contents of target-insns.def.
22869 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
22870 (HAVE_return, gen_return): Delete.
22871 * target-def.h: Include insn-target-def.h.
22872 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
22873 instead of direct calls. Rely on them to do the appropriate assertions.
22874 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
22875 (convert_jumps_to_returns): Use targetm interface instead of
22877 (thread_prologue_and_epilogue_insns): Likewise.
22878 * reorg.c (find_end_label, dbr_schedule): Likewise.
22879 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
22880 * shrink-wrap.c (convert_to_simple_return): Likewise.
22881 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
22883 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22885 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
22886 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22887 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
22888 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
22889 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22890 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22891 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22892 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
22893 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
22894 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22895 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22896 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22897 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22898 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22899 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22900 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
22903 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22905 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
22906 (unbounded_int_hashmap_traits::key_type): Likewise.
22907 * hash-map.h (hash_map): Get the key type from the traits.
22908 * hash-traits.h (default_hash_traits): By default, inherit from the
22909 template parameter.
22910 * alias.c (alias_set_traits): Delete.
22911 (alias_set_entry_d::children): Use alias_set_hash as the first
22912 template parameter.
22913 (record_alias_subset): Update accordingly.
22914 * except.c (tree_hash_traits): Delete.
22915 (type_to_runtime_map): Use tree_hash as the first template parameter.
22916 (init_eh): Update accordingly.
22917 * genmatch.c (capture_id_map_hasher): Delete.
22918 (cid_map_t): Use nofree_string_hash as first template parameter.
22919 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
22920 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
22921 Use symbol_compare_hash as the first template parameter in
22922 subdivide_hash_map.
22923 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
22924 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
22925 template parameter.
22926 * passes.c (pass_registry_hasher): Delete.
22927 (name_to_pass_map): Use nofree_string_hash as the first template
22929 (register_pass_name): Update accordingly.
22930 * sanopt.c (sanopt_tree_map_traits): Delete.
22931 (sanopt_tree_triplet_map_traits): Delete.
22932 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
22933 template parameter.
22934 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
22935 the first template parameter.
22936 * sese.c (rename_map_hasher): Delete.
22937 (rename_map_type): Use tree_ssa_name_hash as the first template
22939 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
22940 (function_summary::m_map): Use map_hash as the first template
22942 (function_summary::release): Update accordingly.
22943 * tree-if-conv.c (phi_args_hash_traits): Delete.
22944 (predicate_scalar_phi): Use tree_operand_hash as the first template
22945 parameter to phi_arg_map.
22946 * tree-inline.h (dependence_hasher): Delete.
22947 (copy_body_data::dependence_map): Use dependence_hash as the first
22948 template parameter.
22949 * tree-inline.c (remap_dependence_clique): Update accordingly.
22950 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
22951 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
22953 (addr_stridxptr): Update accordingly.
22954 * value-prof.c (profile_id_traits): Delete.
22955 (cgraph_node_map): Use profile_id_hash as the first template
22957 (init_node_map): Update accordingly.
22958 * config/alpha/alpha.c (string_traits): Delete.
22959 (machine_function::links): Use nofree_string_hash as the first
22960 template parameter.
22961 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
22962 * config/m32c/m32c.c (pragma_traits): Delete.
22963 (pragma_htab): Use nofree_string_hash as the first template parameter.
22964 (m32c_note_pragma_address): Update accordingly.
22965 * config/mep/mep.c (pragma_traits): Delete.
22966 (pragma_htab): Use nofree_string_hash as the first template parameter.
22967 (mep_note_pragma_flag): Update accordingly.
22968 * config/mips/mips.c (mips16_flip_traits): Delete.
22969 (mflip_mips16_htab): Use nofree_string_hash as the first template
22971 (mflip_mips16_use_mips16_p): Update accordingly.
22972 (local_alias_traits): Delete.
22973 (mips16_local_aliases): Use nofree_string_hash as the first template
22975 (mips16_local_alias): Update accordingly.
22977 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22979 * hash-map-traits.h (default_hashmap_traits): Delete.
22981 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22983 * hash-map-traits.h (unbounded_hashmap_traits): New class.
22984 (unbounded_int_hashmap_traits): Likewise.
22985 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
22987 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22989 * ipa-icf.h (symbol_compare_hash): New class.
22990 (symbol_compare_hashmap_traits): Use it.
22991 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
22992 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
22993 (mem_alloc_description::reverse_mem_map_t): Remove redundant
22994 default_hashmap_traits.
22995 * sanopt.c (sanopt_tree_triplet_hash): New class.
22996 (sanopt_tree_triplet_map_traits): Use it.
22998 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23000 * gengtype-parse.c (require_template_declaration): Allow '+' in
23001 template parameters. Consolidate cases.
23002 * hash-traits.h (int_hash): New class.
23003 * alias.c (alias_set_hash): New structure.
23004 (alias_set_traits): Use it.
23005 * symbol-summary.h (function_summary::map_hash): New class.
23006 (function_summary::summary_hashmap_traits): Use it.
23007 * tree-inline.h (dependence_hash): New class.
23008 (dependence_hasher): Use it.
23009 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
23010 * value-prof.c (profile_id_hash): New class.
23011 (profile_id_traits): Use it.
23013 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23015 * config/mips/mips.c (mips16_flip_traits): Use it.
23016 (local_alias_traits, mips16_local_aliases): Convert from a map of
23017 rtxes to a map of symbol names.
23018 (mips16_local_alias): Update accordingly.
23020 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23022 * hash-traits.h (string_hash, nofree_string_hash): New classes.
23023 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
23024 * passes.c (pass_registry_hasher): Likewise.
23025 * config/alpha/alpha.c (string_traits): Likewise.
23026 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
23027 * config/m32c/m32c.c (pragma_traits): Likewise.
23028 * config/mep/mep.c (pragma_traits): Likewise.
23030 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23032 * tree-hash-traits.h (tree_hash): New class.
23033 * except.c: Include tree-hash-traits.h.
23034 (tree_hash_traits): Use tree_hash.
23036 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23038 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
23039 * sese.c: Include tree-hash-traits.h.
23040 (rename_map_hasher): Use tree_ssa_name_hasher.
23042 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23044 * tree-hash-traits.h (tree_decl_hash): New class.
23045 * tree-ssa-strlen.c: Include tree-hash-traits.h.
23046 (stridxlist_hash_traits): Use tree_decl_hash.
23048 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23050 * tree-hash-traits.h: New file.
23051 (tree_operand_hash): New class.
23052 * sanopt.c: Include tree-hash-traits.h.
23053 (sanopt_tree_map_traits): Use tree_operand_hash.
23054 * tree-if-conv.c: Include tree-hash-traits.h.
23055 (phi_args_hash_traits): Use tree_operand_hash.
23056 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
23057 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
23059 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23061 * hash-map-traits.h: Include hash-traits.h.
23062 (simple_hashmap_traits): New class.
23063 * mem-stats.h (hash_map): Change the default traits to
23064 simple_hashmap_traits<default_hash_traits<Key> >.
23066 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23068 * hash-table.h: Update comments.
23070 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23072 * hash-traits.h (default_hash_traits): New structure.
23073 * hash-set.h (default_hashset_traits): Delete.
23074 (hash_set): Use default_hash_traits<Key> instead of
23075 default_hashset_traits. Delete hash_entry type and use Key directly.
23076 * ipa-devirt.c (pair_traits): Delete.
23077 (default_hash_traits <type_pair>): Override.
23078 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
23079 (odr_types_equivalent_p, add_type_duplicate): Likewise.
23081 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23083 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
23085 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23087 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
23088 (has_is_empty, is_empty_helper): Delete.
23089 (has_mark_deleted, mark_deleted_helper): Delete.
23090 (has_mark_empty, mark_empty_helper): Delete.
23091 (hash_table::is_deleted): Call the Descriptor unconditionally.
23092 (hash_table::is_empty): Likewise.
23093 (hash_table::mark_deleted): Likewise.
23094 (hash_table::mark_empty): Likewise.
23096 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23098 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
23099 redundant typedefs and members.
23100 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
23101 redundant typedefs.
23102 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
23103 * ipa-devirt.c (odr_name_hasher): Likewise.
23104 (polymorphic_call_target_hasher): Likewise.
23105 * ira-costs.c (cost_classes_hasher): Likewise.
23106 * statistics.c (stats_counter_hasher): Likewise.
23107 * trans-mem.c (log_entry_hasher): Likewise.
23108 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
23109 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
23110 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
23111 * var-tracking.c (variable_hasher): Likewise.
23112 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
23113 Remove redundant typedefs and members.
23115 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23117 * hash-traits.h (ggc_cache_hasher): Rename to...
23118 (ggc_cache_remove): ...this and remove typedefs.
23119 (ggc_cache_ptr_hash): New class.
23120 * hash-table.h: Update commentary.
23121 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
23122 rather than ggc_cache_hasher.
23123 (const_wide_int_hasher, reg_attr_hasher): Likewise.
23124 (const_double_hasher, const_fixed_hasher): Likewise.
23125 * function.c (insn_cache_hasher): Likewise.
23126 * trans-mem.c (tm_wrapper_hasher): Likewise.
23127 * tree.h (tree_decl_map_cache_hasher): Likewise.
23128 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
23129 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
23130 * ubsan.c (tree_type_map_cache_hasher): Likewise.
23131 * varasm.c (tm_clone_hasher): Likewise.
23132 * config/i386/i386.c (dllimport_hasher): Likewise.
23133 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
23134 (tree_hasher): Likewise.
23136 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23138 * hash-traits.h (ggc_hasher): Rename to...
23139 (ggc_remover): ...this and remove typedefs.
23140 (ggc_cache_hasher): Update accordingly. Add typedefs.
23141 (ggc_ptr_hash): New class.
23142 * hash-table.h: Update comment.
23143 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
23145 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
23146 (tree_descriptor_hasher): Likewise.
23147 * cgraph.c (function_version_hasher): Likewise.
23148 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
23149 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
23150 (dw_loc_list_hasher, addr_hasher): Likewise.
23151 * function.h (used_type_hasher): Likewise.
23152 * function.c (temp_address_hasher): Likewise.
23153 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
23154 * libfuncs.h (libfunc_hasher): Likewise.
23155 * lto-streamer.h (decl_state_hasher): Likewise.
23156 * optabs.c (libfunc_decl_hasher): Likewise.
23157 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
23158 * varasm.c (section_hasher, object_block_hasher): Likewise.
23159 (const_rtx_desc_hasher): Likewise.
23160 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
23161 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
23163 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23165 * hash-traits.h (free_ptr_hash): New class.
23166 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
23167 rather than typed_free_remove. Remove redudant typedefs.
23168 (external_ref_hasher): Likewise.
23169 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
23170 (ehspec_hasher): Likewise.
23171 * ggc-common.c (saving_hasher): Likewise.
23172 * gimplify.c (gimplify_hasher): Likewise.
23173 * haifa-sched.c (delay_i2_hasher): Likewise.
23174 * loop-invariant.c (invariant_expr_hasher): Likewise.
23175 * loop-iv.c (biv_entry_hasher): Likewise.
23176 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
23177 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
23178 * tree-cfg.c (locus_discrim_hasher): Likewise.
23179 * tree-eh.c (finally_tree_hasher): Likewise.
23180 * tree-into-ssa.c (var_info_hasher): Likewise.
23181 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
23182 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
23183 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
23184 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
23185 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
23186 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
23187 (shared_bitmap_hasher): Likewise.
23188 * tree-ssa-threadupdate.c (redirection_data): Likewise.
23189 * tree-vectorizer.h (peel_info_hasher): Likewise.
23190 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
23191 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
23193 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23195 * hash-table.h: Update comments.
23196 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
23197 (nofree_ptr_hash): New class.
23198 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
23199 than typed_noop_remove. Remove redudant typedefs.
23200 * attribs.c (attribute_hasher): Likewise.
23201 * cfg.c (bb_copy_hasher): Likewise.
23202 * cselib.c (cselib_hasher): Likewise.
23203 * dse.c (invariant_group_base_hasher): Likewise.
23204 * dwarf2cfi.c (trace_info_hasher): Likewise.
23205 * dwarf2out.c (macinfo_entry_hasher): Likewise.
23206 (comdat_type_hasher, loc_list_hasher): Likewise.
23207 * gcse.c (pre_ldst_expr_hasher): Likewise.
23208 * genmatch.c (id_base): Likewise.
23209 * genrecog.c (test_pattern_hasher): Likewise.
23210 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
23211 * haifa-sched.c (delay_i1_hasher): Likewise.
23212 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
23213 * ipa-icf.h (congruence_class_group_hash): Likewise.
23214 * ipa-profile.c (histogram_hash): Likewise.
23215 * ira-color.c (allocno_hard_regs_hasher): Likewise.
23216 * lto-streamer.h (string_slot_hasher): Likewise.
23217 * lto-streamer.c (tree_entry_hasher): Likewise.
23218 * plugin.c (event_hasher): Likewise.
23219 * postreload-gcse.c (expr_hasher): Likewise.
23220 * store-motion.c (st_expr_hasher): Likewise.
23221 * tree-sra.c (uid_decl_hasher): Likewise.
23222 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
23223 (ssa_name_var_hash): Likewise.
23224 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
23225 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
23226 * tree-ssa-pre.c (pre_expr_d): Likewise.
23227 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
23228 * vtable-verify.h (registration_hasher): Likewise.
23229 * vtable-verify.c (vtbl_map_hasher): Likewise.
23230 * config/arm/arm.c (libcall_hasher): Likewise.
23231 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
23232 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
23233 * config/sol2.c (comdat_entry_hasher): Likewise.
23234 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
23235 (print_fold_checksum, fold_checksum_tree): Likewise.
23236 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
23237 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
23238 (fold_build_call_array_loc): Likewise.
23239 * tree-ssa-ccp.c (gimple_htab): Likewise.
23240 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
23241 rather than pointer_type.
23243 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23245 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
23246 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
23248 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23250 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
23251 (ggc_hasher::ggc_mx): Likewise.
23252 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
23253 that duplicate ggc_hasher ones.
23255 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23257 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
23258 (gt_cleare_cache): Check here for deleted and empty entries.
23259 Replace handle_cache_entry with a call to keep_cache_entry.
23260 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
23261 (ggc_cache_hasher::keep_cache_entry): New function.
23262 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
23263 (tm_wrapper_hasher::keep_cache_entry): New function.
23264 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
23265 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23266 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
23267 (type_cache_hasher::keep_cache_entry): New function.
23268 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
23269 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23270 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
23271 (tree_type_map_cache_hasher::keep_cache_entry): New function.
23272 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
23273 (tm_clone_hasher::keep_cache_entry): New function.
23274 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
23275 (dllimport_hasher::keep_cache_entry): New function.
23277 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23279 * hash-table.h: Include hash-traits.h.
23280 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
23281 (ggc_cache_hasher): Move to...
23282 * hash-traits.h: ...this new file.
23284 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23286 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
23287 struct cl_optimization.
23288 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
23289 * tree.c (make_node_stat): Allocate cl_optimization struct.
23290 (copy_node_stat): Allocate and copy cl_optimization struct.
23292 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23294 * function.h (struct incoming_args): Move struct.
23295 (pass_by_reference, reference_callee_copied): Remove prototypes.
23296 * emit-rtl.h (struct incoming_args): Relocate struct here.
23297 * calls.h (pass_by_reference, reference_callee_copied): Relocate
23299 * function.c (pass_by_reference, reference_callee_copied): Move.
23300 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
23301 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
23302 * ipa-chkp.c: Include calls.h.
23304 2015-06-25 Andrew Macleod <amacleod@redhat.com>
23306 * alias.h (alias_set_type): Move typedef.
23307 * coretypes.h (alias_set_type): Relocate typedef here.
23308 * rtl.h: Don't include alias.h.
23310 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23312 * cgraph.h (cgraph_rtl_info): Move to rtl.h
23313 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
23315 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
23316 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
23318 * calls.c: Include hard-reg-set.h before rtl.h.
23321 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23322 Vladimir Makarov <vmakarov@redhat.com>
23324 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
23327 2015-06-25 Richard Biener <rguenther@suse.de>
23329 * fold-const.c (fold_binary_loc): Move simplification of
23330 (X <<>> C1) & C2 ...
23331 * match.pd: ... here.
23333 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
23335 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
23337 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23339 * match.pd: Add patterns for vec_conds between 1 and 0.
23341 2015-06-25 Richard Biener <rguenther@suse.de>
23343 * tree-vect-stmts.c (vectorizable_conversion): Do not set
23344 STMT_VINFO_VEC_STMT for SLP.
23345 (vectorizable_store): Likewise.
23346 (vectorizable_load): Likewise.
23347 (vect_transform_stmt): Catch SLP vectorization clobbering
23348 STMT_VINFO_VEC_STMT.
23350 2015-06-25 Richard Biener <rguenther@suse.de>
23352 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
23354 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
23355 cleanup resulting dead code and parameters.
23356 (vect_transform_slp_perm_load): Adjust.
23358 2015-06-25 Nick Clifton <nickc@redhat.com>
23360 * config/bfin/bfin.c (bfin_expand_prologue): Set
23361 current_function_static_stack_size if flag_stack_usage_info is set.
23362 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
23363 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
23364 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
23365 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
23367 2015-06-25 Tom de Vries <tom@codesourcery.com>
23369 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
23370 comment that the generated IV is unsigned.
23372 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23375 * config/arm/arm.c (arm_dbx_register_number): Return
23376 DWARF_FRAME_REGISTERS by default.
23378 2015-06-25 Tom de Vries <tom@codesourcery.com>
23380 * dominance.c (calculate_dominance_info): Fix verify_dominators call
23381 argument. Call verify_dominator when reusing dominator info.
23383 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
23386 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
23387 an additional element of the unspec vector. Modify indices
23389 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
23390 * config/sh/sh.c (prepare_move_operands): Pass incremented
23391 const_int to gen_GOTaddr2picreg.
23392 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
23394 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23396 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
23397 Condition on TARGET_FLOAT.
23399 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23401 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
23404 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23406 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
23408 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
23409 aarch64_err_no_fpadvsimd.
23411 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
23412 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
23413 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
23414 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
23415 Turn error into assert, test TARGET_FLOAT.
23416 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
23419 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
23422 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
23424 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
23426 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
23428 2015-06-24 Renlin Li <renlin.li@arm.com>
23430 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
23431 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
23433 2015-06-24 Richard Biener <rguenther@suse.de>
23435 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
23437 (lower_opt_convert): Support lowering of conditional view_convert.
23438 (parser::parse_operation): Likewise.
23439 (parser::parse_for): Likewise.
23441 2015-06-24 Renlin Li <renlin.li@arm.com>
23443 * varasm.c (emit_local): Use unsigned int for align variable.
23445 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23448 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
23449 for negative numbers.
23451 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23453 PR rtl-optimization/66306
23454 * reload.c (find_reloads): Swap the match_dup info for
23455 commutative operands.
23457 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23459 * config/s390/vx-builtins.md
23460 ("vec_scatter_element<mode>_<non_vec_int>")
23461 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
23462 attribute with bhfgq.
23464 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23466 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
23468 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23470 * config/s390/s390-builtin-types.def: Add flag to indicate the
23471 options under which the function type is needed.
23472 * config/s390/s390-builtins.def: Add flag to indicate the options
23473 under which the builtin is enabled.
23474 * config/s390/s390-builtins.h: Add flags parameter to macro
23476 (bflags_for_builtin): New function.
23477 (flags_for_builtin): Renamed to ...
23478 (opflags_for_builtin): ... this.
23479 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
23480 flags_for_builtin to bflags_for_builtin and
23481 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
23482 * config/s390/s390.c: Add initialization of bflags_builtin and
23483 opflags_builtin arrays.
23484 Remove code for flags_builtin.
23485 (s390_init_builtins): Only create builtin function types if one of
23486 their flags is active.
23487 Only create builtins if all of their flags are active.
23488 (s390_expand_builtin): Rename flags_for_builtin to
23489 opflags_for_builtin.
23491 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23493 * config/s390/vecintrin.h: Remove internal builtins.
23495 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23497 * config/s390/s390.c (s390_secondary_reload): Fix check for
23498 GENERAL_REGS register class.
23500 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23502 * config/s390/s390.c (s390_support_vector_misalignment): Call
23503 default implementation for !TARGET_VX.
23505 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23507 * config/s390/s390.c (s390_legitimate_constant_p): Add
23510 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23512 * config/s390/s390.c (s390_vector_abi): New variable definition.
23513 (s390_check_type_for_vector_abi): New function.
23514 (TARGET_ASM_FILE_END): New macro definition.
23515 (s390_asm_file_end): New function.
23516 (s390_function_arg): Call s390_check_type_for_vector_abi.
23517 (s390_gimplify_va_arg): Likewise.
23518 * configure: Regenerate.
23519 * configure.ac: Check for .gnu_attribute Binutils feature.
23521 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
23524 * config/bfin/bfin.c (hwloop_optimize): Initialize
23525 JUMP_LABEL for newly created jump.
23527 2015-06-23 Tristan Gingold <gingold@adacore.com>
23529 * collect-utils.c (collect_wait): Unlink the response file here
23531 (do_wait): ...here.
23532 (utils_cleanup): ...and here.
23534 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
23536 * df-scan.c: Don't include target-def.h.
23537 * targhooks.c: Likewise.
23538 * config/arm/arm-c.c: Likewise.
23539 * config/i386/i386-c.c: Likewise.
23540 * config/nds32/nds32-cost.c: Likewise.
23541 * config/nds32/nds32-fp-as-gp.c: Likewise.
23542 * config/nds32/nds32-intrinsic.c: Likewise.
23543 * config/nds32/nds32-isr.c: Likewise.
23544 * config/nds32/nds32-md-auxiliary.c: Likewise.
23545 * config/nds32/nds32-memory-manipulation.c: Likewise.
23546 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23547 * config/nds32/nds32-predicates.c: Likewise.
23549 2015-06-23 Richard Biener <rguenther@suse.de>
23551 PR tree-optimization/66636
23552 * tree-vect-stmts.c (vectorizable_store): Properly compute the
23553 def type for further defs for strided stores.
23555 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
23557 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
23558 conditional selects.
23559 (setcc_int<mode>, setcc_float<mode>): Reformat.
23561 2015-06-23 Marek Polacek <polacek@redhat.com>
23563 * match.pd ((x + y) - (x | y) -> x & y,
23564 (x + y) - (x & y) -> x | y): New patterns.
23566 2015-06-23 Ludovic Courtès <ludo@gnu.org>
23569 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
23570 '-dynamic-linker' within %{!shared: ...}.
23572 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
23575 * config/i386/predicates.md (addsub_vm_operator): New predicate.
23576 (addsub_vs_operator): Ditto.
23577 (addsub_vs_parallel): Ditto.
23578 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
23579 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
23580 Put minus RTX before plus and adjust vec_merge selector.
23581 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
23582 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
23583 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
23584 (addsub vec_merge splitters): New combiner splitters.
23585 (addsub vec_select/vec_concat splitters): Ditto.
23587 2015-06-23 Bin Cheng <bin.cheng@arm.com>
23589 PR tree-optimization/66449
23590 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
23591 POINTER_PLUS_EXPR for pointers.
23593 2015-06-23 Alan Modra <amodra@gmail.com>
23595 * rtlanal.c (commutative_operand_precedence): Correct comments.
23596 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
23597 declaration. Return an int. Distinguish REG,REG return from
23599 (struct simplify_plus_minus_op_data): Make local to function.
23600 (simplify_plus_minus): Don't set canonicalized if merely sorting
23601 registers. Avoid packing ops if nothing changes. White space fixes.
23603 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
23605 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
23606 -fdump-ada-spec is passed but not if -fsyntax-only is.
23608 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
23611 * lra-lives.c (process_bb_lives): Check insn copying the same
23612 reload pseudo and don't create a copy for it.
23614 2015-06-22 Tom de Vries <tom@codesourcery.com>
23616 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
23619 2015-06-22 Tom de Vries <tom@codesourcery.com>
23621 * builtins.def (DEF_GOMP_BUILTIN): Test
23622 'flag_tree_parallelize_loops > 1' instead of
23623 'flag_tree_parallelize_loops'. Test flag_cilkplus.
23625 2015-06-22 Tom de Vries <tom@codesourcery.com>
23627 * dominance.c (calculate_dominance_info): Verify dominators if
23630 2015-06-22 Marek Polacek <polacek@redhat.com>
23632 * match.pd ((x ^ y) ^ (x | y) -> x & y,
23633 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
23634 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
23635 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
23637 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
23640 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
23641 cost of embedded comparison.
23643 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23646 * config/rs6000/predicates.md (altivec_register_operand): Permit
23647 virtual stack registers.
23648 (vsx_register_operand): Likewise.
23649 (vfloat_operand): Likewise.
23650 (vint_operand): Likewise.
23651 (vlogical_operand): Likewise.
23653 2015-06-22 Richard Biener <rguenther@suse.de>
23655 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
23656 and single_scalar_iteration_cost members.
23657 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
23658 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
23659 (vect_get_single_scalar_iteration_cost): Remove.
23660 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
23661 Use LOOP_VINFO_SCALAR_ITERATION_COST.
23662 * tree-vect-loop.c (destroy_loop_vec_info): Free
23664 (vect_get_single_scalar_iteration_cost): Compute result into
23665 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
23666 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
23667 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
23668 (vect_estimate_min_profitable_iters): Use them.
23670 2015-06-22 Christian Bruel <christian.bruel@st.com>
23673 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
23674 (TARGET_INSERT_ATTRIBUTES): Define.
23675 (thumb_flipper): New var.
23676 * config/arm/arm.opt (-mflip-thumb): New switch.
23678 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23679 Martin Liska <mliska@suse.cz>
23682 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
23683 construction of arg_types.
23684 (sem_function::sem_function): Likewise.
23685 (sem_function::~sem_function): Remove destruction of arg_types.
23686 (sem_function::compatible_parm_types_p): New function.
23687 (sem_function::equals_wpa): Reorg matching of return values
23688 and parameter types.
23689 (sem_function::equals_private): Reorg mathcing of argument types.
23690 (sem_function::parse_tree_args): Remove.
23691 * ipa-icf.h (init_wpa): Do not call it.
23692 (parse_tree_args): Remove.
23693 (compatible_parm_types_p): Declare.
23694 (result_type): Remove.
23695 (arg_types): Remove.
23697 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23700 * ipa-polymorphic-call.c
23701 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
23702 initializing alias oracle; fix formating; set base_alias_set if it
23705 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
23707 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
23708 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
23709 (find_inc): Likewise.
23710 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
23712 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
23713 * df-scan.c (df_swap_refs): Remove.
23714 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
23715 * dominance.c (link_roots): Use std::swap instead of manually swapping.
23716 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
23717 * fold-const.c (fold_relational_const): Likewise.
23718 * genattrtab.c (simplify_test_exp): Likewise.
23719 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
23720 gimple_simplify): Likewise.
23721 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
23722 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
23723 * ipa-devirt.c (add_type_duplicate): Likewise.
23724 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
23725 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
23726 * lra.c (lra_create_copy): Likewise.
23727 * lto-streamer-out.c (DFS::DFS): Likewise.
23728 * modulo-sched.c (get_sched_window): Likewise.
23729 * omega.c (omega_pretty_print_problem): Likewise.
23730 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
23731 * reload1.c (reloads_unique_chain_p): Likewise.
23732 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
23733 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
23735 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
23737 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
23738 predicate_mem_writes): Likewise.
23739 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
23740 * tree-predcom.c (combine_chains): Likewise.
23741 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
23742 refs_may_alias_p_1): Likewise.
23743 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
23744 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23745 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
23746 number_of_iterations_cond): Likewise.
23747 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23748 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
23749 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
23750 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
23751 * tree-vrp.c (extract_range_from_binary_expr_1,
23752 extract_range_from_unary_expr_1): Likewise.
23754 2015-06-20 Marek Polacek <polacek@redhat.com>
23756 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
23758 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
23761 * config/sh/sh.c (prepare_move_operands): Replace subreg
23762 index term with R0 for base and index addressing.
23764 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
23766 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
23768 (movsf_aarch64): Change condition from register_operand to
23769 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
23770 load1. Change type for alternative 7 to store1.
23771 (movdf_aarch64): Likewise.
23773 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
23775 * config/vax/vax.md: Adjust sign/zero extend patterns to
23776 handle SUBREGs in operands[1].
23778 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23780 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
23781 of manually swapping.
23782 (expand_vec_perm_interleave2): Likewise.
23784 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
23786 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
23787 reuse bounds created for abnormal ssa names.
23789 2015-06-19 Jakub Jelinek <jakub@redhat.com>
23791 * config/nvptx/nvptx.md (allocate_stack): Rename to...
23792 (allocate_stack_<mode>): ... this, and add :P on both
23793 match_operand and unspec.
23794 (allocate_stack): New expander.
23796 2015-06-19 Christian Bruel <christian.bruel@st.com>
23800 * config/arm/arm.c (arm_set_current_function): Handle
23801 explicit default options.
23803 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
23805 * config/i386/i386.md (*movsicc_noc_zext): New insn.
23806 (zero-extended cmove with mem peephole2): New pattern.
23807 (cmove with mem peephole2): Merge patterns.
23809 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
23811 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
23813 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
23815 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
23816 * config/mips/mips.md (*madd4<mode>): Ditto.
23817 (*nmadd3<mode>) Ditto.
23818 (*nmadd4<mode>_fastmath): Ditto.
23819 (*nmadd3<mode>_fastmath): Ditto.
23820 (*nmsub4<mode>): Ditto.
23821 (*nmsub3<mode>): Ditto.
23822 (*nmsub4<mode>_fastmath): Ditto.
23823 (*nmsub3<mode>_fastmath): Ditto.
23825 2015-06-18 Michael Matz <matz@suse.de>
23827 PR middle-end/66253
23828 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
23829 grouped strided stores.
23830 (vectorizable_load): Don't use the DR from first_stmt in
23831 the non-SLP grouped strided case.
23833 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23836 * function.c (assign_bounds): Add arguments assign_regs,
23837 assign_special, assign_bt.
23838 (assign_parms): For vararg functions handle bounds in BT
23839 and special slots after incoming vararg bounds.
23841 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23843 PR middle-end/66568
23844 * cfgexpand.c (expand_return): Handle missing bounds.
23845 (expand_gimple_stmt_1): Likewise.
23846 * tree-chkp.c (chkp_expand_zero_bounds): New.
23847 * tree-chkp.h (chkp_expand_zero_bounds): New.
23849 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23851 PR middle-end/66567
23852 * ipa-chkp.c (chkp_maybe_create_clone): Require
23853 functions to be instrumentable.
23854 * tree-chkp.c (chkp_replace_function_pointer): Use
23855 chkp_instrumentable_p instead of attribute check.
23857 2015-06-18 Richard Biener <rguenther@suse.de>
23859 PR tree-optimization/66510
23860 * tree-vect-stmts.c (vectorizable_load): Properly compute the
23861 number of vector loads for SLP permuted loads.
23862 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
23863 check the stride for loop vectorization.
23864 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
23865 vectorization factor.
23866 (vect_analyze_group_access): If the group size is not a power
23867 of two require a epilogue loop.
23868 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
23869 compute and optimizing and alias test pruning after final
23870 vectorization factor computation.
23871 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
23873 (vect_transform_slp_perm_load): Properly compute the original
23874 number of vector load stmts.
23876 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
23878 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
23879 "unlikely character , in @var" warning.
23881 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
23883 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
23884 (ix86_function_arg_advance): Ditto.
23885 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
23887 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23889 * function.h (struct rtl_data): Remove struct and accessor macros.
23890 * emit-rtl.h (struct rtl_data): Relocate to here.
23891 * Makefile.in (GTFILES): Add emit-rtl.h.
23892 * df-core.c: Include emit-rtl.h.
23893 * genattrtab.c: Likewise.
23894 * genconditions.c: Likewise.
23895 * genpreds.c: Likewise.
23896 * genrecog.c: Likewise.
23897 * regcprop.c: Likewise.
23898 * resource.c: Likewise.
23899 * sched-rgn.c: Likewise.
23900 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23901 * config/i386/winnt.c: Likewise.
23903 2015-06-17 Jakub Jelinek <jakub@redhat.com>
23905 PR middle-end/66429
23906 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
23907 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
23908 and has_force_vectorize_loops flags from cfun into
23910 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
23911 if simduid is non-NULL.
23912 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
23913 * passes.def (pass_simduid_cleanup): Add new pass after loop
23915 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
23916 indirection from htab argument's type.
23917 (shrink_simd_arrays): New function.
23918 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
23919 Don't call adjust_simduid_builtins if there are no loops.
23920 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
23921 (pass_simduid_cleanup::execute): New method.
23922 (make_pass_simduid_cleanup): New function.
23924 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
23926 * tree-core.h (tree_target_option): Make opts field a pointer to a
23927 cl_target_option instead of an instance of the struct.
23928 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
23930 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
23931 TARGET_OPTION_NODE.
23932 (copy_node_stat): Allocate and copy struct cl_target_option.
23934 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23936 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
23937 Remove conditional exposure of prototypes.
23938 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
23939 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
23940 definitions in tree.h with functions.
23941 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
23943 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
23945 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
23947 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
23948 (*cmp<mode>_signed): ... this.
23949 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
23950 (*cmp<mode>_unsigned): ... this. Remove %b.
23952 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23954 * coretypes.h: Include input.h and as-a.h.
23955 * rtl.h: Include input.h and as-a.h for generator files.
23956 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
23957 * vec.c: Don't include diagnostic-core.h.
23958 * alias.c: Do not include input.h, line-map.h or is-a.h.
23959 * asan.c: Likewise.
23960 * attribs.c: Likewise.
23961 * auto-inc-dec.c: Likewise.
23962 * auto-profile.c: Likewise.
23963 * bb-reorder.c: Likewise.
23964 * bt-load.c: Likewise.
23965 * builtins.c: Likewise.
23966 * caller-save.c: Likewise.
23967 * calls.c: Likewise.
23968 * ccmp.c: Likewise.
23970 * cfganal.c: Likewise.
23971 * cfgbuild.c: Likewise.
23972 * cfgcleanup.c: Likewise.
23973 * cfgexpand.c: Likewise.
23974 * cfghooks.c: Likewise.
23975 * cfgloop.c: Likewise.
23976 * cfgloop.h: Likewise.
23977 * cfgloopanal.c: Likewise.
23978 * cfgloopmanip.c: Likewise.
23979 * cfgrtl.c: Likewise.
23980 * cgraph.c: Likewise.
23981 * cgraphbuild.c: Likewise.
23982 * cgraphclones.c: Likewise.
23983 * cgraphunit.c: Likewise.
23984 * cilk-common.c: Likewise.
23985 * combine-stack-adj.c: Likewise.
23986 * combine.c: Likewise.
23987 * compare-elim.c: Likewise.
23988 * convert.c: Likewise.
23989 * coverage.c: Likewise.
23990 * cppbuiltin.c: Likewise.
23991 * cprop.c: Likewise.
23993 * cselib.c: Likewise.
23994 * data-streamer-in.c: Likewise.
23995 * data-streamer-out.c: Likewise.
23996 * data-streamer.c: Likewise.
23997 * dbxout.c: Likewise.
24000 * debug.c: Likewise.
24001 * df-core.c: Likewise.
24002 * df-problems.c: Likewise.
24003 * df-scan.c: Likewise.
24006 * diagnostic-core.h: Likewise.
24007 * diagnostic.c: Likewise.
24008 * dojump.c: Likewise.
24009 * dominance.c: Likewise.
24010 * domwalk.c: Likewise.
24011 * double-int.c: Likewise.
24013 * dumpfile.c: Likewise.
24014 * dumpfile.h: Likewise.
24015 * dwarf2asm.c: Likewise.
24016 * dwarf2cfi.c: Likewise.
24017 * dwarf2out.c: Likewise.
24018 * emit-rtl.c: Likewise.
24019 * et-forest.c: Likewise.
24020 * except.c: Likewise.
24021 * explow.c: Likewise.
24022 * expmed.c: Likewise.
24023 * expr.c: Likewise.
24024 * final.c: Likewise.
24025 * fixed-value.c: Likewise.
24026 * fold-const.c: Likewise.
24027 * function.c: Likewise.
24028 * fwprop.c: Likewise.
24029 * gcc-plugin.h: Likewise.
24030 * gcse.c: Likewise.
24031 * generic-match-head.c: Likewise.
24032 * ggc-page.c: Likewise.
24033 * gimple-builder.c: Likewise.
24034 * gimple-expr.c: Likewise.
24035 * gimple-fold.c: Likewise.
24036 * gimple-iterator.c: Likewise.
24037 * gimple-low.c: Likewise.
24038 * gimple-match-head.c: Likewise.
24039 * gimple-pretty-print.c: Likewise.
24040 * gimple-ssa-isolate-paths.c: Likewise.
24041 * gimple-ssa-strength-reduction.c: Likewise.
24042 * gimple-streamer-in.c: Likewise.
24043 * gimple-streamer-out.c: Likewise.
24044 * gimple-streamer.h: Likewise.
24045 * gimple-walk.c: Likewise.
24046 * gimple.c: Likewise.
24047 * gimplify-me.c: Likewise.
24048 * gimplify.c: Likewise.
24049 * godump.c: Likewise.
24050 * graph.c: Likewise.
24051 * graphite-blocking.c: Likewise.
24052 * graphite-dependences.c: Likewise.
24053 * graphite-interchange.c: Likewise.
24054 * graphite-isl-ast-to-gimple.c: Likewise.
24055 * graphite-optimize-isl.c: Likewise.
24056 * graphite-poly.c: Likewise.
24057 * graphite-scop-detection.c: Likewise.
24058 * graphite-sese-to-poly.c: Likewise.
24059 * graphite.c: Likewise.
24060 * haifa-sched.c: Likewise.
24061 * hw-doloop.c: Likewise.
24062 * ifcvt.c: Likewise.
24063 * init-regs.c: Likewise.
24064 * input.c: Likewise.
24065 * internal-fn.c: Likewise.
24066 * ipa-chkp.c: Likewise.
24067 * ipa-comdats.c: Likewise.
24068 * ipa-cp.c: Likewise.
24069 * ipa-devirt.c: Likewise.
24070 * ipa-icf-gimple.c: Likewise.
24071 * ipa-icf.c: Likewise.
24072 * ipa-inline-analysis.c: Likewise.
24073 * ipa-inline-transform.c: Likewise.
24074 * ipa-inline.c: Likewise.
24075 * ipa-polymorphic-call.c: Likewise.
24076 * ipa-profile.c: Likewise.
24077 * ipa-prop.c: Likewise.
24078 * ipa-pure-const.c: Likewise.
24079 * ipa-ref.c: Likewise.
24080 * ipa-reference.c: Likewise.
24081 * ipa-split.c: Likewise.
24082 * ipa-utils.c: Likewise.
24083 * ipa-visibility.c: Likewise.
24085 * ira-build.c: Likewise.
24086 * ira-color.c: Likewise.
24087 * ira-conflicts.c: Likewise.
24088 * ira-costs.c: Likewise.
24089 * ira-emit.c: Likewise.
24090 * ira-lives.c: Likewise.
24092 * jump.c: Likewise.
24093 * langhooks.c: Likewise.
24095 * loop-doloop.c: Likewise.
24096 * loop-init.c: Likewise.
24097 * loop-invariant.c: Likewise.
24098 * loop-iv.c: Likewise.
24099 * loop-unroll.c: Likewise.
24100 * lower-subreg.c: Likewise.
24101 * lra-assigns.c: Likewise.
24102 * lra-coalesce.c: Likewise.
24103 * lra-constraints.c: Likewise.
24104 * lra-eliminations.c: Likewise.
24105 * lra-lives.c: Likewise.
24106 * lra-remat.c: Likewise.
24107 * lra-spills.c: Likewise.
24109 * lto-cgraph.c: Likewise.
24110 * lto-compress.c: Likewise.
24111 * lto-opts.c: Likewise.
24112 * lto-section-in.c: Likewise.
24113 * lto-section-out.c: Likewise.
24114 * lto-streamer-in.c: Likewise.
24115 * lto-streamer-out.c: Likewise.
24116 * lto-streamer.c: Likewise.
24118 * mode-switching.c: Likewise.
24119 * modulo-sched.c: Likewise.
24120 * omega.c: Likewise.
24121 * omp-low.c: Likewise.
24122 * optabs.c: Likewise.
24123 * opts-global.c: Likewise.
24124 * opts.h: Likewise.
24125 * passes.c: Likewise.
24126 * plugin.c: Likewise.
24127 * postreload-gcse.c: Likewise.
24128 * postreload.c: Likewise.
24129 * predict.c: Likewise.
24130 * pretty-print.h: Likewise.
24131 * print-rtl.c: Likewise.
24132 * print-tree.c: Likewise.
24133 * profile.c: Likewise.
24134 * real.c: Likewise.
24135 * realmpfr.c: Likewise.
24136 * recog.c: Likewise.
24138 * reg-stack.c: Likewise.
24139 * regcprop.c: Likewise.
24140 * reginfo.c: Likewise.
24141 * regrename.c: Likewise.
24142 * regstat.c: Likewise.
24143 * reload.c: Likewise.
24144 * reload1.c: Likewise.
24145 * reorg.c: Likewise.
24146 * resource.c: Likewise.
24147 * rtl-chkp.c: Likewise.
24148 * rtl-error.c: Likewise.
24149 * rtlanal.c: Likewise.
24150 * rtlhooks.c: Likewise.
24151 * sanopt.c: Likewise.
24152 * sched-deps.c: Likewise.
24153 * sched-ebb.c: Likewise.
24154 * sched-rgn.c: Likewise.
24155 * sched-vis.c: Likewise.
24156 * sdbout.c: Likewise.
24157 * sel-sched-dump.c: Likewise.
24158 * sel-sched-ir.c: Likewise.
24159 * sel-sched.c: Likewise.
24160 * sese.c: Likewise.
24161 * shrink-wrap.c: Likewise.
24162 * simplify-rtx.c: Likewise.
24163 * stack-ptr-mod.c: Likewise.
24164 * statistics.c: Likewise.
24165 * stmt.c: Likewise.
24166 * stor-layout.c: Likewise.
24167 * store-motion.c: Likewise.
24168 * streamer-hooks.c: Likewise.
24169 * stringpool.c: Likewise.
24170 * symtab.c: Likewise.
24171 * target-globals.c: Likewise.
24172 * targhooks.c: Likewise.
24173 * toplev.c: Likewise.
24174 * tracer.c: Likewise.
24175 * trans-mem.c: Likewise.
24176 * tree-affine.c: Likewise.
24177 * tree-browser.c: Likewise.
24178 * tree-call-cdce.c: Likewise.
24179 * tree-cfg.c: Likewise.
24180 * tree-cfgcleanup.c: Likewise.
24181 * tree-chkp-opt.c: Likewise.
24182 * tree-chkp.c: Likewise.
24183 * tree-chrec.c: Likewise.
24184 * tree-complex.c: Likewise.
24185 * tree-data-ref.c: Likewise.
24186 * tree-dfa.c: Likewise.
24187 * tree-diagnostic.c: Likewise.
24188 * tree-dump.c: Likewise.
24189 * tree-eh.c: Likewise.
24190 * tree-emutls.c: Likewise.
24191 * tree-if-conv.c: Likewise.
24192 * tree-inline.c: Likewise.
24193 * tree-into-ssa.c: Likewise.
24194 * tree-iterator.c: Likewise.
24195 * tree-loop-distribution.c: Likewise.
24196 * tree-nested.c: Likewise.
24197 * tree-nrv.c: Likewise.
24198 * tree-object-size.c: Likewise.
24199 * tree-outof-ssa.c: Likewise.
24200 * tree-parloops.c: Likewise.
24201 * tree-phinodes.c: Likewise.
24202 * tree-predcom.c: Likewise.
24203 * tree-pretty-print.c: Likewise.
24204 * tree-profile.c: Likewise.
24205 * tree-scalar-evolution.c: Likewise.
24206 * tree-sra.c: Likewise.
24207 * tree-ssa-address.c: Likewise.
24208 * tree-ssa-alias.c: Likewise.
24209 * tree-ssa-ccp.c: Likewise.
24210 * tree-ssa-coalesce.c: Likewise.
24211 * tree-ssa-copy.c: Likewise.
24212 * tree-ssa-copyrename.c: Likewise.
24213 * tree-ssa-dce.c: Likewise.
24214 * tree-ssa-dom.c: Likewise.
24215 * tree-ssa-dse.c: Likewise.
24216 * tree-ssa-forwprop.c: Likewise.
24217 * tree-ssa-ifcombine.c: Likewise.
24218 * tree-ssa-live.c: Likewise.
24219 * tree-ssa-loop-ch.c: Likewise.
24220 * tree-ssa-loop-im.c: Likewise.
24221 * tree-ssa-loop-ivcanon.c: Likewise.
24222 * tree-ssa-loop-ivopts.c: Likewise.
24223 * tree-ssa-loop-manip.c: Likewise.
24224 * tree-ssa-loop-niter.c: Likewise.
24225 * tree-ssa-loop-prefetch.c: Likewise.
24226 * tree-ssa-loop-unswitch.c: Likewise.
24227 * tree-ssa-loop.c: Likewise.
24228 * tree-ssa-math-opts.c: Likewise.
24229 * tree-ssa-operands.c: Likewise.
24230 * tree-ssa-phiopt.c: Likewise.
24231 * tree-ssa-phiprop.c: Likewise.
24232 * tree-ssa-pre.c: Likewise.
24233 * tree-ssa-propagate.c: Likewise.
24234 * tree-ssa-reassoc.c: Likewise.
24235 * tree-ssa-sccvn.c: Likewise.
24236 * tree-ssa-scopedtables.c: Likewise.
24237 * tree-ssa-sink.c: Likewise.
24238 * tree-ssa-strlen.c: Likewise.
24239 * tree-ssa-structalias.c: Likewise.
24240 * tree-ssa-tail-merge.c: Likewise.
24241 * tree-ssa-ter.c: Likewise.
24242 * tree-ssa-threadedge.c: Likewise.
24243 * tree-ssa-threadupdate.c: Likewise.
24244 * tree-ssa-uncprop.c: Likewise.
24245 * tree-ssa-uninit.c: Likewise.
24246 * tree-ssa.c: Likewise.
24247 * tree-ssanames.c: Likewise.
24248 * tree-stdarg.c: Likewise.
24249 * tree-streamer-in.c: Likewise.
24250 * tree-streamer-out.c: Likewise.
24251 * tree-streamer.c: Likewise.
24252 * tree-switch-conversion.c: Likewise.
24253 * tree-tailcall.c: Likewise.
24254 * tree-vect-data-refs.c: Likewise.
24255 * tree-vect-generic.c: Likewise.
24256 * tree-vect-loop-manip.c: Likewise.
24257 * tree-vect-loop.c: Likewise.
24258 * tree-vect-patterns.c: Likewise.
24259 * tree-vect-slp.c: Likewise.
24260 * tree-vect-stmts.c: Likewise.
24261 * tree-vectorizer.c: Likewise.
24262 * tree-vrp.c: Likewise.
24263 * tree.c: Likewise.
24264 * tsan.c: Likewise.
24265 * ubsan.c: Likewise.
24266 * valtrack.c: Likewise.
24267 * value-prof.c: Likewise.
24268 * var-tracking.c: Likewise.
24269 * varasm.c: Likewise.
24270 * varpool.c: Likewise.
24271 * vmsdbgout.c: Likewise.
24272 * vtable-verify.c: Likewise.
24274 * wide-int.cc: Likewise.
24275 * xcoffout.c: Likewise.
24276 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
24277 * common/common-targhooks.c: Likewise.
24278 * config/aarch64/aarch64-builtins.c: Likewise.
24279 * config/aarch64/aarch64.c: Likewise.
24280 * config/alpha/alpha.c: Likewise.
24281 * config/arc/arc.c: Likewise.
24282 * config/arm/aarch-common.c: Likewise.
24283 * config/arm/arm-builtins.c: Likewise.
24284 * config/arm/arm-c.c: Likewise.
24285 * config/arm/arm.c: Likewise.
24286 * config/avr/avr-c.c: Likewise.
24287 * config/avr/avr-log.c: Likewise.
24288 * config/avr/avr.c: Likewise.
24289 * config/bfin/bfin.c: Likewise.
24290 * config/c6x/c6x.c: Likewise.
24291 * config/cr16/cr16.c: Likewise.
24292 * config/cris/cris.c: Likewise.
24293 * config/darwin-c.c: Likewise.
24294 * config/darwin.c: Likewise.
24295 * config/default-c.c: Likewise.
24296 * config/epiphany/epiphany.c: Likewise.
24297 * config/epiphany/mode-switch-use.c: Likewise.
24298 * config/epiphany/resolve-sw-modes.c: Likewise.
24299 * config/fr30/fr30.c: Likewise.
24300 * config/frv/frv.c: Likewise.
24301 * config/ft32/ft32.c: Likewise.
24302 * config/glibc-c.c: Likewise.
24303 * config/h8300/h8300.c: Likewise.
24304 * config/i386/i386-c.c: Likewise.
24305 * config/i386/i386.c: Likewise.
24306 * config/i386/msformat-c.c: Likewise.
24307 * config/i386/winnt-cxx.c: Likewise.
24308 * config/i386/winnt-stubs.c: Likewise.
24309 * config/i386/winnt.c: Likewise.
24310 * config/ia64/ia64-c.c: Likewise.
24311 * config/ia64/ia64.c: Likewise.
24312 * config/iq2000/iq2000.c: Likewise.
24313 * config/lm32/lm32.c: Likewise.
24314 * config/m32c/m32c-pragma.c: Likewise.
24315 * config/m32c/m32c.c: Likewise.
24316 * config/m32r/m32r.c: Likewise.
24317 * config/m68k/m68k.c: Likewise.
24318 * config/mcore/mcore.c: Likewise.
24319 * config/mep/mep-pragma.c: Likewise.
24320 * config/mep/mep.c: Likewise.
24321 * config/microblaze/microblaze-c.c: Likewise.
24322 * config/microblaze/microblaze.c: Likewise.
24323 * config/mips/mips.c: Likewise.
24324 * config/mmix/mmix.c: Likewise.
24325 * config/mn10300/mn10300.c: Likewise.
24326 * config/moxie/moxie.c: Likewise.
24327 * config/msp430/msp430-c.c: Likewise.
24328 * config/msp430/msp430.c: Likewise.
24329 * config/nds32/nds32-cost.c: Likewise.
24330 * config/nds32/nds32-fp-as-gp.c: Likewise.
24331 * config/nds32/nds32-intrinsic.c: Likewise.
24332 * config/nds32/nds32-isr.c: Likewise.
24333 * config/nds32/nds32-md-auxiliary.c: Likewise.
24334 * config/nds32/nds32-memory-manipulation.c: Likewise.
24335 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24336 * config/nds32/nds32-predicates.c: Likewise.
24337 * config/nds32/nds32.c: Likewise.
24338 * config/nios2/nios2.c: Likewise.
24339 * config/nvptx/nvptx.c: Likewise.
24340 * config/pa/pa.c: Likewise.
24341 * config/pdp11/pdp11.c: Likewise.
24342 * config/rl78/rl78-c.c: Likewise.
24343 * config/rl78/rl78.c: Likewise.
24344 * config/rs6000/rs6000-c.c: Likewise.
24345 * config/rs6000/rs6000.c: Likewise.
24346 * config/rx/rx.c: Likewise.
24347 * config/s390/s390-c.c: Likewise.
24348 * config/s390/s390.c: Likewise.
24349 * config/sh/sh-c.c: Likewise.
24350 * config/sh/sh-mem.cc: Likewise.
24351 * config/sh/sh.c: Likewise.
24352 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24353 * config/sh/sh_treg_combine.cc: Likewise.
24354 * config/sol2-c.c: Likewise.
24355 * config/sol2-cxx.c: Likewise.
24356 * config/sol2-stubs.c: Likewise.
24357 * config/sol2.c: Likewise.
24358 * config/sparc/sparc-c.c: Likewise.
24359 * config/sparc/sparc.c: Likewise.
24360 * config/spu/spu-c.c: Likewise.
24361 * config/spu/spu.c: Likewise.
24362 * config/stormy16/stormy16.c: Likewise.
24363 * config/tilegx/mul-tables.c: Likewise.
24364 * config/tilegx/tilegx-c.c: Likewise.
24365 * config/tilegx/tilegx.c: Likewise.
24366 * config/tilepro/mul-tables.c: Likewise.
24367 * config/tilepro/tilepro-c.c: Likewise.
24368 * config/tilepro/tilepro.c: Likewise.
24369 * config/v850/v850-c.c: Likewise.
24370 * config/v850/v850.c: Likewise.
24371 * config/vax/vax.c: Likewise.
24372 * config/visium/visium.c: Likewise.
24373 * config/vms/vms-c.c: Likewise.
24374 * config/vms/vms.c: Likewise.
24375 * config/vxworks.c: Likewise.
24376 * config/winnt-c.c: Likewise.
24377 * config/xtensa/xtensa.c: Likewise.
24379 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
24381 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
24383 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
24385 2015-06-17 Richard Biener <rguenther@suse.de>
24387 PR tree-optimization/66251
24388 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
24389 stmts for SLP strided stores.
24392 2015-05-22 Richard Biener <rguenther@suse.de>
24394 PR tree-optimization/66251
24395 * tree-vect-stmts.c (vectorizable_conversion): Properly
24396 set STMT_VINFO_VEC_STMT even for the SLP case.
24398 2015-05-26 Michael Matz <matz@suse.de>
24400 PR middle-end/66251
24401 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
24402 STMT_VINFO_VEC_STMT, also with SLP.
24404 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
24407 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
24408 (*avx_addsubv4df3_1s): Ditto.
24409 (*sse3_addsubv2df3_1): Ditto.
24410 (*sse3_addsubv2df3_1s): Ditto.
24411 (*avx_addsubv8sf3_1): Ditto.
24412 (*avx_addsubv8sf3_1s): Ditto.
24413 (*sse3_addsubv4sf3_1): Ditto.
24414 (*sse3_addsubv4sf3_1s): Ditto.
24416 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
24418 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
24419 (SYSROOT_SUFFIX_SPEC): Update.
24420 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
24421 (STARTFILE_PREFIX_SPEC): Update.
24422 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
24423 (MULTILIB_REQUIRED): New.
24424 (MULTILIB_OSDIRNAMES): New.
24425 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
24426 (MULTILIB_REQUIRED): New.
24427 (MULTILIB_OSDIRNAMES): New.
24429 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
24431 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
24432 * config/aarch64/aarch64-options-extensions.def: Update "fP",
24433 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
24434 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
24435 (AARCH64_FL_PAN): New.
24436 (AARCH64_FL_LOR): New.
24437 (AARCH64_FL_RDMA): New.
24438 (AARCH64_FL_FOR_ARCH8_1): New.
24439 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
24440 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
24442 2015-06-16 Martin Liska <mliska@suse.cz>
24444 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
24445 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
24448 2015-06-16 Richard Biener <rguenther@suse.de>
24450 * tree-vect-stmts.c (vectorizable_store): Adjust.
24451 (vectorizable_load): Likewise.
24452 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
24454 (vect_create_data_ref_ptr): Likewise.
24455 (bump_vector_ptr): Adjust.
24457 2015-06-16 Richard Biener <rguenther@suse.de>
24459 * tree-vect-stmts.c (vectorizable_load): Properly start loads
24460 with the first element if this is grouped loads.
24462 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
24464 * config/arm/arm-protos.h (struct tune_params): Rename
24465 log_op_non_sc to log_op_non_short_circuit, and rename enum
24466 values to expand SC to SHORT_CIRCUIT.
24467 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
24468 to LOG_OP_NON_SHORT_CIRCUIT.
24469 (arm_fastmul_tune):Likewise
24470 (arm_strongarm_tune): Likewise.
24471 (arm_xscale_tune): Likewise.
24472 (arm_9e_tune): Likewise.
24473 (arm_marvell_pj4_tune): Likewise.
24474 (arm_v6t2_tune): Likewise.
24475 (arm_cortex_tune): Likewise.
24476 (arm_cortex_a8_tune): Likewise.
24477 (arm_cortex_a7_tune): Likewise.
24478 (arm_cortex_a15_tune): Likewise.
24479 (arm_cortex_a53_tune): Likewise.
24480 (arm_cortex_a57_tune): Likewise.
24481 (arm_xgene1_tune): Likewise.
24482 (arm_cortex_a5_tune): Likewise.
24483 (arm_cortex_a9_tune): Likewise.
24484 (arm_cortex_a12_tune): Likewise.
24485 (arm_v7m_tune): Likewise.
24486 (arm_cortex_m7_tune): Likewise.
24487 (arm_v6m_tune): Likewise.
24488 (arm_fa726te_tune): Likewise.
24490 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
24492 * altivec.md: Delete UNSPEC_VMLADDUHM.
24493 (mulv4si3_p8): New pattern.
24494 (mulv4si3): Use it for POWER8.
24495 (mulv8hi3): Use vmladduhm with zero addend.
24496 (altivec_vmladduhm): Descriptive RTL.
24498 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
24500 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
24501 to use neon_move instead of mov_imm.
24502 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
24503 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
24505 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
24506 aarch64_float_const_zero_rtx_p check before TFmode check.
24507 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
24509 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
24510 code and attributes to match. Change condition from register_operand
24511 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
24512 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
24515 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
24518 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
24519 there is no parent.
24521 2015-06-14 Shiva Chen <shiva0217@gmail.com>
24523 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
24524 HOST_WIDE_INT parameter.
24526 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
24529 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
24530 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
24532 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
24534 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
24536 * rtl.h (classify_insn): Declare.
24537 * emit-rtl.c (classify_insn): Move to...
24538 * rtl.c: ...here and add generator support.
24539 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
24540 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
24541 * genemit.c (gen_emit_seq): New function.
24542 (gen_expand, gen_split): Use it.
24544 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
24546 * tree.c (make_vector_stat): Fix comment to state that the
24547 function returns a VECTOR_CST.
24549 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
24551 * gensupport.h (add_implicit_parallel): Declare.
24552 * genrecog.c (add_implicit_parallel): Move to...
24553 * gensupport.c (add_implicit_parallel): ...here.
24554 (process_one_cond_exec): Use it.
24555 * genemit.c (gen_insn): Likewise.
24557 2015-06-13 Iain Sandoe <iain@codesourcery.com>
24560 * passes.c (rest_of_decl_compilation): Do not register globals for
24561 early debug if they are declared in built-ins.
24563 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
24565 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
24567 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24569 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
24571 (noce_try_cmove_arith): Likewise.
24572 (noce_get_alt_condition): Likewise.
24574 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24576 * common/config/i386/i386-common.c
24577 (OPTION_MASK_ISA_MWAITX_SET): New.
24578 (ix86_handle_option): Handle mwaitx.
24579 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
24580 (x86_64-*-*): Likewise.
24581 * config/i386/mwaitxintrin.h: New header.
24582 * config/i386/cpuid.h (bit_MWAITX): Define.
24583 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24585 * config/i386/i386.opt (mwaitx): New.
24586 * config/i386/i386-builtin-types.def
24587 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
24588 * config/i386/i386-c.c: Define __MWAITX__ if needed.
24589 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
24591 (ix86_option_override_internal): Handle new option.
24592 (processor_alias_table): Added PTA_MWAITX.
24593 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
24594 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
24595 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
24596 IX86_BUILTIN_MONITORX built-ins.
24597 * config/i386/i386.h (TARGET_MWAITX): New.
24598 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
24600 (mwaitx): New pattern.
24601 (monitorx_<mode>): New pattern.
24602 * config/i386/x86intrin.h: Include mwaitxintrin.h.
24603 * doc/extend.texi: Document monitorx and mwaitx builtins.
24604 * doc/invoke.texi: Document -mmwaitx option.
24606 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
24608 * emit-rtl.c (need_atomic_barrier_p): Mask model with
24609 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
24611 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
24613 * dbxout.c (xcoff_debug_hooks): Provide a function for
24614 register_main_translation_unit hook.
24616 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
24618 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
24619 variants cases from switch.
24620 (rs6000_post_atomic_barrier): Same.
24621 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
24622 (rs6000_expand_atomic_exchange): Same.
24623 (rs6000_expand_atomic_op): Same.
24624 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
24625 SYNC variants cases from switch.
24626 (atomic_load): Same.
24627 (atomic_store): Same.
24629 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
24631 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
24632 CONST_INT for goto.
24634 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
24637 * dwarf2out.c (check_die): Check for common duplicate attributes.
24638 (add_location_or_const_value_attribute): Do not add duplicate
24640 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
24642 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
24643 (gen_type_die_with_usage): Call check_die.
24644 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
24646 2015-06-11 Jason Merrill <jason@redhat.com>
24648 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
24651 2015-06-11 Marek Polacek <polacek@redhat.com>
24653 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
24655 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
24658 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
24659 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
24660 (*addx_extend_sp32): Fix pasto.
24661 (*subx_extend): Rename into...
24662 (*subx_extend_sp32): ...this.
24663 (*adddi3_extend_sp32): Add earlyclobber.
24664 (*subdi3_insn_sp32): Likewise.
24665 (*subdi3_extend_sp32): Likewise.
24666 (*and_not_di_sp32): Likewise.
24667 (*or_not_di_sp32): Likewise.
24668 (*xor_not_di_sp32): Likewise.
24669 (*negdi2_sp32): Likewise.
24670 (*one_cmpldi2_sp32): Likewise.
24672 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
24674 * debug.h (struct gcc_debug_hooks): Add a
24675 register_main_translation_unit hook.
24676 * debug.c (do_nothing_debug_hooks): Provide a function for this
24678 * dbxout.c (dbx_debug_hooks): Likewise.
24679 * sdbout.c (sdb_debug_hooks): Likewise.
24680 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24681 * dwarf2out.c (main_translation_unit): New global variable.
24682 (dwarf2out_register_main_translation_unit): New function
24683 implementing the new hook.
24684 (dwarf2_debug_hooks): Assign
24685 dwarf2out_register_main_translation_unit to this new hook.
24686 (dwarf2out_init): Associate any main translation unit to
24689 2015-06-11 Marek Polacek <polacek@redhat.com>
24691 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
24693 2015-06-11 Marek Polacek <polacek@redhat.com>
24695 * match.pd: Use single_use throughout.
24697 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24699 * config/arm/arm.c (arm_option_params_internal): When optimising
24700 for speed set max_insns_skipped when arm_restrict_it.
24702 2015-06-11 Christian Bruel <christian.bruel@st.com>
24705 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
24707 (arm_cpu_builtins): New function.
24708 (arm_pragma_target_parse): Call arm_cpu_builtins.
24709 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
24710 (arm_register_target_pragmas): Likewise.
24711 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
24712 Call arm_register_target_pragmas.
24713 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
24714 (arm_pragma_target_parse): Likewise.
24716 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
24718 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
24719 of the second operand.
24721 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
24724 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
24725 to prepare mask operand for AVX512 modes.
24727 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24730 * doc/md.texi (Machine Constraints): Document that on the PowerPC
24731 if you use a constraint that targets a VSX register, you must use
24732 %x<n> in the template.
24734 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
24736 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
24737 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
24738 (define_insn "trap"): New definition.
24740 2015-06-10 Richard Biener <rguenther@suse.de>
24742 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
24744 (vect_supported_load_permutation_p): ... here. Handle
24745 supportable permutations in reductions.
24746 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
24747 for vectorizing strided group loads.
24749 2015-06-10 Jakub Jelinek <jakub@redhat.com>
24752 * config/i386/i386.c (ix86_split_long_move): For collisions
24753 involving direct tls segment refs, move the UNSPEC_TP possibly
24754 wrapped in ZERO_EXTEND out of the address for lea, to each of
24757 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24759 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
24760 dmb sy. Adjust tabs.
24762 2015-06-10 Tom de Vries <tom@codesourcery.com>
24764 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
24766 2015-06-10 Martin Liska <mliska@suse.cz>
24769 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
24770 all enum values in mem_alloc_origin.
24771 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
24773 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
24774 * bitmap.c (bitmap_register): Likewise.
24775 (dump_bitmap_statistics): Likewise.
24776 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
24777 (ggc_record_overhead): Likewise.
24778 * hash-map.h: Likewise.
24779 * hash-set.h: Likewise.
24780 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
24781 * hash-table.h: Likewise.
24782 * vec.c (vec_prefix::register_overhead): Likewise.
24783 (vec_prefix::release_overhead): Likewise.
24784 (dump_vec_loc_statistics): Likewise.
24786 2015-06-09 Christian Bruel <christian.bruel@st.com>
24789 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
24790 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
24791 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
24792 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
24793 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
24794 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
24795 (arm_valid_target_attribute_p): Likewise.
24796 (arm_set_current_function, arm_can_inline_p): Likewise.
24797 (arm_valid_target_attribute_rec): Likewise.
24798 (arm_previous_fndecl): New variable.
24799 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
24800 (TARGET_CAN_INLINE_P): Define.
24801 (arm_asm_trampoline_template): Emit mode.
24802 (arm_file_start): Don't set unified syntax.
24803 (arm_declare_function_name): Set unified syntax and mode.
24804 (arm_option_override): Init target_option_default_node.
24805 and target_option_current_node.
24806 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
24807 (*call_symbol): Likewise.
24808 * doc/extend.texi: Document ARM/Thumb target attribute.
24809 * doc/invoke.texi: Likewise.
24811 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24814 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24815 PR rtl-optimization/64164
24816 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24817 * tree-ssa-copyrename.c: Removed.
24818 * opts.c (default_options_table): Drop -ftree-copyrename. Add
24819 -ftree-coalesce-vars.
24820 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24821 * common.opt (ftree-copyrename): Ignore.
24822 (ftree-coalesce-inlined-vars): Likewise.
24823 * doc/invoke.texi: Remove the ignored options above.
24824 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24825 * tree-ssa-coalesce.h: ... here.
24826 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24827 headers required by it.
24828 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24829 across variables when flag_tree_coalesce_vars. Check register
24830 use and promoted modes to allow coalescing. Moved to
24831 tree-ssa-coalesce.c.
24832 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24833 with its member functions to tree-ssa-coalesce.c.
24834 (var_map_base_init): Likewise. Renamed to
24835 compute_samebase_partition_bases.
24836 (partition_view_normal): Drop want_bases parameter.
24837 (partition_view_bitmap): Likewise.
24838 * tree-ssa-live.h: Adjust declarations.
24839 * tree-ssa-coalesce.c: Include explow.h.
24840 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24841 default defs at the entry point.
24842 (dump_part_var_map): New.
24843 (compute_optimized_partition_bases): New, called by...
24844 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24845 of compute_samebase_partition_bases. Adjust.
24846 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24847 * cfgexpand.c (leader_merge): New.
24848 (get_rtl_for_parm_ssa_default_def): New.
24849 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24850 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24851 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
24852 redundant MEM attr setting.
24853 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
24855 (expand_one_stack_var): ... this. New wrapper to check and
24856 skip already expanded SSA partitions.
24857 (record_alignment_for_reg_var): New, factored out of...
24858 (expand_one_var): ... this.
24859 (expand_one_ssa_partition): New.
24860 (adjust_one_expanded_partition_var): New.
24861 (expand_one_register_var): Check and skip already expanded SSA
24863 (expand_used_vars): Don't create DECLs for anonymous SSA
24864 names. Expand all SSA partitions, then adjust all SSA names.
24865 (pass::execute): Replace the loops that set
24866 SA.partition_to_pseudo from partition leaders and cleared
24867 DECL_RTL for multi-location variables, and that which used to
24868 rename vars and set attrs, with one that clears DECL_RTL and
24869 checks that PARMs and RESULTs default_defs match DECL_RTL.
24870 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24871 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24872 * explow.c (promote_ssa_mode): New.
24873 * explow.h (promote_ssa_mode): Declare.
24874 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24875 * function.c: Include cfgexpand.h.
24876 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24877 (use_register_for_parm_decl): Wrapper for the above to
24878 special-case the result_ptr.
24879 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24880 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24881 multiple locations.
24882 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24883 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
24884 (assign_parm_setup_block): Prefer SSA-assigned location.
24885 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
24886 if stack_parm is NULL.
24887 (assign_parm_setup_stack): Prefer SSA-assigned location.
24888 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
24889 rtl before testing for pointer bounds. Special-case result_ptr.
24890 (expand_function_start): Maybe reset DECL_RTL of result.
24891 Prefer SSA-assigned location for result and static chain.
24892 Factor out DECL_RESULT and SET_DECL_RTL.
24893 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24894 anonymous SSA names. Use promote_ssa_mode.
24895 (get_temp_reg): Likewise.
24896 (remove_ssa_form): Adjust.
24897 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24898 and get its reg_usage for reg invalidation.
24899 (compute_bb_dataflow): Pass it insn.
24900 (emit_notes_in_bb): Likewise.
24901 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24902 fail assert on conversion between unsigned types.
24904 2015-06-09 Tom de Vries <tom@codesourcery.com>
24906 PR tree-optimization/65460
24907 * omp-low.c (expand_omp_target): Set parallelized_function on
24908 cgraph_node for child_fn.
24910 2015-06-09 Tom de Vries <tom@codesourcery.com>
24912 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
24913 parallelized_function before add_new_function.
24915 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
24917 * gcc-plugin.h: Move decls to plugin.h and include it.
24918 * plugin.h: Relocate decls from gcc-plugin.h
24919 * ggc-page.c: Include required header files.
24920 * passes.c: Likewise.
24921 * cgraphunit.c: Likewise.
24923 2015-06-09 Tom de Vries <tom@codesourcery.com>
24925 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
24927 2015-06-09 Jason Merrill <jason@redhat.com>
24930 * toplev.c (check_global_declaration): Don't warn about a clone.
24932 2015-06-09 Marek Polacek <polacek@redhat.com>
24934 PR tree-optimization/66299
24935 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
24936 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
24939 2015-06-09 Richard Biener <rguenther@suse.de>
24941 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
24942 (vect_analyze_slp_instance): Instead do not falsely drop
24945 2015-06-09 Richard Biener <rguenther@suse.de>
24947 PR middle-end/66423
24948 * match.pd: Handle A % (unsigned)(1 << B).
24950 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
24952 * varasm.c (output_object_block_htab): Remove.
24953 (output_object_block_compare): New.
24954 (output_object_blocks): Sort named object_blocks before outputting
24957 2015-06-09 Richard Biener <rguenther@suse.de>
24959 PR tree-optimization/66419
24960 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
24961 consider GROUP_GAP when detecting a perfect subchain.
24963 2015-06-09 Nick Clifton <nickc@redhat.com>
24965 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
24966 place read only data in the .frodata section.
24968 2015-06-09 Shiva Chen <shiva0217@gmail.com>
24970 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
24971 (atomic_store<mode>): Likewise.
24973 2015-06-09 Richard Biener <rguenther@suse.de>
24975 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
24977 2015-06-09 Richard Biener <rguenther@suse.de>
24979 PR middle-end/66413
24980 * tree-inline.c (insert_init_debug_bind): Unshare value.
24982 2015-06-09 Richard Biener <rguenther@suse.de>
24984 PR tree-optimization/66396
24985 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
24986 Rename virtual operands.
24988 2015-06-09 Tom de Vries <tom@codesourcery.com>
24990 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
24991 always return false.
24993 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24995 PR rtl-optimization/64164
24996 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24997 * tree-ssa-copyrename.c: Removed.
24998 * opts.c (default_options_table): Drop -ftree-copyrename. Add
24999 -ftree-coalesce-vars.
25000 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25001 * common.opt (ftree-copyrename): Ignore.
25002 (ftree-coalesce-inlined-vars): Likewise.
25003 * doc/invoke.texi: Remove the ignored options above.
25004 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25005 * tree-ssa-coalesce.h: ... here.
25006 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25007 headers required by it.
25008 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25009 across variables when flag_tree_coalesce_vars. Check register
25010 use and promoted modes to allow coalescing. Moved to
25011 tree-ssa-coalesce.c.
25012 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25013 with its member functions to tree-ssa-coalesce.c.
25014 (var_map_base_init): Likewise. Renamed to
25015 compute_samebase_partition_bases.
25016 (partition_view_normal): Drop want_bases parameter.
25017 (partition_view_bitmap): Likewise.
25018 * tree-ssa-live.h: Adjust declarations.
25019 * tree-ssa-coalesce.c: Include explow.h.
25020 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25021 default defs at the entry point.
25022 (dump_part_var_map): New.
25023 (compute_optimized_partition_bases): New, called by...
25024 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25025 of compute_samebase_partition_bases. Adjust.
25026 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25027 * cfgexpand.c (leader_merge): New.
25028 (get_rtl_for_parm_ssa_default_def): New.
25029 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25030 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25031 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
25032 redundant MEM attr setting.
25033 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
25035 (expand_one_stack_var): ... this. New wrapper to check and
25036 skip already expanded SSA partitions.
25037 (record_alignment_for_reg_var): New, factored out of...
25038 (expand_one_var): ... this.
25039 (expand_one_ssa_partition): New.
25040 (adjust_one_expanded_partition_var): New.
25041 (expand_one_register_var): Check and skip already expanded SSA
25043 (expand_used_vars): Don't create DECLs for anonymous SSA
25044 names. Expand all SSA partitions, then adjust all SSA names.
25045 (pass::execute): Replace the loops that set
25046 SA.partition_to_pseudo from partition leaders and cleared
25047 DECL_RTL for multi-location variables, and that which used to
25048 rename vars and set attrs, with one that clears DECL_RTL and
25049 checks that PARMs and RESULTs default_defs match DECL_RTL.
25050 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25051 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25052 * explow.c (promote_ssa_mode): New.
25053 * explow.h (promote_ssa_mode): Declare.
25054 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25055 * function.c: Include cfgexpand.h.
25056 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25057 (use_register_for_parm_decl): Wrapper for the above to
25058 special-case the result_ptr.
25059 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25060 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25061 multiple locations.
25062 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25063 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
25064 (assign_parm_setup_block): Prefer SSA-assigned location.
25065 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
25066 if stack_parm is NULL.
25067 (assign_parm_setup_stack): Prefer SSA-assigned location.
25068 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
25069 rtl before testing for pointer bounds. Special-case result_ptr.
25070 (expand_function_start): Maybe reset DECL_RTL of result.
25071 Prefer SSA-assigned location for result and static chain.
25072 Factor out DECL_RESULT and SET_DECL_RTL.
25073 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25074 anonymous SSA names. Use promote_ssa_mode.
25075 (get_temp_reg): Likewise.
25076 (remove_ssa_form): Adjust.
25077 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25078 and get its reg_usage for reg invalidation.
25079 (compute_bb_dataflow): Pass it insn.
25080 (emit_notes_in_bb): Likewise.
25081 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25082 fail assert on conversion between unsigned types.
25084 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25087 * tree-inline.c (reset_debug_binding): New.
25088 (reset_debug_bindings): Likewise.
25089 (expand_call_inline): Call it.
25091 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25093 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
25096 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25098 * lto-streamer-out.c (lto_output_location): Stream
25099 reserved locations correctly.
25100 * lto-streamer-in.c (lto_output_location): Likewise.
25102 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
25104 * coretypes.h: Include hash-table.h and hash-set.h for host files.
25105 * ggc.h: Don't include statistics.h>
25106 * hash-map.h: Remove all includes.
25107 * hash-set.h: Likewise.
25108 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
25109 the include list. Remove <new>.
25110 * inchash.h: Remove all includes.
25111 * mem-stats.h: Likewise.
25112 * vec.h: No special processing for generators or ggc.
25113 * alias.c : Adjust include files.
25114 * alloc-pool.c : Likewise.
25115 * alloc-pool.h : Likewise.
25116 * asan.c : Likewise.
25117 * attribs.c : Likewise.
25118 * auto-inc-dec.c : Likewise.
25119 * auto-profile.c : Likewise.
25120 * bb-reorder.c : Likewise.
25121 * bitmap.c : Likewise.
25122 * bitmap.h : Likewise.
25123 * bt-load.c : Likewise.
25124 * builtins.c : Likewise.
25125 * caller-save.c : Likewise.
25126 * calls.c : Likewise.
25127 * ccmp.c : Likewise.
25128 * cfg.c : Likewise.
25129 * cfganal.c : Likewise.
25130 * cfgbuild.c : Likewise.
25131 * cfgcleanup.c : Likewise.
25132 * cfgexpand.c : Likewise.
25133 * cfghooks.c : Likewise.
25134 * cfgloop.c : Likewise.
25135 * cfgloop.h : Likewise.
25136 * cfgloopanal.c : Likewise.
25137 * cfgloopmanip.c : Likewise.
25138 * cfgrtl.c : Likewise.
25139 * cgraph.c : Likewise.
25140 * cgraphbuild.c : Likewise.
25141 * cgraphclones.c : Likewise.
25142 * cgraphunit.c : Likewise.
25143 * cilk-common.c : Likewise.
25144 * combine-stack-adj.c : Likewise.
25145 * combine.c : Likewise.
25146 * compare-elim.c : Likewise.
25147 * context.c : Likewise.
25148 * convert.c : Likewise.
25149 * coverage.c : Likewise.
25150 * cppbuiltin.c : Likewise.
25151 * cprop.c : Likewise.
25152 * cse.c : Likewise.
25153 * cselib.c : Likewise.
25154 * data-streamer-in.c : Likewise.
25155 * data-streamer-out.c : Likewise.
25156 * data-streamer.c : Likewise.
25157 * data-streamer.h : Likewise.
25158 * dbxout.c : Likewise.
25159 * dce.c : Likewise.
25160 * ddg.c : Likewise.
25161 * debug.c : Likewise.
25162 * df-core.c : Likewise.
25163 * df-problems.c : Likewise.
25164 * df-scan.c : Likewise.
25166 * dfp.c : Likewise.
25167 * dojump.c : Likewise.
25168 * dominance.c : Likewise.
25169 * domwalk.c : Likewise.
25170 * double-int.c : Likewise.
25171 * dse.c : Likewise.
25172 * dumpfile.c : Likewise.
25173 * dwarf2asm.c : Likewise.
25174 * dwarf2cfi.c : Likewise.
25175 * dwarf2out.c : Likewise.
25176 * emit-rtl.c : Likewise.
25177 * et-forest.c : Likewise.
25178 * except.c : Likewise.
25179 * except.h : Likewise.
25180 * explow.c : Likewise.
25181 * expmed.c : Likewise.
25182 * expr.c : Likewise.
25183 * final.c : Likewise.
25184 * fixed-value.c : Likewise.
25185 * fold-const.c : Likewise.
25186 * function.c : Likewise.
25187 * fwprop.c : Likewise.
25188 * gcc-plugin.h : Likewise.
25189 * gcc.c : Likewise.
25190 * gcse-common.c : Likewise.
25191 * gcse.c : Likewise.
25192 * genattrtab.c : Likewise.
25193 * genautomata.c : Likewise.
25194 * genconditions.c : Likewise.
25195 * genemit.c : Likewise.
25196 * generic-match-head.c : Likewise.
25197 * genextract.c : Likewise.
25198 * gengtype-state.c : Likewise.
25199 * gengtype.c : Likewise.
25200 * genhooks.c : Likewise.
25201 * genmatch.c : Likewise.
25202 * genmodes.c : Likewise.
25203 * genrecog.c : Likewise.
25204 * gensupport.c : Likewise.
25205 * ggc-common.c : Likewise.
25206 * ggc-internal.h : Likewise.
25207 * ggc-none.c : Likewise.
25208 * ggc-page.c : Likewise.
25209 * gimple-builder.c : Likewise.
25210 * gimple-expr.c : Likewise.
25211 * gimple-fold.c : Likewise.
25212 * gimple-iterator.c : Likewise.
25213 * gimple-low.c : Likewise.
25214 * gimple-match-head.c : Likewise.
25215 * gimple-pretty-print.c : Likewise.
25216 * gimple-ssa-isolate-paths.c : Likewise.
25217 * gimple-ssa-strength-reduction.c : Likewise.
25218 * gimple-ssa.h : Likewise.
25219 * gimple-streamer-in.c : Likewise.
25220 * gimple-streamer-out.c : Likewise.
25221 * gimple-streamer.h : Likewise.
25222 * gimple-walk.c : Likewise.
25223 * gimple.c : Likewise.
25224 * gimplify-me.c : Likewise.
25225 * gimplify.c : Likewise.
25226 * godump.c : Likewise.
25227 * graph.c : Likewise.
25228 * graphds.c : Likewise.
25229 * graphite-blocking.c : Likewise.
25230 * graphite-dependences.c : Likewise.
25231 * graphite-interchange.c : Likewise.
25232 * graphite-isl-ast-to-gimple.c : Likewise.
25233 * graphite-optimize-isl.c : Likewise.
25234 * graphite-poly.c : Likewise.
25235 * graphite-scop-detection.c : Likewise.
25236 * graphite-sese-to-poly.c : Likewise.
25237 * graphite.c : Likewise.
25238 * haifa-sched.c : Likewise.
25239 * hard-reg-set.h : Likewise.
25240 * hw-doloop.c : Likewise.
25241 * ifcvt.c : Likewise.
25242 * inchash.c : Likewise.
25243 * incpath.c : Likewise.
25244 * init-regs.c : Likewise.
25245 * input.c : Likewise.
25246 * internal-fn.c : Likewise.
25247 * ipa-chkp.c : Likewise.
25248 * ipa-comdats.c : Likewise.
25249 * ipa-cp.c : Likewise.
25250 * ipa-devirt.c : Likewise.
25251 * ipa-icf-gimple.c : Likewise.
25252 * ipa-icf.c : Likewise.
25253 * ipa-inline-analysis.c : Likewise.
25254 * ipa-inline-transform.c : Likewise.
25255 * ipa-inline.c : Likewise.
25256 * ipa-polymorphic-call.c : Likewise.
25257 * ipa-profile.c : Likewise.
25258 * ipa-prop.c : Likewise.
25259 * ipa-pure-const.c : Likewise.
25260 * ipa-ref.c : Likewise.
25261 * ipa-reference.c : Likewise.
25262 * ipa-split.c : Likewise.
25263 * ipa-utils.c : Likewise.
25264 * ipa-visibility.c : Likewise.
25265 * ipa.c : Likewise.
25266 * ira-build.c : Likewise.
25267 * ira-color.c : Likewise.
25268 * ira-conflicts.c : Likewise.
25269 * ira-costs.c : Likewise.
25270 * ira-emit.c : Likewise.
25271 * ira-lives.c : Likewise.
25272 * ira.c : Likewise.
25273 * jump.c : Likewise.
25274 * langhooks.c : Likewise.
25275 * lcm.c : Likewise.
25276 * libfuncs.h : Likewise.
25277 * lists.c : Likewise.
25278 * loop-doloop.c : Likewise.
25279 * loop-init.c : Likewise.
25280 * loop-invariant.c : Likewise.
25281 * loop-iv.c : Likewise.
25282 * loop-unroll.c : Likewise.
25283 * lower-subreg.c : Likewise.
25284 * lra-assigns.c : Likewise.
25285 * lra-coalesce.c : Likewise.
25286 * lra-constraints.c : Likewise.
25287 * lra-eliminations.c : Likewise.
25288 * lra-lives.c : Likewise.
25289 * lra-remat.c : Likewise.
25290 * lra-spills.c : Likewise.
25291 * lra.c : Likewise.
25292 * lto-cgraph.c : Likewise.
25293 * lto-compress.c : Likewise.
25294 * lto-opts.c : Likewise.
25295 * lto-section-in.c : Likewise.
25296 * lto-section-out.c : Likewise.
25297 * lto-streamer-in.c : Likewise.
25298 * lto-streamer-out.c : Likewise.
25299 * lto-streamer.c : Likewise.
25300 * lto-streamer.h : Likewise.
25301 * mcf.c : Likewise.
25302 * mode-switching.c : Likewise.
25303 * modulo-sched.c : Likewise.
25304 * omega.c : Likewise.
25305 * omp-low.c : Likewise.
25306 * optabs.c : Likewise.
25307 * opts-global.c : Likewise.
25308 * opts.h : Likewise.
25309 * passes.c : Likewise.
25310 * plugin.c : Likewise.
25311 * postreload-gcse.c : Likewise.
25312 * postreload.c : Likewise.
25313 * predict.c : Likewise.
25314 * print-rtl.c : Likewise.
25315 * print-tree.c : Likewise.
25316 * profile.c : Likewise.
25317 * read-md.c : Likewise.
25318 * read-md.h : Likewise.
25319 * read-rtl.c : Likewise.
25320 * real.c : Likewise.
25321 * realmpfr.c : Likewise.
25322 * recog.c : Likewise.
25323 * ree.c : Likewise.
25324 * reg-stack.c : Likewise.
25325 * regcprop.c : Likewise.
25326 * reginfo.c : Likewise.
25327 * regrename.c : Likewise.
25328 * regstat.c : Likewise.
25329 * reload.c : Likewise.
25330 * reload1.c : Likewise.
25331 * reorg.c : Likewise.
25332 * resource.c : Likewise.
25333 * rtl-chkp.c : Likewise.
25334 * rtl.c : Likewise.
25335 * rtl.h : Likewise.
25336 * rtlanal.c : Likewise.
25337 * rtlhash.c : Likewise.
25338 * rtlhash.h : Likewise.
25339 * rtlhooks.c : Likewise.
25340 * sanopt.c : Likewise.
25341 * sched-deps.c : Likewise.
25342 * sched-ebb.c : Likewise.
25343 * sched-rgn.c : Likewise.
25344 * sched-vis.c : Likewise.
25345 * sdbout.c : Likewise.
25346 * sel-sched-dump.c : Likewise.
25347 * sel-sched-ir.c : Likewise.
25348 * sel-sched-ir.h : Likewise.
25349 * sel-sched.c : Likewise.
25350 * sese.c : Likewise.
25351 * shrink-wrap.c : Likewise.
25352 * shrink-wrap.h : Likewise.
25353 * simplify-rtx.c : Likewise.
25354 * stack-ptr-mod.c : Likewise.
25355 * statistics.c : Likewise.
25356 * stmt.c : Likewise.
25357 * stor-layout.c : Likewise.
25358 * store-motion.c : Likewise.
25359 * stringpool.c : Likewise.
25360 * symtab.c : Likewise.
25361 * target-globals.c : Likewise.
25362 * targhooks.c : Likewise.
25363 * tlink.c : Likewise.
25364 * toplev.c : Likewise.
25365 * tracer.c : Likewise.
25366 * trans-mem.c : Likewise.
25367 * tree-affine.c : Likewise.
25368 * tree-affine.h : Likewise.
25369 * tree-browser.c : Likewise.
25370 * tree-call-cdce.c : Likewise.
25371 * tree-cfg.c : Likewise.
25372 * tree-cfgcleanup.c : Likewise.
25373 * tree-chkp-opt.c : Likewise.
25374 * tree-chkp.c : Likewise.
25375 * tree-chrec.c : Likewise.
25376 * tree-complex.c : Likewise.
25377 * tree-data-ref.c : Likewise.
25378 * tree-dfa.c : Likewise.
25379 * tree-diagnostic.c : Likewise.
25380 * tree-dump.c : Likewise.
25381 * tree-eh.c : Likewise.
25382 * tree-eh.h : Likewise.
25383 * tree-emutls.c : Likewise.
25384 * tree-hasher.h : Likewise.
25385 * tree-if-conv.c : Likewise.
25386 * tree-inline.c : Likewise.
25387 * tree-inline.h : Likewise.
25388 * tree-into-ssa.c : Likewise.
25389 * tree-iterator.c : Likewise.
25390 * tree-loop-distribution.c : Likewise.
25391 * tree-nested.c : Likewise.
25392 * tree-nrv.c : Likewise.
25393 * tree-object-size.c : Likewise.
25394 * tree-outof-ssa.c : Likewise.
25395 * tree-parloops.c : Likewise.
25396 * tree-phinodes.c : Likewise.
25397 * tree-predcom.c : Likewise.
25398 * tree-pretty-print.c : Likewise.
25399 * tree-profile.c : Likewise.
25400 * tree-scalar-evolution.c : Likewise.
25401 * tree-sra.c : Likewise.
25402 * tree-ssa-address.c : Likewise.
25403 * tree-ssa-alias.c : Likewise.
25404 * tree-ssa-ccp.c : Likewise.
25405 * tree-ssa-coalesce.c : Likewise.
25406 * tree-ssa-copy.c : Likewise.
25407 * tree-ssa-copyrename.c : Likewise.
25408 * tree-ssa-dce.c : Likewise.
25409 * tree-ssa-dom.c : Likewise.
25410 * tree-ssa-dse.c : Likewise.
25411 * tree-ssa-forwprop.c : Likewise.
25412 * tree-ssa-ifcombine.c : Likewise.
25413 * tree-ssa-live.c : Likewise.
25414 * tree-ssa-loop-ch.c : Likewise.
25415 * tree-ssa-loop-im.c : Likewise.
25416 * tree-ssa-loop-ivcanon.c : Likewise.
25417 * tree-ssa-loop-ivopts.c : Likewise.
25418 * tree-ssa-loop-manip.c : Likewise.
25419 * tree-ssa-loop-niter.c : Likewise.
25420 * tree-ssa-loop-prefetch.c : Likewise.
25421 * tree-ssa-loop-unswitch.c : Likewise.
25422 * tree-ssa-loop.c : Likewise.
25423 * tree-ssa-math-opts.c : Likewise.
25424 * tree-ssa-operands.c : Likewise.
25425 * tree-ssa-phiopt.c : Likewise.
25426 * tree-ssa-phiprop.c : Likewise.
25427 * tree-ssa-pre.c : Likewise.
25428 * tree-ssa-propagate.c : Likewise.
25429 * tree-ssa-reassoc.c : Likewise.
25430 * tree-ssa-sccvn.c : Likewise.
25431 * tree-ssa-scopedtables.c : Likewise.
25432 * tree-ssa-sink.c : Likewise.
25433 * tree-ssa-strlen.c : Likewise.
25434 * tree-ssa-structalias.c : Likewise.
25435 * tree-ssa-tail-merge.c : Likewise.
25436 * tree-ssa-ter.c : Likewise.
25437 * tree-ssa-threadedge.c : Likewise.
25438 * tree-ssa-threadupdate.c : Likewise.
25439 * tree-ssa-uncprop.c : Likewise.
25440 * tree-ssa-uninit.c : Likewise.
25441 * tree-ssa.c : Likewise.
25442 * tree-ssanames.c : Likewise.
25443 * tree-stdarg.c : Likewise.
25444 * tree-streamer-in.c : Likewise.
25445 * tree-streamer-out.c : Likewise.
25446 * tree-streamer.c : Likewise.
25447 * tree-streamer.h : Likewise.
25448 * tree-switch-conversion.c : Likewise.
25449 * tree-tailcall.c : Likewise.
25450 * tree-vect-data-refs.c : Likewise.
25451 * tree-vect-generic.c : Likewise.
25452 * tree-vect-loop-manip.c : Likewise.
25453 * tree-vect-loop.c : Likewise.
25454 * tree-vect-patterns.c : Likewise.
25455 * tree-vect-slp.c : Likewise.
25456 * tree-vect-stmts.c : Likewise.
25457 * tree-vectorizer.c : Likewise.
25458 * tree-vectorizer.h : Likewise.
25459 * tree-vrp.c : Likewise.
25460 * tree.c : Likewise.
25461 * tsan.c : Likewise.
25462 * ubsan.c : Likewise.
25463 * valtrack.c : Likewise.
25464 * valtrack.h : Likewise.
25465 * value-prof.c : Likewise.
25466 * var-tracking.c : Likewise.
25467 * varasm.c : Likewise.
25468 * varpool.c : Likewise.
25470 * vmsdbgout.c : Likewise.
25471 * vtable-verify.c : Likewise.
25472 * vtable-verify.h : Likewise.
25473 * web.c : Likewise.
25474 * wide-int.cc : Likewise.
25475 * xcoffout.c : Likewise.
25476 * config/aarch64/aarch64-builtins.c : Likewise.
25477 * config/aarch64/aarch64.c : Likewise.
25478 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
25479 * config/alpha/alpha.c : Likewise.
25480 * config/arc/arc.c : Likewise.
25481 * config/arm/aarch-common.c : Likewise.
25482 * config/arm/arm-builtins.c : Likewise.
25483 * config/arm/arm-c.c : Likewise.
25484 * config/arm/arm.c : Likewise.
25485 * config/avr/avr-c.c : Likewise.
25486 * config/avr/avr-log.c : Likewise.
25487 * config/avr/avr.c : Likewise.
25488 * config/bfin/bfin.c : Likewise.
25489 * config/c6x/c6x.c : Likewise.
25490 * config/cr16/cr16.c : Likewise.
25491 * config/cris/cris.c : Likewise.
25492 * config/darwin-c.c : Likewise.
25493 * config/darwin.c : Likewise.
25494 * config/default-c.c : Likewise.
25495 * config/epiphany/epiphany.c : Likewise.
25496 * config/epiphany/mode-switch-use.c : Likewise.
25497 * config/epiphany/resolve-sw-modes.c : Likewise.
25498 * config/fr30/fr30.c : Likewise.
25499 * config/frv/frv.c : Likewise.
25500 * config/ft32/ft32.c : Likewise.
25501 * config/glibc-c.c : Likewise.
25502 * config/h8300/h8300.c : Likewise.
25503 * config/i386/i386-c.c : Likewise.
25504 * config/i386/i386.c : Likewise.
25505 * config/i386/msformat-c.c : Likewise.
25506 * config/i386/winnt-cxx.c : Likewise.
25507 * config/i386/winnt-stubs.c : Likewise.
25508 * config/i386/winnt.c : Likewise.
25509 * config/ia64/ia64-c.c : Likewise.
25510 * config/ia64/ia64.c : Likewise.
25511 * config/iq2000/iq2000.c : Likewise.
25512 * config/lm32/lm32.c : Likewise.
25513 * config/m32c/m32c-pragma.c : Likewise.
25514 * config/m32c/m32c.c : Likewise.
25515 * config/m32r/m32r.c : Likewise.
25516 * config/m68k/m68k.c : Likewise.
25517 * config/mcore/mcore.c : Likewise.
25518 * config/mep/mep-pragma.c : Likewise.
25519 * config/mep/mep.c : Likewise.
25520 * config/microblaze/microblaze-c.c : Likewise.
25521 * config/microblaze/microblaze.c : Likewise.
25522 * config/mips/mips.c : Likewise.
25523 * config/mmix/mmix.c : Likewise.
25524 * config/mn10300/mn10300.c : Likewise.
25525 * config/moxie/moxie.c : Likewise.
25526 * config/msp430/msp430-c.c : Likewise.
25527 * config/msp430/msp430.c : Likewise.
25528 * config/nds32/nds32-cost.c : Likewise.
25529 * config/nds32/nds32-fp-as-gp.c : Likewise.
25530 * config/nds32/nds32-intrinsic.c : Likewise.
25531 * config/nds32/nds32-isr.c : Likewise.
25532 * config/nds32/nds32-md-auxiliary.c : Likewise.
25533 * config/nds32/nds32-memory-manipulation.c : Likewise.
25534 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
25535 * config/nds32/nds32-predicates.c : Likewise.
25536 * config/nds32/nds32.c : Likewise.
25537 * config/nios2/nios2.c : Likewise.
25538 * config/nvptx/nvptx.c : Likewise.
25539 * config/pa/pa.c : Likewise.
25540 * config/pdp11/pdp11.c : Likewise.
25541 * config/rl78/rl78-c.c : Likewise.
25542 * config/rl78/rl78.c : Likewise.
25543 * config/rs6000/rs6000-c.c : Likewise.
25544 * config/rs6000/rs6000.c : Likewise.
25545 * config/rx/rx.c : Likewise.
25546 * config/s390/s390-c.c : Likewise.
25547 * config/s390/s390.c : Likewise.
25548 * config/sh/sh-c.c : Likewise.
25549 * config/sh/sh-mem.cc : Likewise.
25550 * config/sh/sh.c : Likewise.
25551 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
25552 * config/sh/sh_treg_combine.cc : Likewise.
25553 * config/sol2-c.c : Likewise.
25554 * config/sol2-cxx.c : Likewise.
25555 * config/sol2-stubs.c : Likewise.
25556 * config/sol2.c : Likewise.
25557 * config/sparc/sparc-c.c : Likewise.
25558 * config/sparc/sparc.c : Likewise.
25559 * config/spu/spu-c.c : Likewise.
25560 * config/spu/spu.c : Likewise.
25561 * config/stormy16/stormy16.c : Likewise.
25562 * config/tilegx/mul-tables.c : Likewise.
25563 * config/tilegx/tilegx-c.c : Likewise.
25564 * config/tilegx/tilegx.c : Likewise.
25565 * config/tilepro/mul-tables.c : Likewise.
25566 * config/tilepro/tilepro-c.c : Likewise.
25567 * config/tilepro/tilepro.c : Likewise.
25568 * config/v850/v850-c.c : Likewise.
25569 * config/v850/v850.c : Likewise.
25570 * config/vax/vax.c : Likewise.
25571 * config/visium/visium.c : Likewise.
25572 * config/vms/vms-c.c : Likewise.
25573 * config/vms/vms.c : Likewise.
25574 * config/vxworks.c : Likewise.
25575 * config/winnt-c.c : Likewise.
25576 * config/xtensa/xtensa.c : Likewise.
25578 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25581 * ipa-utils.h (warn_types_mismatch): Update prototype.
25582 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
25584 (type_mismatch_p): New function.
25585 (warn_types_mismatch): Reorg to work better on non-C++ types.
25586 (odr_types_equivalent_p): Add loc1/loc2 parameters.
25587 (add_type_duplicate): Update.
25589 2015-06-08 Tom de Vries <tom@codesourcery.com>
25591 PR rtl-optimization/66444
25592 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
25595 2015-06-08 Richard Biener <rguenther@suse.de>
25597 PR tree-optimization/66422
25598 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
25599 block after inserted gcc_unreachable.
25601 2015-06-08 Nick Clifton <nickc@redhat.com>
25603 * config/rx/rx.c (rx_function_value): Do not promote vector types.
25604 (rx_promote_function_mode): Likewise.
25605 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
25607 2015-06-08 Jakub Jelinek <jakub@redhat.com>
25609 * genattrtab.c (insn_alternatives): Change type from int *
25611 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
25612 (get_attr_value): Change type of num_alt to uint64_t.
25613 (compute_alternative_mask): Change return type from
25614 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
25615 (make_alternative_compare, mk_attr_alt): Change argument type
25616 from int to uint64_t.
25617 (simplify_test_exp): Change type of i from int to uint64_t.
25618 Shift ((uint64_t) 1) instead of 1 up.
25619 (main): Adjust oballocvec first argument from int to uint64_t.
25620 Shift ((uint64_t) 1) instead of 1 up.
25622 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
25625 * gdbhooks.py: Import sys.
25626 (intptr): New function. Replace int(...) by intptr(...).
25628 2015-06-08 Richard Biener <rguenther@suse.de>
25630 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
25631 adjustment for gaps at the end of a SLP load group properly.
25632 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
25633 all permutations we can generate.
25634 (vect_transform_slp_perm_load): Use the correct group-size.
25636 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
25638 * genmatch.c (expr::gen_transform): For conditions, guess the type
25639 from the second operand.
25641 2015-06-08 Tom de Vries <tom@codesourcery.com>
25643 PR tree-optimization/66442
25644 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
25645 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
25646 if the loop latch is not a singleton. Use
25647 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
25649 2015-06-08 Marek Polacek <polacek@redhat.com>
25652 * toplev.c (check_global_declaration): Don't warn about artificial
25655 2015-06-08 Tom de Vries <tom@codesourcery.com>
25657 PR tree-optimization/66436
25658 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
25660 * gimplify.c: Add tree-dump.h include.
25661 (gimplify_function_tree): Dump function to gimple dump file.
25662 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
25665 2015-06-08 Tom de Vries <tom@codesourcery.com>
25667 PR tree-optimization/66435
25668 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
25671 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
25673 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
25674 of ptr_type_node to not be ptr_to_node.
25675 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
25676 TREE_TYPE of pointers.
25677 * gimple-expr.c (useless_type_conversion): Reorder the check for
25678 function pointers and TYPE_CANONICAL.
25680 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
25683 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
25684 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
25685 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
25687 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
25688 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
25689 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
25690 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
25691 and non iso if unix2003.
25693 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
25695 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
25697 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
25699 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
25700 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
25701 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
25702 except.c, final.c, function.c, gcse-common.c, genemit.c,
25703 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
25704 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
25705 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
25706 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
25709 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
25711 * combine.c (combine_split_insns): Remove cast.
25712 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
25713 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
25714 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
25715 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
25716 * genemit.c (gen_split): Change return type of generated functions to
25718 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
25719 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
25720 gen_peephole2_* functions.
25721 (print_subroutine, main): Likewise.
25722 * recog.c (peephole2_optimize): Remove cast.
25723 (peep2_next_insn): Promote return type to rtx_insn.
25724 * recog.h (peep2_next_insn): Fix prototype.
25725 * rtl.h (try_split, split_insns): Likewise.
25727 2015-06-06 DJ Delorie <dj@redhat.com>
25729 * config/msp430/msp430.c (msp430_asm_integer): Support addition
25730 and subtraction too.
25732 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
25735 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
25736 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
25737 instead of Snd. Disparage Sid/z alternative with '^'.
25739 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
25741 * dwarf2out.c: Remove deferred_locations*.
25742 (dwarf2_debug_hooks): Add early_finish hook.
25743 Remove global_decl hook.
25744 Add early_global_decl and late_global_decl hook.
25745 New global early_dwarf.
25746 New structure set_early_dwarf.
25747 (output_die): Indicate whether a DIE was generated early
25748 when generating assembly with -dA.
25749 (struct limbo_die_struct): Document created_for field.
25750 Remove file_table_last_lookup.
25751 (remove_AT): Return TRUE if successful.
25752 (remove_child_TAG): Clear die_parent.
25753 (reparent_child): New function abstracted from...
25754 (splice_child_die): ...here.
25755 (new_die): ICE if a DIE ends up in limbo too late.
25757 (defer_location): Remove.
25758 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
25759 (fill_variable_array_bounds): New.
25760 (decl_start_label): Call fill_variable_array_bounds.
25761 (gen_formal_parameter_die): Rewrite to reuse previously generated
25763 (gen_subprogram_die): Same.
25764 (gen_variable_die): Same.
25765 (gen_const_die): Same.
25766 (gen_label_die): Same.
25767 (gen_lexical_block_die): Same.
25768 (decl_will_get_specification_p): New.
25769 (local_function_static): New.
25770 (gen_struct_or_union_type_die): Fill in variable-length fields.
25771 (gen_typedef_die): Fill in variable-length typedefs.
25772 (gen_tagged_type_die): Gracefully return on error_mark_node.
25773 Handle re-entrancy.
25774 (gen_type_die_with_usage): Handle variable-length types.
25775 Remove duplicate code for ARRAY_TYPE case.
25776 (process_scope_var): Only process imported modules during early
25778 (dwarf2out_early_global_decl): New.
25779 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
25780 (dwarf2out_type_decl): Set early_dwarf while calling
25782 (dwarf2out_decl): Verify that we did not recreate a previously
25784 Do not return on DECL_EXTERNALs in VAR_DECLs.
25785 Abstract some code to local_function_static.
25786 (lookup_filename): Remove use of file_table_last_lookup.
25787 Gracefully exit on missing file_name.
25788 (dwarf2out_finish): Verify limbo list.
25789 Remove deferred_locations_list use.
25790 Move deferred_asm_name and limbo flushing to...
25791 (dwarf2out_early_finish): ...here. New.
25792 (dwarf2out_c_finalize): Remove set of deferred_location_list,
25793 deferred_asm_name, and file_table_last_lookup.
25794 * cgraph.h (referred_to_p): Add default argument.
25795 * cgraphunit.c (referred_to_p): Add and handle include_self
25797 (analyze_functions): Add first_time argument.
25798 Call check_global_declaration for all symbols.
25799 Call late_global_decl for nodes for moribund nodes.
25800 (finalize_compilation_unit): Add new argument to
25802 Call early_global_decl for functions.
25803 Call early_finish debug hook.
25804 * dbxout.c (dbxout_early_global_decl): New.
25805 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
25806 (dbx_debug_hooks): Add new hooks.
25807 (xcoff_debug_hooks): Same.
25808 * debug.c (do_nothing_debug_hooks): Add early_finish field.
25809 Add early and late debug hooks.
25810 Remove global_decl hook.
25811 * debug.h (struct gcc_debug_hooks): Add early_finish,
25812 early_global_decl, and late_global_decl fields.
25813 Remove global_decl field.
25814 Document gcc_debug_hooks.
25815 * gengtype.c (output_typename): Remove.
25816 * godump.c (go_early_global_decl): New.
25817 (go_late_global_decl): New.
25818 (go_global_decl): Remove.
25819 (dump_go_spec_init): Remove global_decl. Add
25820 {early,late}_global_decl.
25821 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
25822 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
25823 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
25824 (write_global_declarations): Remove.
25825 (global_decl_processing): New.
25826 * langhooks.h (struct lang_hooks_for_decls): Remove
25827 final_write_globals field.
25828 Add post_compilation_parsing_cleanups field.
25829 * passes.c (rest_of_decl_compilation): Call early_global_decl.
25830 * sdbout.c: Add early and late_global_decl hooks. Remove
25831 sdbout_global_decl hook.
25832 Add early_finish field for sdb_debug_hooks.
25833 (sdbout_global_decl): Remove.
25834 (sdbout_early_global_decl): New.
25835 (sdbout_late_global_decl): New.
25836 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
25837 * toplev.c (check_global_declaration): Rename from
25838 check_global_declaration_1.
25839 Adapt to use symtab infrastructure.
25840 (check_global_declarations): Remove.
25841 (emit_debug_global_declarations): Remove.
25842 (compile_file): Remove call to final_write_globals langhook.
25843 Run the actual compilation process.
25844 Perform any post compilation parser cleanups.
25845 Generate late debug info.
25846 * toplev.h (check_global_declaration): New.
25847 (check_global_declaration_1): Remove.
25848 (check_global_declarations): Remove.
25849 (write_global_declarations): Remove.
25850 (emit_debug_global_declarations): Remove.
25851 (global_decl_processing): New.
25852 * tree-core.h (struct tree_block): Add DIE field.
25853 * tree.h (BLOCK_DIE): New.
25854 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
25856 (vmsdbgout_early_global_decl): New.
25857 (vmsdbgout_late_global_decl): New.
25858 Add early_finish debug hook field to vmsdbg_debug_hooks.
25859 Remove vmsdbgout_decl to vmsdbgout_function_decl.
25860 Add early and late_global_decl debug hooks.
25862 2015-06-05 Julian Brown <julian@codesourcery.com>
25863 Sandra Loosemore <sandra@codesourcery.com>
25865 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
25866 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
25867 to print-sysroot-suffix.sh script.
25869 2015-06-05 Tom de Vries <tom@codesourcery.com>
25871 merge from gomp4 branch:
25872 2015-05-28 Tom de Vries <tom@codesourcery.com>
25874 PR tree-optimization/65443
25875 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
25876 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
25877 (try_transform_to_exit_first_loop_alt): New function.
25878 (transform_to_exit_first_loop): Use
25879 try_transform_to_exit_first_loop_alt.
25881 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
25883 * builtins.c (expand_builtin_atomic_compare_exchange): Call
25884 emit_cmp_and_jump_insns with the mode of target.
25886 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25888 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
25890 2015-06-04 DJ Delorie <dj@redhat.com>
25892 * config/msp430/msp430.md (movsi_s): New. Special case for
25893 storing a 20-bit symbol into a 32-bit register.
25894 * config/msp430/msp430.c (msp430_subreg): Add support for it.
25895 * config/msp430/predicates.md (msp430_symbol_operand): New.
25897 2015-06-04 Sriraman Tallam <tmsriram@google.com>
25899 * c-family/c-common.c (noplt): New attribute.
25900 (handle_noplt_attribute): New handler.
25901 * calls.c (prepare_call_address): Check for noplt
25903 * config/i386/i386.c (ix86_expand_call): Check
25904 for noplt attribute.
25905 (ix86_nopic_noplt_attribute_p): New function.
25906 (ix86_output_call_insn): Output indirect call for non-pic
25908 * doc/extend.texi (noplt): Document new attribute.
25909 * doc/invoke.texi: Document new attribute.
25911 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
25913 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
25914 real.h, and fixed-value.h when included in host source files.
25915 * double-int.h: Remove redundant #includes listed above.
25916 * fixed-value.h: Likewise.
25917 * real.h: Likewise.
25918 * wide-int.h: Likewise.
25919 * inchash.h: Likewise.
25920 * rtl.h: Add some include files When included from a generator file.
25921 * target.h: Remove wide-int.h and insn-modes.h from the include list.
25922 * internal-fn.h: Don't include coretypes.h.
25923 * alias.c: Adjust includes for restructured coretypes.h.
25924 * asan.c: Likewise.
25925 * attribs.c: Likewise.
25926 * auto-inc-dec.c: Likewise.
25927 * auto-profile.c: Likewise.
25928 * bb-reorder.c: Likewise.
25929 * bt-load.c: Likewise.
25930 * builtins.c: Likewise.
25931 * caller-save.c: Likewise.
25932 * calls.c: Likewise.
25933 * ccmp.c: Likewise.
25935 * cfganal.c: Likewise.
25936 * cfgbuild.c: Likewise.
25937 * cfgcleanup.c: Likewise.
25938 * cfgexpand.c: Likewise.
25939 * cfghooks.c: Likewise.
25940 * cfgloop.c: Likewise.
25941 * cfgloop.h: Likewise.
25942 * cfgloopanal.c: Likewise.
25943 * cfgloopmanip.c: Likewise.
25944 * cfgrtl.c: Likewise.
25945 * cgraph.c: Likewise.
25946 * cgraphbuild.c: Likewise.
25947 * cgraphclones.c: Likewise.
25948 * cgraphunit.c: Likewise.
25949 * cilk-common.c: Likewise.
25950 * combine-stack-adj.c: Likewise.
25951 * combine.c: Likewise.
25952 * compare-elim.c: Likewise.
25953 * convert.c: Likewise.
25954 * coverage.c: Likewise.
25955 * cppbuiltin.c: Likewise.
25956 * cprop.c: Likewise.
25958 * cselib.c: Likewise.
25959 * data-streamer-in.c: Likewise.
25960 * data-streamer-out.c: Likewise.
25961 * data-streamer.c: Likewise.
25962 * dbxout.c: Likewise.
25965 * debug.c: Likewise.
25966 * df-core.c: Likewise.
25967 * df-problems.c: Likewise.
25968 * df-scan.c: Likewise.
25971 * dojump.c: Likewise.
25972 * dominance.c: Likewise.
25973 * domwalk.c: Likewise.
25974 * double-int.c: Likewise.
25976 * dumpfile.c: Likewise.
25977 * dwarf2asm.c: Likewise.
25978 * dwarf2cfi.c: Likewise.
25979 * dwarf2out.c: Likewise.
25980 * dwarf2out.h: Likewise.
25981 * emit-rtl.c: Likewise.
25982 * et-forest.c: Likewise.
25983 * except.c: Likewise.
25984 * explow.c: Likewise.
25985 * expmed.c: Likewise.
25986 * expr.c: Likewise.
25987 * final.c: Likewise.
25988 * fixed-value.c: Likewise.
25989 * fold-const.c: Likewise.
25990 * function.c: Likewise.
25991 * fwprop.c: Likewise.
25992 * gcc-plugin.h: Likewise.
25993 * gcse.c: Likewise.
25994 * generic-match-head.c: Likewise.
25995 * ggc-page.c: Likewise.
25996 * gimple-builder.c: Likewise.
25997 * gimple-expr.c: Likewise.
25998 * gimple-fold.c: Likewise.
25999 * gimple-iterator.c: Likewise.
26000 * gimple-low.c: Likewise.
26001 * gimple-match-head.c: Likewise.
26002 * gimple-pretty-print.c: Likewise.
26003 * gimple-ssa-isolate-paths.c: Likewise.
26004 * gimple-ssa-strength-reduction.c: Likewise.
26005 * gimple-streamer-in.c: Likewise.
26006 * gimple-streamer-out.c: Likewise.
26007 * gimple-streamer.h: Likewise.
26008 * gimple-walk.c: Likewise.
26009 * gimple.c: Likewise.
26010 * gimplify-me.c: Likewise.
26011 * gimplify.c: Likewise.
26012 * godump.c: Likewise.
26013 * graph.c: Likewise.
26014 * graphite-blocking.c: Likewise.
26015 * graphite-dependences.c: Likewise.
26016 * graphite-interchange.c: Likewise.
26017 * graphite-isl-ast-to-gimple.c: Likewise.
26018 * graphite-optimize-isl.c: Likewise.
26019 * graphite-poly.c: Likewise.
26020 * graphite-scop-detection.c: Likewise.
26021 * graphite-sese-to-poly.c: Likewise.
26022 * graphite.c: Likewise.
26023 * haifa-sched.c: Likewise.
26024 * hooks.h: Likewise.
26025 * hw-doloop.c: Likewise.
26026 * ifcvt.c: Likewise.
26027 * incpath.c: Likewise.
26028 * init-regs.c: Likewise.
26029 * internal-fn.c: Likewise.
26030 * ipa-chkp.c: Likewise.
26031 * ipa-comdats.c: Likewise.
26032 * ipa-cp.c: Likewise.
26033 * ipa-devirt.c: Likewise.
26034 * ipa-icf-gimple.c: Likewise.
26035 * ipa-icf.c: Likewise.
26036 * ipa-inline-analysis.c: Likewise.
26037 * ipa-inline-transform.c: Likewise.
26038 * ipa-inline.c: Likewise.
26039 * ipa-polymorphic-call.c: Likewise.
26040 * ipa-profile.c: Likewise.
26041 * ipa-prop.c: Likewise.
26042 * ipa-pure-const.c: Likewise.
26043 * ipa-ref.c: Likewise.
26044 * ipa-reference.c: Likewise.
26045 * ipa-split.c: Likewise.
26046 * ipa-utils.c: Likewise.
26047 * ipa-visibility.c: Likewise.
26049 * ira-build.c: Likewise.
26050 * ira-color.c: Likewise.
26051 * ira-conflicts.c: Likewise.
26052 * ira-costs.c: Likewise.
26053 * ira-emit.c: Likewise.
26054 * ira-lives.c: Likewise.
26056 * jump.c: Likewise.
26057 * langhooks.c: Likewise.
26059 * loop-doloop.c: Likewise.
26060 * loop-init.c: Likewise.
26061 * loop-invariant.c: Likewise.
26062 * loop-iv.c: Likewise.
26063 * loop-unroll.c: Likewise.
26064 * lower-subreg.c: Likewise.
26065 * lra-assigns.c: Likewise.
26066 * lra-coalesce.c: Likewise.
26067 * lra-constraints.c: Likewise.
26068 * lra-eliminations.c: Likewise.
26069 * lra-lives.c: Likewise.
26070 * lra-remat.c: Likewise.
26071 * lra-spills.c: Likewise.
26073 * lto-cgraph.c: Likewise.
26074 * lto-compress.c: Likewise.
26075 * lto-opts.c: Likewise.
26076 * lto-section-in.c: Likewise.
26077 * lto-section-out.c: Likewise.
26078 * lto-streamer-in.c: Likewise.
26079 * lto-streamer-out.c: Likewise.
26080 * lto-streamer.c: Likewise.
26082 * mode-switching.c: Likewise.
26083 * modulo-sched.c: Likewise.
26084 * omega.c: Likewise.
26085 * omp-low.c: Likewise.
26086 * optabs.c: Likewise.
26087 * opts-global.c: Likewise.
26088 * passes.c: Likewise.
26089 * plugin.c: Likewise.
26090 * postreload-gcse.c: Likewise.
26091 * postreload.c: Likewise.
26092 * predict.c: Likewise.
26093 * print-rtl.c: Likewise.
26094 * print-tree.c: Likewise.
26095 * profile.c: Likewise.
26096 * real.c: Likewise.
26097 * realmpfr.c: Likewise.
26098 * realmpfr.h: Likewise.
26099 * recog.c: Likewise.
26101 * reg-stack.c: Likewise.
26102 * regcprop.c: Likewise.
26103 * reginfo.c: Likewise.
26104 * regrename.c: Likewise.
26105 * regs.h: Likewise.
26106 * regstat.c: Likewise.
26107 * reload.c: Likewise.
26108 * reload1.c: Likewise.
26109 * reorg.c: Likewise.
26110 * resource.c: Likewise.
26111 * rtl-chkp.c: Likewise.
26112 * rtlanal.c: Likewise.
26113 * rtlhooks.c: Likewise.
26114 * sanopt.c: Likewise.
26115 * sched-deps.c: Likewise.
26116 * sched-ebb.c: Likewise.
26117 * sched-rgn.c: Likewise.
26118 * sched-vis.c: Likewise.
26119 * sdbout.c: Likewise.
26120 * sel-sched-dump.c: Likewise.
26121 * sel-sched-ir.c: Likewise.
26122 * sel-sched.c: Likewise.
26123 * sese.c: Likewise.
26124 * shrink-wrap.c: Likewise.
26125 * shrink-wrap.h: Likewise.
26126 * simplify-rtx.c: Likewise.
26127 * stack-ptr-mod.c: Likewise.
26128 * statistics.c: Likewise.
26129 * stmt.c: Likewise.
26130 * stor-layout.c: Likewise.
26131 * store-motion.c: Likewise.
26132 * stringpool.c: Likewise.
26133 * symtab.c: Likewise.
26134 * target-globals.c: Likewise.
26135 * targhooks.c: Likewise.
26136 * toplev.c: Likewise.
26137 * tracer.c: Likewise.
26138 * trans-mem.c: Likewise.
26139 * tree-affine.c: Likewise.
26140 * tree-affine.h: Likewise.
26141 * tree-browser.c: Likewise.
26142 * tree-call-cdce.c: Likewise.
26143 * tree-cfg.c: Likewise.
26144 * tree-cfgcleanup.c: Likewise.
26145 * tree-chkp-opt.c: Likewise.
26146 * tree-chkp.c: Likewise.
26147 * tree-chrec.c: Likewise.
26148 * tree-complex.c: Likewise.
26149 * tree-data-ref.c: Likewise.
26150 * tree-dfa.c: Likewise.
26151 * tree-diagnostic.c: Likewise.
26152 * tree-dump.c: Likewise.
26153 * tree-eh.c: Likewise.
26154 * tree-emutls.c: Likewise.
26155 * tree-if-conv.c: Likewise.
26156 * tree-inline.c: Likewise.
26157 * tree-into-ssa.c: Likewise.
26158 * tree-iterator.c: Likewise.
26159 * tree-loop-distribution.c: Likewise.
26160 * tree-nested.c: Likewise.
26161 * tree-nrv.c: Likewise.
26162 * tree-object-size.c: Likewise.
26163 * tree-outof-ssa.c: Likewise.
26164 * tree-parloops.c: Likewise.
26165 * tree-phinodes.c: Likewise.
26166 * tree-predcom.c: Likewise.
26167 * tree-pretty-print.c: Likewise.
26168 * tree-pretty-print.h: Likewise.
26169 * tree-profile.c: Likewise.
26170 * tree-scalar-evolution.c: Likewise.
26171 * tree-sra.c: Likewise.
26172 * tree-ssa-address.c: Likewise.
26173 * tree-ssa-alias.c: Likewise.
26174 * tree-ssa-ccp.c: Likewise.
26175 * tree-ssa-coalesce.c: Likewise.
26176 * tree-ssa-copy.c: Likewise.
26177 * tree-ssa-copyrename.c: Likewise.
26178 * tree-ssa-dce.c: Likewise.
26179 * tree-ssa-dom.c: Likewise.
26180 * tree-ssa-dse.c: Likewise.
26181 * tree-ssa-forwprop.c: Likewise.
26182 * tree-ssa-ifcombine.c: Likewise.
26183 * tree-ssa-live.c: Likewise.
26184 * tree-ssa-loop-ch.c: Likewise.
26185 * tree-ssa-loop-im.c: Likewise.
26186 * tree-ssa-loop-ivcanon.c: Likewise.
26187 * tree-ssa-loop-ivopts.c: Likewise.
26188 * tree-ssa-loop-manip.c: Likewise.
26189 * tree-ssa-loop-niter.c: Likewise.
26190 * tree-ssa-loop-prefetch.c: Likewise.
26191 * tree-ssa-loop-unswitch.c: Likewise.
26192 * tree-ssa-loop.c: Likewise.
26193 * tree-ssa-loop.h: Likewise.
26194 * tree-ssa-math-opts.c: Likewise.
26195 * tree-ssa-operands.c: Likewise.
26196 * tree-ssa-phiopt.c: Likewise.
26197 * tree-ssa-phiprop.c: Likewise.
26198 * tree-ssa-pre.c: Likewise.
26199 * tree-ssa-propagate.c: Likewise.
26200 * tree-ssa-reassoc.c: Likewise.
26201 * tree-ssa-sccvn.c: Likewise.
26202 * tree-ssa-scopedtables.c: Likewise.
26203 * tree-ssa-sink.c: Likewise.
26204 * tree-ssa-strlen.c: Likewise.
26205 * tree-ssa-structalias.c: Likewise.
26206 * tree-ssa-tail-merge.c: Likewise.
26207 * tree-ssa-ter.c: Likewise.
26208 * tree-ssa-threadedge.c: Likewise.
26209 * tree-ssa-threadupdate.c: Likewise.
26210 * tree-ssa-uncprop.c: Likewise.
26211 * tree-ssa-uninit.c: Likewise.
26212 * tree-ssa.c: Likewise.
26213 * tree-ssanames.c: Likewise.
26214 * tree-stdarg.c: Likewise.
26215 * tree-streamer-in.c: Likewise.
26216 * tree-streamer-out.c: Likewise.
26217 * tree-streamer.c: Likewise.
26218 * tree-switch-conversion.c: Likewise.
26219 * tree-tailcall.c: Likewise.
26220 * tree-vect-data-refs.c: Likewise.
26221 * tree-vect-generic.c: Likewise.
26222 * tree-vect-loop-manip.c: Likewise.
26223 * tree-vect-loop.c: Likewise.
26224 * tree-vect-patterns.c: Likewise.
26225 * tree-vect-slp.c: Likewise.
26226 * tree-vect-stmts.c: Likewise.
26227 * tree-vectorizer.c: Likewise.
26228 * tree-vrp.c: Likewise.
26229 * tree.c: Likewise.
26230 * tsan.c: Likewise.
26231 * ubsan.c: Likewise.
26232 * valtrack.c: Likewise.
26233 * value-prof.c: Likewise.
26234 * var-tracking.c: Likewise.
26235 * varasm.c: Likewise.
26236 * varpool.c: Likewise.
26237 * vmsdbgout.c: Likewise.
26238 * vtable-verify.c: Likewise.
26240 * wide-int-print.cc: Likewise.
26241 * wide-int-print.h: Likewise.
26242 * wide-int.cc: Likewise.
26243 * xcoffout.c: Likewise.
26244 * config/aarch64/aarch64-builtins.c: Likewise.
26245 * config/aarch64/aarch64.c: Likewise.
26246 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26247 * config/alpha/alpha.c: Likewise.
26248 * config/arc/arc.c: Likewise.
26249 * config/arm/aarch-common.c: Likewise.
26250 * config/arm/arm-builtins.c: Likewise.
26251 * config/arm/arm-c.c: Likewise.
26252 * config/arm/arm.c: Likewise.
26253 * config/avr/avr-c.c: Likewise.
26254 * config/avr/avr-log.c: Likewise.
26255 * config/avr/avr.c: Likewise.
26256 * config/bfin/bfin.c: Likewise.
26257 * config/c6x/c6x.c: Likewise.
26258 * config/cr16/cr16.c: Likewise.
26259 * config/cris/cris.c: Likewise.
26260 * config/darwin-c.c: Likewise.
26261 * config/darwin.c: Likewise.
26262 * config/default-c.c: Likewise.
26263 * config/epiphany/epiphany.c: Likewise.
26264 * config/epiphany/mode-switch-use.c: Likewise.
26265 * config/epiphany/resolve-sw-modes.c: Likewise.
26266 * config/fr30/fr30.c: Likewise.
26267 * config/frv/frv.c: Likewise.
26268 * config/ft32/ft32.c: Likewise.
26269 * config/glibc-c.c: Likewise.
26270 * config/h8300/h8300.c: Likewise.
26271 * config/i386/i386-c.c: Likewise.
26272 * config/i386/i386.c: Likewise.
26273 * config/i386/msformat-c.c: Likewise.
26274 * config/i386/winnt-cxx.c: Likewise.
26275 * config/i386/winnt-stubs.c: Likewise.
26276 * config/i386/winnt.c: Likewise.
26277 * config/ia64/ia64-c.c: Likewise.
26278 * config/ia64/ia64.c: Likewise.
26279 * config/iq2000/iq2000.c: Likewise.
26280 * config/lm32/lm32.c: Likewise.
26281 * config/m32c/m32c-pragma.c: Likewise.
26282 * config/m32c/m32c.c: Likewise.
26283 * config/m32r/m32r.c: Likewise.
26284 * config/m68k/m68k.c: Likewise.
26285 * config/mcore/mcore.c: Likewise.
26286 * config/mep/mep-pragma.c: Likewise.
26287 * config/mep/mep.c: Likewise.
26288 * config/microblaze/microblaze-c.c: Likewise.
26289 * config/microblaze/microblaze.c: Likewise.
26290 * config/mips/mips.c: Likewise.
26291 * config/mmix/mmix.c: Likewise.
26292 * config/mn10300/mn10300.c: Likewise.
26293 * config/moxie/moxie.c: Likewise.
26294 * config/msp430/msp430-c.c: Likewise.
26295 * config/msp430/msp430.c: Likewise.
26296 * config/nds32/nds32-cost.c: Likewise.
26297 * config/nds32/nds32-fp-as-gp.c: Likewise.
26298 * config/nds32/nds32-intrinsic.c: Likewise.
26299 * config/nds32/nds32-isr.c: Likewise.
26300 * config/nds32/nds32-md-auxiliary.c: Likewise.
26301 * config/nds32/nds32-memory-manipulation.c: Likewise.
26302 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26303 * config/nds32/nds32-predicates.c: Likewise.
26304 * config/nds32/nds32.c: Likewise.
26305 * config/nios2/nios2.c: Likewise.
26306 * config/nvptx/nvptx.c: Likewise.
26307 * config/pa/pa.c: Likewise.
26308 * config/pdp11/pdp11.c: Likewise.
26309 * config/rl78/rl78-c.c: Likewise.
26310 * config/rl78/rl78.c: Likewise.
26311 * config/rs6000/rs6000-c.c: Likewise.
26312 * config/rs6000/rs6000.c: Likewise.
26313 * config/rx/rx.c: Likewise.
26314 * config/s390/s390-c.c: Likewise.
26315 * config/s390/s390.c: Likewise.
26316 * config/sh/sh-c.c: Likewise.
26317 * config/sh/sh-mem.cc: Likewise.
26318 * config/sh/sh.c: Likewise.
26319 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26320 * config/sh/sh_treg_combine.cc: Likewise.
26321 * config/sol2-c.c: Likewise.
26322 * config/sol2-cxx.c: Likewise.
26323 * config/sol2-stubs.c: Likewise.
26324 * config/sol2.c: Likewise.
26325 * config/sparc/sparc-c.c: Likewise.
26326 * config/sparc/sparc.c: Likewise.
26327 * config/spu/spu-c.c: Likewise.
26328 * config/spu/spu.c: Likewise.
26329 * config/stormy16/stormy16.c: Likewise.
26330 * config/tilegx/mul-tables.c: Likewise.
26331 * config/tilegx/tilegx-c.c: Likewise.
26332 * config/tilegx/tilegx.c: Likewise.
26333 * config/tilepro/mul-tables.c: Likewise.
26334 * config/tilepro/tilepro-c.c: Likewise.
26335 * config/tilepro/tilepro.c: Likewise.
26336 * config/v850/v850-c.c: Likewise.
26337 * config/v850/v850.c: Likewise.
26338 * config/vax/vax.c: Likewise.
26339 * config/visium/visium.c: Likewise.
26340 * config/vms/vms-c.c: Likewise.
26341 * config/vms/vms.c: Likewise.
26342 * config/vxworks.c: Likewise.
26343 * config/winnt-c.c: Likewise.
26344 * config/xtensa/xtensa.c: Likewise.
26345 * common/config/bfin/bfin-common.c: Likewise.
26347 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
26349 * tree.h (tree_code_for_canonical_type_merging): New function.
26350 * tree.c (gimple_canonical_types_compatible_p): Use
26351 tree_code_for_canonical_type_merging..
26353 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26357 * doc/tm.texi: Regenerate.
26358 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
26359 * target.def (TARGET_RELAXED_ORDERING): Likewise.
26360 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
26361 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
26362 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
26363 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
26364 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
26365 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
26366 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
26368 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26370 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
26371 register fma steering pass.
26372 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
26373 AARCH64_TUNE_FMA_STEERING.
26375 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
26377 * tree.c (verify_type_variant): Verify that type and variant is
26379 (gimple_canonical_types_compatible_p): Look for main variants.
26381 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
26383 * config.gcc (powerpc*-*-*): Add support for a new configure
26384 option --with-advance-toolchain=<xxx> which overrides using the
26385 default header files, libraries and dynamic linker.
26387 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
26388 specs to support the configure --with-advance-toolchain=<xxx>
26390 (INCLUDE_EXTRA_SPEC): Likewise.
26391 (LINK_OS_EXTRA_SPEC32): Likewise.
26392 (LINK_OK_EXTRA_SPEC64): Likewise.
26393 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
26394 (DYNAMIC_LINKER_PREFIX): Likewise.
26395 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
26397 (GLIBC_DYNAMIC_LINKER32): Likewise.
26398 (GLIBC_DYNAMIC_LINKER64): Likewise.
26399 (LINK_OS_LINUX_SPEC32): Likewise.
26400 (LINK_OS_LINUX_SPEC64): Likewise.
26402 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
26403 configuration option.
26405 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
26408 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
26409 to determine current function ABI.
26410 (ix86_function_value_regno_p): Ditto.
26412 2015-06-03 Martin Liska <mliska@suse.cz>
26414 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
26415 * bitmap.h (struct bitmap_usage): Likewise.
26416 * ggc-common.c (struct ggc_usage): Likewise.
26417 * mem-stats.h (struct mem_location): Likewise.
26418 (struct mem_usage): Likewise.
26419 * vec.c (struct vec_usage): Likewise.
26421 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
26423 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
26426 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
26428 * doc/plugins.texi (enum plugin_event): New event.
26429 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
26430 and PLUGIN_FINISH_FUNCTION.
26431 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
26432 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
26434 2015-06-03 Richard Biener <rguenther@suse.de>
26436 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26437 compute GROUP_GAP for the first element.
26438 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
26441 2015-06-03 Nick Clifton <nickc@redhat.com>
26443 * config/rl78/rl78-real.md: Add peepholes to avoid a register
26444 copy when calling a function.
26445 * config/rl78/rl78.c (need_to_save): Do not push the frame
26446 pointer in an interrupt handler prologue if it is never used.
26448 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26450 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
26452 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
26454 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
26455 reference when cloning alias node.
26457 2015-06-03 Martin Liska <mliska@suse.cz>
26459 * alloc-pool.h (struct pool_usage): Correct space padding.
26460 * ggc-page.c (ggc_print_statistics): Align columns in a report.
26461 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
26462 * tree.c (dump_tree_statistics): Align columns in a report.
26464 2015-06-03 Martin Liska <mliska@suse.cz>
26466 * alloc-pool.c (allocate_pool_descriptor): Remove.
26467 (struct pool_output_info): Likewise.
26468 (print_alloc_pool_statistics): Likewise.
26469 (dump_alloc_pool_statistics): Likewise.
26470 * alloc-pool.h (struct pool_usage): New struct.
26471 (pool_allocator::initialize): Change usage of memory statistics
26472 to a new interface.
26473 (pool_allocator::release): Likewise.
26474 (pool_allocator::allocate): Likewise.
26475 (pool_allocator::remove): Likewise.
26476 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
26477 for a pool allocator.
26478 * mem-stats.h (struct mem_location): Add new ctor.
26479 (struct mem_usage): Add counter for number of
26481 (mem_alloc_description::register_descriptor): New overload of
26482 * mem-stats.h (mem_location::to_string): New function.
26483 * bitmap.h (struct bitmap_usage): Use this new function.
26484 * ggc-common.c (struct ggc_usage): Likewise.
26487 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
26489 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
26490 of GCC_INSN_FLAGS_H block.
26492 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
26494 * explow.c (plus_constant): Update check after force_const_mem call
26495 to see if the value returned is not a NULL_RTX.
26497 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
26499 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
26500 remove instumentation thunks calling reachable functions.
26501 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
26502 * lto/lto-partition.c (privatize_symbol_name_1): New.
26503 (privatize_symbol_name): Privatize both decl and orig_decl
26504 names for instrumented functions.
26505 * cgraph.c (cgraph_node::verify_node): Add transparent
26506 alias chain check for instrumented node.
26508 2015-06-03 Marek Polacek <polacek@redhat.com>
26512 * tree.c (attribute_value_equal): Handle attribute format.
26513 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
26515 2015-06-03 Richard Biener <rguenther@suse.de>
26517 PR tree-optimization/63916
26518 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
26519 Forward-propagate non-invariant addresses by splicing their
26520 reference ops if the result isn't going to be used by PRE.
26521 (vn_reference_lookup_3): Remove pointless assert.
26523 2015-06-03 Richard Biener <rguenther@suse.de>
26525 PR tree-optimization/66375
26526 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
26527 add to the evolution before following SSA edges.
26529 2015-06-03 Bin Cheng <bin.cheng@arm.com>
26531 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
26532 (dump_use, dump_cand, find_induction_variables): Pass new argument
26534 (record_use): Preserve the ssa name information in IV.
26536 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
26538 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
26540 (add_mode_tests): Don't add mode tests if the predicate only
26541 accepts scalar constant integers. Otherwise, allow the mode
26542 of "op" to be VOIDmode if the predicate does accept such integers.
26544 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
26547 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
26548 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
26549 (aarch64_secondary_reload): Likewise
26550 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
26552 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
26555 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
26556 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26559 * cprop.c (try_replace_reg): Check cost of constants before propagating.
26561 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26563 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
26564 provide access to the IBM extended double floating point mode if
26565 long double is IEEE 128-bit floating point.
26566 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
26567 point if long double is the IBM extended double type.
26569 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
26570 enable adding IEEE 128-bit floating point support.
26571 (-mfloat128-software): Likewise.
26572 (-mfloat128-sw): Likewise.
26574 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
26575 128-bit floating point types to occupy any register if
26576 -mlong-double-64. Do not allow use of IFmode/KFmode unless
26577 -mfloat128-software is enabled.
26578 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
26580 (rs6000_option_override_internal): Add -mfloat128-* support.
26581 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
26583 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
26584 and float128 type nodes.
26585 (ieee128_float_type_node): Likewise.
26586 (ibm128_float_type_node): Likewise.
26588 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26591 * config/aarch64/geniterators.sh: Rewrite in awk.
26593 2015-06-02 Martin Liska <mliska@suse.cz>
26595 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
26596 values to avoid -Wmaybe-uninitialized errors.
26598 2015-06-02 Richard Biener <rguenther@suse.de>
26601 * dwarf2out.c (lookup_context_die): New function.
26602 (resolve_addr): Avoid forcing a full DIE for the
26603 target of a DW_TAG_GNU_call_site during late compilation.
26604 Instead create a stub DIE without a type if we have a
26605 context DIE present.
26607 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
26609 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
26611 2015-06-02 Bin Cheng <bin.cheng@arm.com>
26613 PR tree-optimization/48052
26614 * cfgloop.h (struct control_iv): New.
26615 (struct loop): New field control_ivs.
26616 * tree-ssa-loop-niter.c : Include "stor-layout.h".
26617 (number_of_iterations_lt): Set no_overflow information.
26618 (number_of_iterations_exit): Init control iv in niter struct.
26619 (record_control_iv): New.
26620 (estimate_numbers_of_iterations_loop): Call record_control_iv.
26621 (loop_exits_before_overflow): New. Interface factored out of
26622 scev_probably_wraps_p.
26623 (scev_probably_wraps_p): Factor loop niter related code into
26624 loop_exits_before_overflow.
26625 (free_numbers_of_iterations_estimates_loop): Free control ivs.
26626 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
26628 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
26630 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
26631 the target doesn't belong to the current function.
26633 2015-06-02 Marek Polacek <polacek@redhat.com>
26635 PR middle-end/66345
26636 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
26637 get_maxval_strlen does not produce an INTEGER_CST.
26639 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
26641 * config/arc/constraints.md: Use lower-case names in match_code.
26642 * config/mmix/constraints.md: Likewise.
26644 2015-06-02 Richard Biener <rguenther@suse.de>
26646 PR tree-optimization/65961
26647 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
26648 check and clarify dump message.
26649 (vect_build_slp_tree): If all children are built up from scalars
26650 build up the parent from scalars instead.
26651 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
26653 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
26656 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
26657 instead of print ... .
26659 2015-06-02 Alan Modra <amodra@gmail.com>
26661 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
26664 2015-06-02 Bin Cheng <bin.cheng@arm.com>
26666 PR tree-optimization/52563
26667 PR tree-optimization/62173
26668 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
26669 (alloc_iv, set_iv): New parameter.
26670 (determine_biv_step): Delete.
26671 (find_bivs): Inline original determine_biv_step. Pass new
26672 argument to set_iv.
26673 (idx_find_step): Use no_overflow information for conversion.
26674 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
26675 resolve_mixers handle folded_casts.
26676 (instantiate_scev_name): Change bool parameter to bool pointer.
26677 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
26678 (instantiate_array_ref, instantiate_scev_not): Ditto.
26679 (instantiate_scev_3, instantiate_scev_2): Ditto.
26680 (instantiate_scev_1, instantiate_scev_r): Ditto.
26681 (instantiate_scev_convert, ): Change parameter. Pass argument
26682 to chrec_convert_aggressive.
26683 (instantiate_scev): Change argument.
26684 (resolve_mixers): New parameter and set it.
26685 (scev_const_prop): New argument.
26686 * tree-scalar-evolution.h (resolve_mixers): New parameter.
26687 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
26689 (chrec_convert): New parameter. Move definition below.
26690 (chrec_convert_aggressive): New parameter and set it. Call
26691 convert_affine_scev.
26692 * tree-chrec.h (chrec_convert): New parameter.
26693 (chrec_convert_aggressive): Ditto.
26695 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
26697 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
26698 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
26699 the LHS of a no-return call if its type has variable size.
26700 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
26701 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
26703 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
26705 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
26706 * config.in: Regenerate.
26708 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
26710 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
26711 consecutive accesses within outer-loop with force_vectorize
26712 for references with zero step in inner-loop.
26714 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
26716 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
26717 rather than from gcc/build directory.
26719 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
26722 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
26723 for __sync memory models, emit initial loads and final barriers as
26726 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
26729 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
26730 (aarch64_split_atomic_op): Check for __sync memory models, emit
26731 appropriate initial loads and final barriers.
26733 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
26735 * Makefile.in: Fix gcov dependencies that should
26736 not point to a build folder.
26738 2015-06-01 Richard Biener <rguenther@suse.de>
26741 2015-05-29 Richard Biener <rguenther@suse.de>
26743 PR tree-optimization/66314
26744 * tree-ssa-threadupdate.c (create_block_for_threading): Add
26745 parameter that says which loop the new block belongs to.
26746 (ssa_create_duplicates): Blocks duplicated for the threaded
26747 path belong to the loop of the thread destination.
26749 2015-06-01 Martin Liska <mliska@suse.cz>
26751 * sched-deps.c: Include pool-alloc.h before
26752 cselib.h header file is included.
26754 2015-06-01 Richard Biener <rguenther@suse.de>
26756 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
26759 2015-06-01 Martin Liska <mliska@suse.cz>
26761 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
26762 a function local variable.
26764 2015-06-01 Martin Liska <mliska@suse.cz>
26766 * alloc-pool.c (create_alloc_pool): Remove.
26767 (empty_alloc_pool): Likewise.
26768 (free_alloc_pool): Likewise.
26769 (free_alloc_pool_if_empty): Likewise.
26770 (pool_alloc): Likewise.
26771 (pool_free): Likewise.
26772 * alloc-pool.h: Remove old declarations.
26774 2015-06-01 Martin Liska <mliska@suse.cz>
26776 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
26777 (ira_create_object): Likewise.
26778 (ira_create_allocno): Likewise.
26779 (ira_create_live_range): Likewise.
26780 (copy_live_range): Likewise.
26781 (ira_finish_live_range): Likewise.
26782 (ira_free_allocno_costs): Likewise.
26783 (finish_allocno): Likewise.
26784 (finish_allocnos): Likewise.
26785 (initiate_prefs): Likewise.
26786 (ira_create_pref): Likewise.
26787 (finish_pref): Likewise.
26788 (finish_prefs): Likewise.
26789 (initiate_copies): Likewise.
26790 (ira_create_copy): Likewise.
26791 (finish_copy): Likewise.
26792 (finish_copies): Likewise.
26793 (finish_prefs): Likewise.
26795 2015-06-01 Martin Liska <mliska@suse.cz>
26797 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
26798 (allocate_and_init_ipcp_value): Likewise.
26799 (ipcp_lattice::add_value): Likewise.
26800 (merge_agg_lats_step): Likewise.
26801 (ipcp_driver): Likewise.
26802 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
26803 (ipa_free_all_structures_after_iinln): Likewise.
26804 * ipa-prop.h: Likewise.
26806 2015-06-01 Martin Liska <mliska@suse.cz>
26808 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
26810 (set_hint_predicate): Likewise.
26811 (inline_summary_alloc): Likewise.
26812 (reset_inline_edge_summary): Likewise.
26813 (reset_inline_summary): Likewise.
26814 (set_cond_stmt_execution_predicate): Likewise.
26815 (set_switch_stmt_execution_predicate): Likewise.
26816 (compute_bb_predicates): Likewise.
26817 (estimate_function_body_sizes): Likewise.
26818 (inline_free_summary): Likewise.
26820 2015-06-01 Martin Liska <mliska@suse.cz>
26822 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
26823 (ipa_edge_duplication_hook): Likewise.
26824 (ipa_free_all_structures_after_ipa_cp): Likewise.
26825 (ipa_free_all_structures_after_iinln): Likewise.
26827 2015-06-01 Martin Liska <mliska@suse.cz>
26829 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
26830 (ipa_profile_generate_summary): Likewise.
26831 (ipa_profile_read_summary): Likewise.
26832 (ipa_profile): Likewise.
26834 2015-06-01 Martin Liska <mliska@suse.cz>
26836 * tree-ssa-structalias.c (new_var_info): Use new type-based
26838 (new_constraint): Likewise.
26839 (init_alias_vars): Likewise.
26840 (delete_points_to_sets): Likewise.
26842 2015-06-01 Martin Liska <mliska@suse.cz>
26844 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
26845 (free_strinfo): Likewise.
26846 (pass_strlen::execute): Likewise.
26848 2015-06-01 Martin Liska <mliska@suse.cz>
26850 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
26852 (vn_reference_insert_pieces): Likewise.
26853 (vn_phi_insert): Likewise.
26854 (visit_reference_op_call): Likewise.
26855 (copy_phi): Likewise.
26856 (copy_reference): Likewise.
26857 (process_scc): Likewise.
26858 (allocate_vn_table): Likewise.
26859 (free_vn_table): Likewise.
26861 2015-06-01 Martin Liska <mliska@suse.cz>
26863 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
26865 (add_repeat_to_ops_vec): Likewise.
26866 (get_ops): Likewise.
26867 (maybe_optimize_range_tests): Likewise.
26868 (init_reassoc): Likewise.
26869 (fini_reassoc): Likewise.
26871 2015-06-01 Martin Liska <mliska@suse.cz>
26873 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
26875 (bitmap_set_new): Likewise.
26876 (get_or_alloc_expr_for_constant): Likewise.
26877 (get_or_alloc_expr_for): Likewise.
26878 (phi_translate_1): Likewise.
26879 (compute_avail): Likewise.
26880 (init_pre): Likewise.
26881 (fini_pre): Likewise.
26883 2015-06-01 Martin Liska <mliska@suse.cz>
26885 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
26886 (delete_dep_node): Likewise.
26887 (create_deps_list): Likewise.
26888 (free_deps_list): Likewise.
26889 (sched_deps_init): Likewise.
26890 (sched_deps_finish): Likewise.
26892 2015-06-01 Martin Liska <mliska@suse.cz>
26894 * regcprop.c (free_debug_insn_changes): Use new type-based
26896 (replace_oldest_value_reg): Likewise.
26897 (pass_cprop_hardreg::execute): Likewise.
26899 2015-06-01 Martin Liska <mliska@suse.cz>
26901 * ira-build.c (initiate_cost_vectors): Use new type-based
26903 (ira_allocate_cost_vector): Likewise.
26904 (ira_free_cost_vector): Likewise.
26905 (finish_cost_vectors): Likewise.
26907 2015-06-01 Martin Liska <mliska@suse.cz>
26909 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
26911 (free_sched_pools): Likewise.
26912 * sel-sched-ir.h (_list_alloc): Likewise.
26913 (_list_remove): Likewise.
26915 2015-06-01 Martin Liska <mliska@suse.cz>
26917 * stmt.c (add_case_node): Use new type-based pool allocator.
26918 (expand_case): Likewise.
26919 (expand_sjlj_dispatch_table): Likewise.
26921 2015-06-01 Martin Liska <mliska@suse.cz>
26923 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
26924 (free_bb): Likewise.
26925 (pass_cse_reciprocals::execute): Likewise.
26927 2015-06-01 Martin Liska <mliska@suse.cz>
26929 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
26930 (sra_deinitialize) Likewise.
26931 (create_access_1) Likewise.
26932 (build_accesses_from_assign) Likewise.
26933 (create_artificial_child_access) Likewise.
26935 2015-06-01 Martin Liska <mliska@suse.cz>
26937 * dse.c (get_group_info):Use new type-based pool allocator.
26938 (dse_step0) Likewise.
26939 (free_store_info) Likewise.
26940 (delete_dead_store_insn) Likewise.
26941 (free_read_records) Likewise.
26942 (record_store) Likewise.
26943 (replace_read) Likewise.
26944 (check_mem_read_rtx) Likewise.
26945 (scan_insn) Likewise.
26946 (dse_step1) Likewise.
26947 (dse_step7) Likewise.
26949 2015-06-01 Martin Liska <mliska@suse.cz>
26951 * df-scan.c (struct df_scan_problem_data):Use new type-based
26953 (df_scan_free_internal) Likewise.
26954 (df_scan_alloc) Likewise.
26955 (df_grow_reg_info) Likewise.
26956 (df_free_ref) Likewise.
26957 (df_insn_create_insn_record) Likewise.
26958 (df_mw_hardreg_chain_delete) Likewise.
26959 (df_insn_info_delete) Likewise.
26960 (df_free_collection_rec) Likewise.
26961 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
26962 (df_sort_and_compress_mws) Likewise.
26963 (df_ref_create_structure) Likewise.
26964 (df_ref_record) Likewise.
26966 2015-06-01 Martin Liska <mliska@suse.cz>
26968 * df-problems.c (df_chain_create):Use new type-based pool allocator.
26969 (df_chain_unlink_1) Likewise.
26970 (df_chain_unlink) Likewise.
26971 (df_chain_remove_problem) Likewise.
26972 (df_chain_alloc) Likewise.
26973 (df_chain_free) Likewise.
26974 * df.h (struct dataflow) Likewise.
26976 2015-06-01 Martin Liska <mliska@suse.cz>
26978 * cselib.c (new_elt_list):Use new type-based pool allocator.
26979 (new_elt_loc_list) Likewise.
26980 (unchain_one_elt_list) Likewise.
26981 (unchain_one_elt_loc_list) Likewise.
26982 (unchain_one_value) Likewise.
26983 (new_cselib_val) Likewise.
26984 (cselib_init) Likewise.
26985 (cselib_finish) Likewise.
26987 2015-06-01 Martin Liska <mliska@suse.cz>
26989 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
26990 (sh_reorg) Likewise.
26992 2015-06-01 Martin Liska <mliska@suse.cz>
26994 * cfg.c (initialize_original_copy_tables):Use new type-based
26996 (free_original_copy_tables) Likewise.
26997 (copy_original_table_clear) Likewise.
26998 (copy_original_table_set) Likewise.
27000 2015-06-01 Martin Liska <mliska@suse.cz>
27002 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
27004 (asan_mem_ref_new) Likewise.
27005 (free_mem_ref_resources) Likewise.
27007 2015-06-01 Martin Liska <mliska@suse.cz>
27009 * var-tracking.c (variable_htab_free):Use new type-based
27011 (attrs_list_clear) Likewise.
27012 (attrs_list_insert) Likewise.
27013 (attrs_list_copy) Likewise.
27014 (shared_hash_unshare) Likewise.
27015 (shared_hash_destroy) Likewise.
27016 (unshare_variable) Likewise.
27017 (var_reg_delete_and_set) Likewise.
27018 (var_reg_delete) Likewise.
27019 (var_regno_delete) Likewise.
27020 (drop_overlapping_mem_locs) Likewise.
27021 (variable_union) Likewise.
27022 (insert_into_intersection) Likewise.
27023 (canonicalize_values_star) Likewise.
27024 (variable_merge_over_cur) Likewise.
27025 (dataflow_set_merge) Likewise.
27026 (remove_duplicate_values) Likewise.
27027 (variable_post_merge_new_vals) Likewise.
27028 (dataflow_set_preserve_mem_locs) Likewise.
27029 (dataflow_set_remove_mem_locs) Likewise.
27030 (variable_from_dropped) Likewise.
27031 (variable_was_changed) Likewise.
27032 (set_slot_part) Likewise.
27033 (clobber_slot_part) Likewise.
27034 (delete_slot_part) Likewise.
27035 (loc_exp_insert_dep) Likewise.
27036 (notify_dependents_of_changed_value) Likewise.
27037 (emit_notes_for_differences_1) Likewise.
27038 (vt_emit_notes) Likewise.
27039 (vt_initialize) Likewise.
27040 (vt_finalize) Likewise.
27042 2015-06-01 Martin Liska <mliska@suse.cz>
27044 * ira-color.c (init_update_cost_records):Use new type-based
27046 (get_update_cost_record) Likewise.
27047 (free_update_cost_record_list) Likewise.
27048 (finish_update_cost_records) Likewise.
27049 (initiate_cost_update) Likewise.
27051 2015-06-01 Martin Liska <mliska@suse.cz>
27053 * lra.c (init_insn_regs): Use new type-based pool allocator.
27054 (new_insn_reg) Likewise.
27055 (free_insn_reg) Likewise.
27056 (free_insn_regs) Likewise.
27057 (finish_insn_regs) Likewise.
27058 (init_insn_recog_data) Likewise.
27059 (init_reg_info) Likewise.
27060 (finish_reg_info) Likewise.
27061 (lra_free_copies) Likewise.
27062 (lra_create_copy) Likewise.
27063 (invalidate_insn_data_regno_info) Likewise.
27065 2015-06-01 Martin Liska <mliska@suse.cz>
27067 * lra-lives.c (free_live_range): Use new type-based pool allocator.
27068 (free_live_range_list) Likewise.
27069 (create_live_range) Likewise.
27070 (copy_live_range) Likewise.
27071 (lra_merge_live_ranges) Likewise.
27072 (remove_some_program_points_and_update_live_ranges) Likewise.
27073 (lra_live_ranges_init) Likewise.
27074 (lra_live_ranges_finish) Likewise.
27076 2015-06-01 Martin Liska <mliska@suse.cz>
27078 * et-forest.c (et_new_occ): Use new type-based pool allocator.
27079 (et_new_tree): Likewise.
27080 (et_free_tree): Likewise.
27081 (et_free_tree_force): Likewise.
27082 (et_free_pools): Likewise.
27083 (et_split): Likewise.
27085 2015-06-01 Martin Liska <mliska@suse.cz>
27087 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
27089 * alloc-pool.h (pool_allocator::pool_allocator): New function.
27090 (pool_allocator::release): Likewise.
27091 (inline pool_allocator::release_if_empty): Likewise.
27092 (inline pool_allocator::~pool_allocator): Likewise.
27093 (pool_allocator::allocate): Likewise.
27094 (pool_allocator::remove): Likewise.
27096 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
27098 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
27101 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
27103 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
27105 * config/arm/arm.c (arm_print_tune_info): Likewise.
27106 (arm_macro_fusion_p): Likewise.
27107 (arm_macro_fusion_pair_p): Likewise.
27109 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
27111 * config/aarch64/aarch64-protos.h (tune_params): Rename
27112 fuseable_ops to fusible_ops.
27113 * config/aarch64/aarch64.c (generic_tunings): Rename
27114 fuseable_ops to fusible_ops.
27115 (cortexa53_tunings): Likewise.
27116 (cortexa57_tunings): Likewise.
27117 (thunderx_tunings): Likewise.
27118 (xgene1_tunings): Likewise.
27119 (aarch64_macro_fusion_p): Likewise.
27120 (aarch64_macro_fusion_pair_p): Likewise.
27122 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
27124 * config/s390/driver-native.c: New file.
27125 * config/s390/x-native: New file.
27126 * config.host: Add new files for s390.
27127 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
27129 * config.gcc: Likewise.
27130 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
27131 * config/s390/s390-opts.h (enum processor_type): Ditto.
27132 * config/s390/s390.c (s390_option_override): Catch unhandled
27135 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
27138 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
27139 redirection for instrumented calls.
27140 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
27141 (append_compiler_options): Append -fcheck-pointer-bounds.
27142 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
27143 (chkp_redirect_edge): New.
27144 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
27145 (chkp_redirect_edge): New.
27147 2015-06-01 Richard Biener <rguenther@suse.de>
27149 PR tree-optimization/66280
27150 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
27153 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27155 * config/aarch64/aarch64.md
27156 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
27159 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
27161 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
27162 Remove obsolete kludge.
27164 2015-06-01 Richard Biener <rguenther@suse.de>
27166 * tree-ssa-reassoc.c (get_rank): Simplify.
27168 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
27170 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
27171 * configure: Regenerated.
27173 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
27175 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
27176 issue (add space between string literal and macro).
27177 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
27179 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
27181 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
27182 implict or explicit -fPIE or -fpie.
27184 2015-05-30 Mike Frysinger <vapier@gentoo.org>
27186 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
27188 2015-05-28 DJ Delorie <dj@redhat.com>
27190 * expmed.c (extract_bit_field_1): Avoid clobbering a
27191 yet-to-be-used base/index register.
27193 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
27195 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
27196 (alias_stats): Add num_universal.
27197 (alias_set_subset_of): Special case pointers; be ready for NULL
27199 (alias_sets_conflict_p): Special case pointers; be ready for NULL
27201 (init_alias_set_entry): Break out from ...
27202 (record_alias_subset): ... here; propagate new fields;
27203 allocate children only when really needed.
27204 (get_alias_set): Do less generous pointer globbing.
27205 (dump_alias_stats_in_alias_c): Update statistics.
27207 2015-05-30 Alan Modra <amodra@gmail.com>
27209 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
27210 correct block for use of r12.
27211 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
27213 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
27216 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
27219 2015-05-29 Jakub Jelinek <jakub@redhat.com>
27221 PR tree-optimization/66142
27222 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
27223 virtual phis that feed themselves.
27225 2015-05-29 Richard Biener <rguenther@suse.de>
27227 PR tree-optimization/66314
27228 * tree-ssa-threadupdate.c (create_block_for_threading): Add
27229 parameter that says which loop the new block belongs to.
27230 (ssa_create_duplicates): Blocks duplicated for the threaded
27231 path belong to the loop of the thread destination.
27233 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27235 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
27236 to cleanup-saved-temps.
27237 * doc/sourcebuild.texi (Clean up generated test files): Expand
27239 (dg-keep-saved-temps): Document new proc.
27240 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
27241 cleanup-saved-temps): Remove.
27243 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
27245 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
27246 gcc_AC_CHECK_DECLS.
27247 * configure: Regenerate.
27249 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27251 * config/nios2/linux.h (CPP_SPEC): Define.
27253 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27255 * config/microblaze/linux.h (CPP_SPEC): Define.
27257 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27259 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
27260 -pthread is specified.
27262 2015-05-28 Richard Biener <rguenther@suse.de>
27264 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
27265 (vect_fixup_scalar_cycles_with_patterns): Likewise.
27266 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
27267 after pattern recog.
27268 (vect_create_epilog_for_reduction): Properly handle reductions
27270 (vectorizable_reduction): Likewise.
27271 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
27273 (vect_get_constant_vectors): Create the correct number of
27274 initial values for reductions.
27275 (vect_schedule_slp_instance): Handle reduction chains that are
27276 type changing properly.
27277 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
27279 2015-05-28 Richard Biener <rguenther@suse.de>
27281 PR tree-optimization/66142
27282 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
27283 values better in memcpy destination handling. Handle non-aliasing
27286 2015-05-28 Lawrence Velázquez <vq@larryv.me>
27289 * config/darwin-c.c (version_components): New global enum.
27290 (parse_version, version_as_legacy_macro)
27291 (version_as_modern_macro, macosx_version_as_macro): New functions.
27292 (version_as_macro): Remove.
27293 (darwin_cpp_builtins): Use new function.
27295 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
27297 * builtins.c (expand_builtin_acc_on_device): Mark parameters
27298 with ATTRIBUTE_UNUSED.
27300 2015-05-28 Julian Brown <julian@codesourcery.com>
27304 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
27305 sequence for !ACCEL_COMPILER.
27307 2015-05-28 Nick Clifton <nickc@redhat.com>
27309 * config/rx/rx.c (push_regs): New function. Extracts code from...
27310 (rx_expand_prologue): ... here. Use push_regs to push even small
27311 spans of registers.
27312 (pop_regs): New function.
27313 (rx_expand_epilogue): Use pop_regs to pop even small spans of
27316 2015-05-28 Richard Biener <rguenther@suse.de>
27318 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
27320 (SLP_INSTANCE_BODY_COST_VEC): Remove.
27321 (vect_update_slp_costs_according_to_vf): Likewise.
27322 (vect_slp_analyze_operations): Update prototype.
27323 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
27324 vect_update_slp_costs_according_to_vf, adjust.
27325 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
27326 (vect_analyze_slp_cost_1): Likewise.
27327 (vect_analyze_slp_cost): Likewise. Properly deal with
27328 widening reduction ops. Commit body costs.
27329 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
27330 cost for loops from here.
27331 (vect_slp_analyze_operations): But do it from here when
27332 the vectorization factor is known and stmts are analyzed.
27333 (vect_bb_vectorization_profitable_p): Simplify.
27334 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
27335 (vect_update_slp_costs_according_to_vf): Remove.
27337 2015-05-27 Magnus Granberg <zorry@gentoo.org>
27338 H.J. Lu <hongjiu.lu@intel.com>
27340 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
27341 (BUILD_CFLAGS): Likewise.
27342 (BUILD_CXXFLAGS): Likewise.
27343 (LINKER): Add @NO_PIE_FLAG@.
27344 (BUILD_LDFLAGS): Likewise.
27345 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
27346 --enable-default-pie.
27347 * common.opt (fPIE): Initialize to -1.
27349 (no-pie): New option.
27350 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
27351 * configure.ac: Add --enable-default-pie.
27352 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
27353 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
27354 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
27355 * gcc.c (NO_PIE_SPEC): New.
27356 (PIE_SPEC): Likewise.
27357 (NO_FPIE1_SPEC): Likewise.
27358 (FPIE1_SPEC): Likewise.
27359 (NO_FPIE2_SPEC): Likewise.
27360 (FPIE2_SPEC): Likewise.
27361 (NO_FPIE2_SPEC): Likewise.
27362 (FPIE_SPEC): Likewise.
27363 (NO_FPIE_SPEC): Likewise.
27364 (NO_FPIC1_SPEC): Likewise.
27365 (FPIC1_SPEC): Likewise.
27366 (NO_FPIC2_SPEC): Likewise.
27367 (FPIC2_SPEC): Likewise.
27368 (NO_FPIC2_SPEC): Likewise.
27369 (FPIC_SPEC): Likewise.
27370 (NO_FPIC_SPEC): Likewise.
27371 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
27372 (FPIE1_OR_FPIC1_SPEC): Likewise.
27373 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
27374 (FPIE2_OR_FPIC2_SPEC): Likewise.
27375 (NO_FPIE_AND_FPIC_SPEC): Likewise.
27376 (FPIE_OR_FPIC_SPEC): Likewise.
27377 (LD_PIE_SPEC): Likewise.
27378 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
27379 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
27380 * config/darwin.h (PIE_SPEC): Renamed to ...
27381 (DARWIN_PIE_SPEC): This.
27382 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
27383 * config/darwin9.h (PIE_SPEC): Renamed to ...
27384 (DARWIN_PIE_SPEC): This.
27385 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
27386 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
27387 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
27388 FPIE2_OR_FPIC2_SPEC.
27389 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
27390 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
27391 * config/sol2.h (ASM_PIC_SPEC): Likewise.
27392 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27393 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27394 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27395 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
27396 * config/m32r/m32r.h (ASM_SPEC): Likewise.
27397 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
27398 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27399 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
27400 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
27401 * config/sparc/linux.h (ASM_SPEC): Likewise.
27402 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27403 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
27404 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
27405 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27406 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27407 * config/sparc/sparc.h (ASM_SPEC): Likewise.
27408 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
27409 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
27410 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
27411 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
27412 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
27413 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
27414 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
27415 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
27416 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
27417 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
27418 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
27419 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
27420 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27421 * config/vax/linux.h (ASM_SPEC): Likewise.
27422 * doc/install.texi: Document --enable-default-pie.
27423 * doc/invoke.texi: Document -no-pie.
27424 * config.in: Regenerated.
27425 * configure: Likewise.
27427 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
27429 PR rtl-optimization/66168
27430 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
27431 can_move_invariant_reg.
27433 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
27436 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
27437 REG_EQUAL note when doing insert.
27439 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
27440 instead of "%d" for 'o' operand.
27442 2015-05-27 Nathan Sidwell <nathan@acm.org>
27445 * tree.c (build_pointer_type_for_mode): Canonical type does not
27446 inherit can_alias_all.
27447 (build_reference_type_for_mode): Likewise.
27449 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
27451 * expr.h (array_at_struct_end_p): Move to...
27452 (array_ref_element_size): Likewise.
27453 (component_ref_field_offset): Likewise.
27454 * tree.h (array_ref_element_size): ...here.
27455 (array_at_struct_end_p): Likewise.
27456 (component_ref_field_offset): Likewise.
27457 * expr.c (array_ref_element_size): Move to...
27458 (array_ref_low_bound): Likewise.
27459 (array_at_struct_end_p): Likewise.
27460 (array_ref_up_bound): Likewise.
27461 (component_ref_field_offset): Likewise.
27462 * tree.c (array_ref_element_size): ...here.
27463 (array_ref_low_bound): Likewise.
27464 (array_ref_up_bound): Likewise.
27465 (array_at_struct_end_p): Likewise.
27466 (component_ref_field_offset): Likewise.
27468 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
27469 Szabolcs Nagy <szabolcs.nagy@arm.com>
27471 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
27473 2015-05-27 Jason Merrill <jason@redhat.com>
27476 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
27477 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
27478 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
27480 2015-05-22 Aditya Kumar <hiraditya@msn.com>
27482 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
27485 * statistics.c (statistics_fini_pass): Print pass name.
27487 2015-05-27 Richard Biener <rguenther@suse.de>
27489 PR tree-optimization/66272
27491 2014-08-15 Richard Biener <rguenther@suse.de>
27493 PR tree-optimization/62031
27494 * tree-data-ref.c (dr_analyze_indices): Do not set
27495 DR_UNCONSTRAINED_BASE.
27496 (dr_may_alias_p): All indirect accesses have to go the
27497 formerly DR_UNCONSTRAINED_BASE path.
27498 * tree-data-ref.h (struct indices): Remove
27499 unconstrained_base member.
27500 (DR_UNCONSTRAINED_BASE): Remove.
27502 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
27504 * dwarf2out.c: Remove block_map.
27505 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
27506 (gen_lexical_block_die): Same.
27507 (dwarf2out_function_decl): Remove block_map use.
27508 (dwarf2out_c_finalize): Same.
27509 * tree-core.h (struct tree_block): Add die field.
27510 * tree.h (BLOCK_DIE): New.
27512 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27515 * expr.c (memory_load_overlap): New function.
27516 (emit_push_insn): When pushing partial args to the stack would
27517 clobber the register part load the overlapping part into a pseudo
27518 and put it into the hard reg after pushing. Change return type
27519 to bool. Add bool argument.
27520 * expr.h (emit_push_insn): Change return type to bool.
27522 * calls.c (expand_call): Cancel sibcall optimization when encountering
27523 partial argument on targets with ARGS_GROW_DOWNWARD and
27524 !STACK_GROWS_DOWNWARD.
27525 (emit_library_call_value_1): Update callsite of emit_push_insn.
27526 (store_one_arg): Likewise.
27528 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
27530 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
27532 2015-05-27 Martin Liska <mliska@suse.cz>
27534 * Makefile.in: Add additional dependencies related to memory report
27536 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
27537 * bitmap.c (struct bitmap_descriptor_d): Remove.
27538 (struct loc): Likewise.
27539 (struct bitmap_desc_hasher): Likewise.
27540 (bitmap_desc_hasher::hash): Likewise.
27541 (bitmap_desc_hasher::equal): Likewise.
27542 (get_bitmap_descriptor): Likewise.
27543 (bitmap_register): User new memory descriptor API.
27544 (register_overhead): Likewise.
27545 (bitmap_find_bit): Register nsearches and search_iter statistics.
27546 (struct bitmap_output_info): Remove.
27547 (print_statistics): Likewise.
27548 (dump_bitmap_statistics): Use new memory descriptor.
27549 * bitmap.h (struct bitmap_usage): New class.
27550 * genmatch.c: Extend header file inclusion.
27551 * genpreds.c: Likewise.
27552 * ggc-common.c (struct ggc_usage): New class.
27553 (struct ggc_loc_desc_hasher): Remove.
27554 (ggc_loc_desc_hasher::hash): Likewise.
27555 (ggc_loc_desc_hasher::equal): Likewise.
27556 (struct ggc_ptr_hash_entry): Likewise.
27557 (struct ptr_hash_hasher): Likewise.
27558 (ptr_hash_hasher::hash): Likewise.
27559 (ptr_hash_hasher::equal): Likewise.
27560 (make_loc_descriptor): Likewise.
27561 (ggc_prune_ptr): Likewise.
27562 (dump_ggc_loc_statistics): Use new memory descriptor.
27563 (ggc_record_overhead): Likewise.
27564 (ggc_free_overhead): Likewise.
27565 (final_cmp_statistic): Remove.
27566 (cmp_statistic): Likewise.
27567 (ggc_add_statistics): Liekwise.
27568 (ggc_prune_overhead_list): Likewise.
27569 * hash-map-traits.h: New file.
27570 * hash-map.h (struct default_hashmap_traits): Move the traits to a
27571 separate header file.
27572 * hash-set.h: Pass memory statistics info to ctor.
27573 * hash-table.c (void dump_hash_table_loc_statistics): New function.
27574 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
27575 (hash_table::~hash_table): Register memory release operation.
27576 (hash_table::alloc_entries): Handle memory allocation operation.
27577 (hash_table::expand): Likewise.
27578 * inchash.c (iterative_hash_hashval_t): Move implementation to header
27580 (iterative_hash_host_wide_int): Likewise.
27581 * inchash.h (class hash): Likewise.
27582 * mem-stats-traits.h: New file.
27583 * mem-stats.h: New file.
27584 (mem_location): Add new class.
27585 (mem_usage): Likewise.
27586 (mem_alloc_description): Likewise.
27587 * sese.c: Add new header file inclusision.
27588 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
27590 * tree-sra.c: Add new header file inclusision.
27591 * vec.c (struct vec_descriptor): Remove.
27592 (hash_descriptor): Likewise.
27593 (struct vec_usage): Likewise.
27594 (struct ptr_hash_entry): Likewise.
27595 (hash_ptr): Likewise.
27596 (eq_ptr): Likewise.
27597 (vec_prefix::register_overhead): Use new memory descriptor API.
27598 (vec_prefix::release_overhead): Likewise.
27599 (add_statistics): Remove.
27600 (dump_vec_loc_statistics): Use new memory descriptor API.
27601 * vec.h (struct vec_prefix): Likewise.
27602 (va_heap::reserve): Likewise.
27603 (va_heap::release): Likewise.
27604 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
27606 2015-05-27 Richard Biener <rguenther@suse.de>
27608 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
27609 earlier and remove ??? comment.
27610 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
27611 and got called from loop analysis bail out. Always pass the SLP
27612 node to the vectorizable_* functions.
27613 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
27614 the premature SLP check here.
27615 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
27616 detected SLP stmts.
27617 (vect_detect_hybrid_slp_1): Likewise.
27619 2015-05-26 Jeff Law <law@redhat.com>
27621 * combine.c (find_split_point): Verify that the shift count is a
27622 constant when choosing (plus (ashift ...)) as a split point.
27624 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
27625 No functional changes.
27627 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
27629 * ipa-polymorphic-call.c
27630 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
27631 case when call target is already known.
27633 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
27636 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
27637 take into account the case that operands[1] and operands[2]
27638 are the same register.
27640 2015-05-26 Michael Matz <matz@suse.de>
27642 PR middle-end/66251
27644 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
27646 (vect_create_vectorized_demotion_stmts): Always set
27647 STMT_VINFO_VEC_STMT, also with SLP.
27648 (vectorizable_store): Handle strided group stores.
27650 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27653 * config/aarch64/aarch64.md
27654 (*adds_shift_imm_<mode>): New pattern.
27655 (*subs_shift_imm_<mode>): Likewise.
27656 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27657 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27658 (*add_uxt<mode>_shift2): Likewise.
27659 (*add_uxtsi_shift2_uxtw): Likewise.
27660 (*sub_uxt<mode>_shift2): Likewise.
27661 (*sub_uxtsi_shift2_uxtw): Likewise.
27663 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
27665 * config/rs6000/constraints.md (Y, U): Use match_test.
27667 2015-05-26 Christian Bruel <christian.bruel@st.com>
27670 * config/arm/arm.c (arm_option_check_internal)
27671 (arm_option_params_internal): Check opts->target_flags to set macros.
27672 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27673 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
27674 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27675 (builtin_define): Replaced with def_or_undef_macro.
27676 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27677 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
27678 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27679 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
27680 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
27681 (TARGET_ARM_FEATURE_LDREX_P)
27682 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
27683 * config/arm/arm-c.c (def_or_undef_macro): New function.
27684 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
27686 2015-05-26 Christian Bruel <christian.bruel@st.com>
27688 * c-common.h (builtin_define_with_int_value)
27689 (builtin_define_type_sizeof): Declare.
27690 * c-cppbuiltin.c (builtin_define_with_int_value)
27691 (builtin_define_type_sizeof): Externalize.
27692 (builtin_define_std): Cleanup declaration.
27693 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
27694 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
27695 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
27696 (builtin_define, builtin_assert): New macros.
27698 2015-05-26 Richard Biener <rguenther@suse.de>
27700 PR tree-optimization/66142
27701 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
27702 MEM_REFs for the same base address.
27704 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27707 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
27709 2015-05-26 Jason Merrill <jason@redhat.com>
27711 * configure.ac: Set CXXFLAGS for ISL test.
27712 * configure: Regenerate.
27714 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
27715 strstr and basename.
27716 * configure: Regenerate.
27718 2015-05-26 Richard Biener <rguenther@suse.de>
27720 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
27721 X % C -> X & (C - 1) for C being a power-of two to ...
27722 * match.pd: ... patterns.
27724 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
27726 * match.pd (swapped_tcc_comparison): New operator list.
27727 (-A CMP -B): New simplification.
27728 * fold-const.c (fold_comparison): Remove corresponding code.
27730 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
27732 * caller-save.c (init_caller_save): Base temporary register numbers
27733 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
27734 * cfgloopanal.c (init_set_costs): Likewise.
27735 * dojump.c (prefer_and_bit_test): Likewise.
27736 * expr.c (init_expr_target): Likewise.
27737 * ira.c (setup_prohibited_mode_move_regs): Likewise.
27738 * lower-subreg.c (init_lower_subreg): Likewise.
27739 * postreload.c (reload_cse_regs_1): Likewise.
27741 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
27743 * gensupport.h (compute_test_codes): Declare.
27744 * gensupport.c (compute_predicate_codes): Rename to...
27745 (compute_test_codes): ...this. Generalize error message.
27746 (process_define_predicate): Update accordingly.
27747 * genpreds.c (compute_maybe_allows): Delete.
27748 (add_constraint): Use compute_test_codes to determine whether
27749 something can accept a SUBREG, REG or MEM.
27751 2015-05-26 Torvald Riegel <triegel@redhat.com>
27753 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
27754 'memory model' to align with C++11; fix description of memory orders;
27757 2015-05-26 Richard Biener <rguenther@suse.de>
27759 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
27760 (vect_analyze_loop_operations): ... here. Remove slp parameter,
27761 detect whether we apply SLP. Remove call to
27762 vect_update_slp_costs_according_to_vf.
27763 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
27764 vect_update_slp_costs_according_to_vf from here. Dispatch
27765 to vect_slp_analyze_operations to analyze SLP stmts.
27766 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
27767 unused bb_vec_info parameter, adjust assert.
27768 (vect_slp_analyze_operations): Pass in the slp instance tree
27769 instead of bb_vec_info.
27770 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
27771 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
27773 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
27775 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
27776 Q_REGS. Expand comment.
27777 (REG_CLASS_NAMES): Ditto.
27778 (REG_CLASS_CONTENTS): Ditto.
27780 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
27783 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
27784 when LEGACY_INT_REGNO_P is processed.
27786 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
27788 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
27790 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
27792 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
27793 register if not marked dead/unused, before return.
27795 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27798 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
27799 is set; check for assembler name at LTO time.
27800 (type_in_anonymous_namespace): Remove hacks, check that all
27801 anonymous types are called "<anon>"
27802 (odr_type_p): Simplify; add check for "<anon>"
27803 (odr_subtypes_equivalent): Add odr_type_p check.
27804 * tree.c (need_assembler_name_p): Even anonymous namespace needs
27807 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27809 * ipa-utils.h (method_class_type): Remove.
27810 * cgraphunit.c (walk_polymorphic_call_targets): Use
27811 TYPE_METHOD_BASETYPE.
27812 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
27813 on main variants only.
27814 (method_class_type): Remove.
27815 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
27816 (build_type_inheritance_graph): Likewise.
27817 * ipa-icf.c (sem_function::equals_wpa): Likewise.
27818 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
27819 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
27821 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27823 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
27824 is_typedef_decl, typedef_variant_p): Constify.
27825 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
27826 is_typedef_decl, typedef_variant_p): Constify.
27828 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27830 * defaults.h (gen_tablejump): New function.
27831 (HAVE_tablejump): Add default value.
27833 * stmt.c: Likewise.
27835 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27837 * defaults.h (gen_store_multiple): New function.
27838 (HAVE_store_multiple): Add default value.
27839 * expr.c (move_block_from_reg): Adjust.
27841 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27843 * defaults.h (gen_load_multiple): New function.
27844 (HAVE_load_multiple): Add default value.
27845 * expr.c (move_block_to_reg): Adjust.
27847 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27849 * defaults.h (gen_mem_signal_fence): New function.
27850 (HAVE_mem_signal_fence): Add default value.
27851 * optabs.c: Adjust.
27853 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27855 * defaults.h (gen_memory_barrier): New function.
27856 (HAVE_memory_barrier): Add default value.
27857 * optabs.c: Adjust.
27859 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27861 * defaults.h (gen_mem_thread_fence): New function.
27862 (HAVE_mem_thread_fence): Add default definition.
27863 * optabs.c: Adjust.
27865 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27867 * combine.c (find_split_point): Check the value of HAVE_lo_sum
27868 instead of if it is defined.
27869 (combine_simplify_rtx): Likewise.
27870 * lra-constraints.c (process_address_1): Likewise.
27871 * config/darwin.c: Adjust.
27872 * genconfig.c (main): Always define HAVE_lo_sum.
27874 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27876 * genmatch.c (parser::parse_operation): Reject expanding
27877 operator-list inside 'for'.
27879 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27881 * genmatch.c (parser::parse_for): Reject iterator if used as
27884 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27886 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
27887 after end of id-list.
27889 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
27891 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
27892 we do not try to compute canonical type for type that does not need
27894 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
27896 * tree.h (type_with_alias_set_p): New.
27898 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
27900 * tree.c (gimple_canonical_types_compatible_p): Do not compare
27901 function attributes.
27902 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
27904 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
27906 * Makefile.in (check_gcc_parallelize): Delete.
27907 (lang_checks_parallelized): Update comment.
27909 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
27911 PR rtl-optimization/66237
27912 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
27913 location of an "as_a" cast.
27915 2015-05-22 Jeff Law <law@redhat.com>
27917 * config/pa/pa.md (non-canonical shift-add insns): Remove.
27918 (peepholes with non-canonical RTL sources): Remove.
27919 (peepholes for indexed stores of FP regs in integer modes): Match and
27920 generate canonical RTL.
27922 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27924 PR tree-optimization/63387
27925 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
27926 ((x ord x) & (y ord y) -> (x ord y),
27927 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
27928 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
27929 vectors like scalars.
27931 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27933 * convert.c (convert_to_integer, convert_to_vector): Include the
27934 types in the error message.
27936 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27938 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
27941 2015-05-22 Jeff Law <law@redhat.com>
27943 * config/pa/pa.md (integer_indexed_store splitters): Use
27944 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
27945 insns -- adjusting the constant 2nd operand accordingly.
27947 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
27948 (plus (ashift X log2) Y) if it is a split point.
27950 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
27951 out of hppa_legitimize_address to handle both forms of a multiply
27953 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
27954 Always generate the ASHIFT variant as the result is not directly
27955 used in a MEM. Update comments and refactor slightly to improve
27958 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27961 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
27962 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
27963 (aarch64_composite_type_p): Return false if given type and mode are
27964 for a short vector.
27966 2015-05-22 Richard Biener <rguenther@suse.de>
27968 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
27970 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
27971 patterns when determining whether SLP is pure.
27972 (vect_is_slp_reduction): Remove check for pattern stmts.
27973 (vect_is_simple_reduction_1): Remove dead code.
27974 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
27975 (vect_get_and_check_slp_defs): Pass in the stmt number.
27976 Allow the first def in a reduction to be not a pattern stmt when
27977 the rest of the stmts def are patterns.
27978 (vect_build_slp_tree_1): Allow tcc_expression codes like
27979 SAD_EXPR and DOT_PROD_EXPR.
27980 (vect_build_slp_tree): Adjust.
27981 (vect_analyze_slp): Refactor and move BB vect error message ...
27982 (vect_slp_analyze_bb_1): ... here.
27984 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
27986 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
27987 for CSWTCH temporary.
27989 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27991 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
27992 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
27995 2015-05-22 Richard Biener <rguenther@suse.de>
27997 PR tree-optimization/66251
27998 * tree-vect-stmts.c (vectorizable_conversion): Properly
27999 set STMT_VINFO_VEC_STMT even for the SLP case.
28001 2015-05-22 Marek Polacek <polacek@redhat.com>
28003 * doc/extend.texi: Use @pxref instead of @xref.
28005 2015-05-22 hiraditya <hiraditya@msn.com>
28007 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
28010 2015-05-22 Richard Biener <rguenther@suse.de>
28012 PR tree-optimization/65701
28013 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28014 Move peeling cost models into one place. Peel for alignment
28015 for single loads only if an aligned load is cheaper than
28018 2015-05-22 Marek Polacek <polacek@redhat.com>
28021 * doc/extend.texi (Enumerator Attributes): New section.
28022 Document syntax of enumerator attributes.
28024 2015-05-22 Richard Biener <rguenther@suse.de>
28026 * tree-vect-loop.c (get_reduction_op): New function.
28027 (vect_model_reduction_cost): Use it, add reduc_index parameter.
28028 Make ready for BB reductions.
28029 (vect_create_epilog_for_reduction): Use get_reduction_op.
28030 (vectorizable_reduction): Init reduc_index to a valid value.
28031 Adjust vect_model_reduction_cost call.
28032 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
28033 operand for reduction defaults. Add SAD_EXPR support.
28034 Assert we have a neutral op for SLP reductions.
28035 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
28036 walking pattern stmt ops only recurse to SSA names.
28038 2015-05-22 Richard Biener <rguenther@suse.de>
28040 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
28041 assert with guard, remove check on detected reduction.
28042 (vect_recog_sad_pattern): Likewise.
28043 (vect_recog_widen_sum_pattern): Likewise.
28045 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28047 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
28048 __always_inline__ attribute.
28049 (vaesdq_u8): Likewise.
28050 (vaesmcq_u8): Likewise.
28051 (vaesimcq_u8): Likewise.
28052 (vsha1cq_u32): Likewise.
28053 (vsha1mq_u32): Likewise.
28054 (vsha1pq_u32): Likewise.
28055 (vsha1h_u32): Likewise.
28056 (vsha1su0q_u32): Likewise.
28057 (vsha1su1q_u32): Likewise.
28058 (vsha256hq_u32): Likewise.
28059 (vsha256h2q_u32): Likewise.
28060 (vsha256su0q_u32): Likewise.
28061 (vsha256su1q_u32): Likewise.
28062 (vmull_p64): Likewise.
28063 (vmull_high_p64): Likewise.
28065 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28067 * final.c (final_scan_insn): Don't check HAVE_peephole with the
28069 * output.h: Likewise.
28070 * genconfig.c (main): Alwways define HAVE_peephole.
28071 * genpeep.c: Don't emit checks of HAVE_peephole.
28073 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28075 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
28076 check HAVE_conditional_move with the preprocessor.
28078 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28080 * genconfig.c (main): Always define HAVE_conditional_move.
28081 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
28082 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
28085 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28087 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
28088 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
28089 and FRAME_POINTER_REGNUM with the preprocessor.
28091 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28093 * defaults.h: Add default for STACK_PUSH_CODE.
28094 * expr.c: Don't redefine STACK_PUSH_CODE.
28095 * recog.c: Likewise.
28097 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28099 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
28100 sched-deps.c: Use if instead of preprocessor checks with
28101 STACK_GROWS_DOWNWARD.
28103 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28105 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
28107 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
28108 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
28109 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
28110 * doc/tm.texi: Regenerate.
28112 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
28115 * config/i386/constraints.md (Bg): New constraint for GOT memory
28117 * config/i386/i386.md (*call_got_x32): New pattern.
28118 (*call_value_got_x32): Likewise.
28119 * config/i386/predicates.md (GOT_memory_operand): New predicate.
28121 2015-05-21 Jakub Jelinek <jakub@redhat.com>
28123 PR tree-optimization/66233
28124 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
28127 2015-05-21 Jeff Law <law@redhat.com>
28129 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
28130 than MULT for shadd sequences.
28132 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
28134 * alias.c (alias_stats): New static var.
28135 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
28136 (dump_alias_stats_in_alias_c): New function.
28137 * alias.h (dump_alias_stats_in_alias_c): Declare.
28138 * tree-ssa-alias.c (dump_alias_stats): Call it.
28140 2015-05-08 Michael Matz <matz@suse.de>
28142 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
28144 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
28145 (STMT_VINFO_STRIDED_P): ... this.
28146 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
28147 (vect_verify_datarefs_alignment): Likewise.
28148 (vect_enhance_data_refs_alignment): Likewise.
28149 (vect_analyze_data_ref_access): Likewise.
28150 (vect_analyze_data_refs): Accept strided stores.
28151 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
28152 (vect_model_load_cost): Adjust for macro rename.
28153 (vectorizable_mask_load_store): Likewise.
28154 (vectorizable_load): Likewise.
28155 (vectorizable_store): Open code strided stores.
28157 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28159 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
28160 Document sqrt_insn.
28162 2015-05-21 Richard Biener <rguenther@suse.de>
28165 * match.pd: Guard pattern optimzing (int)(float)int
28166 conversions to apply only on GIMPLE.
28168 2015-05-21 Jeff Law <law@redhat.com>
28170 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
28171 multiply-accumulate/shift-add insn generation.
28173 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
28176 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
28177 operands[1] are the same.
28179 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
28181 PR middle-end/66221
28182 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
28183 build_distinct_type_copy to copy bounds.
28185 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
28187 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
28188 Change to unsigned int.
28190 2015-05-20 Jeff Law <law@redhat.com>
28192 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
28193 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
28194 (pa_shadd_constant_p): Allow constants for shadd insns rather
28195 than valid scaling constants for memory addresses.
28196 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
28197 * config/pa/predicates.md (mem_shadd_operand): New predicate.
28198 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
28199 (shift-add insns using ASHIFT): New patterns.
28201 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
28203 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
28205 (fix_up_fall_thru_edges): Likewise.
28206 (fix_crossing_conditional_branches): Likewise. Promote jump targets
28207 from to rtx_insn to rtx_code_label where feasible.
28208 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
28209 gen_move_insn (returned type changed to rtx_insn).
28210 * builtins.c (expand_errno_check): Fix arguments of
28211 do_compare_rtx_and_jump (now expects rtx_code_label).
28212 (expand_builtin_acc_on_device): Likewise.
28213 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
28214 invert_jump (now exprects rtx_jump_insn).
28215 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
28216 (construct_init_block): Use rtx_code_label.
28217 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
28218 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
28219 calling redirect_jump.
28220 (patch_jump_insn): Likewise.
28221 (redirect_branch_edge): Likewise.
28222 (force_nonfallthru_and_redirect): Likewise.
28223 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
28225 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
28226 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
28227 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
28228 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
28229 to store the value retured by gen_label_rtx.
28230 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
28232 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
28233 (split_branches): Fix calls of redirect_jump.
28234 * dojump.c (jumpifnot): Promote argument type from rtx to
28236 (jumpifnot_1): Likewise.
28237 (jumpif): Likewise.
28238 (jumpif_1): Likewise.
28239 (do_jump_1): Likewise.
28240 (do_jump): Likewise. Use rtx_code_label when feasible.
28241 (do_jump_by_parts_greater_rtx): Likewise.
28242 (do_jump_by_parts_zero_rtx): Likewise.
28243 (do_jump_by_parts_equality_rtx): Likewise.
28244 (do_compare_rtx_and_jump): Likewise.
28245 * dojump.h: Update function prototypes.
28246 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
28248 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
28250 (emit_label_before): Likewise.
28251 (emit_jump_insn_after_noloc): Likewise.
28252 (emit_jump_insn_after_setloc): Likewise.
28253 (emit_jump_insn_after): Likewise
28254 (emit_jump_insn_before_setloc): Likewise.
28255 (emit_jump_insn_before): Likewise.
28256 (emit_label_before): Promote return type to rtx_code_label.
28257 (emit_label): Likewise.
28258 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
28259 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
28261 (emit_stack_restore): Likewise.
28262 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
28263 (do_cmp_and_jump): Likewise.
28264 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
28265 from rtx to rtx_code_label.
28266 (gen_move_insn_uncast): New function.
28267 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
28268 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
28269 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
28270 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
28271 invert_jump_1 and redirect_jump_1.
28272 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
28273 do_compare_rtx_and_jump.
28274 (expand_addsub_overflow): Likewise.
28275 (expand_neg_overflow): Likewise.
28276 (expand_mul_overflow): Likewise.
28277 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
28278 return value of gen_move_insn.
28279 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
28280 * loop-doloop.c (add_test): Use rtx_code_label.
28281 (doloop_modify): Likewise.
28282 (doloop_optimize): Likewise.
28283 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
28284 * lra-constraints.c (emit_spill_move): Remove cast of value returned
28286 (inherit_reload_reg): Add cast when calling dump_insn_slim.
28287 (split_reg): Likewise.
28288 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
28290 * optabs.c (expand_binop_directly): Remove casts of values returned by
28292 (expand_unop_direct): Likewise.
28293 (expand_abs): Likewise.
28294 (maybe_emit_unop_insn): Likewise.
28295 (maybe_gen_insn): Promote return type to rtx_insn.
28296 * optabs.h: Update prototype of maybe_gen_insn.
28297 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
28299 * recog.c (struct peep2_insn_data): Promote type of insn field to
28301 (peep2_reinit_state): Use NULL instead of NULL_RTX.
28302 (peep2_attempt): Remove casts of insn in peep2_insn_data.
28303 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
28304 * recog.h (struct insn_gen_fn): Promote return types of function
28305 pointers and operator ().from rtx to rtx_insn.
28306 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
28307 (fill_eager_delay_slots): Likewise.
28308 (relax_delay_slots): Likewise.
28309 (make_return_insns): Likewise.
28310 (dbr_schedule): Likewise.
28311 (optimize_skips): Likewise.
28312 (reorg_redirect_jump): Likewise.
28313 (fill_slots_from_thread): Likewise.
28314 * reorg.h: Update prototypes.
28315 * resource.c (find_dead_or_set_registers): Use dyn_cast to
28316 rtx_jump_insn instead of check. Use it's jump_target method.
28317 * rtl.h (rtx_jump_insn::jump_label): Define new method.
28318 (rtx_jump_insn::jump_target): Define new method.
28319 (rtx_jump_insn::set_jump_target): Define new method.
28320 * rtlanal.c (tablejump_p): Promote type of one local variable.
28321 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
28322 (sched_analyze_insn): Likewise.
28323 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
28324 (print_insn): Likewise.
28325 * stmt.c (label_rtx): Promote return type to rtx_insn.
28326 (force_label_rtx): Likewise.
28327 (jump_target_rtx): Define new function.
28328 (expand_label): Use it, get rid of one cast.
28329 (expand_naked_return): Promote rtx to rtx_code_label.
28330 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
28331 (expand_case): Use rtx_code_label instread of rtx where feasible.
28332 (expand_sjlj_dispatch_table): Likewise.
28333 (emit_case_nodes): Likewise.
28334 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
28335 * store-motion.c (insert_store): Make use of new return type of
28336 gen_move_insn and remove a cast.
28337 (replace_store_insn): Likewise.
28339 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
28341 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
28342 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
28344 2015-05-20 Jeff Law <law@redhat.com>
28346 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
28347 dispose of the jump thread path when the jump threading
28348 opportunity is cancelled.
28350 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
28352 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
28353 when printing the caret character.
28355 2015-05-20 Marek Polacek <polacek@redhat.com>
28357 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
28359 2015-05-20 Marek Polacek <polacek@redhat.com>
28361 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
28362 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
28363 * gimple-fold.c (canonicalize_bool): Likewise.
28364 (same_bool_result_p): Likewise.
28365 * tree-if-conv.c (parse_predicate): Likewise.
28367 2015-05-20 Marek Polacek <polacek@redhat.com>
28369 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
28370 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
28372 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28374 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
28375 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
28378 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
28380 * config/mips/mips.h (micromips_globals): Declare.
28382 2015-05-20 David Malcolm <dmalcolm@redhat.com>
28384 * timevar.def (TV_INITIALIZE_RTL): New.
28385 * toplev.c (initialize_rtl): Use an auto_timevar to account this
28386 function's time to TV_INITIALIZE_RTL.
28388 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
28390 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
28391 gimple_build_nop calls.
28392 (chkp_find_bounds_for_elem): Likewise.
28393 (chkp_get_zero_bounds): Likewise.
28394 (chkp_get_none_bounds): Likewise.
28395 (chkp_get_bounds_by_definition): Likewise.
28396 (chkp_generate_extern_var_bounds): Likewise.
28397 (chkp_get_bounds_for_decl_addr): Likewise.
28398 (chkp_get_bounds_for_string_cst): Likewise.
28400 2015-05-20 Bin Cheng <bin.cheng@arm.com>
28402 PR tree-optimization/65447
28403 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
28404 (dump_use, dump_uses): Support to dump sub use.
28405 (record_use): New parameters to support sub use. Remove call to
28407 (record_sub_use, record_group_use): New functions.
28408 (compute_max_addr_offset, split_all_small_groups): New functions.
28409 (group_address_uses, rewrite_use_address): New functions.
28410 (strip_offset): New declaration.
28411 (find_interesting_uses_address): Call record_group_use.
28412 (add_candidate): New assertion.
28413 (infinite_cost_p): Move definition forward.
28414 (add_costs): Check INFTY cost and return immediately.
28415 (get_computation_cost_at): Clear setup cost and dependent bitmap
28417 (determine_use_iv_cost_address): Compute cost for sub uses.
28418 (rewrite_use_address_1): Rename from old rewrite_use_address.
28419 (free_loop_data): Free sub uses.
28420 (tree_ssa_iv_optimize_loop): Call group_address_uses.
28422 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28423 Jim Wilson <jim.wilson@linaro.org>
28425 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
28426 new fields loadv and storev.
28427 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
28428 Initialize loadv and storev.
28429 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
28430 (cortexa53_extra_costs): Likewise.
28431 (cortexa57_extra_costs): Likewise.
28432 (xgene1_extra_costs): Likewise.
28433 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
28436 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28438 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
28440 (cortexa8_extra_costs): Likewise.
28441 (cortexa5_extra_costs): Likewise.
28442 (cortexa7_extra_costs): Likewise.
28443 (cortexa12_extra_costs): Likewise.
28444 (cortexa15_extra_costs): Likewise.
28445 (v7m_extra_costs): Likewise.
28447 2015-05-20 Jeff Law <law@redhat.com>
28449 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
28450 instead of open-coded version. Also delete the jump thread created
28451 within this function.
28453 2015-05-20 Alan Modra <amodra@gmail.com>
28455 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
28456 stack adjusting insn. Formatting.
28457 (rs6000_emit_prologue): Track stack adjusting insn, and use of
28458 r12. If possible, emit first -fsplit-stack arg pointer insn
28459 before stack adjust. Don't use r12 to save cr if split-stack.
28461 2015-05-20 Alan Modra <amodra@gmail.com>
28463 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
28465 (rs6000_supports_split_stack): New function.
28466 * config/rs6000/rs6000.c (machine_function): Add
28467 split_stack_arg_pointer.
28468 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
28469 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
28470 rather than virtual_incoming_args_rtx.
28471 (rs6000_va_start): Likewise.
28472 (split_stack_arg_pointer_used_p): New function.
28473 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
28474 (morestack_ref): New var.
28475 (gen_add3_const, rs6000_expand_split_stack_prologue,
28476 rs6000_internal_arg_pointer, rs6000_live_on_entry,
28477 rs6000_split_stack_space_check): New functions.
28478 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
28479 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
28480 (UNSPECV_SPLIT_STACK_RETURN): Define.
28481 (split_stack_prologue, load_split_stack_limit,
28482 load_split_stack_limit_di, load_split_stack_limit_si,
28483 split_stack_return, split_stack_space_check): New expands and insns.
28484 * config/rs6000/rs6000-protos.h
28485 (rs6000_expand_split_stack_prologue): Declare.
28486 (rs6000_split_stack_space_check): Declare.
28488 2015-05-20 Alan Modra <amodra@gmail.com>
28490 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
28491 (direct_return): Test vrsave_size rather than vrsave_mask.
28492 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
28493 (rs6000_emit_epilogue): Likewise.
28495 2015-05-20 Alan Modra <amodra@gmail.com>
28497 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
28498 when not saving registers.
28499 (debug_stack_info): Adjust to omit printing unused offsets,
28501 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
28504 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28507 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
28508 value_type to const char *.
28510 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
28512 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
28513 to build a biarch toolchain again.
28515 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
28517 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
28518 or implicit declarations.
28519 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
28521 (get_odr_type): Check type has linkage before adding bases.
28522 (register_odr_type): Check that type has linkage before adding it.
28523 (type_known_to_have_no_deriavations_p): Rename to ..
28524 (type_known_to_have_no_derivations_p): This one.
28525 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
28526 (type_known_to_have_no_derivations_p): This one.
28527 * ipa-polymorphic-call.c
28528 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
28531 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
28533 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
28534 (layout_type): Use RECORD_OR_UNION_TYPE_P.
28536 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28538 * config/s390/s390.c (s390_vector_bool_type_p): New function.
28539 (s390_invalid_binary_op): New function.
28540 (TARGET_INVALID_BINARY_OP): Define macro.
28542 2015-05-19 David Sherwood <david.sherwood@arm.com>
28544 * loop-invariant.c (create_new_invariant): Don't calculate address cost
28545 if mode is not a scalar integer.
28546 (get_inv_cost): Increase computational cost for unused invariants.
28548 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28550 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
28551 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
28552 * config/s390/s390-builtin-types.def: New file.
28553 * config/s390/s390-builtins.def: New file.
28554 * config/s390/s390-builtins.h: New file.
28555 * config/s390/s390-c.c: New file.
28556 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
28557 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
28558 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
28559 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
28561 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
28563 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
28564 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
28565 variable definitions.
28566 (s390_const_operand_ok): New function.
28567 (s390_expand_builtin): Rewrite.
28568 (s390_init_builtins): New function.
28569 (s390_handle_vectorbool_attribute): New function.
28570 (s390_attribute_table): Add s390_vector_bool attribute.
28571 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
28572 (s390_branch_condition_mask): Generate masks for new modes.
28573 (s390_expand_vec_compare_cc): New function.
28574 (s390_mangle_type): Add mangling for vector bool types.
28575 (enum s390_builtin): Remove.
28576 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
28578 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
28579 s390_cpu_cpp_builtins.
28580 (REGISTER_TARGET_PRAGMAS): New macro.
28581 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
28582 (insn_cmp mode attribute): Add new CC modes.
28583 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
28584 (lcbb): New pattern definition.
28585 * config/s390/s390intrin.h: Include vecintrin.h.
28586 * config/s390/t-s390: New file.
28587 * config/s390/vecintrin.h: New file.
28588 * config/s390/vector.md: Include vx-builtins.md.
28589 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
28592 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28594 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
28596 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
28597 (s390_select_ccmode): Likewise.
28598 (s390_canonicalize_comparison): Swap operands if necessary.
28599 (s390_expand_vec_compare_scalar): Expand DFmode compare using
28600 single element vector instructions.
28601 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
28602 (s390_branch_condition_mask): Generate CC masks for the new modes.
28603 * config/s390/s390.md (v0, vf, vd): New mode attributes.
28604 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
28605 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
28606 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
28607 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
28608 (*extend<DSF:mode><BFP:mode>2): New insn definition.
28609 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
28610 (extend<DSF:mode><BFP:mode>2): Turn into expander.
28611 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
28612 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
28613 (sqrt<mode>2): Add vector instruction.
28615 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28617 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
28619 * config/s390/predicates.md (const0_operand, constm1_operand)
28620 (constable_operand): Accept vector operands.
28621 * config/s390/s390-modes.def: Add supported vector modes.
28622 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
28623 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
28624 (s390_bytemask_vector_p, s390_expand_vec_strlen)
28625 (s390_expand_vec_compare, s390_expand_vcond)
28626 (s390_expand_vec_init): Add prototypes.
28627 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
28628 (s390_vector_mode_supported_p): New function.
28629 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
28630 (s390_contiguous_bitmask_vector_p): New function.
28631 (s390_bytemask_vector_p): New function.
28632 (s390_split_ok_p): Vector regs don't work either.
28633 (regclass_map): Add VEC_REGS.
28634 (s390_legitimate_constant_p): Handle vector constants.
28635 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
28636 (legitimate_reload_vector_constant_p): New function.
28637 (s390_preferred_reload_class): Handle CONST_VECTOR.
28638 (s390_reload_symref_address): Likewise.
28639 (s390_secondary_reload): Vector memory instructions only support
28640 short displacements. Rename reload*_nonoffmem* to reload*_la*.
28641 (s390_emit_ccraw_jump): New function.
28642 (s390_expand_vec_strlen): New function.
28643 (s390_expand_vec_compare): New function.
28644 (s390_expand_vcond): New function.
28645 (s390_expand_vec_init): New function.
28646 (s390_dwarf_frame_reg_mode): New function.
28647 (print_operand): Handle addresses with 'O' and 'R' constraints.
28648 (NR_C_MODES, constant_modes): Add vector modes.
28649 (s390_output_pool_entry): Handle vector constants.
28650 (s390_hard_regno_mode_ok): Handle vector registers.
28651 (s390_class_max_nregs): Likewise.
28652 (s390_cannot_change_mode_class): New function.
28653 (s390_invalid_arg_for_unprototyped_fn): New function.
28654 (s390_function_arg_vector): New function.
28655 (s390_function_arg_float): Remove size variable.
28656 (s390_pass_by_reference): Handle vector arguments.
28657 (s390_function_arg_advance): Likewise.
28658 (s390_function_arg): Likewise.
28659 (s390_return_in_memory): Vector values are returned in a VR if
28661 (s390_function_and_libcall_value): Handle vector arguments.
28662 (s390_gimplify_va_arg): Likewise.
28663 (s390_call_saved_register_used): Consider the arguments named.
28664 (s390_conditional_register_usage): Disable v16-v31 for non-vec
28666 (s390_preferred_simd_mode): New function.
28667 (s390_support_vector_misalignment): New function.
28668 (s390_vector_alignment): New function.
28669 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
28670 (TARGET_VECTOR_MODE_SUPPORTED_P)
28671 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
28672 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
28673 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
28674 (TARGET_VECTOR_ALIGNMENT): Define target macro.
28675 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
28676 (FIRST_PSEUDO_REGISTER): Increase value.
28677 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
28678 (VECTOR_REG_P): Define macros.
28679 (FIXED_REGISTERS, CALL_USED_REGISTERS)
28680 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
28681 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
28682 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
28683 Add vector registers.
28684 (CANNOT_CHANGE_MODE_CLASS): Call C function.
28685 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
28686 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
28688 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
28689 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
28690 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
28691 (VR*_REGNUM): New constants.
28692 (ALL): New mode iterator.
28693 (INTALL): Remove mode iterator.
28695 (movti): Implement TImode moves for VRs.
28696 Disable TImode splitter for VR targets.
28697 Implement splitting TImode GPR<->VR moves.
28698 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
28699 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
28700 reload<mode>_la_in, reload<mode>_la_out.
28701 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
28702 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
28703 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
28704 (mov<mode> SF SD): Prefer lder, lde for loading.
28705 Add lrl and strl instructions.
28706 Add vector instructions.
28707 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
28708 Call s390_expand_vec_strlen on z13.
28709 (*cc_to_int): Change predicate to nonimmediate_operand.
28710 (addti3): Rename to *addti3. New expander.
28711 (subti3): Rename to *subti3. New expander.
28712 * config/s390/vector.md: New file.
28714 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28716 * common/config/s390/s390-common.c (processor_flags_table): Add
28718 * config.gcc: Add z13.
28719 * config/s390/s390-opts.h (enum processor_type): Add
28720 PROCESSOR_2964_Z13.
28721 * config/s390/s390.c (s390_adjust_priority): Check for
28722 PROCESSOR_2964_Z13.
28723 (s390_reorg): Likewise.
28724 (s390_sched_reorder): Likewise.
28725 (s390_sched_variable_issue): Likewise.
28726 (s390_loop_unroll_adjust): Likewise.
28727 (s390_option_override): Likewise. Default to -mvx when available.
28728 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
28729 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
28730 (TARGET_VX_ABI): Define macros.
28732 (TARGET_DEFAULT): Add MASK_OPT_VX.
28733 * config/s390/s390.md ("cpu" attribute): Add z13.
28734 ("cpu_facility" attribute): Add vec.
28735 * config/s390/s390.opt (processor_type): Add z13.
28736 (mvx): New options.
28737 * doc/invoke.texi: Add z13 option for -march.
28739 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28741 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
28742 mode check to make sure that only scalar integer values are
28745 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
28747 * tree.c (verify_type_variant): Fix #undef.
28748 (gimple_canonical_types_compatible_p): Move here from lto.c
28749 (verify_type): Verify TYPE_CANONICAL compatibility.
28750 * tree.h (gimple_canonical_types_compatible_p): Declare.
28752 2015-05-19 Jakub Jelinek <jakub@redhat.com>
28754 PR middle-end/66199
28755 * tree.h (OMP_TEAMS_COMBINED): Define.
28756 * gimplify.c (enum gimplify_omp_var_data): Add
28757 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
28758 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
28759 (omp_notice_variable): Accept both ORT_TEAMS
28760 and ORT_COMBINED_TEAMS. Don't recurse if
28761 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
28762 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
28764 (omp_no_lastprivate): New function.
28765 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
28766 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
28767 notice_outer and set appropriate bits, otherwise make
28768 sure default(none) combined constructs won't complain.
28769 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
28770 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
28771 omp_no_lastprivate either remove the clause or turn it
28772 into OMP_CLAUSE_PRIVATE.
28773 (gimplify_omp_for): Fix up handling of implicit
28774 lastprivate or linear iterators.
28775 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
28776 ORT_COMBINED_TEAMS.
28777 * omp-low.c (lower_omp_for_lastprivate): For combined
28778 for simd use fd.loop.n2 from the for rather than simd.
28780 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28782 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
28783 instead of gen_rtx_raw_REG.
28784 (cris_expand_epilogue): Likewise.
28785 * config/microblaze/microblaze.c (microblaze_classify_address):
28787 * config/sparc/sparc.md: Likewise.
28789 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
28791 * config/alpha/alpha.c (alpha_legitimize_reload_address)
28792 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
28793 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
28794 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
28795 Use CASE_CONST_SCALAR_INT.
28796 (print_operand) <case 'M'>: Use mode_width_operand to check the
28797 value of the constant.
28798 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
28799 * config/alpha/predicates.md (input_operand): Use general_operand
28800 instead of match_code as operand check.
28801 (symbolic_operand): Use match_code with subexpression digits.
28802 * config/alpha/constraints.md (Q): Ditto.
28804 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28806 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
28808 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28810 * config/s390/s390.c (s390_secondary_reload): Fix check for
28811 load/store relative.
28813 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28815 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
28816 alternative_mask to uint64_t.
28818 2015-05-19 Jakub Jelinek <jakub@redhat.com>
28820 PR tree-optimization/66187
28821 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
28822 Pass TYPE_SIGN to tree_int_cst_min_precision. If
28823 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
28825 2015-05-19 David Malcolm <dmalcolm@redhat.com>
28827 * diagnostic.c (diagnostic_report_current_module): Strengthen
28828 local "new_map" from const line_map * to
28829 const line_map_ordinary *.
28830 * genmatch.c (error_cb): Likewise for local "map".
28831 (output_line_directive): Likewise for local "map".
28832 * input.c (expand_location_1): Likewise for local "map".
28833 Pass NULL rather than &map to
28834 linemap_unwind_to_first_non_reserved_loc, since the value is never
28835 read from there, and the value written back not read from here.
28836 (is_location_from_builtin_token): Strengthen local "map" from
28837 const line_map * to const line_map_ordinary *.
28838 (dump_location_info): Strengthen locals "map" from
28839 line_map *, one to const line_map_ordinary *, the other
28840 to const line_map_macro *.
28841 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
28842 const line_map * to const line_map_macro *.
28843 (maybe_unwind_expanded_macro_loc): Add a call to
28844 linemap_check_macro when writing to the "map" field of the
28846 Introduce local const line_map_ordinary * "ord_map", using it in
28847 place of "map" in the part of the function where we know we have
28848 an ordinary map. Strengthen local "m" from const line_map * to
28849 const line_map_ordinary *.
28851 2015-05-19 Nick Clifton <nickc@redhat.com>
28854 * config/msp430/msp430.md (zero_extendhisi2): Add support for
28855 separate source and destination registers.
28857 2015-05-19 Richard Biener <rguenther@suse.de>
28859 PR tree-optimization/66165
28860 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
28861 for no load permutation.
28863 PR tree-optimization/66185
28864 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
28865 when building the SLP node from scalars.
28867 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
28868 Tristan Gingold <gingold@adacore.com>
28870 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
28871 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
28872 (expand_stack_restore): Call record_new_stack_level.
28873 (expand_stack_save): Do not call do_pending_stack_adjust.
28874 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
28875 * calls.c (expand_call): Call record_new_stack_level for alloca.
28876 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
28877 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
28878 (update_sjlj_context): New global function.
28879 * except.h (update_sjlj_context): Declare.
28880 * explow.c (record_new_stack_level): New global function.
28881 (allocate_dynamic_stack_space): Call record_new_stack_level.
28882 * explow.h (record_new_stack_level): Declare.
28883 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
28884 * cfgrtl.c (duplicate_insn_chain): Likewise.
28886 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28888 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
28889 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
28890 STACK_GROWS_DOWNWARD as normal if.
28891 (expand_call): Likewise.
28893 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
28896 * config/sh/sh.md (*round_int_even): New insn_and_split and
28897 accompanying new unnamed split.
28899 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28901 * bitmap.c (bitmap_set_range): Handle count==1 specially.
28902 (bitmap_clear_range): Likewise.
28903 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
28904 bitmap_set_range unconditionally.
28905 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28906 * df-scan.c (df_mark_reg): Likewise.
28907 * haifa-sched.c (setup_ref_regs): Likewise.
28908 * sched-rgn.c (update_live_1): Likewise.
28910 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28912 * regs.h (END_HARD_REGNO): Delete.
28913 (END_REGNO): Move to...
28915 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
28916 * caller-save.c (mark_set_regs): Likewise.
28917 * combine.c (move_deaths, distribute_notes): Likewise.
28918 * cse.c (invalidate, invalidate_for_call): Likewise.
28919 * df-scan.c (df_ref_record): Likewise.
28920 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
28921 (record_last_reg_set_info): Likewise.
28922 * reg-stack.c (convert_regs_exit): Likewise.
28923 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
28924 * resource.c (update_live_status): Likewise.
28925 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
28927 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28929 * rtl.h (reg_info): Add an nregs field.
28930 (REG_NREGS): Use it.
28931 (SET_REGNO_RAW): Delete.
28932 (set_regno_raw): New function.
28933 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
28934 (END_REGNO): Redefine in terms of REG_NREGS.
28935 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
28937 * emit-rtl.c (set_mode_and_regno): Likewise.
28938 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
28939 instead of SET_REGNO_RAW.
28941 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28943 * rtl.h (PUT_MODE_RAW): New macro.
28944 (PUT_REG_NOTE_KIND): Use it.
28945 (set_mode_and_regno): Declare.
28946 (gen_raw_REG): Change regno to "unsigned int".
28947 (gen_rtx_REG): Change "unsigned" to "unsigned int".
28948 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
28949 use set_mode_and_regno to change the mode of registers.
28950 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
28951 * emit-rtl.c (set_mode_and_regno): New function.
28952 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
28953 * caller-save.c (reg_save_code): Use set_mode_and_regno.
28954 * expr.c (init_expr_target): Likewise.
28955 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28956 * postreload.c (reload_cse_simplify_operands): Likewise.
28958 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28960 * caller-save.c (init_caller_save): Use word_mode and
28961 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
28962 * expr.c (init_expr_target): Likewise.
28963 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28964 * postreload.c (reload_cse_regs_1): Likewise.
28966 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28968 * rtl.def (REG): Change format to "r".
28969 * rtl.h (rtunion): Remove rt_reg.
28970 (reg_info): New structure.
28971 (rtx_def): Add reg field to main union.
28972 (X0REGATTR): Delete.
28973 (REG_CHECK): New macro.
28974 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
28975 * rtl.c (rtx_format): Document "r".
28976 (rtx_code_size): Handle REG specially.
28977 * gengenrtl.c (special_format): Return true for formats
28979 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
28980 Deal with REG_ATTRS after the field loop.
28981 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
28982 * expmed.c (init_expmed): Call gen_raw_REG instead of
28984 * expr.c (init_expr_target): Likewise.
28985 * regcprop.c (maybe_mode_change): Likewise.
28986 * varasm.c (make_decl_rtl): Likewise.
28987 * final.c (leaf_renumber_regs_insn): Return early after
28989 * genemit.c (gen_exp): Handle 'r' fields.
28990 * genpeep.c (match_rtx): Likewise.
28991 * gensupport.c (subst_pattern_match): Likewise.
28992 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
28993 (alter_constraints, subst_dup): Likewise.
28994 * read-rtl.c (read_rtx_code): Likewise.
28995 * print-rtl.c (print_rtx): Likewise.
28996 * genrecog.c (find_operand, find_matching_operand): Likewise.
28997 (validate_pattern, match_pattern_2): Likewise.
28998 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
28999 (rtx_test::regno_field): New function.
29000 (operator ==, safe_to_hoist_p, transition_parameter_type)
29001 (parameter_type_string, print_parameter_value)
29002 (print_nonbool_test, print_test): Handle new enum values.
29003 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
29004 * lra-constraints.c (operands_match_p): Likewise.
29006 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29008 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
29009 Change type of new_regno to unsigned int.
29010 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
29011 new_regno to unsigned int.
29012 (df_ref_change_reg_with_loc): Remove old_regno parameter.
29013 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
29014 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
29015 (SET_REGNO_RAW): Add space after ",".
29017 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29019 * rtl.h (REG_NREGS): New macro
29020 * alias.c (record_set): Use it.
29021 * cfgcleanup.c (mark_effect): Likewise.
29022 * combine.c (likely_spilled_retval_1): Likewise.
29023 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
29024 (move_deaths, distribute_notes): Likewise.
29025 * cselib.c (cselib_record_set): Likewise.
29026 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29027 * df-scan.c (df_mark_reg): Likewise.
29028 * dse.c (look_for_hardregs): Likewise.
29029 * dwarf2out.c (reg_loc_descriptor): Likewise.
29030 (multiple_reg_loc_descriptor): Likewise.
29031 * expr.c (write_complex_part, read_complex_part): Likewise.
29032 (emit_move_complex): Likewise.
29033 * haifa-sched.c (setup_ref_regs): Likewise.
29034 * ira-lives.c (mark_hard_reg_live): Likewise.
29035 * lra.c (lra_set_insn_recog_data): Likewise.
29036 * mode-switching.c (create_pre_exit): Likewise.
29037 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
29038 (reload_combine_recognize_pattern): Likewise.
29039 (reload_combine_note_use, move2add_record_mode): Likewise.
29040 (reload_cse_move2add): Likewise.
29041 * reg-stack.c (subst_stack_regs_pat): Likewise.
29042 * regcprop.c (kill_value, copy_value): Likewise.
29043 (copyprop_hardreg_forward_1): Likewise.
29044 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
29045 (build_def_use): Likewise.
29046 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
29047 (deps_analyze_insn): Likewise.
29048 * sched-rgn.c (check_live_1, update_live_1): Likewise.
29049 * sel-sched.c (count_occurrences_equiv): Likewise.
29050 * valtrack.c (dead_debug_insert_temp): Likewise.
29052 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29054 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
29055 * dse.c (note_add_store): Likewise.
29056 * ira-lives.c (mark_hard_reg_dead): Likewise.
29057 * loop-invariant.c (mark_reg_store): Likewise.
29058 (mark_reg_death): Likewise.
29059 * postreload.c (reload_combine): Likewise.
29060 (reload_combine_note_store): Likewise.
29061 (reload_combine_note_use): Likewise.
29062 * recog.c (peep2_reg_dead_p): Likewise.
29064 2015-05-19 Alan Modra <amodra@gmail.com>
29066 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
29067 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
29068 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
29070 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
29071 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
29072 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
29073 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
29075 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
29077 * config/mips/mips.md (JOIN_MODE): New mode iterator.
29078 (join2_load_Store<JOIN_MODE:mode>): New pattern.
29079 (join2_loadhi): Likewise.
29080 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
29081 load-load and store-stores.
29082 * config/mips/mips.opt (mload-store-pairs): New option.
29083 (TARGET_LOAD_STORE_PAIRS): New macro.
29084 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
29085 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
29086 * config/mips/mips.c (mips_load_store_bonding_p): New function.
29088 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
29090 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
29092 * dojump.c (do_compare_rtx_and_jump): Likewise.
29093 * expmed.c (emit_store_flag_1): Likewise.
29094 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
29095 * final.c (sprint_ul): Use std::reverse for reversing a string.
29096 * fold-const.c (extract_muldiv_1): Use std::swap.
29097 * genmodes.c (emit_mode_int_n): Likewise.
29098 * ifcvt.c (dead_or_predicable): Likewise.
29099 * ira-build.c (ira_merge_live_ranges): Likewise.
29100 (swap_allocno_copy_ends_if_necessary): Likewise.
29101 * ira.c (ira_setup_alts): Likewise.
29102 * loop-iv.c (iv_analyze_expr): Likewise.
29103 (implies_p): Likewise.
29104 (canon_condition): Likewise.
29105 * lra-constraints.c (swap_operands): Likewise.
29106 * lra-lives.c (lra_merge_live_ranges): Likewise.
29107 * omega.c (swap): Remove.
29109 (omega_unprotect_1): Use std::swap.
29110 (omega_solve_geq): Likewise.
29111 * optabs.c (expand_binop_directly): Likewise.
29112 (expand_binop): Likewise.
29113 (emit_conditional_move): Likewise.
29114 (emit_conditional_add): Likewise.
29115 * postreload.c (reload_cse_simplify_operands): Likewise.
29116 * reg-stack.c (emit_swap_insn): Likewise.
29117 (swap_to_top): Likewise.
29118 (compare_for_stack_reg): Likewise.
29119 (subst_asm_stack_regs): Likewise.
29120 * reload.c (find_reloads): Likewise.
29121 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
29122 * sel-sched.c (invoke_reorder_hooks): Likewise.
29123 (create_block_for_bookkeeping): Likewise.
29124 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
29125 (lambda_matrix_right_hermite): Use std::swap.
29126 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
29127 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
29128 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
29129 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
29130 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
29131 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
29132 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
29133 * tree-vrp.c (compare_ranges): Likewise.
29134 * var-tracking.c (add_with_sets): Likewise.
29135 (vt_find_locations): Likewise.
29137 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
29139 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
29141 (FBSD_ENDFILE_SPEC): Likewise.
29142 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
29143 config/freebsd-spec.h.
29144 (ENDFILE_SPEC): Likewise.
29146 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
29147 Richard Henderson <rth@redhat.com>
29150 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
29151 Check for a memory location that is not a reference (using an AND)
29152 to an unaligned location here.
29153 * config/alpha/predicates.md (normal_memory_operand): Remove.
29155 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
29157 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
29158 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
29160 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
29162 * config/mips/mips.c (micromips_globals): New variable.
29163 (mips_set_compression_mode): Save and reinitialize target-dependent
29164 state for microMIPS.
29166 2015-05-18 Martin Liska <mliska@suse.cz>
29168 * dbgcnt.def: Add new counter.
29169 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
29171 2015-05-18 Martin Liska <mliska@suse.cz>
29173 * dbgcnt.def: Sort counters.
29174 * opts.c (common_handle_option): Do not compile if
29175 -fdbg-cnt-list is enabled.
29177 2015-05-18 Tom de Vries <tom@codesourcery.com>
29179 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
29180 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
29181 address operator to va_list operand.
29182 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
29184 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
29186 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
29187 * config/s390/s390.c (s390_gimplify_va_arg): Same.
29188 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
29190 2015-05-18 Tom de Vries <tom@codesourcery.com>
29192 * tree-ssa-tail-merge.c: Fix whitespace.
29194 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
29196 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
29197 cortex-a17, and cortex-a17.cortex-a7.
29199 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
29202 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
29204 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
29207 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
29208 QImode inner modes for TARGET_AVX512BW. Force mask operand
29209 to a register for AVX512F modes.
29211 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29213 * toplev.c (emit_debug_global_declarations): Do not output debug info
29214 when doing slim LTO objects.
29216 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29218 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
29219 odr_types_equivalent_p): Declare.
29220 (odr_type_p): Use gcc_checking_assert.
29221 (type_in_anonymous_namespace_p) Declare.
29222 (type_with_linkage_p): Declare.
29223 * common.opt (Wlto-type-mismatch): New warning.
29224 * ipa-devirt.c (compound_type_base): New function.
29225 (odr_or_derived_type_p): New function.
29226 (odr_types_equivalent_p): New function.
29227 (add_type_duplicate): Simplify.
29228 (type_with_linkage_p): Add hack to prevent false positives on C types
29229 (type_in_anonymous_namespace_p): Likewise.
29230 * tree.c (need_assembler_name_p): Use type_with_linkage.
29231 * tree.h (type_in_anonymous_namespace_p): Remove.
29232 * doc/invoke.texi (-Wlto-type-mismatch): Document
29234 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29236 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
29237 (verify_type): Verify STRING_FLAG.
29239 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
29242 * tree-pretty-print.c (percent_K_format): Replace locus pointer
29243 with accessor function.
29244 * tree-diagnostic.c (diagnostic_report_current_function): Use
29245 diagnostic_location function.
29246 (maybe_unwind_expanded_macro_loc): Likewise.
29247 (virt_loc_aware_diagnostic_finalizer): Likewise.
29248 (default_tree_printer): Replace locus pointer with accessor function.
29249 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
29250 (diagnostic_set_info_translated): Initialize second location.
29251 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
29252 (diagnostic_show_locus): Handle two locations. Call
29253 diagnostic_print_caret_line.
29254 (diagnostic_print_caret_line): New.
29255 (default_diagnostic_starter): Use diagnostic_location function.
29256 (diagnostic_report_diagnostic): Use diagnostic_location function.
29257 (verbatim): Do not set text.locus.
29258 * diagnostic.h (struct diagnostic_info): Remove location field.
29259 (struct diagnostic_context): Make caret_chars an array of two.
29260 (diagnostic_location): New inline.
29261 (diagnostic_expand_location): Handle two locations.
29262 (diagnostic_same_line): New inline.
29263 (diagnostic_print_caret_line): Declare.
29264 (CARET_LINE_MARGIN): New constant.
29265 * pretty-print.c (pp_printf): Do not set text.locus.
29266 (pp_verbatim): Do not set text.locus.
29267 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
29268 (struct text_info): Replace locus pointer with locations
29269 array. Add accessor functions.
29271 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
29272 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29275 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
29276 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
29277 large constants in register instead of splitting them.
29279 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
29282 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
29283 replacements in memory addresses.
29284 (get_unaligned_address): Ditto.
29286 2015-05-16 James Bowman <james.bowman@ftdichip.com>
29288 * config/ft32/*: New files for FT32 port.
29289 * doc/install.texi: Add FT32 information.
29290 * doc/invoke.texi: Add FT32 information.
29291 * doc/md.texi: Add FT32 information.
29292 * doc/contrib.texi: Self added.
29294 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
29296 PR tree-optimization/64454
29297 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
29298 (-1 - A -> ~A): Remove unnecessary condition.
29300 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
29302 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
29303 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
29304 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
29306 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
29308 * ipa-chkp.h (chkp_wrap_function): New.
29309 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
29310 (chkp_wrap_function_name): New.
29311 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
29312 to get wrapper name.
29313 * lto-cgraph.c: Include ipa-chkp.h.
29314 (input_cgraph_1): Avoid alias chain for wrappers.
29316 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
29318 PR middle-end/66134
29319 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
29320 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
29322 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29324 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
29325 (AARCH64_FL_SLOWMUL): Delete.
29326 (AARCH64_FL_CRC): Redefine to 1<<3.
29327 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
29329 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29331 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
29334 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
29336 * config/alpha/alpha.md (extendqidi2): Use general_operand
29337 instead of some_operand for operand[1] predicate.
29338 (extendhidi2): Ditto.
29339 (cbranchdi4): Use general_operand instead of some_operand
29340 for operand[1] and operands[2] predicates.
29341 (cstoredi4): Ditto.
29342 * config/alpha/predicates.md (some_operand): Remove unused predicate.
29343 (some_ni_operand): Ditto.
29345 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
29347 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
29348 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
29349 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
29350 low part of the constant using alpha_emit_set_const_1.
29351 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
29353 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
29355 * varasm.c (output_constant_pool_1): Pass down alignment from
29356 constant pool entry's descriptor to output_constant_pool_2.
29357 (output_object_block): Add comment prior to call to
29358 output_constant_pool_1.
29360 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
29362 PR rtl-optimization/65862
29363 * target.def (ira_change_pseudo_allocno_class): New hook.
29364 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
29366 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
29367 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
29369 * ira-costs.c (find_costs_and_classes): Call the hook and change
29370 classes when it is necessary.
29371 * doc/tm.texi: Update.
29373 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
29375 * config/i386/i386.md (sibcall_memory): Check that register with
29376 callee address is not also used as one of the arguments, instead
29377 of checking that it is not live after the sibcall.
29378 (sibcall_pop_memory): Ditto.
29379 (sibcall_value_memory): Ditto.
29380 (sibcall_value_pop_memory): Ditto.
29382 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
29384 * generic-match-head.c (types_match): Handle non-types.
29385 * gimple-match-head.c (types_match): Likewise.
29386 * match.pd: Remove unnecessary TREE_TYPE for types_match.
29388 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
29390 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
29391 (csneg3<mode>_insn): Enable expansion of pattern.
29393 2015-05-14 Nick Clifton <nickc@redhat.com>
29395 * config/rl78/rl78.c (rl78_select_section): Select the correct
29396 default section based upon the category of the decl.
29398 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
29400 PR rtl-optimization/30967
29401 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
29402 destination mode for the cost of scc patterns.
29404 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
29406 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
29407 using SWIM248 mode iterator.
29408 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
29409 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
29410 for operand[2] constraint.
29411 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
29413 2015-05-13 Jakub Jelinek <jakub@redhat.com>
29415 PR middle-end/66133
29416 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
29417 make sure it is never noreturn, even when the task body does not
29419 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
29420 right before GIMPLE_OMP_RETURN.
29421 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
29422 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
29423 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
29425 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29427 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
29428 * tree-ssa-math-opts.c: Include params.h
29429 (pow_synth_sqrt_info): New struct.
29430 (representable_as_half_series_p): New function.
29431 (get_fn_chain): Likewise.
29432 (print_nested_fn): Likewise.
29433 (dump_fractional_sqrt_sequence): Likewise.
29434 (dump_integer_part): Likewise.
29435 (expand_pow_as_sqrts): Likewise.
29436 (gimple_expand_builtin_pow): Use above to attempt to expand
29437 pow as series of square roots. Removed now unused variables.
29439 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
29441 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
29442 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
29443 Remove *p0 and *p1 arguments. Rewrite function.
29444 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
29445 (alpha_split_const_mov): Update calls to alpha_extract_integer and
29446 alpha_emit_set_long_const.
29447 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
29448 (alpha_output_mi_thunk_osf): Ditto.
29449 * config/alpha/alpha.md (movti): Do not check operands[1]
29452 2015-05-13 Richard Biener <rguenther@suse.de>
29454 PR tree-optimization/66129
29455 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
29457 (vect_schedule_slp_instance): Fix typo.
29459 2015-05-13 David Malcolm <dmalcolm@redhat.com>
29461 * common.opt (fdump-internal-locations): New option.
29462 * input.c: Include diagnostic-core.h.
29463 (get_end_location): New function.
29464 (write_digit): New function.
29465 (write_digit_row): New function.
29466 (dump_location_range): New function.
29467 (dump_labelled_location_range): New function.
29468 (dump_location_info): New function.
29469 * input.h (dump_location_info): New prototype.
29470 * toplev.c (compile_file): Handle flag_dump_locations.
29472 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
29474 * gimple-expr.h (is_gimple_constant): Reorder.
29475 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
29477 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
29479 * combine.c (simplify_set): When generating a CC set, if the
29480 source already is in the correct mode, do not wrap it in a
29481 compare. Simplify the rest of that code.
29483 2015-05-13 Richard Biener <rguenther@suse.de>
29485 PR tree-optimization/66123
29486 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
29489 2015-05-13 Richard Biener <rguenther@suse.de>
29491 PR middle-end/66110
29492 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
29494 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
29496 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29498 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
29499 * aclocal.m4: Regenerated with automake-1.11.6.
29501 2015-05-13 Tom de Vries <tom@codesourcery.com>
29503 PR tree-optimization/66010
29504 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
29505 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
29506 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
29507 and rval based on do_deref.
29509 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
29512 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
29513 link time constants into adress expressions and therefore set
29516 2015-05-13 Jakub Jelinek <jakub@redhat.com>
29519 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
29520 Use SWI248 iterator instead of SWI.
29521 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
29522 Use eq_attr "alternative" "0" instead of match_test in
29523 length_immediate attribute computation.
29524 (*mulvhi4, *mulvhi4_1): New define_insns.
29527 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
29528 SIGNED to get precision of non-negative value.
29530 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
29533 * function.c (diddle_return_value_1): Process bounds first.
29534 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
29537 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29539 PR rtl-optimization/64616
29540 * loop-invariant.c (can_move_invariant_reg): New.
29541 (move_invariant_reg): Call above new function to decide whether
29542 instruction can just be moved, skipping creation of temporary
29545 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29547 PR target/pr66047.c
29548 * i386.c (ix86_function_sseregparm): Only return -1 if local function
29549 with implied regparm is called from -mno-sse function.
29550 (init_cumulative_args): Output error if ix86_function_sseregparm
29551 return -1 and SSE register would be needed.
29552 (function_arg_advance_32): Likewise.
29553 (function_arg_32): Likewise.
29554 * i386.h (ix86_args): Add decl field.
29556 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29559 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
29560 inlines across optimization boundary.
29562 2015-05-12 Jason Merrill <jason@redhat.com>
29564 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
29565 string literal and macro name.
29567 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
29569 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
29570 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
29571 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
29573 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29575 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
29576 (-Wmisleading-indentation): New option.
29577 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
29579 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
29581 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
29582 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
29583 (alpha_extract_integer): Ditto.
29584 (alpha_legitimate_constant_p): Ditto.
29585 (alpha_split_tmode_pair): Ditto.
29586 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
29587 (alpha_expand_mov): Ditto.
29588 (print_operand): Remove handling of 'H' modifier.
29589 <case 'm'>: Remove CONST_DOUBLE handling.
29590 (summarize_insn): Handle CONST_WIDE_INT.
29591 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
29593 (movti): Handle CONST_WIDE_INT.
29594 * config/alpha/constraints.md ('H'): Remove constraint definition.
29595 ('G'): Do not match MODE_FLOAT class.
29596 * config/alpha/predicates.md (const0_operand): Also match
29598 (non_add_const_operand): Ditto.
29599 (non_zero_const_operand): Ditto.
29600 (some_operand): Ditto.
29601 (input_operand): Ditto. Handle CONST_WIDE_INT.
29602 (and_operand): Do not match const_double.
29603 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
29605 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
29608 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
29609 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
29610 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
29611 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
29612 is_mm_seq_cst, is_mm_sync): New accessor functions.
29613 * builtins.c (expand_builtin_sync_operation,
29614 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
29615 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
29616 (get_memmodel, expand_builtin_atomic_compare_exchange,
29617 expand_builtin_atomic_load, expand_builtin_atomic_store,
29618 expand_builtin_atomic_clear): Use new accessor routines.
29619 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
29620 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
29621 (maybe_emit_sync_lock_test_and_set): Use new accessors and
29622 MEMMODEL_SYNC_ACQUIRE.
29623 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
29624 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
29625 expand_atomic_store): Use new accessors.
29626 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
29627 * tsan.c (instrument_builtin_call): Update check for memory model beyond
29628 final enum to use MEMMODEL_LAST.
29629 * c-family/c-common.c: Use new accessor for memmodel_base.
29630 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
29632 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
29633 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
29634 mem_thread_fence, *dmb): Likewise.
29635 * config/alpha/alpha.c (alpha_split_compare_and_swap,
29636 alpha_split_compare_and_swap_12): Likewise.
29637 * config/arm/arm.c (arm_expand_compare_and_swap,
29638 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
29639 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
29640 atomic_loaddi): Likewise.
29641 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
29643 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
29644 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
29646 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
29647 atomic_store<mode>, atomic_compare_and_swap<mode>,
29648 atomic_exchange<mode>): Use new accessors.
29649 * config/mips/mips.c (mips_process_sync_loop): Likewise.
29650 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
29651 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
29652 rs6000_post_atomic_barrier): Add new cases.
29653 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
29654 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
29655 (atomic_load<mode>): Add new cases and use new accessors.
29656 (store_quadpti): Add new cases.
29657 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
29659 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
29660 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
29663 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29665 * ipa-devirt.c (type_with_linkage_p): New function.
29666 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
29668 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
29669 (can_be_name_hashed_p): Simplify.
29670 (hash_odr_name): Check that type has linkage before checking if it is
29672 (types_same_for_odr): Likewise.
29673 (odr_name_hasher::equal): Likewise.
29674 (odr_subtypes_equivalent_p): Likewise.
29675 (warn_types_mismatch): Likewise.
29676 (get_odr_type): Likewise.
29677 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
29678 * ipa-utils.h (odr_type_p): Move offline.
29679 * tree.c (need_assembler_name_p): Fix handling of types
29681 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
29683 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29685 * timevar.c (timevar_enable): Delete in favor of...
29686 (g_timer): New global.
29687 (struct timevar_def): Move to timevar.h inside class timer.
29688 (struct timevar_stack_def): Likewise.
29689 (timevars): Delete global in favor of field "m_timevars" within
29690 class timer in timevar.h
29691 (stack): Likewise, in favor of field "m_stack".
29692 (unused_stack_instances): Likewise, in favor of field
29693 "m_unused_stack_instances".
29694 (start_time): Likewise, in favor of field "m_start_time".
29695 (get_time): Eliminate check for timevar_enable.
29696 (timer::timer): New function, built from part of timevar_init.
29697 (timevar_init): Rewrite idempotency test from using
29698 "timevar_enable" bool to using dynamic allocation of "g_timer".
29699 Move rest of implementation into timer's constructor.
29700 (timevar_push_1): Rename to...
29701 (timer::push): ...this, adding "m_" prefixes to variables that
29702 are now fields of timer.
29703 (timevar_pop_1): Likewise, rename to...
29704 (timer::pop): ...this, and add "m_" prefixes.
29705 (timevar_start): Replace test for "timevar_enable" with one for
29706 "g_timer", and move bulk of implementation to...
29707 (timer::start): ...here, adding "m_" prefixes.
29708 (timevar_stop): Likewise, from here...
29709 (timer::stop): ...to here.
29710 (timevar_cond_start): Likewise, from here...
29711 (timer::cond_start): ...to here.
29712 (timevar_cond_stop): Likewise, from here...
29713 (timer::cond_stop): ...to here.
29714 (validate_phases): Rename to...
29715 (timer::validate_phases): ...this, and add "m_" prefixes. Make
29716 locals "total" and "tv" const.
29717 (timevar_print): Rename to...
29718 (timer::print): ...this, and add "m_" prefixes. Make locals
29719 "total" and "tv" const. Eliminate test for timevar_enable.
29720 * timevar.h (timevar_enable): Eliminate.
29721 (g_timer): New declaration.
29722 (timevar_push_1): Eliminate.
29723 (timevar_pop_1): Eliminate.
29724 (timevar_print): Eliminate.
29725 (class timer): New class.
29726 (timevar_push): Rewrite to use g_timer.
29727 (timevar_pop): Likewise.
29728 * toplev.c (toplev::~toplev): Likewise.
29730 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
29732 * arm-protos.h (arm_sched_autopref): Delete.
29733 (tune_params): Re-organize, use enums for flag values.
29734 (FUSE_OPS): New macro.
29735 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
29736 (ARM_PREFETCH_BENEFICIAL): Likewise.
29737 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
29738 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
29739 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
29740 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
29741 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
29742 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
29743 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
29744 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
29746 (arm_option_override, thumb2_reorg, arm_print_tune_info)
29747 (aarch_macro_fusion_pair_p): Update uses of current_tune.
29748 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
29750 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
29752 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
29755 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
29756 Sandra Loosemore <sandra@codesourcery.com>
29758 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
29760 (REG_CLASS_NAMES): Add "IJMP_REGS".
29761 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
29762 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
29763 use new "c" register constraint.
29764 * config/nios2/constraint.md (c): New register constraint
29765 corresponding to IJMP_REGS.
29767 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29769 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
29770 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
29771 define_splits): Delete, revamp, transmogrify into ...
29772 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
29773 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
29774 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
29777 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29779 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
29780 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
29782 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29784 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
29785 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
29786 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
29787 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
29788 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
29789 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
29790 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
29791 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
29792 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
29793 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
29794 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
29795 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
29796 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
29797 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
29798 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
29799 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
29800 and 30 corresponding splitters): Delete.
29802 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29804 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
29807 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29809 * combine.c (recog_for_combine_1): New function, factored out
29810 from recog_for_combine.
29811 (change_zero_ext): New function.
29812 (recog_for_combine): If recog fails, try again with the pattern
29813 modified by change_zero_ext; if that still fails, restore the
29816 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29818 * combine.c (get_undo_marker): New function.
29819 (undo_to_marker): New function, largely factored out from ...
29820 (undo_all): ... this. Adjust.
29822 2015-05-12 Richard Biener <rguenther@suse.de>
29824 PR tree-optimization/66101
29825 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
29826 fixup if we turn a loop exit edge to a fallthru edge.
29828 2015-05-12 Richard Biener <rguenther@suse.de>
29830 PR tree-optimization/37021
29831 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
29832 (SLP_TREE_TWO_OPERATORS): New define.
29833 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
29834 SLP_TREE_TWO_OPERATORS.
29835 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
29837 (vect_build_slp_tree): Adjust.
29838 (vect_analyze_slp_cost_1): Likewise.
29839 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
29840 emitting two vector stmts and mixing the results.
29842 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
29844 * call.c (print_z_candidates): Remove dead code.
29846 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29848 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
29849 and zEC12_simple_fp.
29850 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
29853 2015-05-12 Tom de Vries <tom@codesourcery.com>
29855 PR tree-optimization/66010
29856 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
29858 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
29859 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
29860 va_lists are passed, and remove corresponding handling.
29861 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
29862 do_deref argument to ifn_va_arg.
29863 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
29866 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29869 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
29870 REG before taking its REGNO.
29872 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
29874 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
29875 rsp->sign_bit_copies and rsp->nonzero_bits into ...
29876 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
29877 present to get more accurate information about the number of sign bit
29878 copies and non zero bits.
29880 2015-05-12 Richard Biener <rguenther@suse.de>
29882 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
29883 do not allow unrolling.
29885 2015-05-11 Richard Henderson <rth@redhat.com>
29887 * config/i386/i386-modes.def (CCP): New.
29888 * config/i386/i386.c (put_condition_code): Handle it.
29889 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
29891 2015-05-11 Richard Henderson <rth@redhat.com>
29893 * target.def (md_asm_clobbers): Replace with...
29894 (md_asm_adjust): this.
29895 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
29896 (TARGET_MD_ASM_ADJUST): New.
29897 * tm.texi: Rebuild.
29898 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
29899 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
29900 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
29902 * cfgexpand.c (check_operand_nalternatives): Accept vector of
29903 constraints instead of lists of outputs and inputs.
29904 (expand_asm_stmt): Save and restore input_location around the
29905 body of the function. Move asm data into vectors instead of
29906 building tree lists. Generate cleanup sequences as needed,
29907 rather than waiting til the end. Use new md_asm_adjust hook.
29909 * config/vxworks.c: Include vec.h before target.h.
29910 * gimple.c: Likewise.
29911 * incpath.c: Likewise.
29912 * mode-switching.c: Likewise.
29914 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
29915 (cris_md_asm_adjust): this.
29916 (TARGET_MD_ASM_CLOBBERS): Remove.
29917 (TARGET_MD_ASM_ADJUST): New.
29918 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
29919 (ix86_md_asm_adjust): this.
29920 (TARGET_MD_ASM_CLOBBERS): Remove.
29921 (TARGET_MD_ASM_ADJUST): New.
29922 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
29923 (mn10300_md_asm_adjust): this.
29924 (TARGET_MD_ASM_CLOBBERS): Remove.
29925 (TARGET_MD_ASM_ADJUST): New.
29926 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
29927 (rs6000_md_asm_adjust): this.
29928 (TARGET_MD_ASM_CLOBBERS): Remove.
29929 (TARGET_MD_ASM_ADJUST): New.
29930 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
29931 (visium_md_asm_adjust): this.
29932 (TARGET_MD_ASM_CLOBBERS): Remove.
29933 (TARGET_MD_ASM_ADJUST): New.
29935 2015-05-11 Richard Henderson <rth@redhat.com>
29937 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
29938 if noutputs is zero.
29939 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
29941 * cfgexpand.c (expand_asm_operands): Merge into...
29942 (expand_asm_stmt): ... here.
29944 * cfgexpand.c (expand_asm_operands): Don't call
29945 resolve_asm_operand_names.
29946 * stmt.c (resolve_asm_operand_names): Clarify block comment.
29948 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
29950 * dwarf2out.c (gen_member_die): Sanity check that we access
29951 TYPE_MAIN_VARIANT for TYPE_METHODS.
29952 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
29953 checking TYPE_METHODS.
29954 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
29956 (build_distinct_type_copy): Clear TYPE_METHODS.
29957 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
29958 (verify_type): Allow TYPE_METHODS to be error_mark_node.
29959 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
29961 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
29963 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
29964 (emit_pattern_before_setloc): Likewise.
29966 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
29968 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
29969 for define_peephole2s.
29970 (get_peephole2_pattern): New function.
29971 (main): Use it. Call validate_pattern.
29973 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
29975 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
29976 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
29977 (Last callee saved reg is different for AVR_TINY architecture)
29979 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
29981 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
29982 when looking for memory references.
29984 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
29987 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
29988 via function pointers.
29990 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
29992 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
29993 indirect call by forcing address into a pseudo with -fno-plt.
29994 * common.opt (flag_plt): New option.
29995 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
29996 ([-fno-plt]): Document.
29998 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
30001 * config/rs6000/option-defaults.h: Add space between string literal
30004 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
30006 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
30007 accross ARM targets.
30009 2015-05-11 Christian Bruel <christian.bruel@st.com>
30011 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
30012 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
30014 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
30016 PR rtl-optimization/66076
30017 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
30018 Don't grow the heap array if it is already big enough from a
30019 previous iteration.
30021 2015-05-11 Christian Bruel <christian.bruel@st.com>
30023 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
30024 (is_called_in_ARM_mode): Remove.
30025 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
30026 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
30027 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
30028 arm_declare_function_name.
30030 2015-05-11 Christian Bruel <christian.bruel@st.com>
30032 * config/arm/arm.c (arm_option_override): Reoganized and split into :
30033 (arm_option_params_internal); New function.
30034 (arm_option_check_internal): New function.
30035 (arm_option_override_internal): New function.
30036 (thumb_code, thumb1_code): Remove.
30037 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
30038 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
30039 (thumb_code, thumb1_code): Remove.
30040 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
30042 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
30044 * config/alpha/alpha.c (alpha_emit_set_const_1)
30045 (alpha_emit_set_long_const, alpha_extract_integer)
30046 (alpha_legitimate_constant_p, alpha_split_const_mov)
30047 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
30048 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30049 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
30051 * config/alpha/predicates.md (mode_mask_operand): Do not match
30053 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30054 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
30055 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
30056 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30057 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
30059 2015-05-11 Jakub Jelinek <jakub@redhat.com>
30062 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
30063 default_binds_local_p_2.
30064 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
30065 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
30067 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30069 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
30071 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30073 Patch by Richard Biener
30074 * coverage.c (coverage_obj_init): Delay building of type variant
30075 until the type is finished.
30077 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30079 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
30080 mismatch between C and C++ type; compoare correctly ARG_TYPES
30081 for non-prototypes and output correctly parameter index for METHOD_TYPE.
30082 (odr_types_equivalent_p): Fix wording of warning about attributes;
30083 it is OK to match prototype and non-prototype.
30085 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30087 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
30088 TYPE_ARG_TYPES list.
30089 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
30090 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
30092 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30094 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
30095 * tree.h (is_lang_specific): Constify.
30097 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
30099 PR tree-optimization/64454
30100 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
30103 2015-05-08 Jason Merrill <jason@redhat.com>
30105 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
30106 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
30107 config/darwin.h, config/darwin9.h, config/elfos.h,
30108 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
30109 config/microblaze/microblaze.h, config/mips/mips.h,
30110 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
30111 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
30112 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
30113 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
30114 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
30115 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
30116 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
30117 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
30118 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
30119 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
30120 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
30121 between string literal and macro name.
30123 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30125 * jump.c: Change argument types to rtx_insn *.
30128 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30130 * lra-constraints.c: Change argument type to rtx_insn *.
30132 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30134 * df-problems.c: Change argument type to rtx_insn *.
30136 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30138 * combine.c: Change argument type to rtx_insn *.
30140 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30143 * rtlanal.c: Change argument type to rtx_insn *.
30145 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30147 * sched-deps.c: Change argument types to rtx_insn *.
30148 * sched-int.h: Adjust.
30150 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30152 * dwarf2cfi.c: Change argument type to rtx_insn *.
30154 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30156 * ira.c (decrease_live_ranges_number): Changetype of local
30157 variable to rtx_insn *.
30158 * recog.c: Change argument types to rtx_insn *.
30161 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30163 * reorg.c: Change argument types to rtx_insn *.
30165 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30167 * ira-color.c: Change argument types to rtx_insn *.
30168 * lra-eliminations.c: Likewise.
30171 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30173 * gcse.c: Change argument types to rtx_insn *.
30175 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30177 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
30179 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30181 * emit-rtl.c (emit_debug_insn_before): Change argument type to
30185 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30187 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
30190 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30192 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
30195 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30197 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
30200 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30202 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
30205 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30207 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
30211 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30213 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
30217 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30219 * except.c (can_nonlocal_goto): Change type of argument to
30223 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30225 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
30228 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30230 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
30231 * cfgrtl.c (can_delete_label_p): Adjust.
30234 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30236 * reorg.c (stop_search_p): Change argument to rtx_insn *.
30238 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30240 * except.c (make_reg_eh_region_note): Change argument to
30242 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
30243 * except.h: Adjust.
30245 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30247 * mode-switching.c (commit_mode_sets): Change type of local
30248 variable from rtx to rtx_insn *.
30250 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
30252 * doc/install.texi (--enable-languages): Add missing jit and lto info.
30253 Add ^ to grep command.
30254 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
30255 arg to last gimple_simplify declaration. Add missing gimple_build
30256 declaration for built-in function case with four tree args.
30258 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
30259 Szabolcs Nagy <szabolcs.nagy@arm.com>
30261 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
30262 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
30263 (GNU_USER_DYNAMIC_LINKERN32): Update.
30265 2015-05-08 Richard Biener <rguenther@suse.de>
30267 PR tree-optimization/66036
30268 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
30269 Handle strided group loads.
30270 (vect_verify_datarefs_alignment): Likewise.
30271 (vect_enhance_data_refs_alignment): Likewise.
30272 (vect_analyze_group_access): Likewise.
30273 (vect_analyze_data_ref_access): Likewise.
30274 (vect_analyze_data_ref_accesses): Likewise.
30275 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
30276 (vectorizable_load): Likewise.
30278 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
30280 * config/rs6000/rs6000.md: Require operand inequality in one
30283 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
30284 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
30286 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
30288 * config/rx/rx.md (movdi, movdf): Likewise.
30289 Likewise for define_peephole2s.
30291 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30293 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
30294 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
30295 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
30296 vtst_u64): Rewrite using gcc vector extensions.
30298 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30300 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
30301 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
30303 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30305 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
30307 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
30309 * config/glibc-stdint.h (OPTION_MUSL): Define.
30310 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
30311 Change the definition based on OPTION_MUSL for 64 bit targets.
30312 * config/linux.h (OPTION_MUSL): Redefine.
30313 * config/alpha/linux.h (OPTION_MUSL): Redefine.
30314 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
30315 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
30317 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
30318 Szabolcs Nagy <szabolcs.nagy@arm.com>
30320 * config.gcc (LIBC_MUSL): New tm_defines macro.
30321 * config/linux.h (OPTION_MUSL): Define.
30322 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
30323 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
30324 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30325 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30326 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30327 * config/linux.opt (mmusl): New option.
30328 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
30329 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30330 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30331 * configure: Regenerate.
30333 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
30334 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30337 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
30338 * config/i386/knetbsd-gnu64.h: New file.
30340 2015-05-08 Marek Polacek <polacek@redhat.com>
30343 * doc/invoke.texi: Document -Woverride-init-side-effects.
30345 2015-05-07 Marek Polacek <polacek@redhat.com>
30348 * doc/invoke.texi: Document -Wshift-negative-value.
30350 2015-05-06 Aditya Kumar <hiraditya@msn.com>
30352 * gcov-tool.c (do_merge): Refactore to remove int ret.
30353 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
30354 !type == FUNC to type != FUNC.
30355 * reload.h (struct target_reload): Changee to type of
30356 x_spill_indirect_levels from bool to unsigned char.
30358 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
30360 * rtl.h (always_void_p): New function.
30361 * gengenrtl.c (always_void_p): Likewise.
30362 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
30363 with code foo are always VOIDmode.
30364 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
30365 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
30366 compare-elim.c, config/aarch64/aarch64.c,
30367 config/aarch64/aarch64.md, config/alpha/alpha.c,
30368 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
30369 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
30370 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
30371 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
30372 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
30373 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
30374 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
30375 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
30376 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
30377 config/ia64/vect.md, config/iq2000/iq2000.c,
30378 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
30379 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
30380 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
30381 config/mep/mep.c, config/microblaze/microblaze.c,
30382 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
30383 config/mn10300/mn10300.c, config/msp430/msp430.c,
30384 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
30385 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
30386 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
30387 config/rs6000/altivec.md, config/rs6000/rs6000.c,
30388 config/rs6000/rs6000.md, config/rs6000/vector.md,
30389 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
30390 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
30391 config/sh/sh.md, config/sh/sh_treg_combine.cc,
30392 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
30393 config/spu/spu.md, config/stormy16/stormy16.c,
30394 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
30395 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
30396 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
30397 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
30398 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
30399 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
30400 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
30401 var-tracking.c: Update calls accordingly.
30403 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
30406 PR middle-end/54303
30407 * varasm.c (function_mergeable_rodata_prefix): New function.
30408 (mergeable_string_section): Use it.
30409 (mergeable_constant_section): Use it.
30411 2015-05-07 Jeff Law <law@redhat.com>
30414 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30415 simplifier to narrow arithmetic.
30416 * generic-match-head.c: (types_match, single_use): New functions.
30417 * gimple-match-head.c: (types_match, single_use): New functions.
30419 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30421 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
30424 2015-05-07 Richard Biener <rguenther@suse.de>
30426 PR tree-optimization/66002
30427 * passes.def: Schedule another pass_merge_phi after ifcombine, right
30430 2015-05-07 Marek Polacek <polacek@redhat.com>
30431 Martin Uecker <uecker@eecs.berkeley.edu>
30433 * doc/invoke.texi: Document -fsanitize=bounds-strict.
30434 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
30435 into SANITIZE_NONDEFAULT.
30436 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
30438 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
30441 * config/alpha/alpha.c (alpha_override_options_after_change): New.
30442 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
30443 (alpha_override_options): Move align_loops, align_jumps and
30444 align_functions handling into alpha_override_options_after_change.
30446 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
30447 Chris Jones <chrisj@nvidia.com>
30448 Joshua Conner <jconner@nvidia.com>
30450 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
30451 linking of crtfastmath.o.
30452 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
30454 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
30456 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
30457 (cstore<mode>4_unsigned_imm): New expander.
30458 (cstore<mode>4): Remove empty constraint strings. Use the new
30461 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
30464 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
30467 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
30469 * config/aarch64/geniterators.sh: Use standard BRE in sed.
30471 2015-05-06 Alan Modra <amodra@gmail.com>
30474 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
30475 (UNSPEC_NOP): Define.
30476 (reload_vsx_from_gpr<mode>): Add missing DONE.
30477 (reload_gpr_from_vsx<mode>): Likewise.
30478 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
30479 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
30481 2015-05-06 Christian Bruel <christian.bruel@st.com>
30484 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
30485 align_jumps, align_functions into aarch64_override_options_after_change.
30487 2015-05-06 Richard Biener <rguenther@suse.de>
30489 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
30490 vect_transform_slp_perm_load to check if we support a permutation
30491 for basic-block vectorization.
30493 2015-05-06 Nick Clifton <nickc@redhat.com>
30495 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
30496 used, even if it is not being used as a frame pointer.
30498 2015-05-05 Jason Merrill <jason@redhat.com>
30500 * dwarf2out.c (gen_member_die): Don't emit anything for an
30501 anonymous class constructor.
30503 2015-05-05 David Malcolm <dmalcolm@redhat.com>
30505 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
30506 that it reflects the block structure.
30507 (afdo_propagate_edge): Likewise.
30508 (afdo_calculate_branch_prob): Likewise.
30509 (afdo_annotate_cfg): Likewise.
30510 * cfgcleanup.c (equal_different_set_p): Likewise.
30511 (try_crossjump_to_edge): Likewise.
30512 * cgraph.c (cgraph_node::verify_node): Likewise.
30513 * cgraphunit.c (expand_all_functions): Likewise.
30514 * config/i386/i386.c (ix86_expand_copysign): Likewise.
30515 (exact_dependency_1): Likewise.
30516 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
30517 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
30518 * gensupport.c (process_define_subst): Likewise.
30519 * lto-wrapper.c (merge_and_complain): Likewise.
30520 * tree-if-conv.c (if_convertible_bb_p): Likewise.
30521 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
30522 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
30523 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
30524 * tree-vect-loop.c (vectorizable_reduction): Likewise.
30525 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
30526 * tree-vect-stmts.c (vectorizable_shift): Likewise.
30527 * tree-vrp.c (vrp_finalize): Likewise.
30528 * tree.c (variably_modified_type_p): Likewise.
30530 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
30532 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
30533 on darwin12 and later.
30534 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
30535 file to pass -rdynamic on darwin12 and later.
30536 * config/darwin.opt (rdynamic): Add.
30538 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30540 * doc/extend.texi (C Extensions): Update menu for moved Variable
30541 Attributes and Type Attributes sections.
30543 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30546 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
30547 if rep_8byte stringop strategy was specified for 32-bit target.
30549 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
30552 * config/i386/i386.md (vector convert to float spltiter): Check for
30553 xmm16+, when splitting scalar float conversion.
30554 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
30556 2015-05-05 Nick Clifton <nickc@redhat.com>
30558 * config/msp430/msp430-opts.h (enum msp430_regions): New.
30559 * config/msp430/msp430.c (msp430_override_options): Complain if
30560 -mcode-region or -mdata-region is used on a non MSP430X.
30561 (msp430_section_attr): New function. Checks lower, upper and
30563 (msp430_attribute_table): Add lower, upper and either.
30564 (gen_prefix): New function. Generates a prefix for a section
30566 (msp430_select_section): New function - handles the choice of
30567 section for an object. Takes into account memory region
30568 attributes and options.
30569 (msp430_function_section): Use gen_prefix.
30570 (TARGET_SECTION_TYPE_FLAGS): Define.
30571 (msp430_section_type_flags): New function.
30572 (TARGET_ASM_UNIQUE_SECTION): Define.
30573 (msp430_unique_section): New function.
30574 (msp430_output_aligned_decl_common): New function.
30575 (msp430_do_not_relax_short_jumps): New function.
30576 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
30578 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
30579 * config/msp430/msp430-protos.h
30580 (msp430_do_not_relax_short_jumps): New prototype.
30581 (msp430_output_aligned_decl_common): New prototype.
30582 * config/msp430/msp430.md (length): New attribute.
30583 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
30584 then use a long code sequence for short jumps.
30585 * config/msp430/msp430.opt (mcode-region): New.
30586 (mdata-region): New.
30587 * doc/invoke.texi: Document new options.
30588 * doc/extend.texi: Document new attributes.
30590 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
30592 * config/aarch64-protos.h (struct cpu_branch_cost): New.
30593 (tune_params): Add field branch_costs.
30594 (aarch64_branch_cost): Declare.
30595 * config/aarch64.c (generic_branch_cost): New.
30596 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
30597 (cortexa53_tunings): Likewise.
30598 (cortexa57_tunings): Likewise.
30599 (thunderx_tunings): Likewise.
30600 (xgene1_tunings): Likewise.
30601 (aarch64_branch_cost): Define.
30602 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
30604 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30606 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
30607 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
30608 * config/i386/i386.md: Ditto.
30609 * config/i386/winnt.c: Ditto.
30611 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
30613 * doc/extend.texi (__atomic Builtins): Move implementation details
30614 to the end of the description, rewrite opening paragraphs, state
30615 difference with __sync builtins, state C11/C++11 assumptions,
30616 weaken itemized descriptions, add explanation of memory model
30617 behaviour, expand description of compare-exchange, simplify text.
30619 2015-05-05 Renlin Li <renlin.li@arm.com>
30621 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
30623 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
30625 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
30626 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30627 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
30628 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30629 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
30630 * configure: Regenerate.
30631 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
30632 * doc/install.texi (aarch64*-*-*): Document new
30633 --enable-fix-cortex-a53-843419 option.
30634 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
30635 and -mno-fix-cortex-a53-843419 options.
30637 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30640 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
30642 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
30644 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
30645 fix overactive TYPE_MIN_VALUE check and add FIXME for type
30646 compatibility problems.
30648 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
30650 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
30652 (cbranchsi4_reg): New.
30653 * config/microblaze/microblaze.c
30654 (microblaze_expand_conditional_branch_reg): New.
30655 * config/microblaze/microblaze-protos.h
30656 (microblaze_expand_conditional_branch_reg): New prototype.
30658 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
30660 * config/microblaze/microblaze.md (peephole2): New.
30662 2015-05-04 Jeff Law <law@redhat.com>
30665 2015-05-04 Jeff Law <law@redhat.com>
30667 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30668 simplifier to narrow arithmetic.
30669 * generic-match-head.c: (types_match, single_use): New functions.
30670 * gimple-match-head.c: (types_match, single_use): New functions.
30672 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
30675 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
30676 (split_branches): Likewise.
30678 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
30680 * common.opt (fdelete-null-pointer-checks): Init to -1.
30681 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
30682 override flag_delete_null_pointer_checks default.
30683 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
30684 behavior re address zero. Better document target-specific behavior.
30685 (-fisolate-errneous-paths-dereference): Mention relationship to
30686 -fdelete-null-pointer-checks.
30688 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30690 PR tree-optimization/65984
30691 * ubsan.c: Include tree-cfg.h.
30692 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
30693 stmt_could_throw_p test, rename can_throw variable to ends_bb.
30695 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
30697 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
30698 to CONST_DOUBLE_P predicate.
30699 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
30700 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
30701 allow only operands that satisfy standard_sse_constant_p predicate.
30702 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
30703 to CONST_DOUBLE_P predicate.
30705 2015-05-04 Jeff Law <law@redhat.com>
30707 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30708 simplifier to narrow arithmetic.
30709 * generic-match-head.c: (types_match, single_use): New functions.
30710 * gimple-match-head.c: (types_match, single_use): New functions.
30712 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
30714 * config/arm/arm.c: Restore bootstrap.
30716 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
30718 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
30719 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
30720 as CONST_WIDE_INT, not CONST_DOUBLE.
30721 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
30722 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
30723 (ix86_find_base_term): Do not check for CONST_DOUBLE.
30724 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
30725 (ix86_build_signbit_mask): Rewrite using wide ints.
30726 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
30727 (ix86_rtx_costs): Handle CONST_WIDE_INT.
30728 (find_constant): Ditto.
30729 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
30730 using gen_int_mode.
30731 * config/i386/predicates.md (x86_64_immediate_operand)
30732 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30733 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
30734 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30735 (const0_operand): Also match const_wide_int.
30736 (constm1_operand): Ditto.
30737 (const1_operand): Ditto.
30739 2015-05-04 Richard Biener <rguenther@suse.de>
30741 PR tree-optimization/65965
30742 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
30743 store groups at gaps.
30745 2015-05-04 Richard Biener <rguenther@suse.de>
30747 PR tree-optimization/65935
30748 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
30749 then make sure to apply that swapping to the IL.
30751 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30753 * Makefile.in (PATCHLEVEL_c): New variable.
30754 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
30755 expand the same way as if DEVPHASE_c was non-empty.
30757 2015-05-04 Kai Tietz <ktietz@redhat.com>
30760 * lto-wrapper.c (run_gcc): Open filename
30763 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
30765 * doc/extend.texi (Variable Attributes, Type Attributes): Move
30766 sections up in file, to immediately after the Function Attributes
30769 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
30771 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
30773 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30775 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
30776 (insert_partition_copy_on_edge): Adjust.
30777 (insert_rtx_to_part_on_edge): Likewise.
30778 (insert_part_to_rtx_on_edge): Likewise.
30780 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30782 * function.c (set_return_jump_label): Change type of argument to
30784 * function.h (set_return_jump_label): Adjust.
30786 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30788 * reload.h (struct reg_equivs_t): Change type of init to
30790 * ira.c (fix_reg_equiv_init): Adjust.
30791 * reload1.c (eliminate_regs_1): Likewise.
30792 (init_eliminable_invariants): Likewise.
30794 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30796 * cselib.c (fp_setter_insn): Take a rtx_insn *.
30797 * cselib.h (fp_setter_insn): Adjust.
30799 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30801 * recog.c (struct validate_replace_src_data): Change type of
30802 insn field to rtx_insn *.
30803 (validate_replace_src_group): Change type of argument to rtx_insn *.
30804 * recog.h (validate_replace_src_group): Adjust.
30806 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30808 * haifa-sched.c: Change the type of some variables to rtx_insn *.
30809 * sched-deps.c: Likewise.
30810 * sched-int.h: Likewise.
30811 * sched-rgn.c: Likewise.
30812 * sel-sched.c: Likewise.
30814 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30817 * config/i386/i386.c: Change the type of some arguments to
30819 * config/arm/arm.c: Likewise.
30821 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30823 * lra-constraints.c: Change type of some arguments to rtx_insn *.
30825 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30827 * regcprop.c (kill_autoinc_value): Change type of argument to
30830 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30832 * genrecog.c (print_subroutine): Adjust.
30833 * recog.c (get_bool_attr_mask_uncached): Likewise.
30834 * recog.h (struct recog_data_d): Change the type of insn to
30837 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30839 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
30841 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30843 * df-problems.c (df_set_note): Change type of argument to
30846 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30848 * builtins.c (expand_builtin_trap): Change type of local
30849 variable to rtx_insn *.
30850 (add_sched_insns_for_speculation): Likewise.
30851 (ix86_emit_save_regs): Likewise.
30852 (get_scratch_register_on_entry): Likewise.
30853 (ix86_emit_restore_reg_using_pop): Likewise.
30854 (ix86_emit_leave): Likewise.
30855 (ix86_emit_restore_regs_using_mov): Likewise.
30856 (ix86_expand_epilogue): Likewise.
30858 (rl78_alloc_physical_registers_umul): Likewise.
30859 * cselib.c (discard_useless_locs): Likewise.
30860 (cselib_invalidate_regno): Likewise.
30861 (cselib_invalidate_mem): Likewise.
30862 * function.c (expand_function_start): Likewise.
30863 (emit_use_return_register_into_block): Likewise.
30864 * gcse.c: Likewise.
30865 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
30866 * ifcvt.c (noce_get_alt_condition): Likewise.
30867 * loop-doloop.c (doloop_condition_get): Likewise.
30868 * lra-constraints.c (inherit_in_ebb): Likewise.
30869 * modulo-sched.c (sms_schedule_by_order): Likewise.
30870 * recog.c (next_insn_tests_no_inequality): Likewise.
30871 * reorg.c (emit_delay_sequence): Likewise.
30872 (update_reg_dead_notes): Likewise.
30873 (fix_reg_dead_note): Likewise.
30874 (fill_slots_from_thread): Likewise.
30875 (delete_computation): Likewise.
30877 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
30879 * doc/extend.texi (Variable Attributes): Add menu and proper
30880 @nodes to subsections. Move Microsoft Windows attributes to
30881 their own subsection.
30882 (Type Attributes): Reorganize introduction to remove duplicate
30883 list of attributes. Add menu and proper @nodes to subsections.
30884 Alphabetize the main table of common attributes.
30886 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
30888 * match.pd: New simplification patterns.
30889 (x + (x & 1)) -> ((x + 1) & ~1)
30890 (x & ~(x & y)) -> ((x & ~y))
30891 (x | ~(x | y)) -> ((x | ~y))
30893 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30895 * target.def (attribute_table): Mention that struct attribute_spec
30896 is defined in tree-core.h rather than tree.h
30897 * doc/tm.texi: Regenerate.
30899 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
30901 * genrecog.c (test): Rename to rtx_test. Update rest of file
30904 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
30906 PR translation/65959
30907 * params.h (DEFPARAM): Rename msgid to nocmsgid.
30909 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30911 * config/aarch64/aarch64-protos.h (tune_params):
30912 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
30913 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
30914 Return value depending on target.
30915 (generic_tunings): Initialize new target settings.
30916 (cortexa53_tunings): Likewise.
30917 (cortexa57_tunings): Likewise.
30918 (thunderx_tunings): Likewise.
30919 (xgene1_tunings): Likewise.
30921 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30923 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
30924 Make Cortex-A53 shift costs more accurate.
30926 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30928 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
30931 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30933 * config/aarch64/aarch64.c (aarch64_rtx_costs):
30934 Calculate cost of op0 and op1 in PLUS and MINUS cases.
30936 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30938 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
30939 Add cost of op0 in the compare-with-fpzero case.
30941 2015-04-30 David Malcolm <dmalcolm@redhat.com>
30943 * builtins.c (fold_builtin_1): Remove spurious second
30945 * cgraph.h (symtab_node::get_availability): Likewise.
30946 * opts.c (common_handle_option): Remove spurious second semicolon.
30947 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
30948 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
30950 2015-04-30 Caroline Tice <cmtice@google.com>
30952 PR gcov-profile/65929
30953 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
30954 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
30955 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
30956 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
30957 * doc/tm.texi: Regenerate.
30958 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
30959 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
30960 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
30961 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
30963 2015-04-30 Marek Polacek <polacek@redhat.com>
30965 * varasm.c (handle_cache_entry): Fix logic.
30967 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30969 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
30970 (*extrsi5_insn_uxtw_alt): Likewise.
30971 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
30972 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
30975 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30977 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
30980 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30982 * config/aarch64/aarch64.md
30983 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
30984 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
30985 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
30986 appropriately. Handle alternative EON form.
30988 2015-04-30 Renlin Li <renlin.li@arm.com>
30990 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
30991 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
30993 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
30996 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
30997 -fstrict-aliasing boundaries.
30999 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31001 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
31002 and [SU]MNEGL patterns.
31004 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31006 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
31007 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
31008 combined arithmetic-shift ops. Properly handle all shift and extend
31009 operations that can occur in combination with PLUS/MINUS.
31010 Rename maybe_fma to compound_p.
31011 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
31012 arithmetic and shift operations.
31014 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31016 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
31017 rather than arith_shift cost when costing ADD/MINUS of an
31020 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
31023 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
31026 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
31028 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
31029 are for the same position.
31031 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
31033 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
31035 (vectorize_loops): Use it.
31037 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31039 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
31040 for aggregate types.
31041 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
31042 type to be non_ODR.
31043 * tree.c (need_assembler_name_p): Compute mangled name for
31044 non-fundamental types and integer types.
31046 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
31048 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
31050 * expr.c (expand_expr_real_2): Likewise.
31052 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31054 * tree.c (build_common_builtin_nodes): Do not build
31055 __builtin_alloca_with_align as equivalent of library alloca.
31057 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31059 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
31060 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
31062 * tree.c: Include print-tree.h and ipa-utils.h
31063 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
31064 (free_lang_data_in_cgraph): Call verify_type.
31065 (verify_type_variant): New function.
31066 (verify_type): New function.
31067 * tree.h (verify_type): Declare.
31069 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
31071 * config/mips/mips-cpus.def: (mips4): Change default processor
31072 from PROCESSOR_R8000 to PROCESSOR_R10000.
31074 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
31076 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
31077 la/jalr instead of jal.
31079 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
31082 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
31083 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
31084 (setcc+movzbl peephole2): Check also clobbered reg.
31085 (setcc+andl peephole2): Ditto.
31087 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
31090 * config/nvptx/mkoffload.c (target_ilp32): New variable.
31091 (main): Set it depending on "-foffload-abi=[...]".
31092 (compile_native, main): Use it to pass "-m32" or "-m64" to the
31095 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
31098 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
31099 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
31100 Flip lane index back at assembly time for bigendian.
31102 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
31104 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
31105 * gimplify.c (gimplify_omp_workshare): Use it.
31107 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
31109 * Makefile.in (build/genrecog.o): Depend on inchash.h.
31110 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
31112 * genrecog.c: Rewrite most of the code except for the third page.
31114 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
31116 * inchash.h, inchash.c: Include bconfig.h for build objects.
31117 * Makefile.in (build/inchash.o): New rule.
31119 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
31122 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
31123 number in type attribute expression.
31125 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
31127 * loop-iv.c (canon_condition): Generalize to all types of integer
31130 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
31132 * gimple-walk.c: Prune duplicate or unneeded includes.
31133 (walk_gimple_asm): Only call parse_input_constraint or
31134 parse_output_constraint if their findings are used.
31135 Honour parse_input_constraint and parse_output_constraint
31138 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
31140 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
31142 2015-04-29 Tom de Vries <tom@codesourcery.com>
31144 PR tree-optimization/65893
31145 * passes.def (pass_all_optimizations): Move pass_stdarg to after
31148 2015-04-29 Richard Biener <rguenther@suse.de>
31150 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
31151 compute GROUP_SIZE for basic-block SLP.
31152 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
31153 take into account gaps.
31154 (vect_get_mask_element): Properly reject references to previous
31156 (vect_transform_slp_perm_load): Likewise.
31158 2015-04-29 Christian Bruel <christian.bruel@st.com>
31161 * config/i386/i386.c (ix86_default_align): New function.
31162 (ix86_override_options_after_change): Call ix86_default_align.
31163 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
31164 (ix86_override_options_after_change): New function.
31166 2015-04-28 Jeff Law <law@redhat.com>
31168 * tree-ssa-dom.c (record_equality); Fix comment typos.
31170 2015-04-28 Tom de Vries <tom@codesourcery.com>
31172 PR tree-optimization/65887
31173 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
31175 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
31177 * doc/extend.texi (Declaring Attributes of Functions): Split into
31178 subsections by target. Alphabetize the table of common attributes.
31179 Rewrite some of the introductory text to reflect the new structure.
31180 Update some cross-references to point to the new subsections.
31181 (Attribute Syntax): Put paragraph about "__" naming here. Remove
31182 duplicate copies in the discussion of function, label, and type
31185 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
31188 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
31190 2015-04-28 Jason Merrill <jason@redhat.com>
31193 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
31194 (finalize_type_size): Respect TYPE_USER_ALIGN.
31195 (layout_type) [ARRAY_TYPE]: Likewise.
31197 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
31199 * config/arm/arm.md (*arm_movt): Fix type attribute.
31200 (*cmpsi_shiftsi): Likewise.
31201 (*cmpsi_shiftsi_swp): Likewise.
31202 (*movsicc_insn): Likewise.
31203 (*cond_move): Likewise.
31204 (*if_plus_move): Likewise.
31205 (*if_move_plus): Likewise.
31206 (*if_arith_move): Likewise.
31207 (*if_move_arith): Likewise.
31208 (*if_shift_move): Likewise.
31209 (*if_move_shift): Likewise.
31210 (*arm_movtas_ze): Likewise.
31211 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
31212 redundancy and type attribute.
31213 (*thumb2_movsi_insn): Fix type attribute.
31214 (*thumb2_addsi_short): Likewise.
31215 (thumb2_addsi3_compare0): Likewise.
31216 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
31217 attributes accordingly.
31219 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
31222 * function.c (pad_to_arg_alignment): Add parentheses.
31224 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
31226 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
31227 libgcc/config/frv/elf-lib.h.
31229 2015-04-28 Tom de Vries <tom@codesourcery.com>
31231 * tree-call-cdce.c: Fix example in header comment.
31233 2015-04-28 Richard Biener <rguenther@suse.de>
31235 PR tree-optimization/62283
31236 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
31237 fails fatally and we are vectorizing a basic-block simply
31238 cause the child to be constructed piecewise.
31239 (vect_analyze_slp_cost_1): Adjust.
31240 (vect_detect_hybrid_slp_stmts): Likewise.
31241 (vect_bb_slp_scalar_cost): Likewise.
31242 (vect_get_constant_vectors): For piecewise constructed
31243 constants place them after the last def.
31244 (vect_get_slp_defs): Adjust.
31245 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
31246 externals for basic-block vectorization.
31248 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
31251 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
31253 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
31254 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
31255 (AARCH64_TUNE_FMA_STEERING): Likewise.
31256 * config/aarch64/aarch64-cores.def: Set
31257 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
31258 FMUL/FMADD instructions.
31259 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
31260 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
31261 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
31262 * config/aarch64/cortex-a57-fma-steering.h: New file.
31263 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
31265 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
31267 * gensupport.c (std_preds): Add missing codes to address_operand entry.
31269 2015-04-28 Richard Biener <rguenther@suse.de>
31271 PR tree-optimization/65851
31272 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
31273 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
31274 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
31275 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
31276 (ccp_visit_phi_node): Adjust.
31277 (evaluate_stmt): For simplifications to SSA names return its
31278 lattice value if that isn't VARYING. Return immediately when
31279 simplified to a constant.
31280 (visit_assignment): Adjust.
31281 (ccp_visit_stmt): Likewise.
31283 2015-04-28 Tom de Vries <tom@codesourcery.com>
31285 PR tree-optimization/65818
31286 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
31289 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31291 * calls.c (save_fixed_argument_area): Don't check
31292 ARGS_GROW_DOWNWARD with the preprocessor.
31293 (restore_fixed_argument_area): Likewise.
31294 (mem_overlaps_already_clobbered_arg_p): Likewise.
31295 (check_sibcall_argument_overlap): Likewise.
31296 (expand_call): Likewise.
31297 (emit_library_call_value_1): Likewise.
31298 (store_one_arg): Likewise.
31299 * function.c (assign_parms): Likewise.
31300 (locate_and_pad_parm): Likewise.
31301 (pad_to_arg_alignment): Likewise.
31302 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31304 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31306 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
31307 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
31308 * calls.c (save_fixed_argument_area): Don't chekc if
31309 ARGS_GROW_DOWNWARD is defined.
31310 (restore_fixed_argument_area): Likewise.
31311 (mem_overlaps_already_clobbered_arg_p): Likewise.
31312 (check_sibcall_argument_overlap): Likewise.
31313 (expand_call): Likewise.
31314 (emit_library_call_value_1): Likewise.
31315 (store_one_arg): Likewise.
31316 * function.c (assign_parms): Likewise.
31317 (locate_and_pad_parm): Likewise.
31318 (pad_to_arg_alignment): Likewise.
31319 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31321 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31323 * defaults.h (gen_epilogue): New function.
31324 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
31326 * cfgrtl.c (cfg_layout_finalize): Likewise.
31327 * df-scan.c: Likewise.
31328 * function.c (thread_prologue_and_epilogue_insns): Likewise.
31329 (reposition_prologue_and_epilogue_notes): Likewise.
31330 * reorg.c (find_end_label): Likewise.
31331 * toplev.c: Likewise.
31333 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31335 * bb-reorder.c (HAVE_return): Don't check if its undefined.
31336 * defaults.h (gen_simple_return): New function.
31337 (gen_simple_return): Likewise.
31338 (HAVE_return): Add default definition to false.
31339 (HAVE_simple_return): Likewise.
31340 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
31341 HAVE_return and HAVE_simple_return are defined.
31342 * function.c (gen_return_pattern): Likewise.
31343 (convert_jumps_to_returns): Likewise.
31344 (thread_prologue_and_epilogue_insns): Likewise.
31345 * reorg.c (find_end_label): Likewise.
31346 (dbr_schedule): Likewise.
31347 * shrink-wrap.c: Likewise.
31348 * shrink-wrap.h: Likewise.
31350 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31352 * defaults.h (EPILOGUE_USES): Add default definition of false.
31353 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
31354 * resource.c (init_resource_info): Likewise.
31356 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31358 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
31360 * dwarf2out.c (field_byte_offset): REmove check if
31361 PCC_BITFIELD_TYPE_MATTERS is defined.
31362 * stor-layout.c (layout_decl): Likewise.
31363 (update_alignment_for_field): Likewise.
31364 (place_field): Likewise.
31366 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31368 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
31370 * regrename.c (check_new_reg_p): Remove check if
31371 HARD_REGNO_RENAME_OK is defined.
31372 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
31374 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31376 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
31377 * cse.c (fold_rtx): Likewise.
31378 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
31379 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
31380 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
31381 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
31382 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
31383 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
31384 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
31385 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
31386 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
31387 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
31389 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
31390 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
31391 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
31392 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
31393 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
31394 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
31395 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
31396 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
31397 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
31398 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
31399 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
31400 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
31401 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
31402 * doc/tm.texi: Regenerate.
31403 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
31404 either true or false.
31406 2015-04-27 Jeff Law <law@redhat.com>
31408 PR tree-optimization/65217
31409 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
31410 of them has a single use, make sure it is the LHS of the implied
31413 2015-04-28 Alan Modra <amodra@gmail.com>
31416 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
31417 (offsettable_ok_by_alignment): Use minimum of decl and toc
31418 pointer alignment. Replace dead code with assertion.
31419 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
31420 case if size exceeds toc pointer alignment.
31421 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
31422 (rs6000_emit_move): Likewise.
31423 * configure.ac: Add linker toc pointer alignment check.
31424 * configure: Regenerate.
31425 * config.in: Regenerate.
31427 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
31429 * config.gcc: Add h8300-*-linux.
31430 * config/h8300/linux.h: New.
31431 * config/h8300/t-linux: New.
31432 * config/h8300/h8300.c (h8300_option_override): Normal mode
31433 is not supported for h8300-*-linux.
31434 (h8300_file_start): Target priority change.
31435 (get_shift_alg): Likewise.
31436 (h8300_shift_need_scratch_p): Likewise.
31437 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
31438 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
31440 2015-04-27 Caroline Tice <cmtice@google.com>
31442 * final.c (final_scan_insn): Output cold_function_name as function
31444 * varasm.c (cold_function_name): Make global.
31445 (assemble_start_function): Re-set cold_function_name.
31446 (assemble_end_function): Output cold partition size.
31447 * varasm.h (cold_function_name): Declare global.
31449 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
31451 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
31452 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
31454 (*movxi_internal_avx512f): Ditto.
31455 (define_split): Check for xmm16+, when splitting scalar float_extend.
31456 (*extendsfdf2_mixed): Use "v" constraint.
31457 (define_split): Check for xmm16+, when splitting scalar float_truncate.
31458 (*truncdfsf_fast_sse): Use "v" constraint.
31459 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
31460 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
31461 (define_peephole2): Check for xmm16+, when converting scalar
31463 (define_peephole2): Check for xmm16+, when converting scalar
31465 (*fop_<mode>_comm_mixed): Use "v" constraint.
31466 (*fop_<mode>_comm_sse): Ditto.
31467 (*fop_<mode>_1_mixed): Ditto.
31468 (*sqrt<mode>2_sse): Ditto.
31469 (*ieee_s<ieee_maxmin><mode>3): Ditto.
31471 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31473 * combine.c (simplify_if_then_else): Use std::swap instead
31474 of manually swapping.
31475 (known_cond): Likewise.
31476 (simplify_comparison): Likewise.
31478 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
31481 * config/rs6000/htm.md: Remove all define_expands.
31482 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
31483 UNSPECV_HTM_TABORTWCI): Remove.
31484 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
31485 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
31486 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
31487 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
31488 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
31489 tabortwci_internal): Remove define_insns.
31490 (tabort<wd>c, tabort<wd>ci): New define_insns.
31491 (tabort): Use gpc_reg_operand.
31492 (tcheck): Remove operand.
31493 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
31494 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
31496 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
31497 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
31498 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
31499 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
31500 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
31501 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
31502 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
31503 (tcheck): Remove builtin argument.
31504 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
31506 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
31507 tabortdc and tabortdci builtins when not in 64-bit mode.
31508 Modify code to handle the loss of the HTM define_expands.
31509 Emit code to copy the CR register to TARGET.
31510 (htm_init_builtins): Modify code to handle the loss of the HTM
31512 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
31513 (RS6000_BTC_64BIT): Likewise.
31514 (RS6000_BTC_CR): New macro.
31515 * doc/extend.texi: Update documentation for htm builtins.
31517 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31519 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
31520 of manually swapping.
31521 (simplify_associative_operation): Likewise.
31522 (simplify_binary_operation): Likewise.
31523 (simplify_plus_minus): Likewise.
31524 (simplify_relational_operation): Likewise.
31525 (simplify_ternary_operation): Likewise.
31527 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
31529 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
31530 (xs_hi_nonmemory_operand): Remove error.
31531 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
31532 general_operand rather than xs_hi_general_operand.
31534 2015-04-27 Richard Biener <rguenther@suse.de>
31536 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
31537 (record_equivalences_from_stmt): Valueize rhs.
31538 (record_equality): Canonicalize x and y order via
31539 tree_swap_operands_p. Do not swap operands for same loop depth.
31541 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
31545 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
31546 Add hint how to use own spec file.
31548 2015-04-27 Jakub Jelinek <jakub@redhat.com>
31550 PR tree-optimization/65875
31551 * tree-vrp.c (update_value_range): If in is_new case setting
31552 old_vr to VR_VARYING, also set new_vr to it. Remove
31553 old_vr->type == VR_VARYING test.
31554 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
31555 SSA_PROP_INTERESTING if update_value_range returned true,
31556 but new range is VR_VARYING.
31558 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
31560 * combine.c (sign_extend_short_imm): New.
31561 (set_nonzero_bits_and_sign_copies): Use above new function for sign
31562 extension of src short immediate.
31563 (reg_nonzero_bits_for_combine): Likewise for tem.
31565 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
31567 * stor-layout.c (self_referential_component_ref_p): New predicate.
31568 (copy_self_referential_tree_r): Use it.
31569 (self_referential_size): Punt for simple operations directly involving
31570 self-referential component references.
31571 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
31573 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
31575 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
31577 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
31579 * vec.h (vec): Make splice arguments const. Update definitions
31582 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
31584 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
31587 2015-04-26 Tom de Vries <tom@codesourcery.com>
31589 PR tree-optimization/65826
31590 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
31592 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
31594 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
31595 (*madd3<mode>): Ditto.
31596 (*msub4<mode>): Ditto.
31597 (*msub3<mode>): Ditto.
31598 (*nmadd4<mode>): Ditto.
31599 (*nmadd3<mode>): Ditto.
31600 (*nmadd4<mode>_fastmath): Ditto.
31601 (*nmadd3<mode>_fastmath): Ditto.
31602 (*nmsub4<mode>): Ditto.
31603 (*nmsub3<mode>): Ditto.
31604 (*nmsub4<mode>_fastmath): Ditto.
31605 (*nmsub3<mode>_fastmath): Ditto.
31607 2015-04-24 Jason Merrill <jason@redhat.com>
31610 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
31611 down when building TYPE_CANONICAL.
31612 (build_pointer_type_for_mode): Likewise.
31614 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
31616 * genrecog.c (validate_pattern): Check matching constraint refers
31617 to a lower numbered operand.
31619 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
31622 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
31623 save to independent variables use the Save attribute. This will
31624 allow these options to be modified with the #pragma/attribute
31626 (-mallow-movmisalign): Likewise.
31627 (-mallow-df-permute): Likewise.
31628 (-msched-groups): Likewise.
31629 (-malways-hint): Likewise.
31630 (-malign-branch-targets): Likewise.
31631 (-mvectorize-builtins): Likewise.
31632 (-msave-toc-indirect): Likewise.
31634 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
31635 can be set via the #pragma/attribute target support.
31636 (rs6000_opt_vars): Likewise.
31637 (rs6000_inner_target_options): If VSX was set, also set
31638 -mno-avoid-indexed-addresses.
31640 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31642 * config/arm/iterators.md (shiftable_ops): Rename to...
31643 (SHIFTABLE_OPS): ... This. Update use in comments.
31644 (ior_xor): Rename to...
31645 (IOR_XOR): ... This.
31646 (vqh_ops): Rename to...
31647 (VQH_OPS): ... This.
31648 (vqhs_ops): Rename to...
31649 (VQHS_OPS): ... This.
31650 (rshifts): Rename to...
31651 (RSHIFTS): ... This.
31652 (returns): Rename to...
31653 (RETURNS): ... This.
31654 * config/arm/arm.md: Update uses of the above.
31655 * config/arm/neon.md: Likewise.
31657 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31659 * config.host (case ${host}): Add aarch64*-*-linux case.
31660 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
31661 fields to all the cores.
31662 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
31663 Add MCPU_MTUNE_NATIVE_SPECS.
31664 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
31665 field to all extensions.
31666 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
31667 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
31668 Adjust definition of AARCH64_OPT_EXTENSION.
31669 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
31670 (MCPU_MTUNE_NATIVE_SPECS): Define.
31671 * config/aarch64/driver-aarch64.c: New file.
31672 * config/aarch64/x-arch64: New file.
31673 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
31676 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31677 Wei Mi <wmi@google.com>
31679 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
31680 * config/i386/i386.c (extract_base_offset_in_addr): New function.
31681 (ix86_operands_ok_for_move_multiple): Ditto.
31682 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
31683 (movlpd/movhpd to movupd peephole2): Ditto.
31685 2015-04-24 Marek Polacek <polacek@redhat.com>
31688 * input.h (from_macro_expansion_at): Define.
31691 * doc/invoke.texi: Update description of -Wlogical-op.
31693 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31695 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
31696 ternary operator in fprintf and harmonize spacing.
31698 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31700 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
31701 Mark operand1 commutative.
31703 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31705 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
31706 input operands in memory.
31707 (*vec_concatv2si_sse4_1): Ditto.
31708 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
31709 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
31711 (vec_extract_hi_v32hi): Ditto.
31712 (vec_extract_hi_v64hi): Ditto.
31713 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
31715 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31716 Steven Bosscher <steven@gcc.gnu.org>
31718 PR rtl-optimization/34503
31719 * cprop.c (cprop_reg_p): New.
31720 (hash_scan_set): Use above function to check if register can be
31722 (find_avail_set): Return up to two sets, one whose source is a
31723 register and one whose source is a constant. Sets are returned in an
31724 array passed as parameter rather than as a return value.
31725 (cprop_insn): Use a do while loop rather than a goto. Try each of the
31726 sets returned by find_avail_set, starting with the one whose source is
31727 a constant. Use cprop_reg_p to check if register can be propagated.
31728 (do_local_cprop): Use cprop_reg_p to check if register can be
31730 (implicit_set_cond_p): Likewise.
31732 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31734 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
31735 (sem_function::equals): IGNORED_NODES parameter is now unused;
31736 update call of equals_private.
31737 (sem_function::equals_private): Do not call equals_wpa; skip
31738 gimple body matching if there is no body.
31739 (sem_function::init): Add logic to hash tthunk info.
31740 (sem_function::parse): Also parse thunks.
31741 * ipa-icf.h (equals_private): Update declaration.
31743 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31745 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
31746 asterisk from name so this can be generated directly.
31747 (*altivec_stvx_<mode>_internal): Likewise.
31748 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
31749 that this is never called during or after reload/lra.
31750 (rs6000_frame_related): Remove split_reg
31751 argument and logic that references it.
31752 (emit_frame_save): Remove last parameter from call to
31753 rs6000_frame_related.
31754 (rs6000_emit_prologue): Remove last parameter from eight calls to
31755 rs6000_frame_related. Force generation of stvx instruction for
31756 Altivec register saves. Remove split_reg handling, which is no
31758 (rs6000_emit_epilogue): Force generation of lvx instruction for
31759 Altivec register restores.
31761 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31763 * config/rs6000/rs6000.opt (mcrypto): Change option description to
31764 match category changes in ISA 2.07B.
31766 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31768 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
31770 (cmp_op, cmp_type): New code attributes.
31771 (NEON_VCMP, NEON_VACMP): New int iterators.
31772 (cmp_op_unsp): New int attribute.
31773 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
31774 (neon_vceq<mode>): Delete.
31775 (neon_vc<cmp_op><mode>_insn): New pattern.
31776 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
31777 (neon_vcgeu<mode>): Delete.
31778 (neon_vcle<mode>): Likewise.
31779 (neon_vclt<mode>: Likewise.
31780 (neon_vcage<mode>): Likewise.
31781 (neon_vcagt<mode>): Likewise.
31782 (neon_vca<cmp_op><mode>): New define_expand.
31783 (neon_vca<cmp_op><mode>_insn): New pattern.
31784 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
31786 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31788 * tree.h (attribute_value_equal): Declare.
31789 * tree.c (attribute_value_equal): Export.
31791 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31793 * ipa-icf.c (sem_item::compare_attributes): New function.
31794 (sem_item::compare_referenced_symbol_properties): Compare variable
31796 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
31797 (sem_function::param_used_p): New function.
31798 (sem_function::equals_wpa): Fix attribute comparsion; match
31799 parameter type codes; do not compare paremter flags when
31800 they are not used; compare edge flags; compare indirect calls.
31801 (sem_item::update_hash_by_addr_refs): Hash reference type.
31802 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
31803 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
31804 reference use type.
31805 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
31806 * ipa-icf.h (compare_attributes, param_used_p): Declare.
31808 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31810 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
31812 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
31813 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
31814 (sem_item::compare_referenced_symbol_properties): New.
31815 (sem_item::hash_referenced_symbol_properties): New.
31816 (sem_item::compare_cgraph_references): Rename to ...
31817 (sem_item::compare_symbol_references): ... this one; use
31818 compare_referenced_symbol_properties.
31819 (sem_function::equals_wpa): Do not compare
31820 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
31821 DECL_IS_OPERATOR_NEW; compare pointer sizes.
31822 (sem_item::update_hash_by_addr_refs): Call
31823 hash_referenced_symbol_properties.
31824 (sem_item::update_hash_by_local_refs): Cleanup.
31825 (sem_function::merge): Do not mix up symbol properties.
31826 (sem_variable::equals_wpa): Use compare_symbol_references.
31827 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
31828 (sem_item::hash_referenced_symbol_properties): New.
31829 (sem_item::compare_symbol_references): New.
31830 (sem_item::compare_cgraph_references): Remove.
31832 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
31835 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
31836 Emit size of local.
31838 2015-04-23 Nick Clifton <nickc@redhat.com>
31840 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
31841 ATTRIBUTE_UNUSED to x parameter.
31842 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
31844 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31846 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
31847 TARGET_CRYPTO to TARGET_P8_VECTOR>
31848 (crypto_vpermxor_<mode>): Likewise.
31849 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
31850 (BU_CRYPTO_3A): Likewise.
31851 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
31852 (BU_CRYPTO_OVERLOAD_3A): New #define.
31853 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
31854 (VPMSUMH): Likewise.
31855 (VPMSUMW): Likewise.
31856 (VPMSUMD): Likewise.
31857 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
31858 (VPERMXOR_V4SI): Likewise.
31859 (VPERMXOR_V8HI): Likewise.
31860 (VPERMXOR_V16QI): Likewise.
31861 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
31862 BU_CRYPTO_OVERLOAD_2A.
31863 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
31864 BU_CRYPTO_OVERLOAD_3A.
31865 * config/rs6000/rs6000.opt (mcrypto): Change description of
31868 2015-04-23 Richard Biener <rguenther@suse.de>
31870 * passes.def: Remove copy propagation passes run directly after CCP.
31871 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
31873 (ccp_visit_phi_node): Rework to handle first executable edge
31876 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
31878 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31879 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31880 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31881 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
31882 (thumb_legimitimize_reload_address): Remove.
31883 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
31885 (thumb_legimitimize_reload_address): Remove.
31887 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31889 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
31891 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31893 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
31895 (store_multiple): Likewise.
31897 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31899 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
31900 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
31901 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
31902 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
31903 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
31904 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
31905 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
31906 Specify issue_rate value.
31907 (arm_issue_rate): Look up issue rate from tuning structs. Remove
31908 large switch statement.
31909 (arm_marvell_pj4_tune): New struct.
31910 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
31913 2015-04-23 Richard Biener <rguenther@suse.de>
31915 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
31916 (vect_find_last_store_in_slp_instance): Rename to ...
31917 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
31918 (vect_analyze_slp_cost_1): Use vector_load for constant defs
31919 and vec_construct for external defs when estimating prologue cost.
31920 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
31921 Compute costs here only when vectorizing loops.
31922 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
31923 have been determined.
31924 (vect_schedule_slp_instance): Simplify vectorized code placement
31925 and prepare for in-BB external defs.
31926 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
31927 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
31928 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
31930 (vect_model_load_cost): Likewise.
31931 (vectorizable_store): Instead add it here.
31932 (vectorizable_load): Likewise.
31933 (vect_is_simple_use): Dump def type textually.
31935 2015-04-23 Richard Biener <rguenther@suse.de>
31937 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
31938 * cfgloop.c (verify_loop_structure): Verify the root loop node.
31939 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
31940 instead of get_eh_region_from_lp_number.
31941 * loop-init.c (fix_loop_structure): If we removed a loop, reset
31944 2015-04-23 Anton Blanchard <anton@samba.org>
31946 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
31947 need for -mprofile-kernel to save LR to stack.
31949 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31951 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
31953 (insn_is_swappable_p): Return 1 for a convert from double to
31954 single precision when all of its uses are splats of BE element
31957 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
31959 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
31961 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31964 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
31965 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
31966 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
31968 (rs6000_builtin_mask_for_load): Return 0 for targets with
31969 efficient unaligned VSX accesses so that the vectorizer will use
31970 direct unaligned loads.
31971 (rs6000_builtin_support_vector_misalignment): Always return true
31972 for targets with efficient unaligned VSX accesses.
31973 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
31974 stores on targets with efficient unaligned VSX accesses is almost
31975 always the same as the cost of an aligned load or store, so model
31977 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
31978 unaligned vectors if we have efficient unaligned VSX accesses.
31979 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
31980 undocumented option.
31982 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31985 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
31987 * config.gcc (LIBC_MUSL): New tm_defines macro.
31988 * config/linux.h (OPTION_MUSL): Define.
31989 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31990 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31991 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31993 * config/linux.opt (mmusl): New option.
31994 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31995 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31997 * configure: Regenerate.
31999 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
32001 * config.gcc (LIBC_MUSL): New tm_defines macro.
32002 * config/linux.h (OPTION_MUSL): Define.
32003 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32004 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32005 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32007 * config/linux.opt (mmusl): New option.
32008 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32009 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32011 * configure: Regenerate.
32013 2015-04-22 Yury Gribov <y.gribov@samsung.com>
32015 * doc/invoke.texi (-fsanitize-sections): Update description.
32016 * asan.c (set_sanitized_sections): Parse incoming arg.
32017 (section_sanitized_p): Support wildcards.
32019 2015-04-22 Tom de Vries <tom@codesourcery.com>
32021 PR tree-optimization/65823
32022 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
32023 equality between ap_copy and ap.
32025 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32028 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
32030 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32033 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
32035 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32038 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
32039 remove already contained t-files.
32041 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32043 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
32044 Remove unneeded forward declarations.
32045 (suitable_for_tail_call_opt_p): Commentary typo fix.
32047 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32049 * varasm.c (emit_bss): Remove redundant guard.
32051 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32053 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
32055 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32057 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
32059 2015-04-22 Hale Wang <hale.wang@arm.com>
32060 Terry Guo <terry.guo@arm.com>
32062 PR rtl-optimization/64818
32063 * combine.c (can_combine_p): Don't combine user-specified
32064 register if it is in an asm input.
32066 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
32069 * passes.def (early_optimizations): Add pass_dse.
32071 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32073 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
32074 * reorg.c (redundant_insn): Remove ifdef
32075 INSN_REFERENCES_ARE_DELAYED.
32076 * resource.c (mark_referenced_resources): Likewise.
32078 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32080 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
32081 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
32082 * resource.c (mark_set_resources): Likewise.
32084 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32086 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
32087 * cfgcleanup.c (flow_find_cross_jump): Likewise.
32088 (flow_find_head_matching_sequence): Likewise.
32089 (try_head_merge_bb): Likewise.
32090 * combine.c (can_combine_p): Likewise.
32091 (try_combine): Likewise.
32092 (distribute_notes): Likewise.
32093 * df-problems.c (can_move_insns_across): Likewise.
32094 * final.c (final): Likewise.
32095 * gcse.c (insert_insn_end_basic_block): Likewise.
32096 * ira.c (find_moveable_pseudos): Likewise.
32097 * reorg.c (try_merge_delay_insns): Likewise.
32098 (fill_simple_delay_slots): Likewise.
32099 (fill_slots_from_thread): Likewise.
32100 * sched-deps.c (sched_analyze_2): Likewise.
32102 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32104 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
32105 PIC_OFFSET_TABLE_REGNUM.
32107 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32109 * alias.c (init_alias_target): Remove ifdef
32110 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
32111 * df-scan.c (df_insn_refs_collect): Likewise.
32112 (df_get_regular_block_artificial_uses): Likewise.
32113 (df_get_eh_block_artificial_uses): Likewise.
32114 (df_get_entry_block_def_set): Likewise.
32115 (df_get_exit_block_use_set): Likewise.
32116 * emit-rtl.c (gen_rtx_REG): Likewise.
32117 * ira.c (ira_setup_eliminable_regset): Likewise.
32118 * reginfo.c (init_reg_sets_1): Likewise.
32119 * regrename.c (rename_chains): Likewise.
32120 * reload1.c (reload): Likewise.
32121 (eliminate_regs_in_insn): Likewise.
32122 * resource.c (mark_referenced_resources): Likewise.
32123 (init_resource_info): Likewise.
32125 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32127 * defaults.h (MASK_RETURN_ADDR): New definition.
32128 * except.c (expand_builtin_extract_return_addr): Remove ifdef
32131 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32133 * defaults.h (RETURN_ADDR_OFFSET): New definition.
32134 * except.c (expand_builtin_extract_return_addr): Remove ifdef
32135 RETURN_ADDR_OFFSET.
32136 (expand_builtin_frob_return_addr): Likewise.
32138 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32140 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
32141 (try_redirect_by_replacing_jump): Likewise.
32142 (rtl_tidy_fallthru_edge): Likewise.
32143 * combine.c (insn_a_feeds_b): Likewise.
32144 (find_split_point): Likewise.
32145 (simplify_set): Likewise.
32146 * cprop.c (cprop_jump): Likewise.
32147 * cse.c (cse_extended_basic_block): Likewise.
32148 * df-problems.c (can_move_insns_across): Likewise.
32149 * function.c (emit_use_return_register_into_block): Likewise.
32150 * haifa-sched.c (sched_init): Likewise.
32151 * ira.c (find_moveable_pseudos): Likewise.
32152 * loop-invariant.c (find_invariant_insn): Likewise.
32153 * lra-constraints.c (curr_insn_transform): Likewise.
32154 * postreload.c (reload_combine_recognize_const_pattern):
32156 * reload.c (find_reloads): Likewise.
32157 * reorg.c (delete_scheduled_jump): Likewise.
32158 (steal_delay_list_from_target): Likewise.
32159 (steal_delay_list_from_fallthrough): Likewise.
32160 (redundant_insn): Likewise.
32161 (fill_simple_delay_slots): Likewise.
32162 (fill_slots_from_thread): Likewise.
32163 (delete_computation): Likewise.
32164 * sched-rgn.c (add_branch_dependences): Likewise.
32166 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32168 * genconfig.c (main): Always define HAVE_cc0.
32169 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
32171 * cfgcleanup.c (flow_find_cross_jump): Likewise.
32172 (flow_find_head_matching_sequence): Likewise.
32173 (try_head_merge_bb): Likewise.
32174 * cfgrtl.c (rtl_merge_blocks): Likewise.
32175 (try_redirect_by_replacing_jump): Likewise.
32176 (rtl_tidy_fallthru_edge): Likewise.
32177 * combine.c (do_SUBST_MODE): Likewise.
32178 (insn_a_feeds_b): Likewise.
32179 (combine_instructions): Likewise.
32180 (can_combine_p): Likewise.
32181 (try_combine): Likewise.
32182 (find_split_point): Likewise.
32184 (simplify_set): Likewise.
32185 (distribute_notes): Likewise.
32186 * cprop.c (cprop_jump): Likewise.
32187 * cse.c (cse_extended_basic_block): Likewise.
32188 * df-problems.c (can_move_insns_across): Likewise.
32189 * final.c (final): Likewise.
32190 (final_scan_insn): Likewise.
32191 * function.c (emit_use_return_register_into_block): Likewise.
32192 * gcse.c (insert_insn_end_basic_block): Likewise.
32193 * haifa-sched.c (sched_init): Likewise.
32194 * ira.c (find_moveable_pseudos): Likewise.
32195 * loop-invariant.c (find_invariant_insn): Likewise.
32196 * lra-constraints.c (curr_insn_transform): Likewise.
32197 * optabs.c (prepare_cmp_insn): Likewise.
32198 * postreload.c (reload_combine_recognize_const_pattern):
32200 * reload.c (find_reloads): Likewise.
32201 (find_reloads_address_1): Likewise.
32202 * reorg.c (delete_scheduled_jump): Likewise.
32203 (steal_delay_list_from_target): Likewise.
32204 (steal_delay_list_from_fallthrough): Likewise.
32205 (try_merge_delay_insns): Likewise.
32206 (redundant_insn): Likewise.
32207 (fill_simple_delay_slots): Likewise.
32208 (fill_slots_from_thread): Likewise.
32209 (delete_computation): Likewise.
32210 (relax_delay_slots): Likewise.
32211 * sched-deps.c (sched_analyze_2): Likewise.
32212 * sched-rgn.c (add_branch_dependences): Likewise.
32214 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32216 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
32217 that is trivially ded on non cc0 targets.
32218 (simplify_set): Likewise.
32219 (mark_used_regs_combine): Likewise.
32220 * cse.c (new_basic_block): Likewise.
32221 (fold_rtx): Likewise.
32222 (cse_insn): Likewise.
32223 (cse_extended_basic_block): Likewise.
32224 (set_live_p): Likewise.
32225 * rtlanal.c (canonicalize_condition): Likewise.
32226 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
32228 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32230 * conditions.h: Define macros even if HAVE_cc0 is undefined.
32231 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
32232 * final.c: Likewise.
32233 * jump.c: Likewise.
32234 * recog.c: Likewise.
32235 * recog.h: Declare functions even when HAVE_cc0 is undefined.
32236 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
32238 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32240 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
32241 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
32242 * builtins.c (expand_builtin): Remove check if
32243 EH_RETURN_DATA_REGNO is defined.
32244 * df-scan.c (df_bb_refs_collect): Likewise.
32245 (df_get_exit_block_use_set): Likewise.
32246 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
32247 * ira-lives.c (process_bb_node_lives): Likewise.
32248 * lra-lives.c (process_bb_lives): Likewise.
32250 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
32252 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
32253 FIRST_PSEUDO_REG): New.
32254 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
32255 (ARG_POINTER_REGNUM): Define to ARGP_REG.
32256 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
32257 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
32258 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
32259 (FIRST_INT_REG): New.
32260 (LAST_INT_REG): New.
32261 (FIRST_*_REG): Define using *_REG.
32262 (LAST_*_REG): Ditto.
32263 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
32264 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
32265 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
32267 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32269 * expmed.c: (synth_mult): Only assume overlapping
32270 shift with previous steps in alg_sub_t_m2 case.
32272 2015-04-21 Richard Biener <rguenther@suse.de>
32274 PR tree-optimization/65650
32275 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
32276 transitions involving copies.
32277 (set_lattice_value): Adjust for copy lattice state.
32278 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
32279 if that doesn't dominate the merge point.
32280 (bit_value_unop): Adjust what we treat as varying mask.
32281 (bit_value_binop): Likewise.
32282 (bit_value_assume_aligned): Likewise.
32283 (evaluate_stmt): When we simplified to a SSA name record a copy
32284 instead of dropping to varying.
32285 (visit_assignment): Simplify.
32287 * gimple-match.h (gimple_simplify): Add another callback.
32288 * gimple-fold.c (fold_stmt_1): Adjust caller.
32289 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
32290 for the 2nd callback.
32291 * gimple-match-head.c (gimple_simplify): Add a callback that is
32292 used to valueize the stmt operands and use it that way.
32294 2015-04-21 Richard Biener <rguenther@suse.de>
32296 PR tree-optimization/65788
32297 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
32299 2015-04-21 Richard Biener <rguenther@suse.de>
32301 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
32302 vec_construct cost by vec_stmt_cost.
32304 2015-04-21 Richard Biener <rguenther@suse.de>
32306 * cfghooks.h (create_basic_block): Replace with two overloads
32307 for RTL and GIMPLE.
32308 (split_block): Likewise.
32309 * cfghooks.c (split_block): Rename to ...
32310 (split_block_1): ... this.
32311 (split_block): Add two type-safe overloads for RTL and GIMPLE.
32312 (split_block_after_labels): Call split_block_1.
32313 (create_basic_block): Rename to ...
32314 (create_basic_block_1): ... this.
32315 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
32316 (create_empty_bb): Call create_basic_block_1.
32317 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
32318 split_block_after_labels.
32319 * omp-low.c (expand_parallel_call): Likewise.
32320 (expand_omp_target): Likewise.
32321 (simd_clone_adjust): Likewise.
32322 * tree-chkp.c (chkp_get_entry_block): Likewise.
32323 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
32324 create_basic_block overload.
32325 (cgraph_node::expand_thunk): Likewise.
32326 * tree-cfg.c (make_blocks): Likewise.
32327 (handle_abnormal_edges): Likewise.
32328 * tree-inline.c (copy_bb): Likewise.
32330 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32332 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
32334 (*xor_one_cmplsidi3_ze): Likewise.
32336 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
32338 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
32339 use df_remove_problem rather than manually removing problems, leaving
32340 holes in df->problems_in_order[].
32342 2015-04-21 Tom de Vries <tom@codesourcery.com>
32344 PR tree-optimization/65802
32345 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
32347 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32349 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
32351 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
32352 at '.'. Assert that there's enough space for everything.
32354 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
32356 PR tree-optimization/64950
32358 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
32361 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
32364 2015-04-20 Shiva Chen <shiva0217@gmail.com>
32366 PR rtl-optimization/64916
32367 * cfgcleanup.c (values_equal_p): New function.
32368 (can_replace_by): Use it.
32370 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
32373 * doc/invoke.texi ([-Wnarrowing]): Update.
32375 2015-04-20 Jeff Law <law@redhat.com>
32377 PR tree-optimization/65658
32378 * tree-ssa-threadupdate.c (redirection_block_p): Remove
32379 redundant test for GIMPLE_ASSIGN in last change.
32381 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
32383 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
32384 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
32385 (legitimize_tls_address): Ditto.
32386 (ix86_expand_move): Ditto.
32387 (ix86_expand_binary_operator): Remove reload_in_progress checks.
32388 (ix86_expand_unary_operator): Ditto.
32389 * config/i386/predicates.md (index_register_operand): Ditto.
32391 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
32393 * reorg.c (try_merge_delay_insns): Improve correctness checking
32394 for targets with multiple delay slots.
32396 2015-04-20 Jeff Law <law@redhat.com>
32398 PR tree-optimization/65658
32399 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
32402 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
32404 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
32405 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
32408 2015-04-20 Jakub Jelinek <jakub@redhat.com>
32411 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
32413 2015-04-20 Richard Biener <rguenther@suse.de>
32415 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
32416 * gimple-fold.c (gimple_build_valueize): New function.
32417 (gimple_build): Always use gimple_build_valueize as valueize hook.
32419 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
32422 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
32423 and overwrite variable parts if <= 1/2 the elements are variable.
32425 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
32427 PR rtl-optimization/65805
32428 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
32429 Don't use difference of offset and previous offset if
32430 update_sp_offset is non-zero.
32431 (eliminate_regs_in_insn): Ditto.
32432 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
32433 lra_eliminate_regs_1 call.
32434 * lra-constraints.c (get_equiv_with_elimination): Ditto.
32436 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
32438 * hash-table.h: Remove version of hash_table that stored value_type *.
32439 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
32440 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
32441 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
32442 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
32443 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
32444 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
32445 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
32446 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
32447 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
32448 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
32449 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
32450 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
32451 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
32452 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
32453 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
32454 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
32456 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32457 Jakub Jelinek <jakub@redhat.com>
32460 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
32461 subsequent SH_NONE operand does not overwrite an existing *special
32463 (adjust_extract): Handle case where a vec_extract operation is
32464 wrapped in a PARALLEL.
32466 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
32469 * config/i386/i386.c (ix86_binds_local_p): Define only if
32470 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
32472 2015-04-17 Jeff Law <law@redhat.com>
32474 PR tree-optimization/47679
32475 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
32476 * tree-ssa-scopedtables.c: New file.
32477 * tree-ssa-scopedtables.h: New file.
32478 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
32479 (const_and_copies): Change name/type.
32480 (record_const_or_copy): Move into tree-ssa-scopedtables.c
32481 (record_const_or_copy_1): Similarly.
32482 (restore_vars_to_original_value): Similarly.
32483 (pass_dominator::execute): Create and destroy const_and_copies table.
32484 (thread_across_edge): Update passing of const_and_copies.
32485 (record_temporary_equivalence): Use method calls rather than
32486 manipulating const_and_copies directly.
32487 (record_equality, cprop_into_successor_phis): Similarly.
32488 (dom_opt_dom_walker::before_dom_children): Similarly.
32489 (dom_opt_dom_walker::after_dom_children): Similarly.
32490 (eliminate_redundant_computations): Similarly.
32491 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
32492 (record_temporary_equivalence): Likewise.
32493 (invalidate_equivalences): Likewise.
32494 (record_temporary_equivalences_from_phis): Update due to type
32495 change of const_and_copies. Use method calls rather than
32496 manipulating the stack directly.
32497 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
32498 (thread_through_normal_block, thread_across_edge): Likewise.
32499 (thread_across_edge): Likewise.
32500 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
32501 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
32503 (identify_jump_threads): Update due to type change of equiv_stack.
32504 (finalize_jump_threads): Delete the equiv_stack when complete.
32506 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
32508 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32509 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
32510 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
32512 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
32515 * config.gcc: Exit with a comment when we do not have a major version
32516 number for the FreeBSD target.
32518 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32521 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
32522 maybe_allows_mem bitfields.
32523 (maybe_allows_none_start, maybe_allows_none_end,
32524 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
32525 maybe_allows_mem_end): New variables.
32526 (compute_maybe_allows): New function.
32527 (add_constraint): Use it to initialize maybe_allows_reg and
32528 maybe_allows_mem fields.
32529 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
32530 is_address constraints such that those that allow neither mem nor
32531 reg come first, then those that only allow reg but not mem, then
32532 those that only allow mem but not reg, then the rest.
32533 (write_allows_reg_mem_function): New function.
32534 (write_tm_preds_h): Call it.
32535 * stmt.c (parse_output_constraint, parse_input_constraint): Use
32536 the generated insn_extra_constraint_allows_reg_mem function
32537 instead of always setting *allows_reg = true; *allows_mem = true;
32538 for unknown extra constraints.
32540 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
32543 * output.h (default_binds_local_p_3): New.
32544 * varasm.c (default_binds_local_p_3): Make it public. Take an
32545 argument to indicate if common symbol may be local. If common
32546 symbol may be local, treat non-external variable as defined
32548 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
32549 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
32550 * config/i386/i386.c (ix86_binds_local_p): New.
32551 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
32552 ix86_binds_local_p.
32554 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32557 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
32558 trying mem_loc_descriptor on XEXP (rtl, 0).
32560 2015-04-17 Martin Liska <mliska@suse.cz>
32562 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
32563 Release symbol_compare_collection.
32564 * ipa-reference.c: Add TODO that a vector should be released.
32566 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
32569 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
32570 to new AVR-LibC file layout (bug #44574).
32571 (*avrlibc_devicelib): Same.
32572 * config/avr/avr-mcus.def: Adjust comments.
32573 * config/avr/avr.opt (nodevicelib): Adjust help.
32575 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
32577 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
32579 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
32582 * gimplify.c (gimplify_init_constructor): Always emit a
32583 side-effecting constructor.
32585 2015-04-17 Tom de Vries <tom@codesourcery.com>
32587 PR tree-optimization/64950
32588 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
32589 in cfun->curr_properties.
32590 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
32591 if we generate an IFN_VA_ARG.
32592 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
32593 function if PROP_gimple_lva is not set in src function.
32595 2015-04-17 Tom de Vries <tom@codesourcery.com>
32596 Michael Matz <matz@suse.de>
32598 PR tree-optimization/64950
32599 * gimple-iterator.c (update_modified_stmts): Remove static.
32600 * gimple-iterator.h (update_modified_stmts): Declare.
32601 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
32602 (gimplify_va_arg_internal): New function.
32603 (gimplify_va_arg_expr): Use IFN_VA_ARG.
32604 * gimplify.h (gimplify_va_arg_internal): Declare.
32605 * internal-fn.c (expand_VA_ARG): New unreachable function.
32606 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
32607 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
32608 (expand_ifn_va_arg): New function.
32609 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
32610 (pass_stdarg::execute): Call expand_ifn_va_arg.
32611 (pass_data_lower_vaarg): New pass_data.
32612 (pass_lower_vaarg): New gimple_opt_pass.
32613 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
32614 (make_pass_lower_vaarg): New function.
32615 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
32616 properties_required field.
32617 * passes.def (all_passes): Add pass_lower_vaarg.
32618 * tree-pass.h (PROP_gimple_lva): Add define.
32619 (make_pass_lower_vaarg): Declare.
32621 2015-04-17 Tom de Vries <tom@codesourcery.com>
32623 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
32624 * calls.c (call_expr_flags): Same.
32626 2015-04-17 Tom de Vries <tom@codesourcery.com>
32628 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
32629 (pass_stdarg::execute): ... here.
32631 2015-04-17 Tom de Vries <tom@codesourcery.com>
32632 Michael Matz <matz@suse.de>
32634 * tree-cfg.c (make_blocks_1): Factor out of ...
32635 (make_blocks): ... here.
32636 (make_edges_bb): Factor out of ...
32637 (make_edges): ... here.
32638 (gimple_find_sub_bbs): New function.
32639 * tree-cfg.h (gimple_find_sub_bbs): Declare.
32641 2015-04-17 Tom de Vries <tom@codesourcery.com>
32643 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
32645 2015-04-17 Yury Gribov <y.gribov@samsung.com>
32647 * asan.c (set_sanitized_sections): New function.
32648 (section_sanitized_p): Ditto.
32649 (asan_protect_global): Optionally sanitize user-defined
32651 * asan.h (set_sanitized_sections): Declare new function.
32652 * common.opt (fsanitize-sections): New option.
32653 * doc/invoke.texi (-fsanitize-sections): Document new option.
32654 * opts-global.c (handle_common_deferred_options): Handle new
32657 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32660 * dwarf2out.c (loc_list_from_tree): Return NULL
32661 for DEBUG_EXPR_DECL.
32663 2015-04-17 Christian Bruel <christian.bruel@st.com>
32665 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
32668 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32670 * ira-color.c (setup_left_conflict_sizes_p): Do not process
32671 node itself when computing left conflict subnode size.
32673 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
32675 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
32676 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
32677 *fop_<mode>_1_sse using enabled attribute. Use
32678 register_mixssei387nonimm_operand operand 1 predicate. Change
32679 alternative 3 constraints from "x" to "v".
32681 2015-04-16 Richard Biener <rguenther@suse.de>
32683 PR tree-optimization/65774
32684 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
32685 bit-value tracking on.
32687 2015-04-16 Richard Biener <rguenther@suse.de>
32689 PR tree-optimization/64277
32690 * tree-vrp.c (check_array_ref): Fix anti-range handling,
32691 simplify upper bound handling.
32692 (search_for_addr_array): Simplify.
32693 (check_array_bounds): Handle ADDR_EXPRs here.
32694 (check_all_array_refs): Simplify.
32696 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
32698 * config/i386/i386.c (print_reg): Rewrite function.
32700 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32702 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
32703 Invert the condition.
32705 2015-04-16 Renlin Li <renlin.li@arm.com>
32707 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
32708 simplifications for UNSIGNED_FLOAT.
32710 2015-04-16 Nick Clifton <nickc@redhat.com>
32712 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
32714 (enum rl78_cpu_type): New.
32715 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
32716 (umulhi3_shift_virt): Remove m constraint from operand 1.
32717 (umulqihi3_virt): Likewise.
32718 * config/rl78/rl78.c (rl78_option_override): Add code to process
32719 -mcpu and -mmul options.
32720 (rl78_alloc_physical_registers): Add code to handle divhi and
32721 divsi valloc attributes.
32722 (set_origin): Likewise.
32723 * config/rl78/rl78.h (RL78_MUL_G14): Define.
32724 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
32725 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
32727 (ASM_SPEC): Pass -mcpu on to assembler.
32728 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
32729 (mulqi3_rl78): Likewise.
32730 (mulhi3_g13): Likewise.
32731 (mulhi3): Generate the G13 or G14 versions of the insn directly.
32732 (mulsi3): Likewise.
32733 (mulhi3_g14): Add clobbers of AX and BC.
32734 (mulsi3_g14): Likewise.
32735 (mulsi3_g13): Likewise.
32736 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
32737 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
32738 * config/rl78/rl78.opt (mmul): Initialise value to
32740 (mcpu): New option.
32741 (m13, m14, mrl78): New option aliases.
32742 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
32743 (MULTILIB_DIRNAMES): Add g13 and g14.
32744 * doc/invoke.texi: Document -mcpu and -mmul options.
32746 2015-04-16 Richard Biener <rguenther@suse.de>
32748 * tree-ssa-ccp.c (likely_value): See if we have operands that
32749 are marked as never simulate again and return CONSTANT in this
32751 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
32752 not have any operands that will be simulated again as
32753 not being simulated again.
32755 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
32757 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
32758 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
32759 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
32761 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
32763 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
32764 *float<SWI48:mode><MODEF:mode>2_sse.
32765 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
32767 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
32770 2015-04-15 Tom de Vries <tom@codesourcery.com>
32773 * function.c (push_dummy_function): New function.
32774 (init_dummy_function_start): Use push_dummy_function.
32775 (pop_dummy_function): New function. Factored out of ...
32776 (expand_dummy_function_end): ... here.
32777 * function.h (push_dummy_function, pop_dummy_function): Declare.
32778 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
32779 pop_dummy_function.
32780 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
32782 2015-04-15 Jeff Law <law@redhat.com>
32784 PR tree-optimization/47679
32785 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
32786 need for forward declaration in upcoming changes.
32787 (record_conditions, record_edge_info): Likewise.
32789 PR rtl-optimization/42522
32790 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
32791 SIGN_EXTRACT as a whole object rather than simplifying
32794 2015-04-15 Jakub Jelinek <jakub@redhat.com>
32797 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
32798 and GIMPLE_PREDICT use break instead of return true. For
32799 GIMPLE_EH_DISPATCH, compare dispatch region.
32801 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
32803 * doc/extend.texi (__sync Builtins): Simplify some text. Update
32804 details about the implementation. Make clear preference for
32805 __atomic builtins. Reduce possibility of future change.
32807 2015-04-15 Nick Clifton <nickc@redhat.com>
32809 * config/rx/rx.opt (mallow-string-insns): New option.
32810 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
32811 builtin if string instructions are denied.
32812 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
32813 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
32815 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
32816 * config/rx/rx.md (movstr): Enable pattern only if string
32817 instructions are allowed.
32818 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
32819 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
32820 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
32821 (MULTILIB_DIRNAMES): Add no-strings.
32822 * doc/invoke.texi: Document -mno-allow-string-insns.
32824 2015-04-15 Alan Modra <amodra@gmail.com>
32828 PR middle-end/36043
32829 * calls.c (load_register_parameters): Don't load past end of
32830 mem unless suitably aligned.
32832 2015-04-15 Nick Clifton <nickc@redhat.com>
32834 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
32835 decrement instruction as being frame related.
32836 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
32838 If zero extending a function address enclose the operation in
32840 (rl78_preferred_reload_class): New function.
32841 (TARGET_PREFERRED_RELOAD_CLASS): Define.
32842 * config/rl78/rl78.md: Remove useless constraints in expanders.
32843 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
32844 (mulhi3_rl78): Likewise.
32845 (mulhi3_g13): Likewise.
32846 (mulsi3_rl78): Likewise.
32847 (es_addr): Move to before the multiply patterns.
32849 2015-04-15 Alan Modra <amodra@gmail.com>
32851 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
32852 and sequence_stack. Add seq.
32853 (seq_stack): Delete.
32854 * function.c (prepare_function_start): Don't access x_last_insn.
32855 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
32856 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
32857 * emit_rtl.c (start_sequence, push_topmost_sequence,
32858 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
32859 sequence accessors.
32860 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
32861 remove_insn): Likewise. Simplify.
32862 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
32863 and pop_topmost_sequence.
32864 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
32866 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
32868 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
32871 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
32874 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
32876 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
32877 (LEGACY_INT_REGNO_P): Ditto.
32878 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
32879 (ANY_MASK_REG_P): Remove.
32880 (BND_REG_P): Rename from ANY_BND_REG_P.
32881 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
32882 legacy integer registers. Do not handle MMX_REG_P in a special way.
32883 Merge 64byte and 32byte SSE handling.
32885 2015-04-14 Nick Clifton <nickc@redhat.com>
32887 * expr.c (expand_assignment): Force an address offset computation
32888 into a register before changing its mode.
32889 (expand_expr_real_1): Likewise.
32891 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
32893 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
32894 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
32895 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
32896 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
32897 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
32898 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
32899 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
32900 and __aarch64_vget_lane_any.
32902 2015-04-14 Jakub Jelinek <jakub@redhat.com>
32904 PR rtl-optimization/65761
32905 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
32906 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
32908 2015-04-14 Richard Biener <rguenther@suse.de>
32910 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
32911 (graphite_can_represent_scev): Use POINTER_TYPE_P.
32913 2015-04-14 Richard Biener <rguenther@suse.de>
32915 PR tree-optimization/65758
32916 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
32918 (ccp_lattice_meet): Likewise.
32919 (bit_value_unop): Likewise.
32920 (bit_value_binop): Likewise.
32921 (bit_value_assume_aligned): Likewise.
32923 2015-04-14 Christian Bruel <christian.bruel@st.com>
32925 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
32928 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
32930 PR tree-optimization/63387
32931 * match.pd ((x unord x) | (y unord y) -> (x unord y),
32932 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
32934 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
32936 * config/i386/predicates.md (any_QIreg_operand): Rename from
32937 q_regs_operand. Do not process subregs.
32938 (QIreg_operand): Use QI_REGNO_P predicate.
32939 (ext_QIreg_operand): Ditto.
32940 (ext_register_operand): Ditto.
32941 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
32942 (AND splitters): Ditto.
32943 (AND with -65536 splitter): Add SWI48 mode for operand 0.
32944 (AND with -256 splitter): Use any_QIreg_operand predicate and
32945 SWI248 mode for operand 0.
32946 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
32947 mode for operand 0.
32948 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
32950 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
32952 * doc/plugins.texi: Rewrite first introductory paragraph.
32954 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32956 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
32957 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
32959 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32961 * ipa-profie.c (ipa_profile): Check number of parameters
32962 and possible polymorphic call targets before
32965 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
32967 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
32968 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
32970 2015-04-13 Richard Biener <rguenther@suse.de>
32972 PR tree-optimization/65204
32973 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
32974 takens for bit-CCP.
32976 2015-04-13 Richard Biener <rguenther@suse.de>
32979 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
32980 and cond_not_taken_branch_cost to 4 and 2.
32981 (bdver2_cost): Likewise.
32982 (bdver3_cost): Likewise.
32983 (bdver4_cost): Likewise.
32985 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32987 * hash-table.h (hash_table constructor): Add mem stats.
32988 (alloc_entries): Likewise.
32990 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32992 * ipa-cp.c (ipcp_driver): Relase prev_edge.
32993 * passes.c (execute_one_pass): Only add transform if pass has one.
32995 2015-04-12 Joseph Myers <joseph@codesourcery.com>
32997 * config/i386/i386.c (ix86_option_override_internal): Don't set
32998 -fprefetch-loop-arrays if optimizing for size.
33000 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33001 Gerald Pfeifer <gerald@pfeifer.com>
33003 * doc/contrib.texi (Contributors): Add Martin Jambor and
33006 2015-04-12 Jakub Jelinek <jakub@redhat.com>
33008 * BASE-VER: Set to 6.0.0.
33010 PR tree-optimization/65747
33011 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
33012 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
33014 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
33016 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
33017 sentence. Improve grammar.
33019 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
33021 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
33023 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
33026 * ipa-inline-transform.c (speculation_removed): Remove static var.
33027 (check_speculations): New function.
33028 (clone_inlined_nodes): Do not check spculations.
33029 (inline_call): Call check_speculations.
33030 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
33031 consider non-invariants.
33033 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
33034 Martin Liska <mliska@suse.cz>
33037 * ipa-icf.c (sem_item::compare_cgraph_references): function and
33038 variable can not match.
33039 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
33040 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
33042 2015-04-11 Jakub Jelinek <jakub@redhat.com>
33044 PR tree-optimization/65735
33045 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
33046 Remove visited_phis argument, add visited_bbs, avoid recursing into the
33047 same bb rather than just into the same phi node.
33048 (thread_through_normal_block): Adjust caller.
33050 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
33052 * doc/contrib.texi (Contributors): Add Ira Rosen.
33054 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
33056 * gcov.c (find_source): Fix miswording in error message.
33057 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
33058 (ix86_expand_sse_comi_round): Fix typo in error message.
33060 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
33062 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
33064 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
33066 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
33068 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
33071 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
33072 Print bad_spills_num and insn_pseudos_num.
33074 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33077 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
33078 when creating +1 values for SImode.
33080 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
33083 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
33086 2015-04-10 Jakub Jelinek <jakub@redhat.com>
33087 Iain Sandoe <iain@codesourcery.com>
33090 * configure: Regenerate.
33092 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
33095 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
33097 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
33099 * doc/contrib.texi (Contributors): Add John Marino.
33101 2015-04-09 Jakub Jelinek <jakub@redhat.com>
33103 PR tree-optimization/65709
33104 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
33105 TREE_TYPE (TREE_TYPE (t)).
33107 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
33110 * lra-int.h (lra_bad_spill_regno_start): New.
33111 * lra.c (lra_bad_spill_regno_start): New.
33112 (lra): Set up lra_bad_spill_regno_start. Set up
33113 lra_constraint_new_regno_start unconditionally.
33114 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
33117 2015-04-09 Marek Polacek <polacek@redhat.com>
33118 Jakub Jelinek <jakub@redhat.com>
33120 PR middle-end/65554
33121 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
33122 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
33125 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
33127 PR rtl-optimization/65693
33128 * combine.c (is_parallel_of_n_reg_sets): Move outside of
33131 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
33134 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
33135 device specs file if "device-specs%s" didn't resolve to a path.
33137 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
33140 * config/i386/i386.c (fixup_modeless_constant): New.
33141 (ix86_expand_args_builtin): Fixup modeless constant operand.
33142 (ix86_expand_round_builtin): Ditto.
33143 (ix86_expand_special_args_builtin): Ditto.
33144 (ix86_expand_builtin): Ditto.
33146 2015-04-09 Jakub Jelinek <jakub@redhat.com>
33149 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
33150 any pow2 integer in between 2 and 0x80000000U inclusive.
33152 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
33154 PR rtl-optimization/65693
33155 * combine.c (is_parallel_of_n_reg_sets): Change first argument
33156 from an rtx_insn * to an rtx.
33157 (try_combine): Adjust both callers. Use it once more.
33159 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33161 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
33162 (chkp_make_static_const_bounds): Search existing
33163 symbol by assembler name. Use make_decl_one_only.
33164 (chkp_get_zero_bounds_var): Remove node search which
33165 is now performed in chkp_make_static_const_bounds.
33166 (chkp_get_none_bounds_var): Likewise.
33168 2015-04-08 Michael Witten <mfwitten@gmail.com>
33170 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
33173 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33175 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
33177 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
33179 * doc/extend.texi (__sync Builtins): Fix grammar.
33181 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33183 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
33185 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33187 * varasm.c (emit_local): Move definition of align.
33189 2015-04-08 Julian Brown <julian@codesourcery.com>
33191 * config/nvptx/mkoffload.c (process): Support variable mapping.
33193 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
33195 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
33197 (alpha_write_one_linkage): Correct typo.
33199 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33201 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
33203 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
33205 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
33207 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33209 * tree-chkp.h (chkp_insert_retbnd_call): New.
33210 * tree-chkp.c (chkp_insert_retbnd_call): New.
33211 * ipa-split.c (insert_bndret_call_after): Remove.
33212 (split_function): Use chkp_insert_retbnd_call.
33213 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
33214 bounds for instrumented functions.
33216 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
33219 * calls.c (initialize_argument_information): When producing tail
33220 call also turn SSA_NAMES passed by references to original PARM_DECLs
33222 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
33225 * lra-remat.c (do_remat): Process input and non-input insn
33226 registers separately.
33228 2015-04-07 Jakub Jelinek <jakub@redhat.com>
33231 * valtrack.c (debug_lowpart_subreg): New function.
33232 (dead_debug_insert_temp): Use it.
33234 PR middle-end/65680
33235 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
33236 into signed HOST_WIDE_INT the same as negative bit_offset.
33238 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
33240 * ipa-comdats.c (ipa_comdats): Visit all thunks
33241 to set proper comdat group.
33243 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33246 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
33247 on constants for NEON VSTRUCT modes.
33249 2015-04-07 Jakub Jelinek <jakub@redhat.com>
33250 Iain Sandoe <iain@codesourcery.com>
33253 * configure: Regenerate.
33255 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
33258 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
33259 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
33260 that LFD is used to load double constants instead of LFS. Add
33261 defaults for all costs structures. Add comments for missing
33262 initialization fields.
33263 (size32_cost): Likewise.
33264 (size64_cost): Likewise.
33265 (rs64a_cost): Likewise.
33266 (mpccore_cost): Likewise.
33267 (ppc403_cost): Likewise.
33268 (ppc405_cost): Likewise.
33269 (ppc440_cost): Likewise.
33270 (ppc476_cost): Likewise.
33271 (ppc601_cost): Likewise.
33272 (ppc603_cost): Likewise.
33273 (ppc604_cost): Likewise.
33274 (ppc604e_cost): Likewise.
33275 (ppc620_cost): Likewise.
33276 (ppc630_cost): Likewise.
33277 (ppccell_cost): Likewise.
33278 (ppc750_cost): Likewise.
33279 (ppc7450_cost): Likewise.
33280 (ppc8540_cost): Likewise.
33281 (ppce300c2c3_cost): Likewise.
33282 (ppce500mc_cost): Likewise.
33283 (ppce500mc64_cost): Likewise.
33284 (ppce5500_cost): Likewise.
33285 (ppce6500_cost): Likewise.
33286 (titan_cost): Likewise.
33287 (power4_cost): Likewise.
33288 (power6_cost): Likewise.
33289 (power7_cost): Likewise.
33290 (power8_cost): Likewise.
33291 (ppca2_cost): Likewise.
33292 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
33294 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
33295 instead of XXLOR to copy SFmode to clear out dirty bits created
33296 when SFmode denormals are generated.
33297 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
33298 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
33300 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
33302 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
33303 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
33304 * config/aarch64/aarch64-tune.md: Regenerate.
33306 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
33308 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
33309 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
33310 * config/arm/arm-cores.def (exynos-m1): New core.
33311 * config/arm/arm-tune.md: Regenerate.
33312 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
33313 * config/arm/bpabi.h: Likewise.
33315 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
33317 * ipa-cp (set_single_call_flag): Remove too
33318 restrictive assert.
33320 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
33322 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
33323 GOMP_offload_unregister from the destructor.
33325 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
33327 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
33328 flags for instrumentation thunk.
33329 (chkp_produce_thunks): Likewise.
33331 2015-04-05 Martin Liska <mliska@suse.cz>
33334 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
33335 has computed data structure.
33336 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33338 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
33340 * invoke.texi (inline-unit-growth): Increase growth to 20%
33341 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
33343 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
33346 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
33348 (lra_rematerialization_iter): New.
33349 * lra.c (lra): Initialize lra_rematerialization_iter.
33350 Stop updating lra_constraint_new_regno_start after switching of
33351 inheritance and rematerialization.
33352 * lra-remat.c (lra_rematerialization_iter): New.
33353 (lra_remat): Add printing pass iteration. Do rematerialization
33354 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
33356 2015-04-04 Richard Biener <rguenther@suse.de>
33358 PR tree-optimization/64909
33359 PR tree-optimization/65660
33360 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
33361 to take a cost vector for scalar iteration cost.
33362 (vect_get_single_scalar_iteration_cost): Likewise.
33363 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
33364 Compute the scalar iteration cost into a cost vector.
33365 (vect_get_known_peeling_cost): Use the scalar cost vector to
33366 account for the cost of the peeled iterations.
33367 (vect_estimate_min_profitable_iters): Likewise.
33368 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
33371 2015-04-04 Alan Modra <amodra@gmail.com>
33375 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
33376 0.0 constant unless TARGET_VSX.
33377 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
33380 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33383 * ipa-inline-transform.c (inline_call): Skip sanity check to work
33386 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33389 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
33390 speculative indirect edges to avoid ordering issue.
33392 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33395 * ipa-inline.c (edge_badness): Add combined size to the denominator.
33397 2015-04-03 Jakub Jelinek <jakub@redhat.com>
33399 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
33400 TYPE_ARTIFICIAL on the .omp_data* types.
33402 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33404 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
33405 instrumentation thunks.
33407 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33409 * config/i386/i386.c (ix86_expand_call): Avoid nested
33410 PARALLEL in returned call value.
33412 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33414 * lto-cgraph.c (input_cgraph_1): Always link instrumented
33415 assembler name with original one.
33417 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33419 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
33421 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33423 Revert parts of r216820.
33424 * config/i386/i386.md (movqi_internal): Correct type calculation
33425 for alternatives 3 and 5.
33427 2015-04-02 Jakub Jelinek <jakub@redhat.com>
33429 PR preprocessor/61977
33430 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
33431 predefine __vector/__bool/__pixel macros nor context sensitive
33432 macros for CLK_ASM.
33433 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
33435 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
33437 * config/pa/pa.c (pa_output_move_double): Directly handle register
33438 indexed memory operand. Simplify handling of scaled register indexed
33441 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33444 * config/i386/linux-common.h (MPX_SPEC): New.
33445 (CHKP_SPEC): Add MPX_SPEC.
33446 * doc/invoke.texi (-fcheck-pointer-boudns): Document
33447 possible issues with '-z bndplt' support in linker.
33449 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33451 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
33452 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
33453 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
33454 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
33455 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
33457 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
33459 * config/i386/sync.md (UNSPEC_MOVA): Remove.
33460 (atomic_load<mode>): Change operand 0 predicate to
33461 nonimmediate_operand and fix up the destination when needed.
33463 (atomic_loaddi_fpu): Use UNSPEC_LDA.
33464 (atomic_store<mode>): Change operand 1 predicate to
33465 nonimmendate_operand and move the source to register when needed.
33467 (atomic_store<mode>_1): Use UNSPEC_STA.
33468 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
33469 Fix moves from memory operand. Use UNSPEC_STA.
33471 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
33473 * expmed.c (strict_volatile_bitfield_p): Check that the access will
33474 not cross a MODESIZE boundary.
33475 (store_bit_field, extract_bit_field): Added assertions in the
33476 strict volatile bitfields code path.
33478 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
33481 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
33482 Increase args array size by one to avoid buffer overflow.
33484 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
33486 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
33488 * ipa-inline.c (edge_badness): Add wrapper penalty.
33489 (sum_callers): Move up.
33490 (inline_small_functions): Set single_caller.
33491 * ipa-inline.h (inline_summary): Add single_caller.
33492 * ipa-split.c (split_function): Set split_part.
33493 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
33494 * cgraph.h (cgraph_node): Add split_part.
33496 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
33499 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
33500 Do not split operands 0 and operands 2 to halfmode.
33501 (atomic_compare_and_swap<mode>): Update for
33502 atomic_compare_and_swap<dwi>_doubleword changes.
33504 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
33506 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
33507 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
33508 no caching is done.
33510 2015-03-31 Martin Liska <mliska@suse.cz>
33513 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
33514 has already filled up function summary.
33515 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33517 2015-03-31 Richard Biener <rguenther@suse.de>
33519 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
33522 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
33524 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
33526 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
33527 (s390_asm_output_function_label): Adapt to new signature of
33528 s390_function_num_hotpatch_hw
33529 Optimise the code generating assembler output.
33530 Add comments to assembler file.
33532 2015-03-31 Richard Biener <rguenther@suse.de>
33534 PR middle-end/65626
33535 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
33536 of the noreturn call so it is last and cleanup_control_flow_bb
33537 can do the CFG part.
33539 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
33542 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
33543 same_comdat_group for external symbols.
33544 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
33545 infinite same_comdat_group traversal loop.
33547 2015-03-31 Jakub Jelinek <jakub@redhat.com>
33550 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
33551 automatically to $headers.
33553 2015-03-30 Jakub Jelinek <jakub@redhat.com>
33556 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
33557 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
33559 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
33561 * ipa-prop.c (param_type_may_change_p): Likewise.
33562 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
33563 (remove_unused_scope_block_p): Add in_ctor_dtor_block
33564 argument. Before inlining, preserve
33565 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
33566 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
33568 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
33570 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33573 * ipa-inline.c (edge_badness): Base denominator on callee's
33576 2015-03-27 Martin Jambor <mjambor@suse.cz>
33579 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
33580 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
33581 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
33582 node_calling_single_call.
33583 * ipa-cp.c (count_callers): New function.
33584 (set_single_call_flag): Likewise.
33585 (initialize_node_lattices): Count callers and set single_flag_call if
33587 (incorporate_penalties): New function.
33588 (good_cloning_opportunity_p): Use it, dump new flags.
33589 (propagate_constants_topo): Set node_within_scc flag if appropriate.
33590 * doc/invoke.texi (ipa-cp-recursion-penalty,
33591 ipa-cp-single-call-pentalty): Document.
33593 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33596 * symtab.c (symtab_node::get_partitioning_class): Register vars
33598 * varpool.c (symbol_table::output_variables) Do not assemble unefined
33599 decls for non-symbols.
33601 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
33604 * output.h (default_binds_local_p_2): New.
33605 * varasm.c (default_binds_local_p_2): Renamed to ...
33606 (default_binds_local_p_3): This. Don't return true on protected
33607 data symbol if protected data may be external.
33608 (default_binds_local_p): Use default_binds_local_p_3.
33609 (default_binds_local_p_1): Likewise.
33610 (default_binds_local_p_2): New.
33611 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
33612 default_binds_local_p_2 if TARGET_MACHO is undefined.
33614 2015-03-27 Jakub Jelinek <jakub@redhat.com>
33617 * config/i386/i386.c (legitimize_pic_address): If base
33618 is SYMBOL_REF or LABEL_REF using %rip addressing, force
33619 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
33621 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33624 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
33627 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33630 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
33631 of optimized out indirect call.
33632 (redirect_to_unreachable): Always build symbol table node for
33633 BUILT_IN_UNREACHABLE
33635 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
33638 * ira-costs.c (record_reg_classes): Process all constraint string
33641 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
33643 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
33647 * config/c6x/constraints.md (S3): New constraint.
33648 * config/c6x/c6x.md (real_jump): Use it.
33650 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33652 PR middle-end/65595
33653 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
33654 do redirection if the call is not optimized out.
33656 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
33659 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
33660 (fchkp-check-incomplete-type): Add LTO.
33661 (fchkp-zero-input-bounds-for-main): Likewise.
33662 (fchkp-first-field-has-own-bounds): Likewise.
33663 (fchkp-narrow-bounds): Likewise.
33664 (fchkp-narrow-to-innermost-array): Likewise.
33665 (fchkp-use-static-bounds): Likewise.
33666 (fchkp-use-static-const-bounds): Likewise.
33667 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33669 2015-03-27 Marek Polacek <polacek@redhat.com>
33671 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
33673 2015-03-27 Marek Polacek <polacek@redhat.com>
33676 * ubsan.c (ubsan_create_edge): New function.
33677 (instrument_bool_enum_load): Call it.
33678 (instrument_nonnull_arg): Likewise.
33679 (instrument_nonnull_return): Likewise.
33680 (instrument_object_size): Likewise.
33682 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33684 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
33687 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33690 * lto-streamer.h (class lto_location_cache): New.
33691 (struct data_in): Add location_cache.
33692 (lto_input_location): Update prototype.
33693 (stream_input_location_now): New.
33694 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
33695 pointer to location.
33696 (stream_input_location): Update.
33697 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
33698 (warn_odr): Apply location cache before warning.
33699 (lto_input_location): Update prototype.
33700 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
33701 Use stream_input_location_now.
33702 * lto-streamer-in.c (lto_location_cache::current_cache): New static
33704 (lto_location_cache::cmp_loc): New function.
33705 (lto_location_cache::apply_location_cache): New function.
33706 (lto_location_cache::accept_location_cache): New function.
33707 (lto_location_cache::revert_location_cache): New function.
33708 (lto_location_cache::input_location): New function.
33709 (lto_input_location): Do location caching.
33710 (stream_input_location_now): New function.
33711 (input_eh_region, input_struct_function_base): Use
33712 stream_input_location_now.
33713 (lto_data_in_create): use new.
33714 (lto_data_in_delete): Use delete.
33715 * tree-streamer-in.c (unpack_ts_block_value_fields,
33716 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
33717 lto_input_ts_exp_tree_pointers): Update for cached location api.
33719 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33722 * passes.def: Add pass_nothrow.
33723 * ipa-pure-const.c: (pass_data_nothrow): New.
33724 (pass_nothrow): New.
33725 (pass_nothrow::execute): New.
33726 (make_pass_nothrow): New.
33727 * tree-pass.h (make_pass_nothrow): Declare.
33729 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33731 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
33732 edge to change by speculation resolution or redirection.
33733 (edge_set_predicate): Likewise.
33734 (inline_summary_t::duplicate): Likewise.
33735 (remap_edge_summaries): Likewise.
33737 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33739 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
33741 (can_inline_edge_p): Relax option matching for always inline functions.
33743 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
33746 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
33747 Check operand 4 and operand 0 for equality.
33748 (avx512f_vextract<shuffletype>32x4_1_maskm):
33749 Check operand 6 and operand 0 for equality.
33750 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
33752 (vec_extract_hi_<mode>_maskm): Ditto.
33754 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33756 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
33757 dead calls back to live.
33758 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
33760 (cgraph_node::verify_node): ... here; verify only callee edges,
33762 * cif-code.def (CILK_SPAWN): New code.
33764 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33766 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
33767 (edge_set_predicate): Use it to mark unreachable edges.
33768 (inline_summary_t::duplicate): Remove unnecesary code.
33769 (remap_edge_summaries): Likewise.
33770 (dump_inline_summary): Report contains_cilk_spawn.
33771 (compute_inline_parameters): Compute contains_cilk_spawn.
33772 (inline_read_section, inline_write_summary): Stream
33773 contains_cilk_spawn.
33774 * ipa-inline.c (can_inline_edge_p): Do not touch
33775 DECL_STRUCT_FUNCTION that may not be available;
33776 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
33777 remove check for callee_fun->can_throw_non_call_exceptions and
33778 replace it by optimization attribute check; check for flag_exceptions.
33779 * ipa-inline-transform.c (inline_call): Maintain
33780 DECL_FUNCTION_PERSONALITY
33781 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
33783 2015-03-26 Jakub Jelinek <jakub@redhat.com>
33785 PR tree-optimization/65551
33786 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
33787 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
33789 2015-03-26 Richard Biener <rguenther@suse.de>
33791 PR middle-end/65555
33792 * tree-cfg.c (verify_gimple_call): Do not require a call to
33793 have no LHS if it wasn't recognized as control altering yet.
33795 2015-03-26 Jakub Jelinek <jakub@redhat.com>
33797 PR tree-optimization/64715
33798 * passes.def: Add another instance of pass_object_sizes before ccp1.
33799 * tree-object-size.c (pass_object_sizes::execute): In
33800 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
33801 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
33802 __bos result and the computed constant. Remove redundant
33803 checks, obsoleted by gimple_call_builtin_p test.
33805 * var-tracking.c (variable_tracking_main_1): Don't track
33806 variables for targetm.no_register_allocation targets.
33808 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
33810 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
33811 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
33813 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
33816 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
33817 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
33818 0.0 is correctly setup.
33819 (extenddftf2_internal): Likewise.
33821 2015-03-25 Sebastian Pop <s.pop@samsung.com>
33823 PR tree-optimization/65177
33824 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
33826 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
33827 edges not adjacent on the path to the original code.
33829 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
33832 * doc/install.texi (Building a native compiler): Document new
33833 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
33834 configuration assumes that the host supports the linker plugin.
33836 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
33839 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
33840 chain for generated call.
33842 2015-03-25 Richard Biener <rguenther@suse.de>
33844 * passes.c (pass_manager::execute_early_local_passes): Guard
33845 execution of pass_chkp_instrumentation_passes with
33846 flag_check_pointer_bounds.
33847 (pass_chkp_instrumentation_passes::gate): Likewise.
33849 2015-03-25 Martin Liska <mliska@suse.cz>
33851 PR tree-optimization/65538
33852 * symbol-summary.h (function_summary::~function_summary):
33853 Relese memory for allocated summaries.
33854 (function_summary::release): New function.
33856 2015-03-25 Jakub Jelinek <jakub@redhat.com>
33859 * lto-streamer-out.c (DFS::worklist): New struct.
33860 (DFS::worklist_vec): New data member.
33861 (DFS::next_dfs_num): Remove.
33862 (DFS::DFS): Rewritten using worklist instead of recursion,
33863 using most of code from DFS::DFS_write_tree.
33864 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
33865 pass it to DFS_write_tree calls.
33866 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
33867 quick initial checks push it into worklist_vec and return.
33869 2015-03-25 Richard Biener <rguenther@suse.de>
33871 PR middle-end/65519
33872 * genmatch.c (expr::gen_transform): Re-write to avoid
33873 using gimple_build.
33875 2015-03-25 Bin Cheng <bin.cheng@arm.com>
33877 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
33879 2015-03-25 Bin Cheng <bin.cheng@arm.com>
33881 * config/arm/arm.opt (print_tune_info): New option.
33882 * config/arm/arm.c (arm_print_tune_info): New function.
33883 (arm_file_start): Call arm_print_tune_info.
33884 * config/arm/arm-protos.h (struct tune_params): Add comment.
33885 * doc/invoke.texi (@item -mprint-tune-info): New item.
33886 (-mtune): mention it in ARM Option Summary.
33888 2015-03-25 DJ Delorie <dj@redhat.com>
33890 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
33893 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
33894 Martin Liska <mliska@suse.cz>
33896 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
33897 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
33898 (sem_item::add_type): New function.
33899 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
33900 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
33901 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
33902 (sem_function::equals_wpa): Fix typo.
33903 * ipa-icf.h (sem_item::add_type): New function.
33904 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
33907 2015-03-24 Jakub Jelinek <jakub@redhat.com>
33909 PR tree-optimization/65533
33910 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
33911 with swapped operands, call vect_free_slp_tree on
33912 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
33915 2015-03-24 Richard Biener <rguenther@suse.de>
33917 PR middle-end/65517
33918 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
33919 for fixup if necessary.
33921 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
33923 * doc/extend.texi (Function Attributes): Add @cindex entries
33924 for all attributes and regularize their format. Delete text
33925 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
33926 information about "eightbit_data", "tiny_data", and "model"
33927 variable attributes to the Variable Attributes section. Fix
33928 some obvious typos and copy-editing issues.
33929 (Variable Attributes, Type Attributes): Likewise add/fix
33930 @cindex entries for all attributes.
33932 2015-03-23 Jakub Jelinek <jakub@redhat.com>
33935 * tree-chkp.c (chkp_build_returned_bound): Ignore
33936 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
33938 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
33941 * config/sh/predicates.md (simple_mem_operand,
33942 displacement_mem_operand): Add test for reg.
33943 (short_displacement_mem_operand): Test for displacement_mem_operand
33944 before invoking sh_disp_addr_displacement.
33945 * config/sh/constraints.md (Sdd, Sra): Simplify.
33946 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
33947 Remove redundant displacement_mem_operand tests.
33949 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
33952 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
33953 the same -mmcu=MCU more than once.
33955 2015-03-23 Jakub Jelinek <jakub@redhat.com>
33958 * ipa-devirt.c: Remove duplicate demangle.h include.
33961 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
33963 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
33964 REG_POINTER on *destptr after adjusting it for prologue size.
33967 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
33968 ultimate_alias_target ()->order ints instead of
33969 ultimate_alias_target () pointers.
33971 2015-03-23 Richard Biener <rguenther@suse.de>
33973 PR tree-optimization/65518
33974 * tree-vect-stmts.c (vectorizable_load): Reject single-element
33975 interleaving cases we generate absymal code for.
33977 2015-03-23 Richard Biener <rguenther@suse.de>
33979 PR tree-optimization/65494
33980 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
33982 (vect_analyze_slp_instance): But do that here, always and once.
33984 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33986 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
33987 adding T or multiplying by T+1 and subracting T.
33989 2015-03-22 Jeff Law <law@redhat.com>
33991 PR rtl-optimization/64317
33992 * Makefile.in (OBJS): Add gcse-common.c
33993 * gcse.c: Include gcse-common.h
33994 (struct modify_pair_s): Move structure definition to gcse-common.h
33995 (compute_transp): Move function to gcse-common.c.
33996 (canon_list_insert): Similarly.
33997 (record_last_mem_set_info): Break out some code and put it into
33998 gcse-common.c. Call into the new common code.
33999 (compute_local_properties): Pass additional arguments to compute_transp.
34000 * postreload-gcse.c: Include gcse-common.h and df.h
34001 (modify_mem_list_set, blocks_with_calls): New variables.
34002 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
34003 (get_bb_avail_insn): Pass in the expression index too.
34004 (alloc_mem): Allocate memory for the new bitmaps and lists.
34005 (free_mem): Free memory for the new bitmaps and lists.
34006 (insert_expr_in_table): Record a bitmap index for each entry we
34008 (record_last_mem_set_info): Call into common code in gcse-common.c.
34009 (get_bb_avail_insn): If no available insn was found in the requested
34010 BB. If BB has a single predecessor, see if the expression is
34011 transparent in BB and available in that single predecessor.
34012 (compute_expr_transp): New wrapper for compute_transp.
34013 (eliminate_partially_redundant_load): Pass expression's bitmap_index
34014 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
34015 (gcse_after_reload_main): If there are elements in the hash table,
34016 then compute transparency for all the elements in the hash table.
34017 * gcse-common.h: New file.
34018 * gcse-common.c: New file.
34020 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
34022 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
34024 (System Headers): Likewise.
34026 (Traditional macros): Likewise.
34027 (Invocation): Likewise.
34028 (Option Index): Likewise.
34029 * doc/cppopts.texi (-M): Likewise.
34030 (-finput-charset): Likewise.
34031 (--help): Likewise.
34032 * doc.invoke.texi (AVR Options): Likewise.
34033 (V850 Options): Likewise.
34035 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
34038 * ipa-devirt.c: Include demangle.h
34039 (odr_type_d): Add field rtti_broken.
34040 (odr_subtypes_equivalent_p): Do not require name to match.
34041 (compare_virtual_tables): Fix typo; if type already has ODR violation,
34042 bypass the tests; be ready for function referneces in vtables that are
34043 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
34044 (warn_odr): Give up for nameless types.
34045 (warn_types_mismatch): Report mismatch in mangled names;
34046 report mismatch in anonymous namespaces; look into component types to
34047 give useful error; report when mismatch is dragged in from other ODR
34049 (odr_types_equivalent_p): Match types for being polymorphic; avoid
34050 duplicated diagnostics.
34051 (add_type_duplicate): Reorder checks so more informative ones come
34052 first; fix typo; do not output "the extra base is defined here" when
34054 (BINFO_N_BASE_BINFOS): Relax sanity check.
34056 2015-03-22 Martin Liska <mliska@suse.cz>
34057 Jakub Jelinek <jakub@redhat.com>
34059 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
34060 masks that can potentially include a builtin.
34061 (ix86_add_new_builtins): Introduce fast filter for isa values
34062 that cannot trigger builtin inclusion.
34064 2015-03-22 Martin Liska <mliska@suse.cz>
34066 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
34067 (sem_item::update_hash_by_local_refs): Likewise.
34068 (sem_variable::get_hash): Empty line is fixed.
34069 (sem_item_optimizer::execute): Include adding of hash references.
34070 (sem_item_optimizer::update_hash_by_addr_refs): New function.
34071 (sem_item_optimizer::build_hash_based_classes): Use local hash.
34072 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
34073 (sem_item::update_hash_by_local_refs): Likewise.
34075 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34078 * ipa-comdats.c (enqueue_references): Walk through thunks.
34079 (ipa_comdats): Likewise.
34080 (set_comdat_group_1): New function.
34082 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34085 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
34088 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
34089 Gerald Pfeifer <gerald@pfeifer.com>
34091 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
34093 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
34094 Sandra Loosemore <sandra@codesourcery.com>
34096 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
34097 function parameter declaration.
34098 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
34099 Update arguments to nios2_adjust_call_address().
34100 (sibcall_internal): Rename from *sibcall.
34101 (sibcall_value_internal): Rename from *sibcall_value.
34102 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
34103 (nios2_large_got_address): Add target temp reg parameter.
34104 (nios2_got_address): Adjust call to nios2_large_got_address, add
34105 force_reg around it.
34106 (nios2_load_pic_address): Add target temp reg parameter, replace call
34107 to nios2_got_address with corresponding code.
34108 (nios2_legitimize_constant_address): Update call to
34109 nios2_load_pic_address.
34110 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
34111 to use temp reg for PIC loading purposes.
34112 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
34113 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
34114 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
34116 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
34118 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
34119 usage of "the @option{...}".
34120 (-Wopenmp-simd): Likewise.
34121 (-fsanitize-recover): Likewise.
34122 (-fsanitize-undefined-trap-on-error): Likewise.
34124 (tracer-dynamic-coverage-feedback): Likewise.
34125 (reorder-block-duplicate-feedback): Likewise.
34126 (loop-unroll-jam-size): Likewise.
34129 (-mabs=legacy): Likewise.
34130 (-mupper-regs-df): Likewise.
34131 (-mupper-regs-sf): Likewise.
34132 (-mpointers-to-nested-functions): Likewise.
34134 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
34136 * doc/extend.texi (Cilk Plus Builtins): Add markup.
34138 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
34140 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
34141 additional index entries and cross-references.
34142 (-fchkp-check-incomplete-type): Likewise.
34143 (-fchkp-first-field-has-own-bounds): Likewise.
34144 (-fchkp-narrow-to-innermost-array): Likewise.
34145 (-fchkp-use-fast-string-functions): Likewise.
34146 (-fchkp-use-nochk-string-functions): Likewise.
34147 (-fchkp-use-static-const-bounds): Likewise.
34148 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
34149 (-fchkp-instrument-marked-only): Likewise.
34150 (-fchkp-use-wrappers): Likewise.
34151 (-static-libmpx): Likewise.
34152 (-static-libmpxwrappers): Likewise.
34153 * doc/extend.texi (bnd_legacy): Likewise.
34154 (bnd_instrument): Likewise.
34155 (bnd_variable_size): Likewise.
34156 (Pointer Bounds Checker builtins): Likewise.
34158 2015-03-21 Tom de Vries <tom@codesourcery.com>
34160 PR tree-optimization/65458
34161 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
34162 * cgraph.h (cgraph_node): Add parallelized_function field.
34163 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
34164 (input_overwrite_node): Read parallelized_function field.
34165 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
34166 parallelized_function on cgraph_node for child_fn.
34167 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
34168 Remove include of gt-tree-parloops.h.
34169 (parallelized_functions): Remove static variable.
34170 (parallelized_function_p): Rewrite using parallelized_function field of
34172 (create_loop_fn): Remove adding to parallelized_functions.
34173 * Makefile.in (GTFILES): Remove tree-parloops.c
34175 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
34177 PR rtl-optimization/64366
34178 * lra.c (lra_update_insn_regno_info): Consider regs in
34179 CALL_INSN_FUNCTION_USAGE memory.
34181 2015-03-20 Richard Biener <rguenther@suse.de>
34183 PR middle-end/64715
34184 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
34185 for type comparison and gcc_checking_assert.
34186 (chrec_fold_plus_poly_poly): Likewise.
34187 (chrec_fold_multiply_poly_poly): Likewise.
34188 (chrec_convert_1): Likewise.
34189 * gimplify.c (gimplify_expr): Remove premature folding of
34190 &X + CST to &MEM[&X, CST].
34192 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34194 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
34196 (ipa_inline): Recompute inline_failed codes.
34197 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34198 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
34201 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
34203 PR rtl-optimization/60851
34204 * recog.c (constrain_operands): Accept a pseudo register before reload
34205 for LRA enabled targets.
34207 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
34210 * config/rs6000/predicates.md (easy_fp_constant): Remove special
34211 -ffast-math handling that kept non-0 constants live in the RTL
34212 until reload. Remove logic testing the number of instructions it
34213 took to create a constant in a GPR that was never used, due to a
34214 test for soft-float earlier.
34215 (memory_fp_constant): Delete, no longer used.
34217 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
34218 alternatives for loading non-0 constants into GPRs for hard
34219 floating point that is no longer needed due to changes in
34220 easy_fp_constant. Add support for loading 0.0 into GPRs.
34221 (mov<mode>_hardfloat32): Likewise.
34222 (mov<mode>_hardfloat64): Likewise.
34223 (mov<mode>_64bit_dm): Likewise.
34224 (movtd_64bit_nodm): Likewise.
34225 (pre-reload move FP constant define_split): Delete define_split,
34226 since it is no longer used.
34227 (extenddftf2_internal): Remove GHF constraints that are not valid
34230 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
34232 PR rtl-optimization/63491
34233 * lra-constraints.c (check_and_process_move): Use src instead of
34234 sreg. Remove some dead code.
34236 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
34239 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
34240 (sem_variable::merge): Likewise.
34242 2015-03-19 Martin Liska <mliska@suse.cz>
34245 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
34246 all fields of cgraph_thunk_info.
34248 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
34250 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
34251 clone instrumented thunks.
34253 2015-03-19 Richard Biener <rguenther@suse.de>
34256 2015-03-10 Richard Biener <rguenther@suse.de>
34258 PR middle-end/63155
34259 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34260 * tree-ssa-coalesce.c: Include timevar.h.
34261 (attempt_coalesce): Handle graph being NULL.
34262 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34263 Split out abnormal coalescing to ...
34264 (perform_abnormal_coalescing): ... this function.
34265 (coalesce_ssa_name): Perform abnormal coalescing without computing
34267 (verify_ssa_coalescing_worker): New function.
34268 (verify_ssa_coalescing): Likewise.
34270 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
34271 Jakub Jelinek <jakub@redhat.com>
34274 * tsan.c (instrument_gimple): Clear tail call flag on
34277 2015-03-19 Jakub Jelinek <jakub@redhat.com>
34280 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
34281 call in the return bb.
34282 (find_split_points): Add RETURN_BB argument, don't call
34284 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
34285 if true append TSAN_FUNC_EXIT internal call after the call to
34286 the split off function.
34287 (execute_split_functions): Call find_return_bb here.
34288 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
34289 Adjust find_split_points and split_function calls.
34291 2015-03-18 DJ Delorie <dj@redhat.com>
34293 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
34294 (iorqi3_virt): Likewise.
34296 2015-03-18 Tom de Vries <tom@codesourcery.com>
34298 * tree-parloops.c (parallelize_loops): Make static.
34299 * tree-parloops.h (parallelize_loops): Remove extern declaration.
34301 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
34303 PR middle-end/64491
34305 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
34307 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
34308 condition would be removed due to undefined behaviour.
34310 2015-03-18 Martin Liska <mliska@suse.cz>
34313 * cgraph.c (cgraph_node::get_create): Remove unnecessary
34314 xstrdup_for_dump wrapper.
34315 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
34317 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
34318 with xstrdup_for_dump.
34319 (sem_variable::equals): Likewise.
34320 (sem_item_optimizer::read_section): Use symtab_node::name instead of
34322 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
34323 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
34324 symtab_node::asm_name with xstrdup_for_dump.
34325 (congruence_class::dump): Use symtab_node::name instead of
34327 * ipa-icf.h (symtab_node::name): Remove.
34328 (symtab_node::asm_name): Likewise.
34330 2015-03-18 Jakub Jelinek <jakub@redhat.com>
34332 PR tree-optimization/65450
34333 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
34335 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
34336 it instead of duplicate_ssa_name_ptr_info.
34339 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
34341 2015-03-18 Richard Biener <rguenther@suse.de>
34343 * tree-data-ref.h (struct access_matrix): Remove.
34344 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
34345 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
34346 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
34347 (am_vector_index_for_loop): Likewise.
34348 (struct data_reference): Remove access_matrix member.
34349 (DR_ACCESS_MATRIX): Remove.
34350 (lambda_vector_new): Add comment.
34351 (lambda_matrix_new): Use XOBNEWVEC.
34353 2015-03-18 Richard Biener <rguenther@suse.de>
34355 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
34356 (pass_ch::execute): Cleanup the CFG only if we did sth.
34357 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
34359 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34361 * expmed.c (synth_mult): Use std::swap instead of manually
34362 swapping algorithms.
34364 2015-03-18 Jakub Jelinek <jakub@redhat.com>
34367 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
34369 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
34372 * config/avr/avr.opt (-nodevicelib): New option.
34373 * doc/invoke.texi (AVR Options): Document it.
34374 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
34375 libgcc.a, libc.a, libm.a.
34376 * config/avr/specs.h: Same.
34377 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
34378 which don't (directly) depend on the device. Print more help.
34379 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
34380 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
34381 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
34383 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
34384 for specs file name.
34385 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
34386 * config/avr/avr-mcus.def: Adjust initializers and comments.
34388 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
34390 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
34391 DECL_ONE_ONLY to check if decl is one only.
34392 * ipa-split.c (consider_split): Limit splitt of one only functions.
34394 2015-03-16 Jakub Jelinek <jakub@redhat.com>
34396 PR tree-optimization/65427
34397 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
34399 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
34401 2015-03-16 Marek Polacek <polacek@redhat.com>
34403 * cgraph.h (add_new_static_var): Remove declaration.
34404 * varpool.c (add_new_static_var): Remove function.
34406 2015-03-16 Jakub Jelinek <jakub@redhat.com>
34408 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
34409 instead of vec<tree> * with vec_alloc and release for args.
34412 PR middle-end/65431
34413 * omp-low.c (delete_omp_context): Only splay_tree_delete
34414 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
34415 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
34417 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
34420 * cfgexpand.c (align_base): New function.
34421 (alloc_stack_frame_space): Call it.
34422 (expand_stack_vars): Align prev_frame to be sure
34423 data->asan_vec elements aligned properly.
34425 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
34427 PR middle-end/65409
34428 * expr.c (store_field): Do not do a direct block copy if the source is
34429 a PARALLEL with BLKmode.
34431 2015-03-16 Tom de Vries <tom@codesourcery.com>
34433 PR middle-end/65414
34435 2015-03-12 Tom de Vries <tom@codesourcery.com>
34437 PR rtl-optimization/64895
34438 * lra-lives.c (check_pseudos_live_through_calls): Use
34439 actual_call_used_reg_set instead of call_used_reg_set, if available.
34441 2015-03-16 Alan Modra <amodra@gmail.com>
34444 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
34445 Modify Z->r bswapdi splitter to use dest in place of scratch.
34446 In r->Z and Z->r bswapdi splitter rename word_high, word_low
34447 to word1, word2 and rearrange logic to suit.
34448 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
34449 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
34450 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
34451 Add one '?' on r->r. Modify Z->r splitter to avoid need for
34454 2015-03-14 Jakub Jelinek <jakub@redhat.com>
34456 PR tree-optimization/65369
34457 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
34458 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
34459 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
34461 PR tree-optimization/65418
34462 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
34463 are casts in the first PLUS_EXPR operand, ensure tbias and
34464 *totallowp are in the inner type.
34466 PR rtl-optimization/65401
34467 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
34468 argument. If true, adjust_address_nv of x with big-endian
34469 correction for the mode widening to GET_MODE (y).
34470 (make_field_assignment): Don't do MEM mode widening here.
34471 Use MEM_P instead of GET_CODE == MEM.
34473 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
34475 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
34476 the external decls.
34478 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34481 * config/arm/arm.c (arm_gen_constant, AND case): Use
34482 ARM_SIGN_EXTEND when constructing AND mask.
34484 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34486 * graph.c (print_graph_cfg): Make function names visible and append
34487 parenthesis to it. Also make groups of basic blocks belonging to the
34488 same function visible.
34490 2015-03-12 Richard Biener <rguenther@suse.de>
34492 PR middle-end/44563
34493 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
34494 to avoid quadratic behavior with inline expansion splitting blocks.
34495 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
34496 with the successor if the predecessor will be merged with it.
34497 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
34498 entry block with its successor.
34500 2015-03-13 Richard Biener <rguenther@suse.de>
34502 PR middle-end/44563
34503 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
34504 (cleanup_tree_cfg_1): Do not call it.
34505 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
34506 (fixup_noreturn_call): Mark the stmt as control altering.
34507 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
34509 (pass_data_fixup_cfg): Produce a dump file.
34510 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
34511 (need_noreturn_fixup): New global.
34512 (pass_dominator::execute): Fixup queued noreturn calls.
34513 (optimize_stmt): Queue calls that became noreturn for fixup.
34514 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
34515 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
34516 (el_to_fixup): New global.
34517 (eliminate_dom_walker::before_dom_childre): Queue calls that
34518 became noreturn for fixup.
34519 (eliminate): Fixup queued noreturn calls.
34520 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
34521 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
34522 (substitute_and_fold_dom_walker::before_dom_children): Queue
34523 alls that became noreturn for fixup.
34524 (substitute_and_fold): Fixup queued noreturn calls.
34526 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
34528 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
34529 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
34530 are building; for methods check ODR type of class they belong to if
34531 they may lead to a polymorphic call.
34532 (sem_function::compare_polymorphic_p): Be bit smarter about testing
34533 when function may lead to a polymorphic call.
34534 (sem_function::compare_type_list): Remove.
34535 (sem_variable::equals): Update use of compatible_types_p.
34536 (sem_variable::parse_tree_refs): Remove.
34537 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
34539 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
34541 (func_checker::compatible_polymorphic_types_p): Break out from ...
34542 (unc_checker::compatible_types_p): ... here.
34543 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
34545 (unc_checker::compatible_types_p): Update.
34546 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
34549 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34551 PR rtl-optimization/65235
34552 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
34553 When first element of vec_concat is const_int, calculate its size
34554 using second element.
34556 2015-03-12 Richard Biener <rguenther@suse.de>
34558 PR middle-end/65270
34559 * fold-const.c (operand_equal_p): Fix ordering of resetting
34560 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
34562 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
34564 * config/s390/s390.c (s390_reorg): Move code to output nops after label
34566 (s390_asm_output_function_label): Likewise.
34567 * config/s390/s390.c (s390_asm_output_function_label):
34568 Fix function label alignment with -mhtopatch.
34569 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
34570 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
34571 ("nop_2_byte"): New define_insn.
34572 ("nop_4_byte"): Likewise.
34573 ("nop_6_byte"): Likewise.
34574 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
34575 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
34577 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
34580 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
34583 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
34586 * toplev.c (process_options): Restrict Pointer Bounds Checker
34587 usage with Address Sanitizer.
34589 2015-03-12 Richard Biener <rguenther@suse.de>
34591 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
34593 * omp-low.c (expand_omp_taskreg): Split block before removing
34595 (expand_omp_target): Likewise.
34596 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
34597 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
34598 stmt to split_block.
34600 2015-03-12 Tom de Vries <tom@codesourcery.com>
34602 PR rtl-optimization/64895
34603 * lra-lives.c (check_pseudos_live_through_calls): Use
34604 actual_call_used_reg_set instead of call_used_reg_set, if available.
34606 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34608 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
34609 (cgraph_node::remove): Likewise.
34610 (cgraph_node::get_untransformed_body): Likewise.
34611 * varpool.c (varpool_node::remove): Likewise.
34612 (varpool_node::get_constructor): Add sanity check.
34614 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
34616 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
34618 (-fabi-compat-version): Likewise.
34619 (-ffriend-injection): Likewise.
34620 (-Wdeclaration-after-statement): Likewise.
34621 (-fomit-frame-pointer): Likewise.
34622 (-ftree-coalesce-inlined-vars): Likewise.
34623 (-fvisibility=): Likewise.
34624 * doc/extend.texi (Typeof): Likewise.
34625 (Zero Length): Likewise.
34626 (Escaped Newlines): Likewise.
34627 (Compound Literals): Likewise.
34628 (Function Attributes): Likewise.
34629 (Label Attributes): Likewise.
34630 (Type Attributes): Likewise.
34631 (Function Names): Likewise.
34632 (Other Builtins): Likewise.
34633 (Function Specific Option Pragmas): Likewise.
34634 (C++ Interface): Likewise.
34636 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
34638 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
34640 2015-03-11 Marek Polacek <polacek@redhat.com>
34642 PR tree-optimization/65388
34643 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
34645 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
34648 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
34649 * configure: Regenerate.
34650 * config.in: Regenerate.
34651 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
34652 [-mn-flash]: Document it.
34653 [__AVR_ARCH__]: Document avrtiny.
34655 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
34656 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
34657 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
34659 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34661 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
34663 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
34666 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
34667 allow reloads of PLUS in floating point/VSX registers.
34669 2015-03-11 Junmo Park <junmoz.park@samsung.com>
34671 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
34672 crypto_sha256_fast.
34673 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
34675 2015-03-11 Richard Biener <rguenther@suse.de>
34677 PR tree-optimization/65310
34678 * tree-sra.c (build_ref_for_offset): Also preserve larger
34681 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
34683 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
34685 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34688 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
34690 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
34692 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34694 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
34695 (sem_function::equals_wpa): ... here.
34697 2015-03-10 Marek Polacek <polacek@redhat.com>
34698 Jakub Jelinek <jakub@redhat.com>
34701 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
34702 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
34705 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34708 * config/rs6000/t-linux: For powerpc64* target set
34709 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
34711 2015-03-10 Richard Biener <rguenther@suse.de>
34713 PR middle-end/44563
34714 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
34715 for redirect_all_calls.
34717 2015-03-10 Marek Polacek <polacek@redhat.com>
34719 * gdbinit.in (pcfun): Define and document.
34721 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
34723 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
34724 of libgomp-plugin.h.
34725 (find_target_compiler): Support a case when the path to gcc is
34726 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
34727 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
34728 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
34730 (main): Use GCC_INSTALL_NAME as target_driver_name.
34731 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
34733 (mkoffload.o): Remove obsolete include path and defines.
34734 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
34736 2015-03-10 Richard Biener <rguenther@suse.de>
34738 PR middle-end/63155
34739 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34740 * tree-ssa-coalesce.c: Include timevar.h.
34741 (attempt_coalesce): Handle graph being NULL.
34742 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34743 Split out abnormal coalescing to ...
34744 (perform_abnormal_coalescing): ... this function.
34745 (coalesce_ssa_name): Perform abnormal coalescing without computing
34747 (verify_ssa_coalescing_worker): New function.
34748 (verify_ssa_coalescing): Likewise.
34750 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
34753 * config.gcc (extra_options) [avr]: Remove.
34754 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
34755 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
34756 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
34758 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
34759 (-mmcu=): Add Var and MissingArgError properties.
34761 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
34762 * config/avr/t-multilib: Regenerate.
34763 * config/avr/specs.h: New file.
34764 * config/avr/driver-avr.c: New file.
34765 * config/avr/genopt.sh: Remove file.
34766 * config/avr/avr-tables.opt: Remove file.
34767 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
34768 * config/avr/avr-c.c: Same.
34769 * avr-arch.h: Same.
34770 (avr_current_device): Remove proto.
34771 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
34772 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
34773 (EXTRA_SPEC_FUNCTIONS): Define.
34774 (avr_devicespecs_file): New specs function proto.
34775 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
34776 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
34777 (avr_current_device): Remove definition and usage.
34778 (avr_set_core_architecture): New static function.
34779 (avr_option_override): Use it.
34780 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
34781 (mcu_name): New static array.
34782 (comparator, avr_archs_str, avr_mcus_str): New static functions.
34783 (avr_inform_devices, avr_inform_core_architectures): New functions.
34784 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
34785 (avrlibc.h) [WITH_AVRLIBC]: Include.
34786 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
34787 (print_mcu): Rewrite from scratch.
34788 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
34789 Forward to avr-specific specs defined in device-specs file.
34790 * config/avr/t-avr (driver-avr.o): New rule.
34791 (avr-devices.o): Depend on avr-arch.h.
34792 (avr-mcus): No more depend on avr-tables.opt.
34793 (avr-tables.opt): Remove rule.
34794 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
34796 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34798 * c-family/c.opt (fchkp-use-wrappers): New.
34799 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
34800 (chkp_wrap_function): New.
34801 (chkp_build_instrumented_fndecl): Support wrapped
34803 * doc/invoke.texi (-fcheck-pointer-bounds): New.
34804 (-fchkp-check-incomplete-type): New.
34805 (-fchkp-first-field-has-own-bounds): New.
34806 (-fchkp-narrow-bounds): New.
34807 (-fchkp-narrow-to-innermost-array): New.
34808 (-fchkp-optimize): New.
34809 (-fchkp-use-fast-string-functions): New.
34810 (-fchkp-use-nochk-string-functions): New.
34811 (-fchkp-use-static-bounds): New.
34812 (-fchkp-use-static-const-bounds): New.
34813 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
34814 (-fchkp-check-read): New.
34815 (-fchkp-check-write): New.
34816 (-fchkp-store-bounds): New.
34817 (-fchkp-instrument-calls): New.
34818 (-fchkp-instrument-marked-only): New.
34819 (-fchkp-use-wrappers): New.
34820 (-static-libmpx): New.
34821 (-static-libmpxwrappers): New.
34823 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34825 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
34826 (CHKP_SPEC): Add wrappers library.
34827 * c-family/c.opt (static-libmpxwrappers): New.
34829 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34831 * config/i386/linux-common.h (LIBMPX_LIBS): New.
34832 (LIBMPX_SPEC): New.
34834 * gcc.c (CHKP_SPEC): New.
34835 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
34836 * c-family/c.opt (static-libmpx): New.
34838 2015-03-10 Richard Biener <rguenther@suse.de>
34840 PR middle-end/44563
34841 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
34843 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
34844 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
34845 (cgraph_add_edge_to_call_site_hash): Likewise.
34846 (cgraph_node::get_edge): Likewise.
34847 (cgraph_edge::set_call_stmt): Likewise.
34848 (cgraph_edge::remove_caller): Likewise.
34850 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
34852 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
34853 (callee_saved_gpr_regs_size): ... this.
34854 (callee_saved_regs_first_regno): Rename to ...
34855 (callee_saved_first_gpr_regno): ... this.
34856 (callee_saved_regs_last_regno) Rename to ...
34857 (callee_saved_last_gpr_regno): ... this.
34858 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
34860 (nds32_initial_elimination_offset): Likewise.
34861 (nds32_expand_prologue): Likewise.
34862 (nds32_expand_epilogue): Likewise.
34863 (nds32_expand_prologue_v3push): Likewise.
34864 (nds32_expand_epilogue_v3pop): Likewise.
34865 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
34866 Adjust renamed variables.
34867 (nds32_output_stack_pop): Likewise.
34869 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
34871 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
34874 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34876 PR rtl-optimization/65321
34877 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
34879 * var-tracking.c (use_narrower_mode): Likewise.
34881 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34883 PR tree-optimization/65355
34884 * varasm.c (notice_global_symbol): Do not produce RTL.
34885 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
34887 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
34888 check for section anchors.
34890 2015-03-10 Alan Modra <amodra@gmail.com>
34893 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
34894 to be single-arch by default. Set cpu_is_64bit for powerpc64
34895 given --with-cpu=native.
34896 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
34897 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
34899 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
34900 rs6000_isa_flags rather than TARGET_64BIT.
34902 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
34903 Kaz Kojima <kkojima@gcc.gnu.org>
34905 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
34907 2015-03-09 Jakub Jelinek <jakub@redhat.com>
34910 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
34911 on a TREE_BINFO, instead use BINFO_TYPE.
34913 2015-03-09 Richard Biener <rguenther@suse.de>
34915 PR middle-end/65270
34916 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
34917 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
34918 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
34919 of that. When comparing dereferences compare alignment.
34920 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
34922 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
34924 * ipa-inline-analysis.c (check_callers): Check
34925 node->can_remove_if_no_direct_calls_and_refs_p.
34926 (growth_likely_positive): Reorganize to call
34927 can_remove_if_no_direct_calls_p later.
34928 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
34929 will_be_removed_from_program_if_no_direct_calls_p): Add
34930 will_inline parameter.
34931 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
34932 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34933 Handle inliner case correctly.
34935 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
34937 PR tree-optimization/63743
34938 * cfgexpand.c (reorder_operands): Also reorder if only second operand
34939 had its definition forwarded by TER.
34941 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
34944 * ipa-utils.h (types_odr_comparable): Add strict argument.
34945 * ipa-devirt.c: Fix whitespace;
34946 (odr_hasher): Remove.
34947 (odr_name_hasher, odr_vtable_hasher): New hashers.
34948 (can_be_name_hashed_p): New predicate.
34949 (hash_type_name): remove.
34950 (hash_odr_name): New.
34951 (odr_name_hasher::hash): new.
34952 (can_be_vtable_hashed_p): New.
34953 (hash_odr_vtable): New.
34954 (odr_vtable_hasher::hash): New.
34955 (types_same_for_odr): Add strict parameter.
34956 (types_odr_comparable): Likewise.
34957 (odr_name_hasher::equal): New.
34958 (odr_vtable_hasher::equal): New.
34959 (odr_name_hasher::remove): New.
34960 (odr_hash_type): Change to hash_table<odr_name_hasher>.
34961 (odr_vtable_hash_type): New.
34962 (odr_vtable_hash): New.
34963 (odr_subtypes_equivalent_p): Do strict comparsion.
34964 (add_type_duplicate): Merge type names; cleanup; avoid type
34966 (register_odr_type): Initialize vtable hash.
34967 (build_type_inheritance_graph): Likewise
34968 (get_odr_type): Reorg to use two hashes.
34969 (dump_possible_polymorphic_call_targets): Move sanity check after debug
34971 (ipa_devirt): Dump type_inheritance_graph.
34972 (types_same_for_odr): Add strict mode.
34974 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34977 * cgraph.h (symtab_node): Add definition_alignment,
34978 can_increase_alignment_p and increase_alignment.
34979 * symtab.c (symtab_node::can_increase_alignment_p,
34980 increase_alignment_1, symtab_node::increase_alignment,
34981 symtab_node::definition_alignment): New.
34982 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
34983 can_increase_alignment_p.
34984 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
34985 * tree-vect-stmts.c (ensure_base_align): Likewise.
34986 * varasm.c (function_section_1): Use definition_alignment.
34987 (assemble_start_function): Likewise.
34988 (emit_local): likewise.
34989 (build_constant_desc): Likewsie.
34990 (output_constant_def_contents): Likewise.
34991 (place_block_symbol): Likewise.
34992 (output_object_block): Likewise.
34994 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34997 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
34998 when outputting debug.
35000 2015-03-07 Marek Polacek <polacek@redhat.com>
35001 Martin Uecker <uecker@eecs.berkeley.edu>
35004 * doc/invoke.texi: Update description of -fsanitize=bounds.
35006 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
35008 * tree-ssa-phiopt.c (neg_replacement): Remove.
35009 (tree_ssa_phiopt_worker): Remove negate optimization.
35011 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35014 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
35016 2015-03-06 Richard Biener <rguenther@suse.de>
35018 PR middle-end/64928
35019 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
35020 and liveout_obstack members.
35021 (calculate_live_on_exit): Remove.
35022 (calculate_live_ranges): Change declaration.
35023 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
35024 (new_tree_live_info): Adjust.
35025 (calculate_live_ranges): Delete livein when not wanted.
35026 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
35027 Deal with partly deleted live info.
35028 (loe_visit_block): Remove temporary bitmap by using
35029 bitmap_ior_and_compl_into.
35030 (live_worklist): Adjust accordingly.
35031 (calculate_live_on_exit): Make static.
35032 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
35033 we do not need livein.
35035 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
35037 * real.c (real_from_string): Fix typo in assertion.
35039 2015-03-06 Alex Velenko <alex.velenko@arm.com>
35041 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
35044 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35046 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
35048 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
35051 * lra-assigns.c (find_hard_regno_for): Rename to
35052 find_hard_regno_for_1. Add a new parameter.
35053 (find_hard_regno_for): New function using find_hard_regno_for_1.
35055 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
35057 PR rtl-optimization/65067
35058 * expmed.c (store_bit_field, extract_bit_field): Reworked the
35059 strict volatile bitfield handling.
35061 2015-03-05 Martin Liska <mliska@suse.cz>
35064 * ipa-icf.c (sem_variable::equals): Compare variables types.
35066 2015-03-05 Richard Henderson <rth@redhat.com>
35069 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
35070 correctly check weak symbol binding.
35072 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
35074 PR middle-end/65315
35075 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
35078 2015-03-05 Martin Liska <mliska@suse.cz>
35080 * ipa-inline.c (inline_small_functions): Set default value to
35081 prevent warning during bootstrap.
35082 * tree.h: Add pragma guard that ignores false positives during
35085 2015-03-05 Richard Biener <rguenther@suse.de>
35087 PR tree-optimization/65310
35088 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
35089 Properly preserve alignment of the base of the access.
35091 2015-03-05 Richard Biener <rguenther@suse.de>
35094 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
35095 Compare dependence info.
35097 2015-03-05 Richard Biener <rguenther@suse.de>
35099 PR middle-end/65233
35100 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
35102 (walk_ssa_copies): Revert last chage. Instead do not walk
35103 SSA names registered for SSA update.
35105 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
35108 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
35109 vtable references for their containing type.
35110 (sem_function::equals_wpa): Compare TYPE_RESTRICT
35111 and type attributes.
35113 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
35115 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
35116 before negating it.
35117 * stor-layout.c (finalize_record_size): Revert latest change.
35119 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
35121 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
35123 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
35125 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
35126 for correct comdat handling.
35127 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35129 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
35130 (used_from_object_file_p_worker): Remove.
35131 (cgraph_node::only_called_directly_or_alised): Add
35132 used_from_object_file_p.
35133 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
35134 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
35135 can_remove_if_no_direct_calls_and_refs_p.
35137 2015-03-04 Nick Clifton <nickc@redhat.com>
35139 * config/rl78/rl78.h (enum reg_class): Remove real registers from
35140 General register class.
35141 * config/rl78/rl78-real.md: Replace general register constraints
35142 with real+virtual register constraints.
35144 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35146 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
35147 from checking for -mhtm option.
35149 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
35151 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
35152 (struct ipa_sra_check_caller_data): Add has_thunk field.
35153 (ipa_sra_check_caller): Check for thunk.
35154 (ipa_sra_preliminary_function_checks): Give up on function with
35156 (ipa_early_sra): Use call_for_symbol_and_aliases.
35158 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
35161 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
35162 called for __stack_chk_guard symbol.
35164 2015-03-03 DJ Delorie <dj@redhat.com>
35166 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
35168 (*addhi3_real): Likewise.
35169 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
35170 pattern to match incrementing memory.
35171 * config/rl78/predicates.md (rl78_1_2_operand): New.
35172 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
35173 it's the same and only mem.
35174 (rl78_alloc_physical_registers_op2): If there's effectively only
35175 one MEM, transcode it into HL.
35176 (rl78_far_p): Reject addresses that aren't legitimate.
35178 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
35180 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
35183 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
35185 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
35187 Implement call0 ABI for xtensa
35188 * config/xtensa/constraints.md ("a" constraint): Include stack
35189 pointer in case of call0 ABI.
35190 ("q" constraint): Make empty in case of call0 ABI.
35191 ("D" constraint): Include stack pointer in case of call0 ABI.
35192 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
35193 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
35195 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
35197 (xtensa_regno_to_class): Make it a local variable in the
35198 function xtensa_regno_to_class.
35199 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
35200 macro, function prototype and implementation.
35201 (reg_nonleaf_alloc_order): Make it a local variable in the
35202 function order_regs_for_local_alloc.
35203 (xtensa_conditional_register_usage): New function.
35204 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
35205 (xtensa_valid_move): Allow direct moves to stack pointer
35206 register in call0 ABI.
35207 (xtensa_setup_frame_addresses): Only spill register windows in
35209 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
35210 call0 ABI respectively.
35211 (xtensa_function_arg_1): Only mark a7 register for copying in
35213 (xtensa_call_save_reg): New function.
35214 (compute_frame_size): Add space for callee saved register
35215 storage to the frame size in call0 ABI.
35216 (xtensa_expand_prologue): Generate code to set up stack frame
35217 and save callee-saved registers in call0 ABI.
35218 (xtensa_expand_epilogue): New function.
35219 (xtensa_set_return_address): New function.
35220 (xtensa_return_addr): Calculate return address in call0 ABI.
35221 (xtensa_builtin_saveregs): Only mark a7 register for copying and
35222 emit copying code in windowed ABI.
35223 (order_regs_for_local_alloc): Add preferred register allocation
35224 order for non-leaf function in call0 ABI.
35225 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
35226 (xtensa_asm_trampoline_template): Add trampoline generation for
35228 (xtensa_trampoline_init): Add trampoline initialization for
35230 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
35232 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
35233 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
35234 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
35235 ABI call-used registers.
35236 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
35237 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
35239 (REG_CLASS_CONTENTS): Include all registers into the preferred
35240 reload registers set, adjust the set in the
35241 xtensa_conditional_register_usage.
35242 (xtensa_regno_to_class): Drop variable declaration.
35243 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
35245 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
35247 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
35248 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
35249 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
35250 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
35251 location in call0 ABI.
35252 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
35253 stack adjustment size when handling exception.
35254 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
35255 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
35257 ("return" pattern): Generate ret.n/ret in call0 ABI.
35258 ("epilogue" pattern): Expand epilogue.
35259 ("nonlocal_goto" pattern): Use default in call0 ABI.
35260 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
35261 emit eh_set_a0_* depending on ABI.
35262 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
35263 ("eh_set_a0_call0", "blockage"): New patterns.
35265 2015-03-03 Martin Liska <mliska@suse.cz>
35268 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
35270 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
35273 * config/rs6000/rs6000-tables.opt: Regenerate table.
35275 2015-03-03 Renlin Li <renlin.li@arm.com>
35277 * doc/md.texi (@item ^): Change ? into ^.
35279 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
35281 * doc/tm.texi: Regenerated.
35283 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
35285 * builtins.c (expand_builtin_return_addr): Add
35286 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
35287 surrounding #ifdef.
35288 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
35290 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
35292 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
35294 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
35297 2015-03-03 Martin Jambor <mjambor@suse.cz>
35298 Eric Botcazou <ebotcazou@adacore.com>
35300 * tree-sra.c (ipa_sra_check_caller_data): New type.
35301 (has_caller_p): Removed.
35302 (ipa_sra_check_caller): New function.
35303 (ipa_sra_preliminary_function_checks): Use it.
35305 2015-03-03 Martin Liska <mliska@suse.cz>
35307 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
35308 instead of if branch.
35310 2015-03-03 Martin Liska <mliska@suse.cz>
35313 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
35315 2015-03-23 Jeff Law <law@redhat.com>
35317 PR tree-optimization/65241
35318 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
35319 hash table if INSERT is true.
35321 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35324 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
35326 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35329 * config/avr/avr.c (context.h, tree-pass.h): Include them.
35330 (avr_pass_data_recompute_notes): New static variable.
35331 (avr_pass_recompute_notes): New class.
35332 (avr_register_passes): New static function.
35333 (avr_option_override): Call it.
35335 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35337 Fix various problems with specs file generation.
35340 * config.gcc (extra_gcc_objs) [avr]: Remove.
35341 * config/avr/driver-avr.c: Remove file.
35342 * config/avr/t-avr (driver-avr.o): Remove rule.
35343 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
35344 INCLUDES to build. Depend on TM_H.
35345 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
35346 build warnings. Fix non-matching types and non-existing %-codes.
35348 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
35349 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
35350 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
35351 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
35352 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
35353 (LIBGCC_SPEC): Remove definitions.
35355 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
35357 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
35358 to create a register in testing mode.
35360 2015-03-03 Martin Liska <mliska@suse.cz>
35361 Jan Hubicka <hubicka@ucw.cz>
35364 * cgraph.c (cgraph_node::has_thunk_p): New function.
35365 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
35366 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
35367 (sem_function::merge): Assert is changed.
35369 2015-03-03 Martin Liska <mliska@suse.cz>
35370 Martin Jambor <mjambor@suse.cz>
35373 * ipa-icf.c (sem_item_optimizer::execute): Change function
35374 return value to boolean.
35375 (sem_item_optimizer::merge_classes): Likewise.
35376 (ipa_icf_driver): Return TODO_remove_functions in case there's
35377 a merge operation processed.
35378 * ipa-icf.h: Change function return value to boolean.
35380 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
35383 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
35384 processor type for 64-bit little endian PowerPC.
35386 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
35387 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
35388 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
35389 printing built-in mask so it does not pass NULL pointers.
35391 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
35394 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
35397 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
35398 !ISA_HAS_FP_CONDMOVE.
35400 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
35402 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
35405 2015-03-02 Ulrich Drepper <drepper@gmail.com>
35407 * doc/invoke.texi (Options for Code Generation Conventions):
35408 Fix URL of DSO paper.
35410 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35413 * ipa-inline.c (check_callers): Looks for recursion.
35414 (inline_to_all_callers): Give up on uninlinable or recursive edges.
35415 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
35416 summary of inline clones.
35417 (do_estimate_growth_1): Fix recursion check.
35419 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35422 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
35425 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35426 Aldy Hernandez <aldyh@redhat.com>
35429 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
35430 when checking TYPE_BINFO.
35432 2015-03-02 Richard Biener <rguenther@suse.de>
35435 * ipa-icf-gimple.c: Include builtins.h.
35436 (func_checker::compare_memory_operand): Compare base alignment.
35438 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
35441 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
35442 passed by reference.
35444 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
35447 * tree-chkp.c (chkp_check_lower): Don't check against
35448 zero bounds for already instrumented functions.
35449 (chkp_check_upper): Likewise.
35450 (chkp_fini): Clean pass local data to avoid wrong reusage.
35452 2015-02-28 Martin Liska <mliska@suse.cz>
35453 Jan Hubicka <hubicka@ucw.cz>
35455 * ipa-icf.c (sem_variable::equals): Improve debug output;
35456 get variable constructor.
35457 (sem_variable::parse): Do not filter out too early; give up on
35458 volatile and register vars.
35459 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
35461 * ipa-icf.h (sem_variable::init): Do not set ctor.
35462 (sem_variable::ctor): Remove.
35464 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
35466 PR middle-end/65233
35467 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
35469 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35471 * ipa-icf.c: Include stor-layout.h
35472 (sem_function::compare_cgraph_references): Rename to ...
35473 (sem_item::compare_cgraph_references): ... this one.
35474 (sem_variable::equals_wpa): New function
35475 (sem_variable::equals): Do not check stuff already verified by
35477 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
35478 * ipa-icf.h (sem_item): Add compare_cgraph_references.
35479 (sem_function): Remove compare_cgraph_references.
35480 (sem_variable): Turns equals_wpa into non-inline.
35482 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35484 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
35485 (sem_item::add_expr): New function.
35486 (sem_function::hash_stmt): Handle operands of most statements.
35487 (sem_variable::get_hash): Hash the actual constructor.
35488 * ipa-icf.h (sem_item): Add add_expr.
35489 (sem_function): Update prototype of hash_stmt
35491 2015-02-28 Martin Liska <mliska@suse.cz>
35492 Jan Hubicka <hubicka@ucw.cz>
35495 * ipa-icf-gimple.c (func_checker::compare_function_decl):
35497 (func_checker::compare_variable_decl): Skip symtab vars.
35498 (func_checker::compare_cst_or_decl): Update.
35499 * ipa-icf.c (sem_function::parse): Do not consider aliases.
35500 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
35501 use correct symtab predicates.
35502 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
35503 (sem_variable::parse): Update comment.
35504 (sem_item_optimizer::build_graph): Consider ultimate aliases
35507 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35509 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
35512 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35514 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
35515 (sem_variable::merge) Likewise.
35517 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35519 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
35520 target; also match flag_ipa_devirt.
35522 2015-03-01 Martin Liska <mliska@suse.cz>
35523 Jan Hubicka <hubicka@ucw.cz>
35525 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
35526 Validate variable alignment.
35527 * ipa-icf.c (sem_function::equals_private): Be more precise
35528 about non-common function attributes.
35529 (sem_variable::equals): Likewise.
35531 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35534 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
35535 across COMDAT group boundary.
35537 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35540 * ipa-icf.c (clear_decl_rtl): New function.
35541 (sem_function::merge): Clear RTL before forming alias.
35542 (sem_variable::merge): Clear RTL before forming alias.
35544 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35547 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
35549 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
35551 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
35554 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35556 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
35557 a typo in the description.
35559 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35562 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35563 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35564 * lra-constraints.c: Include "params.h".
35565 (EBB_PROBABILITY_CUTOFF): Use
35566 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
35567 (lra_inheritance): Use '<' instead of '<=' for
35568 EBB_PROBABILITY_CUTOFF.
35569 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
35572 2015-02-27 Martin Liska <mliska@suse.cz>
35574 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
35575 vector length condition.
35577 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
35579 * doc/extend.texi (x86 transactional memory intrinsics):
35580 Reorganize discussion of _xbegin. Clarify that the return
35581 value is a bit mask. Expand example and move to end of section.
35583 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35584 Aldy Hernandez <aldyh@redhat.com>
35586 PR rtl-optimization/65220
35587 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
35589 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35592 * lra-remat.c (update_scratch_ops): New.
35593 (do_remat): Call it.
35594 * lra.c (lra_register_new_scratch_op): New. Take code from ...
35595 (remove_scratches): ... here.
35596 * lra-int.h (lra_register_new_scratch_op): New prototype.
35598 2015-02-27 Marek Polacek <polacek@redhat.com>
35601 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
35602 -Wformat-signedness anymore.
35604 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35606 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
35608 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
35610 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35612 * config/s390/s390.c (enum s390_builtin):
35613 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
35614 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
35615 (s390_init_builtins): Generate new builtin functions.
35616 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
35617 (s390_sfpc, s390_efpc): New pattern definitions.
35619 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35621 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
35622 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
35623 (s390_builtin_decls): New array.
35624 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
35625 (s390_builtin_decl): New function.
35626 (TARGET_BUILTIN_DECL): Define macro.
35628 2015-02-27 Richard Biener <rguenther@suse.de>
35630 PR middle-end/63175
35631 * builtins.c (get_object_alignment_2): Make sure to re-apply
35632 the ANDed mask after recursing to its operand gets us a new
35633 misalignment bit position.
35635 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
35636 Martin Liska <mliska@suse.cz>
35639 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
35640 Use address_matters_p.
35641 (redirect_all_callers, set_addressable): New functions.
35642 (sem_function::merge): Reorganize and fix merging issues.
35643 (sem_variable::merge): Likewise.
35644 (sem_variable::compare_sections): Remove.
35645 * common.opt (fmerge-all-constants, fmerge-constants): Remove
35647 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
35649 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
35651 (address_matters_1): New function.
35652 (symtab_node::address_matters_p): New function.
35653 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
35654 check for merged flag.
35655 * cgraph.h (address_matters_p): Declare.
35656 (symtab_node::address_taken_from_non_vtable_p): Remove.
35657 (symtab_node::address_can_be_compared_p): New method.
35658 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
35659 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
35661 (comdat_can_be_unshared_p_1) Use address_matters_p.
35662 (update_vtable_references): Fix formating.
35663 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
35664 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
35665 * cgraphclones.c: Preserve merged and icf_merged flags.
35667 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
35669 * doc/extend.texi (Function Attributes): Fix spelling and typos.
35670 (Label Attributes): Likewise.
35671 (Cilk Plus Builtins): Likewise.
35672 (ARC SIMD Built-in Functions): Likewise.
35673 (ARM C Language Extensions (ACLE)): Likewise.
35674 (PowerPC Built-in Functions): Likewise.
35675 (PowerPC Hardware Transactional Memory Built-in Functions):
35678 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35680 PR tree-optimization/65216
35681 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
35682 new stmt and new SSA_NAME for lhs whenever the arguments have
35683 changed and weren't just swapped. Fix comment typo.
35685 PR tree-optimization/65215
35686 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
35687 for PDP endian targets.
35688 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
35689 Fix up formatting issues.
35690 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
35691 size is smaller than the original, adjust MEM_REF offset by the
35692 difference of sizes. Use is_gimple_mem_ref_addr instead of
35693 is_gimple_min_invariant test to avoid adding address temporaries.
35695 2015-02-26 Martin Liska <mliska@suse.cz>
35696 Jan Hubicka <hubicka@ucw.cz>
35699 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
35700 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
35701 (sem_item_optimizer::process_cong_reduction): Include division by
35702 sensitive references.
35703 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
35704 * ipa-ref.c (ipa_ref::address_matters_p): New function.
35705 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
35707 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
35710 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
35712 * config/avr/avr.c: Same.
35713 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
35714 Refuse any constant address not in 0..0xbf.
35715 * config/avr/avr.md (*mov<mode>, *movsf): Remove
35716 tiny_valid_direct_memory_access_range from insn conditions.
35717 (mov<mode>): Don't special-case expansion of avrtiny addresses.
35719 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
35722 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
35723 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
35724 * config/sh/predicates.md (const_logical_operand): New predicate.
35725 * config/sh/sh.md: Add new peephole2 patterns.
35727 2015-02-26 Marek Polacek <polacek@redhat.com>
35730 * ipa-inline.c (early_inliner): Recompute inline parameters.
35732 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35735 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
35736 instructions with TImode operands are included in the analysis.
35738 2015-02-26 Sebastian Pop <s.pop@samsung.com>
35740 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
35741 of an EDGE_FSM_THREAD.
35743 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
35745 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
35747 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
35750 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
35752 2015-02-26 Sebastian Pop <s.pop@samsung.com>
35754 PR tree-optimization/65048
35755 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
35756 (thread_through_all_blocks): Call valid_jump_thread_path.
35757 Remove invalid FSM jump-thread paths.
35759 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35761 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
35762 (ipa_write_optimization_summaries): Likewise.
35763 * tree-streamer.h: Include data-streamer.h.
35764 (streamer_mode_table): Declare extern variable.
35765 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
35766 * lto-streamer-out.c (lto_output_init_mode_table,
35767 lto_write_mode_table): New functions.
35768 (produce_asm_for_decls): Call lto_write_mode_table when streaming
35770 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
35771 (lto_create_simple_input_block): Add mode_table argument to the
35772 lto_input_block constructors.
35773 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
35775 * data-streamer-in.c (string_for_index): Likewise.
35776 * ipa-inline-analysis.c (inline_read_section): Likewise.
35777 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
35778 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
35779 * lto-streamer-in.c (lto_read_body_or_constructor,
35780 lto_input_toplevel_asms): Likewise.
35781 (lto_input_mode_table): New function.
35782 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
35783 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
35784 Use bp_pack_machine_mode.
35785 * real.h (struct real_format): Add name field.
35786 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
35787 (class lto_input_block): Add mode_table member.
35788 (lto_input_block::lto_input_block): Add mode_table_ argument,
35789 initialize mode_table.
35790 (struct lto_file_decl_data): Add mode_table field.
35791 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
35792 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
35793 unpack_ts_decl_common_value_fields,
35794 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
35795 * tree-streamer.c (streamer_mode_table): New variable.
35796 * real.c (ieee_single_format, mips_single_format,
35797 motorola_single_format, spu_single_format, ieee_double_format,
35798 mips_double_format, motorola_double_format,
35799 ieee_extended_motorola_format, ieee_extended_intel_96_format,
35800 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
35801 ibm_extended_format, mips_extended_format, ieee_quad_format,
35802 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
35803 decimal_single_format, decimal_double_format, decimal_quad_format,
35804 ieee_half_format, arm_half_format, real_internal_format): Add name
35806 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
35808 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
35811 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
35812 reordering for selective scheduling.
35814 2015-02-26 Terry Guo <terry.guo@arm.com>
35816 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
35817 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
35818 (arm_arch_no_volatile_ce): Declare new global variable.
35819 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
35820 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
35821 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
35822 (TARGET_NO_VOLATILE_CE): New macro.
35823 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
35824 volatile memory access in IT block
35826 2015-02-25 Kai Tietz <ktietz@redhat.com>
35828 PR tree-optimization/61917
35829 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
35830 that reduc_def_stmt is null.
35832 2015-02-25 Martin Liska <mliska@suse.cz>
35834 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
35835 hard register variables.
35837 2015-02-25 Kai Tietz <ktietz@redhat.com>
35840 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
35841 (symtab::noninterposable_alias): Likewise.
35843 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
35846 * config/i386/i386.c (ix86_function_arg_regno_p): Support
35848 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
35850 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
35853 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
35854 as split condition; force split via '#' in output pattern.
35856 2015-02-25 Richard Biener <rguenther@suse.de>
35857 Kai Tietz <ktietz@redhat.com>
35859 PR tree-optimization/61917
35860 * tree-vect-loop.c (vectorizable_reduction): Allow
35861 vect_internal_def without reduction to exit graceful.
35863 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35866 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
35867 only with NONDEBUG_INSN_P.
35869 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35871 Use variadic macros with avr-log.c.
35873 * config/avr/avr-protos.h (avr_vdump): New prototype.
35874 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
35875 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
35876 * config/avr/avr-log.c: Adjust comments.
35877 (avr_vdump): New function.
35878 (avr_vadump): Pass caller as 2nd argument instead of format string.
35879 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
35880 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
35882 2015-02-25 Jakub Jelinek <jakub@redhat.com>
35885 * target.def (target_option_stream_in): New target hook.
35886 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
35887 targetm.target_option.post_stream_in if non-NULL.
35888 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
35889 * doc/tm.texi: Updated.
35890 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
35892 (TARGET_OPTION_POST_STREAM_IN): Redefine.
35894 2015-02-24 Jeff Law <law@redhat.com>
35897 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
35898 of operand 0 and operand 2.
35899 (zero_cost_loop_end, loop_end): Similarly.
35901 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
35903 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
35906 2015-02-24 DJ Delorie <dj@redhat.com>
35908 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
35909 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
35910 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
35911 instead of hardcoding SImode.
35913 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
35915 * omp-low.c (create_omp_child_function): Tag entrypoint
35916 functions with a special attribute.
35918 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35921 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
35923 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
35925 PR rtl-optimization/65123
35926 * lra-remat.c (operand_to_remat): Check hard regs in insn
35929 2015-02-24 Nick Clifton <nickc@redhat.com>
35931 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
35934 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
35937 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
35938 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
35939 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
35940 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
35941 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
35942 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
35943 (BUILT_IN_GOACC_PARALLEL): Specify as
35944 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
35945 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
35946 * builtin-types.def
35947 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35948 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35949 Remove function types.
35950 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
35951 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35952 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35953 New function types.
35955 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
35957 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
35959 2015-02-24 Jakub Jelinek <jakub@redhat.com>
35961 PR tree-optimization/65170
35962 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
35963 if val[1] < 0, clear also val[2] and return 3.
35965 2015-02-24 Alan Modra <amodra@gmail.com>
35968 * config/rs6000/rs6000.c (get_memref_parts): Only return true
35969 when *base is a reg. Handle nested plus addresses. Simplify
35972 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
35974 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
35975 use natural alignment when optimizing for size.
35977 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
35980 * config/sh/sh.md (movsicc_true+3): Remove peephole.
35981 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
35982 * config/sh/sh.c (replace_n_hard_rtx): Remove.
35984 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
35987 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
35988 too big for a wide_int. Implement missing wrapping operation.
35990 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
35993 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
35994 instead of const_int 4294901760.
35996 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
35998 * config/avr/t-avr: Fix typo in comment.
36000 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
36002 * doc/rtl.texi (fma): Clarify documentation.
36004 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
36007 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
36008 over input_location.
36010 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36012 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
36013 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
36014 restrict alignments to absolute_biggest_alignment.
36015 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
36017 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
36018 * doc/tm.texi: Regenerate.
36019 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
36021 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
36024 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
36026 2015-02-20 Richard Biener <rguenther@suse.de>
36028 PR tree-optimization/65136
36029 * tree-ssa-propagate.c: Include cfgloop.h.
36030 (replace_phi_args_in): Avoid replacing loop latch edge PHI
36031 arguments with constants.
36033 2015-02-20 Jakub Jelinek <jakub@redhat.com>
36034 Martin Liska <mliska@suse.cz>
36037 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
36038 don't try to create_thunk if stdarg_p. If
36039 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
36040 redirect_callers if possible.
36041 (sem_item_optimizer::execute): Call unregister_hooks here...
36042 (ipa_icf_driver): ... instead of here.
36044 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36046 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
36047 Mark operand 0 as earlyclobber in 2nd alternative.
36048 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
36049 Write negated shift amount into QI lowpart operand 0 and use it
36051 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
36053 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36055 * cgraph.h (clone_function_name_1): Declare.
36056 * cgraphclones.c (clone_function_name_1): New function.
36057 (clone_function_name): Use it.
36058 * lto-partition.c: Include "stringpool.h".
36059 (must_not_rename, maybe_rewrite_identifier)
36060 (validize_symbol_for_target): New static functions.
36061 (privatize_symbol_name): Use must_not_rename.
36062 (promote_symbol): Call validize_symbol_for_target.
36063 (lto_promote_cross_file_statics): Likewise.
36064 (lto_promote_statics_nonwpa): Likewise.
36066 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
36069 * config/avr/avr.md (pushhi_insn): New insn.
36070 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
36072 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36073 Jakub Jelinek <jakub@redhat.com>
36075 * tree-streamer.c (preload_common_nodes): Don't preload
36076 TI_VA_LIST* for offloading.
36077 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
36080 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
36082 * config/pa/pa.c (pa_emit_move_sequence): Always force
36083 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
36086 * config/pa/pa.c (pa_reloc_rw_mask): New function.
36087 (TARGET_ASM_RELOC_RW_MASK): Define.
36088 (pa_cannot_force_const_mem): Revert previous change.
36090 2015-02-19 Martin Jambor <mjmabor@suse.cz>
36091 Jan Hubicka <hubicka@ucw.cz>
36094 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
36095 across jump functions.
36097 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
36099 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
36101 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
36103 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
36105 2015-02-19 Richard Henderson <rth@redhat.com>
36107 PR middle-end/65074
36108 * varasm.c (default_binds_local_p_2): Don't test node->definition;
36109 test DECL_EXTERNAL independent of symtab_node.
36111 2015-02-19 Jakub Jelinek <jakub@redhat.com>
36114 * varpool.c (varpool_node::get_constructor): Return early
36115 if this->lto_file_data is NULL.
36117 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36119 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
36120 (rank_for_schedule_debug): Update.
36121 (ready_sort): Make static. Move sorting logic to ...
36122 (ready_sort_debug, ready_sort_real): New static functions.
36123 (schedule_block): Sort both debug insns and real insns in preparation
36124 for ready list trimming. Improve debug output.
36125 * sched-int.h (ready_sort): Remove global declaration.
36127 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
36129 * ipa-icf.c (sem_function::equals_private): Adjust.
36130 (sem_function::bb_dict_test): Take a vec<int> * instead of
36132 * ipa-icf.h (bb_dict_test): Likewise.
36134 2015-02-18 Jakub Jelinek <jakub@redhat.com>
36136 PR gcov-profile/64634
36137 * tree-eh.c (frob_into_branch_around): Fix up typos
36138 in function comment.
36139 (lower_catch): Put eh_seq resulting from EH lowering of
36140 the cleanup sequence after the cleanup rather than before it.
36142 2015-02-18 Tom de Vries <tom@codesourcery.com>
36144 * common.opt (fstdarg-opt): New option.
36145 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
36146 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
36147 (@item -fstdarg-opt): New item.
36149 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
36152 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
36153 for common symbols.
36155 2015-02-18 Jakub Jelinek <jakub@redhat.com>
36157 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
36159 (ALL_HOST_OBJS): Add mkoffload.o.
36160 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
36162 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
36164 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
36165 (compare_virtual_tables): Be smarter about skipping typeinfos;
36166 do sane output on virtual table table mismatch.
36167 (warn_odr): Be ready for forward declarations of enums;
36168 output sane info on base mismatch and virtual table mismatch.
36169 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
36170 when only one type is polymorphic.
36171 (get_odr_type): Fix hashtable corruption.
36172 (dump_odr_type): Dump mangled names.
36174 2015-02-18 Richard Biener <rguenther@suse.de>
36176 PR tree-optimization/65063
36177 * tree-predcom.c (determine_unroll_factor): Return 1 if we
36178 have replaced looparound PHIs.
36180 2015-02-18 Martin Liska <mliska@suse.cz>
36182 * lto-streamer.c (lto_streamer_init): Encapsulate
36183 streamer_check_handled_ts_structures with checking macro.
36185 2015-02-18 Jakub Jelinek <jakub@redhat.com>
36188 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
36189 section if !implicit_section.
36190 (cgraph_node::create_version_clone_with_body): Likewise.
36191 * trans-mem.c (ipa_tm_create_version): Likewise.
36193 2015-02-18 Richard Biener <rguenther@suse.de>
36195 PR tree-optimization/62217
36196 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
36199 2015-02-18 Marek Polacek <polacek@redhat.com>
36202 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
36203 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
36204 is in range [-16K, -1]. Don't issue run-time error if
36205 (ptr > ptr + offset).
36207 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
36209 * doc/install.texi (nvptx-*-none): New section.
36210 * doc/invoke.texi (Nvidia PTX Options): Likewise.
36211 * config/nvptx/nvptx.opt: Update.
36213 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
36214 (access_check): New functions, copied from
36215 config/i386/intelmic-mkoffload.c.
36216 (main): For non-installed testing, look in all COMPILER_PATHs for
36219 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
36221 2015-02-18 Andrew Pinski <apinski@cavium.com>
36222 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36224 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
36225 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
36227 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
36229 * ipa-visibility.c (function_and_variable_visibility): Only
36230 check locality if node is not already local.
36231 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36232 call_for_symbol_and_aliases instead of
36233 call_for_symbol_thunks_and_aliases.
36234 (ipa_inline): Likewise.
36235 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36236 first walk aliases.
36237 * ipa.c (symbol_table::remove_unreachable_nodes): Use
36238 call_for_symbol_and_aliases.
36239 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36240 (ipa_propagate_frequency_1): Use it; use opt_for_fn
36241 (ipa_propagate_frequency): Update.
36242 (ipa_profile): Add opt_for_fn gueards.
36244 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
36246 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
36247 * doc/invoke.texi (SH options): Document it.
36248 * config/sh/sh.c (sh_insn_length_adjustment): Check
36249 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
36251 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
36253 * common.opt (fipa-cp-alignment): New.
36254 * ipa-cp.c (ipcp_store_alignment_results): Check
36255 flag_ipa_cp_alignment.
36256 * opts.c (default_options_table): Enable -fipa-cp-alignment for
36258 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
36259 * doc/invoke.texi: Document -fipa-cp-alignment.
36261 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
36264 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
36265 to nil. Adjust comments.
36267 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
36269 * ipa-visibility.c (function_and_variable_visibility): Only
36270 check locality if node is not already local.
36271 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36272 call_for_symbol_and_aliases instead of
36273 call_for_symbol_thunks_and_aliases.
36274 (ipa_inline): Likewise.
36275 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36276 first walk aliases.
36277 * ipa.c (symbol_table::remove_unreachable_nodes): Use
36278 call_for_symbol_and_aliases.
36279 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36280 (ipa_propagate_frequency_1): Use it; use opt_for_fn
36281 (ipa_propagate_frequency): Update.
36282 (ipa_profile): Add opt_for_fn guards.
36284 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
36286 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
36287 skipping of "strange" tokens.
36289 2015-02-17 Jeff Law <law@redhat.com>
36291 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
36294 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
36296 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
36297 as forcing a HARD_DEP between instructions, thereby
36298 disallowing rewriting to break dependencies.
36300 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
36302 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
36303 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
36304 variables in boundary that have no inlitalizer encoded and are
36306 * varasm.c (default_binds_local_p_2): External definitions do not
36307 count as definitions here.
36309 2015-02-16 Jeff Law <law@redhat.com>
36311 PR tree-optimization/64823
36312 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
36314 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36315 threading through blocks with PHIs, but no statements.
36316 (thread_through_normal_block): Distinguish between blocks where
36317 we did not process all the statements and blocks with no statements.
36319 2015-02-16 Jakub Jelinek <jakub@redhat.com>
36320 James Greenhalgh <james.greenhalgh@arm.com>
36323 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
36324 section if not linkonce. Fix up formatting.
36325 (cgraph_node::create_version_clone_with_body): Copy section.
36326 * trans-mem.c (ipa_tm_create_version): Likewise.
36328 2015-02-16 Richard Biener <rguenther@suse.de>
36330 PR tree-optimization/65077
36331 * tree-ssa-structalias.c (get_constraint_for_1): Handle
36332 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
36333 (find_func_aliases): Allow float values to carry pointers again.
36335 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
36337 * doc/install.texi (Specific): Reorder targets list to put
36338 aarch64 in alphabetical order. Add a link to aarch64*-*-*
36341 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36342 David Edelsohn <dje.gcc@gmail.com>
36345 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
36346 mapping class to external variable or function reference.
36347 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
36350 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
36353 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
36354 ASM_WEAKEN_DECL if defined.
36356 2015-02-16 Richard Biener <rguenther@suse.de>
36359 * varasm.c (default_file_start): For LTO produced units
36360 emit <artificial> as file directive.
36362 2015-02-16 Richard Biener <rguenther@suse.de>
36364 PR tree-optimization/63593
36365 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
36366 stmts and releasing SSA names until...
36367 (execute_pred_commoning): ... after processing all chains.
36369 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
36372 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
36373 external functions.
36375 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
36377 * doc/bugreport.texi: Adjust section titles throughout the file
36378 to use "Title Case".
36379 * doc/extend.texi: Likewise.
36380 * doc/gcov.texi: Likewise.
36381 * doc/implement-c.texi: Likewise.
36382 * doc/implement-cxx.texi: Likewise.
36383 * doc/invoke.texi: Likewise.
36384 * doc/objc.texi: Likewise.
36385 * doc/standards.texi: Likewise.
36386 * doc/trouble.texi: Likewise.
36388 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
36390 * cgraph.h (symtab_node::has_aliases_p): Simplify.
36391 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
36392 * tree.c (lookup_binfo_at_offset): Make static.
36393 (get_binfo_at_offset): Do not shadow offset; add explanatory
36396 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
36398 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
36399 for all floading point loads and stores except those using a register
36401 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
36404 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
36406 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
36407 (do_estimate_growth_1): Record if any uninlinable edge was seen.
36408 (estimate_growth): Handle uninlinable edges correctly.
36409 (check_callers): New.
36410 (growth_likely_positive): Handle aliases correctly.
36412 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
36414 * ipa-chkp.c: Use iterate_direct_aliases.
36415 * symtab.c (resolution_used_from_other_file_p): Move inline.
36416 (symtab_node::create_reference): Fix formating.
36417 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36418 (symtab_node::iterate_reference): Move inline.
36419 (symtab_node::iterate_referring): Move inline.
36420 (symtab_node::iterate_direct_aliases): Move inline.
36421 (symtab_node::used_from_object_file_p_worker): Inline into ...
36422 (symtab_node::used_from_object_file_p): ... this one; move inline.
36423 (symtab_node::call_for_symbol_and_aliases): Move inline;
36424 use iterate_direct_aliases.
36425 (symtab_node::call_for_symbol_and_aliases_1): New method.
36426 (cgraph_node::call_for_symbol_and_aliases): Move inline;
36427 use iterate_direct_aliases.
36428 (cgraph_node::call_for_symbol_and_aliases_1): New method.
36429 (varpool_node::call_for_node_and_aliases): Rename to ...
36430 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
36431 use iterate_direct_aliases.
36432 (varpool_node::call_for_symbol_and_aliases_1): New method.
36433 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
36434 (ipa_discover_readonly_nonaddressable_var): Update.
36435 * ipa-devirt.c: Fix formating.
36436 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
36438 (cgraph_node::call_for_symbol_and_aliases): Move inline.
36439 (cgraph_node::call_for_symbol_and_aliases_1): New function..
36440 * cgraph.h (used_from_object_file_p_worker): Remove.
36441 (resolution_used_from_other_file_p): Move inline.
36442 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36443 (symtab_node::iterate_reference): Move inline.
36444 (symtab_node::iterate_referring): Move inline.
36445 (symtab_node::iterate_direct_aliases): Move inline.
36446 (symtab_node::used_from_object_file_p_worker): Inline into ...
36447 (symtab_node::used_from_object_file_p): Move inline.
36448 * tree-emutls.c (ipa_lower_emutls): Update.
36449 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
36450 (varpool_node::call_for_node_and_aliases): Remove.
36452 2015-02-14 Jakub Jelinek <jakub@redhat.com>
36454 PR tree-optimization/62209
36455 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
36456 op == range->exp, insert seq and gimplified code after labels
36457 instead of after the phi.
36459 2015-02-13 Jeff Law <law@redhat.com>
36462 Revert my change for tree-optimization/64823.
36464 2015-02-13 Jakub Jelinek <jakub@redhat.com>
36466 PR tree-optimization/65053
36467 * tree-ssa-phiopt.c (value_replacement): When moving assign before
36468 cond, either reset VR on lhs or set it to phi result VR.
36470 2015-02-13 Jeff Law <law@redhat.com>
36472 PR tree-optimization/64823
36473 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
36474 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36475 threading through blocks with PHIs, but no statements.
36476 (thread_through_normal_block): Distinguish between blocks where
36477 we did not process all the statements and blocks with no statements.
36479 PR rtl-optimization/47477
36480 * match.pd (convert (plus/minus (convert @0) (convert @1): New
36481 simplifier to narrow arithmetic.
36483 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
36486 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
36487 polymorphic call info when type is not known to be preserved.
36489 2015-02-13 Maritn Jambor <mjambor@suse.cz>
36492 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
36493 (inline_call): Use it.
36495 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
36497 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
36498 GOMP_DEVICE_NVIDIA_PTX.
36500 2015-02-13 Jakub Jelinek <jakub@redhat.com>
36503 * stmt.c (emit_case_nodes): Use void_type_node instead of
36504 NULL_TREE as LABEL_DECL type.
36506 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
36508 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
36510 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
36511 symbolic references to data to be forced to constant memory on the
36514 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
36516 PR tree-optimization/65002
36517 * tree-cfg.c (pass_data_fixup_cfg): Don't update
36519 * tree-sra.c (some_callers_have_no_vuse_p): New.
36520 (ipa_early_sra): Reject functions whose callers
36521 assume function is read only.
36523 2015-02-13 Richard Biener <rguenther@suse.de>
36526 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
36527 for LTO produced CUs.
36529 2015-02-13 Bin Cheng <bin.cheng@arm.com>
36531 PR tree-optimization/64705
36532 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
36533 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
36534 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
36535 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
36536 expand_simple_operations.
36538 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
36539 Richard Henderson <rth@redhat.com>
36542 * cgraphunit.c (cgraph_node::finalize_function): Set definition
36543 before notice_global_symbol.
36544 (varpool_node::finalize_decl): Likewise.
36545 * varasm.c (default_binds_local_p_2): Rename from
36546 default_binds_local_p_1, add weak_dominate argument. Use direct
36547 returns instead of assigning to local variable. Unify varpool and
36548 cgraph paths via symtab_node. Reject undef weak variables before
36549 testing visibility. Reorder tests for simplicity.
36550 (default_binds_local_p): Use default_binds_local_p_2.
36551 (default_binds_local_p_1): Likewise.
36552 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
36554 (default_elf_asm_output_external): Emit visibility when specified.
36556 2015-02-13 Alan Modra <amodra@gmail.com>
36558 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
36559 code setting up r11 for out-of-line fp restore.
36561 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
36563 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
36564 (muser-mode): Likewise.
36566 2015-02-13 Alan Modra <amodra@gmail.com>
36568 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
36569 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
36571 2015-02-12 David Howells <dhowells@redhat.com>
36573 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
36575 * tree-ssa-uninit.c (dump_predicates): Likewise.
36576 * opts.c (print_filtered_help): Likewise.
36578 2015-02-12 Jakub Jelinek <jakub@redhat.com>
36580 * dwarf2out.c (output_die): Use "%s", name instead of name to
36581 avoid -Wformat-security warning.
36583 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
36584 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36585 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
36586 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36588 2015-02-12 Jason Merrill <jason@redhat.com>
36590 * common.opt (-flifetime-dse): New.
36592 2015-02-12 Jakub Jelinek <jakub@redhat.com>
36595 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
36597 PR tree-optimization/65014
36598 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
36599 use original second operand of arg0 or arg1 instead of
36600 that adjusted by STRIP_NOPS.
36602 2015-02-11 Jeff Law <law@redhat.com>
36605 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
36606 that needs to be queued, just queue it for a single cycle.
36608 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
36610 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
36611 bodies of thunks; comment on why.
36612 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
36613 symbols are extern.
36615 2015-02-11 Richard Henderson <rth@redhat.com>
36618 * tree-eh.c (mark_reachable_handlers): Mark source and destination
36619 regions of __builtin_eh_copy_values.
36621 2015-02-11 Jakub Jelinek <jakub@redhat.com>
36623 PR middle-end/65003
36624 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
36625 ultimate alias is MEM with SYMBOL_REF satisfying
36626 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
36627 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
36629 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
36631 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
36632 "diagnostic-core.h".
36633 (main): Initialize progname, and call diagnostic_initialize.
36635 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
36636 instead of __OPENMP_TARGET__.
36638 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
36639 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
36640 hard-coding PTX_ID.
36642 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
36644 * doc/sourcebuild.texi (pie_enabled): Document.
36646 2015-02-11 Martin Liska <mliska@suse.cz>
36649 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
36650 a return value for call to a function that is noreturn.
36652 2015-02-11 Richard Biener <rguenther@suse.de>
36655 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
36658 2015-02-11 Andrew Pinski <apinski@cavium.com>
36661 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
36662 Change the first argument type to size_type_node and add another
36664 (aarch64_simd_expand_builtin): Handle the new argument to
36665 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
36666 print an out when the first two arguments are not
36667 nonzero integer constants.
36668 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
36669 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
36671 2015-02-11 Jakub Jelinek <jakub@redhat.com>
36674 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
36675 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
36676 (ix86_set_current_function): Rewritten.
36677 (ix86_add_new_builtins): Temporarily clear current_target_pragma
36678 when creating builtin fndecls.
36680 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36683 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
36685 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
36686 have no comdat group.
36687 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
36688 (lto_output_varpool_node): Always output alias info.
36689 (output_refs): Output refs of boundary aliases, too.
36690 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
36691 (output_symtab): Output call eges in thunks in boundary.
36692 (get_alias_symbol): Remove.
36693 (input_node, input_varpool_node): Do not special case weakrefs.
36694 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
36695 alias and thunks targets in the boundary; do not take removed symbols
36696 from their comdat groups.
36697 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
36698 (cgraph_node::global_info): Remove.
36699 (cgraph_node::rtl_info): Look through aliases and thunks.
36700 * cgrpah.h (global_info): Remove.
36701 (non_local_p): Remove.
36703 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36704 Sandra Loosemore <sandra@codesourcery.com>
36706 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
36707 to inline asm. List dialects in proper order.
36709 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36710 Sandra Loosemore <sandra@codesourcery.com>
36712 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
36714 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36716 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
36717 modified) reference to Solaris.
36719 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
36721 * doc/extend.texi (Extended Asm): Fix typos.
36723 2015-02-10 Jakub Jelinek <jakub@redhat.com>
36726 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
36728 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
36731 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
36732 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
36733 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
36734 * config/sh/constraints.md (Ara, Add): New constraints.
36735 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
36737 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
36738 atomic_mem_operand_0. Don't use force_reg on the memory address.
36739 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
36740 Sra constraint. Convert to insn_and_split. Add workaround for
36742 (atomic_compare_and_swap<mode>_hard): Copy to
36743 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
36744 Use atomic_mem_operand_0 predicate.
36745 (atomic_compare_and_swap<mode>_soft_gusa,
36746 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
36747 AraAdd constraints.
36748 (atomic_compare_and_swap<mode>_soft_tcb,
36749 atomic_compare_and_swap<mode>_soft_imask,
36750 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
36751 atomic_mem_operand_0 predicate and SraSdd constraints.
36752 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
36754 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
36755 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
36756 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
36757 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
36758 force_reg on the memory address.
36759 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
36760 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
36761 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
36762 atomic_mem_operand_1 predicate and Sra constraint.
36763 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
36764 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
36765 Use atomic_mem_operand_1 predicate.
36766 (atomic_<fetchop_name><mode>_hard): Copy to
36767 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
36768 Use atomic_mem_operand_1 predicate.
36769 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
36770 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
36771 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
36772 insn_and_split. Use atomic_mem_operand_1 predicate.
36773 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
36774 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
36775 Use atomic_mem_operand_1 predicate.
36776 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
36777 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
36778 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
36779 in generated insn with original mem operand before emitting the insn.
36780 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
36781 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
36782 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
36783 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
36784 Use atomic_mem_operand_1 predicate and AraAdd constraints.
36785 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
36786 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
36787 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
36788 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
36789 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
36790 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
36791 atomic_not_fetch<mode>_soft_tcb,
36792 atomic_<fetchop_name>_fetch<mode>_soft_imask,
36793 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
36794 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
36795 Use atomic_mem_operand_1 predicate and SraSdd constraints.
36797 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
36799 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
36800 and 3 earlyclobber operands.
36802 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36804 * common.opt (fstack-reuse): Mark as optimization.
36806 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36809 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
36811 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
36813 PR tree-optimization/64326
36814 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
36816 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
36818 PR gcov-profile/61889
36819 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
36821 2015-02-10 Richard Biener <rguenther@suse.de>
36823 PR tree-optimization/64995
36824 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
36825 value we use is final.
36826 (visit_reference_op_store): Always valueize op.
36827 (visit_use): Properly valueize vuses.
36829 2015-02-10 Richard Biener <rguenther@suse.de>
36831 PR tree-optimization/64909
36832 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
36833 pass a scalar-stmt count estimate to the cost model.
36834 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
36836 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
36838 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
36839 enabled by default together with var-tracking.
36841 2015-02-10 Nick Clifton <nickc@redhat.com>
36843 * config/rl78/rl78.c: Remove DIV attribute code accidentally
36844 included in previous rl78 commit.
36846 2015-02-10 Richard Biener <rguenther@suse.de>
36848 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
36849 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
36850 return the bitpack.
36852 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36854 PR gcov-profile/61889
36855 * config.in: regenerate.
36856 * configure.in: Likewise.
36857 * configure.ac: Check for ftw.h.
36858 * gcov-tool.c: Check for ftw.h before using nftw.
36860 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36863 * ipa-visibility.c (update_visibility_by_resolution_info): Only
36864 assert when not in lto mode.
36866 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
36868 * ira-color.c (setup_left_conflict_sizes_p): Simplify
36869 initialization/assignment of conflict_size.
36871 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
36874 * ipa-cp.c (gather_caller_stats): Skip thunks.
36875 (propagate_constants_topo): Skip aliases.
36877 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
36880 * config/sh/sh.c (sh_option_override): Don't change
36881 -freorder-blocks-and-partition to -freorder-blocks even when
36882 unwinding is enabled.
36883 (sh_can_follow_jump): Return false if the followee jump is
36884 a crossing jump when -freorder-blocks-and-partition is specified.
36885 * config/sh/sh.md (*jump_compact_crossing): New insn.
36887 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
36888 Kaz Kojima <kkojima@gcc.gnu.org>
36891 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
36892 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
36893 (sh_can_redirect_branch): Rename to ...
36894 (sh_can_follow_jump): ... this. Constify argument types.
36895 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
36896 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
36897 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
36898 * doc/tm.texi: Regenerate.
36900 2015-02-09 Jakub Jelinek <jakub@redhat.com>
36903 * builtins.c (expand_builtin): Call targetm.expand_builtin
36904 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
36906 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36909 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
36911 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36914 * ipa-icf.c (set_local): New function.
36915 (sem_function::merge): Use it.
36917 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36919 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
36920 (add_type_duplicate): Fix comparison of BINFOs.
36922 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36924 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
36925 on getting VOID pointer.
36927 2015-02-09 Jakub Jelinek <jakub@redhat.com>
36930 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
36933 2015-02-09 Richard Biener <rguenther@suse.de>
36935 * genmatch.c (replace_id): Copy expr_type.
36937 2015-02-09 Richard Biener <rguenther@suse.de>
36939 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
36940 (streamer_write_tree_bitfields): Declare.
36941 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
36942 properly unpack padding.
36943 (unpack_value_fields): Inline ...
36944 (streamer_read_tree_bitfields): ... here.
36945 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
36946 and properly add padding bits.
36947 (streamer_pack_tree_bitfields): Fold into ...
36948 (streamer_write_tree_bitfields): ... this new function,
36949 exposing the bitpack object.
36950 * lto-streamer-out.c (lto_write_tree_1): Call
36951 streamer_write_tree_bitfields.
36953 2015-02-09 Richard Biener <rguenther@suse.de>
36955 PR tree-optimization/54000
36956 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
36957 (struct ivopts_data): Add loop_loc member.
36958 (tree_ssa_iv_optimize_loop): Dump loop location.
36959 (create_new_ivs): Likewise, also dump number of IVs generated.
36961 2015-02-09 Martin Liska <mliska@suse.cz>
36963 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
36964 just if not yet registered.
36965 (ipa_icf_generate_summary): Register callgraph hooks.
36967 2015-02-08 Andrew Pinski <apinski@cavium.com>
36969 * config/aarch64/aarch64.c (gty_dummy): Delete.
36971 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36974 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
36975 (cgraph_node::local_p): Remove thunk related FIXME.
36977 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36980 * i386.c (ix86_function_regparm): Look through aliases to see if callee
36981 is local and optimized.
36982 (ix86_function_sseregparm): Likewise; also use target's SSE math
36983 settings; error out instead of silently generating wrong code
36985 (init_cumulative_args): Look through aliases.
36987 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36990 * ipa-split.c (execute_split_functions): Split if function has aliases.
36992 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36995 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
36996 aliases before trying to expand it.
36997 (cgraph_node::expand_thunk): Fix formating.
36999 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
37001 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
37002 (Using Assembly Language with C): Expand introduction.
37003 (Basic Asm): Copy-edit. Add more information about uses of
37005 (Extended Asm): Copy-edit. Document new escape syntax and
37007 (Global Reg Vars): Copy-edit.
37008 (Local Reg Vars): Likewise.
37010 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
37014 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
37015 (DBX_CONTIN_CHAR): Define.
37017 2015-02-06 Sebastian Pop <s.pop@samsung.com>
37018 Brian Rzycki <b.rzycki@samsung.com>
37020 PR tree-optimization/64878
37021 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
37022 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
37023 Stop recursion at loop phi nodes after having visited a loop phi node.
37025 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37027 * toplev.c (process_options): Change flag_ipa_ra before creating
37028 optimization_{default,current}_node.
37031 * cgraphunit.c (cgraph_node::expand_thunk): If
37032 restype is not is_gimple_reg_type nor the thunk_fndecl
37033 returns aggregate_value_p, set restmp to a temporary variable
37034 instead of resdecl.
37036 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
37038 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
37040 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
37043 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
37044 add a general secondary reload handler for SDmode, unless we have
37045 both read/write support for SDmode.
37047 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37049 PR middle-end/64937
37050 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
37051 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
37052 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
37053 1 before, push it to abstract_vec.
37054 (dwarf2out_abstract_function): Adjust caller. Don't call
37055 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
37056 DECL_ABSTRACT_P flags for all abstract_vec elts.
37058 2015-02-06 Renlin Li <renlin.li@arm.com>
37060 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
37062 * tree-ssa.c (execute_update_addresses_taken): Likewise.
37064 2015-02-06 Jeff Law <law@redhat.com>
37067 * config/h8300/h8300.c (push): New argument "in_prologue".
37068 Pass "in_prologue" along to "F".
37069 (h8300_push_pop): Corresponding changes.
37070 (h8300_expand_prologue): Likewise.
37071 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
37073 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37075 PR rtl-optimization/64957
37077 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
37078 IOR rather than for AND.
37080 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
37083 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
37084 of shift-add and (add + shift) operations. Rename local variable.
37086 2015-02-05 Jeff Law <law@redhat.com>
37089 * config/h8300/constraints.md (U): Correctly dectect
37090 "eightbit_data" memory addresses.
37091 * config/h8300/h8300.c (eightbit_constant_address_p): Also
37092 handle (const (plus (symbol_ref (x)))) where x is declared
37093 as an 8-bit data memory address.
37094 * config/h8300/h8300.md (call, call_value): Correctly detect
37095 "funcvec" functions.
37098 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
37099 24 to 28 bits for the H8/300.
37101 2015-02-06 Alan Modra <amodra@gmail.com>
37104 * config/rs6000/rs6000.c (chain_already_loaded): New function.
37105 (rs6000_call_aix): Use it.
37107 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
37109 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
37112 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
37114 * config/h8300/constraints.md ("U" constraint): Use strict
37115 variant of REG_OK_FOR_BASE_P after reload has started.
37117 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
37119 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
37120 define to zero if !TARGET_NEON.
37121 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
37123 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37124 Trevor Saunders <tsaunders@mozilla.com>
37127 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
37129 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37132 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
37133 when removing varpool nodes.
37135 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37138 * varpool.c (varpool_node::remove): Fix order of variables.
37140 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37143 * ipa-inline.c (inline_small_functions): Fix ordering issue between
37144 speculation resolution and key updates.
37146 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37148 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
37149 about not letting any speculative edges unupdated.
37151 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37154 * gcov-io.c (gcov_var): Export.
37156 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37158 PR middle-end/64922
37159 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
37160 edges that become speculative.
37162 2015-02-04 Jakub Jelinek <jakub@redhat.com>
37164 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
37165 or DW_LANG_Fortran08.
37166 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
37168 (gen_compile_unit_die): Handle "GNU Fortran2003" and
37169 "GNU Fortran2008" language strings.
37170 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
37171 * langhooks.h (lang_GNU_Fortran): New prototype.
37172 * langhooks.c (lang_GNU_Fortran): New function.
37173 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
37176 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
37178 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
37179 (RTX_OK_FOR_OLO10_P): Likewise.
37181 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
37183 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
37185 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37187 PR middle-end/64922
37188 * gimple.c: Include gimple-ssa.h.
37189 (maybe_remove_unused_call_args): New function.
37190 * gimple.h (maybe_remove_unused_call_args): Declare.
37191 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
37192 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
37193 * gimple-fold.c (gimple_fold_call): Likewise.
37195 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
37197 PR rtl-optimization/64905
37198 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
37199 pointer alignment if it isn't needed.
37201 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
37203 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
37204 cortex-a72.cortex-a53.
37205 * config/aarch64/aarch64-tune.md: Regenerate.
37206 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
37208 2015-02-04 Nick Clifton <nickc@redhat.com>
37210 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
37213 2015-02-04 Jakub Jelinek <jakub@redhat.com>
37215 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
37216 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
37217 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
37219 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
37220 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
37221 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
37222 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
37223 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
37224 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
37225 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
37226 * tree-core.h (enum built_in_function): In between
37227 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
37228 for builtins that use DEF_BUILTIN_CHKP macro.
37230 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
37233 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
37234 operands for tcc_comparison exprs. Fix typos.
37237 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
37238 of two XORs that have an intervening AND or IOR.
37241 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
37242 simplification of XOR of AND to not allocate new rtx before
37243 committing to a simplification.
37245 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37247 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
37248 manual swaps in all peepholes.
37250 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37252 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
37253 of manual swapping implementation.
37254 (aarch64_expand_vec_perm_const_1): Likewise.
37256 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
37258 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
37259 (generic_addrcost_table): Remove NAMED_PARAM.
37260 (cortexa57_addrcost_table): Likewise.
37261 (xgene1_addrcost_table): Likewise.
37262 (generic_regmove_table): Likewise.
37263 (cortexa53_regmove_table): Likewise.
37264 (xgene1_regmove_table): Likewise.
37265 (generic_vector_table): Likewise.
37266 (cortexa57_vector_table): Likewise.
37267 (xgene1_vector_table): Likewise.
37268 (generic_tunings): Likewise.
37269 (cortexa53_tunings): Likewise.
37270 (cortexa57_tunings): Likewise.
37271 (xgene1_tunings): Likewise.
37273 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
37275 * config/arm/arm-cores.def: Add cortex-a72 and
37276 cortex-a72.cortex-a53.
37277 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
37278 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
37279 * config/arm/arm-tune.md: Regenerate.
37280 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
37281 "cortex-a72.cortex-a53".
37282 * doc/invoke.texi (ARM Options/-mtune): Likewise.
37284 2015-02-04 Nick Clifton <nickc@redhat.com>
37287 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
37289 (nonimmediate_di_operand): Likewise.
37291 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
37292 prefixes of known F5 using MSP430 MCUs.
37294 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37296 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
37297 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
37298 instead of __builtin_sqrt.
37300 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
37302 * varasm.c (do_assemble_alias): Follow transparent alias
37304 (default_assemble_visibility): Follow transparent alias
37305 chain for decl name.
37307 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
37309 PR middle-end/62103
37310 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
37311 to compute size of referenced value in the constant case.
37313 2015-02-03 Jakub Jelinek <jakub@redhat.com>
37315 PR rtl-optimization/64756
37316 * cse.c (invalidate_dest): New function.
37317 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
37318 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
37319 invalidate and do not record it.
37321 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37324 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
37325 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
37326 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
37327 atomic_nand<mode>_soft_tcb): New insns.
37328 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
37329 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
37330 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
37331 Split into atomic_not_fetchsi_hard if operands[0] is unused.
37332 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
37333 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37334 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
37335 atomic_not<mode>_hard if operands[0] is unused.
37336 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
37337 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
37338 if operands[0] is unused.
37339 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
37340 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
37341 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
37342 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37344 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
37345 into atomic_not<mode>_soft_tcb if operands[0] is unused.
37346 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
37347 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
37348 if operands[0] is unused.
37349 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
37350 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
37351 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
37352 atomic_nand_fetchsi_hard if operands[0] is unused.
37353 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
37354 atomic_nand<mode>_hard if operands[0] is unused.
37355 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
37356 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
37357 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
37358 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37359 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
37360 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
37361 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
37362 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37363 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
37364 atomic_not<mode>_hard if operands[0] is unused.
37365 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
37366 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37368 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
37369 into atomic_not<mode>_soft_tcb if operands[0] is unused.
37370 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
37371 atomic_nand<mode>_hard if operands[0] is unused.
37372 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
37373 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37375 2015-02-03 David Malcolm <dmalcolm@redhat.com>
37378 * Makefile.in (GCC_OBJS): Add gcc-main.o.
37379 * gcc-main.c: New file, containing "main" taken from gcc.c.
37380 * gcc.c (do_self_spec): Free decoded_options.
37381 (class driver): Move declaration to gcc.h.
37382 (main): Move declaration and implementation to new file
37384 (driver_get_configure_time_options): New function.
37385 * gcc.h (class driver): Move this declaration here, from
37387 (driver_get_configure_time_options): New declaration.
37389 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
37391 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
37392 cross-module inlining.
37393 * cgraph.h (cgraph_node): Add flag merged.
37394 * ipa-icf.c (sem_function::merge): Maintain it.
37396 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
37398 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
37399 instead of OBJECT_P.
37401 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
37404 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
37405 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
37406 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
37407 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
37409 2015-02-03 Jakub Jelinek <jakub@redhat.com>
37412 * combine.c (reg_n_sets_max): New variable.
37413 (can_change_dest_mode, reg_nonzero_bits_for_combine,
37414 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
37415 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
37416 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
37417 (rest_of_handle_combine): Initialize reg_n_sets_max.
37419 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
37421 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
37422 if some always_inline was inlined, apply changes before inlining
37425 2015-02-02 David Malcolm <dmalcolm@redhat.com>
37428 * config/arm/arm.c (arm_option_override): Set
37429 arm_selected_arch/cpu/tune to NULL on entry.
37431 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
37432 Andrew Pinski <pinskia@gcc.gnu.org>
37433 Jakub Jelinek <jakub@gcc.gnu.org>
37436 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
37437 integer typing for small model. Use IN_RANGE.
37439 2015-02-02 Richard Biener <rguenther@suse.de>
37441 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
37442 * tree-vrp.c (vrp_valueize_1): Likewise.
37444 2015-02-02 Alan Modra <amodra@gmail.com>
37446 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
37447 than mem for toc_restore.
37448 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
37449 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
37450 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
37452 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
37455 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
37456 explicit default options.
37458 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
37461 * ipa-utils.c (ipa_merge_profiles): Add release argument.
37462 * ipa-icf.c (sem_function::merge): Do not release body when merging.
37463 * ipa-utils.h (ipa_merge_profiles): Update prototype.
37465 2015-02-01 Jakub Jelinek <jakub@redhat.com>
37468 * cfgexpand.c (deep_ter_debug_map): New variable.
37469 (avoid_deep_ter_for_debug): New function.
37470 (expand_debug_expr): If TERed SSA_NAME is in
37471 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
37472 instead of trying to expand SSA_NAME's def stmt.
37473 (expand_debug_locations): When expanding debug bind
37474 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
37475 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
37477 (pass_expand::execute): Call avoid_deep_ter_for_debug on
37478 all debug bind stmts. Delete deep_ter_debug_map after
37479 expand_debug_location if non-NULL and clear it.
37481 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
37484 * config/sh/sync.md (atomic_fetch_notsi_hard,
37485 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
37486 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
37487 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
37488 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
37489 atomic_not_fetch<mode>_soft_imask): New insns.
37491 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37493 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
37494 (rank_for_schedule_debug): Split from ...
37495 (rank_for_schedule): ... this.
37496 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
37497 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
37499 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
37501 * doc/md.texi (Machine Constraints): Alphabetize table by target.
37502 * doc/extend.texi (x86 Variable Attributes): Move section to
37503 correct alphabetization after renaming.
37504 (x86 Type Attributes): Likewise.
37505 (Target Builtins): Re-alphabetize menu.
37506 (x86 Built-in Functions): Move section to correct alphabetization
37508 (x86 transactional memory intrinsics): Likewise.
37509 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
37510 and x86 Windows Options in table and menu.
37511 (x86 Options): Move section to correct alphabetization after
37513 (x86 Windows Options): Likewise.
37515 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
37517 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
37518 preferred names of the architecture and its 32- and 64-bit
37520 * doc/invoke.texi: Likewise.
37521 * doc/md.texi: Likewise.
37523 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
37526 * config/i386/predicates.md (address_no_seg_operand): Reject
37527 non-CONST_INT_P operands in invalid mode.
37529 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
37531 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
37532 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
37533 * config/i386/predicates.md (address_no_seg_operand): Call
37534 address_operand with VOIDmode.
37535 (vsib_address_operand): Ditto.
37536 (address_mpx_no_base_operand): Ditto.
37537 (address_mpx_no_index_operand): Ditto.
37539 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
37542 * lra-constraints.c (original_subreg_reg_mode): New.
37543 (simplify_operand_subreg): Try to simplify subreg of const. Use
37544 original_subreg_reg_mode for it.
37545 (swap_operands): Update original_subreg_reg_mode.
37546 (curr_insn_transform): Set up original_subreg_reg_mode.
37548 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
37551 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
37553 (process_alt_operands): Use it.
37554 (curr_insn_transform): Check the optional reload pseudo class is
37557 2015-01-30 Joseph Myers <joseph@codesourcery.com>
37559 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
37560 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
37562 * toplev.h (init_asm_output): Update comment on use of
37563 UNKNOWN_LOCATION with fatal_error.
37564 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
37565 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
37566 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
37567 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
37568 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
37569 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
37570 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
37571 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
37572 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
37573 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
37574 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
37575 fatal_error changed to pass input_location as first argument.
37577 2015-01-30 Martin Liska <mliska@suse.cz>
37579 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
37580 in #pragma GCC diagnostic guards.
37582 2015-01-30 Richard Biener <rguenther@suse.de>
37584 PR tree-optimization/64829
37585 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
37586 not add a widening conversion pattern but hand off extra
37587 widenings to callers.
37588 (vect_recog_widen_mult_pattern): Handle extra widening produced
37589 by vect_handle_widen_op_by_const.
37590 (vect_recog_widen_shift_pattern): Likewise.
37591 (vect_pattern_recog_1): Remove excess vertical space in dumping.
37592 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
37593 (vect_init_vector_1): Likewise.
37594 (vect_get_vec_def_for_operand): Likewise.
37595 (vect_finish_stmt_generation): Likewise.
37596 (vectorizable_load): Likewise.
37597 (vect_analyze_stmt): Likewise.
37598 (vect_is_simple_use): Likewise.
37600 2015-01-29 Jeff Law <law@redhat.com>
37602 * combine.c (try_combine): Fix typo in comment.
37604 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
37607 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
37608 (rs6000_stack_info): Add assert.
37609 (rs6000_output_savres_externs): New function, split off from...
37610 (rs6000_output_function_prologue): ... here. Do not call it for
37613 2015-01-29 Jeff Law <law@redhat.com>
37616 * combine.c (try_combine): If I0 is a memory load and I3 a store
37617 to a related address, increase the "goodness" of doing a 4-insn
37618 combination with I0-I3.
37619 (make_field_assignment): Handle SUBREGs in the ior+and case.
37621 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
37623 PR tree-optimization/64746
37624 * tree-if-conv.c (mask_exists): New function.
37625 (predicate_mem_writes): Save created mask with given size for further
37627 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
37628 (ifcvt_repair_bool_pattern): Collect all statements that are root
37629 of bool pattern and use iterative algorithm to remove multiple uses
37630 of predicates, display number of required iterations.
37632 2015-01-29 Richard Biener <rguenther@suse.de>
37634 PR tree-optimization/64853
37635 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
37636 stmt will get simulated again.
37637 * tree-ssa-ccp.c (valueize_op_1): Likewise.
37639 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37641 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
37642 return_in_pc. Remove redundant assignments.
37643 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
37644 (arm_expand_epilogue): Don't compare boolean with true in if condition.
37646 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
37648 * config/i386/i386.c (ix86_mode_after): Make static.
37650 2015-01-29 Richard Biener <rguenther@suse.de>
37652 PR tree-optimization/64844
37653 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
37654 dump cost model analysis.
37655 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
37656 Do not register adjusted load/store costs here.
37658 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
37659 Uros Bizjak <ubizjak@gmail.com>
37661 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
37662 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
37663 using x86_use_pseudo_pic_reg.
37664 * config/i386/i386.c (ix86_conditional_register_usage): Remove
37665 support for fixed PIC register.
37666 (ix86_use_pseudo_pic_reg): Not static any more.
37668 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
37670 PR middle-end/64805
37671 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
37672 to avoid error in cgraph node verification.
37674 2015-01-29 Marek Polacek <polacek@redhat.com>
37676 * doc/standards.texi: Reflect that the default for C is gnu11.
37678 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
37681 * reorg.c (switch_text_sections_between_p): New function.
37682 (relax_delay_slots): Call it when testing if the jump insn
37683 is removable. Use targetm.can_follow_jump when testing if
37684 the conditional branch can follow an unconditional jump.
37686 2015-01-27 Caroline Tice <cmtice@google.com>
37688 Committing VTV Cywin/Ming patch for Patrick Wollgast
37689 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
37690 if -fvtable-verify=preinit/std is used.
37691 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
37692 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
37693 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
37694 if -fvtable-verify=preinit/std is used.
37695 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
37696 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
37697 if -fvtable-verify=preinit/std is used.
37698 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
37699 * config/i386/mingw32.h (LIB_SPEC): Likewise.
37700 * varasm.c (assemble_variable): Add code to properly set the comdat
37701 section and name for the .vtable_map_vars section in case the
37702 target is PE or COFF.
37704 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
37707 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
37708 make sane BB profile.
37709 (cgraph_node::expand_thunk): Make sane BB profile.
37710 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
37711 * cgraph.h (init_lowered_empty_function): Update prototype.
37712 * config/i386/i386.c (make_resolver_func): Update call.
37713 * predict.c (gate): Disable branch prediction pass if
37714 profile is already there.
37716 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
37718 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
37719 * opth-gen.awk: Likewise.
37720 * common.opt: Mark flag_fp_contract_mode as Optimization.
37722 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
37724 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
37725 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
37727 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
37730 * config/sh/predicates.md (atomic_arith_operand,
37731 atomic_logical_operand): Remove.
37732 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
37733 (atomic_arith_operand_0): New predicate.
37734 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
37735 Use atomic_arith_operand_0 for input values.
37736 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
37737 atomic_compare_and_swap<mode>_soft_gusa,
37738 atomic_compare_and_swap<mode>_soft_tcb,
37739 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
37740 arith_reg_operand instead of register_operand.
37741 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
37742 atomic_arith_operand_0 for newval input.
37743 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
37744 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
37745 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
37746 arith_reg_operand instead of register_operand.
37747 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
37748 fetchop_predicate_1, fetchop_constraint_1_llcs,
37749 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
37750 fetchop_constraint_1_imask): New code iterator attributes.
37751 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
37752 register_operand. Use fetchop_predicate_1.
37753 (atomic_fetch_<fetchop_name>si_hard,
37754 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
37755 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
37756 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
37757 and arith_reg_operand instead of register_operand. Use
37758 fetchop_predicate_1, fetchop_constraint_1_gusa.
37759 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
37760 and arith_reg_operand instead of register_operand. Use
37761 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
37763 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
37764 and arith_reg_operand instead of register_operand. Use
37765 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
37767 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
37768 register_operand. Use atomic_logical_operand_1.
37769 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
37770 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
37771 arith_reg_operand instead of register_operand.
37772 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
37773 Use arith_reg_dest and arith_reg_operand instead of register_operand.
37774 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
37775 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
37776 register_operand. Use fetchop_predicate_1.
37777 (atomic_<fetchop_name>_fetchsi_hard,
37778 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
37779 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37780 fetchop_constraint_1_llcs.
37781 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
37782 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37783 fetchop_constraint_1_gusa.
37784 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
37785 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37786 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
37787 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
37788 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37789 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
37790 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
37791 register_operand. Use atomic_logical_operand_1.
37792 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
37793 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
37794 arith_reg_operand instead of register_operand.
37795 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
37796 arith_reg_operand instead of register_operand. Use logical_operand
37797 and K08. Adjust asm sequence to allow R0 usage.
37798 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
37799 arith_reg_operand instead of register_operand. Use logical_operand
37802 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37805 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
37806 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
37807 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
37808 only get_full_len HOST_WIDE_INTs from get_val () array rather than
37809 all bits in *val_wide.
37811 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
37813 * varpool.c (tls_model_names): Fix names.
37814 (varpool_node::dump): Dump tls- prefix for tls models.
37816 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
37817 Bernd Schmidt <bernds@codesourcery.com>
37818 Nathan Sidwell <nathan@codesourcery.com>
37820 * config/nvptx/mkoffload.c: New file.
37821 * config/nvptx/t-nvptx: Add build rules for it.
37822 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
37823 (extra_programs): Add mkoffload.
37824 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
37826 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
37828 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
37830 PR middle-end/64809
37831 * cfgexpand.c (reorder_operands): Skip debug gimples.
37833 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
37835 PR tree-optimization/64277
37836 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
37837 range info when possible to refine estimation.
37839 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
37841 PR tree-optimization/64718
37842 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
37843 be a 16bit unsigned integer when n->range is 16.
37844 (bswap_replace): Convert src to that type if necessary for all bswap
37845 sizes. Fix rotation right notation in nearby comment. Use bswap_type
37846 set in pass_optimize_bswap::execute ().
37848 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
37850 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
37851 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
37852 integer and floating point variants.
37853 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
37855 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
37857 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
37858 for all vector modes.
37860 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37863 * doc/sourcebuild.texi (comdat_group): Document.
37865 2015-01-28 Terry Guo <terry.guo@arm.com>
37867 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
37869 2015-01-27 David Malcolm <dmalcolm@redhat.com>
37871 * toplev.c (print_version): Add param "show_global_state", and
37872 only print GGC and plugin information if it is true.
37873 (init_asm_output): Pass in "true" for the new param when calling
37875 (process_options): Likewise.
37876 (toplev::main): Likewise.
37877 * toplev.h (print_version): Add new param to decl.
37879 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
37883 * tree.c (lookup_binfo_at_offset): New function.
37884 (get_binfo_at_offset): Use it.
37886 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
37889 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
37890 on vtable being vtable.
37892 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
37894 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
37895 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
37896 -mhotpatch= option.
37897 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
37898 -mno-hotpatch options. Change syntax of -mhotpatch= option.
37899 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
37901 (s390_hotpatch_trampoline_halfwords_max): Renamed.
37902 (s390_hotpatch_hw_max): New name.
37903 (s390_hotpatch_trampoline_halfwords): Renamed.
37904 (s390_hotpatch_hw_before_label): New name.
37905 (get_hotpatch_attribute): Removed.
37906 (s390_hotpatch_hw_after_label): New name.
37907 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
37909 (s390_attribute_table): Ditto.
37910 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
37911 (s390_function_num_hotpatch_hw): New name.
37912 Remove special handling of inline functions and hotpatching.
37913 Return number of nops before and after the function label.
37914 (s390_can_inline_p): Removed.
37915 (s390_asm_output_function_label): Emit a configurable number of nops
37916 after the function label.
37917 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
37918 (TARGET_CAN_INLINE_P) Removed.
37919 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
37921 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37922 Jiong Wang <jiong.wang@arm.com>
37924 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
37926 (cb<optab><mode>1): Likewise.
37927 * config/aarch64/iterators.md (bcond): New define_code_attr.
37929 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37931 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
37934 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37936 * config/s390/s390.c (s390_register_move_cost): Increase costs for
37939 2015-01-27 Richard Biener <rguenther@suse.de>
37941 * tree-vrp.c (update_value_range): Intersect the range with
37942 old recorded SSA name range information.
37944 2015-01-27 Nick Clifton <nickc@redhat.com>
37946 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
37947 BC, DE and HL registers directly, not via AX.
37948 When decrementing the stack pointer by a large amount, transfer SP
37949 into AX and perform the subtraction there.
37950 (rl78_expand_epilogue): Perform the inverse of the above
37953 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37955 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
37957 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37958 Yury Gribov <y.gribov@samsung.com>
37961 * ubsan.c (ubsan_source_location): Refactor code.
37962 (ubsan_type_descriptor): Update type size. Refactor code.
37964 2015-01-27 Richard Biener <rguenther@suse.de>
37966 PR tree-optimization/56273
37967 PR tree-optimization/59124
37968 PR tree-optimization/64277
37969 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
37970 from the first VRP pass.
37972 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37975 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
37976 handle the first argument in the same loop as all the other arguments.
37978 PR rtl-optimization/61058
37979 * jump.c (cleanup_barriers): Update basic block boundaries
37980 if BLOCK_FOR_INSN is non-NULL on PREV.
37982 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
37984 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
37985 bounds narrowing, already instrumented calls and calls to
37986 not instrumentable functions.
37988 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37990 PR tree-optimization/64807
37991 * wide-int.cc (wi::divmod_internal): Clear
37992 b_dividend[dividend_blocks_needed].
37994 2015-01-26 DJ Delorie <dj@redhat.com>
37996 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
37997 volatile memory references.
37999 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
38002 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
38004 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
38005 shifts if it already fits into K08.
38007 2015-01-26 Jakub Jelinek <jakub@redhat.com>
38010 * ipa-inline.c (inline_small_functions): Print "unknown" even
38011 if edge->call_stmt is non-NULL, but has builtins or unknown
38014 PR middle-end/64421
38015 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
38016 with asterisk, skip the first character.
38018 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
38021 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
38024 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
38027 * config/i386/i386.md (*movdi_internal): Also check operand 0
38028 to determine TYPE_LEA operand.
38029 (*movsi_internal): Ditto.
38031 2015-01-26 Jakub Jelinek <jakub@redhat.com>
38033 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
38034 OPTION_MASK_QUAD_MEMORY_ATOMIC.
38036 2015-01-26 Renlin Li <renlin.li@arm.com>
38038 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
38040 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
38043 2015-01-26 Richard Biener <rguenther@suse.de>
38045 PR middle-end/64764
38046 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
38047 combining two BIT_AND_EXPR predicates.
38049 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
38052 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
38054 2015-01-26 Terry Guo <terry.guo@arm.com>
38056 * config/arm/arm.c (arm_file_start): Update the assignment of
38057 Tag_ABI_HardFP_use.
38059 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
38061 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
38063 config/arm/arm.md: Include the new Cortex-A57 model.
38064 (generic_sched): Don't use generic_sched when tuning for
38067 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
38068 Uros Bizjak <ubizjak@gmail.com>
38070 * config/i386/i386.c (get_builtin_code_for_version): Add
38071 support for BMI and BMI2 multiversion functions.
38073 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38075 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
38076 (extract_bit_field): Likewise.
38077 (extract_low_bits): Likewise.
38078 (expand_mult): Likewise.
38079 (expand_mult_highpart_adjust): Likewise.
38081 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
38083 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
38084 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
38085 * config/i386/i386.c (processor_model): Add
38086 M_INTEL_COREI7_BROADWELL.
38087 (arch_names_table): Add "broadwell".
38089 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
38098 * config/sh/sh-protos.h
38099 (sh_extending_set_of_reg::can_use_as_unextended_reg,
38100 sh_extending_set_of_reg::use_as_unextended_reg,
38101 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
38102 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
38103 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
38104 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
38105 (sh_treg_insns): New class.
38106 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
38107 (scope_counter): New class.
38108 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
38109 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
38110 sh_extending_set_of_reg::can_use_as_unextended_reg,
38111 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
38112 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
38113 sh_split_treg_set_expr): New functions.
38114 (addsubcosts): Handle treg_set_expr.
38115 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
38116 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
38117 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
38118 (sh_insn_operands_modified_between_p): Make non-static.
38119 * config/sh/predicates.md (zero_extend_movu_operand): Allow
38120 simple_mem_operand in addition to displacement_mem_operand.
38121 (zero_extend_operand): Don't allow zero_extend_movu_operand.
38122 (treg_set_expr, treg_set_expr_not_const01,
38123 arith_reg_or_treg_set_expr): New predicates.
38124 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
38125 arith_or_int_operand instead of logical_operand. Convert to
38126 insn_and_split. Try to optimize constant operand in splitter.
38127 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
38128 (*tstqi_t_zero): Delete.
38129 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
38130 (tstsi_t_and_not): Delete.
38131 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
38132 Convert to insn_and_split.
38133 (unnamed split, tstsi_t_zero_extract_xor,
38134 tstsi_t_zero_extract_subreg_xor_little,
38135 tstsi_t_zero_extract_subreg_xor_big): Delete.
38136 (*tstsi_t_shift_mask): New insn_and_split.
38137 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
38138 to recombine with surrounding insns when splitting.
38139 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
38140 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
38141 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
38142 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
38143 (*cbranch_div0s: Delete.
38144 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
38145 Try to recombine with surrounding insns when splitting. Add operand
38147 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
38148 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
38149 *addc_r_r_msb, *addc_2r_msb): Delete.
38150 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
38152 (*addc_negreg_t): New insn_and_split.
38153 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
38154 Try to recombine with surrounding insns when splitting.
38155 Add operand order variants.
38156 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
38157 insn_and_split patterns.
38158 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
38159 surrounding insns when splitting.
38160 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
38161 (*rotcl): Likewise. Add zero_extract variant.
38162 (*ashrsi2_31): New insn_and_split.
38163 (*negc): Convert to insn_and_split. Use treg_set_expr.
38164 (*zero_extend<mode>si2_disp_mem): Update comment.
38165 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
38167 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
38168 with surrounding insns when splitting.
38169 (any_treg_expr_to_reg): New insn_and_split.
38170 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
38171 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
38172 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
38173 *zero_extract_2): New single bit zero extract patterns.
38174 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
38175 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
38176 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
38177 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
38179 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
38180 register_operand for set source.
38182 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
38184 * i386.opt (prefetch_sse): New targetsave.
38185 * i386.c (ix86_function_specific_save): Save prefetch_sse.
38186 (ix86_function_specific_restore): Restore prefetch_sse and initialize
38187 ix86_cost/ix86_tune_cost.
38189 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38191 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
38192 Support the JIT by using 0 as the language type.
38194 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
38197 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
38198 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
38199 (mark_regno_live, process_bb_lives): Pass new parameter value to
38200 make_hard_regno_born.
38202 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38204 PR rtl-optimization/63637
38205 PR rtl-optimization/60663
38206 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
38207 if elt->cost is MAX_COST for ASM_OPERANDS.
38208 (find_sets_in_insn): Fix up comment typo.
38209 (cse_insn): Don't set src_volatile for all non-volatile
38210 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
38211 or with "memory" clobber. Set elt->cost to MAX_COST
38212 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
38213 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
38215 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
38217 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
38220 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
38222 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
38223 libgcc/config/i386/elf-lib.h.
38225 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38228 * gcc.c (print_configuration): Don't print a blank line at the end
38230 (run_attempt): ... but here unstead.
38232 PR middle-end/64734
38233 * omp-low.c (scan_sharing_clauses): Don't ignore
38234 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
38235 on target data/update constructs.
38237 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
38240 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
38241 (DEBUG_RELOAD): Removed define.
38242 (m32c_limit_reload_class): Enable traces with if DEBUG0.
38243 (m32c_function_arg): Added a type cast.
38244 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
38245 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
38246 * config/m32c/bitops.md (andqi3_16): Likewise.
38247 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
38248 (push_a01_l): Likewise.
38250 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38253 * main.c (main): Construct toplev instances with init_signals=true.
38254 * toplev.c (general_init): Add param "init_signals", and use it to
38255 conditionalize the calls to signal and host_hooks.extra_signals.
38256 (toplev::toplev): Add param "init_signals".
38257 (toplev::main): When invoking general_init, pass m_init_signals
38258 to control whether signal-handlers are installed.
38259 * toplev.h (toplev::toplev): Add param "init_signals".
38260 (toplev::m_init_signals): New field.
38262 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38265 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
38266 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
38267 latter may be affected by the former (e.g. on i686).
38269 2015-01-23 Martin Liska <mliska@suse.cz>
38271 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
38272 false positive during profiledbootstrap.
38274 2015-01-23 Tom de Vries <tom@codesourcery.com>
38277 * lto-opts.c (lto_write_options): Output non-explicit conservative
38279 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
38280 (append_compiler_options): Pass -fopenacc through.
38282 2015-01-23 Tom de Vries <tom@codesourcery.com>
38285 * lto-opts.c (lto_write_options): Output non-explicit conservative
38287 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
38288 (append_compiler_options): Pass -fopenmp through.
38290 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38293 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
38296 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
38297 * diagnostic.def (DK_ICE_NOBT): New kind.
38298 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
38299 like DK_ICE, but never print backtrace.
38300 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
38301 (internal_error_no_backtrace): New function.
38302 * gcc.c (execute): Use internal_error_no_backtrace instead of
38305 2015-01-22 Jeff Law <law@redhat.com>
38308 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
38309 improve code density for small immediate to memory case.
38310 (insv): Better handle bitfield assignments when the field is
38311 being set to all ones.
38312 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
38315 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38316 Jakub Jelinek <jakub@redhat.com>
38318 PR middle-end/64729
38319 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
38320 for !TARGET_LIBC_PROVIDES_SSP version and
38321 -fstack-protector-{all,strong,explicit} otherwise.
38322 * config/freebsd.h (LINK_SSP_SPEC): Handle
38323 -fstack-protector-{strong,explicit}.
38325 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
38326 H.J. Lu <hongjiu.lu@intel.com>
38329 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
38332 2015-01-22 Wei Mi <wmi@google.com>
38334 PR rtl-optimization/64557
38335 * dse.c (record_store): Call get_addr for mem_addr.
38336 (check_mem_read_rtx): Likewise.
38338 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
38340 * fold-const.c (const_binop): Add early return for non-tcc_binary.
38342 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
38344 * toplev.c (init_local_tick): Process the failure when read
38345 fails for random_seed.
38347 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
38348 'pretty_name' to avoid memory overflow.
38350 2015-01-22 Richard Biener <rguenther@suse.de>
38352 PR middle-end/64728
38353 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
38354 abnormal coalescing on undefined SSA names.
38356 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
38360 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
38362 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
38364 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
38366 PR middle-end/63325
38367 * fold-const.c (fold_checksum_tree): Don't include value of
38368 expr->decl_with_vis.symtab_node in the checksum.
38370 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38372 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
38374 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
38377 * gcc.c (insert_comments): New function.
38378 (try_generate_repro): Call it.
38379 (append_text): Removed.
38381 2015-01-22 Richard Biener <rguenther@suse.de>
38383 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
38384 with IL incompatible options. Properly honor user optimize
38387 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
38389 PR rtl-optimization/64682
38390 * combine.c (distribute_notes): When moving a death note for
38391 a register that is set in the new I2, make sure to put it
38392 before that new I2.
38394 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
38396 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
38397 not TARGET_DEFAULT.
38399 2015-01-21 Jakub Jelinek <jakub@redhat.com>
38402 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
38403 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
38404 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
38407 * doc/invoke.texi (-fsanitize=vptr): Document.
38409 PR rtl-optimization/62078
38410 * dse.c: Include cfgcleanup.h.
38411 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
38412 anything call purge_all_dead_edges and cleanup_cfg at the end
38415 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
38417 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
38420 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
38422 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
38425 2015-01-21 David Sherwood <david.sherwood@arm.com>
38426 Tejas Belagod <Tejas.Belagod@arm.com>
38428 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
38429 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
38430 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
38433 2015-01-21 David Sherwood <david.sherwood@arm.com>
38434 Tejas Belagod <Tejas.Belagod@arm.com>
38436 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
38437 (aarch64_reverse_mask): New decls.
38438 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
38439 (insn_count): New mode_attr.
38440 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
38441 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
38442 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
38443 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
38444 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
38445 (aarch64_simd_st4): New patterns.
38446 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
38447 (aarch64_reverse_mask): New functions.
38449 2015-01-21 Alan Hayward <alan.hayward@arm.com>
38451 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
38453 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
38454 addressing modes for BE.
38455 (aarch64_print_operand): Add 'R' specifier.
38456 (aarch64_simd_disambiguate_copy): Delete.
38457 (aarch64_simd_emit_reg_reg_move): New function.
38458 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
38459 in define_splits for structural moves.
38460 (mov<mode>): Use less restrictive predicates.
38461 (*aarch64_mov<mode>): Simplify and only allow for LE.
38462 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
38464 2015-01-21 Alan Hayward <alan.hayward@arm.com>
38466 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
38468 2015-01-21 Richard Henderson <rth@redhat.com>
38471 * ccmp.c (used_in_cond_stmt_p): Remove.
38472 (expand_ccmp_expr): Don't use it.
38474 2015-01-21 Nick Clifton <nickc@redhat.com>
38476 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
38479 2015-01-21 Richard Biener <rguenther@suse.de>
38481 PR middle-end/64313
38482 * tree-core.h (builtin_info, builtin_info_type): Turn from
38483 an object with two arrays into an array of an object with
38484 decl and two flags, implicit_p and declared_p.
38485 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
38486 set_builtin_decl, set_builtin_decl_implicit_p,
38487 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
38488 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
38489 * builtins.c (builtin_info): Adjust.
38490 * gimplify.c (gimplify_addr_expr): References to builtins
38491 that have been declared by the user makes them eligible for
38492 use by the compiler. Call set_builtin_decl_implicit_p on them.
38494 2015-01-20 Jeff Law <law@redhat.com>
38497 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
38498 allow pc-relative addresses in operand predicates or constraints.
38500 2015-01-21 Bin Cheng <bin.cheng@arm.com>
38502 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
38503 neon on aarch32 processors for stringops.
38505 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38508 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
38510 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38513 * ipa-inline.c: Include lto-streamer.h
38514 (report_inline_failed_reason): Output source file differences and
38515 flags on optimization/target node mismatch.
38516 (can_inline_edge_p): Consider caller to be the outer inline function;
38517 be less restrictive about matching opimize and optimize_size attributes.
38518 (inline_account_function_p): Break out from ...
38519 (inline_small_functions): ... here.
38520 * ipa-inline-transform.c (clone_inlined_nodes): Use
38521 inline_account_function_p.
38522 (inline_call): Use optimize attribution; use inline_account_function_p.
38523 (inline_transform): Use opt_for_fn.
38524 * ipa-inline.h (inline_account_function_p): Declare.
38526 2015-01-20 Jakub Jelinek <jakub@redhat.com>
38529 * dwarf2out.c (decl_piece_node): Don't put bitsize into
38530 mode if bitsize <= 0.
38531 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
38532 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
38533 sizes and positions.
38535 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
38537 * config/nios2/nios2.c (nios2_asm_file_end): Implement
38538 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
38540 (TARGET_ASM_FILE_END): Define.
38542 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38544 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
38545 (struct tune_params): Use the enum.
38546 * arm.c (arm_*_tune): Update.
38547 (arm_option_override): Update.
38549 2015-01-20 Richard Biener <rguenther@suse.de>
38552 * ipa-reference.c (add_static_var): Inline ...
38553 (analyze_function): ... here after splitting out from ...
38554 (is_proper_for_analysis): ... this.
38556 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
38559 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
38560 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
38561 replace the conditional with it's true branch.
38562 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
38563 (arm_lra_p): Remove.
38565 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
38567 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
38569 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38571 * config/tilegx/mul-tables.c: Move symtab.h include after
38572 coretypes.h include.
38573 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
38574 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
38575 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
38576 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
38577 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38579 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
38583 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
38585 PR rtl-optimization/64081
38586 * loop-iv.c (def_pred_latch_p): New function.
38587 (latch_dominating_def): Allow specific cases with non-single
38589 (iv_get_reaching_def): Likewise.
38590 (check_complex_exit_p): New function.
38591 (check_simple_exit): Use check_complex_exit_p to allow certain cases
38592 with exits not executing on any iteration.
38594 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38597 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
38598 to set branch cost.
38600 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38603 * i386.c (gate): Check flag_expensive_optimizations and
38605 (ix86_option_override_internal): Drop optimize_size condition
38606 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
38607 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
38608 MASK_PREFER_AVX128.
38609 (ix86_avx256_split_vector_move_misalign,
38610 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
38611 * sse.md (all uses of TARGET_PREFER_AVX128): Add
38612 optimize_insn_for_speed_p check.
38614 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
38616 * config/mips/mips.h (FP_ASM_SPEC): New define.
38617 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
38620 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
38623 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
38624 nullptr for insn when reaching the first insn.
38625 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
38626 (sh_insn_operands_modified_between_p): Add nullptr check.
38627 (sh_find_extending_set_of_reg): Fix log message. Don't accept
38628 sign extending mem load if the insn contains any UNSPEC or
38631 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38633 * params.def (inline-unit-growth): Drop to 15%.
38634 * invoke.texi (inline-unit-growth): Document change.
38636 2015-01-19 Martin Liska <mliska@suse.cz>
38639 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
38640 function for second argument of OBJ_TYPE_REF.
38642 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38645 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
38646 whether function is an alias.
38648 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38650 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
38653 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
38655 PR rtl-optimization/64671
38656 * lra-remat.c (operand_to_remat): Don't consider jump and call
38659 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
38662 * config/rs6000/default64.h: Include rs6000-cpus.def.
38663 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
38664 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
38665 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
38667 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
38669 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
38670 pseudo-op to specify assembler dialect.
38672 2015-01-19 Martin Liska <mliska@suse.cz>
38675 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
38676 Handle safe potentially removed nodes during filtering.
38678 2015-01-19 Martin Liska <mliska@suse.cz>
38680 * doc/extend.texi (no_icf): Add new attribute description.
38681 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
38682 where the pass attempts to merge a function with no_icf attribute.
38684 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38687 * doc/md.texi (ARM Options): Document register constraints.
38689 2015-01-19 Jiong Wang <jiong.wang@arm.com>
38690 Andrew Pinski <apinski@cavium.com>
38693 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
38694 (ashl<mode>3): Don't expand if operands[2] is not constant.
38696 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38699 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
38700 Match xor-and-xor RTL pattern.
38702 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
38704 PR rtl-optimization/64081
38705 * loop-iv.c (def_pred_latch_p): New function.
38706 (latch_dominating_def): Allow specific cases with non-single
38708 (iv_get_reaching_def): Likewise.
38709 (check_complex_exit_p): New function.
38710 (check_simple_exit): Use check_complex_exit_p to allow certain cases
38711 with exits not executing on any iteration.
38713 2015-01-19 Jakub Jelinek <jakub@redhat.com>
38715 * common.opt (fgraphite): Fix a typo.
38717 2015-01-19 Felix Yang <felix.yang@huawei.com>
38719 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
38721 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
38722 uminp, smax_nanp, smin_nanp): New builtins.
38723 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
38724 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
38725 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
38726 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
38727 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
38728 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
38729 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
38730 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
38731 vpminnms_f32): Rewrite using builtin functions.
38733 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
38736 * omp-low.c (offload_symbol_decl): Remove variable.
38737 (get_offload_symbol_decl): Remove function.
38738 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
38739 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
38740 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
38741 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
38742 BUILT_IN_GOACC_UPDATE don't pass it at all.
38744 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
38746 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
38749 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
38751 * ipa-chkp.c (chkp_produce_thunks): Add early param
38752 to split thunks production into two passes. Keep
38753 'always_inline' function bodies after the first pass.
38754 (pass_data_ipa_chkp_early_produce_thunks): New.
38755 (pass_ipa_chkp_early_produce_thunks): New.
38756 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
38757 chkp_produce_thunks signature.
38758 (make_pass_ipa_chkp_early_produce_thunks): New.
38759 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
38760 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
38761 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
38763 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38765 * cgraph.c (cgraph_node::dump): Dump profile flags.
38767 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
38770 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
38771 reg appear first in the parallel.
38773 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38775 * ipa-reference.c (set_reference_optimization_summary,
38776 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
38778 (ignore_module_statics): New static var.
38779 (propagate_bits): If ipa-reference is disabled, do not look into local
38781 (analyze_function): Disable analysis when ipa_reference is disabled.
38782 (generate_summary): Do not dump when reference is disabled;
38783 collect vars accessed from functions with ipa-reference disabled.
38784 (get_read_write_all_from_node): When ipa-reference is disabled, use the
38786 (gate): Enable for LTO.
38787 (ignore_edge_p): New function.
38788 (propagate): Skip functions w/o ipa-reference analysis.
38789 * optc-save-gen.awk: Handle optimize_debug correctly.
38790 * opth-gen.awk: Likewise.
38791 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
38792 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
38793 fira-share-save-slots, fira-share-spill-slots,
38794 fmodulo-sched-allow-regmoves, fpartial-inlining,
38795 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
38796 ftracer, ftree-parallelize-loops, fassociative-math,
38797 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
38799 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
38800 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
38802 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
38805 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38808 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
38810 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
38812 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
38814 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
38815 Remove duplicate option listings.
38817 2015-01-18 Felix Yang <felix.yang@huawei.com>
38819 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
38820 (autofdo_source_profile::get_callsite_total_count,
38821 function_instance::get_function_instance_by_decl,
38822 string_table::get_index, string_table::get_index_by_decl,
38823 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
38824 Fix comment typos. Reformatting and minor code rearrangement.
38826 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38828 * config/rs6000/rs6000.md (probe_stack): Delete.
38829 (probe_stack_address): New.
38831 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38833 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
38834 to test for 32-bit ABIs, not !TARGET_POWERPC64.
38836 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38838 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
38839 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
38840 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
38842 (rs6000_libcall_value): Use the new function.
38844 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
38846 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
38848 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
38850 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
38851 implement a more precise life analysis for it during backward scan.
38853 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
38855 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
38857 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
38859 PR rtl-optimization/52773
38860 * calls.c (emit_library_call_value): When pushing arguments use
38861 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
38862 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
38863 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
38865 2015-01-17 Jeff Law <law@redhat.com>
38867 PR rtl-optimization/32790
38868 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
38869 not ZERO_EXTEND in SET_DESTs.
38871 2015-01-17 Alan Modra <amodra@gmail.com>
38873 * cprop.c (do_local_cprop): Revert last change.
38875 2015-01-16 DJ Delorie <dj@redhat.com>
38876 Nick Clifton <nickc@redhat.com>
38878 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
38879 (addhi3_real): Likewise. Fix [HL+0] syntax.
38880 (subqi3_real): Likewise.
38881 (subhi3_real): Likewise.
38882 (cbranchqi4_real): Likewise. Allow saddr,#imm.
38883 (cbranchhi4_real): Likewise.
38884 (cbranchhi4_real_inverted): Likewise.
38885 (cbranchsi4_real_lt): Likewise.
38886 (cbranchsi4_real_ge): Likewise.
38887 (cbranchsi4_real_ge): Likewise.
38888 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
38889 (sub<mode>3_virt): Likewise.
38890 (cbranchqi4_virt): Likewise.
38891 (cbranchhi4_virt): Likewise.
38892 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
38893 always use '[reg+imm]' even when imm is zero.
38894 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
38895 (rl78_general_operand): New.
38896 (rl78_nonimmediate_operand): New.
38897 (rl78_nonfar_operand): Use them.
38898 (rl78_nonfar_nonimm_operand): Likewise.
38899 (rl78_stack_based_mem): Fix.
38900 * config/rl78/constraints.md (Ibqi): New.
38905 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
38906 (iorqi3): Likewise.
38907 (xorqi3): Likewise.
38908 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
38910 * config/rl78/constrains (Qs8): New constraint.
38911 * config/rl78/rl78.c (rl78_flags_already_set): New function.
38912 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
38913 * config/rl78/rl78-real.md (update_Z): New attribute.
38914 Update patterns to set it.
38915 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
38916 shorter compare and branch sequence can be used.
38917 (cbranchhi4_real): Likewise.
38918 (cbranchhi4_real_inverted): Likewise.
38920 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
38921 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
38923 * config/rl78/rl78.c (rl78_get_name_encoding): New.
38924 (rl78_option_override): Allow -mes0 only if C.
38925 (characterize_address): Support subregs of symbol_refs.
38926 (rl78_addr_space_address_mode): Move. Add __near.
38927 (rl78_far_p): Likewise.
38928 (rl78_addr_space_pointer_mode): Likewise.
38929 (rl78_as_legitimate_address): Likewise.
38930 (rl78_addr_space_subset_p): Likewise.
38931 (rl78_addr_space_convert): Likewise.
38932 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
38933 symbols with -mes0.
38934 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
38936 (rl78_alloc_physical_registers_op1): Change logic to prefer
38937 symbol[BC] addressing.
38938 (frodata_section): New.
38939 (rl78_asm_init_sections): Initialize it.
38940 (rl78_select_section): Put __far readonly symbols in .frodata.
38941 (rl78_make_type_far): New.
38942 (rl78_insert_attributes): Force all readonly symbols to be
38944 (rl78_asm_out_integer): New.
38945 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
38946 * config/rl78/rl78.opt (-mes0): New.
38948 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
38949 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
38950 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
38951 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
38952 (rl78_saddr_p): New.
38953 (rl78_output_aligned_common): New.
38954 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
38955 (rl78_handle_saddr_attribute): New.
38956 (rl78_handle_naked_attribute): New.
38957 (rl78_attribute_table): Add saddr.
38958 (rl78_print_operand_1): Don't print '!' on saddr operands.
38959 (rl78_print_operand_1): Strip encodings.
38961 (rl78_strip_name_encoding): New.
38962 (rl78_attrlist_to_encoding): New.
38963 (rl78_encode_section_info): New.
38964 (rl78_asm_init_sections): New.
38965 (rl78_select_section): New.
38966 (rl78_output_labelref): New.
38967 (rl78_output_aligned_common): New.
38968 (rl78_asm_out_integer): New.
38969 (rl78_asm_ctor_dtor): New.
38970 (rl78_asm_constructor): New.
38971 (rl78_asm_destructor): New.
38973 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
38974 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
38975 (transcode_memory_rtx): Update.
38976 (rl78_expand_epilogue): Use A_REG instead of 0.
38978 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38980 * config/arm/arm-protos.h (struct tune_params): New field
38981 sched_autopref_queue_depth.
38982 * config/arm/arm.c (sched-int.h): Include header.
38983 (arm_first_cycle_multipass_dfa_lookahead_guard,)
38984 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
38985 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
38986 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
38987 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
38988 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
38989 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
38990 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
38991 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
38992 * config/arm/t-arm (arm.o): Update.
38993 * haifa-sched.c (update_insn_after_change): Update.
38994 (rank_for_schedule): Use auto-prefetcher model, if requested.
38995 (autopref_multipass_init): New static function.
38996 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
38997 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
38998 variable for debug dumps.
38999 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
39000 (autopref_multipass_dfa_lookahead_guard): New global function that
39001 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
39002 (init_h_i_d): Update.
39003 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
39004 * sched-int.h (enum autopref_multipass_data_status): New const enum.
39005 (autopref_multipass_data_): Structure for auto-prefetcher data.
39006 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
39007 (struct _haifa_insn_data:autopref_multipass_data): New field.
39008 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
39009 (autopref_multipass_dfa_lookahead_guard): Declare.
39011 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39013 * rtlanal.c (get_base_term): Handle SCRATCH.
39015 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39017 * config/aarch64/aarch64.c
39018 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
39019 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39021 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
39022 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39024 2015-01-17 Alan Modra <amodra@gmail.com>
39026 * cprop.c (do_local_cprop): Disallow replacement of fixed
39029 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39032 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
39035 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
39037 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
39038 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
39040 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39042 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
39043 * config/arm/thumb1.md: ... Here.
39045 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39047 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
39048 TImode for TARGET_32BIT.
39050 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39052 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
39053 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
39055 (rs6000_abi_word_mode): New function.
39057 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39059 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
39060 instead of UNITS_PER_WORD to describe the size of stack slots.
39062 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39064 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
39065 as rs6000_promote_function_mode. Move comment to there.
39066 (rs6000_promote_function_mode): New function.
39068 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39070 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
39071 -mpowerpc64 is active.
39073 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
39075 PR middle-end/64353
39076 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
39079 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
39081 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
39082 introduced in revision 219724.
39084 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39085 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39088 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
39089 destination is not a GP reg.
39090 (*movdi_aarch64): Likewise.
39092 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
39095 * config/rs6000/default64.h: Revert ISA change.
39097 2015-01-16 Richard Biener <rguenther@suse.de>
39099 PR middle-end/64614
39100 * tree-ssa-uninit.c: Include tree-cfg.h.
39101 (MAX_SWITCH_CASES): New define.
39102 (convert_control_dep_chain_into_preds): Handle switch statements.
39103 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
39104 (normalize_one_pred_1): Do not split bit-manipulations.
39107 2015-01-16 Richard Biener <rguenther@suse.de>
39109 PR tree-optimization/64568
39110 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
39111 complex load rewriting for TARGET_MEM_REFs.
39113 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
39115 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
39117 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
39120 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
39122 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
39123 (aarch64_lra_p): Remove.
39125 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
39128 * ipa-chkp.h (chkp_instrumentable_p): New.
39129 * ipa-chkp.c: Include tree-inline.h.
39130 (chkp_instrumentable_p): New.
39131 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
39132 Fix processing of not instrumentable functions.
39133 (chkp_versioning): Use chkp_instrumentable_p. Warn about
39134 not instrumentable functions.
39135 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
39136 chkp_instrumentable_p.
39137 * tree-inline.h (copy_forbidden): New.
39138 * tree-inline.c (copy_forbidden): Not static anymore.
39140 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39142 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
39145 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
39147 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
39148 type OP_OUT to OP_INOUT.
39150 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
39152 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
39153 (high x) y) to y if x and y have the same base.
39155 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
39157 * config/arm/cortex-a57.md: New.
39158 * config/aarch64/aarch64.md: Include it.
39159 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
39160 * config/aarch64/aarch64-tune.md: Regenerate.
39162 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
39165 * ccmp.c (expand_ccmp_next): New function.
39166 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
39167 and compare insn sequence.
39168 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
39169 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
39170 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
39171 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
39172 (*ccmp_ior): Changed to ccmp_ior<mode>.
39173 (cmp<mode>): New pattern.
39174 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
39176 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
39178 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
39180 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
39181 _mm256_bsrli_epi128): New.
39182 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
39184 2015-01-15 Jiong Wang <jiong.wang@arm.com>
39186 * expmed.c (store_bit_field_using_insv): Improve warning message.
39187 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
39189 2015-01-15 Jiong Wang <jiong.wang@arm.com>
39191 PR rtl-optimization/64011
39192 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
39193 there is partial overflow.
39195 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39197 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
39199 (nds32_expand_epilogue_v3pop): Likewise.
39200 * config/nds32/nds32.md (sibcall): Define this for sibling call
39202 (sibcall_register): Likewise.
39203 (sibcall_immediate): Likewise.
39204 (sibcall_value): Likewise.
39205 (sibcall_value_register): Likewise.
39206 (sibcall_value_immediate): Likewise.
39207 (sibcall_epilogue): Likewise.
39208 (epilogue): Pass false to indicate this is not a sibcall epilogue.
39209 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
39210 (nds32_expand_epilogue_v3pop): Likewise.
39212 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39214 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
39215 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
39216 (return_internal): New.
39217 (return): Define this named pattern.
39218 (simple_return): Define this named pattern.
39219 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
39220 pattern instead of unspec_volatile_func_return.
39221 (nds32_expand_epilogue_v3pop): Likewise.
39222 (nds32_can_use_return_insn): New function.
39224 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39226 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
39227 * config/nds32/nds32.md (pop25return): New.
39228 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
39229 pop25return pattern.
39231 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39233 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
39234 -mforbid-fp-as-gp, and -mex9 options.
39236 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39238 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
39239 remove -mgp-direct option.
39241 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39243 * doc/invoke.texi (--param early-inlining-insns): Update default value.
39244 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
39246 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39248 * ipa-inline.c (inline_small_functions): Work around hints
39251 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
39254 * doc/invoke.texi (Option Summary): Document new Nios II
39256 (Nios II Options): Likewise.
39257 * config/nios2/nios2.opt: Add -mgpopt= option support.
39258 Modify existing -mgpopt and -mno-gpopt options to be aliases.
39259 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
39260 * config/nios2/nios2.c (nios2_option_override): Adjust
39261 -mgpopt defaulting.
39262 (nios2_in_small_data_p): Return true for explicit small data
39263 sections even with -G0.
39264 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
39267 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39270 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
39272 (inline_call): Fix removal of aliases.
39274 2015-01-15 Jakub Jelinek <jakub@redhat.com>
39276 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
39277 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
39278 * opts.c (common_handle_option): Add -fsanitize=vptr.
39279 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
39280 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
39281 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
39282 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
39283 (ubsan_expand_vptr_ifn): New prototype.
39284 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
39285 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
39286 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
39287 expand_LOOP_VECTORIZED): Make argument nameless, remove
39289 (expand_UBSAN_VPTR): New function.
39290 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
39292 (UBSAN_VPTR): New internal function.
39293 * sanopt.c (tree_map_traits): Renamed to ...
39294 (sanopt_tree_map_traits): ... this.
39295 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
39296 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
39297 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
39298 (maybe_optimize_ubsan_vptr_ifn): New function.
39299 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
39300 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
39302 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
39303 internal calls like pure functions for aliasing, even when they
39304 have other side-effects that prevent making them ECF_PURE.
39305 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
39306 (ubsan_expand_vptr_ifn): New function.
39308 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
39310 PR rtl-optimization/64110
39311 * stmt.c (parse_output_constraint): Process '^' and '$'.
39312 (parse_input_constraint): Ditto.
39313 * lra-constraints.c (process_alt_operands): Process the new
39315 * ira-costs.c (record_reg_classes): Process the new constraint
39317 * genoutput.c (indep_constraints): Add '^' and '$'.
39318 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
39319 * doc/md.texi: Add description of the new constraints.
39321 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
39322 Bernd Schmidt <bernds@codesourcery.com>
39323 Cesar Philippidis <cesar@codesourcery.com>
39324 James Norris <jnorris@codesourcery.com>
39325 Tom de Vries <tom@codesourcery.com>
39326 Ilmir Usmanov <i.usmanov@samsung.com>
39327 Dmitry Bocharnikov <dmitry.b@samsung.com>
39328 Evgeny Gavrin <e.gavrin@samsung.com>
39329 Jakub Jelinek <jakub@redhat.com>
39331 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
39332 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39333 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39334 New function types.
39335 * builtins.c: Include "gomp-constants.h".
39336 (expand_builtin_acc_on_device): New function.
39337 (expand_builtin, is_inexpensive_builtin): Handle
39338 BUILT_IN_ACC_ON_DEVICE.
39339 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
39341 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
39343 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
39344 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
39345 i386/intelmic-offload.h.
39346 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
39347 to libgomp and its dependencies.
39348 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
39349 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
39350 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
39351 * config/ia64/hpux.h (LIB_SPEC): Likewise.
39352 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
39353 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
39354 * doc/generic.texi: Update for OpenACC changes.
39355 * doc/gimple.texi: Likewise.
39356 * doc/invoke.texi: Likewise.
39357 * doc/sourcebuild.texi: Likewise.
39358 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
39359 GF_OMP_FOR_KIND_OACC_LOOP.
39360 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
39361 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
39362 GF_OMP_TARGET_KIND_OACC_UPDATE,
39363 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39365 * gimple.c: Update comments for OpenACC changes.
39366 * gimple.def: Likewise.
39367 * gimple.h: Likewise.
39368 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
39369 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39370 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
39371 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39372 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
39374 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
39375 * gimplify.c: Include "gomp-constants.h".
39376 Update comments for OpenACC changes.
39377 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
39378 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
39379 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39380 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
39381 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39382 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39383 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
39384 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39385 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
39387 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
39388 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
39389 OMP_CLAUSE_SET_MAP_KIND.
39390 (gimplify_oacc_cache): New function.
39391 (gimplify_omp_for): Handle OACC_LOOP.
39392 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
39394 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
39395 OACC_EXIT_DATA, OACC_UPDATE.
39396 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
39397 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
39398 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
39399 (gimplify_body): Consider flag_openacc next to flag_openmp.
39400 * lto-streamer-out.c: Include "gomp-constants.h".
39401 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
39402 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
39403 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
39404 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
39405 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
39406 (BUILT_IN_ACC_ON_DEVICE): New builtins.
39407 * omp-low.c: Include "gomp-constants.h".
39408 Update comments for OpenACC changes.
39409 (struct omp_context): Add reduction_map, gwv_below, gwv_this
39411 (extract_omp_for_data, use_pointer_for_field, install_var_field)
39412 (new_omp_context, delete_omp_context, scan_sharing_clauses)
39413 (create_omp_child_function, scan_omp_for, scan_omp_target)
39414 (check_omp_nesting_restrictions, lower_reduction_clauses)
39415 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
39416 Update for OpenACC changes.
39417 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
39418 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
39419 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
39420 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39421 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
39422 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
39424 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
39425 Handle GF_OMP_FOR_KIND_OACC_LOOP.
39426 (expand_omp_target, lower_omp_target): Handle
39427 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39428 GF_OMP_TARGET_KIND_OACC_UPDATE,
39429 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
39430 GF_OMP_TARGET_KIND_OACC_DATA.
39431 (pass_expand_omp::execute, execute_lower_omp)
39432 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
39434 (offload_symbol_decl): New variable.
39435 (oacc_get_reduction_array_id, oacc_max_threads)
39436 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
39437 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
39438 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
39439 (oacc_gimple_assign, oacc_initialize_reduction_data)
39440 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
39442 (is_targetreg_ctx): Remove function.
39443 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
39444 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
39445 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39446 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
39447 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
39448 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
39449 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
39450 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
39451 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
39452 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
39453 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
39454 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
39455 * tree-core.h: Update comments for OpenACC changes.
39456 (enum omp_clause_map_kind): Remove.
39457 (struct tree_omp_clause): Change type of map_kind member from enum
39458 omp_clause_map_kind to unsigned char.
39459 * tree-inline.c: Update comments for OpenACC changes.
39460 * tree-nested.c: Likewise. Include "gomp-constants.h".
39461 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
39462 (convert_tramp_reference_stmt, convert_gimple_call): Update for
39463 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
39464 OMP_CLAUSE_SET_MAP_KIND.
39465 * tree-pretty-print.c: Include "gomp-constants.h".
39466 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
39467 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
39468 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
39469 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
39470 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39471 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
39472 instead of OMP_CLAUSE_MAP_*.
39473 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
39474 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
39475 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39476 * tree-streamer-in.c: Include "gomp-constants.h".
39477 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
39478 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
39479 * tree-streamer-out.c: Include "gomp-constants.h".
39480 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
39482 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
39483 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
39484 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
39485 * tree.c (omp_clause_num_ops): Update accordingly.
39486 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
39488 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
39489 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
39490 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
39491 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
39492 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
39493 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
39494 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
39495 (OMP_CLAUSE_SET_MAP_KIND): New macro.
39496 * varpool.c (varpool_node::get_create): Consider flag_openacc next
39498 * config/i386/intelmic-offload.h: New file.
39499 * config/nvptx/offload.h: Likewise.
39501 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39503 * explow.h: Remove duplicate contents.
39504 * dojump.h: Likewise.
39506 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
39508 * arm.c (arm_xgene_tune): Add default initializer for instruction
39511 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39515 * ipa.c (symbol_table::remove_unreachable_nodes):
39516 Do not put abstract origins into boundary.
39518 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
39520 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
39521 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
39523 2015-01-15 Steve Ellcey <sellcey@mips.com>
39525 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
39526 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
39527 builtins.def, and chkp-builtins.def.
39529 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
39531 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
39534 2015-01-15 Richard Biener <rguenther@suse.de>
39536 PR tree-optimization/61743
39537 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
39538 information on PHIs for some simple cases.
39540 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39542 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
39544 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
39545 * config/arm/arm-cores.def (xgene1): New entry.
39546 * config/arm/arm-tables.opt: Regenerate.
39547 * config/arm/arm-tune.md: Regenerate.
39548 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
39550 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
39552 * tree-if-conv.c: Include hash-map.h.
39553 (aggressive_if_conv): New variable.
39554 (fold_build_cond_expr): Add simplification of non-zero condition.
39555 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
39556 destination block is not always executed.
39557 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
39558 than two predecessors if AGGRESSIVE_IF_CONV is true.
39559 (if_convertible_stmt_p): Fix commentary.
39560 (all_preds_critical_p): New function.
39561 (has_pred_critical_p): New function.
39562 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
39563 BB can have more than two predecessors and all incoming edges can be
39565 (predicate_bbs): Skip predication for loop exit block, use build2_loc
39566 to compute predicate for true edge.
39567 (find_phi_replacement_condition): Delete this function.
39568 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
39569 Allow interchange PHI arguments if EXTENDED is false.
39570 Change check that block containing reduction statement candidate
39571 is predecessor of phi-block since phi may have more than two arguments.
39572 (phi_args_hash_traits): New helper structure.
39573 (struct phi_args_hash_traits): New type.
39574 (phi_args_hash_traits::hash): New function.
39575 (phi_args_hash_traits::equal_keys): New function.
39576 (gen_phi_arg_condition): New function.
39577 (predicate_scalar_phi): Add handling of phi nodes with more than two
39578 arguments, delete COND and TRUE_BB arguments, insert body of
39579 find_phi_replacement_condition to predicate ordinary phi nodes.
39580 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
39581 delete call of find_phi_replacement_condition and invoke
39582 predicate_scalar_phi with two arguments.
39583 (insert_gimplified_predicates): Add assert that non-predicated block
39584 don't have statements to insert.
39585 (ifcvt_split_critical_edges): New function.
39586 (ifcvt_split_def_stmt): Likewise.
39587 (ifcvt_walk_pattern_tree): Likewise.
39588 (stmt_is_root_of_bool_pattern): Likewise.
39589 (ifcvt_repair_bool_pattern): Likewise.
39590 (ifcvt_local_dce): Likewise.
39591 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
39592 is copy of inner or outer loop force_vectorize field, invoke
39593 ifcvt_split_critical_edges, ifcvt_local_dce and
39594 ifcvt_repair_bool_pattern for aggressive if-conversion.
39596 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
39598 * config/aarch64/aarch64.md: Include xgene1.md.
39599 * config/aarch64/xgene1.md: New file.
39601 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39603 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
39604 xgene1 (APM XGene-1) core definition.
39605 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
39606 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
39607 * doc/invoke.texi: Document -mcpu=xgene1.
39609 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39611 * dojump.h: New header file.
39612 * explow.h: Likewise.
39613 * expr.h: Remove includes.
39614 Move expmed.c prototypes to expmed.h.
39615 Move dojump.c prototypes to dojump.h.
39616 Move alias.c prototypes to alias.h.
39617 Move explow.c prototypes to explow.h.
39618 Move calls.c prototypes to calls.h.
39619 Move emit-rtl.c prototypes to emit-rtl.h.
39620 Move varasm.c prototypes to varasm.h.
39621 Move stmt.c prototypes to stmt.h.
39622 (saved_pending_stack_adjust): Move to dojump.h.
39623 (adjust_address): Move to explow.h.
39624 (adjust_address_nv): Move to emit-rtl.h.
39625 (adjust_bitfield_address): Likewise.
39626 (adjust_bitfield_address_size): Likewise.
39627 (adjust_bitfield_address_nv): Likewise.
39628 (adjust_automodify_address_nv): Likewise.
39629 * explow.c (expr_size): Move to expr.c.
39630 (int_expr_size): Likewise.
39631 (tree_expr_size): Likewise.
39632 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39633 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39634 * genemit.c (main): Generate includes statistics.h, real.h,
39635 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
39637 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
39638 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
39639 explow.h, emit-rtl.h, stmt.h.
39640 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
39641 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
39642 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
39643 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
39644 emit-rtl.h, varasm.h, stmt.h.
39645 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
39646 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
39647 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
39648 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
39649 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39650 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
39651 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
39652 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
39653 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
39654 tm.h tree.h varasm.h vec.h wide-int.h.
39655 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39656 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39657 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
39658 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
39659 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
39660 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
39661 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
39662 * loop-iv.c: Likewise.
39663 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
39664 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
39665 statistics.h stmt.h tree.h varasm.h wide-int.h.
39666 * lra-constraints.c: Likewise.
39667 * lra-eliminations.c: Likewise.
39668 * lra-lives.c: Likewise.
39669 * lra-remat.c: Likewise.
39670 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39671 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
39672 statistics.h stmt.h tree.h varasm.h wide-int.h.
39673 * hw-doloop.c: Likewise.
39674 * ira-color.c: Likewise.
39675 * ira-emit.c: Likewise.
39676 * loop-doloop.c: Likewise.
39677 * loop-invariant.c: Likewise.
39678 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39679 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
39680 statistics.h stmt.h tree.h varasm.h wide-int.h.
39681 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
39682 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
39683 statistics.h stmt.h tree.h varasm.h wide-int.h.
39684 * combine-stack-adj.c: Likewise.
39687 * ifcvt.c: Likewise.
39688 * ira-costs.c: Likewise.
39689 * jump.c: Likewise.
39690 * lra-coalesce.c: Likewise.
39691 * lra-spills.c: Likewise.
39692 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39693 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
39694 stmt.h varasm.h wide-int.h.
39695 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39696 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39698 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
39699 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
39700 statistics.h stmt.h varasm.h wide-int.h.
39701 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
39702 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
39703 varasm.h wide-int.h.
39704 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
39705 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39706 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
39707 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
39708 statistics.h stmt.h.
39709 * config/tilepro/tilepro.c: Likewise.
39710 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
39711 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
39712 * config/pdp11/pdp11.c: Likewise.
39713 * config/xtensa/xtensa.c: Likewise.
39714 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
39715 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39717 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39718 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39719 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
39720 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39721 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39722 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
39723 * rtl-chkp.c: Likewise.
39724 * tree-chkp-opt.c: Likewise.
39725 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
39726 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39727 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
39728 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39729 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39730 statistics.h stmt.h.
39731 * tree-vect-data-refs.c: Likewise.
39732 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
39733 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39734 rtl.h statistics.h stmt.h varasm.h.
39735 * internal-fn.c: Likewise.
39736 * ipa-icf-gimple.c: Likewise.
39737 * lto-section-out.c: Likewise.
39738 * tree-data-ref.c: Likewise.
39739 * tree-nested.c: Likewise.
39740 * tree-outof-ssa.c: Likewise.
39741 * tree-predcom.c: Likewise.
39742 * tree-pretty-print.c: Likewise.
39743 * tree-scalar-evolution.c: Likewise.
39744 * tree-ssa-strlen.c: Likewise.
39745 * tree-vect-loop.c: Likewise.
39746 * tree-vect-patterns.c: Likewise.
39747 * tree-vect-slp.c: Likewise.
39748 * tree-vect-stmts.c: Likewise.
39749 * tsan.c: Likewise.
39750 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39751 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
39753 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
39754 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39755 statistics.h stmt.h varasm.h.
39756 * loop-unroll.c: Likewise.
39757 * ubsan.c: Likewise.
39758 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
39759 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
39761 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39762 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
39763 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
39764 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39765 statistics.h stmt.h.
39766 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
39767 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39768 statistics.h stmt.h varasm.h.
39769 * gimple-match-head.c: Likewise.
39770 * lto-cgraph.c: Likewise.
39771 * lto-section-in.c: Likewise.
39772 * lto-streamer-in.c: Likewise.
39773 * lto-streamer-out.c: Likewise.
39774 * tree-affine.c: Likewise.
39775 * tree-cfg.c: Likewise.
39776 * tree-cfgcleanup.c: Likewise.
39777 * tree-if-conv.c: Likewise.
39778 * tree-into-ssa.c: Likewise.
39779 * tree-ssa-alias.c: Likewise.
39780 * tree-ssa-copyrename.c: Likewise.
39781 * tree-ssa-dse.c: Likewise.
39782 * tree-ssa-forwprop.c: Likewise.
39783 * tree-ssa-live.c: Likewise.
39784 * tree-ssa-math-opts.c: Likewise.
39785 * tree-ssa-pre.c: Likewise.
39786 * tree-ssa-sccvn.c: Likewise.
39787 * tree-tailcall.c: Likewise.
39788 * tree-vect-generic.c: Likewise.
39789 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39790 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
39791 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39792 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
39793 * varasm.c: Likewise.
39794 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39795 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
39797 * init-regs.c: Likewise.
39799 * omp-low.c: Likewise.
39800 * stack-ptr-mod.c: Likewise.
39801 * tree-ssa-reassoc.c: Likewise.
39802 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39803 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
39805 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39806 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
39807 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39808 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
39809 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39810 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
39811 * tree-ssa-phiopt.c: Likewise.
39812 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39813 fixed-value.h hashtab.h real.h statistics.h stmt.h.
39814 * config/fr30/fr30.c: Likewise.
39815 * config/frv/frv.c: Likewise.
39816 * expr.c: Likewise.
39817 * final.c: Likewise.
39818 * optabs.c: Likewise.
39819 * passes.c: Likewise.
39820 * simplify-rtx.c: Likewise.
39821 * stmt.c: Likewise.
39822 * toplev.c: Likewise.
39823 * var-tracking.c: Likewise.
39824 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39825 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39826 * lower-subreg.c: Likewise.
39827 * postreload-gcse.c: Likewise.
39829 * reginfo.c: Likewise.
39830 * store-motion.c: Likewise.
39831 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39832 fixed-value.h hashtab.h real.h stmt.h varasm.h.
39833 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39834 fixed-value.h hashtab.h statistics.h stmt.h.
39835 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39836 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39837 * except.c: Likewise.
39838 * explow.c: Likewise.
39839 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39840 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
39842 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39843 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
39844 * tree-ssa-structalias.c: Likewise.
39845 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39846 fixed-value.h insn-config.h real.h statistics.h.
39847 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39848 fixed-value.h insn-config.h real.h statistics.h stmt.h.
39849 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39850 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39851 * cfgbuild.c: Likewise.
39852 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39853 fixed-value.h real.h rtl.h statistics.h stmt.h.
39854 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39855 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39856 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39857 fixed-value.h real.h statistics.h stmt.h.
39858 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39859 fixed-value.h real.h statistics.h stmt.h varasm.h.
39860 * cprop.c: Likewise.
39861 * modulo-sched.c: Likewise.
39862 * postreload.c: Likewise.
39863 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39864 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
39865 statistics.h stmt.h varasm.h.
39866 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
39867 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39868 rtl.h statistics.h stmt.h varasm.h.
39869 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
39870 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
39872 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39873 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
39875 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
39876 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
39878 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
39879 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39880 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39881 function.h real.h statistics.h stmt.h varasm.h.
39882 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39883 insn-config.h real.h statistics.h stmt.h.
39884 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39885 statistics.h stmt.h.
39886 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
39887 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
39888 statistics.h stmt.h varasm.h.
39889 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
39890 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
39891 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39892 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
39893 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
39894 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39895 statistics.h stmt.h varasm.h.
39896 * ipa-polymorphic-call.c: Likewise.
39897 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
39898 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39899 statistics.h stmt.h.
39900 * config/c6x/c6x.c: Likewise.
39901 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
39902 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39903 statistics.h stmt.h varasm.h.
39904 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
39905 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
39907 * ipa-split.c: Likewise.
39908 * tree-eh.c: Likewise.
39909 * tree-ssa-dce.c: Likewise.
39910 * tree-ssa-loop-niter.c: Likewise.
39911 * tree-vrp.c: Likewise.
39912 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
39913 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
39915 * config/nds32/nds32-fp-as-gp.c: Likewise.
39916 * config/nds32/nds32-intrinsic.c: Likewise.
39917 * config/nds32/nds32-isr.c: Likewise.
39918 * config/nds32/nds32-md-auxiliary.c: Likewise.
39919 * config/nds32/nds32-memory-manipulation.c: Likewise.
39920 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
39921 * config/nds32/nds32-predicates.c: Likewise.
39922 * config/nds32/nds32.c: Likewise.
39923 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
39924 fixed-value.h hashtab.h real.h statistics.h.
39925 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
39926 fixed-value.h hashtab.h real.h statistics.h stmt.h.
39927 * config/arm/arm.c: Likewise.
39928 * config/avr/avr.c: Likewise.
39929 * config/bfin/bfin.c: Likewise.
39930 * config/h8300/h8300.c: Likewise.
39931 * config/i386/i386.c: Likewise.
39932 * config/ia64/ia64.c: Likewise.
39933 * config/iq2000/iq2000.c: Likewise.
39934 * config/m32c/m32c.c: Likewise.
39935 * config/m32r/m32r.c: Likewise.
39936 * config/m68k/m68k.c: Likewise.
39937 * config/mcore/mcore.c: Likewise.
39938 * config/mep/mep.c: Likewise.
39939 * config/mips/mips.c: Likewise.
39940 * config/mn10300/mn10300.c: Likewise.
39941 * config/moxie/moxie.c: Likewise.
39942 * config/pa/pa.c: Likewise.
39943 * config/rl78/rl78.c: Likewise.
39944 * config/rx/rx.c: Likewise.
39945 * config/s390/s390.c: Likewise.
39946 * config/sh/sh.c: Likewise.
39947 * config/sparc/sparc.c: Likewise.
39948 * config/spu/spu.c: Likewise.
39949 * config/stormy16/stormy16.c: Likewise.
39950 * config/v850/v850.c: Likewise.
39951 * config/vax/vax.c: Likewise.
39952 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
39953 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39954 * config/msp430/msp430.c: Likewise.
39955 * predict.c: Likewise.
39956 * value-prof.c: Likewise.
39957 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
39958 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
39959 * config/microblaze/microblaze.c: Likewise.
39960 * config/nios2/nios2.c: Likewise.
39961 * config/rs6000/rs6000.c: Likewise.
39962 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39963 insn-config.h real.h rtl.h statistics.h stmt.h.
39964 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39965 insn-config.h real.h statistics.h stmt.h.
39966 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
39967 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39968 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
39969 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39970 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
39971 fixed-value.h real.h statistics.h stmt.h.
39972 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
39973 fixed-value.h statistics.h stmt.h.
39974 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
39977 2015-01-15 Jakub Jelinek <jakub@redhat.com>
39979 * gengtype.c (create_user_defined_type): Workaround
39980 -Wmaybe-uninitialized false positives.
39981 * cse.c (fold_rtx): Likewise.
39982 * loop-invariant.c (gain_for_invariant): Likewise.
39984 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
39986 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
39987 set the memory attributes in all cases but clear MEM_EXPR if need be.
39989 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
39991 PR tree-optimization/64434
39992 * cfgexpand.c (reorder_operands): New function.
39993 (expand_gimple_basic_block): Insert call of reorder_operands if
39996 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
39998 * config/mips/micromips.md (*swp): Remove explicit parallel.
39999 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
40000 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
40001 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
40002 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
40003 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
40004 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
40005 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
40006 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
40007 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
40008 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
40009 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
40010 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
40011 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
40012 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
40013 (mips_wrdsp): Likewise.
40014 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
40016 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
40017 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
40018 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
40019 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
40020 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
40021 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
40022 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
40023 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
40024 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
40026 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40028 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
40029 (mips_print_operand): Support 'y' to print exact log2 in decimal
40031 * config/mips/mips.h (ISA_HAS_LSA): New define.
40032 (ISA_HAS_DLSA): Likewise.
40033 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
40034 * config/mips/predicates.md (const_immlsa_operand): New predicate.
40036 2015-01-15 Martin Liska <mliska@suse.cz>
40039 * optc-save-gen.awk: Add support for array types.
40041 2015-01-15 Richard Biener <rguenther@suse.de>
40043 PR middle-end/64365
40044 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
40045 for MEM_REF access functions with the same base can never partially
40048 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
40050 * common.opt: New option -fstack-protector-explicit.
40051 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
40052 (stack_protect_decl_phase): Handle stack_protect attribute for
40053 explicit stack protection requests.
40054 (expand_used_vars): Similarly.
40055 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
40056 * doc/extend.texi: Add documentation for "stack_protect" attribute.
40057 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
40059 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
40062 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
40064 (sh_extending_set_of_reg): New struct.
40065 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
40066 sh_remove_reg_dead_or_unused_notes): New Declarations.
40067 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
40068 sh_find_extending_set_of_reg, sh_split_tst_subregs,
40069 sh_extending_set_of_reg::use_as_extended_reg): New functions.
40070 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
40071 convert to insn_and_split and use new function sh_split_tst_subregs.
40073 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
40075 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
40077 (Optimization Options): Move -fuse-ld documentation to...
40078 (Link Options): ...here.
40080 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40082 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
40084 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
40085 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
40086 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
40087 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
40088 instead of ZR for the memory operand of LL/SC.
40089 (compare_and_swap_12, sync_add<mode>): Likewise.
40090 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
40091 (sync_new_<optab>_12, sync_nand_12): Likewise.
40092 (sync_old_nand_12, sync_new_nand_12): Likewise.
40093 (sync_sub<mode>, sync_old_add<mode>): Likewise.
40094 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
40095 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
40096 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
40097 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
40098 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
40099 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
40100 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
40101 * doc/md.texi (ZC): Update description.
40103 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
40105 * builtins.c (expand_builtin_atomic_exchange): Remove error when
40106 memory model is CONSUME.
40107 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
40108 expand_builtin_atomic_store): Change invalid memory model errors to
40110 (expand_builtin_atomic_clear): Change invalid model errors to warnings
40111 and issue warning for CONSUME.
40113 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
40115 * lto-cgraph: Update function comments for
40116 lto_symtab_encoder_encode_*.
40118 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
40120 * Makefile.in (site.exp): Do not set ENABLE_LTO.
40122 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
40124 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
40125 * lto-cgraph.c (select_what_to_stream): Remove argument, use
40126 lto_stream_offload_p instead.
40127 * lto-streamer.h (select_what_to_stream): Remove argument.
40128 * passes.c (ipa_write_summaries): Likewise.
40129 * tree-pass.h (ipa_write_summaries): Likewise.
40131 2015-01-14 Richard Biener <rguenther@suse.de>
40133 PR tree-optimization/59354
40134 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
40135 groups larger than the slp group size as having gaps.
40137 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
40139 PR middle-end/59448
40140 * builtins.c (get_memmodel): Promote consume to acquire always.
40142 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
40145 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
40148 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
40151 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
40153 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
40154 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
40155 AVX512VBMI, as it implies AVX512BW.
40157 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
40160 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
40161 (vec_unpacks_hi_v16sf): Ditto.
40163 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40165 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
40168 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40170 * doc/invoke.texi (mapcs): Mention deprecation.
40171 (mapcs-frame): Likewise.
40173 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
40176 * config/arm/arm.c (callee_saved_reg_p): Define.
40177 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
40178 register is callee saved instead of !call_used_regs[reg].
40179 (thumb1_compute_save_reg_mask): Likewise.
40181 2015-01-14 Hale Wang <hale.wang@arm.com>
40183 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
40186 2015-01-14 Richard Biener <rguenther@suse.de>
40189 * tree-inline.c (insert_debug_decl_map): Check destination
40190 function MAY_HAVE_DEBUG_STMTS.
40191 (insert_init_debug_bind): Likewise.
40192 (insert_init_stmt): Remove redundant check.
40193 (remap_gimple_stmt): Drop debug stmts if the destination
40194 function has var-tracking assignments disabled.
40196 2015-01-14 Martin Liska <mliska@suse.cz>
40198 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
40199 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
40201 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40204 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
40205 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
40207 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40209 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
40210 level from an ARCH; do not inject the default.
40211 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
40212 MIPS_ISA_LEVEL_SPEC.
40213 (MIPS_ISA_NAN2008_SPEC): Update comment.
40214 (BASE_DRIVER_SELF_SPECS): Likewise.
40215 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
40216 MIPS_DEFAULT_ISA_LEVEL_SPEC.
40217 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
40218 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
40219 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
40221 2015-01-14 Richard Biener <rguenther@suse.de>
40223 PR tree-optimization/64493
40224 PR tree-optimization/64495
40225 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
40226 assign the proper vectorized PHI to the inner loop exit PHIs.
40228 2015-01-14 Joey Ye <joey.ye@arm.com>
40230 * config/arm/arm.c (arm_compute_save_reg_mask):
40231 Do not save lr in case of tail call.
40232 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
40234 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
40236 * tree-vrp.c (check_array_ref): Emit more warnings
40237 for warn_array_bounds >= 2.
40238 * common.opt: New option -Warray-bounds=.
40239 * doc/invoke.texi: Document -Warray-bounds=.
40241 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
40243 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
40244 (mforbid-fp-as-gp): Remove.
40246 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
40247 (nds32_symbol_load_store_p): Remove.
40248 (nds32_fp_as_gp_check_available): Clean up implementation.
40249 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
40251 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
40252 fp-as-gp and ex9 cases.
40254 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40256 * tree-profile.c (init_ic_make_global_vars): Drop workaround
40257 for bintuils bug 14342.
40258 (init_ic_make_global_vars): Likewise.
40259 (gimple_init_edge_profiler): Likewise.
40260 (gimple_gen_ic_func_profiler): Likewise.
40262 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
40264 * ipa-inline.c (inline_small_functions): Swap the operands in
40267 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40270 * ipa-inline-analysis.c (node_growth_cache): Remove.
40271 (initialize_growth_caches): Do not initialize it.
40272 (free_growth_caches): Do not free it.
40273 (do_estimate_growth): Rename to ...
40274 (estimate_growth): ... this one; drop growth cache code.
40275 (growth_likely_positive): Always go the heuristics way.
40276 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
40277 (reset_edge_caches): Do not reset node growth.
40278 (heap_edge_removal_hook): Do not maintain cache.
40279 (inline_small_functions): Likewise; strenghten sanity check.
40280 (ipa_inline): Do not maintain caches.
40281 * ipa-inline.h (node_growth_cache): Remove.
40282 (do_estimate_growth): Remove to ...
40283 (estimate_growth): this one; remove inline version.
40284 (reset_node_growth_cache): Remove.
40286 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40289 * ipa-inline.c (inline_small_functions): Update callee keys after
40290 resolving speculation
40291 (inline_small_functions): Always check monotonicity of the queue.
40293 2015-01-13 Marek Polacek <polacek@redhat.com>
40295 PR middle-end/64391
40296 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
40298 2015-01-13 Jakub Jelinek <jakub@redhat.com>
40300 PR rtl-optimization/64286
40301 * ree.c (combine_reaching_defs): Move part of comment earlier,
40302 remove !SCALAR_INT_MODE_P check.
40303 (add_removable_extension): Don't add vector mode
40304 extensions if all uses of the source register aren't the same
40307 2015-01-13 Renlin Li <renlin.li@arm.com>
40309 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
40310 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
40312 2015-01-13 Martin Liska <mliska@suse.cz>
40314 * ipa-icf.c (sem_function::equals_private): Call new functions
40315 cl_target_option_print_diff and cl_optimization_print_diff.
40316 * optc-save-gen.awk (cl_target_option_print_diff): New function.
40317 (cl_optimization_print_diff): Likewise.
40318 * opth-gen.awk: Likewise.
40320 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
40322 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
40323 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
40324 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
40325 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
40326 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
40327 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
40329 2015-01-13 Andrew Pinski <apinski@cavium.com>
40331 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
40332 instead of src mode.
40334 2015-01-13 Richard Biener <rguenther@suse.de>
40337 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
40340 2015-01-13 Andrew Pinski <apinski@cavium.com>
40342 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
40344 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
40346 2015-01-13 Jakub Jelinek <jakub@redhat.com>
40348 PR middle-end/63974
40349 * cfgexpand.c (expand_computed_goto): Don't call
40350 convert_memory_address here.
40352 2015-01-13 Richard Biener <rguenther@suse.de>
40354 PR tree-optimization/64406
40355 * tree-loop-distibution.c (pass_loop_distribution::execute):
40356 Reset the SCEV hashtable if we distributed anything.
40358 2015-01-13 Richard Biener <rguenther@suse.de>
40360 PR tree-optimization/64404
40361 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
40362 SLP types for CSEd loads.
40364 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
40366 PR tree-optimization/64436
40367 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
40368 merge of two symbolic numbers for a bitwise OR to ...
40369 (perform_symbolic_merge): This. Also fix computation of the range and
40370 end of the symbolic number corresponding to the result of a bitwise OR.
40372 2015-01-13 Richard Biener <rguenther@suse.de>
40374 PR tree-optimization/64568
40375 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
40376 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
40378 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40380 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
40381 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
40383 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40385 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
40386 target-specific symbol_ref flag.
40387 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
40388 resides in rodata section.
40389 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
40390 (nds32_encode_section_info): New function.
40392 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40394 * config/nds32/nds32.md (call): Use pseudo instruction bal which
40395 clobbers TA_REGNUM if large code model is specified.
40396 (call_register): Likewise.
40397 (call_immediate): Likewise.
40398 (call_value): Likewise.
40399 (call_value_register): Likewise.
40400 (call_value_immediate): Likewise.
40402 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40404 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
40405 (TARGET_CMODEL_MEDIUM): New macro.
40406 (TARGET_CMODEL_LARGE): New macro.
40407 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
40408 code model setting in assembly code.
40410 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40412 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
40413 Remove MASK_GP_DIRECT flag.
40414 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
40415 one of the multilib default options.
40416 * config/nds32/nds32.opt (mgp-direct): Remove.
40417 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
40418 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
40420 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40422 * config/nds32/nds32.opt (mcmodel): Add new option.
40423 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
40424 to describe code model.
40426 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
40429 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
40431 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
40433 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
40434 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
40435 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
40436 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
40437 __builtin_sh_set_fpscr.
40439 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
40441 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
40442 after a funtion name just to indicate it is a function.
40443 ([-fsanitize-undefined-trap-on-error]): Likewise.
40444 ([-fdbg-cnt=]): Likewise.
40445 ([-mmemcpy]): Likewise.
40446 ([-mflush-func]): Likewise.
40447 ([-msynci]): Likewise.
40449 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
40451 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
40454 2015-01-12 Jakub Jelinek <jakub@redhat.com>
40456 PR tree-optimization/64563
40457 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
40458 instead of != VR_VARYING.
40461 * config/i386/i386.c (ix86_expand_prologue): Add
40462 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
40464 PR tree-optimization/64454
40465 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
40466 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
40467 for signed or [0, op1 - 1] for unsigned modulo.
40468 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
40469 even if op1 does not satisfy integer_pow2p.
40472 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
40474 2015-01-12 Jeff Law <law@redhat.com>
40477 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
40478 (trunchiqi2, truncsihi2): Similarly.
40480 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
40481 rather than calling F.
40483 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
40485 * tsan.c (instrument_expr): Use force_gimple_operand.
40486 Use may_be_nonaddressable_p instead of is_gimple_addressable.
40488 2015-01-12 Richard Biener <rguenther@suse.de>
40490 PR tree-optimization/64530
40491 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
40494 2015-01-12 Richard Biener <rguenther@suse.de>
40496 PR middle-end/64357
40497 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
40500 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40502 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
40503 Cortex-A17 tuning parameters.
40504 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
40506 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40508 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
40509 * config/arm/arm.c (arm_macro_fusion_p): New function.
40510 (arm_macro_fusion_pair_p): Likewise.
40511 (TARGET_SCHED_MACRO_FUSION_P): Define.
40512 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
40513 (ARM_FUSE_NOTHING): Likewise.
40514 (ARM_FUSE_MOVW_MOVT): Likewise.
40515 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
40516 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
40517 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
40518 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
40519 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
40520 arm_cortex_a5_tune): Specify fuseable_ops value.
40522 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
40525 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
40526 test for PIE with copy reloc.
40527 * configure: Regenerated.
40529 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40531 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
40533 (arm_tls_descseq_addr): Likewise.
40534 (arm_gen_movmemqi): Likewise.
40535 (arm_expand_epilogue_apcs_frame): Likewise.
40536 (arm_expand_epilogue): Likewise.
40537 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
40540 2015-01-12 Martin Liska <mliska@suse.cz>
40543 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
40544 volatility for correct operands.
40546 2015-01-12 Martin Liska <mliska@suse.cz>
40548 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
40549 indication that a function is not leaf.
40550 (sem_function::compare_polymorphic_p): Likewise.
40552 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40554 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
40555 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
40556 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
40557 fold-const.h, tree-check.h.
40559 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
40563 * ipa-inline.c (compute_uninlined_call_time,
40564 compute_inlined_call_time): Use counts for extra precision when
40566 (big_speedup_p): Fix formating.
40567 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
40568 (relative_time_benefit): Remove.
40569 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
40570 merge guessed and read profile paths.
40571 (inline_small_functions): Count only !optimize_size functions into
40572 initial size; be more lax about sanity check when profile is used;
40573 be sure to update inlined function profile when profile is read.
40575 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
40578 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
40579 cost when edge becomes direct.
40580 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
40581 is resolved or when introducing new speculation.
40583 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
40587 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
40588 '||' to fix typo issue.
40590 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
40591 accept and return NULL.
40593 2015-01-12 Martin Liska <mliska@suse.cz>
40595 * cgraph.c (cgraph_edge::remove_callee): Move function to header
40596 file for being inlined.
40597 (cgraph_set_edge_callee): Delete.
40598 (cgraph_edge::redirect_callee): Move function to header file
40600 (cgraph_edge::make_direct): Use new function.
40601 (cgraph_edge::dump_edge_flags): New function created from
40602 static dump_edge_flags function.
40603 (cgraph_node::dump): Use new function.
40604 (cgraph_edge::verify_count_and_frequency): New function created
40605 from verify_edge_count_and_frequency.
40606 (cgraph_edge::verify_corresponds_to_fndecl): New function created
40607 from verify_edge_corresponds_to_fndecl.
40608 (verify_edge_corresponds_to_fndecl): Delete.
40609 (cgraph_node::verify_node): Use new function.
40610 * cgraph.h (cgraph_edge::set_callee): New function.
40611 (cgraph_edge::dump_edge_flags): Likewise.
40612 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
40614 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
40616 * ipa-utils.c (estimate_function_body_sizes): Do not
40617 free node params when called late with early=true.
40619 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
40621 * doc/md.texi (Instruction Patterns): Rewrite text for
40623 (Example): Likewise.
40625 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
40627 * doc/invoke.texi (Option Summary): Break long lines.
40628 [(-fdiagnostics-color)]: Put long literal in @smallexample
40630 [(-fsanitize-recover)]: Likewise.
40631 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
40632 [(-ffast-math)]: Likewise.
40633 [(--param max-inline-insns-recursive)]: Likewise.
40634 [(--param max-inline-recursive-depth)]: Likewise.
40635 [(-mno-text-section-literals)]: Likewise.
40637 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
40639 * doc/install.texi: Update for libgomp being renamed from "GNU
40640 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
40642 * doc/sourcebuild.texi: Likewise.
40644 2015-01-10 Anthony Green <green@moxielogic.com>
40646 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
40647 mul.x availability for moxiebox configuration.
40649 2015-01-09 Anthony Green <green@moxielogic.com>
40651 * config/moxie/moxie.md: Tabify assembly output.
40653 2015-01-09 Anthony Green <green@moxielogic.com>
40655 * config/moxie/moxie.md (CC_REG): Correct register definition.
40657 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
40659 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
40660 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
40663 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40665 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
40667 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
40668 Jakub Jelinek <jakub@redhat.com>
40670 PR middle-end/64412
40671 * lto-streamer.h (lto_stream_offload_p): New declaration.
40672 * lto-streamer.c (lto_stream_offload_p): New variable.
40673 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
40674 at the same time as section_name_prefix.
40675 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
40676 if lto_stream_offload_p.
40677 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
40678 stream TREE_TARGET_OPTION if lto_stream_offload_p.
40679 (write_ts_function_decl_tree_pointers): Don't
40680 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
40681 * tree-streamer-in.c (unpack_value_fields): Don't stream
40682 TREE_TARGET_OPTION in if ACCEL_COMPILER.
40683 (lto_input_ts_function_decl_tree_pointers): Don't stream
40684 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
40685 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
40686 instead of section_name_prefix string comparisons.
40688 2015-01-09 Jakub Jelinek <jakub@redhat.com>
40690 PR rtl-optimization/64536
40691 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
40694 2015-01-09 Michael Collison <michael.collison@linaro.org>
40696 PR tree-optimization/64322
40697 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
40698 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
40700 2015-01-09 Tom de Vries <tom@codesourcery.com>
40702 PR rtl-optimization/64539
40703 * regcprop.c (kill_clobbered_values): Factor out of ...
40704 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
40705 instead of note_stores with kill_clobbered_value.
40707 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40709 * ginclude/unwind-arm-common.h: Revert previous commit.
40711 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40713 * config.gcc (arm*-*-freebsd*): New configuration.
40714 * config/arm/freebsd.h: New file.
40715 * config.host: Add extra components for arm*-*-freebsd*.
40716 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
40717 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
40719 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40721 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
40723 * config/rs6000/t-rtems: Add e6500 multilibs.
40725 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40727 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
40730 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40732 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
40733 MULTILIB_EXCEPTIONS.
40735 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40737 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
40738 MULTILIB_EXCEPTIONS.
40740 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40742 * config/arm/t-rtems-eabi: Rename to...
40743 * config/arm/t-rtems: ...this.
40744 * config/arm/rtems-eabi.h: Rename to...
40745 * config/arm/rtems.h: ...this.
40746 * config.gcc (arm*-*-rtems*): Reflect changes above.
40748 2015-01-09 Richard Biener <rguenther@suse.de>
40750 PR tree-optimization/64410
40751 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
40753 (execute_update_addresses_taken): Deal with that.
40754 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
40755 loads/stores for complex variables.
40757 2015-01-09 Martin Liska <mliska@suse.cz>
40759 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
40761 (func_checker::compare_memory_operand): New function.
40762 (func_checker::compare_operand): Split case to newly
40764 (func_checker::compare_cst_or_decl): New function.
40765 (func_checker::compare_gimple_call): Identify
40767 (func_checker::compare_gimple_assign): Likewise.
40768 * ipa-icf-gimple.h: New function.
40770 2015-01-09 Martin Liska <mliska@suse.cz>
40773 * sreal.c (sreal::dump): Change unsigned format to signed for
40775 (sreal::to_double): Replace exp2 with scalbln.
40777 2015-01-09 Martin Liska <mliska@suse.cz>
40779 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
40780 * ipa-icf.c (sem_function::equals_private): Add support for target and
40781 (sem_item_optimizer::merge_classes): Remove redundant function
40782 optimization flags comparison.
40783 * tree.h (target_opts_for_fn): New function.
40785 2015-01-09 Tom de Vries <tom@codesourcery.com>
40787 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
40789 2015-01-09 Kito Cheng <kito@0xlab.org>
40791 PR rtl-optimization/64348
40792 * lra-constraints.c (split_reg): Fix caller-save store/restore
40793 instruction generation.
40795 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
40797 PR gcov-profile/61790
40798 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
40799 long long. Fallback to int64_t if host doesn't have long long and
40800 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
40802 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40804 PR tree-optimization/63989
40805 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
40806 from 1000 to 10000.
40807 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
40808 (get_stridx): If we don't have a record for certain SSA_NAME,
40809 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
40810 constant offset, call get_stridx_plus_constant.
40811 (get_stridx_plus_constant): New function.
40812 (zero_length_string): Don't use get_stridx here.
40815 PR middle-end/64388
40816 * dse.c (struct insn_info): Mention frame_read set also
40817 before reload for tail calls on some targets.
40818 (scan_insn): Revert 2014-12-22 change. Set frame_read
40819 also before reload for tail calls if
40820 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
40821 instead of add_non_frame_wild_read for non-const/memset
40822 tail calls after reload.
40824 2015-01-08 Jason Merrill <jason@redhat.com>
40826 * ubsan.c (do_ubsan_in_current_function): New.
40827 (pass_ubsan::gate): Use it.
40828 * ubsan.h: Declare it.
40829 * convert.c (convert_to_integer): Use it.
40831 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40834 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
40835 compare_code when it is unconditionally overwritten afterwards.
40836 Use ix86_reverse_condition instead of reverse_condition. Don't
40837 change code if *reverse_condition* returned UNKNOWN and don't
40838 swap ct/cf and negate diff in that case.
40840 2015-01-08 Mike Stump <mikestump@comcast.net>
40842 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
40843 (pass_tsan_O0::gate): Likewise.
40844 * extend.texi (Function Attributes): Add no_sanitize_thread
40847 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
40849 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
40850 for registering builtins.
40851 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
40852 add -fopenmp to the argv_obstack used when invoking
40853 compile_for_target.
40855 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
40856 add "-m32" or "-m64" to argv_obstack.
40857 (generate_host_descr_file): Likewise, when invoking host_compiler.
40858 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
40861 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40863 * config/sh/sh-mem.cc: Use constant as second operand when emitting
40866 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40869 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
40870 constant load if constant operand fits into I08.
40872 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40875 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
40876 and TREE_THIS_VOLATILE for MEM_REFs.
40877 (build5_stat): Fix up initialization of TREE_READONLY and
40878 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
40880 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
40883 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
40884 of r for the second alternative of the destination operand.
40886 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
40889 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
40891 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
40893 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
40895 ([-fivar-visibility], [-fvisibility]): Likewise.
40897 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
40899 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
40900 the file where @code, @command, etc is more appropriate.
40902 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
40904 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
40905 of -mrecip= documentation.
40907 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
40910 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
40911 correct reload handler if -m32 -mpowerpc64 is used.
40913 2015-01-06 Tom de Vries <tom@codesourcery.com>
40915 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
40917 2015-01-08 Christian Bruel <christian.bruel@st.com>
40920 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
40922 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
40924 PR tree-optimization/63259
40925 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
40926 if optab exists for 16bit byteswap.
40928 2015-01-06 Jakub Jelinek <jakub@redhat.com>
40930 * opts.c (common_handle_option): Add support for
40931 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
40932 * doc/invoke.texi: Document -fno-sanitize=all,
40933 -f{,no-}sanitize-recover=all. Document that
40934 -fsanitize=float-cast-overflow is not enabled
40935 by -fsanitize=undefined. Fix up documentation
40936 of -f{,no-}sanitize-recover.
40938 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
40940 * config.gcc: Add Visium support.
40941 * configure.ac: Likewise.
40942 * configure: Regenerate.
40943 * doc/extend.texi (interrupt attribute): Add Visium.
40944 * doc/invoke.texi: Document Visium options.
40945 * doc/install.texi: Document Visium target.
40946 * doc/md.texi: Document Visium constraints.
40947 * common/config/visium: New directory.
40948 * config/visium: Likewise.
40950 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
40952 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
40953 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
40955 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
40957 * combine.c (combine_validate_cost): Do not count the cost of a
40958 split I2 twice. Do not display it twice in the dump, either.
40960 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
40962 Revert parts of r219199.
40963 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
40965 ([-Wtraditional]): Restore markup on <limits.h>.
40967 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
40970 * doc/invoke.texi: Document -Wsuggest-override.
40972 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
40974 PR rtl-optimization/64287
40975 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
40976 (process_options): Disable flag_ipa_ra if profiling.
40978 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
40980 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
40982 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
40984 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
40985 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
40986 put under #if TARGET_LOOPS guard.
40988 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
40990 * config/i386/i386.c (output_387_binary_op): Use std::swap.
40992 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
40994 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
40995 * rtl.h (refers_to_regno_p): Add overload.
40997 * bt-load.c: Likewise.
40998 * combine.c: Likewise.
40999 * df-scan.c: Likewise.
41000 * sched-deps.c: Likewise.
41001 * config/s390/s390.c: Likewise.
41002 * config/m32r/m32r.c: Likewise.
41003 * config/rs6000/spe.md: Likewise.
41004 * config/rs6000/rs6000.c: Likewise.
41005 * config/pa/pa.c: Likewise.
41006 * config/stormy16/stormy16.c: Likewise.
41007 * config/cris/cris.c: Likewise.
41008 * config/arc/arc.md: Likewise.
41009 * config/arc/arc.c: Likewise.
41010 * config/sh/sh.md: Likewise.
41011 * config/sh/sh.c: Likewise.
41012 * config/frv/frv.c: Likewise.
41014 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41017 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
41018 call as cleanup of the whole body.
41019 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
41020 * tsan.c (replace_func_exit): New function.
41021 (instrument_func_exit): Moved earlier.
41022 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
41023 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
41025 (tsan_pass): Don't call instrument_func_exit.
41026 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
41027 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
41031 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
41032 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
41033 it to libubsan handler instead of EXPR. Fold comparisons earlier,
41034 if the result is integer_zerop, return NULL_TREE.
41035 * convert.c (convert_to_integer): Pass expr as ARG.
41037 PR tree-optimization/64465
41038 * tree-inline.c (redirect_all_calls): During inlining
41039 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
41040 changed the stmt to a non-throwing call.
41042 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
41044 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
41045 etc markup throughout the file.
41047 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
41049 Enable experimental TSAN support for Ada.
41050 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
41052 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41054 PR tree-optimization/64494
41055 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
41056 clear SSA_NAME_ANTI_RANGE_P flag.
41058 2015-01-05 Marek Polacek <polacek@redhat.com>
41060 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
41062 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41064 Update copyright years.
41066 * gcc.c (process_command): Update copyright notice dates.
41067 * gcov-dump.c: Ditto.
41069 * doc/cpp.texi: Bump @copying's copyright year.
41070 * doc/cppinternals.texi: Ditto.
41071 * doc/gcc.texi: Ditto.
41072 * doc/gccint.texi: Ditto.
41073 * doc/gcov.texi: Ditto.
41074 * doc/install.texi: Ditto.
41075 * doc/invoke.texi: Ditto.
41077 * auto-profile.c, auto-profile.h: Fix up Copyright line.
41079 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
41081 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
41083 ([-fvtable-verify], [-fvtv-debug]): Likewise.
41084 ([-Wabi]): Likewise.
41085 ([-fmessage-length]): Likewise.
41086 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
41087 ([-Wno-discarded-qualifiers]): Likewise.
41088 ([-Wnodiscarded-array-qualifiers]): Likewise.
41089 ([-Wno-virtual-move-assign]): Likewise.
41090 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
41091 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
41092 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
41093 ([-fsanitize-undefined-trap-on-error]): Likewise.
41094 ([-floop-interchange]): Likewise.
41095 ([-ftree-coalesce-inlined-vars]): Likewise.
41096 ([-fvect-cost-model]): Likewise.
41097 ([-flto]): Likewise.
41098 ([--param]): Likewise.
41099 (Spec Files): Likewise.
41100 ([-mstrict-align]): Likewise.
41101 ([-mfix-cortex-a53-835769]): Likewise.
41102 ([-march], [-mtune]): Likewise.
41103 ([-mpic-register]): Likewise.
41104 ([-munaligned-access]): Likewise.
41105 ([-msp8]): Likewise.
41106 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
41107 (AVR Built-in Macros): Likewise.
41108 ([-mpreferred-stack-boundary]): Likewise.
41109 ([-mtune-crtl]): Likewise.
41110 ([-mashf]): Likewise.
41111 ([-mmcu=]): Likewise.
41112 ([-minrt]): Likewise.
41113 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
41114 ([-mupper-regs]): Likewise.
41115 ([-matomic-model]): Likewise.
41116 ([-mdiv]): Likewise.
41117 ([-mzdcbranch]): Likewise.
41118 ([-mdisable-callt]): Likewise.
41119 ([-msoft-float]): Likewise.
41120 ([-m8byte-align]): Likewise.
41121 ([-fstack-reuse]): Likewise.
41123 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41125 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
41126 Fix markup, light copy-editing.
41127 ([-fauto-profile]): Rewrite to fix formatting and content
41130 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41132 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
41133 Copy-edit description.
41134 ([-fisolate-erroneous-paths-attribute]): Likewise.
41135 * common.opt (fisolate-erroneous-paths-dereference):
41136 Copy-edit description.
41137 (fisolate-erroneous-paths-attribute): Likewise.
41139 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41141 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
41144 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41146 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
41147 ([-fvtv-debug]): Likewise.
41148 ([-Wc++-compat]): Likewise.
41149 ([-Wc++11-compat]): Likewise.
41150 ([-Wc++14-compat]): Likewise.
41151 ([-Wno-sized-deallocation]): Likewise.
41152 ([-femit-class-debug-always]): Likewise.
41153 ([-femit-struct-debug-detailed]): Likewise.
41154 ([-fno-keep-inline-dllexport]): Likewise.
41155 ([-fira-algorithm]): Likewise.
41156 ([-fira-region]): Likewise.
41157 ([-flra-remat]): Likewise.
41158 ([-fipa-ra]): Likewise.
41159 ([-fhoist-adjacent-loads]): Likewise.
41160 ([-fisolate-erroneous-paths-dereference]): Likewise.
41161 ([-fisolate-erroneous-paths-attribute]): Likewise.
41162 ([-ftree-switch-conversion]): Likewise.
41163 ([-ftree-tail-merge]): Likewise.
41164 ([-ftree-loop-if-convert]): Likewise.
41165 ([-ftree-loop-if-convert-stores]): Likewise.
41166 ([-ftree-loop-distribution]): Likewise.
41167 ([-ftree-loop-distribute-patterns]): Likewise.
41168 ([-flto-compression-level]): Likewise.
41169 ([-flto-report]): Likewise.
41170 ([-flto-report-wpa]): Likewise.
41171 ([-fuse-linker-plugin]): Likewise.
41172 ([-mfix-cortex-a53-835769]): Likewise.
41173 ([-mno-fix-cortex-a53-835769]): Likewise.
41174 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
41175 explicit listing; add a note to the discussion indicating they
41176 exist. Reorder table to group similar options. Add missing
41177 @opindex entries. Add @need commands throughout the table to
41178 allow it to be split across multiple pages.
41179 ([-m8bit-idiv]): Fix @opindex.
41180 ([-mavx256-split-unaligned-load]): Likewise.
41181 ([-mavx256-split-unaligned-store]): Likewise.
41182 ([-mstack-protector-guard]): Likewise.
41183 ([-mcpu=]): Likewise.
41184 ([-mcpu]): Likewise.
41185 ([-mpointer-size=]): Likewise.
41187 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
41189 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
41190 instead of `m' constraint. Likewise for unnamed movb comparison
41191 patterns using reg_before_reload_operand predicate.
41192 * config/pa/predicates.md (reg_before_reload_operand): Tighten
41193 predicate to reject register index and LO_SUM DLT memory forms
41196 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
41198 * doc/invoke.texi (Option Summary): Fix spelling of
41199 -fdevirtualize-at-ltrans.
41200 ([-fdevirtualize]): Fix markup.
41201 ([-fdevirtualize-speculatively]): Fix typo.
41202 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
41203 implementor-speaky.
41204 * common.opt (fdevirtualize-at-ltrans): Likewise.
41205 * ipa-devirt.c: Fix typos in comments throughout the file.
41206 (ipa_devirt): Fix typos in format strings for dump output.
41208 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
41210 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
41211 discussion of defaults, light copy-editing.
41213 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
41215 * tsan.c (instrument_expr): corrected previous checkin.
41217 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
41219 Instrument bit field and unaligned accesses for TSAN.
41220 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
41221 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
41222 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
41223 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
41224 unaligned memory regions.
41226 2015-01-01 Anthony Green <green@moxielogic.com>
41228 * config/moxie/predicates.md (moxie_general_movsrc_operand):
41229 Restrict move source register offsets to 16 bits.
41231 Copyright (C) 2015 Free Software Foundation, Inc.
41233 Copying and distribution of this file, with or without modification,
41234 are permitted in any medium without royalty provided the copyright
41235 notice and this notice are preserved.