1 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3 PR rtl-optimization/68506
4 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
5 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
8 2015-11-27 Martin Liska <mliska@suse.cz>
11 * vec.h (release_vec_vec): New function.
13 2015-11-27 Jakub Jelinek <jakub@redhat.com>
15 PR tree-optimization/68552
16 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
17 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
20 2015-11-27 Martin Liska <mliska@suse.cz>
22 * tree-ssa-uninit.c: Fix whitespaces in the source file.
23 The change is just automatical.
25 2015-11-27 Martin Liska <mliska@suse.cz>
27 * tree-chkp.c (chkp_make_static_bounds): Release buffer
30 2015-11-27 Martin Liska <mliska@suse.cz>
32 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
33 Do not release memory for comp_alias_ddrs.
34 * tree-vect-loop.c (destroy_loop_vec_info): Release
35 the memory for all loop_vec_info.
37 2015-11-27 Martin Liska <mliska@suse.cz>
39 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
41 (struct final_warning_record): Use auto_vec instead
44 2015-11-27 Richard Biener <rguenther@suse.de>
46 PR tree-optimization/68553
47 * tree-vect-slp.c (vect_get_mask_element): Remove.
48 (vect_transform_slp_perm_load): Implement in a simpler way.
50 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
52 PR rtl-optimization/67753
53 PR rtl-optimization/64164
54 * function.c (assign_parm_setup_block): Right-shift
55 upward-padded big-endian args when bypassing the stack slot.
57 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
59 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
60 `-mcompact-branches='.
61 (MIPS Options): Likewise.
63 2015-11-26 Jakub Jelinek <jakub@redhat.com>
65 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
67 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
69 * doc/install.texi (Prerequisites): Increase ISL requirement to
72 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
74 * config/aarch64/arm_neon.h
75 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
76 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
77 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
78 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
79 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
80 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
81 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
82 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
83 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
84 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
85 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
86 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
88 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
90 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
91 (vqrdmlahq_s16, vqrdmlahq_s32): New.
92 (vqrdmlsh_s16, vqrdmlsh_s32): New.
93 (vqrdmlshq_s16, vqrdmlshq_s32): New.
95 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
97 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
100 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
103 * tree-nested.c (finalize_nesting_tree_1): Append a field to
104 hold the frame base address.
105 * dwarf2out.c (gen_subprogram_die): Generate for
106 DW_AT_static_link a location description that computes the value
109 2015-11-26 Tom de Vries <tom@codesourcery.com>
112 2015-11-25 Tom de Vries <tom@codesourcery.com>
114 * cfgloop.c (find_single_latch): New function, factored out of ...
115 (flow_loops_find): ... here.
116 (verify_loop_structure): Improve verification of loop->latch.
117 * cfgloop.h (find_single_latch): Declare.
118 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
120 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
122 * config/aarch64/aarch64-simd-builtins.def:
123 Add missing changes from r230962.
125 2015-11-26 Nathan Sidwell <nathan@acm.org>
127 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
128 arg with name. Don't deal with split regs. Tweak formatting.
129 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
130 (nvptx_output_call_insn): Don't deal with split regs here.
132 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
134 * config/aarch64/aarch64-simd-builtins.def
135 (sqrdmlah, sqrdmlsh): New.
136 (sqrdmlah_lane, sqrdmlsh_lane): New.
137 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
139 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
141 * config/aarch64/aarch64-simd.md
142 (aarch64_sqmovun<mode>): Fix some white-space.
143 (aarch64_<sur>qmovun<mode>): Likewise.
144 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
145 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
146 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
147 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
148 (UNSPEC_SQRDMLSH): New.
152 2015-11-26 Richard Biener <rguenther@suse.de>
154 PR tree-optimization/66721
155 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
156 iteration cost earlier. Re-do analysis without SLP when
157 vectorization using SLP fails and without has a chance to succeed.
159 2015-11-26 Richard Biener <rguenther@suse.de>
161 * genmatch.c (dt_simplify::gen_1): For generic wrap all
162 multi-result-use captures in a SAVE_EXPR.
164 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
166 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
167 (TARGET_SIMD_RDMA): New.
169 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
171 * combine.c (subst): Do not return clobber of zero in widening mult
172 case. Just return x unchanged if it is a no-op substitution.
174 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
177 * config/i386/i386.h (enum reg_class): Add
178 bounds registers to ALL_REGS.
180 2015-11-26 Jakub Jelinek <jakub@redhat.com>
182 PR tree-optimization/68128
183 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
184 * gimplify.c: Include gimple-walk.h.
185 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
186 (omp_notice_variable): Set flags to n->value if n already
187 exists in target region, but we need to jump to do_outer.
188 (omp_shared_to_firstprivate_optimizable_decl_p,
189 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
191 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
192 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
193 not modified in the body. Call omp_mark_stores for outer
194 contexts on OMP_CLAUSE_SHARED clauses if they could be written
195 in the body or on OMP_CLAUSE_LASTPRIVATE.
196 (gimplify_adjust_omp_clauses): Add body argument, call
197 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
198 Set OMP_CLAUSE_SHARED_READONLY
199 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
200 not modified in the body. Call omp_mark_stores for outer
201 contexts on OMP_CLAUSE_SHARED clauses if they could be written
202 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
203 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
204 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
205 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
206 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
207 * tree-nested.c (convert_nonlocal_omp_clauses,
208 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
209 non-local vars or local vars referenced from nested routines.
210 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
211 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
212 TREE_READONLY, don't call use_pointer_for_field with non-NULL
213 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
215 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
217 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
218 about signed left shift stronger and clarify the cases when they're
221 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
222 Bernd Schmidt <bschmidt@redhat.com>
224 PR rtl-optimization/67226
225 * calls.c (store_one_arg): Take into account
226 crtl->args.pretend_args_size when checking for overlap between
227 arg->value and argblock + arg->locate.offset during sibcall
230 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
232 * config/aarch64/aarch64.md (cbranch<mode>4): Use
233 aarch64_fp_compare_operand.
234 (store_pairsf): Use aarch64_reg_or_fp_zero.
235 (store_pairdf): Likewise.
236 (cstore<mode>4): Use aarch64_fp_compare_operand.
237 (cmov<mode>6): Likewise.
238 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
240 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
241 Sebastian Pop <s.pop@samsung.com>
243 PR tree-optimization/68453
244 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
245 not redirect edges already pointing to their destination.
246 (translate_isl_ast_node_for): Split edges after loops to create
247 basic blocks for close phi nodes. Save merge points at the end of
249 (translate_isl_ast_node_if): Save merge points at the end of the
251 (add_close_phis_to_outer_loops): New.
252 (add_close_phis_to_merge_points): New.
253 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
254 (copy_bb_and_scalar_dependences): Do not split basic blocks on
255 loop close phi locations.
257 2015-11-25 Jan Hubicka <jh@suse.cz>
259 * ipa-visibility.c (cgraph_externally_visible_p,
260 varpool_node::externally_visible_p): When doing incremental linking,
261 hidden symbols may be still used later.
262 (update_visibility_by_resolution_info): Do not drop weak during
264 (function_and_variable_visibility): Fix formating.
265 * flag-types.h (lto_linker_output): Declare.
266 * common.opt 9flag_incremental_link): New flag.
268 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
270 * config/rs6000/constraints.md (wb constraint): New constraint for
271 ISA 3.0 d-form scalar addressing.
273 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
274 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
275 Altivec registers. Add wb constraint for Altivec registers with
276 D-form addressing. If we have ISA 3.0 d-form support, undo
277 secondary reload support for using FPR registers if we want to do
279 (rs6000_debug_reg_global): Likewise.
280 (rs6000_setup_reg_addr_masks): Likewise.
281 (rs6000_init_hard_regno_mode_ok): Likewise.
282 (rs6000_secondary_reload): Likewise.
283 (rs6000_preferred_reload_class): Likewise.
284 (rs6000_secondary_reload_class): Likewise.
286 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
289 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
290 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
297 (extendsfdf2_fpr): Likewise.
298 (mov<mode>_hardfloat): Likewise.
299 (mov<mode>_hardfloat32): Likewise.
300 (mov<mode>_hardfloat64): Likewise.
302 * doc/md.texi (RS/6000 constraints): Document wb constraint.
303 Fixup we constraint documentation.
305 2015-11-25 Tom de Vries <tom@codesourcery.com>
307 * omp-low.c (pass_expand_omp_ssa::clone): New function.
308 * passes.def: Add pass_oacc_kernels pass group.
309 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
311 2015-11-25 Tom de Vries <tom@codesourcery.com>
313 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
315 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
316 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
317 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
318 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
320 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
322 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
323 TV_IPA_LTO_OUTPUT): New.
324 * lto-compress.c: Include timevar.h
325 (lto_end_compression, lto_end_uncompression): Add timers.
326 * langhooks.c: Include timevar.h
327 (lhd_append_data): Add timer.
329 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
331 * varasm.c (default_elf_asm_output_limited_string,
332 default_elf_asm_output_ascii): Replace fprintf by putc.
334 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
336 PR rtl-optimization/67954
337 * lra-constraints.c (curr_insn_transform): Add check on scratch
338 pseudo when change class to NO_REGS. Add an assert.
340 2015-11-25 Nathan Sidwell <nathan@acm.org>
342 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
344 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
346 (nvptx_write_function_decl): Number args from 0.
347 (nvptx_declare_function_name): Likewise.
348 (nvptx_function_incoming_arg): Likewise.
349 (nvptx_output_call_insn): Correct formatting.
351 2015-11-25 David Sherwood <david.sherwood@arm.com>
353 * optabs.def: Add new optabs fmax_optab/fmin_optab.
354 * internal-fn.def: Add new fmax/fmin internal functions.
355 * doc/md.texi: Add fmin and fmax patterns.
357 2015-11-25 Jason Merrill <jason@redhat.com>
360 * tree.c (integer_zerop, integer_onep, integer_each_onep)
361 (integer_all_onesp, integer_minus_onep, integer_pow2p)
362 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
363 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
365 2015-11-25 Richard Biener <rguenther@suse.de>
368 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
369 on stripped operands.
371 2015-11-25 Nathan Sidwell <nathan@acm.org>
373 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
374 (nvptx_declare_function_name): Move assignments next to register
375 declarations, and process params here.
377 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
379 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
380 both the symbol and the "dot" symbol for function descriptors. Fix
381 inversion for rename of symbols with dollar sign.
383 2015-11-25 Tom de Vries <tom@codesourcery.com>
385 * cfgloop.c (find_single_latch): New function, factored out of ...
386 (flow_loops_find): ... here.
387 (verify_loop_structure): Improve verification of loop->latch.
388 * cfgloop.h (find_single_latch): Declare.
389 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
391 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
393 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
394 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
395 (STARTFILE_SPEC): Use %(startfile_vtv).
396 (ENDFILE_SPEC): Use %(endfile_vtv).
397 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
400 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
402 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
404 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
405 noce_can_store_speculate): Delete.
406 (noce_process_if_block): Don't try to handle single MEM stores.
407 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
408 * alias.c (memory_must_be_modified_in_insn_p): Delete.
410 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
412 PR rtl-optimization/68435
413 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
414 for conflicts between a, b and the set destinations.
416 2015-11-25 Richard Biener <rguenther@suse.de>
418 PR tree-optimization/68517
419 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
420 Properly handle zero-sized types.
422 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
424 * ipa-inline-analysis.c: Include gimplify.h
425 (set_cond_stmt_execution_predicate,
426 set_switch_stmt_execution_predicate): Be sure to not leak locations
429 2015-11-25 Jakub Jelinek <jakub@redhat.com>
432 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
433 match_uaddsub_overflow): New functions.
434 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
436 2015-11-25 Richard Biener <rguenther@suse.de>
438 PR tree-optimization/68492
439 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
440 op from scalars after operand swapping.
442 2015-11-25 Richard Biener <rguenther@suse.de>
444 PR tree-optimization/68502
445 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
446 check that the step is a multiple of the type size.
448 2015-11-24 Michael Collison <michael.collison@linaro.org>
450 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
451 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
452 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
454 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
456 * frame-header-opt.c (gate): Check for optimize > 0.
457 (has_inlined_assembly): New function.
458 (needs_frame_header_p): Remove is_leaf_function check,
459 add argument type check.
460 (callees_functions_use_frame_header): Add is_leaf_function
461 and has_inlined_assembly calls..
462 (set_callers_may_not_allocate_frame): New function.
463 (frame_header_opt): Add is_leaf_function call, add
464 set_callers_may_not_allocate_frame call.
465 * config/mips/mips.c (mips_compute_frame_info): Add check
466 to see if callee saved regs can be put in frame header.
467 (mips_expand_prologue): Add check to see if step1 is zero,
468 fix cfa restores when using frame header to store regs.
469 (mips_can_use_return_insn): Check to see if registers are
470 stored in frame header.
471 * config/mips/mips.h (machine_function): Add
472 callers_may_not_allocate_frame and
473 use_frame_header_for_callee_saved_regs fields.
475 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
477 PR rtl-optimization/68520
478 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
479 its bit was already set in BB_WITH.
481 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
483 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
484 double check that type is main variant.
485 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
487 (verify_type_variant): Verify that variants have no
488 TYPE_ALIAS_SET_KNOWN_P set
489 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
490 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
491 only for main variants; stream TYPE_ALIAS_SET as a bit.
492 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
495 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
497 * tree.c (make_vector_type): Properly compute canonical type of the
499 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
502 2015-11-24 Nathan Sidwell <nathan@acm.org>
504 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
505 VOIDmode, don't alter incoming mode.
506 (nvptx_split_reg_p): Delete.
507 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
508 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
509 maybe_split_mode calls.
510 (nvptx_print_operand): Use maybe_split_mode.
512 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
514 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
515 only for types where LTO sets them.
516 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
517 (make_vector_type): Likewise.
518 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
519 * tree.h (canonical_type_used_p): New inline.
520 * alias.c (get_alias_set): Handle structural equality for all
521 types that pass canonical_type_used_p.
522 (record_component_aliases): Look through all types with
523 record_component_aliases for possible pointers; sanity check that
524 the alias sets match.
526 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
528 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
530 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
532 * tree.c (free_node): New function.
533 (type_hash_canon): Use it.
534 * tree.h (free_node): Declare.
536 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
537 Michael Meissner <meissner@linux.vnet.ibm.com>
539 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
540 (Fv2): New mode attribute to be used when ISA 2.07 instructions
541 are used on SF values, and ISA 2.06 instructions on DF values.
542 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
543 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
544 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
545 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
546 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
547 (fre<Fs>): Use <Fv2> instead of <Fv>.
548 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
549 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
550 (xsrdpi<mode>): Add support for the lround function.
551 (lround<mode>di2): Likewise.
552 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
553 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
554 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
555 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
557 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
558 Sebastian Pop <s.pop@samsung.com>
560 PR tree-optimization/67984
561 * graphite-isl-ast-to-gimple.c (is_constant): New.
562 (get_rename): Call is_constant.
563 (get_new_name): Same.
565 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
566 Sebastian Pop <s.pop@samsung.com>
568 * graphite-dependences.c: Only include graphite.h.
569 * graphite-isl-ast-to-gimple.c: Same.
570 * graphite-optimize-isl.c: Same.
571 * graphite-poly.c: Same.
572 * graphite-scop-detection.c: Same.
573 * graphite-sese-to-poly.c: Same.
575 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
576 * graphite-poly.h: Same.
577 * graphite-scop-detection.h: Same.
580 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
582 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
583 DW_TAG_namespace for IMPORTED_DECL declarations. Call
584 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
585 function already takes care of checking what it can emit.
587 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
589 * doc/invoke.texi (-fpic): Add the AArch64 limit.
590 (-fPIC): Add AArch64.
592 2015-11-24 Tom de Vries <tom@codesourcery.com>
594 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
595 (pass_lim::execute): Allow to run outside pass_tree_loop.
597 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
599 * config/aarch64/aarch64.md (add<mode>3):
600 Block early expansion into 2 add instructions.
601 (add<mode>3_pluslong): New pattern to combine complex
602 immediates into 2 additions.
604 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
609 * config/rs6000/predicates.md (and_operand): Check that the operand
610 is a const_int before calling rs6000_is_valid_and_mask.
612 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
614 * config/aarch64/aarch64.md (*condjump): Rename to...
615 (condjump): ... This.
616 (*compare_condjump<mode>): New define_insn_and_split.
617 (*compare_cstore<mode>_insn): Likewise.
618 (*cstore<mode>_insn): Rename to...
619 (cstore<mode>_insn): ... This.
620 * config/aarch64/iterators.md (CMP): Handle ne code.
621 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
623 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
626 * config/i386/i386.c (output_387_binary_op): Fix assertion for
629 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
631 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
632 (val_ssa_equiv_hash_traits::remove): Likewise.
633 (pass_uncprop::execute): Adjust.
635 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
637 * hash-map-traits.h (simple_hashmap_traits ::remove): call
638 destructors on values that are being removed.
639 * mem-stats.h (hash_map): Pass type of values to
640 simple_hashmap_traits.
641 * tree-sra.c (sra_deinitialize): Remove work around for hash
642 maps not destructing values.
643 * genmatch.c (sinfo_hashmap_traits): Adjust.
644 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
646 2015-11-24 Richard Biener <rguenther@suse.de>
647 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
650 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
653 2015-11-24 Jakub Jelinek <jakub@redhat.com>
656 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
657 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
659 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
660 whenever first is nelt or above. Don't mask expected with
663 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
666 * gimple-fold.c: Include ipa-chkp.h.
667 (gimple_fold_builtin_memory_op): Don't fold call if we
668 are going to instrument it and it may copy pointers.
670 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
671 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
673 PR rtl-optimization/68194
674 PR rtl-optimization/68328
675 PR rtl-optimization/68185
676 * ree.c (combine_reaching_defs): Reject copy_needed case if
677 copies_list is not empty.
679 2015-11-24 Richard Biener <rguenther@suse.de>
682 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
685 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
687 PR rtl-optimization/68381
688 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
691 2015-11-23 Nick Clifton <nickc@redhat.com>
692 Jeff Law <law@redhat.com>
694 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
695 the source/dest of the target extension require a different number of
697 (combine_set_extension): Remove #if 0 code.
699 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
700 Sebastian Pop <s.pop@samsung.com>
702 PR tree-optimization/68314
703 * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
704 * graphite-poly.c (new_scop): Remove original_schedule.
706 * graphite-poly.h (struct scop): Same.
707 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
708 (build_pbb_scattering_polyhedrons): Add back.
709 (build_scop_minimal_scattering): Remove.
710 (build_scop_scattering): Add back.
711 (build_scop_original_schedule): Remove.
712 (build_poly_scop): Revert to only call build_scop_scattering.
714 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
715 Sebastian Pop <s.pop@samsung.com>
717 PR tree-optimization/68493
718 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
719 missing early return when codegen_error is set.
721 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
722 Sebastian Pop <s.pop@samsung.com>
724 PR tree-optimization/68279
725 * graphite-poly.c (new_scop): Remove poly_scop_p.
726 * graphite-poly.h (struct scop): Same.
727 (build_poly_scop): Declare.
728 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
729 (cleanup_loop_iter_dom): New.
730 (build_loop_iteration_domains): Early return when scev analysis fails.
731 (create_pw_aff_from_tree): Same.
732 (add_condition_to_pbb): Same.
733 (add_conditions_to_domain): Same.
734 (add_conditions_to_constraints): Same.
735 (build_scop_iteration_domain): Same.
736 (build_poly_scop): Same. Do not initialize poly_scop_p.
737 * graphite-sese-to-poly.h: Remove.
738 * graphite.c: Do not include graphite-sese-to-poly.h.
739 (graphite_transform_loops): Stop before code generation when
740 build_poly_scop fails.
741 * sese.c (scalar_evolution_in_region): Add fixme note about scev
744 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
745 Sebastian Pop <s.pop@samsung.com>
747 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
748 Remove call to update_ssa.
749 * sese.c (sese_insert_phis_for_liveouts): Same.
751 2015-11-23 Marek Polacek <polacek@redhat.com>
753 PR tree-optimization/68455
754 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
755 extract_range_from_multiplicative_op_1 on symbolic ranges.
757 2015-11-23 Richard Henderson <rth@redhat.com>
759 * optabs.def (uaddv4_optab, usubv4_optab): New.
760 * internal-fn.c (expand_addsub_overflow): Use them.
761 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
763 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
764 to reversed operands.
765 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
766 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
767 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
768 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
769 (*add<SWI>3_cconly_overflow_2): New.
770 (*add<SWI>3_cc_overflow_2): New.
771 (*addsi3_zext_cc_overflow_2): New.
773 2015-11-23 Richard Biener <rguenther@suse.de>
775 PR tree-optimization/68465
776 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
777 Also record equalities from multiple predecessor blocks if
778 only one non-backedge exists.
780 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
783 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
786 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
788 * config/aarch64/aarch64-builtins.c
789 (aarch64_gimple_fold_builtin): Fold FMULX.
791 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
793 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
794 * graphite-dependences.c: Define USES_ISL. Include ISL header files
795 after GCC header files and before graphite header files.
796 * graphite-dependences.c: Same.
797 * graphite-isl-ast-to-gimple.c: Same.
798 * graphite-optimize-isl.c: Same.
799 * graphite-poly.c: Same.
800 * graphite-scop-detection.c: Same.
801 * graphite-sese-to-poly.c: Same.
804 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
805 Jiong Wang <jiong.wang@arm.com>
807 PR tree-optimization/68317
808 PR tree-optimization/68326
809 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
810 final min and max are not infinity.
812 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
813 Richard Biener <rguenther@suse.de>
815 PR tree-optimization/68327
816 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
817 compute vectype for non-relevant mask producers.
818 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
821 2015-11-23 Tom de Vries <tom@codesourcery.com>
823 PR tree-optimization/68460
824 * tree-parloops.c (gather_scalar_reductions): Also call
825 free_stmt_vec_info_vec if simple_loop_info == NULL.
827 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
829 * opts.c (finish_options): Allow -fsanitize-recover=address for
830 userspace sanitization.
831 * asan.c (asan_expand_check_ifn): Redefine recover_p.
832 * doc/invoke.texi (fsanitize-recover): Update documentation.
834 2015-11-23 Tom de Vries <tom@codesourcery.com>
836 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
838 2015-11-23 Richard Biener <rguenther@suse.de>
840 PR tree-optimization/68445
841 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
842 two different strides.
844 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
846 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
847 * config/s390/s390.c (s390_check_symref_alignment): Use new
848 symref flags, early abort on wrong alignment
849 (s390_secondary_reload): Use new symref flags.
850 (s390_encode_section_info): Likewise.
851 * config/s390/predicates.md: Likewise.
853 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
856 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
857 for indirect function call.
859 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
861 * config/aarch64/aarch64-simd.md
862 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
863 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
864 (*aarch64_mulx_elt_to_64v2df): Likewise.
865 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
866 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
867 (vmulx_lane_f64): Likewise.
868 (vmulxq_lane_f32): Refactored & moved.
869 (vmulxq_lane_f64): Likewise.
870 (vmulx_laneq_f32): New.
871 (vmulx_laneq_f64): Likewise.
872 (vmulxq_laneq_f32): Likewise.
873 (vmulxq_laneq_f64): Likewise.
874 (vmulxs_lane_f32): Likewise.
875 (vmulxs_laneq_f32): Likewise.
876 (vmulxd_lane_f64): Likewise.
877 (vmulxd_laneq_f64): Likewise.
879 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
881 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
882 In LTO we do not compute TYPE_CANONICAL of pointers.
883 (gimple_canonical_types_compatible_p): Improve coments; sanity check
884 that pointers do not have canonical type that would make us believe
886 * alias.c (get_alias_set): Do structural type equality on pointers;
887 enable pointer path for LTO; also glob pointer to vector with pointer
888 to vector element; glob pointers and references for LTO; do more strict
889 sanity checking about build_pointer_type returning the canonical type
890 which is also the main variant.
891 (record_component_aliases): When component type is pointer and we
892 do LTO; record void_type_node alias set.
894 2015-11-21 Nathan Sidwell <nathan@acm.org>
896 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
898 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
900 (write_func_decl_from_insn): Likewise.
901 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
902 (nvptx_file_end): Likewise.
903 (nvptx_function_end): Undent output.
904 (nvptx_expand_call): Fix formatting.
905 (nvptx_output_call_insn): Indent output.
906 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
907 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
909 2015-11-21 Jakub Jelinek <jakub@redhat.com>
912 * tree-inline.c (copy_debug_stmt): If
913 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
914 in decl_debug_args, don't call remap_gimple_op_r on it.
916 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
918 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
919 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
920 Check that all record types are complete.
921 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
922 compare alias sets for types w/o alias sets.
924 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
926 * config/sparc/sparc.md (umulxhi_vis): Move around.
927 (*umulxhi_sp64): Likewise.
928 (umulxhi_v8plus): Likewise.
929 (xmulx_vis): Likewise.
930 (*xmulx_sp64): Likewise.
931 (xmulx_v8plus): Likewise.
932 (xmulxhi_vis): Likewise.
933 (*xmulxhi_sp64): Likewise.
934 (xmulxhi_v8plus): Likewise.
936 2015-11-20 David Malcolm <dmalcolm@redhat.com>
939 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
940 (class layout): Update comment
941 (layout::print_any_fixits): New method.
942 (layout::move_to_column): New method.
943 (diagnostic_show_locus): Add call to layout.print_any_fixits.
945 2015-11-20 Jakub Jelinek <jakub@redhat.com>
948 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
949 has non-zero bias, subtract it in integer type instead of
950 pointer plus of negated bias.
953 * omp-low.c (expand_simd_clones): Call node->get_body () before
954 allocating stuff in GC.
956 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
958 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
960 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
962 * config/aarch64/aarch64.md (predicated): Copy attribute from
964 * config/arm/arm.md (predicated): Added description.
966 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
968 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
969 for unaligned_access.
970 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
971 from matching condition.
972 (unaligned_loadhis): Likewise.
973 (unaligned_loadhiu): Likewise.
974 (unaligned_storesi): Likewise.
975 (unaligned_storehi): Likewise.
977 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
980 * config/arm/arm.md (unaligned_loaddi): Delete.
981 (unaligned_storedi): Likewise.
982 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
983 unaligned DImode memory ops. Instead perform two back-to-back
984 unaligned SImode ops.
986 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
987 James Norris <jnorris@codesourcery.com>
989 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
990 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
992 2015-11-20 Alan Hayward <alan.hayward@arm.com>
994 PR tree-optimization/68413
995 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
997 (vectorizable_reduction): Use cached base
999 2015-11-20 Tom de Vries <tom@codesourcery.com>
1001 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
1003 (try_create_reduction_list): Same. Fix typo in dump-file string.
1005 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
1007 * doc/md.texi (Standard Names): Move entry for addptr3 around,
1008 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
1009 glitch in entries for cbranch4 and jump.
1011 2015-11-20 Tom de Vries <tom@codesourcery.com>
1013 PR tree-optimization/68373
1014 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
1016 (scev_const_prop): ... here.
1017 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
1018 * tree-parloops.c (try_create_reduction_list): Call
1019 final_value_replacement_loop.
1021 2015-11-20 Bin Cheng <bin.cheng@arm.com>
1023 PR tree-optimization/52272
1024 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
1025 (struct iv_common_cand_hasher): New struct.
1026 (iv_common_cand_hasher::hash): New function.
1027 (iv_common_cand_hasher::equal): New function.
1028 (struct ivopts_data): New fields, iv_common_cand_tab and
1030 (tree_ssa_iv_optimize_init): Initialize above fields.
1031 (record_common_cand, common_cand_cmp): New functions.
1032 (add_iv_candidate_derived_from_uses): New function.
1033 (add_iv_candidate_for_use): Record iv_common_cands derived from
1034 iv use in hash table, instead of adding candidates directly.
1035 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
1036 (record_important_candidates): Add important candidates to iv uses'
1037 related_cands. Always keep related_cands for future use.
1038 (try_add_cand_for): Use iv uses' related_cands.
1039 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
1040 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
1042 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1044 * config/s390/s390.md ("bswaphi2"): New pattern.
1046 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
1048 * config/s390/s390.md (GPR1_REGNUM): New constant.
1049 ("*trunc<BFP:mode><DFP_ALL:mode>2")
1050 ("*trunc<DFP_ALL:mode><BFP:mode>2")
1051 ("trunc<BFP:mode><DFP_ALL:mode>2")
1052 ("trunc<DFP_ALL:mode><BFP:mode>2")
1053 ("*extend<BFP:mode><DFP_ALL:mode>2")
1054 ("*extend<DFP_ALL:mode><BFP:mode>2")
1055 ("extend<BFP:mode><DFP_ALL:mode>2")
1056 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
1058 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1059 Sebastian Pop <s.pop@samsung.com>
1061 PR tree-optimization/68428
1062 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
1063 over basic blocks outside the scop.
1065 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1066 Sebastian Pop <s.pop@samsung.com>
1068 PR tree-optimization/68341
1069 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
1070 gcc_unreachable and safely fail codegen.
1071 (copy_loop_close_phi_args): Do not insert merge phis in a basic
1072 block with loop phi nodes.
1073 (edge_for_new_close_phis): New.
1074 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
1076 2015-11-19 Nathan Sidwell <nathan@acm.org>
1078 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
1079 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
1080 (nvptx_declare_objec_name): Likewise.
1082 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1084 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
1085 (get_false_edge_from_guard_bb): Move...
1086 * sese.c (get_false_edge_from_guard_bb)
1087 (get_true_edge_from_guard_bb): ... here.
1089 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
1092 2015-11-18 Alan Modra <amodra@gmail.com>
1094 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1095 type-limits warning.
1098 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1100 * tree.h (desired_pro_or_demotion_p): New function.
1101 * tree-vrp.c (simplify_cond_using_ranges): Call it.
1103 2015-11-19 Michael Matz <matz@suse.de>
1105 * fwprop.c (update_uses): Use flag_checking instead of
1106 gcc_checking_assert.
1108 2015-11-19 David Malcolm <dmalcolm@redhat.com>
1110 * doc/gty.texi (Support for inheritance): Fix missing
1111 parentheses in example.
1113 2015-11-19 Marek Polacek <polacek@redhat.com>
1115 PR tree-optimization/68431
1116 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
1118 2015-11-19 Nathan Sidwell <nathan@acm.org>
1120 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
1121 atomic_exchange<mode>): Input values can be immediates.
1123 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
1126 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
1128 * configure: Regenerate.
1130 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
1133 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
1134 (DTORS_SECTION_ASM_OP): Likewise.
1136 2015-11-19 Jakub Jelinek <jakub@redhat.com>
1138 PR rtl-optimization/68376
1139 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
1140 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
1142 2015-11-19 Richard Biener <rguenther@suse.de>
1145 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
1146 redirect_edge_var_map_destroy.
1148 2015-11-19 Jakub Jelinek <jakub@redhat.com>
1151 * config/i386/i386.md (simple_return): Disable if
1152 ix86_static_chain_on_stack is true.
1154 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
1157 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
1160 2015-11-18 Jeff Law <law@redhat.com>
1162 PR tree-optimization/68198
1163 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
1164 between threading a multi-way branch and a thread path that contains
1165 a multi-way branch. Disallow the case where a path contains a
1166 multi-way branch and does not thread a multi-way branch.
1167 (thread_through_all_blocks): Update comment.
1169 2015-11-18 Joseph Myers <joseph@codesourcery.com>
1172 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
1173 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
1174 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
1175 functions before defining as macros.
1177 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1179 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
1180 (nvptx_record_offload_symbol): Remove code compensating for lack
1181 of default dimension handling.
1182 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
1184 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
1186 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
1187 type to bool for early exit.
1188 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
1190 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
1191 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
1192 predecessor dominates the other.
1193 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
1194 element is not found it returns -1.
1195 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
1196 out early when codegen fails.
1197 (graphite_regenerate_ast_isl): Remove codegen region when pending
1198 phis could not be generated.
1200 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
1202 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
1204 (class translate_isl_ast_to_gimple): Indentation.
1205 (translate_pending_phi_nodes): Comment.
1206 (add_parameters_to_ivs_params): Moved from sese.c inside class
1207 translate_isl_ast_to_gimple.
1208 (get_max_schedule_dimensions): Same.
1209 (generate_isl_context): Same.
1210 (extend_schedule): Same.
1211 (generate_isl_schedule): Same.
1212 (set_options): Same.
1213 (scop_to_isl_ast): Same.
1214 (is_valid_rename): Same.
1216 (get_rename_from_scev): Same.
1217 (get_def_bb_for_const): Same.
1218 (get_new_name): Same.
1219 (collect_all_ssa_names): Same.
1220 (copy_loop_phi_args): Same.
1221 (copy_loop_phi_nodes): Same.
1222 (copy_loop_close_phi_args): Same.
1223 (copy_loop_close_phi_nodes): Same.
1224 (copy_cond_phi_args): Same.
1225 (copy_cond_phi_nodes): Same.
1226 (graphite_copy_stmts_from_block): Same.
1227 (copy_bb_and_scalar_dependences): Same.
1228 (add_phi_arg_for_new_expr): Same.
1229 (rename_uses): Same.
1231 (set_rename_for_each_def): Same.
1232 (gsi_insert_earliest): Same.
1233 (rename_all_uses): Same.
1234 (codegen_error_p): Same.
1235 (print_isl_ast_node): Same.
1236 (translate_isl_ast_for_loop): Call function codegen_error_p.
1237 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1238 (translate_isl_ast_node_user): Make nb_loops const and release
1240 (get_true_edge_from_guard_bb): Move all free-functions early.
1241 (get_false_edge_from_guard_bb): Same.
1242 (bb_contains_loop_close_phi_nodes): Same.
1243 (bb_contains_loop_phi_nodes): Same.
1244 (is_loop_closed_ssa_use): Same.
1245 (number_of_phi_nodes): Same.
1246 (phi_uses_name): Same.
1247 (later_of_the_two): Same.
1248 (substitute_ssa_name):
1251 (get_loop_init_value): Same.
1252 (find_init_value): Same.
1253 (find_init_value_close_phi): Same.
1254 (ast_build_before_for): Same.
1255 (graphite_regenerate_ast_isl): Formatting changes.
1256 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
1257 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
1259 (gsi_insert_earliest): Same.
1260 (collect_all_ssa_names): Same.
1261 (rename_all_uses): Same.
1262 (rename_uses): Same.
1263 (get_def_bb_for_const): Same.
1264 (copy_loop_phi_nodes): Same.
1265 (copy_loop_close_phi_args): Same.
1266 (copy_loop_close_phi_nodes): Same.
1267 (copy_cond_phi_args): Same.
1268 (copy_cond_phi_nodes): Same.
1269 (set_rename_for_each_def): Same.
1270 (graphite_copy_stmts_from_block): Same.
1271 (copy_bb_and_scalar_dependences): Same.
1272 (if_region_set_false_region): Same.
1273 (scev_analyzable_p): Same.
1274 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
1276 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
1278 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
1279 commit from r125920 for FreeBSD.
1281 2015-11-18 Jason Merrill <jason@redhat.com>
1283 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
1285 (add_finalizer): Split out from ggc_internal_alloc.
1286 (ggc_handle_finalizers): Run finalizers for the current depth.
1287 (init_ggc, ggc_pch_read): Reserve space for finalizers.
1289 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
1292 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
1295 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1297 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
1298 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
1300 * doc/avr-mmcu.texi: Regenerate.
1302 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1304 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
1305 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
1306 (struct bb_sese): New struct.
1307 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
1308 (BB_GET_SESE, BB_SET_SESE): Define.
1309 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
1310 (nvptx_find_sese): New.
1311 (nvptx_neuter_pars): Find SESE regions when optimizing.
1313 2015-11-18 Alan Modra <amodra@gmail.com>
1315 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1316 type-limits warning.
1318 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
1321 * hash-set.h (hash_set::traverse): Expand Key typedef.
1323 2015-11-18 Martin Liska <mliska@suse.cz>
1325 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
1328 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1330 * config/nvptx/nvptx.c (global_lock_var): New.
1331 (nvptx_global_lock_addr): New.
1332 (nvptx_lockless_update): Recomment and adjust for clarity.
1333 (nvptx_lockfull_update): New.
1334 (nvptx_reduction_update): New.
1335 (nvptx_goacc_reduction_fini): Call it.
1337 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
1339 * regrename.h (struct du_head): Add target_data_1 and target_data_2
1341 * regrename.c (create_new_chain): Clear entire struct after allocating.
1343 * config/i386/i386.opt (mmitigate-rop): New option.
1344 * doc/invoke.texi (mmitigate-rop): Document.
1345 * config/i386/i386.c: Include "regrename.h".
1346 (ix86_rop_should_change_byte_p, reg_encoded_number,
1347 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
1349 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
1350 * config/i386/i386.md (attr "modrm_class"): New.
1351 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
1352 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
1353 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
1355 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1358 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
1360 2015-11-18 Jakub Jelinek <jakub@redhat.com>
1362 PR tree-optimization/68157
1363 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
1364 pow_stmt or mul_stmt from stmt's uid.
1365 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
1367 2015-11-18 Martin Liska <mliska@suse.cz>
1369 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
1371 2015-11-18 Martin Liska <mliska@suse.cz>
1373 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1374 Fix GNU coding style.
1375 (find_def_preds): Use auto_vec.
1376 (destroy_predicate_vecs): Change signature of the function.
1377 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
1379 (simplify_preds_4): Use destroy_predicate_vecs instread of
1380 just releasing preds vector.
1381 (normalize_preds): Likewise.
1382 (is_use_properly_guarded): Use new signature of
1383 destroy_predicate_vecs.
1384 (find_uninit_use): Likewise.
1386 2015-11-18 Richard Biener <rguenther@suse.de>
1388 PR tree-optimization/67790
1389 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
1390 IL rewrite for MINUS_EXPR reductions, rename back to ...
1391 (vect_is_simple_reduction): ... this, removing the wrapper.
1392 (vect_force_simple_reduction): Adjust.
1393 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
1394 reductions and make use if reduc_index in all places. For
1395 the final reduction of MINUS_EXPR use PLUS_EXPR.
1397 2015-11-18 Alan Modra <amodra@gmail.com>
1399 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
1401 * configure: Regenerate.
1403 2015-11-17 Tom de Vries <tom@codesourcery.com>
1405 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
1407 2015-11-17 Tom de Vries <tom@codesourcery.com>
1409 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
1410 uses of ssa_name with constant.
1412 2015-11-17 Tom de Vries <tom@codesourcery.com>
1414 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
1417 2015-11-17 Tom de Vries <tom@codesourcery.com>
1419 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
1420 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
1421 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
1423 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
1425 * regrename.c (regrename_find_superclass): New function, code moved
1427 (rename_chains): ... here. Call it.
1428 * regrename.h (regrename_find_superclass): Declare.
1430 * regrename.c (record_out_operands): Terminate earlyclobbered
1434 * regrename.c (record_operand_use): Keep track of failed operands
1435 and stop appending if we see any.
1436 * regrename.h (struct operand_rr_info): Add a failed field and shrink
1439 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
1442 * doc/extend.texi (Common Function Attributes) [visibility]:
1443 Add cross-references to matching variable and type attributes.
1444 (Common Variable Attributes) [visibility]: Add missing entry.
1446 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1448 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
1449 entries that map directly to optabs.
1451 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1453 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
1454 entries that map directly to optabs.
1456 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1458 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
1459 * internal-fn.c (direct_internal_fn_array): Update accordingly.
1460 * tree-vectorizer.h (vectorizable_function): Delete.
1461 * tree-vect-stmts.c: Include internal-fn.h.
1462 (vectorizable_internal_function): New function.
1463 (vectorizable_function): Inline into...
1464 (vectorizable_call): ...here. Explicitly reject calls that read
1465 from or write to memory. Try using an internal function before
1466 falling back on the old vectorizable_function behavior.
1468 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1470 * target.def (builtin_vectorized_function): Take a combined_fn (in
1471 the form of an unsigned int) rather than a function decl.
1472 (builtin_md_vectorized_function): New.
1473 * targhooks.h (default_builtin_vectorized_function): Replace the
1474 fndecl argument with an unsigned int.
1475 (default_builtin_md_vectorized_function): Declare.
1476 * targhooks.c (default_builtin_vectorized_function): Replace the
1477 fndecl argument with an unsigned int.
1478 (default_builtin_md_vectorized_function): New function.
1479 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
1481 * doc/tm.texi: Regenerate.
1482 * tree-vect-stmts.c (vectorizable_function): Update call to
1483 builtin_vectorized_function, also passing internal functions.
1484 Call builtin_md_vectorized_function for target-specific builtins.
1485 * config/aarch64/aarch64-protos.h
1486 (aarch64_builtin_vectorized_function): Replace fndecl argument
1487 with an unsigned int.
1488 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
1489 (aarch64_builtin_vectorized_function): Update after above changes.
1491 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
1492 fndecl argument with an unsigned int.
1493 * config/arm/arm-builtins.c: Include case-cfn-macros.h
1494 (arm_builtin_vectorized_function): Update after above changes.
1496 * config/i386/i386.c: Include case-cfn-macros.h
1497 (ix86_veclib_handler): Take a combined_fn rather than a
1499 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
1500 mathfn_built_in rather than calling builtin_decl_implicit directly.
1501 (ix86_builtin_vectorized_function) Update after above changes.
1503 * config/rs6000/rs6000.c: Include case-cfn-macros.h
1504 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
1505 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
1506 than calling builtin_decl_implicit directly.
1507 (rs6000_builtin_vectorized_function): Update after above changes.
1508 Use CASE_CFN_*. Move BUILT_IN_MD to...
1509 (rs6000_builtin_md_vectorized_function): ...this new function.
1510 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
1512 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1514 * tree-vect-patterns.c: Include internal-fn.h.
1515 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
1517 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1519 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
1520 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
1522 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1524 * builtins.c (expand_errno_check, expand_builtin_mathfn)
1525 (expand_builtin_mathfn_2): Delete.
1526 (expand_builtin): Remove handling of functions with
1527 internal function equivalents.
1528 * internal-fn.def (SET_EDOM): New internal function.
1529 * internal-fn.h (set_edom_supported_p): Declare.
1530 * internal-fn.c (expand_SET_EDOM): New function.
1531 (set_edom_supported_p): Likewise.
1532 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
1533 Rewrite comment at head of file.
1534 (is_call_dce_candidate): Rename to...
1535 (can_test_argument_range): ...this. Don't check gimple_call_lhs
1536 or gimple_call_builtin_p here.
1537 (edom_only_function): New function.
1538 (shrink_wrap_one_built_in_call_with_conds): New function, split out
1540 (shrink_wrap_one_built_in_call): ...here.
1541 (can_use_internal_fn, use_internal_fn): New functions.
1542 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
1543 for calls that have an lhs.
1544 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
1545 (pass_call_cdce::execute): Skip blocks that are optimized for size.
1546 Check gimple_call_builtin_p here. Use can_use_internal_fn for
1548 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
1551 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1553 * builtins.h (called_as_built_in): Declare.
1554 * builtins.c (called_as_built_in): Make external.
1555 * internal-fn.h (expand_internal_call): Define a variant that
1556 specifies the internal function explicitly.
1557 * internal-fn.c (expand_load_lanes_optab_fn)
1558 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
1559 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
1560 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
1561 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
1562 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
1563 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
1564 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
1565 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
1566 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
1567 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
1568 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
1569 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
1570 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
1572 (internal_fn_expanders): Update prototype.
1573 (expand_internal_call): Define a variant that specifies the
1574 internal function explicitly. Use it to implement the previous
1576 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
1577 functions as calls to internal functions.
1579 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1581 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
1582 (generated_files): Likewise.
1583 (s-cfn-operators, cfn-operators.pd): New rules.
1584 (s-match): Depend on cfn-operators.pd.
1585 * gencfn-macros.c: Expand comment to describe -o behavior.
1586 (print_define_operator_list): New function.
1587 (main): Accept -o. Call print_define_operator_list.
1588 * genmatch.c (main): Add the current directory to the include path.
1589 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
1592 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1594 * doc/match-and-simplify.texi: Document the "null" identifier.
1595 * genmatch.c (id_base::NULL_ID): New kind.
1596 (null_id): New variable.
1597 (get_operator): Add a parameter that says whether null identifiers
1599 (contains_id): New function.
1600 (lower_for): Skip substitutions that would have a null_id in
1601 either the match or the result.
1602 (parser::parse_for): Allow the null identifier to be used.
1603 (parser::parse_operator_list): Likewise.
1604 (main): Initialize null_id.
1606 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1608 * match.pd: Use HYPOT and COS rather than hypot and cos.
1609 Use CASE_CFN_* macros. Guard log/exp folds with
1610 SCALAR_FLOAT_TYPE_P.
1611 * genmatch.c (internal_fn): New enum.
1612 (fn_id::fn): Change to an unsigned int.
1613 (fn_id::fn_id): Accept internal_fn too.
1614 (add_builtin): Rename to...
1615 (add_function): ...this and turn into a template.
1616 (get_operator): Only try one variation if the original name fails.
1617 Only add _EXPR if the original name was all lower case.
1618 Try converting internal and built-in function names to their
1620 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
1621 (dt_simplify::gen_1): Likewise.
1622 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
1623 and get_call_combined_fn for generic.
1624 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
1625 (decision_tree::gen): Likewise.
1626 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
1627 Use add_function rather than add_builtin. Register internal
1629 * generic-match-head.c: Include case-cfn-macros.h.
1630 * gimple-fold.c (replace_stmt_with_simplification): Use
1631 gimple_call_combined_fn to test whether we can keep an
1633 * gimple-match.h (code_helper): Replace built_in_function
1635 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
1636 and case-fn-macros.h.
1637 (gimple_resimplify1): Use fold_const_call.
1638 (gimple_resimplify2, gimple_resimplify3): Likewise.
1639 (build_call_internal, build_call): New functions.
1640 (maybe_push_res_to_seq): Use them.
1641 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
1642 rather than a built-in function.
1643 * tree.h (build_call_expr_internal_loc): Declare.
1644 (maybe_build_call_expr_loc): Likewise.
1645 * tree.c (build_call_expr_internal_loc_array): New function.
1646 (maybe_build_call_expr_loc): Likewise.
1648 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1650 * builtins.h (mathfn_built_in): Add a variant that takes
1652 * builtins.c: Include case-cfn-macros.h.
1653 (CASE_MATHFN): Use CASE_CFN_*.
1654 (CASE_MATHFN_REENT): Use CFN_ codes.
1655 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
1656 argument with a combined_fn.
1657 (mathfn_built_in): Add a variant that takes a combined_fn.
1658 (expand_builtin_int_roundingfn_2): Update callers accordingly.
1659 (fold_builtin_sincos, fold_builtin_classify): Likewise.
1661 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1663 * tree-vect-patterns.c: Include case-cfn-macros.h.
1664 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
1666 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1668 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
1669 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
1670 (pass_cse_sincos::execute): Likewise.
1672 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1674 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
1675 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
1676 (decrement_power, acceptable_pow_call): Likewise.
1677 (attempt_builtin_copysign): Likewise.
1679 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1681 * tree-vrp.c: Include case-cfn-macros.h.
1682 (extract_range_basic): Switch on combined_fn rather than handling
1683 built-in functions and internal functions separately.
1685 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1687 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
1688 than a built_in_function.
1689 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1691 (integer_valued_real_call_p): Likewise.
1692 * fold-const.c: Include case-cfn-macros.h
1693 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
1694 (negate_expr_p): Update accordingly.
1695 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1697 (integer_valued_real_call_p): Likewise.
1698 (tree_invalid_nonnegative_warnv_p): Update accordingly.
1699 (integer_valued_real_p): Likewise.
1700 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
1701 to tree_call_nonnegative_warnv_p.
1702 (gimple_call_integer_valued_real_p): Likewise
1703 integer_valued_real_call_p.
1704 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
1705 (backprop::process_builtin_call_use): Extend to combined_fn.
1706 (strip_sign_op_1): Likewise.
1707 (backprop::process_use): Don't check for built-in calls here.
1708 (backprop::execute): Likewise.
1709 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
1711 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1713 * fold-const-call.h (fold_const_call): Replace built_in_function
1714 arguments with combined_fn arguments.
1715 * fold-const-call.c: Include case-cfn-macros.h.
1716 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
1717 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
1718 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
1719 built_in_function arguments with combined_fn arguments.
1720 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
1721 (fold_builtin_3): Update calls to fold_const_call.
1723 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1725 * Makefile.in (HASH_TABLE_H): Add GGC_H.
1726 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
1727 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
1728 (build/gencfn-macros$(build_exeext): New rules.
1729 (genprogerr): Add cfn-macros.
1730 * hash-set.h (hash_set): Use the traits value_type as the key.
1731 * gencfn-macros.c: New file.
1733 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1735 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
1736 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
1737 * builtins.c (associated_internal_fn): Handle them.
1739 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1741 * builtins.h (associated_internal_fn): Declare.
1742 (replacement_internal_fn): Likewise.
1743 * builtins.c: Include internal-fn.h
1744 (associated_internal_fn, replacement_internal_fn): New functions.
1745 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
1746 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
1747 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
1748 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
1749 (LDEXP): New functions.
1750 * internal-fn.c: Include recog.h.
1751 (unary_direct, binary_direct): New macros.
1752 (expand_direct_optab_fn): New function.
1753 (expand_unary_optab_fn): New macro.
1754 (expand_binary_optab_fn): Likewise.
1755 (direct_unary_optab_supported_p): Likewise.
1756 (direct_binary_optab_supported_p): Likewise.
1758 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1760 * coretypes.h (tree_pair): New type.
1761 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
1762 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
1763 * internal-fn.h (direct_internal_fn_info): New structure.
1764 (direct_internal_fn_array): Declare.
1765 (direct_internal_fn_p, direct_internal_fn): New functions.
1766 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
1767 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
1768 (mask_store_direct, store_lanes_direct): New macros.
1769 (direct_internal_fn_array) New array.
1770 (get_multi_vector_move): Return the optab handler without asserting
1771 that it is available.
1772 (expand_LOAD_LANES): Rename to...
1773 (expand_load_lanes_optab_fn): ...this and add an optab argument.
1774 (expand_STORE_LANES): Rename to...
1775 (expand_store_lanes_optab_fn): ...this and add an optab argument.
1776 (expand_MASK_LOAD): Rename to...
1777 (expand_mask_load_optab_fn): ...this and add an optab argument.
1778 (expand_MASK_STORE): Rename to...
1779 (expand_mask_store_optab_fn): ...this and add an optab argument.
1780 (direct_internal_fn_types, direct_optab_supported_p)
1781 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
1782 (direct_internal_fn_supported_p): New functions.
1783 (direct_mask_load_optab_supported_p): New macro.
1784 (direct_load_lanes_optab_supported_p): Likewise.
1785 (direct_mask_store_optab_supported_p): Likewise.
1786 (direct_store_lanes_optab_supported_p): Likewise.
1788 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1790 * tree-core.h (internal_fn): Move immediately after the definition
1791 of built_in_function.
1792 (combined_fn): New enum.
1793 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
1794 (internal_fn_p, as_internal_fn): New functions.
1795 (get_call_combined_fn, combined_fn_name): Declare.
1796 * tree.c (get_call_combined_fn): New function.
1797 (combined_fn_name): Likewise.
1798 * gimple.h (gimple_call_combined_fn): Declare.
1799 * gimple.c (gimple_call_combined_fn): New function.
1801 2015-11-17 Martin Sebor <msebor@redhat.com>
1804 * cp/init.c (build_new_1): Check for expression constness
1807 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
1810 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
1812 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
1813 discussion of the Microsoft structure layout details here from
1814 its former home in extend.texi.
1815 * doc/extend.texi (x86 Variable Attributes): Replace detailed
1816 discussion with pointer to its new location. Add cross-reference
1817 to corresponding type attributes.
1818 (x86 Type Attributes): Add cross-references to command-line options
1819 and variable attributes.
1821 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
1824 * targhooks.c (default_get_mask_mode): Filter out
1825 scalar modes returned by mode_for_vector.
1827 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1830 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
1831 offset from dstbase and use it appropriately in
1832 adjust_automodify_address.
1833 (arm_block_set_aligned_vect): Likewise.
1835 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
1837 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
1838 (MULTILIB_DIRNAMES): Adjust accordingly.
1840 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
1842 * config/aarch64/aarch64-cores.def (cortex-a35): New.
1843 * config/aarch64/aarch64.c (cortexa35_tunings): New.
1844 * config/aarch64/aarch64-tune.md: Regenerate.
1845 * doc/invoke.texi (-mcpu): Add Cortex-A35
1847 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
1850 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
1852 * config/i386/sse.md (*mov<mode>_internal): Always enable
1853 AVX and SSE unaligned moves for IAMCU.
1855 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
1857 * tree-if-conv.c: Include varasm.h
1858 (ref_DR_map): Define.
1859 (baseref_DR_map): Like wise
1860 (struct ifc_dr): Add new tree predicate field.
1861 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
1862 (memrefs_read_or_written_unconditionally): Remove.
1863 (write_memrefs_written_at_least_once): Remove.
1864 (ifcvt_memrefs_wont_trap): Use hash maps to query
1865 unconditional read/written information.
1866 (if_convertible_loop_p_1): Initialize hash maps and predicates
1867 before hashing data references and delete hashmaps at the end.
1869 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
1872 * doc/invoke.texi (Optimize Options): Move @end table to the right
1875 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
1878 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
1881 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
1883 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
1884 128-bit types, just types that fit in a single vector.
1885 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
1887 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
1889 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
1890 in the user documentation.
1891 (define_peephole2, define_split): Similarly.
1893 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
1895 * lto-streamer-out.c (write_global_references): Adjust integer type.
1896 (lto_output_decl_state_refs): Likewise.
1898 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
1900 * config/arm/arm-cores.def (cortex-a35): New.
1901 * config/arm/arm.c (arm_cortex_a35_tune): New.
1902 * config/arm/arm-tables.opt: Regenerate.
1903 * config/arm/arm-tune.md: Regenerate.
1904 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
1905 * config/arm/t-aprofile: Likewise.
1906 * doc/invoke.texi (-mcpu): Likewise.
1908 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
1910 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
1911 and qdf24xx and xgene1 to match -march=armv8-a.
1913 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1915 PR rtl-optimization/68330
1916 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
1917 of LSHIFTRT by a non-zero constant integer.
1919 2015-11-16 Richard Biener <rguenther@suse.de>
1921 PR tree-optimization/68306
1922 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
1923 bogus copying from verify_data_ref_alignment and use continue
1926 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
1927 Kaz Kojima <kkojima@gcc.gnu.org>
1930 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
1932 (*addsi3): Add another insn_and_split variant for reload.
1934 2015-11-16 Richard Biener <rguenther@suse.de>
1937 * cfgexpand.c (pass_expand::execute): Destroy the edge
1938 redirection var map before setting RTL CFG hooks.
1940 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
1942 * config/i386/sse.md (reduc_splus_v8df): Rename to...
1943 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
1945 (reduc_splus_v4df): Rename to...
1946 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
1948 (reduc_splus_v2df): Rename to...
1949 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
1951 (reduc_splus_v16sf): Rename to...
1952 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
1954 (reduc_splus_v8sf): Rename to...
1955 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
1957 (reduc_splus_v4sf): Rename to...
1958 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
1960 (reduc_<code>_<mode>, all 3 variants): Rename each to...
1961 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
1963 (reduc_umin_v8hf): Rename to...
1964 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
1966 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1968 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
1969 without additional conditions.
1970 * doc/extend.texi (@item simd): New.
1972 2015-11-16 Tom de Vries <tom@codesourcery.com>
1974 * passes.c (first_pass_instance): Remove variable.
1975 (execute_todo): Remove setting of first_pass_instance.
1976 * tree-pass.h (first_pass_instance): Remove declaration.
1978 2015-11-16 Tom de Vries <tom@codesourcery.com>
1980 * passes.def: Add arg to pass_ccp pass instantiation.
1981 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
1982 instead of first_pass_instance.
1983 (do_ssa_ccp): Add and handle param nonzero_p.
1984 (pass_ccp::pass_ccp): Initialize nonzero_p.
1985 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
1986 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
1987 (pass_ccp::nonzero_p): New private member.
1989 2015-11-16 Tom de Vries <tom@codesourcery.com>
1991 * passes.def: Add arg to pass_object_sizes pass instantiation.
1992 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
1994 (pass_object_sizes::set_pass_param): New member function. Set
1996 (pass_object_sizes::insert_min_max_p): New private member.
1997 (pass_object_sizes::execute): Use insert_min_max_p instead of
1998 first_pass_instance.
2000 2015-11-16 Tom de Vries <tom@codesourcery.com>
2002 * passes.def: Add arg to pass_dominator pass instantiation.
2003 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
2005 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
2006 may_peel_loop_headers_p.
2007 (pass_dominator::set_pass_param): New member function. Set
2008 may_peel_loop_headers_p.
2009 (pass_dominator::may_peel_loop_headers_p): New private member.
2010 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
2011 first_pass_instance.
2013 2015-11-16 Tom de Vries <tom@codesourcery.com>
2015 * passes.def: Add arg to pass_reassoc pass instantiation.
2016 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
2017 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
2018 of first_pass_instance.
2019 (execute_reassoc): Add and handle insert_powi_p parameter.
2020 (pass_reassoc::insert_powi_p): New private member.
2021 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
2022 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
2023 (pass_reassoc::execute): Call execute_reassoc with extra arg.
2025 2015-11-16 Tom de Vries <tom@codesourcery.com>
2027 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
2028 * gen-pass-instances.awk (handle_line): Same.
2029 * pass_manager.h (class pass_manager): Define and undefine
2031 * passes.c (opt_pass::set_pass_param): New function.
2032 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
2033 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
2034 * tree-pass.h (gimple_opt::set_pass_param): Declare.
2035 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
2036 warn_array_bounds_p parameter.
2037 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
2038 (pass_vrp::set_pass_param): New function.
2039 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
2040 (pass_vrp::warn_array_bounds_p): New private member.
2042 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2044 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
2045 (output_probe_stack_range): Rotate the loop and simplify.
2047 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2049 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
2050 (output_probe_stack_range): Rotate the loop and simplify.
2052 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2054 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
2055 an lea instruction when possible.
2056 (output_adjust_stack_and_probe): Rotate the loop and simplify.
2057 (ix86_emit_probe_stack_range): Adjust.
2058 (output_probe_stack_range): Rotate the loop and simplify.
2060 2015-11-16 Christian Bruel <christian.bruel@st.com>
2062 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
2063 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
2064 with appropriate pragma GCC target.
2066 2015-11-16 Christian Bruel <christian.bruel@st.com>
2069 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
2070 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
2072 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
2074 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
2075 (cortexa57_tunings): Use it.
2077 2015-11-16 Christian Bruel <christian.bruel@st.com>
2080 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
2081 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
2082 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
2084 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
2085 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
2086 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
2087 * doc/extend.texi (-mfpu=): Describe attribute.
2089 2015-11-16 Christian Bruel <christian.bruel@st.com>
2092 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
2093 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
2094 arm_init_neon_builtins.
2095 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
2096 (arm_init_neon_builtins_internal)
2097 (arm_init_crypto_builtins_internal):
2098 Test and set neon_set_p, neon_crypto_set_p.
2099 (neon_set_p, neon_crypto_set_p): New static booleans.
2101 2015-11-16 Christian Bruel <christian.bruel@st.com>
2104 * config/arm/arm.c (arm_fpu_desc): Remove.
2105 (all_fpus): Make global.
2106 (arm_option_override): Use FPU TARGET accessors.
2107 (arm_declare_function_name): Likewise.
2108 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
2109 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
2110 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
2111 (TARGET_NEON): Likewise.
2112 (all_fpus): Declare extern.
2113 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
2114 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
2116 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2119 * sdbout.c: Include emit-rtl.h and function.h.
2121 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
2123 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
2124 Remove support for FreeBSD 5 and earlier.
2126 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2128 * configure: Regenerate.
2129 * configure.ac: Always define ENABLE_OFFLOADING.
2130 * cgraph.c (cgraph_node::create): Adjust.
2131 * gcc.c (process_command): Likewise.
2132 * omp-low.c (create_omp_child_function): Likewise.
2133 (expand_omp_target): Likewise.
2134 * varpool.c (varpool_node::get_create): Likewise.
2136 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2138 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
2139 * df-scan.c (df_get_exit_block_use_set): Adjust.
2140 * except.c (expand_eh_return): Likewise.
2142 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2144 * config/i386/i386.h (TARGET_PECOFF): Remove define.
2145 * defaults.h (TARGET_PECOFF): New default definition.
2146 * varasm.c (handle_vtv_comdat_section): Adjust.
2148 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2150 * defaults.h: New definition of SDB_DEBUGGING_INFO.
2151 * doc/tm.texi: Regenerate.
2152 * doc/tm.texi.in: Adjust.
2153 * final.c (rest_of_clean_state): Remove check if
2154 SDB_DEBUGGING_INFO is defined.
2155 * function.c (number_blocks): Likewise.
2156 * output.h: Likewise.
2157 * sdbout.c: Likewise.
2158 * toplev.c (process_options): Likewise.
2160 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2162 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
2163 (enum sdb_masks): Likewise.
2164 * sdbout.c (plain_type_1): Likewise.
2165 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
2167 2015-11-14 Jakub Jelinek <jakub@redhat.com>
2169 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
2170 internal calls - 0 if ordered simd and 1 for ordered threads simd.
2171 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
2172 argument is 1, replace it with GOMP_ordered_* call instead of removing
2175 2015-11-13 Rich Felker <dalias@libc.org>
2177 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
2178 address loading hack for FDPIC targets.
2180 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
2181 Jeff Law <law@redhat.com>
2183 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
2184 * common.opt (-fsplit-paths): New flag controlling path splitting.
2185 * doc/invoke.texi (fsplit-paths): Document.
2186 * opts.c (default_options_table): Add -fsplit-paths to -O2.
2187 * passes.def: Add split_paths pass.
2188 * timevar.def (TV_SPLIT_PATHS): New timevar.
2189 * tracer.c: Include "tracer.h"
2190 (ignore_bb_p): No longer static.
2191 (transform_duplicate): New function, broken out of tail_duplicate.
2192 (tail_duplicate): Use transform_duplicate.
2193 * tracer.h (ignore_bb_p): Declare
2194 (transform_duplicate): Likewise.
2195 * tree-pass.h (make_pass_split_paths): Declare.
2196 * gimple-ssa-split-paths.c: New file.
2198 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
2199 Marek Polacek <polacek@redhat.com>
2200 Jason Merrill <jason@redhat.com>
2202 * convert.c (maybe_fold_build1_loc): New.
2203 (maybe_fold_build2_loc): New.
2204 (convert_to_pointer_1): Split out from convert_to_pointer.
2205 (convert_to_pointer_nofold): New.
2206 (convert_to_real_1): Split out from convert_to_real.
2207 (convert_to_real_nofold): New.
2208 (convert_to_integer_1): Split out from convert_to_integer.
2209 (convert_to_integer_nofold): New.
2210 (convert_to_complex_1): Split out from convert_to_complex.
2211 (convert_to_complex_nofold): New.
2212 * convert.h: Declare new functions.
2213 * tree-complex.c (create_one_component_var): Break up line to
2214 avoid sequence point issues.
2216 2015-11-13 Jason Merrill <jason@redhat.com>
2218 * fold-const.c (fold_convert_const): Fold changing cv-quals on
2221 * hash-map.h (hash_map::empty): New.
2223 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2225 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
2226 (oacc_loop_fixed_partitions): Correct return type to bool.
2227 (oacc_loop_auto_partitions): New.
2228 (oacc_loop_partition): Take mask argument, call
2229 oacc_loop_auto_partitions.
2230 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
2232 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2234 * config/rs6000/constraints.md (we constraint): New constraint for
2235 64-bit power9 vector support.
2236 (wL constraint): New constraint for the element in a vector that
2237 can be addressed by the MFVSRLD instruction.
2239 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
2241 (convert_int_to_float128): Likewise.
2242 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
2243 hardware support for IEEE 128-bit floating point.
2244 (rs6000_expand_float128_convert): Likewise.
2245 (convert_float128_to_int): Likewise.
2246 (convert_int_to_float128): Likewise.
2248 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
2249 ISA 3.0 hardware IEEE 128-bit floating point.
2250 (UNSPEC_IEEE128_MOVE): Likewise.
2251 (UNSPEC_IEEE128_CONVERT): Likewise.
2252 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
2253 (Ff): Add support for DImode.
2255 (any_fix code iterator): New and updated iterators for IEEE
2256 128-bit floating point hardware support.
2257 (any_float code iterator): Likewise.
2258 (s code attribute): Likewise.
2259 (su code attribute): Likewise.
2260 (az code attribute): Likewise.
2261 (uns code attribute): Likewise.
2262 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
2263 floating point hardware support.
2264 (abs<mode>2, FLOAT128 iterator): Likewise.
2265 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
2266 floating point hardware.
2267 (sub<mode>3, IEEE128 iterator): Likewise.
2268 (mul<mode>3, IEEE128 iterator): Likewise.
2269 (div<mode>3, IEEE128 iterator): Likewise.
2270 (copysign<mode>3, IEEE128 iterator): Likewise.
2271 (sqrt<mode>2, IEEE128 iterator): Likewise.
2272 (neg<mode>2, IEEE128 iterator): Likewise.
2273 (abs<mode>2, IEEE128 iterator): Likewise.
2274 (nabs<mode>2, IEEE128 iterator): Likewise.
2275 (fma<mode>4_hw, IEEE128 iterator): Likewise.
2276 (fms<mode>4_hw, IEEE128 iterator): Likewise.
2277 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
2278 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
2279 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
2280 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
2281 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
2282 (fix_fixuns code attribute): Likewise.
2283 (float_floatuns code attribute): Likewise.
2284 (fix<uns>_<mode>si2_hw): Likewise.
2285 (fix<uns>_<mode>di2_hw): Likewise.
2286 (float<uns>_<mode>si2_hw): Likewise.
2287 (float<uns>_<mode>di2_hw): Likewise.
2288 (xscvqp<su>wz_<mode>): Likewise.
2289 (xscvqp<su>dz_<mode>): Likewise.
2290 (xscv<su>dqp_<mode): Likewise.
2291 (ieee128_mfvsrd): Likewise.
2292 (ieee128_mfvsrwz): Likewise.
2293 (ieee128_mtvsrw): Likewise.
2294 (ieee128_mtvsrd): Likewise.
2295 (trunc<mode>df2_odd): Likewise.
2296 (cmp<mode>_h): Likewise.
2297 (128-bit GPR splitters): Don't split a 128-bit move that is a
2298 direct move between GPR and vector registers using ISA 3.0 direct
2300 (maddld4): Add support for the ISA 3.0 integer multiply-add
2303 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
2305 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
2306 constraint. Disable the VSX<->GPR direct move helpers if we have
2307 the MFVSRLD and MTVSRDD instructions.
2308 (rs6000_secondary_reload_simple_move): Add support for doing
2309 vector direct moves directly without additional scratch registers
2310 if we have ISA 3.0 instructions.
2311 (rs6000_secondary_reload_direct_move): Update comments.
2312 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
2315 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
2316 direct move instructions.
2317 (vsx_movti_64bit): Likewise.
2318 (vsx_extract_<mode>): Likewise.
2320 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
2321 macros for ISA 3.0 direct move instructions.
2322 (TARGET_DIRECT_MOVE_128): Likewise.
2323 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
2326 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
2327 constraints. Update wa documentation to say not to use %x<n> on
2328 instructions that only take Altivec registers.
2330 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2332 * Makefile.in (OBJS): Add gcc-rich-location.o.
2333 * diagnostic.c (diagnostic_append_note): Pass line_table to
2335 (emit_diagnostic): Likewise.
2337 (inform_n): Likewise.
2338 (warning): Likewise.
2339 (warning_at): Likewise.
2340 (warning_n): Likewise.
2341 (pedwarn): Likewise.
2342 (permerror): Likewise.
2344 (error_n): Likewise.
2345 (error_at): Likewise.
2347 (fatal_error): Likewise.
2348 (internal_error): Likewise.
2349 (internal_error_no_backtrace): Likewise.
2350 (source_range::debug): Likewise.
2351 * gcc-rich-location.c: New file.
2352 * gcc-rich-location.h: New file.
2353 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
2354 (warning_at): Likewise.
2355 * gimple.h (gimple_set_block): Use set_block function.
2356 * input.c (dump_line_table_statistics): Dump stats on how many
2357 ranges were optimized vs how many needed ad-hoc table.
2358 (write_digit_row): Add "map" param; use its range_bits
2359 to calculate the per-character offset.
2360 (dump_location_info): Print the range and column bits for each
2361 ordinary map. Use the range bits to calculate the per-character
2362 offset. Pass the map as a new param to the various calls to
2363 write_digit_row. Eliminate uses of
2364 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
2365 * print-tree.c (print_node): Print any source range information.
2366 * rtl-error.c (diagnostic_for_asm): Likewise.
2367 * toplev.c (general_init): Initialize line_table's
2369 * tree-cfg.c (move_block_to_fn): Likewise.
2370 (move_block_to_fn): Likewise.
2371 * tree-inline.c (copy_phis_for_bb): Likewise.
2372 * tree.c (tree_set_block): Likewise.
2373 (get_pure_location): New function.
2374 (set_source_range): New functions.
2375 (set_block): New function.
2376 (set_source_range): New functions.
2377 * tree.h (CAN_HAVE_RANGE_P): New.
2378 (EXPR_LOCATION_RANGE): New.
2379 (EXPR_HAS_RANGE): New.
2380 (get_expr_source_range): New inline function.
2381 (DECL_LOCATION_RANGE): New.
2382 (set_source_range): New decls.
2383 (get_decl_source_range): New inline function.
2385 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
2387 PR tree-optimization/67682
2388 * tree-vect-slp.c (vect_split_slp_store_group): New.
2389 (vect_analyze_slp_instance): During basic block SLP, recurse on
2390 subgroups if vect_build_slp_tree fails after 1st vector.
2392 2015-11-13 Christian Bruel <christian.bruel@st.com>
2395 * config/arm/arm.c (arm_option_override): Move NEON check...
2396 (arm_option_check_internal): here
2397 (arm_file_start): Move .fpu print...
2398 (arm_declare_function_name): here
2399 (arm_option_print): Dump current fpu name.
2400 * config/arm/arm.opt (arm_fpu_index): Mark Save.
2402 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
2403 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2405 * combine.c (subst): Don't substitute or simplify when
2406 handling register-wise widening multiply.
2407 (force_to_mode): Likewise.
2409 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
2411 PR tree-optimization/68264
2412 * tree-call-cdce.c (gen_one_condition): Update commentary.
2413 (gen_conditions_for_pow_int_base): Invert the sense of the tests
2414 passed to gen_one_condition.
2415 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
2416 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
2417 using EDGE_FALSE_VALUE for edges to the call block and
2418 EDGE_TRUE_VALUE for the others.
2420 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2422 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
2425 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2427 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
2429 2015-11-13 Tom de Vries <tom@codesourcery.com>
2431 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
2434 2015-11-13 Tom de Vries <tom@codesourcery.com>
2436 * gen-pass-instances.awk (handle_line): Add args_str variable.
2438 2015-11-13 Martin Liska <mliska@suse.cz>
2440 * graphite-poly.c (free_scop): Release scop->drs vector.
2441 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
2443 (try_generate_gimple_bb): Use vNULL as a default initialization
2446 2015-11-13 Martin Liska <mliska@suse.cz>
2449 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
2450 Replace array initialization (using a variable post-increment)
2451 that possible triggers multiple unsequenced modifications
2452 with a pair of pushes to a vector.
2454 2015-11-13 Richard Biener <rguenther@suse.de>
2456 PR tree-optimization/68306
2457 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
2458 loop related checks ...
2459 (vect_verify_datarefs_alignment): ... here.
2460 (vect_slp_analyze_and_verify_node_alignment): Compute and
2461 verify alignment of the single DR that it matters.
2462 * tree-vect-stmts.c (vectorizable_store): Add an assert.
2463 (vectorizable_load): Add a comment.
2464 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
2465 for determining load cost.
2467 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2469 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
2470 mix of boolean and integer vectors in a single statement.
2471 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
2472 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
2473 determine constant type.
2474 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
2475 for loop invariants.
2477 2015-11-13 Alan Hayward <alan.hayward@arm.com>
2479 PR tree-optimization/66558
2480 * tree-vect-loop.c (is_integer_induction):Add.
2481 (vectorizable_reduction): Add integer induction checks.
2483 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
2485 Revert [ARM] Remove neon-testgen.ml and generated tests.
2487 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2489 [ARM] Remove neon-testgen.ml and generated tests.
2491 * config/arm/neon-testgen.ml: Remove.
2493 2015-11-13 Richard Biener <rguenther@suse.de>
2495 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
2496 Signal fatal failure if early checks fail.
2497 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
2498 do not bother testing further vector sizes.
2500 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
2502 * config/i386/predicates.md (misaligned_operand): Return true if
2503 operand is aligned to less than its natural alignmnet.
2505 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2507 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
2508 (vec_cmpu@var{m}@var{n}): New item.
2509 (vcond@var{m}@var{n}): Specify comparison is signed.
2510 (vcondu@var{m}@var{n}): New item.
2511 (vcond_mask_@var{m}@var{n}): New item.
2512 (maskload@var{m}@var{n}): New item.
2513 (maskstore@var{m}@var{n}): New item.
2515 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2517 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
2518 types of stored value and storage are compatible.
2520 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
2522 * gcc.c (POST_LINK_SPEC): Define if not already defined.
2523 (LINK_COMMAND_SPEC): Use post_link.
2524 (post_link_spec): New, initialize to POST_LINK_SPEC.
2525 (post_link): Initialize new static spec.
2526 * doc/tm.texi.in (POST_LINK_SPEC): Document.
2527 * doc/tm.texi: Regenerated.
2529 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2532 * Makefile.in (GCC_OBJS): Add spellcheck.o.
2533 (OBJS): Add spellcheck-tree.o.
2534 * gcc.c: Include "spellcheck.h".
2535 (suggest_option): New function.
2536 (driver::handle_unrecognized_options): Call suggest_option to
2537 provide a hint about misspelled options.
2538 * spellcheck.c: Update file comment.
2539 (levenshtein_distance): Convert 4-param implementation from static
2540 to extern scope. Remove note about unit tests from leading
2541 comment for const char * implementation. Move tree
2542 implementation to...
2543 * spellcheck-tree.c: New file.
2544 * spellcheck.h (levenshtein_distance): Add 4-param decl.
2546 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2548 * Makefile.in (OBJS): Add spellcheck.o.
2549 * spellcheck.c: New file.
2550 * spellcheck.h: New file.
2552 2015-11-13 James Bowman <james.bowman@ftdichip.com>
2554 * config/ft32/ft32.md (*sne): New insn pattern.
2556 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
2558 * cprop.c (is_too_expensive): Remove.
2560 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
2562 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
2563 * gcse.c (is_too_expensive): Rename to ...
2564 (gcse_or_cprop_is_too_expensive): ... this.
2565 Expand warning to add required size of max-gcse-memory.
2566 (one_pre_gcse_pass): Use it.
2567 (one_code_hoisting_pass): Use it.
2568 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
2570 2015-11-12 James Norris <jnorris@codesourcery.com>
2571 Joseph Myers <joseph@codesourcery.com>
2573 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
2574 GF_OMP_TARGET_KIND_OACC_DECLARE.
2575 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
2576 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2577 * gimplify.c (oacc_declare_returns): New.
2578 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
2579 (device_resident_p): New function.
2580 (oacc_default_clause): Handle device_resident clause.
2581 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
2582 (gimplify_expr): Handle OACC_DECLARE.
2583 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
2584 * omp-low.c (expand_omp_target): Handle
2585 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
2586 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
2587 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
2588 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
2589 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2590 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
2591 GOMP_MAP_DEVICE_RESIDENT.
2593 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2595 [ARM] Remove neon-testgen.ml and generated tests.
2597 * config/arm/neon-testgen.ml: Remove.
2599 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
2601 * config/aarch64/aarch64-cores.def (qdf24xx): New.
2602 * config/aarch64/aarch64-tune.md: Regenerated.
2603 * config/arm/arm-cores.def (qdf24xx): New.
2604 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
2605 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
2606 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
2607 (ARM Options/-mtune): Likewise.
2609 2015-11-12 Martin Liska <mliska@suse.cz>
2611 * config/i386/i386.c (ix86_valid_target_attribute_p):
2612 Finalize options at the of the function.
2613 * gcc.c (driver_get_configure_time_options): Call newly
2614 introduced init_opts_obstack.
2615 * lto-wrapper.c (main): Likewise.
2616 * opts.c (init_opts_obstack): New function.
2617 (init_options_struct): Call newly introduced init_opts_obstack.
2618 * opts.h (init_options_struct): Declare.
2620 2015-11-12 Martin Liska <mliska@suse.cz>
2623 * ipa-icf.c (void sem_item::set_hash): New function.
2624 (sem_function::get_hash): Use renamed m_hash member variable.
2625 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
2626 (sem_item::update_hash_by_local_refs): Likewise.
2627 (sem_variable::get_hash): Use renamed m_hash member variable.
2628 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
2629 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
2630 (sem_item_optimizer::build_graph): As the hash value of an item
2631 is lazy initialized, force the calculation.
2632 * ipa-icf.h (set_hash): Declare new function and rename hash member
2635 2015-11-12 Richard Biener <rguenther@suse.de>
2637 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
2638 Rename to vect_slp_analyze_instance_dependence.
2639 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2640 Remove WAR special-case.
2641 (vect_slp_analyze_node_dependences): Instead add more specific
2642 code here, not relying on other instances being vectorized.
2643 (vect_slp_analyze_instance_dependence): Adjust accordingly.
2644 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
2645 vertical space in dump files.
2646 (vect_print_slp_tree): Likewise.
2647 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
2648 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
2649 not vectorized stmts until after dependence analysis removed
2650 instances. Merge alignment and dependence checks.
2651 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
2654 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
2656 * config/aarch64/aarch64-protos.h (tune_params): Add new members
2657 "max_case_values" and "cache_line_size".
2658 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
2660 (aarch64_override_options_internal): Tune heuristics based on new
2661 members in "tune_params".
2662 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2664 2015-11-12 Richard Biener <rguenther@suse.de>
2666 PR tree-optimization/68306
2667 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
2668 relevant and vectorizable checks here.
2669 (vect_verify_datarefs_alignment): Add relevant check here.
2671 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
2673 * gimplify.c (oacc_default_clause): New.
2674 (omp_notice_variable): Call it.
2676 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2678 PR tree-optimization/68305
2679 * tree-vect-slp.c (vect_get_constant_vectors): Support
2680 COND_EXPR with SSA_NAME as a condition.
2682 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
2684 * config/visium/visium-protos.h (notice_update_cc): Delete.
2685 (print_operand): Likewise.
2686 (print_operand_address): Likewise.
2688 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2690 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
2691 FUNCTION_VALUE_REGNO_P): Remove.
2692 * config/alpha/alpha-protos.h (function_value): Remove.
2693 * config/alpha/alpha.c (function_value): Rename to...
2694 (alpha_function_value_1): ... this. Make static.
2695 (alpha_function_value, alpha_libcall_value,
2696 alpha_function_value_regno_p): New functions.
2697 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2698 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2700 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2702 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2703 * config/alpha/alpha.c (alpha_memory_latency): Make static.
2704 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
2705 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2707 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
2710 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
2711 assertion on the CFA register.
2713 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2715 * expr.c (do_store_flag): Expand vector comparison as
2716 VEC_COND_EXPR if vector comparison is not supported by target.
2718 2015-11-12 Renlin Li <renlin.li@arm.com>
2720 * config/arm/arm.md (addsi3_compare_op2): Make the order of
2721 assembly pattern consistent with constraint order.
2723 2015-11-12 Tom de Vries <tom@codesourcery.com>
2725 * gen-pass-instances.awk (handle_line): Simplify match regexp.
2727 2015-11-12 Tom de Vries <tom@codesourcery.com>
2729 * gen-pass-instances.awk (handle_line): Simplify init of
2732 2015-11-12 Tom de Vries <tom@codesourcery.com>
2734 * gen-pass-instances.awk (handle_line): Rename var where to
2737 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
2739 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
2740 do not expand to rtl.
2742 2015-11-12 Richard Biener <rguenther@suse.de>
2744 PR tree-optimization/58497
2745 * tree-vect-generic.c: Include gimplify.h.
2746 (tree_vec_extract): Lookup constant/constructor DEFs.
2747 (do_cond): Unshare cond.
2749 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2751 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
2752 combined insn if the alignment of vector mode memory operand
2753 is less than ssememalign.
2755 2015-11-12 Tom de Vries <tom@codesourcery.com>
2757 * gen-pass-instances.awk (handle_line): Print parentheses and
2758 pass_name explicitly.
2760 2015-11-12 Tom de Vries <tom@codesourcery.com>
2762 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
2765 2015-11-12 Tom de Vries <tom@codesourcery.com>
2767 * gen-pass-instances.awk (handle_line): Add comments.
2769 2015-11-12 Tom de Vries <tom@codesourcery.com>
2771 * gen-pass-instances.awk (handle_line): Rename len_of_end to
2774 2015-11-12 Tom de Vries <tom@codesourcery.com>
2776 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
2778 2015-11-12 Tom de Vries <tom@codesourcery.com>
2780 * gen-pass-instances.awk (handle_line): Restructure using early-out.
2782 2015-11-12 Tom de Vries <tom@codesourcery.com>
2784 * gen-pass-instances.awk (handle_line): Unify semicolon use.
2786 2015-11-12 Tom de Vries <tom@codesourcery.com>
2788 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
2790 2015-11-12 Tom de Vries <tom@codesourcery.com>
2792 * gen-pass-instances.awk: Add emacs indent setting.
2794 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2796 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
2798 Move Convert A/(B/C) to (A/B)*C to match.pd.
2799 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
2800 Move Optimize (X & (-A)) / A where A is a power of 2, to
2801 X >> log2(A) to match.pd.
2803 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
2804 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
2805 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
2807 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
2809 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
2811 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
2813 (neon_vst2_lane<mode>): Likewise.
2814 (neon_vld3_lane<mode>): Likewise.
2815 (neon_vst3_lane<mode>): Likewise.
2816 (neon_vld4_lane<mode>): Likewise.
2817 (neon_vst4_lane<mode>): Likewise.
2819 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
2820 Sebastian Pop <s.pop@samsung.com>
2822 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2823 New member codegen_error
2824 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
2826 (translate_isl_ast_node_user): Early return in case of error.
2827 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2828 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
2829 (add_parameters_to_ivs_params): Remove macro.
2830 (graphite_regenerate_ast_isl): Add if_region pointer to region.
2831 * graphite-poly.c (new_poly_dr): Remove macro.
2833 (new_gimple_poly_bb): Same.
2834 (free_gimple_poly_bb): Same.
2835 (print_scop_params): Same.
2836 * graphite-poly.h (struct poly_dr): Same.
2837 (struct poly_bb): Add new_bb.
2838 (gbb_from_bb): Remove dead code.
2839 (pbb_from_bb): Same.
2840 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
2841 (parameter_index_in_region): Same.
2842 (find_scop_parameters): Same.
2843 (build_cross_bb_scalars_def): New.
2844 (build_cross_bb_scalars_use): New.
2845 (graphite_find_cross_bb_scalar_vars): New
2846 (try_generate_gimple_bb): Reads and Writes.
2847 (build_alias_set): Move.
2848 (gather_bbs::before_dom_children): Gather bbs visited.
2849 (build_scops): call build_alias_set.
2850 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
2851 (remove_simple_copy_phi): Delete.
2852 (remove_invariant_phi): Delete.
2853 (simple_copy_phi_p): Delete.
2854 (reduction_phi_p): Delete.
2855 (isl_id_for_dr): Remove unused param.
2856 (parameter_index_in_region_1): Remove macro usage.
2857 (set_scop_parameter_dim): Same.
2858 (add_param_constraints): Same.
2859 (add_conditions_to_constraints): Same
2860 (build_scop_iteration_domain): Same.
2861 (pdr_add_alias_set): Comment.
2862 (add_scalar_version_numbers): New.
2863 (build_poly_dr): ISL id.
2864 (build_scop_drs): Move.
2865 (build_poly_sr_1): Same.
2866 (insert_stmts): Remove.
2867 (build_poly_sr): New.
2868 (new_pbb_from_pbb): Delete.
2869 (insert_out_of_ssa_copy_on_edge): Delete.
2870 (create_zero_dim_array): Delete.
2871 (scalar_close_phi_node_p): Delete.
2872 (propagate_expr_outside_region): Delete.
2873 (rewrite_close_phi_out_of_ssa): Delete.
2874 (rewrite_phi_out_of_ssa): Delete.
2875 (rewrite_degenerate_phi): Delete.
2876 (rewrite_reductions_out_of_ssa): Delete.
2877 (rewrite_cross_bb_scalar_dependence): Delete.
2878 (handle_scalar_deps_crossing_scop_limits):
2879 (rewrite_cross_bb_scalar_deps): Delete.
2880 (build_poly_scop): Remove calls to out-of-ssa functions.
2881 * graphite.c (graphite_transform_loops): Early return in case of
2883 * sese.c (debug_rename_map_1): Delete.
2884 (debug_rename_map): Delete.
2885 (sese_record_loop): Remove macro.
2886 (build_sese_loop_nests): Same.
2887 (new_sese_info): Same.
2888 (free_sese_info): Same.
2889 (sese_insert_phis_for_liveouts):
2890 (is_loop_closed_ssa_use): New.
2891 (number_of_phi_nodes): New.
2892 (bb_contains_loop_close_phi_nodes): New.
2893 (bb_contains_loop_phi_nodes): New.
2894 (phi_uses_name): New.
2896 (get_rename): Add old_bb and loop_phi for more precise matching of
2898 (set_rename): Pass region.
2899 (later_of_the_two): New.
2900 (gsi_insert_earliest): New.
2901 (collect_all_ssa_names): New.
2902 (substitute_ssa_name): New.
2903 (rename_all_uses): New.
2904 (get_rename_from_scev): New.
2905 (rename_uses): Pass old_bb for more precise matching of exprs.
2906 (get_def_bb_for_const): New.
2907 (get_new_name): New.
2910 (copy_loop_phi_args): New.
2911 (copy_loop_phi_nodes): New.
2912 (get_loop_init_value): New.
2913 (find_init_value): New.
2914 (find_init_value_close_phi): New.
2915 (copy_loop_close_phi_args): New.
2916 (copy_loop_close_phi_nodes): New.
2917 (add_phi_arg_for_new_expr): New.
2918 (copy_cond_phi_args): New.
2919 (copy_cond_phi_nodes): New.
2920 (copy_phi_nodes): New.
2921 (should_copy_to_new_region): New.
2922 (set_rename_for_each_def): New.
2923 (graphite_copy_stmts_from_block): Early return in case of error.
2924 (copy_bb_and_scalar_dependences): Same.
2925 * sese.h (vec_find): New.
2926 (SESE_PARAMS): Delete.
2927 (SESE_LOOPS): Delete.
2928 (SESE_LOOP_NEST): Delete.
2929 (sese_contains_loop): Remove macro usage.
2930 (sese_nb_params): Same.
2931 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
2933 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
2935 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
2936 isl_union_map_add_map on every pbb->schedule.
2938 2015-11-11 Tom de Vries <tom@codesourcery.com>
2940 * tree-parloops.c (create_parallel_loop): Return void.
2942 2015-11-11 Tom de Vries <tom@codesourcery.com>
2944 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
2945 block only when needed.
2947 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
2949 * config/alpha/alpha-protos.h (print_operand): Remove.
2950 (print_operand_address): Remove.
2951 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
2952 (PRINT_OPERAND_ADDRESS): Remove.
2953 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
2954 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
2955 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
2956 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
2957 (print_operand_address): Rename to...
2958 (alpha_print_operand_address): ...this and make static.
2959 (print_operand): Rename to...
2960 (alpha_print_operand): ...this and make static.
2961 (alpha_print_operand_punct_valid_p): New static function.
2963 2015-11-11 Richard Biener <rguenther@suse.de>
2965 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
2967 (vect_analyze_data_refs_alignment): Make loop vect specific.
2968 (vect_verify_datarefs_alignment): Likewise.
2969 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
2970 Add missing continue.
2971 (vect_compute_data_ref_alignment): Export.
2972 (vect_compute_data_refs_alignment): Merge into...
2973 (vect_analyze_data_refs_alignment): ... this.
2974 (verify_data_ref_alignment): Split out from ...
2975 (vect_verify_datarefs_alignment): ... here.
2976 (vect_slp_analyze_and_verify_node_alignment): New function.
2977 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
2978 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
2979 misplaced checks on alignment.
2980 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
2981 alignment analysis after SLP discovery and do it per instance.
2982 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
2983 bother to re-try using different vector sizes.
2985 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
2986 Cesar Philippidis <cesar@codesourcery.com>
2988 * gimplify.c (enum omp_region_type): Add ORT_ACC,
2989 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
2990 (gimple_add_tmp_var): Add ORT_ACC checks.
2991 (gimplify_var_or_parm_decl): Likewise.
2992 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
2993 (omp_add_variable): Look in outer contexts for openacc and allow
2994 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
2995 (omp_notice_variable, omp_is_private, omp_check_private): Add
2997 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
2998 Permit private openacc reductions.
2999 (gimplify_oacc_cache): Specify ORT_ACC.
3000 (gimplify_omp_workshare): Adjust OpenACC region types.
3001 (gimplify_omp_target_update): Likewise.
3002 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
3003 (lower-rec_input_clauses): Don't handle openacc firstprivate
3005 (lower_omp_target): Emit initializers for openacc firstprivate vars.
3007 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
3010 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
3011 frame pointer for stack checking if non-call exceptions aren't used.
3012 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
3014 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
3016 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
3019 2015-11-11 Martin Liska <mliska@suse.cz>
3020 Richard Biener <rguenther@suse.de>
3022 PR rtl-optimization/68287
3023 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
3026 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
3028 * config/mips/mips.c (mips_breakable_sequence_p): New function.
3029 (mips_break_sequence): New function.
3030 (mips_reorg_process_insns): Use them. Use compact branches in selected
3033 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
3035 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
3037 2015-11-11 Jiong Wang <jiong.wang@arm.com>
3038 Jim Wilson <wilson@gcc.gnu.org>
3041 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
3042 be true and eliminable registers mentioned.
3044 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
3046 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
3048 * config/arc/arc-opts.h: Add ARCv2 CPUs.
3049 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
3050 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
3051 situation, and store instructions with large offsets.
3052 (arc_secondary_reload_conv): New function.
3053 (arc_init): Add ARCv2 options.
3054 (arc_conditional_register_usage): Select the proper register usage
3055 for ARCv2 processors.
3056 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
3058 (arc_compute_function_type): Likewise.
3059 (arc_print_operand): Handle new ARCv2 punctuation characters.
3060 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
3061 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
3063 (arc_reorg, arc_hazard): Use it.
3064 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
3065 (ASM_SPEC): Add ARCv2 options.
3066 (TARGET_NORM): ARC HS has norm instructions by default.
3067 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
3068 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
3069 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
3070 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
3072 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
3073 (TARGET_LP_WR_INTERLOCK): Likewise.
3075 (commutative_binary_mult_comparison_result_used, movsicc_insn)
3076 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
3077 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
3078 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
3080 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
3081 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
3082 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
3083 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
3084 (extzvsi): New pattern.
3085 * config/arc/arc.opt: New ARCv2 options.
3086 * config/arc/arcEM.md: New file.
3087 * config/arc/arcHS.md: Likewise.
3088 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
3090 (Cm2): A signed 9-bit integer constant constraint.
3091 (C62): An unsigned 6-bit integer constant constraint.
3092 (C16): A signed 16-bit integer constant constraint.
3093 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
3094 (short_const_int_operand): New predicate.
3095 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
3096 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
3097 -mcode-density and -mdiv-rem.
3099 2015-11-11 Julia Koval <julia.koval@intel.com>
3101 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
3103 2015-11-11 Julia Koval <julia.koval@intel.com>
3105 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
3107 2015-11-11 Martin Liska <mliska@suse.cz>
3109 * gimple-ssa-strength-reduction.c (create_phi_basis):
3111 * passes.c (release_dump_file_name): New function.
3112 (pass_init_dump_file): Used from this function.
3113 (pass_fini_dump_file): Likewise.
3114 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
3115 * var-tracking.c (vt_initialize): Use pool_allocator.
3117 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
3118 Jiong Wang <jiong.wang@arm.com>
3120 PR tree-optimization/68234
3121 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
3122 node which estimiated to be VR_VARYING initially.
3124 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
3126 * regname.c (scan_rtx_reg): Check the matching number of consecutive
3127 registers when tying chains.
3128 (build_def_use): Move terminated_this_insn earlier in the function.
3130 2015-11-10 Mike Frysinger <vapier@gentoo.org>
3132 * configure.ac: Use = with test and not ==.
3133 * configure: Regenerated.
3135 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
3137 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
3138 machine asserts. Update defines for 64 bit.
3140 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3143 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
3145 (neon_vst1_lane<mode>): Likewise.
3146 (neon_vld2_lane<mode>): Likewise.
3147 (neon_vst2_lane<mode>): Likewise.
3148 (neon_vld3_lane<mode>): Likewise.
3149 (neon_vst3_lane<mode>): Likewise.
3150 (neon_vld4_lane<mode>): Likewise.
3151 (neon_vst4_lane<mode>): Likewise.
3153 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3156 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
3157 qualifier_struct_load_store_lane_index.
3158 (arm_storestruct_lane_qualifiers) Likewise.
3159 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
3161 (neon_vst1_lane<mode>) Likewise.
3162 (neon_vld2_lane<mode>) Likewise.
3163 (neon_vst2_lane<mode>) Likewise.
3164 (neon_vld3_lane<mode>) Likewise.
3165 (neon_vst3_lane<mode>) Likewise.
3166 (neon_vld4_lane<mode>) Likewise.
3167 (neon_vst4_lane<mode>) Likewise.
3169 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3172 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
3173 qualifier_struct_load_store_lane_index.
3174 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3175 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
3176 argument qualifiers.
3177 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
3178 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
3180 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
3182 * config/nvptx/nvptx.opt (moptimize): New flag.
3183 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
3185 (nvptx_optimize_inner): New.
3186 (nvptx_process_pars): Call it when optimizing.
3187 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
3189 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3191 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
3192 Remove redundant code.
3194 2015-11-10 Jeff Law <law@redhat.com>
3196 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
3197 call to output_address.
3198 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
3199 Add unnamed machine_mode argument.
3201 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3203 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
3206 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3208 * config/i386/i386.md (*movabs<mode>_1): Add explicit
3209 size directives for -masm=intel.
3210 (*movabs<mode>_2): Ditto.
3212 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3214 * config/i386/i386.c (ix86_print_operand): Remove dead code that
3215 tried to avoid (%rip) for call operands.
3217 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3219 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
3220 argument. Do not use RIP relative addressing when no_rip is set.
3221 (ix86_print_operand): Update call to ix86_print_operand_address_as.
3222 (ix86_print_operand_address): Ditto.
3223 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
3224 absolute movabs operand 0. Add square braces for -masm=intel.
3225 (*movabs<mode>_2): Ditto for operand 1.
3227 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3229 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
3230 combine_vcvtf2i pattern.
3232 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3234 * config/arm/arm.c (neon_valid_immediate): Remove integer
3235 CONST_DOUBLE handling. It should never occur.
3237 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
3239 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
3240 (ATOMIC_LDOP): Likewise.
3241 (atomic_ldop): Likewise.
3242 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
3243 (ATOMIC_LDOP): Likewise.
3244 (atomic_ldop): Likewise.
3246 2015-11-10 Martin Liska <mliska@suse.cz>
3248 * alloc-pool.h (allocate_raw): New function.
3249 (operator new (size_t, object_allocator<T> &a)): Use the
3250 function instead of object_allocator::allocate).
3252 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3254 * config/i386/sse.md (HALFMASKMODE): New attribute.
3255 (DOUBLEMASKMODE): New attribute.
3256 (vec_pack_trunc_qi): New.
3257 (vec_pack_trunc_<mode>): New.
3258 (vec_unpacks_lo_hi): New.
3259 (vec_unpacks_lo_si): New.
3260 (vec_unpacks_lo_di): New.
3261 (vec_unpacks_hi_hi): New.
3262 (vec_unpacks_hi_<mode>): New.
3264 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3266 * optabs.c (expand_binop_directly): Allow scalar mode for
3267 vec_pack_trunc_optab.
3268 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3269 boolean vector producers from pattern sequence when computing VF.
3270 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
3271 vect_recog_mask_conversion_pattern.
3272 (search_type_for_mask): Choose the smallest
3273 type if different size types are mixed.
3274 (build_mask_conversion): New.
3275 (vect_recog_mask_conversion_pattern): New.
3276 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
3277 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
3279 (vectorizable_conversion): Support boolean vectors.
3280 (free_stmt_vec_info): Allow patterns for statements with no lhs.
3281 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
3283 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3285 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
3286 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
3287 Cast mask to FP mode if required.
3288 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
3289 (vcond_mask_<mode><avx512fmaskmodelower>): New.
3290 (vcond_mask_<mode><sseintvecmodelower>): New.
3291 (vcond_mask_<mode><sseintvecmodelower>): New.
3292 (vcond_mask_v2div2di): New.
3293 (vcond_mask_<mode><sseintvecmodelower>): New.
3294 (vcond_mask_<mode><sseintvecmodelower>): New.
3296 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3298 * optabs-query.h (get_vcond_mask_icode): New.
3299 * optabs-tree.c (expand_vec_cond_expr_p): Use
3300 get_vcond_mask_icode for VEC_COND_EXPR with mask.
3301 * optabs.c (expand_vec_cond_mask_expr): New.
3302 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
3303 * optabs.def (vcond_mask_optab): New.
3304 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
3305 generate redundant comparison for COND_EXPR.
3306 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
3308 (vectorizable_condition): Likewise.
3309 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
3310 cond_exp with no embedded comparison.
3311 (vect_build_slp_tree_1): Likewise.
3313 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3315 * config/i386/sse.md (maskload<mode>): Rename to ...
3316 (maskload<mode><sseintvecmodelower>): ... this.
3317 (maskstore<mode>): Rename to ...
3318 (maskstore<mode><sseintvecmodelower>): ... this.
3319 (maskload<mode><avx512fmaskmodelower>): New.
3320 (maskstore<mode><avx512fmaskmodelower>): New.
3322 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3324 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
3325 (expand_MASK_STORE): Adjust to maskstore optab changes.
3326 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
3327 Adjust to maskload, maskstore optab changes.
3328 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
3329 * optabs.def (maskload_optab): Transform into convert optab.
3330 (maskstore_optab): Likewise.
3331 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
3332 can_vec_mask_load_store_p signature change.
3333 (predicate_mem_writes): Use boolean mask.
3334 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
3335 can_vec_mask_load_store_p signature change. Allow invariant masks.
3336 (vectorizable_operation): Ignore type precision for boolean vectors.
3338 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3340 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
3341 (const_vector_mask_from_tree): New.
3342 (const_vector_from_tree): Use const_vector_mask_from_tree
3343 for boolean vectors.
3344 * optabs-query.h (get_vec_cmp_icode): New.
3345 * optabs-tree.c (expand_vec_cmp_expr_p): New.
3346 * optabs-tree.h (expand_vec_cmp_expr_p): New.
3347 * optabs.c (vector_compare_rtx): Add OPNO arg.
3348 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
3349 (expand_vec_cmp_expr): New.
3350 * optabs.def (vec_cmp_optab): New.
3351 (vec_cmpu_optab): New.
3352 * optabs.h (expand_vec_cmp_expr): New.
3353 * tree-vect-generic.c (expand_vector_comparison): Add vector
3354 comparison optabs check.
3355 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
3356 operations for VF. Add mask type computation.
3357 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
3358 (vectorizable_comparison): New.
3359 (vect_analyze_stmt): Add vectorizable_comparison.
3360 (vect_transform_stmt): Likewise.
3361 (vect_init_vector): Support boolean vector invariants.
3362 (vect_get_vec_def_for_operand): Add VECTYPE arg.
3363 (vectorizable_condition): Directly provide vectype for invariants
3365 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
3366 (enum vect_var_kind): Add vect_mask_var.
3367 (enum stmt_vec_info_type): Add comparison_vec_info_type.
3368 (vectorizable_comparison): New.
3369 (vect_get_vec_def_for_operand): Add VECTYPE arg.
3370 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
3371 (vect_create_destination_var): Likewise.
3372 * tree-vect-patterns.c (check_bool_pattern): Check fails
3373 if we can vectorize comparison directly.
3374 (search_type_for_mask): New.
3375 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
3376 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
3377 comparison statements.
3378 (vect_get_constant_vectors): Support boolean vector constants.
3379 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
3380 (ix86_expand_int_vec_cmp): New.
3381 (ix86_expand_fp_vec_cmp): New.
3382 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
3383 op_true and op_false.
3384 (ix86_int_cmp_code_to_pcmp_immediate): New.
3385 (ix86_fp_cmp_code_to_pcmp_immediate): New.
3386 (ix86_cmp_code_to_pcmp_immediate): New.
3387 (ix86_expand_mask_vec_cmp): New.
3388 (ix86_expand_fp_vec_cmp): New.
3389 (ix86_expand_int_sse_cmp): New.
3390 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
3391 (ix86_expand_int_vec_cmp): New.
3392 (ix86_get_mask_mode): New.
3393 (TARGET_VECTORIZE_GET_MASK_MODE): New.
3394 * config/i386/sse.md (avx512fmaskmodelower): New.
3395 (vec_cmp<mode><avx512fmaskmodelower>): New.
3396 (vec_cmp<mode><sseintvecmodelower>): New.
3397 (vec_cmpv2div2di): New.
3398 (vec_cmpu<mode><avx512fmaskmodelower>): New.
3399 (vec_cmpu<mode><sseintvecmodelower>): New.
3400 (vec_cmpuv2div2di): New.
3402 2015-11-10 Richard Biener <rguenther@suse.de>
3404 PR tree-optimization/68240
3405 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
3407 (visit_phi): For PHIs with just a single executable edge
3408 take its value directly.
3409 (expressions_equal_p): Handle VN_TOP properly.
3411 2015-11-10 Richard Biener <rguenther@suse.de>
3413 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
3414 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
3417 2015-11-10 Richard Biener <rguenther@suse.de>
3419 PR tree-optimization/56118
3420 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
3421 cost favor vectorized version.
3423 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3425 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
3426 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
3427 (neg_not_op): New code attribute.
3429 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3431 * ifcvt.c (noce_try_inverse_constants): New function.
3432 (noce_process_if_block): Call it.
3433 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
3434 * optabs.def (negcc_optab, notcc_optab): Declare.
3435 * optabs.c (emit_conditional_neg_or_complement): New function.
3436 * doc/tm.texi (Standard Names): Document negcc, notcc names.
3438 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3440 PR rtl-optimization/68236
3441 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
3442 if insn_queue doesn't exist.
3443 (haifa_sched_finish): Reset insn_queue to NULL.
3445 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
3447 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
3448 (build_def_use): Initialize terminated_this_insn.
3449 (find_best_rename_reg): Pick and check register from the tied chain.
3450 (regrename_do_replace): Mark head as renamed.
3451 (struct du_head *terminated_this_insn). New static variable.
3452 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
3453 * regrename.h (struct du_head): Add tied_chain, renamed members.
3455 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3458 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
3461 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3464 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
3465 not promote the mode for aggregate types.
3467 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3469 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
3470 * omp-low.c (build_oacc_routine_dims): New.
3472 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3474 * config/rs6000/constraints.md (wF constraint): New constraints
3475 for power9/toc fusion.
3476 (wG constraint): Likewise.
3478 * config/rs6000/predicates.md (u6bit_cint_operand): New
3479 predicate, recognize 0..63.
3480 (upper16_cint_operand): New predicate for power9 and toc fusion.
3481 (fpr_reg_operand): Likewise.
3482 (toc_fusion_or_p9_reg_operand): Likewise.
3483 (toc_fusion_mem_raw): Likewise.
3484 (toc_fusion_mem_wrapped): Likewise.
3485 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
3487 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
3489 (fusion_addis_mem_combo_load): Add support for power9 fusion of
3490 floating point loads, floating point stores, and gpr stores.
3491 (fusion_addis_mem_combo_store): Likewise.
3492 (fusion_offsettable_mem_operand): Likewise.
3494 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
3495 (emit_fusion_load_store): Likewise.
3496 (fusion_p9_p): Likewise.
3497 (expand_fusion_p9_load): Likewise.
3498 (expand_fusion_p9_store): Likewise.
3499 (emit_fusion_p9_load): Likewise.
3500 (emit_fusion_p9_store): Likewise.
3501 (fusion_wrap_memory_address): Likewise.
3503 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
3504 elements for power9 fusion.
3505 (rs6000_debug_print_mode): Rework debug information to print more
3506 information about fusion.
3507 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
3508 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
3509 offsettable memory address.
3510 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
3511 (emit_fusion_gpr_load): Move most of the code from
3512 emit_fusion_gpr_load into emit_fusion-addis that handles both
3513 power8 and power9 fusion.
3514 (emit_fusion_addis): Likewise.
3515 (emit_fusion_load_store): Likewise.
3516 (fusion_wrap_memory_address): Add support for TOC fusion.
3517 (fusion_split_address): Likewise.
3518 (fusion_p9_p): Add support for power9 fusion.
3519 (expand_fusion_p9_load): Likewise.
3520 (expand_fusion_p9_store): Likewise.
3521 (emit_fusion_p9_load): Likewise.
3522 (emit_fusion_p9_store): Likewise.
3524 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
3525 new instructions in ISA 3.0.
3526 (TARGET_CTZ): Likewise.
3527 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
3528 (TARGET_TOC_FUSION_FP): Likewise.
3530 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
3532 (UNSPEC_FUSION_ADDIS): Likewise.
3533 (QHSI mode iterator): New iterator for power9 fusion.
3534 (GPR_FUSION): Likewise.
3535 (FPR_FUSION): Likewise.
3536 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
3537 (umod<mode>3): Likewise.
3538 (divmod peephole): Likewise.
3539 (udivmod peephole): Likewise.
3540 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
3542 (ctz<mode>2_h): Likewise.
3543 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
3544 (ashdi3_extswsli_dot): Likewise.
3545 (ashdi3_extswsli_dot2): Likewise.
3546 (power9 fusion splitter): New power9/toc fusion support.
3547 (toc_fusionload_<mode>): Likewise.
3548 (toc_fusionload_di): Likewise.
3549 (fusion_gpr_load_<mode>): Update predicate function.
3550 (power9 fusion peephole2s): New power9/toc fusion support.
3551 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
3552 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
3553 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3554 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3555 (fusion_p9_<mode>_constant): Likewise.
3557 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
3559 * optabs.c (prepare_libcall_arg): New function.
3560 (expand_fixed_convert): Add call to prepare_libcall_arg.
3562 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
3564 * sched-int.h (dump_rgn_dependencies_dot): Declare
3565 * sched-rgn.c (dump_rgn_dependencies_dot): New function
3566 * print-rtl.h (print_insn): Add prototype
3568 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
3569 * common.opt (-fsched-verbose): Set default value to 1.
3570 * invoke.texi (-fsched-verbose): Update the option's description.
3572 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3574 * config/visium/visium.h (PRINT_OPERAND): Delete.
3575 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3576 (PRINT_OPERAND_ADDRESS): Likewise.
3577 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
3579 (visium_print_operand_punct_valid_p): ...this. New function.
3580 (TARGET_PRINT_OPERAND): Define to...
3581 (print_operand): Rename to...
3582 (visium_print_operand): ...this.
3583 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
3584 (visium_output_address): Rename to...
3585 (visium_print_operand_address): ...this.
3586 (print_operand_address): Delete.
3588 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3591 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
3592 Check that the type of the first operand is an aggregate type.
3594 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3596 * omp-low.c: Fix some OpenACC comment typos.
3597 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
3598 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
3599 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
3601 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
3603 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
3605 2015-11-09 Jeff Law <law@redhat.com>
3607 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
3608 being in gimple/ssa form. Remove redundant check for SSA_NAME.
3611 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3612 Peter Bergner <bergner@vnet.ibm.com>
3614 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
3616 (-mpower9-vector): Likewise.
3617 (-mpower9-dform): Likewise.
3618 (-mpower9-minmax): Likewise.
3619 (-mtoc-fusion): Likewise.
3620 (-mmodulo): Likewise.
3621 (-mfloat128-hardware): Likewise.
3623 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
3624 mask for ISA 3.0 (power9).
3625 (POWERPC_MASKS): Add new ISA 3.0 switches.
3626 (power9 cpu): Add power9 cpu.
3628 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
3629 (ASM_CPU_SPEC): Likewise.
3630 (EXTRA_SPECS): Likewise.
3632 * config/rs6000/rs6000-opts.h (enum processor_type): Add
3635 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
3636 (rs6000_debug_reg_global): Add support for power9 fusion.
3637 (rs6000_setup_reg_addr_masks): Cache mode size.
3638 (rs6000_option_override_internal): Until real power9 tuning is
3639 added, use -mtune=power8 for -mcpu=power9.
3640 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
3641 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
3642 of Altivec registers.
3643 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
3644 (rs6000_loop_align): Add support for power9 cpu.
3645 (rs6000_file_start): Likewise.
3646 (rs6000_adjust_cost): Likewise.
3647 (rs6000_issue_rate): Likewise.
3648 (insn_must_be_first_in_group): Likewise.
3649 (insn_must_be_last_in_group): Likewise.
3650 (force_new_group): Likewise.
3651 (rs6000_register_move_cost): Likewise.
3652 (rs6000_opt_masks): Likewise.
3654 * config/rs6000/rs6000.md (cpu attribute): Add power9.
3655 * config/rs6000/rs6000-tables.opt: Regenerate.
3657 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3658 _ARCH_PWR9 if power9 support is available.
3660 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
3661 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
3663 * configure.ac: Determine if the assembler supports the ISA 3.0
3665 * config.in (HAVE_AS_POWER9): Likewise.
3666 * configure: Regenerate.
3668 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
3671 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3673 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
3674 Remove integer CONST_DOUBLE handling. It should never occur.
3676 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3679 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
3680 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
3681 Delete VOIDmode case. Assert that mode is not VOIDmode.
3682 * config/aarch64/predicates.md (const0_operand): Remove const_double
3685 2015-11-09 Martin Liska <mliska@suse.cz>
3687 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
3688 body_info release function.
3689 * ipa-prop.c (ipa_release_body_info): New function.
3690 (ipa_analyze_node): Call the function.
3691 (ipa_node_params::~ipa_node_params): Release known_csts.
3692 * ipa-prop.h (ipa_release_body_info): Declare.
3694 2015-11-09 Martin Liska <mliska@suse.cz>
3696 * gcc.c (record_temp_file): Release name string.
3697 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
3698 * lra-lives.c (free_live_range_list): Utilize
3699 lra_live_range_pool for allocation and deallocation.
3700 (create_live_range): Likewise.
3701 (copy_live_range): Likewise.
3702 (lra_merge_live_ranges): Likewise.
3703 (remove_some_program_points_and_update_live_ranges): Likewise.
3704 (lra_create_live_ranges_1): Release point_freq_vec that can
3705 be not freed from previous iteration of the function.
3706 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
3707 * tree-sra.c (sra_deinitialize): Release all vectors in
3709 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
3710 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
3711 Release edge_info for a removed edge.
3712 (thread_through_all_blocks): Free region vector.
3713 * tree-ssa.h (free_dom_edge_info): Declare function extern.
3715 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
3717 * optabs.c (expand_vec_cond_expr): Always get sign from type.
3718 * tree.c (wide_int_to_tree): Support negative values for boolean.
3719 (build_nonstandard_boolean_type): Use signed type for booleans.
3721 2015-11-09 Richard Biener <rguenther@suse.de>
3723 PR tree-optimization/68248
3724 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
3726 2015-11-09 Richard Biener <rguenther@suse.de>
3728 PR tree-optimization/56118
3729 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
3730 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
3731 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
3733 (vect_slp_analyze_data_ref_dependences): Instead of computing
3734 all dependences of the region DRs just analyze the code motions
3735 SLP vectorization will perform. Remove SLP instances that
3736 cannot have their store/load motions applied.
3737 (vect_analyze_data_refs): Allow DRs without a vectype
3738 in BB vectorization.
3740 2015-11-09 Julian Brown <julian@codesourcery.com>
3742 * final.c (output_asm_insn): Pass VOIDmode to output_address.
3743 (output_address): Add MODE argument. Pass to print_operand_address
3745 * targhooks.c (default_print_operand_address): Add MODE argument.
3746 * targhooks.h (default_print_operand_address): Update prototype.
3747 * output.h (output_address): Update prototype.
3748 * target.def (print_operand_address): Add MODE argument.
3749 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
3751 (print_operand): Pass access mode to output_address.
3752 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
3754 (mcore_print_operand): Update calls to mcore_print_operand_address.
3755 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
3757 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
3759 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
3761 (tilegx_print_operand): Don't set above global. Update calls to
3763 (tilegx_print_operand_address): Add MODE argument. Use instead of
3764 output_memory_reference_mode global.
3765 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
3766 (frv_print_operand): Pass mode to frv_print_operand_address calls.
3767 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
3769 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
3770 (cris_print_operand): Pass mode to output_address calls.
3771 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
3772 * config/aarch64/aarch64.h (aarch64_print_operand)
3773 (aarch64_print_operand_address): Remove prototypes.
3774 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
3776 (aarch64_print_operand): Make static. Update calls to output_address.
3777 (aarch64_print_operand_address): Add MODE argument. Use instead of
3778 aarch64_memory_reference_mode global.
3779 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
3781 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3782 Delete macro definitions.
3783 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
3784 * config/xtensa/xtensa.c (print_operand): Pass mode in
3785 output_address calls.
3786 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
3788 (h83000_print_operand): Update calls to h8300_print_operand_address
3790 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
3791 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
3793 (tilepro_print_operand): Pass mode to output_address.
3794 (tilepro_print_operand_address): Add MODE argument. Use instead of
3795 output_memory_reference_mode.
3796 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
3797 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
3798 to output_address calls.
3799 (nvptx_print_operand_address): Add MODE argument.
3800 * config/alpha/alpha.c (print_operand): Pass mode argument in
3801 output_address calls.
3802 * config/m68k/m68k.c (print_operand): Pass mode argument in
3803 output_address call.
3804 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
3805 (avr_print_operand): Update calls to avr_print_operand_address.
3806 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
3807 argument. Update calls to output_address.
3808 (sparc_print_operand): Pass mode to output_address.
3809 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
3811 (iq2000_print_operand): Pass mode in output_address calls.
3812 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
3814 (xstormy16_print_operand): Pass mode to
3815 xstormy16_print_operand_address calls.
3816 * config/mips/mips.c (mips_print_operand): Update calls to
3818 (mips_print_operand_address): Add MODE argument.
3819 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
3821 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
3822 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
3824 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
3825 (rx_print_operand): Update calls to output_address,
3826 rx_print_operand_address.
3827 * config/nds32/nds32.c (nds32_print_operand): Update calls to
3829 (nds32_print_operand_address): Add MODE argument.
3830 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
3831 output_address calls.
3832 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
3833 output_address call.
3834 (c6x_print_address_operand): Update calls to output_address.
3835 (c6x_print_operand_address): Pass mode to above.
3836 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
3837 (v850_print_operand): Pass mode to v850_print_operand_address,
3839 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
3840 (mmix_print_operand): Pass mode in output_address calls.
3841 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
3842 (sh_print_operand): Pass mem mode to output_address,
3843 sh_print_operand_address.
3844 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
3845 (cr16_print_operand): Pass mode to output_address,
3846 cr16_print_operand_address.
3847 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
3849 * config/microblaze/microblaze.c (print_operand): Pass mode to
3851 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
3853 (nios2_print_operand_address): Add MODE argument. Update call to
3854 nios2_print_operand_address.
3855 * config/s390/s390.c (print_operand): Pass mode to output_address.
3856 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
3857 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
3859 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
3860 Use instead of output_memory_reference_mode.
3861 (output_memory_reference_mode): Delete global.
3862 (arm_print_operand): Pass mem mode to output_address.
3863 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
3864 (m32r_print_operand): Pass mode to output_address.
3865 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
3867 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
3868 * config/i386/i386.c (ix86_print_operand): Pass mode to
3869 output_address calls.
3870 (ix86_print_operand_address): Add MODE argument.
3872 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3875 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
3876 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
3877 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
3878 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3880 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3882 PR rtl-optimization/67749
3883 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
3884 case before emitting the two blocks. Instead modify the register
3885 in the corresponding final insn of the basic block.
3887 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3889 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
3892 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
3894 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
3895 HAVE_INITFINI_ARRAY_SUPPORT.
3896 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
3898 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
3899 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
3900 Don't check HAVE_AS_SPARC_NOBITS.
3901 Heed SECTION_NOTYPE.
3903 * configure: Regenerate.
3904 * config.in: Regenerate.
3906 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3909 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
3911 2015-11-09 Richard Henderson <rth@redhat.com>
3913 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
3914 __SEG_GS, __SEG_TLS.
3915 (ix86_register_pragmas): Register address spaces __seg_fs,
3916 __seg_gs, __seg_tls.
3917 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
3918 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
3919 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
3920 * config/i386/i386.c (ix86_decompose_address): Likewise.
3921 (ix86_legitimate_address_p): Likewise.
3922 (memory_address_length): Likewise. Check mem address space too.
3923 (ix86_print_operand): Use ix86_print_operand_address_as.
3924 (ix86_print_operand_address_as): Rename from
3925 ix86_print_operand_address, add new addr_space_t parameter.
3926 Validate that either the parameter or the ix86_address segment
3927 is default address space. Handle ADDR_SPACE_SEG_TLS.
3928 (ix86_print_operand_address): New.
3929 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
3930 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
3931 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
3932 (ix86_addr_space_zero_address_valid): New.
3933 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3934 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
3935 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
3936 * config/i386/predicates.md (address_no_seg_operand): Likewise.
3937 (vsib_address_operand): Likewise.
3938 (address_mpx_no_base_operand): Likewise.
3939 (address_mpx_no_index_operand): Likewise.
3940 * doc/extend.texi (x86 Named Address Spaces): New section.
3942 * config/i386/i386.c (ix86_check_no_addr_space): New.
3943 (decide_alg): Add have_as parameter.
3944 (alg_usable_p): Likewise; disable rep algorithms if set.
3945 (ix86_expand_set_or_movmem): Notice if either MEM has a
3946 non-default address space.
3947 (ix86_expand_strlen): Likewise.
3948 * config/i386/i386.md (strmov, strset): Likewise.
3949 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
3950 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
3951 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
3952 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
3953 *cmpstrnqi_1, *strlenqi_1): Likewise.
3955 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
3956 (*movabs<mode>_2): Likewise.
3958 * dwarf2out.c (modified_type_die): Pass the address space number
3959 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
3960 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
3961 * targhooks.c (default_addr_space_debug): New.
3962 * targhooks.h (default_addr_space_debug): Declare.
3963 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
3964 * doc/tm.texi: Rebuild.
3966 * gimple.c (check_loadstore): Return false when 0 is a valid address.
3967 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
3968 null when 0 is valid in the source address space.
3969 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3970 * targhooks.c (default_addr_space_zero_address_valid): New.
3971 * targhooks.h (default_addr_space_zero_address_valid): Declare.
3972 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
3973 * doc/tm.texi: Rebuild.
3975 * cselib.c (add_mem_for_addr): Compare address spaces when
3977 (cselib_lookup_mem): Likewise.
3978 * fold-const.c (operand_equal_p): Check address spaces of
3979 pointer types before checking integer constants.
3982 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
3983 the correct type for the base.
3985 2015-11-09 Jeff Law <law@redhat.com>
3987 * tree-into-ssa.c (names_to_release): No longer static.
3988 * tree-into-ssa.h (names_to_release): Declare.
3989 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
3990 (release_free_names_and_compact_live_names): New function extracted
3991 from pass_release_ssa_names::execute.
3992 (pass_release_ssa_names::execute): Use it.
3994 2015-11-09 Alan Modra <amodra@gmail.com>
3996 * gensupport.c (add_mnemonic_string): Make len param a size_t.
3997 (gen_mnemonic_setattr): Make "size" var a size_t. Use
3998 obstack_blank_fast to shrink obstack. Cast obstack_next_free
4001 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
4003 PR rtl-optimization/68182
4004 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
4005 branch with only one successor just like unconditional branches.
4007 2015-11-08 Jeff Law <law@redhat.com>
4009 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
4010 non-FSM path has no edges marked with EDGE_DFS_BACK.
4011 (ssa_redirect_edges): No longer call mark_loop_for_removal.
4012 (thread_single_edge, def_split_header_continue_p): Remove.
4013 (bb_ends_with_multiway_branch): Likewise.
4014 (thread_through_loop_header): Remove cases of threading from
4015 latch through the header. Simplify knowing we won't thread
4017 (thread_through_all_blocks): Simplify knowing that only the FSM
4018 threader needs to handle backedges.
4020 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
4022 * doc/extend.texi (type attributes): Document scalar_storage_order.
4023 (Structure-Packing Pragmas): Rename into...
4024 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
4025 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
4026 (Warnings): Document -Wno-scalar-storage-order.
4027 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
4028 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
4029 extract_bit_field and store_bit_field.
4030 (initialize_argument_information): Adjust call to store_expr.
4031 (load_register_parameters): Adjust call to extract_bit_field.
4032 * expmed.c (check_reverse_storage_order_support): New function.
4033 (check_reverse_float_storage_order_support): Likewise.
4034 (flip_storage_order): Likewise.
4035 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
4036 of the value if it is true. Pass REVERSE to recursive call after
4037 adjusting the target offset.
4038 Do not use extraction or movstrict instruction if REVERSE is true.
4039 Pass REVERSE to store_fixed_bit_field.
4040 (store_bit_field): Add REVERSE parameter and pass to it to above.
4041 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
4042 store_split_bit_field and store_fixed_bit_field_1.
4043 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
4044 order of the value if it is true and adjust the target offset.
4045 (store_split_bit_field): Add REVERSE parameter and pass it to
4046 store_fixed_bit_field. Adjust the target offset if it is true.
4047 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
4048 of the value if it is true. Pass REVERSE to recursive call after
4049 adjusting the target offset.
4050 Do not use extraction or subreg instruction if REVERSE is true.
4051 Pass REVERSE to extract_fixed_bit_field.
4052 (extract_bit_field): Add REVERSE parameter and pass to it to above.
4053 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
4054 extract_split_bit_field and extract_fixed_bit_field_1.
4055 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
4056 order of the value if it is true and adjust the target offset.
4057 (extract_split_bit_field): Add REVERSE parameter and pass it to
4058 extract_fixed_bit_field. Adjust the target offset if it is true.
4059 * expmed.h (flip_storage_order): Declare.
4060 (store_bit_field): Adjust prototype.
4061 (extract_bit_field): Likewise.
4062 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
4063 (emit_group_store): Adjust call to store_bit_field.
4064 (copy_blkmode_from_reg): Likewise.
4065 (copy_blkmode_to_reg): Likewise.
4066 (write_complex_part): Likewise.
4067 (read_complex_part): Likewise.
4068 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
4069 that it isn't true if the target is a register.
4070 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
4071 and flip the storage order of the value.
4072 <BIT_IOR_EXPR>: Flip the storage order of the value.
4073 (get_bit_range): Adjust call to get_inner_reference.
4074 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
4075 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
4076 with reverse storage order.
4077 (store_expr_with_bounds): Add REVERSE parameter and pass it to
4078 recursive calls and call to store_bit_field. Force the value into a
4079 register if it is true and then flip the storage order of the value.
4080 (store_expr): Add REVERSE parameter and pass it to above.
4081 (categorize_ctor_elements_1): Adjust call to
4082 initializer_constant_valid_p.
4083 (store_constructor_field): Add REVERSE parameter and pass it to
4084 recursive calls and call to store_field.
4085 (store_constructor): Add REVERSE parameter and pass it to calls to
4086 store_constructor_field and store_expr. Set it to true for an
4087 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
4088 (store_field): Add REVERSE parameter and pass it to recursive calls
4089 and calls to store_expr and store_bit_field. Temporarily flip the
4090 storage order of the value with record type and integral mode and
4091 adjust the shift if it is true.
4092 (get_inner_reference): Add PREVERSEP parameter and set it to true
4093 upon encoutering a reference with reverse storage order.
4094 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
4095 (expand_constructor): Adjust call to store_constructor.
4096 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
4097 of the union type to store_expr in the MEM case and assert that it
4098 isn't set in the REG case. Adjust call to store_field.
4099 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
4100 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
4101 get_inner_reference and extract_bit_field. Temporarily flip the
4102 storage order of the value with record type and integral mode and
4103 adjust the shift if it is true. Flip the storage order of the value
4104 at the end if it is true.
4105 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
4106 get_inner_reference. Do not fetch an inner reference if it is true.
4107 * expr.h (store_expr_with_bounds): Ajust prototype.
4108 (store_expr): Likewise.
4109 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
4110 REF_REVERSE_STORAGE_ORDER on the reference according to it.
4111 (optimize_bit_field_compare): Deal with reverse storage order.
4112 Adjust calls to get_inner_reference and make_bit_field_ref.
4113 (decode_field_reference): Add PREVERSEP parameter and adjust call to
4114 get_inner_reference.
4115 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
4116 to decode_field_reference and make_bit_field_ref.
4117 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
4118 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
4119 (fold_comparison): Adjust call to get_inner_reference.
4120 (split_address_to_core_and_offset): Adjust call to
4121 get_inner_reference.
4122 * gimple-expr.c (useless_type_conversion_p): Return false for array
4123 types with different TYPE_REVERSE_STORAGE_ORDER flag.
4124 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
4125 REF_REVERSE_STORAGE_ORDER flag.
4126 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
4127 * output.h (assemble_real): Adjust prototype.
4128 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
4129 * stor-layout.c (finish_record_layout): Propagate the
4130 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
4131 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
4132 (TYPE_SATURATING): Adjust.
4133 (REF_REVERSE_STORAGE_ORDER): Document.
4134 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
4135 set it to true upon encoutering a reference with reverse storage order.
4136 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
4137 * tree-inline.c (remap_gimple_op_r): Propagate the
4138 REF_REVERSE_STORAGE_ORDER flag.
4139 (copy_tree_body_r): Likewise.
4140 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
4142 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
4143 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
4144 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4145 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
4146 REF_REVERSE_STORAGE_ORDER flag.
4147 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
4148 (gimple_canonical_types_compatible_p): Likewise.
4149 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
4150 (TYPE_SATURATING): Adjust.
4151 (REF_REVERSE_STORAGE_ORDER): New flag.
4152 (reverse_storage_order_for_component_p): New inline predicate.
4153 (storage_order_barrier_p): Likewise.
4154 (get_inner_reference): Adjust prototype.
4155 * varasm.c: Include expmed.h.
4156 (assemble_variable_contents): Adjust call to output_constant.
4157 (assemble_real): Add REVERSE parameter. Flip the storage
4158 order of the value if REVERSE is true.
4159 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
4160 (assemble_constant_contents): Adjust call to output_constant.
4161 (output_constant_pool_2): Adjust call to assemble_real.
4162 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
4163 TYPE_REVERSE_STORAGE_ORDER.
4164 (initializer_constant_valid_p): Add REVERSE parameter.
4165 (output_constant): Add REVERSE parameter.
4166 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
4167 <REAL_TYPE>: Adjust call to assemble_real.
4168 <COMPLEX_TYPE>: Pass it to recursive calls.
4169 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
4170 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
4171 (struct oc_local_state): Add REVERSE field.
4172 (output_constructor_array_range): Adjust calls to output_constant.
4173 (output_constructor_regular_field): Likewise.
4174 (output_constructor_bitfield): Adjust call to output_constructor.
4175 Flip the storage order of the value if REVERSE is true.
4176 (output_constructor): Add REVERSE parameter. Set it to true for an
4177 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
4178 output_constructor_bitfield.
4179 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
4180 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
4181 * builtins.c (get_object_alignment_2): Likewise.
4182 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
4183 and get_ref_base_and_extent.
4184 * dbxout.c (dbxout_expand_expr): Likewise.
4185 * dwarf2out.c (add_var_loc_to_decl): Likewise.
4186 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
4187 (loc_list_from_tree): Likewise.
4188 (fortran_common): Likewise.
4189 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
4190 get_ref_base_and_extent.
4191 (get_base_constructor): Likewise.
4192 (fold_const_aggregate_ref_1): Likewise.
4193 * gimple-laddress.c (pass_laddress::execute): Adjust call to
4194 get_inner_reference.
4195 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
4196 get_inner_reference and bail out on reverse storage order.
4197 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
4198 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
4199 build_ref_for_offset.
4200 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
4201 get_ref_base_and_extent.
4202 (ipa_polymorphic_call_context): Likewise.
4203 (extr_type_from_vtbl_ptr_store): Likewise.
4204 (check_stmt_for_type_change): Likewise.
4205 (get_dynamic_type): Likewise.
4206 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
4207 get_ref_base_and_extent.
4208 (compute_complex_assign_jump_func): Likewise.
4209 (get_ancestor_addr_info): Likewise.
4210 (compute_known_type_jump_func): Likewise.
4211 (determine_known_aggregate_parts): Likewise.
4212 (ipa_get_adjustment_candidate): Likewise.
4213 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
4214 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
4215 (build_ref_for_offset): Adjust prototype.
4216 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
4217 get_inner_reference.
4218 * tree-affine.c (tree_to_aff_combination): Adjust call to
4219 get_inner_reference.
4220 (get_inner_reference_aff): Likewise.
4221 * tree-data-ref.c (split_constant_offset_1): Likewise.
4222 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
4223 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
4224 get_inner_reference.
4225 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
4226 (dump_access): Print new fields.
4227 (create_access): Adjust call to get_ref_base_and_extent and set the
4228 REVERSE flag according to the result.
4229 (completely_scalarize_record): Set the REVERSE flag.
4230 (scalarize_elem): Add REVERSE parameter.
4231 (build_access_from_expr_1): Preserve storage order barriers.
4232 (build_accesses_from_assign): Likewise.
4233 (build_ref_for_offset): Add REVERSE parameter and set the
4234 REF_REVERSE_STORAGE_ORDER flag accordingly.
4235 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
4236 the REF_REVERSE_STORAGE_ORDER flag if there are components.
4237 (analyze_access_subtree): Likewise.
4238 (create_artificial_child_access): Set the REVERSE flag.
4239 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
4240 (turn_representatives_into_adjustments): Propagate REVERSE flag.
4241 (ipa_sra_check_caller): Adjust call to get_inner_reference.
4242 * tree-ssa-alias.c (ao_ref_base): Adjust call to
4243 get_ref_base_and_extent.
4244 (aliasing_component_refs_p): Likewise.
4245 (stmt_kills_ref_p_1): Likewise.
4246 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4247 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
4248 Return true if reverse storage order.
4249 <BIT_FIELD_REF>: Likewise.
4250 <COMPONENT_REF>: Likewise.
4251 <ARRAY_REF>: Likewise.
4252 <ARRAY_RANGE_REF>: Likewise.
4253 (split_address_cost): Likewise. Bail out if reverse storage order.
4254 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
4255 get_inner_reference. Bail out if reverse storage order.
4256 (bswap_replace): Adjust call to get_inner_reference.
4257 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
4258 the REF_REVERSE_STORAGE_ORDER flag.
4259 <BIT_FIELD_REF>: Likewise.
4260 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
4262 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
4263 to the REF_REVERSE_STORAGE_ORDER flag.
4264 <BIT_FIELD_REF>: Likewise.
4265 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
4266 (contains_storage_order_barrier_p): New predicate.
4267 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
4268 Punt on storage order barriers if necessary.
4269 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
4270 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
4271 call to get_ref_base_and_extent.
4272 (do_structure_copy): Likewise.
4273 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
4274 get_inner_reference.
4275 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
4276 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
4277 * ubsan.c (instrument_bool_enum_load): Likewise.
4278 (instrument_object_size): Likewise.
4279 * var-tracking.c (track_expr_p): Adjust call to
4280 get_ref_base_and_extent.
4281 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
4282 get_inner_reference.
4283 * config/s390/s390.c (s390_expand_atomic): Adjust call to
4285 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
4287 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
4289 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
4291 * config/sparc/sparc.opt (mfix-at697f): Add final period.
4293 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4295 PR rtl-optimization/67864
4296 * common/config/i386/i386-common.c (ix86_option_optimization_table)
4297 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
4300 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4302 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
4305 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4307 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
4308 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
4310 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4312 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
4313 * internal-fn.c: Don't undef it here.
4314 * tree-core.h: Likewise.
4316 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4318 * builtins.c (fold_builtin_nan): Delete.
4319 (fold_builtin_memcmp): Remove case where both arguments are constant.
4320 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
4321 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
4322 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
4323 * fold-const-call.c: Include fold-const.h.
4324 (host_size_t_cst_p): New function.
4325 (build_cmp_result, fold_const_builtin_nan): Likewise.
4326 (fold_const_call_1): New function, split out from...
4327 (fold_const_call): ...here (for all three interfaces). Handle
4328 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
4330 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4332 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
4333 (fold_builtin_1): Don't call them.
4334 * fold-const-call.c: Include tm.h.
4335 (fold_const_call_ss): New variant for integer-to-integer folds.
4336 (fold_const_call): Call it.
4338 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4340 * builtins.c (fold_builtin_classify): Move constant cases to...
4341 * fold-const-call.c (fold_const_call_ss): ...here.
4343 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4345 * builtins.h (c_getstr): Move to...
4346 * fold-const.h (c_getstr): ...here.
4347 * builtins.c (c_getstr): Move to...
4348 * fold-const.c (c_getstr): ...here.
4350 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4352 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
4353 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
4355 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4357 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
4358 the dominance info; free it if we can't.
4359 (pass_call_cdce::execute): Don't free the dominance info here.
4361 2015-11-06 Jeff Law <law@redhat.com>
4363 * tree-ssa-threadedge.c (dummy_simplify): Remove.
4364 (thread_around_empty_blocks): Remove backedge_seen_p argument.
4365 If we thread to a backedge, then return false. Update recursive
4366 call to eliminate backedge_seen_p argument.
4367 (thread_through_normal_block): Remove backedge_seen_p argument.
4368 Remove backedge_seen_p argument from calls to
4369 thread_around_empty_blocks. Remove checks on backedge_seen_p.
4370 If we thread to a backedge, then return 0.
4371 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
4372 pass it to thread_through_normal_block or thread_through_empty_blocks.
4373 For joiner handling, if we see a backedge, do not try normal
4376 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4378 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
4379 * graphite-poly.c (new_scop): Initialize original_schedule.
4380 (free_scop): Free original_schedule.
4381 * graphite-poly.h (struct scop): Add field original_schedule.
4382 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
4383 (build_poly_scop): Call build_scop_original_schedule.
4385 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4387 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
4388 (build_pbb_minimal_scattering_polyhedrons): New.
4389 (build_scop_scattering): Remove.
4390 (build_scop_minimal_scattering): New.
4391 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
4392 (build_poly_scop): Call build_scop_minimal_scattering.
4394 2015-11-06 Jeff Law <law@redhat.com>
4396 * cfg-flags.def (IGNORE): New edge flag.
4397 * tree-vrp.c (identify_jump_threads): Mark and clear edges
4398 scheduled for removal with EDGE_IGNORE around call into
4399 jump threader. Do no thread across edges with EDGE_IGNORE,
4400 but do allow threading across those with EDGE_DFS_BACK.
4402 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
4404 * doc/md.texi (multi-alternative constraints): Don't document
4405 alternatives inherently tied to reload for the user documentation.
4407 2015-11-06 Michael Collison <michael.collison@linaro.org>
4408 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4411 2015-08-01 Michael Collison <michael.collison@linaro.org
4412 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4414 * config/arm/arm.md (*arm_smin_cmp): New pattern.
4415 (*arm_umin_cmp): Likewise.
4417 2015-11-06 Jakub Jelinek <jakub@redhat.com>
4419 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
4420 * omp-low.c (check_omp_nesting_restrictions): Update for the
4421 various new OpenMP 4.5 nesting restrictions, clarified
4422 nesting glossary, closely nested region relationship clarified
4423 to mean explicit or implicit parallel regions (target/teams),
4424 use %</%> or %qs where appropriate.
4426 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4427 Sebastian Pop <s.pop@samsung.com>
4429 * graphite-scop-detection.c (loop_is_valid_scop): Call
4430 optimize_loop_nest_for_speed_p.
4432 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4433 Sebastian Pop <s.pop@samsung.com>
4435 * graphite-optimize-isl.c (optimize_isl): Call
4436 isl_options_set_schedule_maximize_band_depth.
4438 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4439 Sebastian Pop <s.pop@samsung.com>
4441 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
4442 and exit edges should not be a part of irreducible loop.
4443 (scop_detection::can_represent_loop_1): Loops should not be
4445 (scop_detection::harmful_stmt_in_region): All the basic block
4446 should belong to reducible loops.
4448 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
4450 * config/aarch64/aarch64-simd-builtins.def: Update builtins
4451 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
4452 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
4453 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
4454 (aarch64_tbx4v8qi): Rename to...
4455 aarch64_tbx4<mode>): ... this.
4456 (aarch64_qtbl3<mode>): New pattern.
4457 (aarch64_qtbx3<mode>): New pattern.
4458 (aarch64_qtbl4<mode>): New pattern.
4459 (aarch64_qtbx4<mode>): New pattern.
4460 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
4461 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
4462 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
4463 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
4464 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
4465 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
4466 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
4467 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
4470 2015-11-06 Mike Stump <mikestump@comcast.net>
4473 * dwarf2out.c (get_full_len): Return a value based upon the actual
4474 precision needed for the value.
4475 (add_const_value_attribute): Use a maximal wide-int for
4476 CONST_WIDE_INTs, not VOIDmode.
4477 (output_die): Don't ever output NULL with printf.
4479 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
4480 BLKmode nor VOIDmode values.
4482 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4484 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
4486 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
4487 * diagnostic-core.h (warning_at_rich_loc): New declaration.
4488 (error_at_rich_loc): New declaration.
4489 (permerror_at_rich_loc): New declaration.
4490 (inform_at_rich_loc): New declaration.
4491 * diagnostic-show-locus.c (adjust_line): Delete.
4492 (struct point_state): New struct.
4493 (class colorizer): New class.
4494 (class layout_point): New class.
4495 (class layout_range): New class.
4496 (struct line_bounds): New.
4497 (class layout): New class.
4498 (colorizer::colorizer): New ctor.
4499 (colorizer::~colorizer): New dtor.
4500 (layout::layout): New ctor.
4501 (layout::print_source_line): New method.
4502 (layout::print_annotation_line): New method.
4503 (layout::get_state_at_point): New method.
4504 (layout::get_x_bound_for_row): New method.
4505 (diagnostic_show_locus): Reimplement in terms of class layout.
4506 (diagnostic_print_caret_line): Delete.
4507 * diagnostic.c (diagnostic_initialize): Replace
4508 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
4509 (diagnostic_set_info_translated): Convert param from location_t
4510 to rich_location *. Eliminate calls to set_location on the
4511 message in favor of storing the rich_location ptr there.
4512 (diagnostic_set_info): Convert param from location_t to
4514 (diagnostic_build_prefix): Break out array into...
4515 (diagnostic_kind_color): New variable.
4516 (diagnostic_get_color_for_kind): New function.
4517 (diagnostic_report_diagnostic): Colorize the option_text
4518 using the color for the severity.
4519 (diagnostic_append_note): Update for change in signature of
4520 diagnostic_set_info.
4521 (diagnostic_append_note_at_rich_loc): New function.
4522 (emit_diagnostic): Update for change in signature of
4523 diagnostic_set_info.
4525 (inform_at_rich_loc): New function.
4526 (inform_n): Update for change in signature of diagnostic_set_info.
4527 (warning): Likewise.
4528 (warning_at): Likewise.
4529 (warning_at_rich_loc): New function.
4530 (warning_n): Update for change in signature of diagnostic_set_info.
4531 (pedwarn): Likewise.
4532 (permerror): Likewise.
4533 (permerror_at_rich_loc): New function.
4534 (error): Update for change in signature of diagnostic_set_info.
4535 (error_n): Likewise.
4536 (error_at): Likewise.
4537 (error_at_rich_loc): New function.
4538 (sorry): Update for change in signature of diagnostic_set_info.
4539 (fatal_error): Likewise.
4540 (internal_error): Likewise.
4541 (internal_error_no_backtrace): Likewise.
4542 (source_range::debug): New function.
4543 * diagnostic.h (struct diagnostic_info): Eliminate field
4544 "override_column". Add field "richloc".
4545 (struct diagnostic_context): Add field "colorize_source_p".
4546 (diagnostic_override_column): Delete.
4547 (diagnostic_set_info): Convert param from location_t to
4549 (diagnostic_set_info_translated): Likewise.
4550 (diagnostic_append_note_at_rich_loc): New function.
4551 (diagnostic_num_locations): New function.
4552 (diagnostic_expand_location): Get the location from the
4554 (diagnostic_print_caret_line): Delete.
4555 (diagnostic_get_color_for_kind): New declaration.
4556 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
4557 (error_cb): Update for change in signature of "error" callback.
4558 (fatal_at): Likewise.
4559 (warning_at): Likewise.
4560 * input.c (linemap_client_expand_location_to_spelling_point): New.
4561 * pretty-print.c (text_info::set_range): New method.
4562 (text_info::get_location): New method.
4563 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
4564 (struct text_info): Eliminate "locations" array in favor of
4565 "m_richloc", a rich_location *.
4566 (textinfo::set_location): Add a "caret_p" param, and reimplement
4567 in terms of a call to set_range.
4568 (textinfo::get_location): Eliminate inline implementation in favor of
4569 an out-of-line reimplementation.
4570 (textinfo::set_range): New method.
4571 * rtl-error.c (diagnostic_for_asm): Update for change in signature
4572 of diagnostic_set_info.
4573 * tree-diagnostic.c (default_tree_printer): Update for new
4574 "caret_p" param for textinfo::set_location.
4575 * tree-pretty-print.c (percent_K_format): Likewise.
4577 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4580 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4581 * config/aarch64/aarch64.c
4582 (aarch64_can_use_per_function_literal_pools_p): New.
4583 (aarch64_use_blocks_for_constant_p): Adjust declaration
4584 and use aarch64_can_use_function_literal_pools_p.
4585 (aarch64_select_rtx_section): Update.
4587 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4589 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
4590 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
4591 (arm_output_multireg_pop): Likewise.
4592 (output_move_double): Likewise.
4593 (output_move_quad): Likewise.
4594 (output_return_instruction): Likewise.
4595 (arm_print_operand): Remove support for %( and %. print modifiers.
4596 (arm_output_shift): Make unified asm.
4597 (arm_declare_function_name): Likewise.
4598 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
4599 (ASM_APP_OFF): Adjust.
4600 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
4601 (ASM_OUTPUT_REG_POP): Likewise.
4602 * config/arm/arm.md: Adjust uses of %., %(, %)
4603 * config/arm/sync.md: Likewise.
4604 * config/arm/thumb2.md: Likewise.
4605 * config/arm/ldmstm.md: Regenerate.
4606 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
4607 * doc/invoke.texi (masm-unified-syntax): Update documentation.
4609 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4611 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
4613 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4615 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
4616 add OEP_MATCH_SIDE_EFFECTS.
4617 * fold-const.c (operand_equal_p): Update documentation; handle
4618 OEP_MATCH_SIDE_EFFECTS.
4619 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
4620 OEP_MATCH_SIDE_EFFECTS.
4622 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
4623 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4625 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
4626 * config/aarch64/aarch64-protos.h: Declare.
4627 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
4629 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
4630 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
4631 code when applicable.
4632 * config/aarch64/aarch64.md: Added enum entries.
4633 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
4635 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4639 * ipa-polymorphic-call.c
4640 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
4641 issue when offset is out of range.
4642 (contains_type_p): Fix out of range check, clear dynamic flag.
4644 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
4646 * config.gcc (e6500): Fix cpu_is_64bit typo.
4648 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
4650 * tree-sra.c (completely_scalarize): Properly handle negative array
4651 indices using offset_int.
4653 2015-11-06 Richard Biener <rguenther@suse.de>
4655 * alloc-pool.h (object_allocator::allocate): Default-initialize
4658 2015-11-06 Richard Biener <rguenther@suse.de>
4660 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
4661 * lra.c (init_reg_info): Truncate copy_vec instead of
4662 re-allocating a new one and leaking the old.
4663 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
4665 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
4666 * postreload-gcse.c (free_mem): Free modify_mem_list and
4667 canon_modify_mem_list.
4669 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
4671 PR tree-optimization/68145
4672 * tree-vect-stmts.c (vectorizable_operation): Fix
4673 determination for booleans.
4675 2015-11-06 Tom de Vries <tom@codesourcery.com>
4677 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
4678 cond_jump, instead of split after last nondebug insn before cond_jump.
4679 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
4682 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4685 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
4686 subregs from accumulator and make sure it's a register.
4688 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
4690 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
4692 (reduc_uplus_<mode>): Remove.
4693 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
4694 loongson_extract_lo_<mode>.
4695 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
4696 reduc_smax_<mode>, reduc_smax_<mode>, use vec
4697 loongson_extract_lo_<mode>.
4698 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
4700 2015-11-06 Richard Biener <rguenther@suse.de>
4702 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
4704 (vect_stmt_in_region_p): Declare.
4705 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
4706 (destroy_bb_vec_info): Likewise.
4707 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
4708 (vect_get_and_check_slp_defs): Likewise.
4709 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
4710 (vect_slp_bb): Likewise.
4711 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
4712 in terms of vect_stmt_in_region_p.
4713 (vect_pattern_recog): Iterate over the BB region.
4714 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
4715 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
4716 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
4717 * config/i386/i386.c: Include gimple-iterator.h.
4718 * config/aarch64/aarch64.c: Likewise.
4720 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
4722 PR rtl-optimization/67753
4723 PR rtl-optimization/64164
4724 * function.c (assign_parm_setup_block): Avoid allocating a
4725 stack slot if we don't have an ABI-reserved one. Emit the
4726 copy to target_reg in the conversion seq if the copy from
4727 entry_parm is in it too. Don't use the conversion seq to copy
4728 a PARALLEL to a REG or a CONCAT.
4730 2015-11-06 Richard Biener <rguenther@suse.de>
4732 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
4735 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
4736 Thomas Schwinge <thomas@codesourcery.com>
4737 James Norris <jnorris@codesourcery.com>
4740 * gimplify.c (gimplify_scan_omp_clauses): Add support for
4741 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
4742 (gimplify_adjust_omp_clauses): Likewise.
4743 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
4744 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
4745 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
4746 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
4747 (omp_clause_code_name): Likewise.
4748 (walk_tree_1): Handle OMP_CLAUSE_TILE.
4749 * tree.h (OMP_TILE_LIST): New macro.
4751 2015-11-05 Martin Sebor <msebor@redhat.com>
4754 * doc/invoke.texi (-Wplacement-new): Document new option.
4756 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
4758 PR tree-optimization/65963
4759 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
4760 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
4762 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
4764 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
4765 (noce_convert_multiple_sets): Likewise.
4766 (noce_process_if_block): Call them.
4768 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
4770 * gimple-fold.c: Include omp-low.h.
4771 (fold_internal_goacc_dim): New.
4772 (gimple_fold_call): Call it.
4774 2015-11-05 Jakub Jelinek <jakub@redhat.com>
4775 Ilya Verbin <ilya.verbin@intel.com>
4778 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
4779 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
4780 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
4781 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
4782 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
4783 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
4784 (struct cgraph_simd_clone_arg): Adjust comment.
4785 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
4786 to GOMP_target_ext. Add num_teams and thread_limit arguments.
4787 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
4788 to GOMP_target_data_ext.
4789 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
4790 to GOMP_target_update_ext.
4791 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
4792 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
4793 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
4794 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
4795 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
4796 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
4797 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
4798 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
4799 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
4800 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
4801 * tree-core.h (enum omp_clause_schedule_kind): Add
4802 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
4803 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
4804 OMP_CLAUSE_SCHEDULE_LAST value.
4805 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
4806 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
4807 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
4808 OMP_FOR_CHECK. Remove comment.
4809 * tree-pretty-print.c (dump_omp_clause): Handle
4810 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
4811 Simplify. Print schedule clause modifiers.
4812 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
4813 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
4815 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
4816 (omp_default_clause): Tweak for
4817 private/firstprivate/is_device_ptr variables on target
4818 construct and use_device_ptr on target data.
4819 (omp_check_private): Likewise.
4820 (omp_notice_variable): For references check whether what it refers
4821 to has mappable type, rather than the reference itself.
4822 (omp_is_private): Diagnose linear iteration variables on non-simd
4824 (omp_no_lastprivate): Return true only for Fortran.
4825 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
4826 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
4827 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
4828 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
4829 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
4830 lastprivate and linear when combined with distribute. Gimplify
4831 variable low-bound for array reduction. Look through
4832 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
4834 (gimplify_adjust_omp_clauses_1): For implicit references to
4835 variables with reference type and when not ref to scalar or
4836 ref to pointer, map what they refer to using tofrom and
4837 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
4838 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
4839 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
4840 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
4841 Diagnose the same var on both firstprivate and lastprivate on
4842 distribute construct.
4843 (gimplify_omp_for): Fix up handling of predetermined
4844 lastprivate or linear iter vars when combined with distribute.
4845 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
4847 (gimplify_omp_workshare): Call optimize_target_teams.
4848 * omp-low.c (struct omp_region): Add sched_modifiers field.
4849 (struct omp_for_data): Likewise.
4850 (omp_any_child_fn_dumped): New variable.
4851 (extract_omp_for_data): Fill in sched_modifiers, and mask out
4852 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
4854 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
4855 bits of OMP_CLAUSE_SCHED_KIND.
4856 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
4857 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
4858 for array section reductions.
4859 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
4860 for distribute parallel for, if there are lastprivate clauses on the
4862 (lower_rec_input_clauses): Handle non-zero low-bound on array
4864 (lower_reduction_clauses): Likewise.
4865 (lower_send_clauses): Look through POINTER_PLUS_EXPR
4866 for array section reductions.
4867 (expand_parallel_call): Use nonmonotonic entrypoints for
4868 nonmonotonic: dynamic/guided.
4869 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
4870 child_fn if current_function_decl has assembler name set, but child_fn
4871 does not. Dump the header and IL of the child function when not in SSA
4873 (expand_omp_target): Likewise. Pass num_teams and thread_limit
4874 arguments to BUILT_IN_GOMP_TARGET.
4875 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4876 Initialize the extra _looptemp_ clause to fd->loop.n2.
4877 (expand_omp_for): Use nonmonotonic entrypoints for
4878 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
4879 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
4880 again if we have dumped any child functions.
4881 (lower_omp_for_lastprivate): Determine the right count variable
4882 for distribute simd, or distribute parallel for{, simd}.
4883 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
4884 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
4886 (simd_clone_clauses_extract): Handle variable step
4887 for references and arguments passed by reference.
4888 (simd_clone_mangle): Mangle ref/uval/val variable steps.
4889 (simd_clone_adjust_argument_types): Handle
4890 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
4891 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
4892 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
4893 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
4894 (simd_clone_linear_addend): New function.
4895 (simd_clone_adjust): Handle variable step like similarly
4896 to constant step, use simd_clone_linear_addend to determine
4897 the actual step at runtime.
4899 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
4901 * target.def (goacc.dim_limit): New hook.
4902 * targhooks.h (default_goacc_dim_limit): Declare.
4903 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
4904 * doc/tm.texi: Rebuilt.
4905 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
4906 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
4907 (default_goacc_dim_limit): New.
4908 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4909 (nvptx_goacc_dim_limit) New.
4910 (TARGET_GOACC_DIM_LIMIT): Override.
4911 * tree-vrp.c: Include omp-low.h, target.h.
4912 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
4915 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
4917 * tree-vect-generic.c (do_compare): Use -1 for true
4918 result instead of 1.
4920 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4922 * config/aarch64/aarch64.c
4923 (aarch64_can_use_per_function_literal_pools_p): New.
4924 (aarch64_use_blocks_for_constant_p): Adjust declaration
4925 and use aarch64_can_use_function_literal_pools_p.
4926 (aarch64_select_rtx_section): Update.
4928 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
4930 * targhooks.c (default_get_mask_mode): Use BLKmode in
4931 case target doesn't support required vector mode.
4932 * stor-layout.c (layout_type); Check for BLKmode.
4934 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
4935 Sebastian Pop <s.pop@samsung.com>
4937 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
4938 Remove use of parameter_rename_map.
4940 (copy_internal_parameters): Remove.
4941 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
4942 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
4943 (free_sese_info): Do not free parameter_rename_map.
4944 (set_rename): Do not use parameter_rename_map.
4945 (rename_uses): Update call to set_rename.
4946 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
4947 * sese.h (parameter_rename_map_t): Remove.
4948 (struct sese_info_t): Remove field parameter_rename_map.
4950 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
4951 Sebastian Pop <s.pop@samsung.com>
4953 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
4954 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
4955 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
4956 anonymous namespace.
4957 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
4958 (isl_id_for_pbb): Use a buffer of size 10.
4959 (isl_id_for_ssa_name): Same.
4960 * sese.c (set_rename): Add more dumps.
4962 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4964 * omp-low.c (struct omp_context): Remove reduction_map field.
4965 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
4966 (new_omp_context, delete_omp_context, scan_omp_target): Remove
4967 reduction_map handling.
4968 (lower_omp_target): Remove obsolete openacc reduction handling.
4970 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4972 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
4974 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4975 Cesar Philippidis <cesar@codesourcery.com>
4977 * config/nvptx/nvptx.c: Include gimple headers.
4978 (worker_red_size, worker_red_align, worker_red_name,
4979 worker_red_sym): New.
4980 (nvptx_option_override): Initialize worker reduction buffer.
4981 (nvptx_file_end): Write out worker reduction buffer var.
4982 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
4983 nvptx_expand_cmp_swap): New builtin expanders.
4984 (enum nvptx_builtins): New.
4985 (nvptx_builtin_decls): New.
4986 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
4987 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4988 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
4989 nvptx_lockless_update): New helpers.
4990 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
4991 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
4992 (nvptx_goacc_reduction): New.
4993 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
4994 TARGET_BUILTIN_DECL): Override.
4995 (TARGET_GOACC_REDUCTION): Override.
4997 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4998 Cesar Philippidis <cesar@codesourcery.com>
5000 * internal-fn.def (GOACC_REDUCTION): New.
5001 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
5002 * internal-fn.c (expand_GOACC_REDUCTION): New.
5003 * target.def (goacc.reduction): New OpenACC hook.
5004 * targhooks.h (default_goacc_reduction): Declare.
5005 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
5006 * doc/tm.texi: Rebuilt.
5007 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
5008 scan_sharing_clauses): Remove oacc reduction handling here.
5009 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
5010 (oacc_lower_reduction_var_helper): Delete.
5011 (lower_oacc_reductions): New.
5012 (lower_reduction_clauses): Don't handle OpenACC reductions here.
5013 (lower_oacc_head_tail): Call lower_oacc_reductions.
5014 (oacc_gimple_assign, oacc_init_reduction_array,
5015 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
5016 oacc_process_reduction_data): Delete.
5017 (lower_omp_target): Remove old OpenACC reduction handling. Insert
5018 dummy OpenACC gang reduction for reductions at outer level.
5019 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
5020 (default_goacc_reduction): New.
5021 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
5023 2015-11-04 Martin Liska <mliska@suse.cz>
5025 * cgraphunit.c (cgraph_node::expand_thunk): Call
5026 allocate_struct_function before init_function_start.
5027 (cgraph_node::expand): Use push_cfun and pop_cfun.
5028 * config/i386/i386.c (ix86_code_end): Call
5029 allocate_struct_function before init_function_start.
5030 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
5031 * function.c (init_function_start): Move preamble to all
5033 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
5034 (execute_one_pass): Handle newly added TODO_discard_function.
5035 (execute_pass_list_1): Terminate if cfun equals to NULL.
5036 (execute_pass_list): Do not push and pop cfun, expect that
5038 * tree-pass.h (TODO_discard_function): Define.
5040 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
5042 * cfganal.c (inverted_post_order_compute): Remove conditional
5043 compilation, use flag_checking.
5044 * config.in: Regenerate.
5045 * configure: Regenerate.
5046 * configure.ac: Remove ENABLE_CHECKING.
5047 * genconditions.c: Do not #undef ENABLE_CHECKING.
5048 * sese.h (bb_in_region): Comment out broken check.
5049 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
5050 conditional compilation, use flag_checking.
5052 2015-11-04 Tom de Vries <tom@codesourcery.com>
5054 PR tree-optimization/67742
5055 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
5057 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
5058 (create_variable_info_for_1): Add and handle handle_param parameter.
5059 Add restrict handling.
5060 (create_variable_info_for): Call create_variable_info_for_1 with extra
5062 (make_param_constraints): Drop restrict_name parameter. Ignore
5063 vi->only_restrict_pointers.
5064 (intra_create_variable_infos): Call create_variable_info_for_1 with
5065 extra arg. Remove restrict handling. Call make_param_constraints with
5068 2015-11-04 Tom de Vries <tom@codesourcery.com>
5070 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
5073 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5075 * config/arm/coff.h: Remove.
5077 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
5079 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
5080 check for aggregate types and beef up comment for mode check.
5082 2015-11-03 Richard Biener <rguenther@suse.de>
5084 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
5085 data references here.
5086 * tree-vect-loop.c: Include cgraph.h.
5087 (vect_analyze_loop_2): Collect data references here.
5088 * tree-vect-slp.c (find_bb_location): Inline ...
5089 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
5090 Factor in vect_slp_transform_bb.
5091 (vect_slp_transform_bb): Removed.
5092 (vect_slp_analyze_bb_1): Collect data references here.
5093 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
5095 * tree-vectorizer.h (vect_slp_bb): Declare.
5096 (vect_slp_analyze_bb): Remove.
5097 (vect_slp_transform_bb): Remove.
5098 (find_bb_location): Remove.
5099 (vect_analyze_data_refs): Remove stmt count reference parameter.
5101 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
5103 * multiple_target.c (create_dispatcher_calls): Add target check
5105 (create_target_clone): Change assembler name for versioned declarations.
5107 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
5108 Chung-Lin Tang <cltang@codesourcery.com>
5110 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
5111 * omp-low.c (check_omp_nesting_restrictions): Allow
5112 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
5115 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
5117 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
5118 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
5119 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
5121 (vmulxq_f32): Likewise.
5123 (vmulxq_f64): Rewrite to call fmulx builtin.
5124 (vmulxs_f32): Likewise.
5125 (vmulxd_f64): Likewise.
5126 (vmulx_lane_f32): Remove.
5127 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
5129 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
5131 * config/aarch64/aarch64.md (*movhf_aarch64): Use
5132 aarch64_reg_or_fp_zero for second operand.
5134 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
5136 * gimple-expr.c: Include hash-set.h and rtl.h.
5137 (mark_addressable_queue): New var.
5138 (mark_addressable): Factor actual marking into...
5139 (mark_addressable_1): ... this. Queue it up during expand.
5140 (mark_addressable_2): New.
5141 (flush_mark_addressable_queue): New.
5142 * gimple-expr.h (flush_mark_addressable_queue): Declare.
5143 * cfgexpand.c: Include gimple-expr.h.
5144 (pass_expand::execute): Flush mark_addressable queue.
5146 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
5148 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
5149 bb_no_side_effects_p tests...
5150 (tree_ssa_ifcombine_bb): ... here.
5152 PR tree-optimization/68083
5153 * tree-ssa-ifcombine.c: Include tree-ssa.h.
5154 (bb_no_side_effects_p): Test for undefined uses too.
5155 * tree-ssa.c (gimple_uses_undefined_value_p): New.
5156 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
5158 2015-11-02 Jeff Law <law@redhat.com>
5160 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
5161 cases where the loop latch edge is in the middle of an FSM path.
5163 2015-11-03 Tom de Vries <tom@codesourcery.com>
5165 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
5166 (make_param_constraints): ... this. Add and handle restrict_name
5167 parameter. Handle is_full_var case.
5168 (intra_create_variable_infos): Use make_param_constraints.
5170 2015-11-03 Tom de Vries <tom@codesourcery.com>
5172 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
5173 make_copy_constraint call with make_constraint_from call.
5175 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
5177 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
5180 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
5182 * builtins.h (fold_fma): Move to fold-const-call.h.
5183 * builtins.c: Include fold-const-call.h.
5184 (mathfn_built_in_2): New function, split out from...
5185 (mathfn_built_in_1): ...here.
5186 (do_real_to_int_conversion, fold_const_builtin_pow)
5187 (fold_const_builtin_logb, fold_const_builtin_significand)
5188 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
5189 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
5190 (fold_builtin_sincos): Use fold_const_call to handle constants.
5191 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
5192 checks for ERROR_MARK. Use fold_const_call to handle constant
5193 folds for math functions.
5194 (fold_fma): Move to fold-const-call.c.
5195 * fold-const.c: Include fold-const-call.h.
5196 * Makefile.in (OBJS): Add fold-const-call.o.
5197 (PLUGIN_HEADERS): Add fold-const-call.h.
5198 * realmpfr.h (real_from_mpfr): Allow the format to be specified
5200 * realmpfr.c (real_from_mpfr): Likewise.
5201 * fold-const-call.h, fold-const-call.c: New files.
5203 2015-11-02 Julian Brown <julian@codesourcery.com>
5205 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
5206 brackets and semicolon.
5208 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
5211 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
5213 PR tree-optimization/65963
5214 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
5215 LSHIFT_EXPRs as equivalent MULT_EXPRs.
5217 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
5220 * fold-const.c: Include "md5.h".
5222 2015-11-01 Jeff Law <law@redhat.com>
5224 * vmsdbgout.c: Revert unused header file reduction patch.
5226 * config/mcore/mcore.c: Include regs.h.
5228 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
5230 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
5232 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
5234 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
5235 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
5236 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
5238 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
5240 * ggc-common.c: Restore needed header for checking=release.
5242 2015-10-31 Tom de Vries <tom@codesourcery.com>
5244 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
5246 2015-10-31 Tom de Vries <tom@codesourcery.com>
5248 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
5249 existing varinfo for arguments.
5251 2015-10-31 Tom de Vries <tom@codesourcery.com>
5253 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
5254 create_function_info_for. Dump constraints generated during
5255 create_function_info_for. Move intra_create_variable_infos call and
5256 function-return-values-escape bit to ...
5257 (create_function_info_for): ... here, and merge
5258 intra_create_variable_infos call with argument loop. Add and handle
5259 nonlocal_p parameter.
5261 2015-10-31 Tom de Vries <tom@codesourcery.com>
5263 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
5264 updating is alap, and seperated from preceding code. Make sure
5265 insert_vi_for_tree is seperated from surrounding code.
5267 2015-10-31 Tom de Vries <tom@codesourcery.com>
5269 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
5271 2015-10-30 Jeff Law <law@redhat.com>
5272 Nathan Sidwell <nathan@acm.org>
5274 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
5276 (MOVE_MAX): Set to 8.
5278 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
5280 * cgraph.c: Include context.h for offloading.
5281 * varpool.c: Include context.h and omp-low.h.
5283 2015-10-30 Anatoly Sokolov <aesok@post.ru>
5285 * rtl.h (contains_symbol_ref_p): Declare.
5286 (SYMBOL_REF_P): Define.
5287 * rtlanal.c (contains_symbol_ref_p: New function.
5288 * lra-constraints.c (contains_symbol_ref_p): Remove.
5289 * var-tracking.c (contains_symbol_ref): Remove.
5290 (track_expr_p): Use contains_symbol_ref_p instead of
5291 contains_symbol_ref.
5293 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
5295 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
5296 * fold-const.c (get_array_ctor_element_at_index): New.
5297 (fold): Remove binary-search through CONSTRUCTOR, call previous.
5299 * fold-const.h (get_array_ctor_element_at_index): New.
5301 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
5303 * Makefile.in (OBJS): Add multiple_target.o.
5304 * attrib.c (make_attribute): Moved from config/i386/i386.c
5305 * config/i386/i386.c (make_attribute): Deleted.
5306 * multiple_target.c (create_dispatcher_calls): New.
5307 (get_attr_len): Ditto.
5308 (get_attr_str): Ditto.
5309 (separate_attrs): Ditto.
5310 (is_valid_asm_symbol): Ditto.
5311 (create_new_asm_name): Ditto.
5312 (create_target_clone): Ditto.
5313 (expand_target_clones): Ditto.
5314 (ipa_target_clone): Ditto.
5315 (ipa_dispatcher_calls): Ditto.
5316 * passes.def (pass_target_clone): Two new ipa passes.
5317 * tree-pass.h (make_pass_target_clone): Ditto.
5318 * doc/extend.texi (target_clones): New attribute description.
5320 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
5322 PR rtl-optimization/68106
5323 * lra-remat.c (input_regno_present_p): Process hard regs
5324 explicitly present in machine description insns.
5325 (call_used_input_regno_present_p): Ditto.
5326 (calculate_gen_cands): Ditto.
5329 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
5331 * config/arm/neon-testgen.ml: Fix comment typo.
5333 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5335 * rtlanal.c (reg_set_p): Expand function comment.
5337 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
5339 * alias.c: Remove unused headers.
5341 * attribs.c: Likewise.
5342 * auto-inc-dec.c: Likewise.
5343 * auto-profile.c: Likewise.
5344 * bb-reorder.c: Likewise.
5345 * bitmap.c: Likewise.
5346 * bt-load.c: Likewise.
5347 * builtins.c: Likewise.
5348 * caller-save.c: Likewise.
5349 * calls.c: Likewise.
5352 * cfganal.c: Likewise.
5353 * cfgbuild.c: Likewise.
5354 * cfgcleanup.c: Likewise.
5355 * cfgexpand.c: Likewise.
5356 * cfghooks.c: Likewise.
5357 * cfgloop.c: Likewise.
5358 * cfgloopanal.c: Likewise.
5359 * cfgloopmanip.c: Likewise.
5360 * cfgrtl.c: Likewise.
5361 * cgraph.c: Likewise.
5362 * cgraphbuild.c: Likewise.
5363 * cgraphclones.c: Likewise.
5364 * cgraphunit.c: Likewise.
5365 * cilk-common.c: Likewise.
5366 * combine-stack-adj.c: Likewise.
5367 * combine.c: Likewise.
5368 * compare-elim.c: Likewise.
5369 * convert.c: Likewise.
5370 * coverage.c: Likewise.
5371 * cppbuiltin.c: Likewise.
5372 * cprop.c: Likewise.
5374 * cselib.c: Likewise.
5375 * data-streamer-in.c: Likewise.
5376 * data-streamer-out.c: Likewise.
5377 * data-streamer.c: Likewise.
5378 * dbxout.c: Likewise.
5381 * debug.c: Likewise.
5382 * df-core.c: Likewise.
5383 * df-problems.c: Likewise.
5384 * df-scan.c: Likewise.
5386 * dojump.c: Likewise.
5387 * dominance.c: Likewise.
5388 * domwalk.c: Likewise.
5389 * double-int.c: Likewise.
5391 * dumpfile.c: Likewise.
5392 * dwarf2asm.c: Likewise.
5393 * dwarf2cfi.c: Likewise.
5394 * dwarf2out.c: Likewise.
5395 * emit-rtl.c: Likewise.
5396 * except.c: Likewise.
5397 * explow.c: Likewise.
5398 * expmed.c: Likewise.
5400 * final.c: Likewise.
5401 * fixed-value.c: Likewise.
5402 * fold-const.c: Likewise.
5403 * function.c: Likewise.
5404 * fwprop.c: Likewise.
5406 * generic-match-head.c: Likewise.
5407 * ggc-common.c: Likewise.
5408 * gimple-builder.c: Likewise.
5409 * gimple-expr.c: Likewise.
5410 * gimple-fold.c: Likewise.
5411 * gimple-iterator.c: Likewise.
5412 * gimple-low.c: Likewise.
5413 * gimple-match-head.c: Likewise.
5414 * gimple-pretty-print.c: Likewise.
5415 * gimple-ssa-isolate-paths.c: Likewise.
5416 * gimple-ssa-strength-reduction.c: Likewise.
5417 * gimple-streamer-in.c: Likewise.
5418 * gimple-streamer-out.c: Likewise.
5419 * gimple-walk.c: Likewise.
5420 * gimple.c: Likewise.
5421 * gimplify-me.c: Likewise.
5422 * gimplify.c: Likewise.
5423 * godump.c: Likewise.
5424 * graph.c: Likewise.
5425 * graphds.c: Likewise.
5426 * haifa-sched.c: Likewise.
5427 * hw-doloop.c: Likewise.
5428 * ifcvt.c: Likewise.
5429 * init-regs.c: Likewise.
5430 * internal-fn.c: Likewise.
5431 * ipa-chkp.c: Likewise.
5432 * ipa-comdats.c: Likewise.
5433 * ipa-cp.c: Likewise.
5434 * ipa-devirt.c: Likewise.
5435 * ipa-icf-gimple.c: Likewise.
5436 * ipa-icf.c: Likewise.
5437 * ipa-inline-analysis.c: Likewise.
5438 * ipa-inline-transform.c: Likewise.
5439 * ipa-inline.c: Likewise.
5440 * ipa-polymorphic-call.c: Likewise.
5441 * ipa-profile.c: Likewise.
5442 * ipa-prop.c: Likewise.
5443 * ipa-pure-const.c: Likewise.
5444 * ipa-ref.c: Likewise.
5445 * ipa-reference.c: Likewise.
5446 * ipa-split.c: Likewise.
5447 * ipa-utils.c: Likewise.
5448 * ipa-visibility.c: Likewise.
5450 * ira-build.c: Likewise.
5451 * ira-color.c: Likewise.
5452 * ira-conflicts.c: Likewise.
5453 * ira-costs.c: Likewise.
5454 * ira-emit.c: Likewise.
5455 * ira-lives.c: Likewise.
5458 * langhooks.c: Likewise.
5460 * lists.c: Likewise.
5461 * loop-doloop.c: Likewise.
5462 * loop-init.c: Likewise.
5463 * loop-invariant.c: Likewise.
5464 * loop-iv.c: Likewise.
5465 * loop-unroll.c: Likewise.
5466 * lower-subreg.c: Likewise.
5467 * lra-assigns.c: Likewise.
5468 * lra-coalesce.c: Likewise.
5469 * lra-constraints.c: Likewise.
5470 * lra-eliminations.c: Likewise.
5471 * lra-lives.c: Likewise.
5472 * lra-remat.c: Likewise.
5473 * lra-spills.c: Likewise.
5475 * lto-cgraph.c: Likewise.
5476 * lto-compress.c: Likewise.
5477 * lto-opts.c: Likewise.
5478 * lto-section-in.c: Likewise.
5479 * lto-section-out.c: Likewise.
5480 * lto-streamer-in.c: Likewise.
5481 * lto-streamer-out.c: Likewise.
5482 * lto-streamer.c: Likewise.
5484 * mode-switching.c: Likewise.
5485 * modulo-sched.c: Likewise.
5486 * optabs.c: Likewise.
5487 * opts-global.c: Likewise.
5488 * passes.c: Likewise.
5489 * plugin.c: Likewise.
5490 * postreload-gcse.c: Likewise.
5491 * postreload.c: Likewise.
5492 * predict.c: Likewise.
5493 * print-tree.c: Likewise.
5494 * profile.c: Likewise.
5496 * realmpfr.c: Likewise.
5497 * recog.c: Likewise.
5499 * reg-stack.c: Likewise.
5500 * regcprop.c: Likewise.
5501 * reginfo.c: Likewise.
5502 * regrename.c: Likewise.
5503 * regstat.c: Likewise.
5504 * reload.c: Likewise.
5505 * reload1.c: Likewise.
5506 * reorg.c: Likewise.
5507 * resource.c: Likewise.
5508 * rtl-chkp.c: Likewise.
5509 * rtl-error.c: Likewise.
5510 * rtlanal.c: Likewise.
5511 * rtlhooks.c: Likewise.
5512 * sanopt.c: Likewise.
5513 * sched-deps.c: Likewise.
5514 * sched-ebb.c: Likewise.
5515 * sched-rgn.c: Likewise.
5516 * sdbout.c: Likewise.
5517 * sel-sched-dump.c: Likewise.
5518 * sel-sched-ir.c: Likewise.
5519 * sel-sched.c: Likewise.
5521 * shrink-wrap.c: Likewise.
5522 * simplify-rtx.c: Likewise.
5523 * stack-ptr-mod.c: Likewise.
5524 * statistics.c: Likewise.
5526 * stor-layout.c: Likewise.
5527 * store-motion.c: Likewise.
5528 * stringpool.c: Likewise.
5529 * symtab.c: Likewise.
5530 * target-globals.c: Likewise.
5531 * targhooks.c: Likewise.
5532 * toplev.c: Likewise.
5533 * tracer.c: Likewise.
5534 * trans-mem.c: Likewise.
5535 * tree-affine.c: Likewise.
5536 * tree-call-cdce.c: Likewise.
5537 * tree-cfg.c: Likewise.
5538 * tree-cfgcleanup.c: Likewise.
5539 * tree-chkp-opt.c: Likewise.
5540 * tree-chkp.c: Likewise.
5541 * tree-chrec.c: Likewise.
5542 * tree-complex.c: Likewise.
5543 * tree-data-ref.c: Likewise.
5544 * tree-dfa.c: Likewise.
5545 * tree-diagnostic.c: Likewise.
5546 * tree-dump.c: Likewise.
5547 * tree-eh.c: Likewise.
5548 * tree-emutls.c: Likewise.
5549 * tree-if-conv.c: Likewise.
5550 * tree-inline.c: Likewise.
5551 * tree-into-ssa.c: Likewise.
5552 * tree-iterator.c: Likewise.
5553 * tree-loop-distribution.c: Likewise.
5554 * tree-nested.c: Likewise.
5555 * tree-nrv.c: Likewise.
5556 * tree-object-size.c: Likewise.
5557 * tree-outof-ssa.c: Likewise.
5558 * tree-parloops.c: Likewise.
5559 * tree-phinodes.c: Likewise.
5560 * tree-predcom.c: Likewise.
5561 * tree-pretty-print.c: Likewise.
5562 * tree-profile.c: Likewise.
5563 * tree-scalar-evolution.c: Likewise.
5564 * tree-sra.c: Likewise.
5565 * tree-ssa-address.c: Likewise.
5566 * tree-ssa-alias.c: Likewise.
5567 * tree-ssa-ccp.c: Likewise.
5568 * tree-ssa-coalesce.c: Likewise.
5569 * tree-ssa-copy.c: Likewise.
5570 * tree-ssa-dce.c: Likewise.
5571 * tree-ssa-dse.c: Likewise.
5572 * tree-ssa-forwprop.c: Likewise.
5573 * tree-ssa-ifcombine.c: Likewise.
5574 * tree-ssa-live.c: Likewise.
5575 * tree-ssa-loop-ch.c: Likewise.
5576 * tree-ssa-loop-im.c: Likewise.
5577 * tree-ssa-loop-ivcanon.c: Likewise.
5578 * tree-ssa-loop-ivopts.c: Likewise.
5579 * tree-ssa-loop-manip.c: Likewise.
5580 * tree-ssa-loop-niter.c: Likewise.
5581 * tree-ssa-loop-prefetch.c: Likewise.
5582 * tree-ssa-loop-unswitch.c: Likewise.
5583 * tree-ssa-loop.c: Likewise.
5584 * tree-ssa-math-opts.c: Likewise.
5585 * tree-ssa-operands.c: Likewise.
5586 * tree-ssa-phiopt.c: Likewise.
5587 * tree-ssa-phiprop.c: Likewise.
5588 * tree-ssa-pre.c: Likewise.
5589 * tree-ssa-propagate.c: Likewise.
5590 * tree-ssa-reassoc.c: Likewise.
5591 * tree-ssa-scopedtables.c: Likewise.
5592 * tree-ssa-sink.c: Likewise.
5593 * tree-ssa-strlen.c: Likewise.
5594 * tree-ssa-structalias.c: Likewise.
5595 * tree-ssa-tail-merge.c: Likewise.
5596 * tree-ssa-ter.c: Likewise.
5597 * tree-ssa-threadupdate.c: Likewise.
5598 * tree-ssa-uncprop.c: Likewise.
5599 * tree-ssa-uninit.c: Likewise.
5600 * tree-ssa.c: Likewise.
5601 * tree-ssanames.c: Likewise.
5602 * tree-stdarg.c: Likewise.
5603 * tree-streamer-in.c: Likewise.
5604 * tree-streamer-out.c: Likewise.
5605 * tree-streamer.c: Likewise.
5606 * tree-switch-conversion.c: Likewise.
5607 * tree-tailcall.c: Likewise.
5608 * tree-vect-data-refs.c: Likewise.
5609 * tree-vect-generic.c: Likewise.
5610 * tree-vect-loop-manip.c: Likewise.
5611 * tree-vect-loop.c: Likewise.
5612 * tree-vect-patterns.c: Likewise.
5613 * tree-vect-slp.c: Likewise.
5614 * tree-vect-stmts.c: Likewise.
5615 * tree-vectorizer.c: Likewise.
5616 * tree-vrp.c: Likewise.
5619 * ubsan.c: Likewise.
5620 * value-prof.c: Likewise.
5621 * var-tracking.c: Likewise.
5622 * varasm.c: Likewise.
5623 * varpool.c: Likewise.
5624 * vmsdbgout.c: Likewise.
5625 * vtable-verify.c: Likewise.
5627 * wide-int-print.cc: Likewise.
5628 * wide-int.cc: Likewise.
5629 * xcoffout.c: Likewise.
5631 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
5633 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
5634 between pass numbering and execution order.
5636 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5638 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
5639 check for dependencies.
5641 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5643 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
5646 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5648 * real.h (format_helper): New.
5649 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
5650 (real_from_target, real_nan, real_2expN, real_value_truncate)
5651 (significand_size, real_from_string2, exact_real_inverse)
5652 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
5653 (real_round, real_isinteger, real_from_integer): Replace
5654 machine_mode arguments with format_helper arguments.
5655 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
5656 (real_from_integer, real_nan, real_2expN, real_convert)
5657 (real_value_truncate, exact_real_truncate, real_to_target)
5658 (real_from_target, significand_size, real_powi, real_trunc)
5659 (real_floor, real_ceil, real_round, real_isinteger): Replace
5660 machine_mode arguments with format_helper arguments.
5661 (real_to_target_fmt, real_from_target_fmt): Delete.
5662 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
5663 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
5664 argument with real_format.
5665 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
5667 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5669 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
5670 (fixed_to_decimal, fixed_convert_from_real)
5671 (real_convert_from_fixed): Fix mode arguments to real_2expN.
5673 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5675 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
5676 SCALAR_FLOAT_MODE_P.
5678 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
5680 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
5681 (completely_scalarize): Comment zero-length arrays.
5682 (get_access_replacement): Correct comment re. precondition.
5684 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5686 * config/i386/i386.c (get_builtin_code_for_version): Set priority
5687 for PROCESSOR_ZNVER1.
5688 (enum processor_model): Add M_AMDFAM17H_znver1.
5689 (struct arch_names_table): Likewise.
5690 * doc/extend.texi: ADD znver1.
5692 2015-10-30 Richard Biener <rguenther@suse.de>
5694 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
5695 fold () on single RHSs. Allow CONSTRUCTORS with trailing
5696 zeros to be folded to VECTOR_CSTs.
5697 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
5698 * fold-const.c (fold): Use build_vector_from_ctor.
5700 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
5702 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
5703 "mov %0.h[0], %1.h[0] to "neon_move".
5704 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
5705 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
5707 (*cmovsi_insn_uxtw): Likewise.
5709 2015-10-30 Tom de Vries <tom@codesourcery.com>
5711 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
5712 unsigned, and initialize, and use initial value instead of hardcoded
5713 constant. Add generic constraints dumping section. Don't dump global
5714 initializers constraints dumping section if empty. Don't update
5715 variable from if unused.
5717 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
5719 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
5720 flag_checking and/or CHECKING_P to eliminate conditional compilation
5722 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
5723 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5724 * config/i386/i386.c (ix86_print_operand_address): Likewise.
5725 (output_387_binary_op): Likewise.
5726 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
5727 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
5728 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
5730 * config/rs6000/rs6000.h: Likewise.
5731 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
5733 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
5735 * config/sh/sh.opt (mfdpic): Add missing period.
5737 2015-08-29 Anatoly Sokolov <aesok@post.ru>
5739 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5740 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
5741 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5742 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
5743 mcore_base_register_rtx_p, mcore_legitimate_index_p,
5744 mcore_legitimate_address_p): New functions.
5745 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5747 2015-10-29 Jeff Law <law@redhat.com>
5749 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
5751 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
5752 * tree-ssa-threadedge.c
5753 (record_temporary_equivalences_from_stmts_at_dest): Remove
5754 backedge_seen argument and associated code which invalidated
5755 equivalences based on the value of that argument.
5756 (thread_through_normal_block): Corresponding changes.
5758 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
5760 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
5761 function earlier in the file.
5762 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
5763 df_regs_ever_live_p.
5765 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
5767 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
5770 2015-10-29 Richard Henderson <rth@redhat.com>
5774 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5775 sse check to the exact conditions of PR 67609.
5777 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
5779 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
5780 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
5781 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
5782 of the traditional names that TFmode uses for handling IEEE
5783 extended double. If -mfloat128, add KFmode functions for all of
5784 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
5785 make TFmode use the same emulation functions as KFmode.
5786 (init_float128_ibm): Likewise.
5787 (init_float128_ieee): Likewise.
5788 (rs6000_generate_compare): For IEEE 128-bit floating point
5789 comparisons, call the unordered comparison function instead of the
5790 ordered comparison function.
5791 (rs6000_expand_float128_convert): Deal with operands that are
5792 memory operands. Restructure the code to use a switch statement on
5793 the mode. Add support for TFmode defaulting to either IBM extended
5794 double or IEEE 128-bit floating point. If the underlying types are
5795 the same, use a move instead of a conversion function.
5796 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
5797 use for IEEE 128-bit floating point constants with -mfloat128.
5798 (rs6000_c_mode_for_suffix): Likewise.
5799 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
5800 128-bit floating point with IBM extended double floating point.
5801 (rs6000_invalid_binary_op): Likewise.
5802 (rs6000_gen_le_vsx_permute): On little endian systems generate a
5803 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
5804 types that can go in vector registers.
5805 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
5806 point types that can go in vector registers on little endian
5808 (mark_swaps_for_removal): Likewise.
5809 (rs6000_analyze_swaps): Likewise.
5810 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
5812 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
5813 rework IEEE 128-bit floating point insns to deal with TFmode being
5814 either IBM extended double or IEEE 128-bit floating point.
5816 (IBM128): Update iterator to add condition that the mode is IBM
5818 (IEEE128): New iterator for IEEE 128-bit floating point.
5819 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
5820 (FLOAT128): Likewise.
5821 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
5823 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
5824 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
5825 instead of hard coding TFmode or KFmode.
5826 (negtf2_internal): Likewise.
5827 (neg<mode>2_internal): Likewise.
5828 (abs<mode>2): Likewise.
5829 (abstf2_internal): Likewise.
5830 (abs<mode>2_internal): Likewise.
5831 (ieee_128bit_neg<mode>2): Likewise.
5832 (ieee_128bit_neg<mode>2_internal): Likewise.
5833 (ieee_128bit_abs<mode>2): Likewise.
5834 (ieee_128bit_abs<mode>2_internal): Likewise.
5835 (ieee_128bit_nabs<mode>2): Likewise.
5836 (ieee_128bit_nabs<mode>2_internal): Likewise.
5837 (extendiftf2): Add explicit conversions between 128-bit floating
5838 point types. Drop the old conversions that had become unwieldy.
5839 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
5840 (extendifkf2): Likewise.
5841 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
5842 (extendtfkf2): Likewise.
5843 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
5844 (trunciftf2): Likewise.
5845 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
5846 (truncifkf2): Likewise.
5847 (float<SDI:mode><IFKF:mode>2): Likewise.
5848 (trunckftf2): Likewise.
5849 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
5850 (trunctfif2): Likewise.
5851 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
5852 (extenddftf2): Rework 128-bit floating point conversions to
5853 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
5854 KFmode expanders into one function.
5855 (extenddf<mode>2): Likewise.
5856 (extenddftf2_fprs): Likewise.
5857 (extenddf<mode>2_fprs): Likewise.
5858 (extenddftf2_vsx): Likewise.
5859 (extenddf<mode>2_vsx): Likewise.
5860 (extendsftf2): Likewise.
5861 (extendsf<mode>2): Likewise.
5862 (trunctfdf2): Likewise.
5863 (trunc<mode>df2): Likewise.
5864 (trunctfdf2_internal1): Likewise.
5865 (trunc<mode>df2_internal1): Likewise.
5866 (trunctfdf2_internal2): Likewise.
5867 (trunc<mode>df2_internal2): Likewise.
5868 (trunctfsf2): Likewise.
5869 (trunc<mode>sf2): Likewise.
5870 (trunctfsf2_fprs): Likewise.
5871 (trunc<mode>sf2_fprs): Likewise.
5872 (floatsit2f): Likewise.
5873 (floatsi<mode>2): Likewise.
5874 (fix_trunc_helper): Likewise.
5875 (fix_trunc_helper<mode>): Likewise.
5876 (fix_trunctfsi2): Likewise.
5877 (fix_trunc<mode>si2): Likewise.
5878 (fix_trunctfsi2_fprs): Likewise.
5879 (fix_trunc<mode>si2_fprs): Likewise.
5880 (fix_trunctfsi2_internal): Likewise.
5881 (fix_trunc<mode>si2_internal): Likewise.
5882 (fix_trunctfdi2): Likewise.
5883 (fix_trunc<mode>di2): Likewise.
5884 (fixuns_trunctf<mode>2): Likewise.
5885 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
5886 (floatditf2): Likewise.
5887 (floatdi<mode>2): Likewise.
5888 (floatuns<mode>tf2): Likewise.
5889 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
5890 (cmptf_internal1): Use a mode iterator to add support for both
5891 types (IFmode, TFmode) that support IBM extended double.
5892 (cmp<mode>_internal1): Likewise.
5893 (cmptf_internal2): Likewise.
5894 (cmp<mode>_internal2): Likewise.
5896 * doc/extend.texi (Floating Types): Document __ibm128 and
5897 __float128 on PowerPC.
5899 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5900 -mfloat128 and -mno-float128.
5902 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
5904 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
5905 floating point modes that can go in vector registers.
5906 (MODES_TIEABLE_P): Move tests for vector modes before tests for
5907 scalar floating point, so that IEEE 128-bit floating point that
5908 can go in vector registers bind with vectors and not FP.
5909 (struct rs6000_args): Add libcall field.
5911 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
5912 and -mfloat128-software switches. Replace them with a binary
5914 (-mfloat128): Likewise.
5916 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
5917 128-bit floating point types in GPRs, even if the appropriate
5918 option enabling the type was not used.
5919 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
5921 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
5922 pre-decrement on IEEE 128-bit floating point values.
5923 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
5924 is IEEE 128-bit floating point.
5925 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
5926 128-bit floating point types that can go in vector registers.
5927 (rs6000_option_override_internal): Change -mfloat128-none and
5928 -mfloat128-software to -mfloat128, and move code to be near other
5929 VSX option handling.
5930 (rs6000_option_override_internal): Disable -mfloat128 if we don't
5931 have the Altivec ABI.
5932 (rs6000_init_builtins): Don't make TFmode use either IFmode or
5933 KFmode floating point nodes. Instead, have three separate nodes.
5934 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
5935 eventually moving the long double default to IEEE 128-bit floating
5937 (rs6000_opt_masks): Add -mfloat128.
5938 (struct rs6000_opt_var): Fix typo in comment.
5939 (init_cumulative_args): Initialize libcall field in
5941 (rs6000_function_arg): Treat library functions as if they had
5942 prototypes to prevent IEEE 128-bit support functions from passing
5943 arguments in both GPRs and vector registers.
5944 (rs6000_arg_partial_bytes): Likewise.
5946 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
5947 an option that can be turned on via -mcpu=<xxx>.
5949 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
5952 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5953 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
5954 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
5955 double is IBM extended double.
5957 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
5960 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
5962 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
5963 * genconditions.c: Define CHECKING_P in the generated code.
5964 * genextract.c: Use flag_checking in insn_extract.
5965 * gengtype.c (main): Remove conditional compilation.
5966 * gengtype.h: Likewise.
5968 2015-10-29 Jeff Law <law@redhat.com>
5970 PR tree-optimization/67892
5971 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
5973 (thread_through_normal_block): If we have seen a backedge, then
5974 do nothing. No longer call find_jump_threads_backwards here.
5975 (thread_across_edge): Use find_jump_threads_backwards to find
5976 jump threads if the old style threader was not successful.
5977 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
5978 gsi_last_nondebug_bb. Return NULL if the block does not end
5979 with a control statement.
5980 (find_jump_threads_backwards): Setup code moved here from
5981 tree-ssa-threadedge.c::thread_through_normal_block. Accept
5982 single edge argument instead of name & block.
5983 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
5986 2015-10-29 Tom de Vries <tom@codesourcery.com>
5988 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
5991 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
5993 * omp-low.c (lower_omp_target): Remove unreachable code & merge
5996 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
5998 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
6000 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
6002 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6003 guard_bb0 and use guard_bb throughout.
6005 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
6007 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6010 2015-10-29 Richard Biener <rguenther@suse.de>
6013 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
6016 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
6018 * alias.c: Reorder #include statements and remove duplicates.
6020 * attribs.c: Likewise.
6021 * auto-inc-dec.c: Likewise.
6022 * auto-profile.c: Likewise.
6023 * bb-reorder.c: Likewise.
6024 * bt-load.c: Likewise.
6025 * builtins.c: Likewise.
6026 * caller-save.c: Likewise.
6027 * calls.c: Likewise.
6030 * cfganal.c: Likewise.
6031 * cfgbuild.c: Likewise.
6032 * cfgcleanup.c: Likewise.
6033 * cfgexpand.c: Likewise.
6034 * cfghooks.c: Likewise.
6035 * cfgloop.c: Likewise.
6036 * cfgloopanal.c: Likewise.
6037 * cfgloopmanip.c: Likewise.
6038 * cfgrtl.c: Likewise.
6039 * cgraph.c: Likewise.
6040 * cgraphbuild.c: Likewise.
6041 * cgraphclones.c: Likewise.
6042 * cgraphunit.c: Likewise.
6043 * cilk-common.c: Likewise.
6044 * combine-stack-adj.c: Likewise.
6045 * combine.c: Likewise.
6046 * compare-elim.c: Likewise.
6047 * convert.c: Likewise.
6048 * coverage.c: Likewise.
6049 * cppbuiltin.c: Likewise.
6050 * cprop.c: Likewise.
6052 * cselib.c: Likewise.
6053 * data-streamer-in.c: Likewise.
6054 * data-streamer-out.c: Likewise.
6055 * data-streamer.c: Likewise.
6056 * dbxout.c: Likewise.
6059 * debug.c: Likewise.
6060 * df-core.c: Likewise.
6061 * df-problems.c: Likewise.
6062 * df-scan.c: Likewise.
6064 * dojump.c: Likewise.
6065 * dominance.c: Likewise.
6066 * double-int.c: Likewise.
6068 * dumpfile.c: Likewise.
6069 * dwarf2asm.c: Likewise.
6070 * dwarf2cfi.c: Likewise.
6071 * dwarf2out.c: Likewise.
6072 * emit-rtl.c: Likewise.
6073 * except.c: Likewise.
6074 * explow.c: Likewise.
6075 * expmed.c: Likewise.
6077 * final.c: Likewise.
6078 * fixed-value.c: Likewise.
6079 * fold-const.c: Likewise.
6080 * function.c: Likewise.
6081 * fwprop.c: Likewise.
6083 * generic-match-head.c: Likewise.
6084 * ggc-common.c: Likewise.
6085 * gimple-builder.c: Likewise.
6086 * gimple-expr.c: Likewise.
6087 * gimple-fold.c: Likewise.
6088 * gimple-iterator.c: Likewise.
6089 * gimple-low.c: Likewise.
6090 * gimple-match-head.c: Likewise.
6091 * gimple-pretty-print.c: Likewise.
6092 * gimple-ssa-isolate-paths.c: Likewise.
6093 * gimple-ssa-strength-reduction.c: Likewise.
6094 * gimple-streamer-in.c: Likewise.
6095 * gimple-streamer-out.c: Likewise.
6096 * gimple-walk.c: Likewise.
6097 * gimple.c: Likewise.
6098 * gimplify-me.c: Likewise.
6099 * gimplify.c: Likewise.
6100 * godump.c: Likewise.
6101 * graph.c: Likewise.
6102 * graphite-poly.c: Likewise.
6103 * haifa-sched.c: Likewise.
6104 * hw-doloop.c: Likewise.
6105 * ifcvt.c: Likewise.
6106 * incpath.c: Likewise.
6107 * init-regs.c: Likewise.
6108 * internal-fn.c: Likewise.
6109 * ipa-chkp.c: Likewise.
6110 * ipa-comdats.c: Likewise.
6111 * ipa-cp.c: Likewise.
6112 * ipa-devirt.c: Likewise.
6113 * ipa-icf-gimple.c: Likewise.
6114 * ipa-icf.c: Likewise.
6115 * ipa-inline-analysis.c: Likewise.
6116 * ipa-inline-transform.c: Likewise.
6117 * ipa-inline.c: Likewise.
6118 * ipa-polymorphic-call.c: Likewise.
6119 * ipa-profile.c: Likewise.
6120 * ipa-prop.c: Likewise.
6121 * ipa-pure-const.c: Likewise.
6122 * ipa-ref.c: Likewise.
6123 * ipa-reference.c: Likewise.
6124 * ipa-split.c: Likewise.
6125 * ipa-utils.c: Likewise.
6126 * ipa-visibility.c: Likewise.
6128 * ira-build.c: Likewise.
6129 * ira-color.c: Likewise.
6130 * ira-conflicts.c: Likewise.
6131 * ira-costs.c: Likewise.
6132 * ira-emit.c: Likewise.
6133 * ira-lives.c: Likewise.
6136 * langhooks.c: Likewise.
6138 * lists.c: Likewise.
6139 * loop-doloop.c: Likewise.
6140 * loop-init.c: Likewise.
6141 * loop-invariant.c: Likewise.
6142 * loop-iv.c: Likewise.
6143 * loop-unroll.c: Likewise.
6144 * lower-subreg.c: Likewise.
6145 * lra-assigns.c: Likewise.
6146 * lra-coalesce.c: Likewise.
6147 * lra-constraints.c: Likewise.
6148 * lra-eliminations.c: Likewise.
6149 * lra-lives.c: Likewise.
6150 * lra-remat.c: Likewise.
6151 * lra-spills.c: Likewise.
6153 * lto-cgraph.c: Likewise.
6154 * lto-compress.c: Likewise.
6155 * lto-opts.c: Likewise.
6156 * lto-section-in.c: Likewise.
6157 * lto-section-out.c: Likewise.
6158 * lto-streamer-in.c: Likewise.
6159 * lto-streamer-out.c: Likewise.
6160 * lto-streamer.c: Likewise.
6161 * mode-switching.c: Likewise.
6162 * modulo-sched.c: Likewise.
6163 * omp-low.c: Likewise.
6164 * optabs.c: Likewise.
6165 * opts-global.c: Likewise.
6166 * passes.c: Likewise.
6167 * plugin.c: Likewise.
6168 * postreload-gcse.c: Likewise.
6169 * postreload.c: Likewise.
6170 * predict.c: Likewise.
6171 * print-tree.c: Likewise.
6172 * profile.c: Likewise.
6174 * realmpfr.c: Likewise.
6175 * recog.c: Likewise.
6177 * reg-stack.c: Likewise.
6178 * regcprop.c: Likewise.
6179 * reginfo.c: Likewise.
6180 * regrename.c: Likewise.
6181 * regstat.c: Likewise.
6182 * reload.c: Likewise.
6183 * reload1.c: Likewise.
6184 * reorg.c: Likewise.
6185 * resource.c: Likewise.
6186 * rtl-chkp.c: Likewise.
6187 * rtl-error.c: Likewise.
6188 * rtlanal.c: Likewise.
6189 * rtlhooks.c: Likewise.
6190 * sanopt.c: Likewise.
6191 * sched-deps.c: Likewise.
6192 * sched-ebb.c: Likewise.
6193 * sched-rgn.c: Likewise.
6195 * shrink-wrap.c: Likewise.
6196 * simplify-rtx.c: Likewise.
6197 * stack-ptr-mod.c: Likewise.
6198 * statistics.c: Likewise.
6200 * stor-layout.c: Likewise.
6201 * store-motion.c: Likewise.
6202 * stringpool.c: Likewise.
6203 * symtab.c: Likewise.
6204 * target-globals.c: Likewise.
6205 * targhooks.c: Likewise.
6206 * toplev.c: Likewise.
6207 * tracer.c: Likewise.
6208 * trans-mem.c: Likewise.
6209 * tree-affine.c: Likewise.
6210 * tree-call-cdce.c: Likewise.
6211 * tree-cfg.c: Likewise.
6212 * tree-cfgcleanup.c: Likewise.
6213 * tree-chkp-opt.c: Likewise.
6214 * tree-chkp.c: Likewise.
6215 * tree-chrec.c: Likewise.
6216 * tree-complex.c: Likewise.
6217 * tree-data-ref.c: Likewise.
6218 * tree-dfa.c: Likewise.
6219 * tree-diagnostic.c: Likewise.
6220 * tree-dump.c: Likewise.
6221 * tree-eh.c: Likewise.
6222 * tree-emutls.c: Likewise.
6223 * tree-if-conv.c: Likewise.
6224 * tree-inline.c: Likewise.
6225 * tree-into-ssa.c: Likewise.
6226 * tree-iterator.c: Likewise.
6227 * tree-loop-distribution.c: Likewise.
6228 * tree-nested.c: Likewise.
6229 * tree-nrv.c: Likewise.
6230 * tree-object-size.c: Likewise.
6231 * tree-outof-ssa.c: Likewise.
6232 * tree-parloops.c: Likewise.
6233 * tree-phinodes.c: Likewise.
6234 * tree-predcom.c: Likewise.
6235 * tree-pretty-print.c: Likewise.
6236 * tree-profile.c: Likewise.
6237 * tree-scalar-evolution.c: Likewise.
6238 * tree-sra.c: Likewise.
6239 * tree-ssa-address.c: Likewise.
6240 * tree-ssa-alias.c: Likewise.
6241 * tree-ssa-ccp.c: Likewise.
6242 * tree-ssa-coalesce.c: Likewise.
6243 * tree-ssa-copy.c: Likewise.
6244 * tree-ssa-dce.c: Likewise.
6245 * tree-ssa-dom.c: Likewise.
6246 * tree-ssa-dse.c: Likewise.
6247 * tree-ssa-forwprop.c: Likewise.
6248 * tree-ssa-ifcombine.c: Likewise.
6249 * tree-ssa-live.c: Likewise.
6250 * tree-ssa-loop-ch.c: Likewise.
6251 * tree-ssa-loop-im.c: Likewise.
6252 * tree-ssa-loop-ivcanon.c: Likewise.
6253 * tree-ssa-loop-ivopts.c: Likewise.
6254 * tree-ssa-loop-manip.c: Likewise.
6255 * tree-ssa-loop-niter.c: Likewise.
6256 * tree-ssa-loop-prefetch.c: Likewise.
6257 * tree-ssa-loop-unswitch.c: Likewise.
6258 * tree-ssa-loop.c: Likewise.
6259 * tree-ssa-math-opts.c: Likewise.
6260 * tree-ssa-operands.c: Likewise.
6261 * tree-ssa-phiopt.c: Likewise.
6262 * tree-ssa-phiprop.c: Likewise.
6263 * tree-ssa-pre.c: Likewise.
6264 * tree-ssa-propagate.c: Likewise.
6265 * tree-ssa-reassoc.c: Likewise.
6266 * tree-ssa-sccvn.c: Likewise.
6267 * tree-ssa-scopedtables.c: Likewise.
6268 * tree-ssa-sink.c: Likewise.
6269 * tree-ssa-strlen.c: Likewise.
6270 * tree-ssa-structalias.c: Likewise.
6271 * tree-ssa-tail-merge.c: Likewise.
6272 * tree-ssa-ter.c: Likewise.
6273 * tree-ssa-threadedge.c: Likewise.
6274 * tree-ssa-threadupdate.c: Likewise.
6275 * tree-ssa-uncprop.c: Likewise.
6276 * tree-ssa-uninit.c: Likewise.
6277 * tree-ssa.c: Likewise.
6278 * tree-ssanames.c: Likewise.
6279 * tree-stdarg.c: Likewise.
6280 * tree-streamer-in.c: Likewise.
6281 * tree-streamer-out.c: Likewise.
6282 * tree-streamer.c: Likewise.
6283 * tree-switch-conversion.c: Likewise.
6284 * tree-tailcall.c: Likewise.
6285 * tree-vect-data-refs.c: Likewise.
6286 * tree-vect-generic.c: Likewise.
6287 * tree-vect-loop-manip.c: Likewise.
6288 * tree-vect-loop.c: Likewise.
6289 * tree-vect-patterns.c: Likewise.
6290 * tree-vect-slp.c: Likewise.
6291 * tree-vect-stmts.c: Likewise.
6292 * tree-vectorizer.c: Likewise.
6293 * tree-vrp.c: Likewise.
6296 * ubsan.c: Likewise.
6297 * value-prof.c: Likewise.
6298 * var-tracking.c: Likewise.
6299 * varasm.c: Likewise.
6300 * varpool.c: Likewise.
6301 * vtable-verify.c: Likewise.
6303 * wide-int-print.cc: Likewise.
6304 * wide-int.cc: Likewise.
6305 * xcoffout.c: Likewise.
6307 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
6309 * Makefile.in (NO_PIE_CFLAGS): New.
6310 (NO_PIE_FLAG): Likewise.
6311 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6312 (NO_PIE_FLAG_FOR_BUILD): Likewise.
6313 (BUILD_NO_PIE_CFLAGS): Likewise.
6314 (BUILD_NO_PIE_FLAG): Likewise.
6315 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
6316 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
6317 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
6318 $(BUILD_NO_PIE_CFLAGS).
6319 (BUILD_CXXFLAGS): Likewise.
6320 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
6321 $(BUILD_NO_PIE_FLAG).
6322 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
6323 (BUILD_NO_PIE_FLAG): Likewise.
6324 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6325 (NO_PIE_FLAG_FOR_BUILD): Likewise.
6326 * configure: Regenerated.
6328 2015-10-29 Richard Biener <rguenther@suse.de>
6331 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
6332 unsigned conditonal negation to ABS_EXPR.
6334 2015-10-29 Richard Biener <rguenther@suse.de>
6336 * gimple-match-head.c (gimple_simplify): Remove premature checking
6337 of builtin_decl_implicit of function calls we simplify.
6339 2015-10-29 Bin Cheng <bin.cheng@arm.com>
6341 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
6342 (get_computation_cost_at): Ditto.
6343 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
6346 2015-10-28 Tom de Vries <tom@codesourcery.com>
6348 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
6351 2015-10-28 Jason Merrill <jason@redhat.com>
6353 * Makefile.in (TAGS): Include libcpp and libiberty.
6355 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6357 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
6358 (extract_omp_for_data): Remove OpenACC special handling of
6361 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
6362 (struct parallel): Update comment.
6363 (nvptx_reorg): Likewise.
6364 (nvptx_neuter): Cleanup whitespace.
6366 2015-10-28 Richard Henderson <rth@redhat.com>
6368 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
6370 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6373 * config/avr/predicates.md (low_io_address_operand): Don't
6374 consider MODE when computing upper bound.
6375 (io_address_operand): Likewise.
6377 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
6379 * fold-const.c (operand_equal_p): Do not verify that types are
6380 compatible for MEM_REFs.
6382 2015-10-28 Richard Biener <rguenther@suse.de>
6384 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
6385 in simplifying VEC_COND_EXPR conditions.
6387 2015-10-28 Tom de Vries <tom@codesourcery.com>
6389 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
6390 into vi_next of a full_var.
6392 2015-10-28 Tom de Vries <tom@codesourcery.com>
6394 * tree-ssa-structalias.c (new_var_info, make_heapvar)
6395 (make_constraint_from_restrict, make_constraint_from_global_restrict)
6396 (create_function_info_for, create_variable_info_for_1)
6397 (create_variable_info_for): Add and handle add_id parameter.
6398 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
6399 (init_base_vars): Add extra argument to calls to new_var_info.
6400 (get_vi_for_tree): Add extra argument to call to
6401 create_variable_info_for.
6402 (process_constraint, do_deref, process_all_all_constraints): Add extra
6403 argument to calls to new_scalar_tmp_constraint_exp.
6404 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
6405 argument to calls to make_heapvar.
6406 (make_restrict_var_constraints): Add extra argument to call to
6407 make_constraint_from_global_restrict.
6408 (intra_create_variable_infos): Add extra argument to call to
6409 create_variable_info_for_1.
6410 (ipa_pta_execute): Add extra argument to call to
6411 create_function_info_for.
6413 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6415 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
6416 (sibcall_value): Likewise.
6418 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6420 * config/nvptx/nvptx.h (struct machine_function): Add
6422 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
6423 nvptx_expand_oacc_join): Declare.
6424 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
6425 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
6426 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
6427 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
6428 UNSPECV_JOINING, UNSPECV_JOIN): New.
6429 (BITS, BITD): New mode iterators.
6430 (br_true_uni, br_false_uni): New.
6431 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
6432 (oacc_dim_size, oacc_dim_pos): New.
6433 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
6434 (oacc_fork, oacc_join): New.
6435 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
6436 (worker_load<mode>, worker_store<mode>): New.
6437 (nvptx_barsync): New.
6438 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
6439 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
6440 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
6441 worker_bcast_sym): New.
6442 (nvptx_option_override): Initialize worker broadcast buffer.
6443 (nvptx_emit_forking, nvptx_emit_joining): New.
6444 (nvptx_init_axis_predicate): New.
6445 (nvptx_declare_function_name): Init axis predicates.
6446 (nvptx_expand_call): Add fork/join markers around routine call.
6447 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
6448 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
6449 (nvptx_gen_vcast): New.
6450 (struct wcast_data_t): New.
6451 (enum propagate_mask): New.
6452 (nvptx_gen_wcast): New.
6453 (nvptx_print_operand): Add 'S' case.
6454 (struct parallel): New.
6455 (parallel::parallel, parallel::~parallel): New.
6456 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
6457 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
6458 nvptx_find_par, nvptx_discover_pars): New.
6459 (nvptx_propagate): New.
6460 (vprop_gen, nvptx_vpropagate): New.
6461 (wprop_gen, nvptx_wpropagate): New.
6463 (nvptx_single, nvptx_skip_par): New.
6464 (nvptx_process_pars, nvptx_neuter_pars): New.
6465 (ntptx_reorg): Split blocks, generate parallel structure, apply
6467 (nvptx_cannot_copy_insn_p): New.
6468 (nvptx_file_end): Emit worker broadcast decl.
6469 (nvptx_goacc_fork_join): New.
6470 (TARGET_CANNOT_COPY_INSN_P): Override.
6471 (TARGET_GOACC_FORK_JOIN): Override.
6473 2015-10-28 Richard Biener <rguenther@suse.de>
6475 * fold-const.c (negate_expr_p): Adjust the division case to
6476 properly avoid introducing undefined overflow.
6477 (fold_negate_expr): Likewise.
6479 2015-10-28 Richard Biener <rguenther@suse.de>
6481 PR tree-optimization/65962
6482 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6483 Avoid creating loop carried dependences also for outer loops
6484 of the loop a use to replace is in.
6486 2015-10-28 Richard Biener <rguenther@suse.de>
6488 * common.opt (fchecking): New flag controlling flag_checking.
6489 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
6490 * timevar.c (timer::print): Adjust output.
6491 * doc/invoke.texi (fchecking): Document.
6493 2015-10-28 Richard Biener <rguenther@suse.de>
6496 * fold-const.c (negate_expr_p): We cannot negate plus or minus
6497 if overflow is not wrapping. Likewise multiplication unless
6498 one operand is constant and not power of two.
6499 (fold_negate_expr): Adjust accordingly.
6501 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6503 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
6505 (is_oacc_parallel, is_oacc_kernels): New.
6506 (enclosing_target_ctx): May return NULL.
6507 (ctx_in_oacc_kernels_region): New.
6508 (check_oacc_kernel_gwv): New.
6509 (oacc_loop_or_target_p): Delete.
6510 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
6511 operands. Strip reductions fro kernels.
6512 (scan_omp_target): Don't calculate gwv mask.
6513 (lower_oacc_head_mark, lower_oacc_loop_marker,
6514 lower_oacc_head_tail): New.
6515 (struct oacc_collapse): New.
6516 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
6517 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6518 Remove OpenACC handling.
6519 (expand_oacc_for): New.
6520 (expand_omp_for): Call expand_oacc_for.
6521 (lower_omp_for): Call lower_oacc_head_tail.
6523 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
6525 * attribs.c (check_attribute_tables): New function, broken out from...
6526 (init_attributes): Use it.
6527 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
6528 gcc_checking_assert and checking_* functions to eliminate
6529 ENABLE_CHECKING conditionals.
6530 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
6531 (pass_expand::execute): Likewise.
6532 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
6533 * cgraphunit.c (mark_functions_to_output): Likewise.
6534 (cgraph_node::expand_thunk): Likewise.
6535 (symbol_table::compile): Likewise.
6536 * ddg.c (add_cross_iteration_register_deps): Likewise.
6537 (create_ddg_all_sccs): Likewise.
6538 * df-core.c (df_finish_pass, df_analyze): Likewise.
6539 * diagnostic-core.h: Likewise.
6540 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
6541 * dominance.c (calculate_dominance_info): Likewise.
6542 * dwarf2out.c (add_AT_die_ref): Likewise.
6543 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
6544 (loc_list_from_tree, gen_lexical_block_die): Likewise.
6545 gen_type_die_with_usage, gen_type_die): Likewise.
6546 (dwarf2out_decl): Likewise.
6547 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
6548 * except.c (duplicate_eh_regions): Likewise.
6549 * fwprop.c (register_active_defs, update_df_init): Likewise.
6550 (fwprop_init, fwprop_done): Likewise.
6551 (update_uses): Likewise.
6552 * ggc-page.c (ggc_grow): Likewise.
6553 * gimplify.c (gimplify_body): Likewise.
6554 (gimplify_hasher::equal): Likewise.
6555 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
6556 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
6558 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
6559 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
6560 * hash-table.h (::find_empty_slot_for_expand): Likewise.
6561 * ifcvt.c (if_convert): Likewise.
6562 * ipa-cp.c (ipcp_propagate_stage): Likewise.
6563 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
6564 (odr_type_p, odr_types_equivalent_p): Likewise.
6565 (add_type_duplicate, get_odr_type): Likewise.
6566 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
6567 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
6568 (sem_item_optimizer::verify_classes): Likewise.
6569 (sem_item_optimizer::traverse_congruence_split): Likewise.
6570 (sem_item_optimizer::checking_verify_classes): New.
6571 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
6573 * cfgrtl.c (commit_edge_insertions): Likewise.
6574 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
6575 (rtl_flow_call_edges_add): Likewise.
6576 * cgraph.c (symbol_table::create_edge): Likewise.
6577 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
6578 * cgraph.h (symtab_node): Likewise.
6579 (symtab_node::checking_verify_symtab_nodes): Define.
6580 (cgraph_node::checking_verify_cgraph_nodes): Define.
6581 * cfghooks.h (checking_verify_flow_info): Define.
6582 * cfgloop.h (checking_verify_loop_structure): Define.
6583 * dominance.h (checking_verify_dominators): Define.
6584 * et-forest.c: Fix comment.
6585 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
6586 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6587 ENABLE_CHECKING conditionals.
6588 * ipa-inline-transform.c (save_inline_function_body): Likewise.
6589 * ipa-inline.c (inline_small_functions): Likewise.
6590 (early_inliner): Likewise.
6591 * ipa-inline.h (estimate_edge_growth): Likewise.
6592 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6593 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6594 (ipa_single_use): Likewise.
6595 * ira-int.h: Likewise.
6596 * ira.c (ira): Likewise.
6597 * loop-doloop.c (doloop_optimize_loops): Likewise.
6598 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
6599 * loop-invariant.c (move_loop_invariants): Likewise.
6600 * lra-assigns.c (lra_assign): Likewise.
6601 * lra-constraints.c (lra_constraints): Likewise.
6602 * lra-eliminations.c (lra_eliminate): Likewise.
6603 * lra-int.h (struct lra_reg): Likewise.
6604 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
6605 (lra_create_live_ranges_1): Likewise.
6606 * lra-remat.c (create_remat_bb_data): Likewise.
6607 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
6609 (check_rtl): Always define. Remove incorrect guard around
6610 extract_constrain_insn call.
6611 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
6612 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6613 ENABLE_CHECKING conditionals.
6614 * lto-streamer-out.c (DFS::DFS): Likewise.
6615 (lto_output): Likewise.
6616 * lto-streamer.c (lto_streamer_init): Likewise.
6617 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
6618 expand_omp_target, execute_expand_omp): Likewise.
6619 (lower_omp_target): Likewise.
6620 * passes.c (execute_function_todo): Likewise.
6621 (execute_todo, execute_one_pass): Likewise.
6622 (verify_curr_properties): Always define.
6623 * predict.c (tree_estimate_probability: Use flag_checking,
6624 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6625 ENABLE_CHECKING conditionals.
6626 (propagate_freq): Likewise.
6627 * pretty-print.c (pp_format): Likewise.
6628 * real.c (real_to_decimal_for_mode): Likewise.
6629 * recog.c (split_all_insns): Likewise.
6630 * regcprop.c (kill_value_one_regno): Likewise.
6631 (copy_value): Likewise.
6632 (validate_value_data): Define unconditionally.
6633 * reload.c: Fix comment.
6634 * timevar.c: Include options.h
6635 * tree-ssa.h (checking_verify_ssa): Define.
6636 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
6637 * sched-deps.c (CHECK): Remove unused macro.
6638 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
6639 gcc_checking_assert and checking_* functions to eliminate
6640 ENABLE_CHECKING conditionals.
6641 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
6642 * sel-sched.c (struct moveop_static_params): Likewise.
6643 (find_best_reg_for_expr, move_cond_jump): Likewise.
6644 (move_op_orig_expr_not_found): Likewise.
6645 (code_motion_process_successors, move_op): Likewise.
6646 * ssa-iterators.h (first_readonly_imm_use): Likewise.
6647 (next_readonly_imm_use): Likewise.
6648 * store-motion.c (compute_store_table): Likewise.
6649 * symbol-summary.h (function_summary::function_summary): Likewise.
6650 * target.h (cumulative_args_t): Likewise.
6651 (get_cumulative_args, pack_cumulative_args): Likewise.
6652 * timevar.c: (timer::print): Likewise.
6653 * trans-mem.c (ipa_tm_execute): Likewise.
6654 * tree-cfg.c (move_stmt_op): Likewise.
6655 (move_sese_region_to_fn): Likewise.
6656 (gimple_flow_call_edges_add): Likewise.
6657 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
6659 * tree-eh.c (remove_unreachable_handlers): Likewise.
6660 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
6661 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
6662 * tree-into-ssa.c (update_ssa): Likewise.
6663 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
6664 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
6665 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
6666 * tree-predcom.c (suitable_component_p): Likewise.
6667 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
6668 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
6669 * tree-ssa-live.c (verify_live_on_entry): Likewise.
6670 * tree-ssa-live.h (register_ssa_partition): Likewise.
6671 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
6672 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
6673 (tree_transform_and_unroll_loop): Likewise.
6674 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6675 * tree-ssa-operands.c (get_expr_operands): Likewise.
6676 * tree-ssa-propagate.c (replace_exp_1): Likewise.
6677 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
6678 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
6679 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
6680 * tree-ssanames.c (release_ssa_name_fn): Likewise.
6681 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
6682 * tree-vect-loop-manip.c
6683 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
6684 (slpeel_checking_verify_cfg_after_peeling): Likewise.
6685 (vect_do_peeling_for_loop_bound): Likewise.
6686 (vect_do_peeling_for_alignment): Likewise.
6687 * tree-vrp.c (supports_overflow_infinity): Likewise.
6688 (set_value_range): Likewise.
6689 * tree.c (free_lang_data_in_cgraph): Likewise.
6690 * value-prof.c (gimple_remove_histogram_value): Likewise.
6691 (free_hist): Likewise.
6692 * var-tracking.c (canonicalize_values_star): Likewise.
6693 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
6695 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6697 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
6698 IFN_GOACC_LOOP): New.
6699 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
6700 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
6701 IFN_UNIQUE_OACC_TAIL_MARK.
6702 (enum ifn_goacc_loop_kind): New.
6703 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
6704 IFN_UNIQUE_OACC_JOIN cases.
6705 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
6706 (expand_GOACC_LOOP): New.
6707 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
6708 * omp-low.c: Include gimple-pretty-print.h.
6709 (struct oacc_loop): New.
6710 (enum oacc_loop_flags): New.
6711 (oacc_thread_numbers): New.
6712 (oacc_xform_loop): New.
6713 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
6714 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
6715 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
6716 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
6717 oacc_loop_discovery): New.
6718 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
6719 oacc_loop_process): New.
6720 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
6721 (execute_oacc_device_lower): Discover & process loops. Process
6723 * target.def (goacc.fork_join): Change sense of hook, clarify
6725 * doc/tm.texi: Regenerated.
6727 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6729 * target-insns.def (oacc_fork, oacc_join): Define.
6730 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
6731 (goacc.fork_join): New GOACC hook.
6732 * targhooks.h (default_goacc_fork_join): Declare.
6733 * omp-low.c (default_goacc_forkjoin): New.
6734 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
6735 * doc/tm.texi: Regenerate.
6737 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6739 * omp-low.c (oacc_init_rediction_array): New.
6740 (oacc_initialize_reduction_data): Initialize array.
6742 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6744 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
6746 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6748 * internal-fn.c (expand_UNIQUE): New.
6749 * internal-fn.h (enum ifn_unique_kind): New.
6750 * internal-fn.def (IFN_UNIQUE): New.
6751 * target-insns.def (unique): Define.
6752 * gimple.h (gimple_call_internal_unique_p): New.
6753 * gimple.c (gimple_call_same_target_p): Check internal fn
6755 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
6756 * tree-ssa-threadedge.c
6757 (record_temporary_equivalences_from_stmts): Likewise.
6758 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
6760 2015-10-27 Richard Henderson <rth@redhat.com>
6763 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
6764 narrowing subregs on SSE and MMX registers.
6765 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
6766 appear to be sub-words of multi-register pseudos must be rejected.
6767 * doc/tm.texi: Regenerate.
6769 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6772 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
6773 operands[0] is a reg before taking its REGNO in split condition.
6774 (*movdi_aarch64): Likewise.
6776 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6778 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
6779 Handle floating point inner modes properly.
6781 2015-10-27 Alan Hayward <alan.hayward@arm.com>
6784 (vectorizable_live_operation): Change iterator.
6786 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6787 Aditya Kumar <aditya.k7@samsung.com>
6789 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
6790 function to schedule based on isl_schedule_node.
6791 (get_schedule_map_st): New schedule optimizer based on
6793 (scop_get_domains): New. Return the isl_union_set containing the
6794 domains of all the pbbs.
6795 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
6797 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
6800 * calls.c (prepare_call_address): Don't handle -fno-plt here.
6801 * config/i386/i386.c (ix86_expand_call): Generate indirect call
6802 via GOT for -fno-plt. Support indirect call via GOT for x32.
6803 * config/i386/predicates.md (sibcall_memory_operand): Allow
6806 2015-10-27 Richard Biener <rguenther@suse.de>
6808 PR tree-optimization/68104
6809 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
6810 strided access check ...
6811 (vect_compute_data_refs_alignment): ... here.
6813 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
6814 Joseph Myers <joseph@codesourcery.com>
6815 Mark Shinwell <shinwell@codesourcery.com>
6816 Andrew Stubbs <ams@codesourcery.com>
6817 Rich Felker <dalias@libc.org>
6819 * config.gcc: Handle --enable-fdpic.
6820 * config/sh/constraints.md (Ccl): New constraint.
6821 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
6822 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
6824 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
6826 * config/sh/sh-protos.h (function_symbol_result): New struct.
6827 (function_symbol): Return function_symbol_result.
6828 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
6830 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
6832 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
6833 (sh_option_override): Force -fPIC if FDPIC is in effect.
6834 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
6835 UNSPEC_GOTOFFFUNCDESC cases.
6836 (prepare_move_operands): Use FDPIC initial GOT register for
6837 TLS-related GOT access; inhibit cross-section address offset constants
6839 (sh_assemble_integer): New function.
6840 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
6841 PC-relative call sites.
6842 (expand_ashiftrt): Adapt invocation of function_symbol.
6843 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
6844 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
6845 UNSPEC_GOTOFFFUNCDESC.
6846 (legitimize_pic_address): Resolve function symbols to function
6847 descriptors for FDPIC. Do not use GOT-relative addressing for local
6848 data that may be read-only on FDPIC.
6849 (sh_emit_storesi, sh_emit_storehi): New functions.
6850 (sh_trampoline_init): Generate FDPIC trampolines.
6851 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
6852 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
6853 (sh_output_mi_thunk): Generate FDPIC call.
6854 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
6855 FDPIC, generate call site labels to use PC-relative addressing rather
6856 than GOT-relative addressing.
6857 (sh_conditional_register_usage): Make PIC register fixed and call used
6858 when FDPIC is in effect.
6859 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
6860 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
6861 sh_get_fdpic_reg_initial_val): New functions.
6862 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
6864 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
6865 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
6866 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
6867 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
6869 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
6870 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
6871 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
6872 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
6874 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
6875 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
6876 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
6877 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
6878 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
6879 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
6880 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
6881 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
6882 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
6883 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
6884 block_move_real, block_lump_real, block_move_real_i4,
6885 block_lump_real_i4): Add support for FDPIC calls.
6886 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
6887 call_value_pop): Adjust for new function_symbol signature.
6888 * config/sh/sh.opt (-mfdpic): New option.
6889 * doc/install.texi (Options specification): Document --enable-fdpic.
6890 * doc/invoke.texi (SH Options): Document -mfdpic.
6893 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
6895 PR tree-optimization/65963
6896 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6897 LSHIFT_EXPRs as equivalent MULT_EXPRs.
6899 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6902 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
6903 * config/arm/constraints.md (Dp): Update callsite.
6904 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
6906 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6908 * builtins.c (fold_builtin_load_exponent): Rename to...
6909 (fold_const_builtin_load_exponent): ...this and only handle
6911 (fold_builtin_2): Update accordingly.
6912 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
6914 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6916 * builtins.c (fold_builtin_logb): Rename to...
6917 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
6918 (fold_builtin_significand): Rename to...
6919 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
6920 (fold_builtin_1): Update accordingly.
6922 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6924 * builtins.c (fold_builtin_fmin_fmax): Delete.
6925 (fold_builtin_2): Handle constant fmin and fmax arguments here.
6926 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
6928 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
6930 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
6931 for register extension into sign and zero register extension.
6932 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
6933 for sign and zero register extension.
6934 (cortexa57_addrcost_table): Likewise.
6935 (xgene1_addrcost_table): Likewise.
6937 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6939 * fold-const.c (fold_minmax): Delete.
6940 (fold_binary_loc): Don't call it.
6941 * match.pd: Add rules previously handled by fold_minmax.
6943 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6945 * builtins.c (fold_builtin_fma): Remove constant handling.
6946 (fold_builtin_3): Handle constant fma arguments here.
6948 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6950 * builtins.c (fold_builtin_fabs): Remove constant handling.
6951 (fold_builtin_abs): Likewise.
6953 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6955 * builtins.c (fold_builtin_copysign): Delete.
6956 (fold_builtin_2): Handle constant copysign arguments here.
6957 * match.pd: Add rules previously handled by fold_builtin_copysign.
6959 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6961 * builtins.c (fold_builtin_signbit): Delete.
6962 (fold_builtin_2): Handle constant signbit arguments here.
6963 * match.pd: Add rules previously handled by fold_builtin_signbit.
6965 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6967 * match.pd: Handle sqrt(x) cmp 0 specially.
6969 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
6971 * tree-vect-generic.c (expand_vector_operations_1): Check
6972 optab type before using it.
6974 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6976 * config/aarch64/aarch64-protos.h
6977 (struct tune_params): Add autoprefetcher_model field.
6978 * config/aarch64/aarch64.c: Include params.h
6979 (generic_tunings): Specify autoprefetcher_model value.
6980 (cortexa53_tunings): Likewise.
6981 (cortexa57_tunings): Likewise.
6982 (cortexa72_tunings): Likewise.
6983 (thunderx_tunings): Likewise.
6984 (xgene1_tunings): Likewise.
6985 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
6986 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
6987 (aarch64_override_options_internal): Set
6988 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
6990 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6992 * builtins.c (fold_builtin_exponent): Delete.
6993 (fold_builtin_2): Handle constant expN arguments here.
6994 * match.pd: Fold expN(logN(x)) -> x.
6996 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6998 * builtins.c (fold_builtin_powi): Delete.
6999 (fold_builtin_2): Handle constant powi arguments here.
7000 * match.pd: Add rules previously handled by fold_builtin_powi.
7002 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7004 * builtins.c (fold_builtin_pow): Delete in favor of...
7005 (fold_const_builtin_pow): ...this new function. Only handle constant
7007 (fold_builtin_2): Update accordingly.
7008 * match.pd: Add rules previously handled by fold_builtin_pow.
7010 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7012 * builtins.c (fold_builtin_hypot): Delete.
7013 (fold_builtin_2): Handle constant hypot arguments here.
7014 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
7015 hypot(x, x) to fabs(x)*sqrt(2).
7017 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7019 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
7020 instead of make_ssa_name if not yet in SSA form.
7022 2015-10-27 Richard Biener <rguenther@suse.de>
7024 * cfg.c (free_edge): Add function argument and use it instead of cfun.
7025 (clear_edges): Likewise.
7026 * cfg.h (clear_edges): Adjust prototype.
7027 * cfgexpand.c (pass_expand::execute): Adjust.
7028 * cfgloop.c (release_recorded_exits): Add function argument and use
7030 * cfgloop.h (release_recorded_exits): Adjust prototype.
7031 (loops_state_satisfies_p): Add overload with function argument.
7032 (loops_state_set): Likewise.
7033 (loops_state_clear): Likewise.
7034 (struct loop_iterator): Add function argument to constructor
7035 and iterator and use it instead of cfun.
7036 (FOR_EACH_LOOP_FN): New macro.
7037 (loop_optimizer_finalize): Add overload with function argument.
7038 * loop-init.c (loop_optimizer_init): Adjust.
7039 (fix_loop_structure): Likewise.
7040 (loop_optimizer_finaliz): Add function argument and use it
7042 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
7043 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
7044 * cgraph.c (release_function_body): Do not push/pop cfun.
7045 * final.c (rest_of_clean_state): Adjust.
7046 * graphite.c (graphite_finalize): Likewise.
7047 * tree-ssa-copy.c (fini_copy_prop): Likewise.
7048 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7049 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
7050 (tree_unroll_loops_completely): Likewise.
7051 (pass_complete_unrolli::execute): Likewise.
7052 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
7053 Add function argument and use it instead of cfun.
7054 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
7056 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
7057 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
7059 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
7060 * tree-ssanames.c (fini_ssanames): Add function argument and use it
7062 * tree-ssanames.c (fini_ssanames): Adjust prototype.
7063 * tree-vrp.c (execute_vrp): Adjust.
7064 * value-prof.c (free_histograms): Add function argument and use it
7066 * value-prof.h (free_histograms): Adjust prototype.
7068 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
7070 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
7071 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
7072 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
7074 2015-10-27 Tom de Vries <tom@codesourcery.com>
7076 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
7079 2015-10-27 Bin Cheng <bin.cheng@arm.com>
7081 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
7082 (inv_can_prop_to_addr_use): New function.
7083 (record_use): Call can_prop_to_addr_uses, set the new field.
7084 (get_inv_cost): Count cost if inv can't be propagated into its
7087 2015-10-26 Doug Evans <dje@google.com>
7089 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
7091 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
7093 * match.pd (fold_widened_comparison): Apply simplifications to all
7096 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
7098 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
7099 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
7100 * doc/tm.texi: Regenerated.
7101 * reorg.c (dbr_schedule): Use new hook.
7102 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
7104 2015-10-26 Jeff Law <law@redhat.com>
7106 PR tree-optimization/68013
7107 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7108 Make sure the first block in the path is in VISITED_BBs.
7110 2015-10-26 Richard Biener <rguenther@suse.de>
7111 Dominik Vogt <vogt@linux.vnet.ibm.com>
7114 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
7115 Properly prune ref->ref for accesses outside of ref.
7117 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7119 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
7120 new statements to be inserted if inplace. Allow calls to have
7123 2015-10-26 Richard Biener <rguenther@suse.de>
7125 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
7126 (do_valueize): New function.
7127 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
7129 * tree-ssa-threadedge.c: Remove builtins.h include, include
7131 (fold_assignment_stmt): Remove.
7132 (threadedge_valueize): New function.
7133 (record_temporary_equivalences_from_stmts): Use
7134 gimple_fold_stmt_to_constant_1, note additional cleanup
7137 2015-10-26 Richard Biener <rguenther@suse.de>
7139 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
7140 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
7142 2015-10-26 Alan Hayward <alan.hayward@arm.com>
7144 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
7145 VEC_COND_EXPR types.
7147 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7149 * auto-inc-dec.c (insert_move_insn_before): Delete.
7150 (attempt_change): Remember to cost the simple move in the
7151 FORM_PRE_ADD and FORM_POST_ADD cases.
7153 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
7156 * config/sh/sh.c (sh_vector_mode_supported_p): Use
7157 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
7159 2015-10-26 Tom de Vries <tom@codesourcery.com>
7161 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
7163 (intra_create_variable_infos): ... here.
7165 2015-10-26 Tom de Vries <tom@codesourcery.com>
7167 * tree-ssa-structalias.c (intra_create_variable_infos): Add
7168 restrict_pointer_p and recursive_restrict_p variables.
7170 2015-10-26 Tom de Vries <tom@codesourcery.com>
7172 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
7173 get_vi_for_tree call.
7175 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7178 * optabs.c (expand_atomic_compare_and_swap): Handle case when
7179 ptarget_oval or ptarget_bool are const0_rtx.
7181 2015-10-26 Christian Bruel <christian.bruel@st.com>
7183 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
7184 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
7185 * cp/method.c (implicitly_declare_fn): Likewise.
7186 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
7187 * java/class.c (add_method_1): Likewise.
7189 2015-10-26 Richard Biener <rguenther@suse.de>
7191 * alloc-pool.h (base_pool_allocator): Use placement new.
7192 (base_pool_allocator::remove): Likewise. Compute size outside of
7195 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7197 * builtins.c (do_real_to_int_conversion): New function.
7198 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
7199 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
7201 * match.pd: Add rules previously handled by fold_fixed_mathfn
7202 and fold_builtin_int_roundingfn.
7204 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7206 * match.pd: Use macros to define built-in operator lists.
7208 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
7209 Richard Biener <rguenther@suse.de>
7211 * genmatch.c (dt_simplify::gen): Skip captures that are
7213 (parser::parse_expr): Allow captures in results too.
7214 * builtins.c (fold_builtin_cexp): Delete.
7215 (fold_builtin_1): Handle constant cexp arguments here.
7216 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
7218 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
7220 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
7221 conditional compilation.
7222 (base_pool_allocator::remove): Use flag_checking.
7224 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
7226 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
7229 * dojump.c (do_compare_and_jump): Canonicalize both function and
7232 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
7235 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
7238 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7241 * ipa-polymorphic-call.c
7242 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
7243 instance offset with offset of outer type.
7245 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7247 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
7249 2015-10-23 Caroline Tice <cmtice@google.com>
7251 (from Richard Biener
7252 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
7253 call to iterative_hash_host_wide_int.
7255 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
7257 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
7260 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7262 * tree-vect-generic.c (expand_vector_operations_1): Check
7263 optab exists before use it.
7265 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7267 * tree-vect-generic.c (expand_vector_condition): Avoid
7268 uninitialized variable warning.
7270 2015-10-23 Jeff Law <law@redhat.com>
7272 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
7274 (execute_todo): Call it here.
7275 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
7277 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
7279 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
7280 Szabolcs Nagy <szabolcs.nagy@arm.com>
7282 * config.gcc (enable_secureplt): Add *-linux*-musl*.
7284 2015-10-23 Jeff Law <law@redhat.com>
7286 PR tree-optimization/67830
7287 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
7288 Explicitly verify the mask has no bits outside the type of
7289 the innermost operands.
7291 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
7292 Szabolcs Nagy <szabolcs.nagy@arm.com>
7294 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
7295 (MUSL_DYNAMIC_LINKER64): Define.
7296 (GNU_USER_DYNAMIC_LINKER32): Update.
7297 (GNU_USER_DYNAMIC_LINKER64): Update.
7298 (CHOOSE_DYNAMIC_LINKER): Update.
7300 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
7301 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
7302 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7303 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7304 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7305 (CHOOSE_DYNAMIC_LINKER): Update.
7306 (INCLUDE_DEFAULTS): Redefine.
7308 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
7310 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7312 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
7313 comparing addresses.
7315 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7317 * fold-const.c (operand_equal_p): Handle matching of vector
7320 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
7322 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
7324 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
7325 Andrew Pinski <apinski@cavium.com>
7327 PR rtl-optimization/67736
7328 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
7331 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7334 * tree.c (build_truth_vector_type): Support BLK mode
7335 returned for boolean vector.
7337 2015-10-23 Alan Hayward <alan.hayward@arm.com>
7339 PR tree-optimization/65947
7341 (vect_is_simple_reduction_1): Find condition reductions.
7342 (vect_model_reduction_cost): Add condition reduction costs.
7343 (get_initial_def_for_reduction): Add condition reduction initial var.
7344 (vect_create_epilog_for_reduction): Add condition reduction epilog.
7345 (vectorizable_reduction): Condition reduction support.
7346 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
7347 * doc/sourcebuild.texi (Vector-specific attributes): Document
7350 2015-10-23 Richard Biener <rguenther@suse.de>
7352 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
7355 2015-10-23 Richard Biener <rguenther@suse.de>
7356 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7358 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
7359 into (A ^ B) - B to match.pd
7360 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
7362 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
7364 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
7366 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
7368 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
7370 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
7371 INTEGER_CST@1)): New simplifier.
7373 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
7375 * builtins.c (integer_valued_real_p): Move to fold-const.c.
7376 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
7377 (fold_builtin_ceil, fold_builtin_round): Delete.
7378 (fold_builtin_1): Handle constant trunc, floor, ceil and round
7380 * convert.c (convert_to_real): Remove narrowing of rounding
7382 * fold-const.h (integer_valued_real_unary_p)
7383 (integer_valued_real_binary_p, integer_valued_real_call_p)
7384 (integer_valued_real_single_p, integer_valued_real_p): Declare.
7385 * fold-const.c (tree_single_nonnegative_warnv_p): Move
7386 name_registered_for_update_p check to SSA_NAME case statement.
7387 Don't call tree_simple_nonnegative_warnv_p for SSA names.
7388 (integer_valued_real_unary_p, integer_valued_real_binary_p)
7389 (integer_valued_real_call_p, integer_valued_real_single_p)
7390 (integer_valued_real_invalid_p): New functions.
7391 (integer_valued_real_p): Move from fold-const.c and rework
7392 to call the functions above. Handle SSA names.
7393 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
7394 * gimple-fold.c (gimple_assign_integer_valued_real_p)
7395 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
7396 (gimple_stmt_integer_valued_real_p): New functions.
7397 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
7398 Fold f(x)->x for the same f if x is known to be integer-valued.
7399 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
7400 the result. Canonicalize floor(x) as trunc(x) if x is
7403 2015-10-23 Tom de Vries <tom@codesourcery.com>
7405 * tree-ssa-structalias.c (intra_create_variable_infos): Use
7406 make_constraint_from.
7408 2015-10-23 Tom de Vries <tom@codesourcery.com>
7410 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
7411 setting of is_full_var in case of a single field.
7413 2015-10-22 Martin Sebor <msebor@redhat.com>
7416 * config/i386/i386.opt: Add missing periods to the ends of sentences.
7417 * config/msp430/msp430.opt: Same.
7419 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
7421 * doc/extend.exp (Global Register Variables): Rewrite.
7423 2015-10-22 Jeff Law <law@redhat.com>
7425 * genattrtab.c (main): If we do not have any annul-true or annul-false
7426 slots, then write out a dummy eligible_for_annul_true or
7427 eligible_for_annul_false as needed.
7429 2015-10-22 Nick Clifton <nickc@redhat.com>
7431 * config/msp430/msp430.opt: Add -msilicon-errata and
7432 -msilicon-errata-warn.
7433 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
7435 * doc/invoke.texi: Document new options.
7437 2015-10-22 Richard Biener <rguenther@suse.de>
7439 PR tree-optimization/58497
7440 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
7441 (expand_vector_operations_1): Use it. Lower operations on
7442 all uniform vectors to scalar operations if the HW supports it.
7444 2015-10-22 Richard Biener <rguenther@suse.de>
7446 PR tree-optimization/19049
7447 PR tree-optimization/65962
7448 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
7449 to strided accesses if single-element interleaving doesn't work.
7451 2015-10-22 Richard Biener <rguenther@suse.de>
7455 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
7456 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
7457 (expand_unop): Likewise.
7459 2015-10-22 Richard Biener <rguenther@suse.de>
7461 * fold-const.c (fold_addr_of_array_ref_difference): Properly
7462 convert operands before folding a MINUS_EXPR.
7463 (fold_binary_loc): Move simplification of MINUS_EXPR on
7464 converted POINTER_PLUS_EXPRs ...
7465 * match.pd: ... here.
7467 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
7469 * builtins.c (fold_builtin_tan): Delete.
7470 (fold_builtin_1): Handle constant tan arguments here.
7471 * match.pd: Simplify (tan (atan x)) to x.
7473 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
7475 * builtins.c (fold_builtin_cproj): Delete.
7476 (fold_builtin_1): Handle constant arguments here.
7477 (build_complex_cproj): Move and rename to...
7478 * tree.c: (build_complex_inf): ...this.
7479 * tree.h (build_complex_inf): Declare.
7480 * match.pd: Fold cproj(x)->x if x has no infinity.
7481 Use build_complex_inf for existing cproj rules.
7483 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7486 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
7487 already have a comparison result.
7489 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7492 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
7493 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
7494 (aarch64_classify_address): Likewise.
7495 (aarch64_secondary_reload): Likewise.
7496 (aarch64_override_options_after_change_1): Adjust.
7497 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7498 Use aarch64_nopcrelative_literal_loads.
7499 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7500 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
7503 2015-10-21 Martin Sebor <msebor@redhat.com>
7506 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
7507 (print_filtered_help): Reference aliased option's name and encourage
7508 readers to use it in preference to the alias if the former is not
7509 documented. Mention when using an option is diagnosed.
7510 * gcc.c (display_help): End each sentence with a period.
7512 * common.opt: End each sentence that describes an option with
7514 * config/aarch64/aarch64.opt: Same.
7515 * config/alpha/alpha.opt: Same.
7516 * config/arc/arc.opt: Same.
7517 * config/arm/arm.opt: Same.
7518 * config/avr/avr.opt: Same.
7519 * config/bfin/bfin.opt: Same.
7520 * config/c6x/c6x.opt: Same.
7521 * config/cr16/cr16.opt: Same.
7522 * config/cris/cris.opt: Same.
7523 * config/cris/linux.opt: Same.
7524 * config/darwin.opt: Same.
7525 * config/epiphany/epiphany.opt: Same.
7526 * config/fr30/fr30.opt: Same.
7527 * config/frv/frv.opt: Same.
7528 * config/ft32/ft32.opt: Same.
7529 * config/g.opt: Same.
7530 * config/h8300/h8300.opt: Same.
7531 * config/i386/cygming.opt: Same.
7532 * config/i386/djgpp.opt: Same.
7533 * config/i386/i386.opt: Same.
7534 * config/i386/interix.opt: Same.
7535 * config/i386/mingw-w64.opt: Same.
7536 * config/i386/mingw.opt: Same.
7537 * config/ia64/ia64.opt: Same.
7538 * config/ia64/ilp32.opt: Same.
7539 * config/iq2000/iq2000.opt: Same.
7540 * config/linux.opt: Same.
7541 * config/lm32/lm32.opt: Same.
7542 * config/lynx.opt: Same.
7543 * config/m32c/m32c.opt: Same.
7544 * config/m32r/m32r.opt: Same.
7545 * config/m68k/ieee.opt: Same.
7546 * config/m68k/m68k.opt: Same.
7547 * config/mcore/mcore.opt: Same.
7548 * config/mep/mep.opt: Same.
7549 * config/microblaze/microblaze.opt: Same.
7550 * config/mips/mips.opt: Same.
7551 * config/mmix/mmix.opt: Same.
7552 * config/mn10300/mn10300.opt: Same.
7553 * config/moxie/moxie.opt: Same.
7554 * config/msp430/msp430.opt: Same.
7555 * config/nios2/elf.opt: Same.
7556 * config/nios2/nios2.opt: Same.
7557 * config/nvptx/nvptx.opt: Same.
7558 * config/pa/pa-hpux.opt: Same.
7559 * config/pa/pa-hpux1010.opt: Same.
7560 * config/pa/pa-hpux1111.opt: Same.
7561 * config/pa/pa-hpux1131.opt: Same.
7562 * config/pa/pa.opt: Same.
7563 * config/pa/pa64-hpux.opt: Same.
7564 * config/pdp11/pdp11.opt: Same.
7565 * config/rl78/rl78.opt: Same.
7566 * config/rs6000/476.opt: Same.
7567 * config/rs6000/aix64.opt: Same.
7568 * config/rs6000/darwin.opt: Same.
7569 * config/rs6000/linux64.opt: Same.
7570 * config/rs6000/rs6000.opt: Same.
7571 * config/rs6000/sysv4.opt: Same.
7572 * config/s390/s390.opt: Same.
7573 * config/s390/tpf.opt: Same.
7574 * config/sh/sh.opt: Same.
7575 * config/sol2.opt: Same.
7576 * config/sparc/long-double-switch.opt: Same.
7577 * config/sparc/sparc.opt: Same.
7578 * config/spu/spu.opt: Same.
7579 * config/stormy16/stormy16.opt: Same.
7580 * config/tilegx/tilegx.opt: Same.
7581 * config/tilepro/tilepro.opt: Same.
7582 * config/v850/v850.opt: Same.
7583 * config/vax/vax.opt: Same.
7584 * config/visium/visium.opt: Same.
7585 * config/vms/vms.opt: Same.
7586 * config/vxworks.opt: Same.
7587 * config/xtensa/xtensa.opt: Same.
7589 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7590 Sebastian Pop <s.pop@samsung.com>
7592 * graphite-scop-detection.c (parameter_index_in_region): Update call to
7593 invariant_in_sese_p_rec.
7594 * graphite-sese-to-poly.c (extract_affine): Same.
7595 * sese.c (invariant_in_sese_p_rec): Pass in an extra
7596 parameter has_vdefs.
7597 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
7598 variable depends on virtual definitions in the current region.
7599 * sese.h (invariant_in_sese_p_rec): Update declaration.
7601 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7602 Sebastian Pop <s.pop@samsung.com>
7604 * graphite-scop-detection.c (build_scops): Do not handle scops
7605 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
7606 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
7608 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
7610 * config.in: Regenerate.
7611 * configure: Regenerate.
7612 * configure.ac (CHECKING_P): Define.
7613 * system.h: Use CHECKING_P.
7615 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7618 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
7619 is negative we don't know the type.
7620 (check_stmt_for_type_change): Skip constructors of non-polymorphic
7621 types as those won't help devirutalization.
7623 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7625 * fold-const.c (operand_equal_p): Add code matching empty constructors.
7627 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
7629 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
7631 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
7632 Add comments on sign of the result.
7633 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
7634 Recurse on operand #1 instead of operand #0.
7635 <CEIL_MOD_EXPR>: Do not recurse.
7636 <ROUND_MOD_EXPR>: Likewise.
7638 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7640 * cfgrtl.c (pass_free_cfg::execute): Adjust.
7641 * final.c (dbr_sequence_length): Always define.
7642 (shorten_branches): Adjust.
7643 * genattr-common.c (main): Always define DELAY_SLOTS.
7644 * genattr.c (main): Unconditionally declare functions and define
7645 macros related to delay slots.
7646 * genattrtab.c (write_eligible_delay): Adjust.
7647 (main): Always write out delay slot functions.
7648 * opts.c (default_options_table): Adjust.
7649 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
7650 (redirect_with_delay_list_safe_p): Likewise.
7651 (fill_simple_delay_slots): Likewise.
7652 (fill_slots_from_thread): Likewise.
7653 (make_return_insns): Likewise.
7654 (dbr_schedule): Likewise.
7655 (rest_of_handle_delay_slots): Likewise.
7656 (pass_delay_slots::gate): Likewise.
7657 * toplev.c (process_options): Likewise.
7659 2015-10-21 Richard Henderson <rth@redhat.com>
7661 * targhooks.c (default_addr_space_pointer_mode): Remove check
7662 for generic address space.
7663 (default_addr_space_address_mode): Likewise.
7664 (default_addr_space_valid_pointer_mode): Likewise.
7665 (default_addr_space_legitimate_address_p): Likewise.
7666 (default_addr_space_legitimize_address): Likewise.
7667 * target.def (addr_space.pointer_mode): Update documentation
7668 of default behavior.
7669 (addr_space.address_mode): Likewise.
7672 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
7675 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7677 * builtins.c (fold_builtin_cabs): Delete.
7678 (fold_builtin_1): Update accordingly. Handle constant arguments here.
7679 * match.pd: Add rules previously handled by fold_builtin_cabs.
7681 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7683 * fold-const.h (fold_strip_sign_ops): Delete.
7684 * fold-const.c (fold_strip_sign_ops): Likewise.
7685 (fold_unary_loc, fold_binary_loc): Remove calls to it.
7686 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
7687 (fold_builtin_ccos): Delete.
7688 (fold_builtin_pow): Don't call fold_strip_sign_ops.
7689 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
7690 Remove fndecl argument.
7691 (fold_builtin_1): Update calls accordingly. Handle constant
7692 cos, cosh, ccos and ccosh here.
7694 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7696 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
7697 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
7698 * common.opt (fssa-backprop): New option.
7699 * fold-const.h (negate_mathfn_p): Declare.
7700 * fold-const.c (negate_mathfn_p): Make public.
7701 * timevar.def (TV_TREE_BACKPROP): New.
7702 * tree-pass.h (make_pass_backprop): Declare.
7703 * passes.def (pass_backprop): Add.
7704 * gimple-ssa-backprop.c: New file.
7706 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7707 Sebastian Pop <s.pop@samsung.com>
7709 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
7710 Do not call create_empty_if_region_on_edge when cond_expr is true.
7711 (translate_isl_ast_node_for): Check whether a guard has been generated.
7713 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7715 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
7716 (operator=): Removed.
7717 (dr_info): Make alias_set number the last argument with default
7718 value of invalid_alias_set.
7719 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
7721 (rewrite_reductions_out_of_ssa): Iterate only through the
7722 basic blocks which are inside region.
7723 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
7724 * sese.h (struct sese_l): Removed assignment operator.
7725 (split_region_for_bb): Removed dead code.
7727 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7729 * graphite-poly.h (struct dr_info): Removed conversion constructor.
7730 (struct scop): Renamed scop::region to scop::scop_info
7731 (scop_set_region): Same.
7732 (SCOP_REGION): Removed
7733 (SCOP_CONTEXT): Removed.
7734 (POLY_SCOP_P): Removed.
7735 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
7736 Rename scop->region to scop->scop_info.
7737 (add_parameters_to_ivs_params): Same.
7738 (graphite_regenerate_ast_isl): Same.
7739 * graphite-poly.c (new_scop): Same.
7741 (print_scop_params): Same.
7742 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
7743 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
7744 (dot_all_scops_1): Rename scop->region to scop->scop_info.
7745 (scop_detection::nb_pbbs_in_loops): Same.
7746 (find_scop_parameters): Same.
7747 (try_generate_gimple_bb): Same.
7748 (gather_bbs::before_dom_children): Same.
7749 (gather_bbs::after_dom_children): Same.
7750 (build_scops): Same.
7751 * graphite-sese-to-poly.c (build_scop_scattering): Same.
7752 (extract_affine_chrec): Same.
7753 (extract_affine): Same.
7754 (set_scop_parameter_dim): Same.
7755 (build_loop_iteration_domains): Same.
7756 (create_pw_aff_from_tree): Same.
7757 (add_param_constraints): Same.
7758 (build_scop_iteration_domain): Same.
7759 (build_scop_drs): Same.
7760 (analyze_drs_in_stmts): Same.
7761 (insert_out_of_ssa_copy_on_edge): Same.
7762 (rewrite_close_phi_out_of_ssa):Same.
7763 (rewrite_reductions_out_of_ssa):Same.
7764 (handle_scalar_deps_crossing_scop_limits):Same.
7765 (rewrite_cross_bb_scalar_deps):Same.
7766 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
7767 (build_poly_scop):Same.
7768 (build_alias_set): Use pointer to dr_info.
7769 * graphite.c (print_graphite_scop_statistics):
7770 (graphite_transform_loops):
7771 * sese.h (struct sese_l): Remove conversion constructor.
7773 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7776 * tree.c (verify_type): Verify that TYPE_MODE match
7777 between TYPE_CANONICAL and type.
7778 * expr.c (store_expr_with_bounds): Revert my previous change.
7779 * expmed.c (store_bit_field_1): Revert prevoius change.
7780 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
7781 to match for all types.
7783 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
7785 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
7788 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
7790 * doc/tm.texi: Regenerated.
7791 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
7792 * stor-layout.c (layout_type): Use mode to get vector mask size.
7793 * target.def (get_mask_mode): New.
7794 * targhooks.c (default_get_mask_mode): New.
7795 * targhooks.h (default_get_mask_mode): New.
7796 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
7798 * tree.c (MAX_BOOL_CACHED_PREC): New.
7799 (nonstandard_boolean_type_cache): New.
7800 (build_nonstandard_boolean_type): New.
7801 (make_vector_type): Vector mask has no canonical type.
7802 (build_truth_vector_type): New.
7803 (build_same_sized_truth_vector_type): New.
7804 (truth_type_for): Support vector masks.
7805 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
7806 (build_truth_vector_type): New.
7807 (build_same_sized_truth_vector_type): New.
7808 (build_nonstandard_boolean_type): New.
7809 * tree-cfg.c (verify_gimple_comparison) Require boolean
7810 vector type for vector comparison.
7811 (verify_gimple_assign_ternary): Likewise.
7812 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
7814 * tree-vect-stmts.c (vectorizable_condition): Use boolean
7815 vector type for vector comparison.
7816 * tree-vect-generic.c (elem_op_func): Add new operand to hold
7818 (do_unop): Adjust to modified function type.
7819 (do_binop): Likewise.
7820 (do_plus_minus): Likewise.
7821 (do_negate); Likewise.
7822 (expand_vector_piecewise): Likewise.
7823 (do_cond): Likewise.
7824 (do_compare): Use comparison instead of condition.
7825 (expand_vector_divmod): Use boolean vector type for comparison.
7826 (expand_vector_operations_1): Skip scalar mask operations.
7828 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
7830 * omp-low.c (simd_clone_create): Set in_other_partition
7833 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
7835 * doc/extend.exp (Local Register Variables): Rewrite.
7837 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7839 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
7840 and x*x in cases where the operands are sign ops. Extend these
7841 rules to handle copysign as a sign op (including for cos, cosh
7842 and pow, which already treated negate and abs as sign ops).
7844 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
7847 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
7848 for 64-bit MS_ABI targets also when default incoming stack boundary
7851 2015-10-21 Richard Biener <rguenther@suse.de>
7853 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
7854 cond stmts, enhanced and split out from ...
7855 (vn_phi_eq): ... here.
7857 2015-10-21 Richard Biener <rguenther@suse.de>
7860 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
7861 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
7862 (tree_single_nonnegative_warnv_p): ... here. For SSA names
7863 make sure they are not registered for update.
7865 2015-10-21 Richard Biener <rguenther@suse.de>
7867 PR tree-optimization/68026
7868 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
7869 unsigned VARYING values.
7871 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
7873 * asan.c (asan_emit_stack_protection): Don't pass local stack to
7874 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
7875 NULL and use local stack than.
7876 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
7877 in addition to __asan_init.
7878 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
7879 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
7880 * asan.h (asan_intercepted_p): Handle new string builtins.
7881 * ubsan.c (ubsan_use_new_style_p): New function.
7882 (ubsan_instrument_float_cast): If location is unknown, assign
7883 input_location to loc. Propagate loc to ubsan_create_data if
7884 ubsan_use_new_style_p returned true.
7886 2015-10-21 Jeff Law <law@redhat.com>
7888 * Makefile.in (OBJS): Remove sched-vis.c
7889 * sched-vis.c: Removed. Code moved into...
7890 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
7891 * rtl.h: Remove prototypes for functions now living in print-rtl.c
7892 * print-rtl.h Add prototypes for new functions in print-rtl.c.
7893 * auto-inc-dec.c: Include print-rtl.h
7894 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
7895 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
7897 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
7900 2015-10-21 Richard Biener <rguenther@suse.de>
7901 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7903 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
7905 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
7906 about signed left shift stronger and clarify the cases when they're
7908 Move (a * (1 << b)) is (a << b) to match.pd.
7909 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
7910 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
7911 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
7913 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
7915 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
7916 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
7917 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
7919 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
7921 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
7923 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
7924 Szabolcs Nagy <szabolcs.nagy@arm.com>
7925 Alan Modra <amodra@gmail.com>
7927 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
7928 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
7929 (LINK_SPEC): Add %(link_secure_plt).
7930 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
7931 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
7933 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
7934 Szabolcs Nagy <szabolcs.nagy@arm.com>
7936 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
7937 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
7939 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7941 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
7943 (fusion_load_store): Use it.
7944 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
7945 ldp and stp in VD modes.
7946 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
7947 (store_pair<mode>, VD): Likewise.
7949 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
7951 PR rtl-optimization/67609
7952 * lra-splill.c (lra_final_code_change): Don't remove all
7955 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7957 * simplify-rtx.c (simplify_binary_operation): If either operand was
7958 a constant pool reference use them if all other simplifications failed.
7960 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7962 * config/aarch64/aarch64.md
7963 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
7964 * config/aarch64/aarch64-simd.md
7965 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
7966 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
7967 (aarch64_fpconst_pow_of_2): New function.
7968 (aarch64_vec_fpconst_pow_of_2): Likewise.
7969 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
7971 (aarch64_vec_fpconst_pow_of_2): Likewise.
7972 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
7973 (aarch64_fp_vec_pow2): Likewise.
7975 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
7977 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
7978 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
7979 * config/alpha/alpha.c (alpha_function_arg_advance): Update
7980 ALPHA_ARG_SIZE usage.
7981 (alpha_arg_partial_bytes): Ditto.
7983 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
7986 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
7987 error_mark_node decls.
7989 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
7993 * common/config/i386/i386-common.c (ix86_handle_option): Remove
7994 OPT_miamcu handling.
7995 * config/i386/i386.c (PTA_NO_80387): New macro.
7996 (processor_alias_table): Add PTA_NO_80387 to lakemont.
7997 (ix86_option_override_internal): Update MASK_80387 from
7998 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
7999 SSE math only if 80387 is supported. Don't change
8001 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
8003 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
8004 if TARGET_80387 is true and TARGET_IAMCU is false.
8005 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
8006 is true and TARGET_IAMCU_P is false.
8008 2015-10-20 Richard Biener <rguenther@suse.de>
8010 PR tree-optimization/68017
8011 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
8013 2015-10-20 Martin Liska <mliska@suse.cz>
8015 * cgraphclones.c (cgraph_node::create_virtual_clone):
8016 Verify cgraph_node.local.versionable instead of calling
8017 tree_versionable_function_p.
8018 * ipa-cp.c (determine_versionability): Save the information
8019 to ipa_node_params summary.
8020 (ipcp_versionable_function_p): Use it.
8021 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
8022 (ipcp_generate_summary): Do not compute cgraph_node
8024 * ipa-inline-analysis.c (inline_generate_summary): Compute
8025 versionability for all cgraph nodes.
8026 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
8027 ipa_node_params::versionability.
8028 * ipa-prop.h (struct ipa_node_params): Declare it.
8030 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8033 * varasm.c (assemble_variable): Move special vtv handling to..
8034 (handle_vtv_comdat_sections): .. here. New function.
8035 (output_object_block): Handle vtv sections.
8037 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
8040 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
8042 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
8044 * doc/extend.texi: Update documentation WRT inline functions.
8046 2015-10-20 Alan Modra <amodra@gmail.com>
8049 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
8050 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
8051 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8053 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
8055 PR rtl-optimization/66790
8056 * df.h (DF_MIR): New macro.
8057 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
8058 (DF_MIR_INFO_BB): New macro.
8059 (DF_MIR_IN, DF_MIR_OUT): New macros.
8060 (struct df_mir_bb_info): New.
8061 (df_mir): New macro.
8062 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
8064 (df_mir_get_bb_info): New.
8065 * df-problems.c (struct df_mir_problem_data): New.
8066 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
8067 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
8068 df_mir_confluence_0, df_mir_confluence_n,
8069 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
8070 df_mir_bottom_dump, df_mir_verify_solution_start,
8071 df_mir_verify_solution_end): New.
8073 (df_mir_add_problem, df_mir_simulate_one_insn): New.
8074 * timevar.def (TV_DF_MIR): New.
8075 * ree.c: Include bitmap.h
8076 (add_removable_extension): Add an INIT_REGS parameter. Use it
8077 to skip zero-extensions that may get an uninitialized register.
8078 (find_removable_extensions): Compute must-initialized registers
8079 using the MIR dataflow problem. Update the call to
8080 add_removable_extension.
8081 (find_and_remove_re): Call df_mir_add_problem.
8083 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
8085 * common/config/mn10300/mn10300-common.c
8086 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
8087 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
8089 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
8091 * doc/extend.texi (Explicit Register Variables): Simplify and
8092 avoid unnecessary and confusion abbreviations. Update cross
8094 doc/implement-c.tex: Update cross reference.
8096 2015-10-19 Jeff Law <law@redhat.com>
8098 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
8099 that create irreducible loops unless the path elimiantes a multiway
8102 2015-10-19 Richard Biener <rguenther@suse.de>
8104 PR tree-optimization/67975
8105 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
8106 * tree-cfg.c (extract_true_false_controlled_edges): Split out
8107 core worker from ...
8108 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
8109 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
8110 instead of block number for PHIs with two or one args.
8111 (vn_phi_eq): Compare edge predicates of PHIs that are in different
8114 2015-10-19 Richard Biener <rguenther@suse.de>
8116 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
8117 (gimple_stmt_nonnegative_warnv_p): Use it.
8118 * match.pd (CPROJ): New operator list.
8119 (cproj (complex ...)): Move simplifications from ...
8120 * builtins.c (fold_builtin_cproj): ... here.
8122 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8124 * config/i386/i386.c (ix86_expand_vector_move): Use
8125 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
8128 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8130 * doc/invoke.texi: Replace @optindex with @opindex.
8132 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8135 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
8136 arch= is set, clear all bits in x_ix86_isa_flags, except for
8137 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
8139 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
8142 * common.opt (fkeep-static-functions): New option.
8143 * doc/invoke.texi: Document it.
8144 * cgraphunit.c (cgraph_node::finalize_function): Use it.
8146 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8148 * sched-int.h (struct autopref_multipass_data_): Remove offset
8149 field. Add min_offset, max_offset, multi_mem_insn_p fields.
8150 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
8151 (autopref_multipass_init): Use it. Handle PARALLEL sets.
8152 (autopref_rank_data): New function.
8153 (autopref_rank_for_schedule): Use it.
8154 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
8156 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
8159 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
8161 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8163 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
8164 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
8165 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
8166 (STANDARD_STARTFILE_PREFIX_1): New.
8167 (STANDARD_STARTFILE_PREFIX_2): New.
8169 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8171 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
8172 (darwin_driver_init): Note a version-min when provided on the c/l.
8173 * config/darwin.h (%darwin_minversion): Remove.
8174 * config/i386/darwin.h: Likewise.
8175 * config/rs6000/darwin.h: Likewise.
8176 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
8177 rather than an arbitrary constant.
8179 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8181 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
8182 PPC, detect conflicts between -arch and multilib settings. Detect
8183 and warn about conflicts between multiple -arch definitions.
8185 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8187 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
8189 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8191 * lra-constraints.c (add_next_usage_insn): Change argument type
8192 from rtx to rtx_insn *.
8194 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
8196 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
8199 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
8201 * config/tilepro/gen-mul-tables.cc: Adjust include files.
8202 * config/tilegx/mul-tables.c: Regenerate.
8203 * config/tilepro/mul-tables.c: Regenerate.
8205 * config/tilegx/tilegx-c.c: Adjust include files.
8206 * config/tilegx/tilegx.c: Likewise.
8207 * config/tilepro/tilepro-c.c: Likewise.
8208 * config/tilepro/tilepro.c: Likewise.
8209 * config/aarch64/aarch64-builtins.c: Likewise.
8210 * config/aarch64/aarch64.c: Likewise.
8211 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8212 * config/alpha/alpha.c: Likewise.
8213 * config/arc/arc.c: Likewise.
8214 * config/arm/aarch-common.c: Likewise.
8215 * config/arm/arm-builtins.c: Likewise.
8216 * config/arm/arm-c.c: Likewise.
8217 * config/arm/arm.c: Likewise.
8218 * config/avr/avr-c.c: Likewise.
8219 * config/avr/avr-devices.c: Likewise.
8220 * config/avr/avr-log.c: Likewise.
8221 * config/avr/avr.c: Likewise.
8222 * config/bfin/bfin.c: Likewise.
8223 * config/c6x/c6x.c: Likewise.
8224 * config/cr16/cr16.c: Likewise.
8225 * config/cris/cris.c: Likewise.
8226 * config/darwin-c.c: Likewise.
8227 * config/darwin-driver.c: Likewise.
8228 * config/darwin.c: Likewise.
8229 * config/default-c.c: Likewise.
8230 * config/epiphany/epiphany.c: Likewise.
8231 * config/epiphany/mode-switch-use.c: Likewise.
8232 * config/epiphany/resolve-sw-modes.c: Likewise.
8233 * config/fr30/fr30.c: Likewise.
8234 * config/frv/frv.c: Likewise.
8235 * config/ft32/ft32.c: Likewise.
8236 * config/glibc-c.c: Likewise.
8237 * config/h8300/h8300.c: Likewise.
8238 * config/i386/host-cygwin.c: Likewise.
8239 * config/i386/host-mingw32.c: Likewise.
8240 * config/i386/i386-c.c: Likewise.
8241 * config/i386/i386.c: Likewise.
8242 * config/i386/msformat-c.c: Likewise.
8243 * config/i386/winnt-cxx.c: Likewise.
8244 * config/i386/winnt-stubs.c: Likewise.
8245 * config/i386/winnt.c: Likewise.
8246 * config/ia64/ia64-c.c: Likewise.
8247 * config/ia64/ia64.c: Likewise.
8248 * config/iq2000/iq2000.c: Likewise.
8249 * config/lm32/lm32.c: Likewise.
8250 * config/m32c/m32c-pragma.c: Likewise.
8251 * config/m32c/m32c.c: Likewise.
8252 * config/m32r/m32r.c: Likewise.
8253 * config/mcore/mcore.c: Likewise.
8254 * config/mep/mep-pragma.c: Likewise.
8255 * config/mep/mep.c: Likewise.
8256 * config/microblaze/microblaze-c.c: Likewise.
8257 * config/microblaze/microblaze.c: Likewise.
8258 * config/mips/mips-tables.opt
8259 * config/mips/mips.c: Likewise.
8260 * config/mmix/mmix.c: Likewise.
8261 * config/mn10300/mn10300.c: Likewise.
8262 * config/moxie/moxie.c: Likewise.
8263 * config/msp430/msp430-c.c: Likewise.
8264 * config/msp430/msp430.c: Likewise.
8265 * config/nds32/nds32-cost.c: Likewise.
8266 * config/nds32/nds32-fp-as-gp.c: Likewise.
8267 * config/nds32/nds32-intrinsic.c: Likewise.
8268 * config/nds32/nds32-isr.c: Likewise.
8269 * config/nds32/nds32-md-auxiliary.c: Likewise.
8270 * config/nds32/nds32-memory-manipulation.c: Likewise.
8271 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8272 * config/nds32/nds32-predicates.c: Likewise.
8273 * config/nds32/nds32.c: Likewise.
8274 * config/nios2/nios2.c: Likewise.
8275 * config/nvptx/mkoffload.c: Likewise.
8276 * config/nvptx/nvptx.c: Likewise.
8277 * config/pa/pa.c: Likewise.
8278 * config/pdp11/pdp11.c: Likewise.
8279 * config/rl78/rl78-c.c: Likewise.
8280 * config/rl78/rl78.c: Likewise.
8281 * config/rs6000/host-darwin.c: Likewise.
8282 * config/rs6000/rs6000-c.c: Likewise.
8283 * config/rs6000/rs6000-linux.c: Likewise.
8284 * config/rs6000/rs6000.c: Likewise.
8285 * config/rx/rx.c: Likewise.
8286 * config/s390/s390-c.c: Likewise.
8287 * config/s390/s390.c: Likewise.
8288 * config/sh/sh-c.c: Likewise.
8289 * config/sh/sh-mem.cc: Likewise.
8290 * config/sh/sh.c: Likewise.
8291 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8292 * config/sh/sh_treg_combine.cc: Likewise.
8293 * config/sol2-c.c: Likewise.
8294 * config/sol2-cxx.c: Likewise.
8295 * config/sol2-stubs.c: Likewise.
8296 * config/sol2.c: Likewise.
8297 * config/sparc/sparc-c.c: Likewise.
8298 * config/sparc/sparc.c: Likewise.
8299 * config/spu/spu-c.c: Likewise.
8300 * config/spu/spu.c: Likewise.
8301 * config/stormy16/stormy16.c: Likewise.
8302 * config/v850/v850-c.c: Likewise.
8303 * config/v850/v850.c: Likewise.
8304 * config/vax/vax.c: Likewise.
8305 * config/visium/visium.c: Likewise.
8306 * config/vms/vms-c.c: Likewise.
8307 * config/vms/vms.c: Likewise.
8308 * config/vxworks.c: Likewise.
8309 * config/winnt-c.c: Likewise.
8310 * config/xtensa/xtensa.c: Likewise.
8312 2015-10-16 Christian Bruel <christian.bruel@st.com>
8315 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
8316 (FUNCTION_BOUNDARY_P): New macro:
8317 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
8319 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
8320 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
8321 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
8322 * function.c (allocate_struct_function): Call
8323 relayout_function hook.
8324 * passes.c (rest_of_decl_compilation): Likewise.
8326 2015-10-16 Christian Bruel <christian.bruel@st.com>
8329 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
8330 * config/arm/arm.c (arm_option_override_internal): Call
8331 arm_override_options_after_change_1.
8332 (arm_override_options_after_change): New function.
8333 (arm_override_options_after_change_1): Likewise.
8334 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
8336 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8339 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8342 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
8344 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
8345 argument is an ADDR_EXPR.
8347 2015-10-16 Richard Biener <rguenther@suse.de>
8349 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
8350 and get rid of force_gimple_operand_gsi.
8351 (gimple_fold_builtin_memory_chk): Likewise.
8352 (gimple_fold_builtin_stxcpy_chk): Likewise.
8353 (rewrite_to_defined_overflow): Likewise.
8354 (gimple_convert_to_ptrofftype): New function.
8355 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
8357 2015-10-16 Richard Biener <rguenther@suse.de>
8359 * tree-nested.h (build_addr): Adjust prototype.
8360 * tree-nested.c (build_addr): Remove context argument and use
8362 (get_static_chain): Adjust calls to build_addr.
8363 (convert_nl_goto_reference): Likewise.
8364 (convert_tramp_reference_op): Likewise.
8365 (finalize_nesting_tree_1): Likewise.
8366 * value-prof.c (gimple_ic): Likewise.
8367 * gimple-low.c (lower_builtin_setjmp): Likewise.
8368 * tree-parloops.c (take_address_of): Likewise.
8369 (create_call_for_reduction_1): Likewise.
8370 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
8371 (gimple_gen_ic_func_profiler): Likewise.
8373 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8375 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8378 2015-10-16 Michael Collison <michael.collison@linaro.org>
8379 Andrew Pinski <andrew.pinski@caviumnetworks.com>
8381 * match.pd ((x < y) && (x < z) -> x < min (y,z),
8382 (x > y) and (x > z) -> x > max (y,z))
8384 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
8385 Szabolcs Nagy <szabolcs.nagy@arm.com>
8387 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
8388 (DYNAMIC_LINKER): Renamed to ...
8389 (GLIBC_DYNAMIC_LINKER): This.
8390 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
8392 2015-10-15 Marek Polacek <polacek@redhat.com>
8394 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
8395 gimple_call_builtin instead of is_gimple_call.
8397 2015-10-15 Richard Biener <rguenther@suse.de>
8399 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
8401 2015-10-15 Richard Biener <rguenther@suse.de>
8403 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
8404 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
8405 * tree-vect-loop.c (get_initial_def_for_induction): Drop
8406 use of force_gimple_operand in favor of gimple_build.
8407 Use vect_get_new_ssa_name.
8408 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
8409 (vectorizable_mask_load_store): Likewise.
8410 (vectorizable_call): Likewise.
8411 (vectorizable_store): Likewise.
8412 (vectorizable_load): Likewise.
8413 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
8415 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
8417 PR tree-optimization/67945
8418 * tree-pass.h (PROP_gimple_opt_math): New property flag.
8419 * generic-match-head.c (canonicalize_math_p): New function.
8420 * gimple-match-head.c: Include tree-pass.h.
8421 (canonicalize_math_p): New function.
8422 * match.pd: Group math built-in rules into simplifications
8423 and canonicalizations. Guard the latter with canonicalize_math_p.
8424 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
8425 PROP_gimple_opt_math property.
8427 2015-10-15 Marek Polacek <polacek@redhat.com>
8429 PR tree-optimization/67953
8430 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
8432 2015-10-15 Jiong Wang <jiong.wang@arm.com>
8434 * config.gcc: Recognize "." in architecture base name for AArch64.
8436 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
8438 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
8440 * config/mips/mips.c (mips_setup_incoming_varargs): Use
8441 ROUND_DOWN to calculate off.
8442 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
8443 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
8446 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
8448 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
8450 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
8451 Torvald Riegel <triegel@redhat.com>
8454 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
8455 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8456 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
8457 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
8458 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
8459 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8460 trechkpt, treclaim, tsr, ttest): New define_expands.
8461 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
8462 __TM_FENCE__ for htm.
8463 * doc/extend.texi: Update documentation for htm builtins.
8465 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
8468 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
8469 REG_CFA_EXPRESSION to aligned SSE stores.
8471 2015-10-14 Jeff Law <law@redhat.com>
8473 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
8474 num_threaded_edges for successful FSM threads too.
8476 2015-10-14 Richard Biener <rguenther@suse.de>
8478 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
8479 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
8480 (vect_get_vec_def_for_operand): Remove unused parameter.
8481 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
8482 (vect_create_epilog_for_reduction): Likewise.
8483 (vectorizable_reduction): Likewise.
8484 (vectorizable_live_operation): Likewise.
8485 * tree-vect-patterns.c (type_conversion_p): Likewise.
8486 (vect_recog_vector_vector_shift_pattern): Likewise.
8487 (check_bool_pattern): Likewise.
8488 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8489 (vect_analyze_slp_cost_1): Likewise.
8490 * tree-vect-stmts.c (process_use): Likewise.
8491 (vect_get_vec_def_for_operand): Do not handle reductions.
8492 (vect_get_vec_defs): Adjust.
8493 (vectorizable_mask_load_store): Likewise.
8494 (vectorizable_call): Likewise.
8495 (vectorizable_simd_clone_call): Likewise.
8496 (vect_get_loop_based_defs): Likewise.
8497 (vectorizable_conversion): Likewise.
8498 (vectorizable_assignment): Likewise.
8499 (vectorizable_shift): Likewise.
8500 (vectorizable_operation): Likewise.
8501 (vectorizable_store): Likewise.
8502 (vectorizable_load): Likewise.
8503 (vect_is_simple_cond): Likewise.
8504 (vectorizable_condition): Likewise.
8505 (vect_is_simple_use): Remove unused parameters.
8506 (vect_is_simple_use_1): Adjust and rename.
8508 2015-10-14 Richard Biener <rguenther@suse.de>
8510 PR tree-optimization/67915
8511 * match.pd: Handle comparisons of addresses of STRING_CSTs.
8512 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
8513 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
8514 stmt folding in favor of GIMPLE one.
8516 2015-10-14 Marek Polacek <polacek@redhat.com>
8518 PR tree-optimization/67815
8519 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
8520 (reassociate_bb): Call it.
8522 2015-10-14 Richard Biener <rguenther@suse.de>
8524 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8525 Reset info at start.
8526 (vect_analyze_group_access_1): Add debug print.
8527 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
8528 (vect_compute_single_scalar_iteration_cost): ... to this.
8529 (vect_analyze_loop_2): Adjust.
8530 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
8531 * tree-vectorizer.h: ... here.
8532 (add_stmt_info_to_vec): Remove.
8533 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
8535 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
8537 * targhooks.c (default_target_option_pragma_parse): Do not warn if
8538 called on behalf of "#pragma GCC pop_options".
8540 2015-10-14 Tom de Vries <tom@codesourcery.com>
8542 * cfganal.c (verify_no_unreachable_blocks): New function.
8543 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
8544 verify_no_unreachable_blocks.
8545 cfganal.h (verify_no_unreachable_blocks): Declare.
8547 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
8549 * common.opt: Add flag_checking.
8550 * system.h (CHECKING_P): Define.
8552 2015-10-13 Jakub Jelinek <jakub@redhat.com>
8553 Aldy Hernandez <aldyh@redhat.com>
8554 Ilya Verbin <ilya.verbin@intel.com>
8556 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
8557 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
8558 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
8559 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
8560 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
8561 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
8562 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
8563 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
8564 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
8565 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
8566 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
8567 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
8568 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
8569 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
8570 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
8571 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8572 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8573 (struct cgraph_simd_clone_arg): Adjust comment.
8574 * coretypes.h (struct gomp_ordered): New forward decl.
8575 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
8576 set critical clauses to it.
8577 (gimple_build_omp_ordered): Return gomp_ordered * instead of
8578 gimple *. Add CLAUSES argument, set ordered clauses to it.
8579 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
8581 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
8582 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
8583 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
8584 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
8585 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
8586 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
8587 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
8588 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
8590 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
8591 (gomp_critical): Add clauses field.
8592 (gomp_ordered): New struct.
8593 (is_a_helper <gomp_ordered *>::test): New inline.
8594 (gimple_build_omp_critical): Add CLAUSES argument.
8595 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
8596 instead of gimple *.
8597 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
8598 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
8599 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
8600 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
8602 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
8603 (dump_gimple_omp_target): Handle enter data and exit data.
8604 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
8605 (dump_gimple_omp_critical): Print clauses.
8606 (dump_gimple_omp_ordered): New function.
8607 (dump_gimple_omp_task): Handle taskloop.
8608 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
8610 * gimple-walk.c (walk_gimple_op): Walk clauses on
8611 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
8612 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
8613 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
8614 (struct gimplify_omp_ctx): Add loop_iter_var,
8615 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
8616 and target_firstprivatize_array_bases fields.
8617 (delete_omp_context): Release loop_iter_var.
8618 (gimplify_bind_expr): Handle ORT_NONE.
8619 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
8620 ORT_COMBINED_TARGET.
8621 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
8622 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
8623 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
8624 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
8625 ctx->target_map_scalars_firstprivate.
8626 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
8627 data sharing clauses. For data sharing clause with VLA decl
8628 on omp target/target data don't add firstprivate for the pointer.
8629 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
8630 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
8631 the addition of ORT_COMBINED_TARGET.
8632 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
8633 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
8634 pointers as zero length array sections and
8635 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
8637 (omp_check_private): Handle omp_member_access_dummy_var vars.
8638 (find_decl_expr): New function.
8639 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
8640 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
8641 Handle OMP_CLAUSE_GANG separately. Handle
8642 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8643 clauses. Diagnose linear clause on combined
8644 distribute {, parallel for} simd construct, unless it is the loop
8645 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
8646 Handle map clauses with COMPONENT_REF. Initialize
8647 ctx->target_map_scalars_firstprivate,
8648 ctx->target_firstprivatize_array_bases and
8649 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
8650 linear clause even to target region if combined. Remove
8651 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
8652 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
8653 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
8654 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
8655 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
8656 For linear clause on worksharing loop combined with parallel add
8657 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
8658 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
8659 omp_member_access_dummy_var vars. Add lastprivate clause to outer
8661 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
8662 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
8663 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
8665 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
8666 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
8667 in target body. Handle removal of struct mapping if struct is not
8668 seen in target body. Remove GOMP_MAP_STRUCT map clause on
8669 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
8670 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
8671 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
8672 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
8673 clause appear together. Handle
8674 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
8675 clause if it has map-type-modifier always. Handle
8676 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8678 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
8679 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
8681 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
8682 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
8683 iterators in doacross loops.
8684 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
8685 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
8686 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
8687 for the addition of ORT_COMBINED_TARGET.
8688 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
8689 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
8690 and OMP_TARGET_EXIT_DATA.
8691 (gimplify_omp_ordered): New function.
8692 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
8693 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
8694 Gimplify clauses on OMP_CRITICAL.
8695 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
8696 expand_GOMP_SIMD_ORDERED_END): New functions.
8697 * internal-fn.def (GOMP_SIMD_ORDERED_START,
8698 GOMP_SIMD_ORDERED_END): New internal functions.
8699 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
8700 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
8701 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
8702 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
8703 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
8704 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
8705 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
8706 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
8707 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
8708 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
8709 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
8710 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
8711 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
8712 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
8714 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
8715 GOMP_target_data_41, adjust type.
8716 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
8717 GOMP_target_update_41, adjust type.
8718 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
8720 (struct omp_for_data): Add ordered and simd_schedule fields.
8721 (omp_member_access_dummy_var, unshare_and_remap_1,
8722 unshare_and_remap, is_taskloop_ctx): New functions.
8723 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
8724 (extract_omp_for_data): Handle taskloops and doacross loops
8725 and simd schedule modifier.
8726 (omp_adjust_chunk_size): New function.
8727 (get_ws_args_for): Use it.
8728 (lookup_sfield): Change first argument to splay_tree_key,
8729 add overload with first argument tree.
8730 (maybe_lookup_field): Likewise.
8731 (use_pointer_for_field): Handle omp_member_access_dummy_var.
8732 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
8733 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
8734 (build_outer_var_ref): Add LASTPRIVATE argument, handle
8735 taskloops and omp_member_access_dummy_var vars.
8736 (build_sender_ref): Change first argument to splay_tree_key,
8737 add overload with first argument tree.
8738 (install_var_field): For mask & 8 use &DECL_UID as key instead
8740 (fixup_child_record_type): Const qualify *.omp_data_i.
8741 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
8742 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
8743 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
8744 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
8745 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
8746 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
8747 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
8749 (add_taskreg_looptemp_clauses): New function.
8750 (scan_omp_parallel): Use it.
8751 (scan_omp_task): Likewise.
8752 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8753 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
8754 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8755 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
8756 sandwiched taskloop constructs. Type check
8757 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
8758 region. Diagnose depend(source) or depend(sink:...) on
8759 target constructs or task/taskloop.
8760 (handle_simd_reference): Use get_name.
8761 (lower_rec_input_clauses): Likewise. Ignore all
8762 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
8763 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
8764 before passing it to omp_clause_{default,copy}_ctor. Handle
8765 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
8766 lastprivate_firstprivate flag for linear that needs copyin and
8767 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
8768 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
8769 on taskloop lookup decl in outer context. Pass true to
8770 build_outer_var_ref lastprivate argument. Handle
8771 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
8772 outside of outer taskloop for.
8773 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
8775 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
8776 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
8777 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
8778 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
8779 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
8780 abstract origin. Handle omp_member_access_dummy_var vars.
8781 (expand_parallel_call): Use expand_omp_build_assign.
8782 (expand_task_call): Handle taskloop construct expansion. Add
8783 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
8784 integers. Add priority argument to GOMP_task* calls. Or in
8785 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
8787 (expand_omp_build_assign): Add prototype. Add AFTER
8788 argument, if true emit statements after *GSI_P and continue linking.
8789 (expand_omp_taskreg): Adjust expand_task_call caller.
8790 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
8791 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
8792 zero_iter2_bb and first_zero_iter2 arguments, handle computation
8793 of counts even for ordered loops.
8794 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
8795 (expand_omp_ordered_source, expand_omp_ordered_sink,
8796 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
8798 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
8799 clauses on worksharing loop. Handle DOACROSS loop expansion.
8800 (expand_omp_for_static_nochunk): Handle linear clauses on
8801 worksharing loop. Adjust expand_omp_for_init_counts
8803 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
8804 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
8805 expand_omp_for_init_counts callers.
8806 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
8808 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
8809 Handle doacross loops.
8810 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8811 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
8812 GOMP_target_{41,update_41,enter_exit_data} libcalls.
8813 (expand_omp): Don't expand ordered depend constructs here, record
8814 ord_stmt instead for later expand_omp_for_generic.
8815 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8816 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
8817 clause as stand-alone directive.
8818 (lower_omp_ordered_clauses): New function.
8819 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
8820 don't lower anything.
8821 (lower_omp_for_lastprivate): Use last _looptemp_ clause
8822 on taskloop for comparison.
8823 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
8824 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
8825 expansion for linear adjustments.
8826 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8827 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
8828 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
8829 to tree * pointing to the stmt's clauses.
8830 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
8831 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8832 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
8833 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
8834 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
8835 clauses. Always use short kind and 8-bit align shift.
8836 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
8837 (struct lower_omp_regimplify_operands_data): New type.
8838 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
8840 (lower_omp_1): Use lower_omp_regimplify_operands instead of
8841 gimple_regimplify_operands.
8842 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8843 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
8844 clause as stand-alone directive.
8845 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
8846 (simd_clone_mangle): Mangle the various linear kinds
8848 (simd_clone_adjust_argument_types): Handle
8849 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
8850 (simd_clone_init_simd_arrays): Don't do anything for uval.
8851 (simd_clone_adjust): Handle
8852 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
8853 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
8854 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
8855 * omp-low.h (omp_member_access_dummy_var): New prototype.
8856 * passes.def (pass_simduid_cleanup): Schedule another copy of the
8857 pass after all optimizations.
8858 * tree.c (omp_clause_code_name): Add entries for
8859 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8860 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8861 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
8862 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
8863 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
8864 OMP_CLAUSE_REDUCTION 5 arguments. Handle
8865 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8866 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
8868 * tree-core.h (enum omp_clause_linear_kind): New.
8869 (struct tree_omp_clause): Change type of map_kind
8870 from unsigned char to unsigned int. Add subcode.if_modifier
8871 and subcode.linear_kind fields.
8872 (enum omp_clause_code): Add
8873 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8874 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8875 (OMP_CLAUSE_REDUCTION): Document
8876 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8877 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
8878 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
8879 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
8881 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
8883 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
8885 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
8886 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
8888 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
8889 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
8890 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
8891 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
8892 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
8893 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
8894 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
8895 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
8896 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
8897 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
8898 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
8899 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
8900 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
8901 * tree-inline.c (remap_gimple_stmt): Handle clauses on
8902 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
8903 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
8904 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
8905 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8906 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8907 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8908 (convert_local_omp_clauses): Likewise.
8909 * tree-pretty-print.c (dump_omp_clause): Handle
8910 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8911 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8912 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
8913 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
8914 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
8915 GOMP_MAP_FORCE_DEALLOC. Handle
8916 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
8917 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
8918 and clauses on OMP_ORDERED and OMP_CRITICAL.
8919 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
8920 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
8921 (vectorize_loops): Adjust comments.
8922 (pass_simduid_cleanup::execute): Likewise.
8923 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
8924 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
8925 * wide-int.h (wi::gcd): New.
8927 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
8929 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
8930 (ix86_function_arg_advance): Ditto.
8931 (ix86_function_arg): Ditto.
8932 (ix86_gimplify_va_arg): Ditto.
8933 (ix86_class_max_nregs): Ditto.
8934 (inline_memory_move_cost): Ditto.
8935 (ix86_set_reg_reg_cost): Ditto.
8936 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
8938 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
8941 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
8943 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
8945 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
8946 ROUND_UP macro and UNITS_PER_WORD * 2.
8947 * config/sparc/sparc.c (sparc_compute_frame_size):
8948 Use ROUND_UP and ROUND_DOWN macros where applicable.
8949 (function_arg_record_value, function_arg_record_value_1)
8950 (function_arg_record_value_1): Ditto.
8951 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
8952 alignment to double-word.
8953 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
8954 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
8957 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
8959 * rtl.h (print_insn): Fix prototype.
8961 2015-10-13 Tom de Vries <tom@codesourcery.com>
8963 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
8964 -1. Add assert that returned entry matches phi argument.
8965 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
8966 free_stmt_vec_info_vec ...
8967 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
8970 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
8972 PR tree-optimization/67909, 67947
8973 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
8974 really skip the inner loop.
8976 2015-10-13 Jeff Law <law@redhat.com>
8978 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8979 Allow single block jump threading paths.
8981 2015-10-13 Tom de Vries <tom@codesourcery.com>
8983 PR tree-optimization/67476
8984 * doc/invoke.texi (@item parloops-schedule): New item.
8985 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
8986 * tree-parloops.c: Include params-enum.h.
8987 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
8989 2015-10-13 Tom de Vries <tom@codesourcery.com>
8991 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
8992 * params-enum.h: New file.
8993 * opts.c (handle_param): Handle case that param arg is a string.
8994 * params-list.h: Handle DEFPARAMENUM5 in params.def.
8995 * params.c (find_param): New function, factored out of ...
8996 (set_param_value): ... here.
8997 (param_string_value_p): New function.
8998 * params.h (struct param_info): Add value_names field.
8999 (find_param, param_string_value_p): Declare.
9001 2015-10-13 Tom de Vries <tom@codesourcery.com>
9003 PR tree-optimization/67476
9004 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
9006 2015-10-13 Richard Biener <rguenther@suse.de>
9008 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
9009 the data dependence vector.
9010 (vect_peeling_hash_insert): Get the peeling hash table as argument.
9011 (vect_peeling_hash_get_lowest_cost): Likewise.
9012 (vect_enhance_data_refs_alignment): Adjust.
9013 (struct _vect_peel_info, struct _vect_peel_extended_info,
9014 struct peel_info_hasher): Move from ...
9015 * tree-vectorizer.h: ... here.
9016 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
9017 (LOOP_VINFO_PEELING_HTAB): Likewise.
9018 (struct _loop_vec_info): Remove min_profitable_iters and
9019 peeling_htab members.
9020 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
9022 (destroy_loop_vec_info): Adjust.
9023 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
9024 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
9025 to estimate alias versioning cost.
9026 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
9028 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
9030 * real.h (real_isinteger): Declare.
9031 * real.c (real_isinteger): New function.
9032 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
9033 if y is an even integer.
9035 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9038 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9039 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9040 counts when these are more informative.
9042 2015-10-12 Jeff Law <law@redhat.com>
9044 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
9045 (fsm_find_control_stmt_paths): Change name of first argument to
9046 more accurately relfect what it really is. Handle simplification
9047 of GIMPLE_COND after finding a thread path for NAME.
9048 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
9049 nontrivial conditions to be handled by FSM threader.
9050 (thread_through_normal_block): Extract the name to looup via
9051 FSM threader from COND_EXPR.
9053 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
9054 restriction that traced SSA_NAME is a user variable.
9056 2015-10-12 Tom de Vries <tom@codesourcery.com>
9058 PR tree-optimization/67476
9059 * omp-low.c (expand_omp_for_generic): Add missing phis.
9061 2015-10-12 Tom de Vries <tom@codesourcery.com>
9063 PR tree-optimization/67476
9064 * omp-low.c (expand_omp_for_generic): Handle simple latch.
9066 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
9068 * config/aarch64/aarch64-simd-builtins.def: Update builtins
9069 tables: add tbl3 and tbx4.
9070 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
9071 (aarch64_tbx4v8qi): New.
9072 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
9073 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
9074 Rewrite using builtin functions.
9075 * config/aarch64/iterators.md (UNSPEC_TBX): New.
9077 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
9079 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
9081 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
9082 Use ROUND_UP and ROUND_DOWN macros where applicable.
9083 (rs6000_darwin64_record_arg_flush): Ditto.
9084 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
9085 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
9088 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
9090 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
9091 (AARCH64_ROUND_DOWN): Ditto.
9092 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
9094 2015-10-12 Richard Biener <rguenther@suse.de>
9097 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
9098 code that analyzes IVs on each stmt but in a cheaper way avoiding
9101 2015-10-12 Nick Clifton <nickc@redhat.com>
9103 * config/msp430/msp430.c (msp430_mcu_names): Rename to
9104 msp430_mcu_data, add fields for ISA and hardware multiply
9105 support. Import latest data from the devices.csv file.
9106 (msp430_override_option): Use the data from the new array.
9107 (msp430_use_f5_series_hwmult): Likewise.
9108 (use_32bit_hwmult): Likewise.
9109 (msp430_no_hwmult): Likewise.
9110 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
9112 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
9113 not recognised then no hardware multiply support is assumed and
9114 that only the MSP430 ISA is allowed.
9116 2015-10-12 Richard Biener <rguenther@suse.de>
9118 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
9120 (vect_analyze_loop_2): ... here.
9122 2015-10-11 Jason Merrill <jason@redhat.com>
9125 * expr.c (store_field): Call store_constructor directly when
9126 storing a CONSTRUCTOR into a target smaller than its type.
9127 Guard against unsafe bitwise copy.
9129 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9131 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9132 counts when these are more informative.
9134 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9136 * tree-profile.c (tree_profiling): Do not clear
9137 pure/const when not instrumenting.
9138 (pass tree_profile): Add dump of symtab.
9140 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9142 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
9144 (fold_addr_of_array_ref_difference): Likewise.
9146 2015-10-11 Jeff Law <law@redhat.com>
9148 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
9149 tree-ssa-threadbackward.c.
9150 (fsm_find_control_statement_thread_paths): Likewise.
9151 (thread_through_normal_block): Break out FSM bits and move them
9152 into a new function in tree-ssa-threadbackward.c. Call new function
9154 Minimize header file usage.
9155 * tree-ssa-threadbackward.h: New file.
9156 * tree-ssa-threadbackward.c: Likewise.
9157 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
9159 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
9161 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
9163 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
9165 PR rtl-optimization/67864
9166 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
9167 fallthrough edges for conditional jumps. Don't sort candidate
9168 edges if not optimizing for speed.
9170 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9172 * defaults.h (REVERSE_CONDITION): New default definition.
9173 * jump.c (reversed_comparison_code_parts): Adjust.
9175 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9177 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
9178 check HARD_FRAME_POINTER_IS_ARG_POINTER.
9180 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9182 * defaults.h (FRAME_ADDR_RTX): New default definition.
9183 * builtins.c (expand_builtin_return_addr): Adjust.
9185 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9187 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
9188 * builtins.c (expand_builtin_return_addr): Adjust.
9190 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9192 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
9193 * builtins.c (expand_builtin_return_addr): Adjust.
9194 * doc/tm.texi: Likewise.
9195 * doc/tm.texi.in: Likewise.
9196 * except.c (expand_builtin_unwind_init): Likewise.
9198 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9200 * builtins.c (expand_builtin_return_addr): Adjust.
9201 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
9203 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
9205 * tree.c (type_with_interoperable_signedness): New.
9206 (gimple_canonical_types_compatible_p): Use it.
9207 * tree.h (type_with_interoperable_signedness): Declare
9209 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
9211 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
9212 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
9213 when OEP_ADDRESS_OF is se.
9215 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
9216 Sebastian Pop <s.pop@samsung.com>
9218 * graphite-dependences.c (scop_get_dependences): Add dump of the
9219 data dependence graph.
9220 * graphite-poly.c (print_isl_union_map): New.
9221 (debug_isl_union_map): New.
9222 * graphite-poly.h (print_isl_union_map): Declare.
9223 (debug_isl_union_map): Declare.
9225 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
9226 Sebastian Pop <s.pop@samsung.com>
9228 * graphite-poly.c (print_iteration_domain): Remove verbosity.
9229 Remove OpenScop formatting.
9230 (print_iteration_domains): Same.
9231 (debug_iteration_domain): Same.
9232 (debug_iteration_domains): Same.
9235 (dump_gbb_cases): Same.
9236 (dump_gbb_conditions): Same.
9239 (print_pbb_body): Same.
9241 (print_scop_params): Same.
9242 (print_scop_context): Same.
9244 (debug_pbb_domain): Same.
9246 (debug_scop_context): Same.
9248 (debug_scop_params): Same.
9249 * graphite-poly.h: Same.
9250 * graphite.c (graphite_transform_loops): Same.
9252 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9254 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
9255 call that isn't needed.
9257 2015-10-09 Jeff Law <law@redhat.com>
9259 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
9260 rather than moving each name to the freelist individually.
9262 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
9264 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
9265 * frame-header-opt.c: New file.
9266 * config/mips/mips-proto.h (mips_register_frame_header_opt):
9268 * config/mips/mips.c (mips_compute_frame_info): Check
9269 optimize_call_stack flag.
9270 (mips_option_override): Register new frame_header_opt pass.
9271 (mips_frame_info, mips_int_mask, mips_shadow_set,
9272 machine_function): Move these types to...
9273 * config/mips/mips.h: here.
9274 (machine_function): Add does_not_use_frame_header and
9275 optimize_call_stack fields.
9276 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
9277 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
9279 * config/mips/mips.opt (mframe-header-opt): Add new option.
9281 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
9283 * config/i386/i386.c
9284 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
9285 ROUND_DOWN where applicable.
9287 2015-10-09 Jeff Law <law@redhat.com>
9289 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
9292 2015-10-09 Renlin Li <renlin.li@arm.com>
9294 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
9295 operands[0] and operands[2].
9296 (neon_vtrn<mode>_insn): Likewise.
9297 (neon_vzip<mode>_insn): Likewise.
9299 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
9301 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
9302 ((X & C2) << C1): Expand to...
9303 (X {&,^,|} C2 << C1): ...This.
9304 ((X & C2) >> C1): Expand to...
9305 (X {&,^,|} C2 >> C1): ...This.
9307 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
9310 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
9311 Adjust embedded rounding/SAE specifier position.
9312 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
9313 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
9314 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
9315 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
9316 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
9318 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
9320 2015-10-09 Martin Jambor <mjambor@suse.cz>
9322 tree-optimization/67794
9323 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
9324 between types of state,ents but accept original definitions as a
9326 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
9327 iterate over definitions.
9329 2015-10-09 James Norris <jnorris@codesourcery.com>
9331 * config/rs6000/rs6000.c (rs6000_offload_options): New.
9332 (TARGET_OFFLOAD_OPTIONS): New.
9334 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
9337 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
9340 * function.c (expand_function_end): Move return value
9341 promotion past the handling of PARALLELs and CONCATs.
9343 PR rtl-optimization/67828
9344 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
9345 (tree_may_unswitch_on): Don't unswitch on expressions
9346 involving undefined values.
9348 2015-10-09 Richard Biener <rguenther@suse.de>
9350 * genmatch.c (print_operand): Fix formatting.
9351 (dt_node::append_simplify): Warn for multiple simplifiers
9352 that match the same pattern.
9353 * match.pd (log (exp @0)): Remove duplicates.
9355 2015-10-09 Richard Biener <rguenth@suse.de>
9358 * gimple-fold.c (optabs-query.h): Include
9359 (gimple_fold_builtin_memory_op): Allow unaligned stores
9360 when movmisalign_optabs are available.
9362 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9365 * config/arm/arm.md (movmisalign<mode>): New.
9366 * config/arm/iterators.md (HSI): New.
9368 2015-10-09 Richard Biener <rguenther@suse.de>
9370 PR tree-optimization/67891
9371 * gimple-match.h (gimple_simplified_result_is_gimple_val):
9373 (gimple_resimplify1): Declare.
9374 (gimple_resimplify2): Likewise.
9375 (gimple_resimplify3): Likewise.
9376 * gimple-match-head.c (gimple_resimplify1): Export.
9377 (gimple_resimplify2): Likewise.
9378 (gimple_resimplify3): Likewise.
9379 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
9380 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9381 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
9382 to avoid creating stmts without VN info.
9384 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
9386 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
9389 2015-10-08 Jeff Law <law@redhat.com>
9391 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
9392 and release_ssa_name in two places.
9393 (gimple_stringop_fixed_value): Similarly.
9395 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
9398 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
9399 unlink_stmt_vdef and release_ssa_name_fn.
9401 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
9404 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
9406 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
9407 SSE register save area to 16 bytes only if the incoming stack
9408 boundary is no less than 16 bytes.
9410 2015-10-08 Jeff Law <law@redhat.com>
9412 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
9413 release_ssa_name. Fix typo in comment.
9415 2015-10-08 Nathan Sidwell <nathan@acm.org>
9417 * config/nvptx/nvptx.h (struct machine_function): Add comment.
9418 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
9419 may return pointer as well as in memory.
9420 (nvptx_output_return): Likewise.
9422 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
9424 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
9425 (fold_builtin_1): Update accordingly. Handle constant arguments here.
9426 * match.pd: Add rules previously handled by fold_builtin_sqrt
9427 and fold_builtin_cbrt.
9429 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
9431 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
9432 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
9433 * fold-const.h (tree_unary_nonnegative_warnv_p)
9434 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9435 (tree_expr_nonnegative_warnv_p): Add depth parameters.
9436 * fold-const.c: Include gimple-fold.h and params.h.
9437 (tree_ssa_name_nonnegative_warnv_p): New function.
9438 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
9439 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9440 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
9441 Add a depth parameter and increment it for recursive calls to
9442 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
9443 to handle SSA names.
9444 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
9445 (gimple_stmt_nonnegative_warnv_p): Declare.
9446 * tree-vrp.c (remove_range_assertions): Remove assert that condition
9447 cannot be proven false.
9448 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
9449 (gimple_stmt_nonnegative_warnv_p): Move to...
9450 * gimple-fold.c: ...here. Add depth parameters and pass them
9451 down to the tree routines. Accept statements that aren't
9452 assignments or calls but just return false for them.
9453 (gimple_val_nonnegative_real_p): Delete.
9454 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
9455 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
9456 Check HONOR_NANs first.
9458 2015-10-08 Martin Jambor <mjambor@suse.cz>
9460 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
9463 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9465 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
9466 in the tail of outer-loop.
9468 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
9470 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
9473 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9475 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
9476 "cfghooks.h", add prototypes for introduced new functions.
9477 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
9478 checks on ability of loop unswitching to tree_unswitch_single_loop;
9479 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
9480 on innermost loop check.
9481 (tree_unswitch_single_loop): Add all required checks on ability of
9482 loop unswitching under zero recursive level guard.
9483 (tree_unswitch_outer_loop): New function.
9484 (find_loop_guard): Likewise.
9485 (empty_bb_without_guard_p): Likewise.
9486 (used_outside_loop_p): Likewise.
9487 (get_vop_from_header): Likewise.
9488 (hoist_guard): Likewise.
9489 (check_exit_phi): Likewise.
9491 2015-10-08 Marek Polacek <polacek@redhat.com>
9493 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
9496 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9499 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
9500 create_tmp_var_raw instead of create_tmp_var.
9502 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
9504 * expr.c (store_expr_with_bounds): Handle aggregate moves from
9506 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
9507 to define gimple type system; compare aggregates only by size.
9509 2015-10-07 Jeff Law <law@redhat.com>
9511 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
9512 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
9513 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
9516 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9517 Sebastian Pop <s.pop@samsung.com>
9519 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
9520 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
9521 (generate_isl_schedule): Same.
9522 * graphite-optimize-isl.c (scop_get_domains): Same.
9523 (apply_schedule_map_to_scop): Same.
9524 * graphite-poly.c (print_iteration_domains): Same.
9525 (remove_gbbs_in_scop): Same.
9529 * graphite-poly.h (struct scop): Rename bbs to pbbs.
9531 * graphite-scop-detection.c (compare_bb_depths): Remove.
9532 (graphite_sort_dominated_info): Remove.
9533 (try_generate_gimple_bb): Move out of scop_detection.
9534 (all_non_dominated_preds_marked_p): Remove.
9535 (build_scop_bbs_1): Remove.
9536 (build_scop_bbs): Remove.
9537 (nb_pbbs_in_loops): Do not use SCOP_BBS.
9538 (find_scop_parameters): Same.
9539 (sese_dom_walker): Rename gather_bbs.
9540 (before_dom_children): Call try_generate_gimple_bb and collect gbb
9542 (build_scops): Call gather_bbs.
9543 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
9544 (add_conditions_to_constraints): Same.
9545 (build_scop_iteration_domain): Same.
9546 (build_scop_drs): Same.
9547 (new_pbb_from_pbb): Same.
9548 * sese.c (new_sese_info): Create bbs.
9549 * sese.h (struct sese_info_t): Add bbs.
9551 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
9553 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
9554 encoding in 64-bit mode.
9556 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
9559 * config/i386/i386.c (ix86_option_override_internal): Always use
9560 8-byte minimum stack boundary in 64-bit mode.
9561 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
9562 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
9563 Add a REG_CFA_EXPRESSION note if needed.
9564 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
9565 (ix86_handle_force_align_arg_pointer_attribute): New.
9566 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
9567 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
9568 with ix86_handle_force_align_arg_pointer_attribute.
9569 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
9571 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9572 Sebastian Pop <s.pop@samsung.com>
9574 * graphite-scop-detection.c (parameter_index_in_region): Remove
9575 use of SESE_ADD_PARAMS.
9576 (find_scop_parameters): Same.
9577 * sese.c (new_sese_info): Same.
9578 * sese.h (struct sese_info_t): Remove add_params.
9579 (SESE_ADD_PARAMS): Remove.
9581 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9582 Sebastian Pop <s.pop@samsung.com>
9584 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
9587 (copy_internal_parameters): Same.
9588 (translate_isl_ast_to_gimple): Use an sese_l.
9589 (build_iv_mapping): Same.
9590 * graphite-poly.c (new_sese): Rename new_sese_info.
9591 (free_sese): Rename free_sese_info.
9592 * graphite-poly.h (struct scop): Use an sese_info_p.
9593 (scop_set_region): Same.
9594 * graphite-scop-detection.c (struct sese_l): Moved...
9595 (get_entry_bb): Moved...
9596 (get_exit_bb): Moved...
9597 (parameter_index_in_region_1): Use an sese_info_p.
9598 (parameter_index_in_region): Same.
9599 (scan_tree_for_params): Same.
9600 (find_params_in_bb): Same.
9601 (sese_dom_walker): Use an sese_l.
9602 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
9603 (reduction_phi_p): Same.
9604 (parameter_index_in_region_1): Use an sese_info_p.
9605 (propagate_expr_outside_region): Use an sese_l.
9606 * graphite.c: Replace uses of SCOP_REGION.
9607 * sese.c (sese_record_loop): Use an sese_info_p.
9608 (build_sese_loop_nests): Same.
9609 (sese_build_liveouts_use): Same.
9610 (sese_build_liveouts_bb): Same.
9611 (sese_build_liveouts_bb): Same.
9612 (sese_bad_liveouts_use): Same.
9613 (sese_reset_debug_liveouts_bb): Same.
9614 (sese_build_liveouts): Same.
9615 (new_sese): Renamed new_sese_info.
9616 (free_sese): Renamed free_sese_info.
9617 (set_rename): Use an sese_info_p.
9618 (graphite_copy_stmts_from_block): Same.
9619 (copy_bb_and_scalar_dependences): Same.
9620 (outermost_loop_in_sese_1): Use an sese_l.
9621 (outermost_loop_in_sese): Same.
9622 (if_region_set_false_region): Use an sese_info_p.
9623 (move_sese_in_condition): Same.
9624 (scalar_evolution_in_region): Use an sese_l.
9625 * sese.h (struct sese_l): ... here.
9626 (SESE_ENTRY): Remove.
9627 (SESE_ENTRY_BB): Remove.
9628 (SESE_EXIT): Remove.
9629 (SESE_EXIT_BB): Remove.
9630 (sese_contains_loop): Use an sese_info_p.
9631 (sese_nb_params): Same.
9632 (bb_in_sese_p): Use an sese_l.
9633 (stmt_in_sese_p): Same.
9634 (defined_in_sese_p): Same.
9635 (loop_in_sese_p): Same.
9636 (sese_loop_depth): Same.
9637 (struct ifsese_s): Use an sese_info_p.
9638 (gbb_loop_at_index): Use an sese_l.
9639 (nb_common_loops): Same.
9640 (scev_analyzable_p): Same.
9642 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9644 * config/i386/i386.c (ix86_conditional_register_usage): Use
9645 CALL_USED_REGISTERS_MASK.
9646 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
9648 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9651 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
9652 * configure: Regenerated.
9654 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9657 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
9658 (ix86_set_current_function): This.
9659 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
9661 2015-10-07 Richard Biener <rguenther@suse.de>
9663 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
9664 (vinfo_for_stmt): Adjust.
9665 (set_vinfo_for_stmt): Likewise.
9666 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
9667 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
9668 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
9670 (vect_analyze_loop_1): Remove.
9671 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
9672 inner loop when vectorizing an outer loop by splitting out from ...
9673 (vect_analyze_loop_form): ... here.
9675 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9678 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
9679 Use create_tmp_var_raw instead of create_tmp_var.
9681 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
9683 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
9684 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
9685 * real.c (CACHED_FRACTION): New helper macro.
9686 (dconst_third_ptr): Use it.
9687 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
9688 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
9690 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
9692 2015-10-06 Jeff Law <law@redhat.com>
9694 PR tree-optimization/67816
9695 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
9696 from remove_jump_threads_starting_at. Accept an edge rather than
9698 * tree-ssa-threadupdate.c (removed_edges): New hash table.
9699 (remove_jump_threads_including): Note edges that get removed from
9700 the CFG for later pruning of jump threading paths including them.
9701 (thread_through_all_blocks): Remove paths which include edges that
9703 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
9704 on each outgoing edges when optimizing away a control statement.
9706 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9708 * reorg.c (emit_delay_sequence): Store list of delay slot insns
9709 in a vector instead of rtx_insn_list.
9710 (add_to_delay_list): Likewise.
9711 (delete_from_delay_slot): Likewise.
9712 (optimize_skip): Likewise.
9713 (redirect_with_delay_list_safe_p): Likewise.
9714 (check_annul_list_true_false): Likewise.
9715 (steal_delay_list_from_target): Likewise.
9716 (steal_delay_list_from_fallthrough): Likewise.
9717 (redundant_insn): Likewise.
9718 (fill_simple_delay_slots): Likewise.
9719 (fill_slots_from_thread): Likewise.
9720 (fill_eager_delay_slots): Likewise.
9721 (relax_delay_slots): Likewise.
9723 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
9725 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
9726 For -mgpopt=local, also exclude unintialized common symbols.
9727 * doc/invoke.texi (Nios II Options): Document the change.
9729 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
9731 * config/aarch64/iterators.md (vwcore): Add missing cases for
9734 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9735 Sebastian Pop <s.pop@samsung.com>
9737 * graphite-poly.c (new_scop): Initialize drs.
9738 * graphite-poly.h (struct dr_info): New.
9739 (struct scop): Add drs.
9740 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
9741 (pdr_add_memory_accesses): Same.
9742 (build_poly_dr): Same.
9743 (build_alias_set): Same.
9744 (build_scop_drs): Same.
9745 (build_pbb_drs): Remove.
9746 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
9747 * tree-data-ref.h (data_reference): Remove alias_set.
9749 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9750 Sebastian Pop <s.pop@samsung.com>
9752 * graphite-poly.c (free_data_refs_aux): Remove.
9753 (free_gimple_poly_bb): Do not call free_data_refs_aux.
9754 * graphite-poly.h (struct base_alias_pair): Remove.
9755 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
9756 base_alias_pair and dr->aux.
9757 (build_alias_set): Same.
9758 * tree-data-ref.c (create_data_ref): Initialize alias_set.
9759 * tree-data-ref.h (data_reference): Add alias_set.
9761 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9762 Sebastian Pop <s.pop@samsung.com>
9764 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
9765 Do not set PDR_BASE_OBJECT_SET.
9766 * graphite-poly.h (poly_dr): Same.
9767 (PDR_BASE_OBJECT_SET): Remove.
9768 (new_poly_dr): Update decl.
9769 * graphite-sese-to-poly.c (build_poly_dr): Update call to
9771 (write_alias_graph_to_ascii_dimacs): Remove.
9772 (write_alias_graph_to_ascii_dot): Remove.
9773 (write_alias_graph_to_ascii_ecc): Remove.
9774 (dr_same_base_object_p): Remove.
9775 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
9777 (build_base_obj_set_for_drs): Remove.
9778 (dump_alias_graphs): Remove.
9779 (build_scop_drs): Remove dead code.
9781 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9782 Peter Bergner <bergner@vnet.ibm.com>
9785 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
9786 allow registers, but provide insns for the combiner to create for
9787 loads from memory. Separate VSX code from non-VSX code. For
9788 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
9789 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
9790 so that registers come before memory operations. Drop support from
9791 converting DFmode to TFmode, if the DFmode value is in a GPR
9793 (extenddftf2_fprs): Likewise.
9794 (extenddftf2_internal): Likewise.
9795 (extenddftf2_vsx): Likewise.
9796 (extendsftf2): In the expander, only allow registers, but provide
9797 insns for the combiner to create for stores and loads.
9799 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9801 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
9802 from the decl parameter.
9804 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
9807 * gimple-fold.c (gimple_fold_builtin): Add break after
9808 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
9810 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
9812 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
9813 to scop->isl_context.
9815 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
9817 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
9818 (output_probe_stack_range): Rotate the loop and simplify.
9819 (thumb1_expand_prologue): Tweak sorry message.
9820 * config/arm/arm.md (probe_stack): Use bare string.
9822 2015-10-06 Nick Clifton <nickc@redhat.com>
9824 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
9826 2015-10-06 Nick Clifton <nickc@redhat.com>
9828 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
9829 (ATTR_PERSIST): New constant.
9830 (msp430_data_attr): New function - verifies an attribute that only
9831 applies to variables.
9832 (msp430_attributes): Add noinit and persistent attributes.
9833 (noinit_section): New variable.
9834 (presis_section): New variable.
9835 (TARGET_ASM_INIT_SECTIONS): Define.
9836 (msp430_init_sections): New function - initialises the noinit and
9837 persist section variables.
9838 (msp430_select_section): Add support for noinit and persist
9840 (msp430_section_type_flags): Likewise.
9841 * doc/extend.texi: Document the reent, critical, wakeup, noinit
9842 and persistent attributes.
9844 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9845 Sebastian Pop <s.pop@samsung.com>
9847 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
9848 (no_violations): Remove.
9849 (subtract_commutative_associative_deps): Remove.
9850 (compute_deps): Do not call subtract_commutative_associative_deps.
9851 (transform_is_safe): Remove.
9852 (graphite_legal_transform): Remove.
9853 * graphite-poly.h (graphite_legal_transform): Remove.
9855 2015-10-05 Aditya Kumar <hiraditya@msn.com>
9857 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
9858 which are in this region are passed so gcc_assert and remove redundant
9860 * sese.c (sese_build_liveouts): Pass only those bbs which are not
9862 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
9863 gcc_assert on that and remove unnecessary computation.
9864 (sese_build_liveouts_use): Same.
9866 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9868 * graphite-dependences.c (scop_get_reads): Renamed scop->context
9869 to scop->param_context.
9870 (scop_get_must_writes): Same.
9871 (scop_get_may_writes): Same.
9872 (scop_get_original_schedule): Same.
9873 (scop_get_transformed_schedule): Same.
9874 (subtract_commutative_associative_deps): Same.
9875 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
9876 (generate_isl_context): Same.
9877 (generate_isl_schedule): Same.
9878 (scop_to_isl_ast): Same.
9879 (graphite_regenerate_ast_isl): Same.
9880 * graphite-optimize-isl.c (scop_get_domains): Same.
9881 (optimize_isl): Renamed scop->context to scop->param_context.
9882 * graphite-poly.c (new_poly_bb): Change the type of argument to
9884 (new_scop): Renamed scop->context to scop->param_context.
9886 (print_scop_context): Same.
9887 * graphite-poly.h (new_poly_dr): Change the type of argument from
9888 void* to data_reference_p.
9889 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
9890 (new_poly_bb): Change the type of argument from void* to
9892 (pbb_set_black_box): Same.
9893 (struct scop): Rename context to param_context, ctx to isl_context.
9894 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
9895 Move declarations closer to assignment.
9896 (find_params_in_bb): Same.
9897 (find_scop_parameters): Same.
9898 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
9899 Global to be used for statement IDs.
9900 (isl_id_for_pbb): Use ssa_name_version_typesize.
9901 (simple_copy_phi_p): Move declarations closer to assignment.
9902 (build_pbb_scattering_polyhedrons): Same.
9903 (build_scop_scattering): Same.
9904 (isl_id_for_ssa_name): Same.
9905 (extract_affine_name): Same.
9906 (extract_affine_int): Same.
9907 (extract_affine): Same.
9908 (set_scop_parameter_dim): Use renamed member.
9909 (build_loop_iteration_domains): Same.
9910 (add_param_constraints): Same.
9911 (build_scop_iteration_domain): Same.
9912 (pdr_add_data_dimensions): Same.
9913 (build_poly_dr): Same.
9914 (build_scop_drs): Move declarations closer to assignment.
9915 (analyze_drs_in_stmts): Same.
9916 (insert_out_of_ssa_copy): Same.
9917 (insert_out_of_ssa_copy_on_edge): Same.
9918 (propagate_expr_outside_region): Same.
9919 (rewrite_phi_out_of_ssa): Same.
9920 (rewrite_degenerate_phi): Same.
9921 (rewrite_reductions_out_of_ssa): Same.
9922 (rewrite_cross_bb_scalar_dependence): Same.
9923 (handle_scalar_deps_crossing_scop_limits): Same.
9924 (rewrite_cross_bb_scalar_deps): Same.
9925 * graphite.c (graphite_transform_loops): Use renamed member.
9927 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
9930 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
9931 create_tmp_var_raw instead of create_tmp_var.
9933 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9936 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
9937 Use create_tmp_var_raw instead of create_tmp_var.
9939 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
9942 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
9943 split for upper-bank registers when target does not support
9945 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
9946 split when target does not support AVX512VL.
9948 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
9951 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
9952 Adjust to use create_tmp_var_raw instead of create_tmp_var.
9954 2015-10-06 Nick Clifton <nickc@redhat.com>
9956 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
9959 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9961 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
9962 (case ${target}): Add znver1.
9963 * config/i386/cpuid.h(bit_CLZERO): Define.
9964 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
9965 -march=native recognize znver1 processors.
9966 * config/i386/i386-c.c (ix86_target_macros_internal): Add
9967 znver1, clzero def_and_undef.
9968 * config/i386/i386.c (struct processor_costs znver1_cost): New.
9969 (m_znver1): New definition.
9970 (m_AMD_MULTIPLE): Includes m_znver1.
9971 (processor_target_table): Add znver1 entry.
9972 (ix86_target_string) : Add clzero entry.
9973 (static const char *const cpu_names): Add znver1 entry.
9974 (ix86_option_override_internal): Add znver1 instruction sets.
9975 (PTA_CLZERO) : New definition.
9976 (ix86_option_override_internal): Handle new clzerooption.
9977 (ix86_issue_rate): Add znver1.
9978 (ix86_adjust_cost): Add znver1.
9979 (ia32_multipass_dfa_lookahead): Add znver1.
9980 (has_dispatch): Add znver1.
9981 * config/i386/i386.h (TARGET_znver1): New definition.
9982 (TARGET_CLZERO): Define.
9983 (TARGET_CLZERO_P): Define.
9984 (struct ix86_size_cost): Add TARGET_ZNVER1.
9985 (enum processor_type): Add PROCESSOR_znver1.
9986 * config/i386/i386.md (define_attr "cpu"): Add znver1.
9987 (set_attr znver1_decode): New definitions for znver1.
9988 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
9990 * config/i386/mmx.md (set_attr znver1_decode): New definitions
9992 * config/i386/sse.md (set_attr znver1_decode): Likewise.
9993 * config/i386/x86-tune.def: Add znver1 tunings.
9994 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
9995 * doc/invoke.texi: Add details about znver1
9997 2015-10-06 Richard Biener <rguenther@suse.de>
9999 PR tree-optimization/67859
10000 * tree-ssa-pre.c (create_expression_by_pieces): Properly
10001 discard not inserted stmts.
10003 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
10005 * doc/extend.texi (Template Instantiation): Reorder options and
10006 de-emphasize -frepo.
10007 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
10008 example instead of -frepo.
10010 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
10013 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
10014 use create_tmp_var_raw rather than create_tmp_var.
10016 2015-10-06 Richard Biener <rguenther@suse.de>
10018 * tree-vectorizer.h (vec_info): New base class for...
10019 (_loop_vec_info): ... this and ...
10020 (_bb_vec_info): ... this.
10021 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
10022 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
10023 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
10024 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
10025 vect_destroy_datarefs): Adjust interface to take a vec_info *
10026 rather than both a loop_vec_info and a bb_vec_info argument.
10027 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
10028 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
10029 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
10030 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
10032 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
10033 (destroy_loop_vec_info, vect_analyze_loop_2,
10034 vect_is_simple_reduction_1, get_initial_def_for_induction,
10035 vect_create_epilog_for_reduction, vectorizable_reduction,
10036 vectorizable_live_operation, vect_transform_loop): Adjust.
10037 * tree-vect-patterns.c (type_conversion_p,
10038 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
10039 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
10040 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
10041 check_bool_pattern, vect_recog_bool_pattern,
10042 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
10043 * tree-vect-slp.c (vect_get_and_check_slp_defs,
10044 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
10045 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
10046 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
10047 (new_bb_vec_info): Initialize base classs.
10048 * tree-vect-stmts.c (record_stmt_cost, process_use,
10049 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
10050 vectorizable_mask_load_store, vectorizable_call,
10051 vectorizable_simd_clone_call, vectorizable_conversion,
10052 vectorizable_assignment, vectorizable_shift,
10053 vectorizable_operation, vectorizable_store,
10054 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
10055 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
10056 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
10058 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
10061 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
10062 create_tmp_var_raw rather than create_tmp_var.
10064 2015-10-05 Marek Polacek <polacek@redhat.com>
10066 * tree-ssa-loop-im.c
10067 (move_computations_dom_walker::before_dom_children): Don't set
10068 SSA_NAME_ANTI_RANGE_P.
10069 * tree-ssa-phiopt.c (value_replacement): Likewise.
10071 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10072 Sebastian Pop <s.pop@samsung.com>
10074 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
10076 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10077 Sebastian Pop <s.pop@samsung.com>
10079 * graphite-poly.c (new_gimple_poly_bb): ... here.
10080 (free_data_refs_aux): ... here.
10081 (free_gimple_poly_bb): ... here.
10082 (remove_gbbs_in_scop): ... here.
10083 (new_scop): Call new_sese.
10084 (free_scop): Call remove_gbbs_in_scop and free_sese.
10085 * graphite-poly.h (base_alias_pair): ... here.
10086 (new_gimple_poly_bb): Declare.
10087 (free_gimple_poly_bb): Declare.
10088 * graphite-scop-detection.c (parameter_index_in_region_1):
10089 (parameter_index_in_region): ... here.
10090 (scan_tree_for_params): ... here.
10091 (find_params_in_bb): ... here.
10092 (find_scop_parameters): ... here.
10093 (build_scops): Call find_scop_parameters.
10094 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
10095 (free_scops): Move...
10096 (single_pred_cond_non_loop_exit): Move...
10097 (sese_dom_walker::before_dom_children): Move...
10098 (sese_dom_walker::after_dom_children): Move...
10099 (build_poly_scop): Move...
10100 * graphite-sese-to-poly.h (base_alias_pair): Move...
10101 * graphite.c (free_scops): ... here.
10103 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10104 Sebastian Pop <s.pop@samsung.com>
10106 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
10107 (trivially_empty_bb_p): Move...
10108 (same_close_phi_node): Move...
10109 (new_gimple_poly_bb): Move...
10110 (compare_bb_depths): Move...
10111 (graphite_sort_dominated_info): Move...
10112 (remove_duplicate_close_phi): Move...
10113 (make_close_phi_nodes_unique): Move...
10114 (canonicalize_loop_closed_ssa): Move...
10115 (canonicalize_loop_closed_ssa_form): Move...
10116 (loop_ivs_can_be_represented): Move...
10117 (single_pred_cond_non_loop_exit): Move...
10118 (graphite_can_represent_init): Move...
10119 (graphite_can_represent_scev): Move...
10120 (stmt_has_simple_data_refs_p): Move...
10121 (stmt_has_side_effects): Move...
10122 (graphite_can_represent_stmt): Move...
10123 (scop_detection): ... here.
10124 (sese_dom_walker): ... and here.
10125 (build_scops): Call all moved functions.
10126 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
10127 (all_non_dominated_preds_marked_p): Move...
10128 (build_scop_bbs_1): Move...
10129 (build_scop_bbs): Move...
10130 (set_scop_parameter_dim): Move...
10131 (nb_pbbs_in_loops): Move...
10132 (build_poly_scop): Do not call all the moved functions.
10134 2015-10-05 Martin Jambor <mjambor@suse.cz>
10135 Jan Hubicka <hubicka@ucw.cz>
10137 * ipa-cp.c (ipcp_alignment_lattice): New type.
10138 (ipcp_param_lattices): Use the above to represent alignment.
10139 (ipcp_alignment_lattice::print): New function.
10140 (print_all_lattices): Use it to print alignment information.
10141 (ipcp_alignment_lattice::top_p): New function.
10142 (ipcp_alignment_lattice::bottom_p): Likewise.
10143 (ipcp_alignment_lattice::set_to_bottom): Likewise.
10144 (ipcp_alignment_lattice::meet_with_1): Likewise.
10145 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
10146 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
10147 (initialize_node_lattices): Likewise.
10148 (propagate_alignment_accross_jump_function): Work with the new class
10149 for alignment lattices.
10150 (propagate_constants_accross_call): Pass only the alignment lattice to
10151 propagate_alignment_accross_jump_function.
10152 (ipcp_store_alignment_results): Work with the new class for alignment
10155 2015-10-05 Marek Polacek <polacek@redhat.com>
10157 PR tree-optimization/67821
10158 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
10160 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
10163 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
10165 (mkoffload_cleanup): ... this. Adjust all users.
10166 (maybe_unlink): Look at save_temps and verbose flags instead of
10168 (main): Parse "-save-temps" flag.
10169 (generate_target_descr_file, generate_target_offloadend_file)
10170 (generate_host_descr_file, prepare_target_image): Pass it on.
10171 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
10172 (mkoffload_cleanup): New function.
10173 (maybe_unlink): Look at save_temps and verbose flags instead of
10175 (main): Instead of calling utils_cleanup, register atexit handler
10176 for mkoffload_cleanup.
10177 (main): Parse "-save-temps" flag.
10178 (compile_native, main): Pass it on.
10179 * lto-wrapper.c (compile_offload_image): Likewise.
10181 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10183 * gimple.h (gimple_op_ptr): Require a non const gimple *.
10184 (gimple_assign_lhs_ptr): Likewise.
10185 (gimple_assign_rhs1_ptr): Likewise.
10186 (gimple_assign_rhs2_ptr): Likewise.
10187 (gimple_assign_rhs3_ptr): Likewise.
10188 (gimple_call_lhs_ptr): Likewise.
10189 (gimple_call_fn_ptr): Likewise.
10190 (gimple_call_chain_ptr): Likewise.
10191 (gimple_call_arg_ptr): Likewise.
10192 (gimple_cond_lhs_ptr): Likewise.
10193 (gimple_cond_rhs_ptr): Likewise.
10194 (gimple_switch_index_ptr): Likewise.
10195 (gimple_return_retval_ptr): Likewise.
10197 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10199 * gimple.h (gimple_asm_input_op_ptr): Remove.
10200 (gimple_asm_output_op_ptr): Likewise.
10202 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10204 * gimple.h (gimple_location_ptr): Remove.
10205 * tree-vrp.c (check_all_array_refs): Adjust.
10207 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10209 * tree-ssa-operands.c (build_uses): store tree * instead of
10211 (finalize_ssa_uses): Adjust.
10212 (append_use): Likewise.
10213 (verify_ssa_operands): Likewise.
10215 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10217 * real.h (build_real_truncate): Declare.
10218 * tree.c (build_real_truncate): New function.
10219 (strip_float_extensions): Use it.
10220 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
10221 (fold_builtin_hypot, fold_builtin_pow): Likewise.
10222 * match.pd: Likewise.
10224 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
10225 Jiong Wang <jiong.wang@arm.com>
10227 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
10229 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10231 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
10232 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
10233 (aarch64_print_operand, aarch64_float_const_representable_p)
10234 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
10235 instead of REAL_VALUE_FROM_CONST_DOUBLE.
10236 * config/arc/arc.c (arc_print_operand): Likewise.
10237 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
10238 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
10239 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
10241 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
10242 (consttable_16): Likewise.
10243 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
10244 * config/avr/avr.c (avr_print_operand): Likewise.
10245 * config/bfin/bfin.md: Likewise (in a define_split).
10246 * config/c6x/c6x.md: Likewise (in a define_split).
10247 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
10248 (cr16_print_operand): Likewise.
10249 * config/cris/cris.c (cris_print_operand): Likewise.
10250 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
10251 * config/fr30/fr30.c (fr30_print_operand): Likewise.
10252 (fr30_const_double_is_zero): Likewise.
10253 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
10254 * config/frv/frv.md: Likewise (in a define_split).
10255 * config/frv/predicates.md (int_2word_operand): Likewise.
10256 * config/h8300/h8300.c (h8300_print_operand): Likewise.
10257 * config/i386/i386.c (standard_80387_constant_p): Likewise.
10258 (ix86_print_operand, ix86_split_to_parts): Likewise.
10259 * config/i386/i386.md: Likewise (in a define_split).
10260 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
10261 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
10262 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
10263 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
10264 (print_operand): Likewise.
10265 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
10266 * config/mep/mep.md: Likewise (in define_split).
10267 * config/microblaze/microblaze.c (microblaze_const_double_ok)
10268 (print_operand): Likewise.
10269 * config/mips/mips.md (consttable_float): Likewise.
10270 * config/mmix/mmix.c (mmix_intval): Likewise.
10271 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
10272 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
10273 * config/pa/pa.c (pa_singlemove_string): Likewise.
10274 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
10275 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
10276 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
10277 (output_toc): Likewise.
10278 * config/rs6000/rs6000.md: Likewise (in define_splits).
10279 * config/rx/rx.c (rx_print_operand): Likewise.
10280 * config/s390/s390.c (s390_output_pool_entry): Likewise.
10281 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10282 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
10283 (and also in define_splits).
10284 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
10285 (fp_high_losum_p): Likewise.
10286 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
10287 (*movsf_high): Likewise.
10288 * config/spu/spu.c (const_double_to_hwint): Likewise.
10289 * config/v850/v850.c (const_double_split): Likewise.
10290 * config/vax/vax.c (vax_float_literal): Likewise.
10291 * config/visium/visium.c (visium_expand_copysign): Likewise.
10292 * config/visium/visium.md: Likewise (in define_split).
10293 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10294 * config/xtensa/xtensa.c (print_operand): Likewise.
10295 (xtensa_output_literal): Likewise.
10296 * cprop.c (implicit_set_cond_p): Likewise.
10297 * dwarf2out.c (insert_float): Likewise.
10298 * expmed.c (expand_mult, make_tree): Likewise.
10299 * expr.c (compress_float_constant): Likewise.
10300 * rtlanal.c (split_double): Likewise.
10301 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10302 (simplify_const_unary_operation, simplify_binary_operation_1)
10303 (simplify_const_binary_operation): Likewise.
10304 (simplify_const_relational_operation): Likewise.
10305 * varasm.c (output_constant_pool_2): Likewise.
10307 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10309 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
10310 instead of CONST_DOUBLE_FROM_REAL_VALUE.
10311 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
10312 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
10313 instead of CONST_DOUBLE_FROM_REAL_VALUE.
10314 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
10315 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
10316 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
10317 (ix86_emit_swsqrtsf): Likewise.
10318 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
10319 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
10320 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10321 * config/pa/pa.c (pa_expand_builtin): Likewise.
10322 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
10323 (rs6000_scale_v2df): Likewise.
10324 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
10325 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
10326 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
10327 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
10328 (vec_ctul): Likewise.
10329 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
10330 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
10331 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
10332 * cse.c (fold_rtx): Likewise.
10333 * emit-rtl.c (immed_double_const): Likewise (in comments).
10334 (init_emit_once): Likewise.
10335 * expr.c (compress_float_constant, expand_expr_real_1)
10336 (const_vector_from_tree): Likewise.
10337 * optabs.c (expand_float, expand_fix): Likewise.
10338 * reg-stack.c (reg_to_stack): Likewise.
10339 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10340 (simplify_const_unary_operation, simplify_binary_operation_1)
10341 (simplify_const_binary_operation, simplify_relational_operation)
10342 (simplify_immed_subreg): Likewise.
10344 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10346 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
10347 * doc/tm.texi: Regenerate.
10348 * real.h (REAL_ARITHMETIC): Delete.
10349 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
10350 (ix86_expand_round_sse4): Use real_arithmetic instead of
10352 * config/i386/sse.md (round<mode>2): Likewise.
10353 * rtl.h (rtx_to_tree_code): Likewise (in comment).
10354 * explow.c (rtx_to_tree_code): Likewise (in comment).
10355 * match.pd: Likewise.
10356 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10357 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10358 (expand_pow_as_sqrts): Likewise.
10359 * tree-pretty-print.c (dump_generic_node): Remove code that
10360 was conditional on REAL_ARITHMETIC being undefined.
10362 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10364 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
10365 * doc/tm.texi: Regenerate.
10366 * real.h (real_less): Declare.
10367 (REAL_VALUES_LESS): Delete.
10368 * real.c (real_less): New function.
10369 (real_compare): Use it.
10370 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
10371 of REAL_VALUES_LESS.
10372 * config/microblaze/microblaze.c (microblaze_const_double_ok):
10374 * fold-const.c (fold_convert_const_int_from_real): Likewise.
10375 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10376 (simplify_const_relational_operation): Likewise.
10377 * tree-call-cdce.c (check_pow): Likewise.
10378 (gen_conditions_for_pow_cst_base): Likewise.
10380 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10382 * real.h (REAL_VALUES_IDENTICAL): Delete.
10383 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
10384 instead of REAL_VALUES_IDENTICAL.
10385 * fold-const.c (operand_equal_p): Likewise.
10386 * ipa-icf.c (sem_variable::equals): Likewise.
10387 * tree-complex.c (some_nonzerop): Likewise.
10388 (expand_complex_multiplication): Likewise.
10389 * tree.c (simple_cst_equal): Likewise.
10390 * varasm.c (compare_constant): Likewise.
10392 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10394 * real.h (real_equal): Declare.
10395 (REAL_VALUES_EQUAL): Delete.
10396 * real.c (real_equal): New function.
10397 (real_compare): Use it.
10398 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
10399 * doc/tm.texi: Regenerate.
10400 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
10401 real_equal instead of REAL_VALUES_EQUAL.
10402 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
10403 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
10404 (fp_const_from_val): Likewise.
10405 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
10406 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
10407 (floating_exact_log2): Likewise.
10408 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10409 * config/vax/vax.c (vax_float_literal): Likewise.
10410 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10411 * cprop.c (implicit_set_cond_p): Likewise.
10412 * expmed.c (expand_mult): Likewise.
10413 * fold-const.c (const_binop): Likewise.
10414 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10415 (simplify_const_binary_operation): Likewise.
10416 (simplify_const_relational_operation): Likewise.
10417 * tree-call-cdce.c (check_pow): Likewise.
10418 (gen_conditions_for_pow_cst_base): Likewise.
10419 * tree-inline.c (estimate_num_insns): Likewise.
10420 * tree-ssa-dom.c (record_equality): Likewise.
10421 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10422 (gimple_expand_builtin_pow): Likewise.
10423 (pass_optimize_widening_mul::execute): Likewise.
10424 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
10425 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
10426 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
10428 2015-10-05 Richard Biener <rguenther@suse.de>
10431 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
10432 consider loop header PHI defs as IVs.
10434 2015-10-05 Richard Biener <rguenther@suse.de>
10436 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
10438 (create_expression_by_pieces): ... here and build GIMPLE
10439 calls directly. Use gimple_build API and avoid force_gimple_operand.
10440 (insert_into_preds_of_block): Simplify.
10441 (do_regular_insertion): Add comment.
10443 2015-10-04 Jason Merrill <jason@redhat.com>
10445 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
10447 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
10449 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
10450 check for general register.
10451 (ix86_emit_save_regs): Ditto.
10452 (ix86_emit_save_regs_using_mov): Ditto.
10453 (ix86_emit_restore_regs_using_pop): Ditto.
10454 (ix86_emit_restore_regs_using_mov): Ditto.
10456 2015-10-03 Marek Polacek <polacek@redhat.com>
10458 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
10459 (insn-dfatab.o): Likewise.
10461 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
10463 * config.gcc (xtensa*-*-uclinux*): New configuration.
10464 * config/xtensa/uclinux.h: New file.
10465 * config/xtensa/uclinux.opt: New file.
10467 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
10469 * doc/cpp.texi (Standard Predefined Macros): Document value of
10470 __cplusplus for C++14.
10472 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
10474 * gcc.c (process_command): Use spec_machine rather than
10475 spec_host_machine to build tooldir_prefix2.
10477 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10478 Bernd Schmidt <bernds@codesourcery.com>
10480 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
10481 (Token, Stmt): Remove structs.
10482 (decls, vars, fns): Remove variables.
10483 (alloc_comment, append_stmt, is_keyword): Remove macros.
10484 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
10485 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
10486 (parse_init, parse_file): Remove functions.
10487 (read_file): Accept a pointer to a length and store into it.
10488 (process): Don't try to parse the input file, just write it out as
10489 a string, but looking for maps. Also write out the length.
10490 (main): Don't use "-S" to compile PTX code.
10492 2015-10-02 Jeff Law <law@redhat.com>
10494 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
10497 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10500 * config/nvptx/mkoffload.c (main): Scan the argument vector for
10501 -fopenmp, and skip generating an offloading image if specified.
10503 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
10505 * system.h (ROUND_UP): New macro definition.
10506 (ROUND_DOWN): Ditto.
10507 * ggc-page.c (ROUND_UP): Remove local macro definition.
10508 (PAGE_ALIGN): Implement using ROUND_UP macro.
10510 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
10511 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
10513 (ix86_compute_frame_layout): Ditto.
10514 (ix86_expand_prologue): Ditto.
10515 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
10516 to round down values.
10517 (expand_set_or_movmem_via_rep): Ditto.
10519 2015-10-02 Marek Polacek <polacek@redhat.com>
10521 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
10523 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
10525 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
10526 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
10527 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
10528 (free_gimple_bb): Renamed free_gimple_poly_bb.
10529 (try_generate_gimple_bb): Hoist loop invariant code.
10530 (analyze_drs_in_stmts): Same.
10531 (build_scop_drs): Call renamed functions.
10532 (new_pbb_from_pbb): Same.
10533 (scop_ivs_can_be_represented): Delete as functionality now moved to
10534 graphite-scop-detection.c
10535 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
10537 2015-10-02 Aditya Kumar <hiraditya@msn.com>
10539 * graphite-scop-detection.c (stmt_has_side_effects): New function
10540 outlined from stmt_simple_for_scop_p.
10541 (graphite_can_represent_stmt): Same.
10542 (stmt_simple_for_scop_p): Moved code out of this function for better
10545 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10547 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
10549 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
10551 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10553 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
10555 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
10557 PR rtl-optimization/67756
10558 * lra-constraints.c (match_reload): Add a new parameter. Use it
10559 for creating a pseudo with the same value.
10560 (curr_insn_transform): Pass a new argument to match_reload.
10562 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10564 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
10565 (expand_vec_perm_even_odd_1): Handle V64QImode.
10566 (ix86_expand_vec_perm_const_1): Try expansion with
10567 expand_vec_perm_even_odd_trunc as well.
10568 * config/i386/sse.md (VI124_AVX512F): Rename to ...
10569 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
10571 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
10572 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
10573 to V32HI and V16SI.
10574 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
10575 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
10576 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
10577 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
10578 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
10579 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
10581 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10583 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
10584 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
10586 2015-10-02 Jason Merrill <jason@redhat.com>
10589 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
10590 (diagnose_tm_1_op): Also diagnose volatile accesses in
10591 transaction_safe function.
10593 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
10595 * system.h (malloc.h): Don't include obsolete header.
10597 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10599 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
10600 (TLS_SECTION_ASM_FLAG): Delete.
10602 2015-10-02 Marek Polacek <polacek@redhat.com>
10605 * doc/invoke.texi: Document -Wduplicated-cond.
10606 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
10607 (insn-dfatab.o): Likewise.
10608 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
10611 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
10613 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
10616 2015-10-02 Renlin Li <renlin.li@arm.com>
10618 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
10620 2015-10-02 Renlin Li <renlin.li@arm.com>
10623 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
10625 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10627 PR rtl-optimization/67786
10628 PR rtl-optimization/67787
10629 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
10630 it modifies a reg used in the condition calculation.
10632 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
10634 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
10635 alternatives for reads from memory and moves from general-purpose
10637 (*aarch64_combinez_be<mode>): Likewise.
10639 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
10642 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
10643 selectany within this function without need to keep attribute.
10644 (i386_pe_encode_section_info): Remove selectany-code.
10646 2015-10-02 Richard Biener <rguenther@suse.de>
10648 * tree-ssa-sccvn.c (has_VN_INFO): New function.
10649 (free_scc_vn): Use it.
10650 (visit_use): Remove dead code and refactor to use gassign
10651 and use less indentation.
10653 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10657 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
10658 (rs6000_cannot_copy_insn_p): New function.
10659 * config/rs6000/rs6000.md (cannot_copy): New attribute.
10660 (load_toc_v4_PIC_1_normal): Set cannot_copy.
10661 (load_toc_v4_PIC_1_476): Ditto.
10663 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10665 * graphite-scop-detection.c (struct sese_l): New conversion constructor
10666 so that this type can be pushed into a vec.
10667 (class scop_builder): use sese_l to collect scops.
10668 (get_scops): New getter function.
10669 (remove_intersecting_scops): Use sese_l instead of scops_p.
10670 (intersects): Same.
10673 (remove_subscops): Same.
10674 (build_scops): Add scops to vec<scops_p> once all the scops have been
10677 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10679 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
10680 Renamed type from gimple_bb_p to gimple_poly_bb_p.
10681 (translate_isl_ast_node_user): Same.
10682 * graphite-poly.c (new_poly_bb): Same.
10683 * graphite-poly.h (gbb_from_bb): Same.
10685 * graphite-sese-to-poly.c (new_gimple_bb):
10686 gimple_bb_p -> gimple_poly_bb_p
10687 (build_scop_scattering): Same.
10688 (find_params_in_bb): Same.
10689 (add_conditions_to_domain): Same.
10690 (sese_dom_walker::before_dom_children): Same.
10691 (analyze_drs_in_stmts): Same.
10692 (new_pbb_from_pbb): Same.
10693 (free_data_refs_aux): New pointer to type base_alias_pair.
10694 * graphite-sese-to-poly.h: Same.
10695 * sese.c (if_region_set_false_region): Fixed Indentation.
10696 (move_sese_in_condition): Same.
10698 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10699 Aditya Kumar <aditya.k7@samsung.com>
10701 PR tree-optimization/66980
10702 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
10703 when data reference analysis has failed.
10705 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10706 Aditya Kumar <aditya.k7@samsung.com>
10708 PR tree-optimization/67754
10709 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
10710 scev analysis on the same loop nest as analyze_drs_in_stmts.
10711 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
10713 (try_generate_gimple_bb): Call outermost_loop_in_sese.
10714 (analyze_drs_in_stmts): Same.
10715 * sese.c (outermost_loop_in_sese): ...here.
10717 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10718 Aditya Kumar <aditya.k7@samsung.com>
10720 PR tree-optimization/67754
10721 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
10722 recursion on the inner loops.
10724 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10726 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
10727 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
10728 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
10729 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
10730 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
10732 2015-10-01 Marek Polacek <polacek@redhat.com>
10735 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
10736 create_tmp_var_raw rather than create_tmp_var.
10738 2015-10-01 Marek Polacek <polacek@redhat.com>
10740 PR tree-optimization/67769
10741 * tree-ssa-phiopt.c (conditional_replacement): Call
10742 reset_flow_sensitive_info_in_bb.
10743 (minmax_replacement): Likewise.
10744 (abs_replacement): Likewise.
10746 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
10748 * builtins.c: Don't include gomp-constants.h.
10749 (fold_builtin_1): Don't fold acc_on_device here.
10750 * gimple-fold.c: Include gomp-constants.h.
10751 (gimple_fold_builtin_acc_on_device): New.
10752 (gimple_fold_builtin): Call it.
10754 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
10756 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
10757 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
10759 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
10761 * config/arm/aarch-common-protos.h
10762 (aarch_accumulator_forwarding): New.
10763 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10764 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
10765 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10766 * config/arm/cortex-a53.md: Rewrite.
10768 2015-10-01 Richard Biener <rguenther@suse.de>
10770 * gimple-match.h (mprts_hook): Declare.
10771 * gimple-match.head.c (mprts_hook): Define.
10772 (maybe_push_res_to_seq): Use new hook.
10773 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10774 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
10775 (vn_ssa_aux::has_constants): Remove.
10776 * tree-ssa-sccvn.c: Include gimple-match.h.
10777 (VN_INFO_GET): Assert we don't re-use SSA names.
10778 (vn_get_expr_for): Remove.
10779 (expr_has_constants): Likewise.
10780 (stmt_has_constants): Likewise.
10781 (simplify_binary_expression): Likewise.
10782 (simplify_unary_expression): Likewise.
10783 (vn_lookup_simplify_result): New hook.
10784 (visit_copy): Adjust.
10785 (visit_reference_op_call): Likewise.
10786 (visit_phi): Likewise.
10787 (visit_use): Likewise.
10788 (process_scc): Likewise.
10789 (init_scc_vn): Likewise.
10790 (visit_reference_op_load): Likewise. Use match-and-simplify and
10791 a gimple seq for inserted expressions.
10792 (try_to_simplify): Remove GENERIC stmt combining code.
10793 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
10794 * tree-ssa-pre.c (eliminate_insert): Adjust.
10795 (eliminate_dom_walker::before_dom_children): Likewise.
10797 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10799 * doc/invoke.texi (Optimization Options): Add
10800 -freorder-blocks-algorithm=.
10801 (Optimize Options) <-O>: Add -freorder-blocks.
10802 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
10803 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
10804 <-freorder-blocks>: Also enabled at levels -O and -Os.
10805 <-freorder-blocks-algorithm=>: Document new option.
10807 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10809 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
10810 with flag_reorder_blocks_algorithm.
10811 * common.opt (freorder-blocks-algorithm=): New flag.
10812 (reorder_blocks_algorithm): New enum.
10813 * flag-types.h (reorder_blocks_algorithm): New enum.
10814 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
10815 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
10817 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10819 * bb-reorder.c: Add intro comment.
10820 (reorder_basic_blocks_software_trace_cache): Print a header to
10822 (edge_order): New function.
10823 (reorder_basic_blocks_simple): New function.
10824 (reorder_basic_blocks): Choose between the STC and the simple
10825 algorithms (always choose the former).
10827 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10829 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
10830 function, factored out from ...
10831 (reorder_basic_blocks): ... here.
10833 2015-10-01 Tom de Vries <tom@codesourcery.com>
10835 * tree-cfg.c (dump_function_to_file): Dump function attributes using
10836 __attribute__(()) string. Move dumping of function attributes to before
10839 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
10842 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
10843 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
10844 based on gold linker version.
10845 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
10846 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
10847 * configure, config.in: Regenerate.
10849 2015-10-01 Alan Modra <amodra@gmail.com>
10851 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
10852 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
10853 (rs6000_output_mi_thunk): Likewise.
10855 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
10857 * config/nvptx/mkoffload.c (process): Change offload data format.
10859 2015-09-30 Jeff Law <law@redhat.com>
10861 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
10862 with constant conditions.
10863 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
10864 (remove_ctrl_stmt_and_useless_edges): No longer static.
10865 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
10866 (remove_ctrl_stmt_and_useless_edges): Likewise.
10868 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
10869 Cesar Philippidis <cesar@codesourcery.com>
10871 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
10872 (TARGET_GOACC_VALIDATE_DIMS): Override.
10873 * target.def (TARGET_GOACC): New target hook prefix.
10874 (validate_dims): New hook.
10875 * targhooks.h (default_goacc_validate_dims): New.
10876 * omp-low.c (oacc_validate_dims): New.
10877 (execute_oacc_device_lower): New.
10878 (default_goacc_validate_dims): New.
10879 (pass_data_oacc_device_lower): New.
10880 (pass_oacc_device_lower): New pass.
10881 (make_pass_oacc_device_lower): New.
10882 * tree-pass.h (make_pass_oacc_device_lower): Declare.
10883 * passes.def (pass_oacc_device_lower): Add it.
10884 * doc/tm.texi: Rebuilt.
10885 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
10886 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
10888 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
10890 PR rtl-optimization/67037
10891 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
10893 2015-09-30 Bernd Schmidt <bernds@redhat.com>
10895 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
10896 * passes.c: Include tree-ssanames.h.
10897 (execute_function_todo): Flush the pending free SSA_NAMEs after
10898 eliminating unreachable basic blocks.
10899 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
10900 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
10901 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
10902 (flush_ssanames_freelist): New function.
10903 (release_ssaname_fn): Put released names on the queue.
10904 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
10905 * tree-ssanames.h (flush_ssanames_freelist): Declare.
10907 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10909 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
10910 (generate_target_descr_file, generate_target_offloadend_file)
10911 (generate_host_descr_file, prepare_target_image): Pass it on.
10912 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
10913 (compile_native, main): Pass it on.
10914 * lto-wrapper.c (compile_offload_image): Likewise.
10916 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10917 Ilya Verbin <ilya.verbin@intel.com>
10918 Andrey Turetskiy <andrey.turetskiy@intel.com>
10920 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
10921 (prepare_target_image, main): Refactor argv building to use
10924 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10926 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
10927 * config/spu/spu.c (spu_expand_atomic_op): New function.
10928 * config/spu/spu.md (AINT): New mode iterator.
10929 (ATOMIC): New code iterator.
10930 (atomic_name, atomic_pred): New code predicates.
10931 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
10932 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
10933 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
10934 "atomic_<atomic_name>_fetch<mode>"): Likewise.
10936 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
10938 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
10940 (scalar_chain::convert_reg): Likewise.
10942 2015-09-30 Richard Biener <rguenther@suse.de>
10944 * builtins.c: Add comment that no new simplifications should
10947 2015-09-30 Marek Polacek <polacek@redhat.com>
10949 PR tree-optimization/67690
10950 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
10951 reset_flow_sensitive_info_in_bb.
10952 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
10953 * tree-ssanames.c: Include "gimple-iterator.h".
10954 (reset_flow_sensitive_info_in_bb): New function.
10955 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
10957 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10959 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
10960 variable, replacing it with...
10961 (offload_abi): ... this new variable. Adjust all users.
10962 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
10964 2015-09-30 Matthias Klose <doko@ubuntu.com>
10966 * configure.ac: Remove extraneous ;;.
10967 * configure: Regenerate.
10969 2015-09-29 James Bowman <james.bowman@ftdichip.com>
10971 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
10972 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
10973 predicate, disallow register for operand 2.
10975 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
10977 * graphite-dependences.c (scop_get_dependences): Moved in down
10978 in order to be visible to its caller.
10979 * graphite-poly.h: Removed compute_deps, and extend_schedule.
10981 2015-09-29 Sebastian Pop <s.pop@samsung.com>
10982 Aditya Kumar <aditya.k7@samsung.com>
10984 PR tree-optimization/67754
10985 * graphite-optimize-isl.c (optimize_isl): Call
10986 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
10988 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10990 * builtins.c (expand_builtin_acc_on_device): Delete.
10991 (expand_builtin): Don't call it.
10992 (fold_builtin_1): Fold acc_on_device.
10994 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
10996 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
10997 (ix86_nsaved_sseregs): Likewise.
10999 2015-09-29 Jeff Law <law@redhat.com>
11001 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
11002 computation of unused value.
11004 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
11005 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
11006 inline macro expansion.
11008 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
11010 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
11011 (gen_shl_sext): Likewise.
11012 * config/sh/sh.md (divsi3): Likewise.
11013 (imm->ext_dest_operand splitter): Likewise.
11015 2015-09-29 Sebastian Pop <s.pop@samsung.com>
11016 Aditya Kumar <aditya.k7@samsung.com>
11018 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
11019 (nb_data_writes_in_bb): Remove.
11020 (split_pbb): Remove.
11021 (split_reduction_stmt): Remove.
11022 (is_reduction_operation_p): Remove.
11023 (phi_contains_arg): Remove.
11024 (follow_ssa_with_commutative_ops): Remove.
11025 (detect_commutative_reduction_arg): Remove.
11026 (detect_commutative_reduction_assign): Remove.
11027 (follow_inital_value_to_phi): Remove.
11028 (edge_initial_value_for_loop_phi): Remove.
11029 (initial_value_for_loop_phi): Remove.
11030 (used_outside_reduction): Remove.
11031 (detect_commutative_reduction): Remove.
11032 (translate_scalar_reduction_to_array_for_stmt): Remove.
11033 (remove_phi): Remove.
11034 (dr_indices_valid_in_loop): Remove.
11035 (close_phi_written_to_memory): Remove.
11036 (translate_scalar_reduction_to_array): Remove.
11037 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
11038 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
11039 (rewrite_commutative_reductions_out_of_ssa): Remove.
11040 (build_poly_scop): Remove call to
11041 rewrite_commutative_reductions_out_of_ssa.
11043 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
11045 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
11046 Add new insn types for vector load and store pairs.
11047 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
11048 types "neon_ldp{,_q}".
11049 * config/arm/cortex-a57.md (neon_load_c): Add insn types
11051 (neon_store_complex): Add insn types "neon_stp{,_q}".
11052 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
11053 "neon_{ldp,stp}_q".
11055 2015-09-29 Jeff Law <law@redhat.com>
11057 * config/rx/constraints.md (Int08): Fix undefined left shift
11059 (Sint08, Sint16, Sint24): Likewise.
11060 * config/rx/rx.c (rx_get_stack_layout): Likewise.
11062 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
11065 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
11066 left shift behaviour.
11067 * config/msp430/constraints.md ('L' constraint): Similarly.
11068 ('Ys' constraint): Similarly.
11070 2015-09-29 Richard Biener <rguenther@suse.de>
11072 PR tree-optimization/67170
11073 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
11074 the translate function pointer parameter to get the
11075 bool whether to disambiguate only by reference.
11076 (walk_non_aliased_vuses): Likewise.
11077 * tree-ssa-alias.c (maybe_skip_until): Adjust.
11078 (get_continuation_for_phi_1): Likewise.
11079 (get_continuation_for_phi): Likewise.
11080 (walk_non_aliased_vuses): Likewise.
11081 * tree-ssa-sccvn.c (const_parms): New bitmap.
11082 (vn_reference_lookup_3): Adjust for interface change.
11083 Disambiguate parameters pointing to readonly memory.
11084 (free_scc_vn): Free const_parms.
11085 (run_scc_vn): Initialize const_parms from a fn spec attribute.
11087 2015-09-29 Richard Biener <rguenther@suse.de>
11089 PR tree-optimization/67741
11090 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
11091 builtin calls with correct signature.
11093 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
11096 * config/i386/i386.c: Include dbgcnt.h.
11097 (has_non_address_hard_reg): New.
11098 (convertible_comparison_p): New.
11099 (scalar_to_vector_candidate_p): New.
11100 (remove_non_convertible_regs): New.
11101 (scalar_chain): New.
11102 (scalar_chain::scalar_chain): New.
11103 (scalar_chain::~scalar_chain): New.
11104 (scalar_chain::add_to_queue): New.
11105 (scalar_chain::mark_dual_mode_def): New.
11106 (scalar_chain::analyze_register_chain): New.
11107 (scalar_chain::add_insn): New.
11108 (scalar_chain::build): New.
11109 (scalar_chain::compute_convert_gain): New.
11110 (scalar_chain::replace_with_subreg): New.
11111 (scalar_chain::replace_with_subreg_in_insn): New.
11112 (scalar_chain::emit_conversion_insns): New.
11113 (scalar_chain::make_vector_copies): New.
11114 (scalar_chain::convert_reg): New.
11115 (scalar_chain::convert_op): New.
11116 (scalar_chain::convert_insn): New.
11117 (scalar_chain::convert): New.
11118 (convert_scalars_to_vector): New.
11119 (pass_data_stv): New.
11121 (make_pass_stv): New.
11122 (ix86_option_override): Created and register stv pass.
11123 (flag_opts): Add -mstv.
11124 (ix86_option_override_internal): Likewise.
11125 * config/i386/i386.md (SWIM1248x): New.
11126 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
11127 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
11128 (*anddi3_doubleword): New.
11129 (*zext<mode>_doubleword): New.
11130 (*zextsi_doubleword): New.
11131 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
11132 (*<code>di3_doubleword): New.
11133 * config/i386/i386.opt (mstv): New.
11134 * dbgcnt.def (stv_conversion): New.
11136 2015-09-29 Tom de Vries <tom@codesourcery.com>
11138 * tree-cfg.c (dump_function_to_file): Dump function attributes.
11140 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
11143 * config/sh/sh.c (sh_override_options_after_change): New.
11144 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
11145 (sh_option_override): Move align_loops, align_jumps and
11146 align_functions handling into sh_override_options_after_change.
11148 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
11150 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
11151 (nvptx_record_offload_symbol): Record function execution geometry.
11152 * config/nvptx/mkoffload.c (process): Include launch geometry in
11154 * omp-low.c (oacc_launch_pack): New.
11155 (replace_oacc_fn_attrib): New.
11156 (set_oacc_fn_attrib): New.
11157 (get_oacc_fn_attrib): New.
11158 (expand_omp_target): Create keyed varargs for GOACC_parallel call
11160 * omp-low.h (get_oacc_fn_attrib): Declare.
11161 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
11162 (DEF_FUNCTION_TYPE_VAR_11): Delete.
11163 * tree.h (OMP_CLAUSE_EXPR): New.
11164 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
11166 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11167 Sebastian Pop <s.pop@samsung.com>
11169 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
11171 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11172 Sebastian Pop <s.pop@samsung.com>
11174 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
11175 * graphite-scop-detection.c (struct sese_l): New type.
11176 (get_entry_bb): API for getting entry bb of SESE.
11177 (get_exit_bb): API for getting exit bb of SESE.
11178 (class debug_printer): New type. Simple printer in debug mode.
11179 (trivially_empty_bb_p): New. Return true when BB is empty or
11180 contains only debug instructions.
11181 (graphite_can_represent_expr): Call scalar_evoution_in_region
11182 instead of analyze_scalar_evolution. Pass in scop instead of only
11184 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
11186 (stmt_simple_for_scop_p): Same.
11187 (harmful_stmt_in_bb): Same.
11188 (graphite_can_represent_loop): Deleted.
11189 (struct scopdet_info): Deleted.
11190 (scopdet_basic_block_info): Deleted.
11191 (build_scops_1): Deleted.
11192 (bb_in_sd_region): Deleted.
11193 (find_single_entry_edge): Deleted.
11194 (find_single_exit_edge): Deleted.
11195 (create_single_entry_edge): Deleted.
11196 (sd_region_without_exit): Deleted.
11197 (create_single_exit_edge): Deleted.
11198 (unmark_exit_edges): Deleted.
11199 (mark_exit_edges): Deleted.
11200 (create_sese_edges): Deleted.
11201 (build_graphite_scops): Deleted.
11202 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
11203 (build_scops): Use the new scop_builder to build scops.
11204 (dot_all_scops_1): Use the new pretty printer. Print loop father
11206 (loop_body_is_valid_scop): New. Return true if loop body is a
11208 (class scop_builder): New. Builds SCoPs for polyhedral
11210 (scop_builder): New constructor.
11211 (static sese_l invalid_sese): sese_l with invalid edges.
11212 (get_sese): Get an sese (from a loop) if possible, invalid_sese
11214 (get_nearest_dom_with_single_entry): Get nearest dominator of a
11215 basic_block with single entry. Return NULL if we get to the
11216 beginning of a function.
11217 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
11218 a basic_block with single exit. Return NULL if we get to the
11219 beginning of a function.
11220 (print_sese): Pretty-print SESE.
11221 (merge_sese): Merge two SESEs if possible and return the new SESE.
11222 (build_scop_depth): Start building the SCoP within a loop nest.
11223 (build_scop_breadth): Start building the SCoP at a single loop
11224 depth. Merge adjacent SESEs if valid.
11225 (can_represent_loop_1): Returns true if Graphite can represent
11226 loop inside SCoP. Helper for can_represent_loop.
11227 (can_represent_loop): Returns true if Graphite can represent LOOP
11228 and all its nested loops in SCoP.
11229 (loop_is_valid_scop): Returns true if LOOP and all its nests
11230 constitute a valid SCoP.
11231 (region_has_one_loop): Returns true of a region has only one loop.
11232 (add_scop): Add SCoP to the list of valid scops. Removes an
11233 already existing scop if it intersects with or subsumed by this one.
11234 (harmful_stmt_in_region): Returns true if SCoP has any statment
11235 which cannot be represented by Graphite.
11236 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
11237 (remove_subscops): Remove any SCoP from the list of already found
11238 SCoPs, if subsumed by S1.
11239 (intersects): Return true if region bounded by SCoPs S1 and S2
11241 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
11242 * graphite.c (print_graphite_scop_statistics):
11243 (print_graphite_statistics): Print SCoP info while debugging.
11244 (graphite_initialize): Early exit in case number of loops in a
11245 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
11246 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
11247 (graphite_finalize):
11248 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
11249 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
11250 (recompute_all_dominators): Recalculate POST_DOMINATORS.
11251 * tree-cfg.c (print_loops): Print the function name while printing
11254 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11255 Sebastian Pop <s.pop@samsung.com>
11257 PR tree-optimization/67700
11258 * graphite-sese-to-poly.c (parameter_index_in_region): Call
11259 invariant_in_sese_p_rec.
11260 (extract_affine): Same.
11261 (rewrite_cross_bb_scalar_deps): Call update_ssa.
11262 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
11263 * sese.h (invariant_in_sese_p_rec): Declare.
11265 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
11267 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
11269 2015-09-28 Jiong Wang <jiong.wang@arm.com>
11272 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11273 Jiong Wang <jiong.wang@arm.com>
11275 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
11276 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
11277 (REG_CLASS_NAMES): Likewise.
11278 (REG_CLASS_CONTENTS): Likewise.
11279 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
11280 (aarch64_register_move_cost): Likewise.
11281 (aarch64_load_symref_appropriately): Invoke the new added pattern if
11283 * config/aarch64/constraints.md (Uc0): New constraint.
11285 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
11287 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
11289 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
11291 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
11292 SECTION_EXCLUDE in XO mapping class.
11294 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11297 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
11298 and handle ne and eq codes.
11299 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
11300 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
11301 CONST_INT_P. Use reverse_condition.
11302 (sh_split_treg_set_expr): Likewise.
11304 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
11306 * config/arm/types.md (type): Add rotate_imm.
11307 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
11308 ROR immediate case.
11309 (*rorsi3_insn_uxtw): Likewise.
11310 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
11311 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
11312 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
11314 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11316 PR rtl-optimization/67481
11317 * ifcvt.c (contains_ccmode_rtx_p): New function.
11318 (insn_valid_noce_process_p): Use it.
11320 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11322 PR rtl-optimization/67456
11323 PR rtl-optimization/67464
11324 PR rtl-optimization/67465
11325 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
11326 move in the mode of x. Handle combination of complex and simple
11327 block pairs as well as the case when one is empty.
11329 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11331 * doc/gimple.texi: Update references to gimple_statement_base.
11332 * gdbhooks.py: Likewise.
11333 * gimple.h: Likewise.
11335 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11337 * config/sparc/driver-sparc.c: map LEON to leon3
11339 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11341 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
11342 and make it inverse to change default
11343 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
11345 * doc/invoke.texi: Document change of default
11347 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11349 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
11350 true on %f0 for a target without FPU.
11351 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
11353 (untyped_return): Do not load %f0 for a target without FPU.
11355 2015-09-28 Andrew Pinski <apinski@cavium.com>
11357 * config/aarch64/aarch64.md (prefetch):
11358 Change the predicate of operand 0 to register_operand.
11360 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
11362 * config/i386/predicates.md (register_sse4nonimm_operand): New
11364 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
11365 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
11366 Use register_sse4nonimm_operand as operand 0 predicate.
11367 (*vec_extractv8hi_sse2): Remove insn pattern.
11368 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
11369 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
11371 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11372 Kaz Kojima <kkojima@gcc.gnu.org>
11375 * config/sh/sh-protos.h (sh_lra_p): Declare.
11376 * config/sh/sh.c (sh_lra_p): Make non-static.
11377 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
11378 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
11379 Expand into addsi3_scr if operands[2] if needed.
11380 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
11381 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
11382 (addsi3_scr, *addsi3): New insn_and_split patterns.
11384 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
11386 PR rtl-optimization/64164
11387 PR tree-optimization/67312
11388 PR middle-end/67340
11389 PR middle-end/67490
11391 * cfgexpand.c (parm_in_stack_slot_p): Remove.
11392 (ssa_default_def_partition): Remove.
11393 (get_rtl_for_parm_ssa_default_def): Remove.
11394 (set_rtl): Check that RTL assignments match expectations.
11395 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
11396 default def location for params and results. Record SSA names
11397 or types in REG and MEM attrs, respectively.
11398 (set_parm_rtl): New.
11399 (expand_one_ssa_partition): Drop logic that assigned MEMs with
11400 unassigned addresses.
11401 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
11402 deferred stack alloc vars.
11403 (expand_used_vars): Skip partitions holding parm default defs.
11404 Move adjust_one_expanded_partition_var loop...
11405 (pass_expand::execute): ... here. Drop redundant assert.
11406 Adjust comments before the final loop over all ssa names.
11407 Require assigned rtl of parms and results to match exactly.
11408 Reset its attributes to match them, not any other variables in
11409 the same partition.
11410 (expand_debug_expr): Use entry value for PARM's default defs
11411 only iff they have zero nondebug uses.
11412 * cfgexpand.h (parm_in_stack_slot_p): Remove.
11413 (get_rtl_for_parm_ssa_default_def): Remove.
11414 (set_parm_rtl): Declare.
11415 * doc/invoke.texi: Improve wording.
11416 * explow.c (promote_decl_mode): Fix promote_function_mode for
11417 result decls not by reference.
11418 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
11419 bypass TYPE_MODE to get the actual vector mode.
11420 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
11421 2015-08-19's changes as follows. Drop include of
11422 basic-block.h and df.h.
11423 (rtl_for_parm): Remove.
11424 (maybe_reset_rtl_for_parm): Remove.
11425 (parm_in_unassigned_mem_p): Remove.
11426 (use_register_for_decl): Add logic for RESULT_DECLs matching
11427 assign_parms' behavior.
11428 (split_complex_args): Revert.
11429 (assign_parms_augmented_arg_list): Revert. Add comment
11430 referencing the logic above.
11431 (assign_parm_adjust_stack_rtl): Revert.
11432 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
11433 of SET_DECL_RTL. Set up a REG if the parm demands so.
11434 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
11435 calls into a single set_parm_rtl. Set up a temporary RTL
11436 temporarily for expand_assignment.
11437 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
11438 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
11439 (assign_bounds): Revert.
11440 (assign_parms): Revert. Use set_parm_rtl.
11441 (allocate_struct_function): Relayout result and parms of
11442 non-abstruct functions.
11443 (expand_function_start): Revert. Use set_parm_rtl. If the
11444 result is not a hard reg, create a pseudo from the promoted
11445 mode of the default def. Promote static chain mode.
11446 * tree-outof-ssa.c (remove_ssa_form): Drop unused
11447 partition_has_default_def. Set up
11448 partitions_for_parm_default_defs.
11449 (finish_out_of_ssa): Remove partition_has_default_def.
11450 Release partitions_for_parm_default_defs.
11451 * tree-outof-ssa.h (struct ssaexpand): Remove
11452 partition_has_default_def. Add
11453 partitions_for_parm_default_defs.
11454 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
11456 (build_ssa_conflict_graph): Fix conflict-detection of default
11457 defs of even unused default defs of params and results.
11458 (for_all_parms): New.
11459 (create_default_def): New.
11460 (register_default_def): New.
11461 (coalesce_with_default): New.
11462 (create_outofssa_var_map): Create default defs for all parms
11463 and results, and register their partitions. Add GIMPLE_RETURN
11464 operands as coalesce candidates with results. Add default
11465 defs of each parm or result as coalesce candidates with its
11466 other defs. Mark each result def, and each default def of
11467 parms, as used_in_copy.
11468 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
11469 with the ssa names, even anonymous ones. Drop
11470 parm_in_stack_slot_p calls. Require same signedness and
11472 (coalesce_ssa_name): Add coalesce candidates for all defs of
11473 each parm and result, even unused ones.
11474 (parm_default_def_partition_arg): New type.
11475 (set_parm_default_def_partition): New.
11476 (get_parm_default_def_partitions): New.
11477 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
11478 * tree-ssa-live.c (partition_view_init): Regard unused defs of
11479 parms and results as used.
11480 (verify_live_on_entry): Don't error out just because they're
11483 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
11485 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11486 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
11487 (output_fde): Don't output length for debug_frame on AIX.
11488 (output_call_frame_info): Don't output length for debug_frame on AIX.
11489 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
11490 HAVE_XCOFF_DWARF_EXTRAS.
11491 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
11492 HAVE_XCOFF_DWARF_EXTRAS.
11493 (output_compilation_unit_header): Don't output length on AIX.
11494 (output_pubnames): Don't output length on AIX.
11495 (output_aranges): Delete argument. Compute length locally. Don't
11496 output length on AIX.
11497 (output_line_info): Don't output length on AIX.
11498 (dwarf2out_finish): Don't compute aranges_length.
11499 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11500 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
11501 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
11502 symbol decoration for AIX.
11503 (rs6000_xcoff_debug_unwind_info): New.
11504 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
11506 (rs6000_xcoff_declare_function_name): Emit different
11507 .function pseudo-op when DWARF2_DEBUG. Don't call
11508 xcoffout_declare_function for DWARF2_DEBUG.
11509 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
11511 * config/rs6000/aix71.h: New.
11512 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
11514 * configure: Regenerate.
11515 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
11518 2015-09-26 Jeff Law <law@redhat.com>
11520 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
11522 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
11525 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
11528 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
11529 undefined behaviour.
11531 * config/cris/cris.md (asrandb): Fix left shift undefined
11533 (asrandw): Likewise.
11535 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
11538 * lra-constarints.c (match_reload): Check presence of the input pseudo
11539 in the output operand.
11541 2015-09-25 Tobias Burnus <burnus@net-b.de>
11543 * doc/invoke.texi (-fsanitize): Minor wording tweak.
11545 2015-09-25 Tobias Burnus <burnus@net-b.de>
11547 * doc/invoke.texi (-fsanitize): Update URLs.
11549 2015-09-25 Teresa Johnson <tejohnson@google.com>
11551 * opts.c (finish_options): Unset -freorder-blocks-and-partition
11552 if not using profile.
11554 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
11556 PR pretty-print/67567
11557 * pretty-print.c (pp_string): Add gcc_checking_assert.
11558 * pretty-print.h (output_buffer_append_r): Likewise.
11560 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11563 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
11564 addr2 individually. Don't emit logical or insn if one is known to
11565 be aligned approriately.
11566 (sh_expand_cmpnstr): Likewise.
11568 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
11570 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
11571 __builtin_aarch64_fp[sc]r arguments into a register.
11573 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
11575 * config.gcc (x86_archs): Replace lakemount with lakemont.
11576 (with_cpu): Likewise.
11577 (with_arch): Likewise.
11578 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11579 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
11580 __tune_lakemount__ with __tune_lakemont__.
11581 * config/i386/i386.c (lakemount_cost): Renamed to ...
11582 (lakemont_cost): This.
11583 (m_LAKEMOUNT): Renamed to ...
11584 (m_LAKEMONT): This.
11585 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
11586 (processor_target_table): Replace "lakemount" with "lakemont".
11587 (processor_alias_table): Likewise.
11588 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
11589 PROCESSOR_LAKEMONT.
11590 (ix86_adjust_cost): Likewise.
11591 (ia32_multipass_dfa_lookahead): Likewise.
11592 * config/i386/i386.h (processor_type): Likewise.
11593 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
11594 * doc/invoke.texi: Replace lakemount with lakemont. Replace
11595 Lakemount with Lakemont.
11597 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
11599 * config.gcc (x86_archs): Replace iamcu with lakemount.
11600 (with_cpu): Likewise.
11601 (with_arch): Likewise.
11602 * doc/invoke.texi: Likewise.
11603 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11604 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
11605 __tune_iamcu__ with __tune_lakemount__.
11606 * config/i386/i386.c (iamcu_cost): Renamed to ...
11607 (lakemount_cost): This.
11608 (m_IAMCU): Renamed to ...
11609 (m_LAKEMOUNT): This.
11610 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
11611 (processor_target_table): Replace "iamcu" with "lakemount".
11612 (processor_alias_table): Likewise.
11613 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
11614 PROCESSOR_LAKEMOUNT.
11615 (ix86_adjust_cost): Likewise.
11616 (ia32_multipass_dfa_lookahead): Likewise.
11617 * config/i386/i386.h (processor_type): Likewise.
11618 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
11620 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
11622 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
11623 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
11625 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
11626 (pa_expand_compare_and_swap_loop): New.
11627 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
11628 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
11629 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
11630 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
11631 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
11634 2015-09-24 Michael Collison <michael.collison@linaro.org>
11637 * read-md.c (read_name): Allow mode iterators inside angle
11638 brackets in rtl expressions.
11640 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
11643 * ira-color.c (update_allocno_cost): Add parameter.
11644 (update_costs_from_allocno): Decrease conflict cost. Pass the new
11647 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11650 * opts-common.c (prune_options): Discard all -fdiagnostics-color
11651 but the last one, which is moved to the front to be processed
11653 * opts.c (enable_warning_as_error): Reject options that do not
11656 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11658 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
11660 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11662 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
11663 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
11664 (aarch64_cannot_force_const_mem): Likewise.
11665 (aarch64_classify_address): Likewise.
11666 (aarch64_classify_symbolic_expression): Likewise.
11667 (aarch64_print_operand): Likewise.
11668 (aarch64_classify_symbol): Likewise.
11669 (aarch64_mov_operand_p): Likewise.
11670 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
11671 (aarch64_mov_operand): Likewise.
11673 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
11675 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
11676 for info->spe_gp_size.
11678 2015-09-24 Richard Biener <rguenther@suse.de>
11681 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
11684 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
11686 * tree-object-size.c (plus_stmt_object_size)
11687 (cond_expr_object_size): Change the formal parameters from gimple
11689 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
11690 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
11691 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
11693 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11695 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
11696 Check for ld -type pie on Solaris 11.x and 12.
11697 * configure: Regenerate.
11698 * config.in: Regenerate.
11700 * gcc.c (LD_PIE_SPEC): Allow redefinition.
11702 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
11703 (STARTFILE_SPEC): Use it.
11704 (ENDFILE_CRTEND_SPEC): Define.
11705 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
11706 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
11707 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
11708 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
11709 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
11710 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
11711 (ENDFILE_ARCH_SPEC): Define.
11712 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
11714 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11716 * configure.ac (gcc_cv_solaris_crts): New test.
11717 * configure. Regenerate.
11718 * config.in: Regenerate.
11719 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
11720 HAVE_SOLARIS_CRTS variant.
11722 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11724 * tree-inline.h (count_insns_seq): Delete prototype.
11725 (estimate_num_insns_seq): Define prototype.
11726 * tree-inline.c (count_insns_seq): Delete.
11727 (estimate_num_insns_seq): Remove static qualifier.
11728 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
11729 with estimate_num_insns_seq.
11731 2015-09-24 Richard Biener <rguenther@suse.de>
11733 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
11735 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
11736 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
11738 (ao_ref_init_from_vn_reference): Record clique and base in the
11740 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
11742 2015-09-24 Richard Biener <rguenther@suse.de>
11744 PR tree-optimization/48885
11745 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
11746 as not including any restrict tags from other pointers.
11748 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
11750 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
11751 character when appending to offload_targets.
11753 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
11754 offload targets by commas, not colons.
11755 * config.in: Regenerate.
11756 * configure: Likewise.
11757 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
11758 instead of setting up the default offload targets here...
11759 (process_command): ..., do it here.
11761 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
11762 targets are separated by commas.
11763 * config.h.in: Regenerate.
11765 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
11766 Nathan Sidwell <nathan@codesourcery.com>
11768 * omp-low.h (omp_reduction_init_op): Declare.
11769 * omp-low.c (omp_reduction_init_op): New, broken out of ...
11770 (omp_reduction_init): ... here. Call it.
11771 * tree-parloops.c (initialize_reductions): Use
11772 omp_reduction_init_op.
11774 2015-09-23 Richard Biener <rguenther@suse.de>
11776 PR middle-end/67662
11777 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
11778 undefined overflow unless they will cancel out.
11780 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
11782 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
11785 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
11788 * opts.h (write_langs): Declare.
11789 * opts-global.c (write_langs): Make it extern.
11791 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
11794 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
11795 overlapping regs when matching the pattern.
11797 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
11799 * config/aarch64/aarch64-simd.md
11800 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
11801 (aarch64_float_truncate_hi_v4sf_le): New.
11802 (aarch64_float_truncate_hi_v4sf_be): Likewise.
11804 2015-09-23 Richard Biener <rguenther@suse.de>
11806 * tree-ssa-structalias.c (intra_create_variable_infos): Build
11807 representatives for all restrict qualified pointer destinations.
11809 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
11811 * config/i386/i386.md (define_code_attr mshift): New.
11812 (define_mode_iterator SWI1248_AVX512BW): Rename ...
11813 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
11815 (define_insn "*k<logic><mode>"): Use new iterator name.
11816 (define_insn "*<mshift><mode>3"): New.
11818 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
11820 PR middle-end/67649
11821 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
11822 mark the block as accessible.
11824 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
11826 * function.c (thread_prologue_and_epilogue_insns): Delete
11827 orig_entry_edge argument to try_shrink_wrapping.
11828 * shrink-wrap.c (can_get_prologue): New function.
11829 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
11830 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
11831 can_get_prologue where needed. Remove code that finds a single
11832 edge for the prologue. Remove code that tests if any reg clobbered
11833 by the prologue is live on the prologue edge. Remove code that finds
11834 the new prologue edge after duplicating blocks. Make a new prologue
11836 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
11838 2015-09-22 Jeff Law <law@redhat.com>
11840 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
11843 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
11845 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
11846 -Wtemplates, -Wnamespaces): Document.
11848 2015-09-22 Tom de Vries <tom@codesourcery.com>
11850 PR tree-optimization/67671
11851 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
11852 pointer references as restrict.
11854 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
11856 * config/nios2/nios2.c (nios2_legitimize_address): When handling
11857 'reg + reloc' cases, allow first operand to be non-REG, and use
11858 force_reg() to enforce address pattern.
11860 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
11863 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
11864 (define_mode_iterator VI12_AVX_AVX512F): New.
11865 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
11866 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
11867 (define_insn "*<code><mode>3"): ... Into new pattern using
11868 VI12_AVX_AVX512F iterators without masking.
11870 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
11872 * config.gcc: Support "skylake-avx512".
11873 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11874 PROCESSOR_SKYLAKE_AVX512.
11875 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
11876 (processor_target_table): Add "skylake-avx512".
11877 (PTA_SKYLAKE_AVX512): Define.
11878 (ix86_option_override_internal): Add "skylake_avx512".
11879 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
11880 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
11881 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
11882 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
11883 * doc/invoke.texi (skylake-avx512): New.
11885 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
11887 * config/i386/i386.md (define_insn "kunpckhi"): Fix
11888 operand in pattern.
11889 (define_insn "kunpcksi"): Ditto.
11890 (define_insn "kunpckdi"): Ditto.
11892 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
11894 * config/i386/i386.md (define_split not/xor SWI1248x): Use
11895 iterator instead of fixed modes.
11897 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11899 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11900 Adjust declaration.
11901 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
11902 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
11903 out_result. Update to support update-fetch operations.
11904 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
11905 Adjust for change to aarch64_gen_atomic_ldop.
11906 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
11907 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
11908 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
11909 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
11910 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
11912 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11914 * config/aarch64/aarch64-protos.h
11915 (aarch64_atomic_ldop_supported_p): Declare.
11916 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
11917 (enum aarch64_atomic_load_op_code): New.
11918 (aarch64_emit_atomic_load_op): New.
11919 (aarch64_gen_atomic_ldop): Update to support load-operate
11921 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
11923 (aarch64_atomic_<atomic_optab><mode>): New.
11924 (aarch64_atomic_<atomic_optab><mode>_lse): New.
11925 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
11926 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
11927 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
11929 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11931 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
11932 (UNSPECV_ATOMIC_LDOP_OR): New.
11933 (UNSPECV_ATOMIC_LDOP_BIC): New.
11934 (UNSPECV_ATOMIC_LDOP_XOR): New.
11935 (UNSPECV_ATOMIC_LDOP_PLUS): New.
11936 (ATOMIC_LDOP): New.
11937 (atomic_ldop): New.
11938 (aarch64_atomic_load<atomic_ldop><mode>): New.
11940 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11942 * config/aarch64/aarch64.md
11943 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
11946 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11948 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11950 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
11951 (aarch64_gen_atomic_ldop): New.
11952 (aarch64_split_atomic_op): Fix whitespace and add a comment.
11953 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
11954 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
11955 (atomic_exchange<mode>): Replace with an expander.
11956 (aarch64_atomic_exchange<mode>): New.
11957 (aarch64_atomic_exchange<mode>_lse): New.
11958 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
11959 (aarch64_atomic_swp<mode>): New.
11961 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
11963 * tree-inline.c (expand_call_inline): Use inform for extra note.
11964 Do not give a note with UNKNOWN_LOCATION.
11965 Replace input_location with gimple_location (stmt).
11966 Use true/false instead of TRUE/FALSE.
11968 2015-09-22 Tom de Vries <tom@codesourcery.com>
11970 PR tree-optimization/67666
11971 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
11972 with single field non-conservative.
11974 2015-09-21 David S. Miller <davem@davemloft.net>
11978 2015-09-11 David S. Miller <davem@davemloft.net>
11980 * config/sparc/constraints.md: Make "U" constraint a real register
11982 * config/sparc/sparc.c (TARGET_LRA_P): Define.
11983 (D_MODES, DF_MODES): Add missing cast.
11984 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
11985 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
11986 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
11988 * config/sparc/sparc.h (PROMOTE_MODE): Define.
11989 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
11990 provide these insn when flag_pic.
11992 2015-09-17 David S. Miller <davem@davemloft.net>
11994 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
11996 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
11998 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11999 (HARD_REGNO_CALLER_SAVE_MODE): Define.
12000 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12001 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12002 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12003 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12004 provide when flag_pic.
12006 2015-09-21 Jeff Law <law@redhat.com>
12008 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
12011 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12013 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
12015 2015-09-21 Richard Biener <rguenther@suse.de>
12017 * passes.c (rest_of_decl_compilation): Do not call
12018 dwarf2out_early_global_decl for aliases.
12020 2015-09-21 Richard Biener <rguenther@suse.de>
12023 * dwarf2out.c (add_location_or_const_value_attribute): Remove
12024 attribute parameter. Early exit if either DW_AT_const_value
12025 or DW_AT_location are present already.
12026 (gen_variable_die): Adjust caller.
12027 (dwarf2out_late_global_decl): Likewise.
12029 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12032 * config/sh/sh.c (sh_remove_overlapping_post_inc,
12033 sh_peephole_emit_move_insn): Add new functions.
12034 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
12035 sh_peephole_emit_move_insn): Declere them.
12036 * config/sh/sh.md: Use them in various peephole2 patterns.
12038 2015-09-21 Richard Biener <rguenther@suse.de>
12040 PR middle-end/67651
12041 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
12042 address with -fno-delete-null-pointer-checks.
12044 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
12046 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
12047 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
12048 (reduc_uplus_v16qi): Remove.
12050 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
12051 (reduc_<VEC_reduc_name>_v2df): Remove.
12052 (reduc_<VEC_reduc_name>_v4sf): Remove.
12053 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
12055 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
12056 gen_ function by removing * prefix.
12057 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
12059 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
12061 PR middle-end/60832
12062 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
12063 Print i_bound without converting it to a tree.
12065 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
12067 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
12068 operands[4] operands[5] swap with std::swap, removed tmp variable.
12069 (arm_evpc_neon_vzip): Replaced in0/in1 and
12070 out0/out1 swaps with std::swap, removed x variable.
12071 (arm_evpc_neon_vtrn): Replaced in0/int1 and
12072 out0/out1 swaos with std::swap, removed x variable.
12073 (arm_expand_vec_perm_const_1): Replaced
12074 d->op0/d->op1 swap with std::swap, removed x variable.
12075 (arm_evpc_neon_vuzp): Replaced in0/in1 and
12076 out0/out1 swaps with std::swap, removed x variable.
12078 2015-09-21 Jonathan Yong <10walls@gmail.com>
12080 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12081 sysroot/usr/lib/32api for additional win32 libraries,
12082 fixes failing Cygwin bootstrapping.
12084 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12086 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
12088 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12091 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
12092 (*mov_t_msb_neg): Rewrite negc pattern.
12094 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12096 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
12097 immediate generation code.
12099 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12101 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
12102 redundant immediate generation code.
12104 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12106 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
12107 (AARCH64_NUM_BITMASKS): Remove.
12108 (aarch64_bitmasks_cmp): Remove.
12109 (aarch64_build_bitmask_table): Remove.
12111 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12113 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
12114 slow immediate matching loops with a faster algorithm.
12116 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12118 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
12121 2015-09-20 Jeff Law <law@redhat.com>
12123 PR tree-optimization/47679
12124 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
12125 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
12126 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
12127 (thread_through_normal_block): Use record_temporary_equivalences.
12129 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
12131 * coretypes.h (gimple): Change typedef to be a forward declaration.
12132 * gimple.h (gimple_statement_base): rename to gimple.
12133 * (all functions and types using gimple): Adjust.
12134 * *.[ch]: Likewise.
12136 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
12137 David Edelsohn <dje.gcc@gmail.com>
12139 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
12140 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12141 (EH_FRAME_THROUGH_COLLECT2): Define.
12142 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12143 (ASM_OUTPUT_DWARF_PCREL): Define.
12144 (ASM_OUTPUT_DWARF_DATAREL): Define.
12146 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
12148 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
12151 2015-09-18 Jeff Law <law@redhat.com>
12153 PR tree-optimization/47679
12154 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
12156 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
12157 object. Update constructor.
12158 (pass_dominator::execute): Corresponding chagnes to declaration
12159 and initialization of avail_exprs_stack. Update constructor call
12160 for dom_opt_dom_walker object.
12161 (lookup_avail_expr, record_cond): Accept additional argument. Pass
12162 it down to children as needed.
12163 (record_equivalences_from_incoming_edge): Likewise.
12164 (eliminate_redundant_computations): Likewise.
12165 (record_equivalences_from_stmt): Likewise.
12166 (simplify_stmt_for_jump_threading): Likewise.
12167 (record_temporary_equivalences): Likewise.
12168 (optimize_stmt): Likewise.
12169 (dom_opt_dom_walker::thread_across_edge): Update access to
12170 avail_exprs_stack object and pass it to children as needed.
12171 (dom_opt_dom_walker::before_dom_children): Similarly.
12172 (dom_opt_dom_walker::after_dom_children): Similarly.
12173 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
12174 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
12175 Add avail_expr_stack argument. Pass it to children as needed.
12176 (dummy_simplify): Likewise.
12177 (simplify_control_stmt_condition): Likewise.
12178 (thread_around_empty_blocks): Likewise.
12179 (thread_through_normal_block): Likewise.
12180 (thread_across_edge): Likewise.
12181 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12182 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
12184 PR tree-optimization/47679
12185 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
12187 (dom_opt_dom_walker): New private member holding the const_and_copies
12188 object. Update constructor.
12189 (pass_dominator::execute): Corresponding changes to declaration
12190 and initialization of const_and_copies. Update constructor call
12191 for the dom_opt_dom_walker object.
12192 (record_temporary_equivalences): Accept const_and_copies argument
12193 pass it down to children as needed.
12194 (record_equality): Likewise.
12195 (record_equivalences_from_incoming_edge): Likewise.
12196 (cprop_into_successor_phis, optimize_stmt): Likewise.
12197 (eliminate_redundant_computations): Likewise.
12198 (dom_opt_dom_walker::thread_across_edge): Update access to
12199 const_and_copies object and pass it to children as needed.
12200 (dom_opt_dom_walker::before_dom_children): Similarly.
12201 (dom_opt_dom_walker::after_dom_children): Similarly.
12203 PR tree-optimization/47679
12204 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
12205 it into the avail_exprs_stack class.
12206 (pass_dominator::execute): Corresponding changes to declaration
12207 and initialization of avail_exprs. Pass avail_exprs to
12208 dump_dominator_optimization_stats.
12209 (record_cond): Extract avail_exprs from avail_exprs_stack.
12210 (lookup_avail_expr): Similarly.
12211 (htab_staticstics): Remove unnecessary prototype. Move to earlier
12213 (dump_dominator_optimization_stats): Make static and prototype.
12214 Add argument for the hash table to dump.
12215 (debug_dominator_optimization_stats): Remove.
12216 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
12218 (debug_dominator_optimization_stats): Similarly.
12219 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
12220 "void" in prototype for pop_to_marker method. Add accessor method
12221 for the underlying avail_exprs table.
12223 * tree-ssa-threadedge.c: Remove trailing whitespace.
12225 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
12227 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
12229 (pa_ldil_cint_p): Likewise.
12230 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
12231 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
12233 * config/pa/pa.md: Likewise.
12235 2015-09-18 David Malcolm <dmalcolm@redhat.com>
12237 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
12238 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
12239 (diagnostic_show_locus): Likewise.
12240 (diagnostic_print_caret_line): Likewise.
12241 * diagnostic-show-locus.c: New file.
12243 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
12245 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
12246 "back" parameter. Declare label in #if block.
12248 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
12250 PR middle-end/67619
12251 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
12252 the address to a register.
12254 2015-09-18 Jeff Law <law@redhat.com>
12256 PR tree-optimization/47679
12257 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
12258 * tree-ssa-dom.c: Remove unnecessary header includes.
12259 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
12260 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
12261 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
12262 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
12263 (pass_phi_only_cprop::execute): Likewise.
12264 (make_pass_phi_only_cprop): Likewise.
12265 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
12266 uses of file scoped statics by passing the required objects
12267 as parameters wherever needed.
12269 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
12270 David Edelsohn <dje.gcc@gmail.com>
12272 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
12273 EH_FRAME_THROUGH_COLLECT2.
12274 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
12276 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
12277 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
12278 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
12279 * except.c (switch_to_exception_section): Use a read-only section
12280 even if EH_FRAME_SECTION_NAME is undefined.
12281 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
12282 * collect2.c (write_c_file_stat): Provide dbase on AIX.
12283 (scan_prog_file): Don't export __dso_handle nor
12284 __gcc_unwind_dbase.
12285 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12286 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12287 (ASM_OUTPUT_DWARF_PCREL): Define.
12288 (ASM_OUTPUT_DWARF_DATAREL): Define.
12289 (EH_FRAME_THROUGH_COLLECT2): Define.
12290 (EH_FRAME_IN_DATA_SECTION): Delete.
12291 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
12292 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
12294 (rs6000_asm_output_dwarf_datarel): Declare.
12295 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
12296 (rs6000_aix_asm_output_dwarf_datarel): New.
12297 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
12298 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
12299 (EH_FRAME_THROUGH_COLLECT2): Define.
12300 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
12301 (EH_FRAME_THROUGH_COLLECT2): Define.
12302 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12303 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
12304 (EH_FRAME_THROUGH_COLLECT2): New.
12305 (ASM_OUTPUT_DWARF_DATAREL): New.
12306 * doc/tm.texi: Regenerate.
12308 2015-09-18 Richard Biener <rguenther@suse.de>
12310 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
12311 we're in early phase.
12312 (schedule_generic_params_dies_gen): Likewise.
12313 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
12314 work as possible, retaining unhandled cases.
12315 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
12316 clear out generic_type_instances at the end.
12317 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
12318 (dwarf2out_early_finish): ... here. Do most of
12319 gen_remaining_tmpl_value_param_die_attribute here.
12321 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
12323 PR tree-optimization/67283
12324 * tree-sra.c (type_consists_of_records_p): Rename to...
12325 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12326 (completely_scalarize_record): Rename to...
12327 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12328 (scalarize_elem): New.
12329 (analyze_all_variable_accesses): Follow renamings.
12331 2015-09-18 Richard Biener <rguenther@suse.de>
12333 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
12336 2015-09-18 Richard Biener <rguenther@suse.de>
12338 PR tree-optimization/66142
12339 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
12340 treat MEM[&x] and x the same.
12341 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
12342 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
12343 when we simplified sth.
12344 (vn_reference_maybe_forwprop_address): Likewise.
12345 (valueize_refs_1): When we simplified through
12346 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
12347 set valueized_anything to true.
12348 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
12349 one ref kills the other instead of just a offset-based test.
12350 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
12351 for the operand_equal_p test to compare bases and also compare
12354 2015-09-17 Christian Bruel <christian.bruel@st.com>
12356 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
12358 2015-09-17 Richard Henderson <rth@redhat.com>
12361 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
12362 pointers that encode the alignment of the object.
12364 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
12366 PR rtl-optimization/66790
12367 * df-problems.c (LIVE): Amend documentation.
12369 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
12371 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
12373 (GTFILES): Replace optabs.c with optabs-libfunc.c.
12374 * genopinit.c (main): Add an include guard to insn-opinit.h.
12375 Protect the rtx_code parts with NUM_RTX_CODE.
12376 * optabs.h: Split parts out to...
12377 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
12378 * optabs.c: Split parts out to...
12379 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
12380 * cilk-common.c: Include optabs-query.h rather than optabs.h.
12381 * fold-const.c: Likewise.
12382 * target-globals.c: Likewise.
12383 * tree-if-conv.c: Likewise.
12384 * tree-ssa-forwprop.c: Likewise.
12385 * tree-ssa-loop-prefetch.c: Likewise.
12386 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
12387 Remove unncessary include files.
12388 * tree-ssa-phiopt.c: Likewise.
12389 * tree-ssa-reassoc.c: Likewise.
12390 * tree-switch-conversion.c: Likewise.
12391 * tree-vect-data-refs.c: Likewise.
12392 * tree-vect-generic.c: Likewise.
12393 * tree-vect-loop.c: Likewise.
12394 * tree-vect-patterns.c: Likewise.
12395 * tree-vect-slp.c: Likewise.
12396 * tree-vect-stmts.c: Likewise.
12397 * tree-vrp.c: Likewise.
12398 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
12399 rather than optabs.h.
12400 * expr.c: Include optabs-tree.h.
12401 * function.c: Likewise.
12403 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
12405 PR middle-end/65958
12406 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
12407 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
12408 * config/arm/arm.c: Include common/common-target.h.
12409 (use_return_insn): Return 0 if the static chain register was saved
12410 above a non-APCS frame.
12411 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
12412 (struct scratch_reg): New.
12413 (get_scratch_register_on_entry): New function.
12414 (release_scratch_register_on_entry): Likewise.
12415 (arm_emit_probe_stack_range): Likewise.
12416 (output_probe_stack_range): Likewise.
12417 (arm_expand_prologue): Factor out code dealing with the IP register
12418 for nested function and adjust it for stack checking.
12419 Invoke arm_emit_probe_stack_range if static builtin stack checking
12421 (thumb1_expand_prologue): Sorry out if static builtin stack checking
12423 (arm_expand_epilogue): Add the saved static chain register, if any, to
12424 the amount of pre-pushed registers to pop.
12425 (arm_frame_pointer_required): Return true if static stack checking is
12426 enabled and we want to catch the exception with the EABI unwinder.
12427 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
12428 (UNSPEC_PROBE_STACK_RANGE): Likewise.
12429 * config/arm/arm.md (probe_stack): New insn.
12430 (probe_stack_range): Likewise.
12432 2015-09-17 Richard Biener <rguenther@suse.de>
12434 * genmatch.c (parser::parse_expr): Improve error message
12435 for mis-placed flags.
12437 2015-09-17 Richard Biener <rguenther@suse.de>
12439 * passes.c (rest_of_decl_compilation): Always call early_global_decl
12440 debug hook when we created a varpool node.
12441 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
12442 dwarf2out_early_global_decl, when not just add location or
12443 value attributes to existing DIEs.
12445 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
12447 * config/aarch64/aarch64.md (copysigndf3): New.
12448 (copysignsf3): Likewise.
12450 2015-09-17 David S. Miller <davem@davemloft.net>
12452 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
12453 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
12454 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12455 (HARD_REGNO_CALLER_SAVE_MODE): Define.
12456 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12457 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12458 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12459 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12460 provide when flag_pic.
12462 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
12464 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
12465 object_allocator change.
12467 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12469 PR tree-optimization/66388
12470 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
12471 (dump_iv): Dump no_overflow information.
12472 (alloc_iv): Initialize new field for struct iv.
12473 (mark_bivs): Count number of no_overflow bivs.
12474 (find_deriving_biv_for_expr, record_biv_for_address_use): New
12476 (idx_find_step): Call new functions above.
12477 (add_candidate_1, add_candidate): New paramter.
12478 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
12479 (get_computation_aff): Simplify convertion of cand for BIV.
12480 (get_computation_cost_at): Step cand's base if necessary.
12482 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12484 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
12486 (tree_simplify_using_condition): Ditto.
12487 (simplify_using_initial_conditions): Ditto.
12488 (loop_exits_before_overflow): Pass new argument to function
12489 simplify_using_initial_conditions. Remove case for type conversions
12491 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
12493 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
12494 in iv base using loop initial conditions.
12496 2015-09-16 Jeff Law <law@redhat.com>
12498 PR tree-optimization/47679
12499 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
12500 (free_all_edge_infos): Use it.
12501 (allocate_edge_info): Free preexisting edge info data.
12502 (pass_dominator::execute): Set up initial edge info structures.
12503 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
12504 thread_across_edge.
12505 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
12506 If non-null, then push/pop markers appropriately.
12507 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12508 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
12509 thread-across_edge.
12511 2015-09-16 James Bowman <james.bowman@ftdichip.com>
12513 * config/ft32/ft32.c: Fix the memory address space predicate.
12515 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
12518 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
12519 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12521 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
12523 * toplev.h (check_global_declaration): Remove declaration.
12524 * toplev.c (check_global_declaration): Move to ...
12525 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
12526 (analyze_functions): Update call.
12528 2015-09-16 David S. Miller <davem@davemloft.net>
12530 * lra-constraints.c (simplify_operand_subreg): Do not assume that
12531 lowpart of a SUBREG has offset zero.
12533 2015-09-16 Jeff Law <law@redhat.com>
12535 PR tree-optimization/47679
12536 * tree-ssa-dom.c (enum expr_kind): Moved from here to
12537 tree-ssa-scopedtables.h.
12538 (struct hashable_expr, class expr_hash_elt): Likewise.
12539 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
12540 Move associated methods into tree-ssa-scopedtables.c.
12541 (avail_expr_hash, initialize_expr_from_cond): Similarly.
12542 (hashable_expr_equal_p, add_expr_commutative): Likewise.
12543 (add_hashable_expr): Likewise.
12544 (record_cond): Delete element directly.
12545 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
12546 private copy ctor and assignment operator methods.
12547 (expr_elt_hasher): Inline trivial methods.
12548 (initialize_expr_from_cond): Prototype.
12549 * tree-ssa-scopedtables.c: Add necessary includes, functions and
12550 methods that were previously in tree-ssa-dom.c. Improve various
12553 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
12555 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
12557 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
12560 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12563 2015-09-16 Richard Biener <rguenther@suse.de>
12565 PR middle-end/67253
12566 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
12567 location of possibly shared trees.
12569 2015-09-16 Richard Biener <rguenther@suse.de>
12571 PR middle-end/67271
12572 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
12574 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
12576 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
12577 offset and size computations instead of HOST_WIDE_INT.
12579 2015-09-16 Richard Biener <rguenther@suse.de>
12581 PR middle-end/67442
12582 * fold-const.c (extract_muldiv_1): Properly extend multiplication
12583 result before builting a tree via wide_int_to_tree.
12585 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
12587 * Makefile.in: Add memory-block.cc
12588 (pool_allocator::initialize): Use fixed block size.
12589 (pool_allocator::release): Use memory_block_pool.
12590 (pool_allocator::allocate): Likewise.
12591 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
12593 * cfg.c (initialize_original_copy_tables): Likewise.
12594 * cselib.c (elt_list_pool, elt_loc_list_pool,
12595 cselib_val_pool): Likewise.
12596 * df-problems.c (df_chain_alloc): Likewise.
12597 * df-scan.c (df_scan_alloc): Likewise.
12598 * dse.c (cse_store_info_pool, rtx_store_info_pool,
12599 read_info_type_pool, insn_info_type_pool, bb_info_pool,
12600 group_info_pool, deferred_change_pool): Likewise.
12601 * et-forest.c (et_nodes, et_occurrences): Likewise.
12602 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
12603 ipcp_agg_lattice_pool): Likewise.
12604 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
12605 * ipa-profile.c (histogram_pool): Likewise.
12606 * ipa-prop.c (ipa_refdesc_pool): Likewise.
12607 * ira-build.c (live_range_pool, allocno_pool, object_pool,
12608 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
12609 * ira-color.c (update_cost_record_pool): Likewise.
12610 * lra-lives.c (lra_live_range_pool): Likewise.
12611 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
12612 * memory-block.cc: New file.
12613 * memory-block.h: New file.
12614 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
12615 * sched-deps.c (sched_deps_init): Likewise.
12616 * sel-sched-ir.c (sched_lists_pool): Likewise.
12617 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
12618 * tree-sra.c (access_pool): Likewise.
12619 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
12620 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
12621 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
12622 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12623 * tree-ssa-strlen.c (strinfo_pool): Likewise.
12624 * tree-ssa-structalias.c (variable_info_pool): Likewise.
12625 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
12626 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
12628 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12630 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
12632 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
12635 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12637 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
12638 to pass TLS call argument, according to current ABI.
12639 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
12640 callx0 for TLS call, according to current ABI.
12642 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12644 * tree-eh.c (lower_try_finally_dup_block): Clear location information
12645 on stack restore statements.
12646 (decide_copy_try_finally): Do not consider a stack restore statement as
12647 coming from sources.
12649 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
12651 * config/alpha/alpha.c (alpha_expand_block_clear): Use
12652 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
12654 2015-09-15 Jeff Law <law@redhat.com>
12656 PR tree-optimization/47679
12657 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
12658 methods and private members.
12659 (avail_exprs_stack): Similarly. Change type of global
12660 from a pair of expr_hash_elt_t to the new class.
12661 (expr_elt_hasher::hash): Corresponding changes.
12662 (expr_elt_hasher::equal): Similarly.
12663 (avail_expr_hash): Similarly.
12664 (pass_dominator::execute): Similarly.
12665 (dom_opt_dom_walker::thread_across_edge): Similarly.
12666 (record_cond): Similarly.
12667 (dom_opt_dom_walker::before_dom_children): Similarly.
12668 (dom_opt_dom_walker::after_dom_children): Similarly.
12669 (lookup_avail_expr): Likewise.
12670 (initialize_hash_element): Now a expr_hash_elt constructor.
12671 (initialize_hash_element_from_expr): Similarly.
12672 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
12673 (free_expr_hash_elt): Call dtor for the element.
12674 (remove_local_expressions_from_table): Now the "pop_to_marker"
12675 method in the available_exprs_stack class.
12676 (avail_expr_stack::record_expr): Method factored out.
12677 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
12679 (hashable_expr_equal_p): Fix formatting.
12681 2015-09-15 David Malcolm <dmalcolm@redhat.com>
12683 * input.h (location_get_source_line): Drop "expanded_location"
12684 param in favor of a file and line number.
12685 * input.c (location_get_source_line): Likewise.
12686 (dump_location_info): Update for change in signature of
12687 location_get_source_line.
12688 * diagnostic.c (diagnostic_print_caret_line): Likewise.
12690 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12692 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
12693 Bump to 4KB for SJLJ exceptions.
12694 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
12695 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
12696 * doc/tm.texi: Regenerate.
12698 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12700 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
12701 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
12704 2015-09-15 Richard Biener <rguenther@suse.de>
12706 PR tree-optimization/67470
12707 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
12708 structure for PHI hoisting by inserting a forwarder block
12711 2015-09-15 Christian Bruel <christian.bruel@st.com>
12713 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
12714 (arm_option_print): New function.
12716 2015-09-15 Christian Bruel <christian.bruel@st.com>
12719 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
12720 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
12721 Remove flags parameter.
12722 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
12723 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
12724 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
12725 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
12726 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
12727 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
12728 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
12729 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
12731 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12733 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
12735 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
12736 AARCH64_VALID_SIMD_DREG_MODE.
12738 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12740 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
12741 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
12742 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
12743 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
12744 aarch64_ld4_lane<mode>): Combine together, making...
12745 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12746 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12747 aarch64_st4_lane<mode>): Combine together, making...
12748 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12749 * config/aarch64/iterators.md (nregs): Add comment.
12751 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12753 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
12754 Change operand mode from <V_TWO_ELEM> to BLK.
12755 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
12756 (aarch64_vec_store_lanesoi_lane<mode): Likewise
12757 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12758 (aarch64_ld2_lane<mode>): Likewise.
12759 (aarch64_st2_lane<VQ:mode>): Likewise.
12760 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
12762 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12764 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
12765 Change operand mode from <V_FOUR_ELEM> to BLK.
12766 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
12767 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
12768 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12769 (aarch64_ld4_lane<mode>): Likewise.
12770 (aarch64_st4_lane<mode>): Likewise.
12771 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
12773 2015-09-15 Richard Biener <rguenther@suse.de>
12775 PR middle-end/67563
12776 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
12777 transfer EH info from old to new stmt.
12778 (replace_call_with_value): Likewise.
12779 (replace_call_with_call_and_fold): Likewise.
12780 (gimple_fold_builtin_memory_op): Likewise.
12781 (gimple_fold_builtin_memset): Likewise.
12782 (gimple_fold_builtin_stpcpy): Likewise.
12783 (gimple_fold_call): Likewise.
12785 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12787 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
12789 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
12790 (aarch64_simd_intEI_type_node): Likewise.
12791 (aarch64_simd_builtin_std_type): Remove EImode case.
12792 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
12793 * config/aarch64/aarch64-modes.def: Remove EImode.
12795 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12797 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
12798 Change operand mode from <V_THREE_ELEM> to BLK.
12799 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
12800 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
12801 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12802 (aarch64_ld3_lane<mode>): Likewise.
12803 (aarch64_st3_lane<mode>): Likewise.
12804 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
12806 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12808 * config/aarch64/aarch64-simd.md
12809 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
12810 Change all TImode operands to BLKmode.
12811 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
12812 Change all EImode operands to BLKmode.
12813 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
12814 Change all OImode operands to BLKmode.
12816 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
12817 and call set_mem_size.
12818 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
12820 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
12822 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12824 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
12826 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
12828 (vec_store_lanesci_lane<mode>): Rename to...
12829 (aarch64_vec_store_lanesci_lane<mode>): ...this.
12831 (vec_store_lanesxi_lane<mode>): Rename to...
12832 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
12834 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12835 aarch64_st4_lane<mode>): Follow renaming.
12837 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12839 * config/s390/s390.c (s390_const_operand_ok): Add missing
12842 2015-09-15 Richard Biener <rguenther@suse.de>
12845 * lto-streamer.h (lto_location_cache::current_sysp): Properly
12847 * lto-streamer-out.c (clear_line_info): Likewise.
12849 2015-09-15 Richard Biener <rguenther@suse.de>
12851 * doc/match-and-simplify.texi: Fix wording.
12853 2015-09-15 Bin Cheng <bin.cheng@arm.com>
12855 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
12856 unnecessary type conversion in op1.
12858 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12860 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
12861 (dup_block_and_redirect): Delete function.
12862 (can_dup_for_shrink_wrapping): New function.
12863 (fix_fake_fallthrough_edge): New function.
12864 (try_shrink_wrapping): Rewrite function.
12865 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
12867 2015-09-14 Rich Felker <dalias@libc.org>
12869 * configure.ac: Change target pattern for sh TLS support
12870 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
12871 * configure: Regenerate.
12873 2015-09-14 Jeff Law <law@redhat.com>
12875 PR tree-optimization/47679
12876 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
12877 type rather than void *.
12879 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
12882 * diagnostic.c (diagnostic_initialize): Do not set
12883 some_warnings_are_errors.
12884 (diagnostic_finish): Use DK_WERROR count instead.
12885 (diagnostic_report_diagnostic): Do not set
12886 some_warnings_are_errors.
12887 * diagnostic.h (struct diagnostic_context): Remove
12888 some_warnings_are_errors.
12890 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
12892 * config/sparc/predicates.md (const_all_ones_operand): Use
12893 CONSTM1_RTX to simplify definition.
12895 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
12898 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
12901 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
12903 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
12904 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
12905 OPT_fshow_column to handled saved option cases.
12906 (append_compiler_options): Do not skip the above added options.
12908 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12911 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
12912 nopcrelative_literal_loads.
12913 (aarch64_classify_address): Likewise.
12914 (aarch64_constant_pool_reload_icode): Define.
12915 (aarch64_secondary_reload): Handle secondary reloads for
12917 (aarch64_override_options): Handle nopcrelative_literal_loads.
12918 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
12919 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
12921 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
12922 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
12923 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
12925 * doc/invoke.texi (mpc-relative-literal-loads): Document.
12927 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
12929 PR middle-end/67401
12930 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
12931 sync_compare_and_swap_optab libcall to target_oval.
12933 2015-09-14 Marek Polacek <polacek@redhat.com>
12935 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
12937 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
12939 2015-09-11 Mark Wielaard <mjw@redhat.com>
12942 * toplev.c (check_global_declaration): Check and use
12943 warn_unused_const_variable.
12944 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
12945 (-Wunused-variable): Remove non-constant. For C implies
12946 -Wunused-const-variable.
12947 (-Wunused-const-variable): New.
12949 2015-09-14 Richard Biener <rguenther@suse.de>
12951 * doc/match-and-simplify.texi: Update for changed syntax
12952 of inner ifs and the new switch expression.
12954 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
12956 * config/i386/haswell.md: New file describing Haswell pipeline.
12957 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
12958 haswell-like processors.
12959 (ix86_reassociation_width): Increase reassociation width for 64-bit
12960 Haswell processor family.
12961 * config/i386/i386.md: Introduce haswell cpu and include new md file.
12963 2015-09-14 Richard Biener <rguenther@suse.de>
12965 * doc/match-and-simplify.texi: Fixup some formatting issues
12966 and document the 's' flag.
12968 2015-09-13 Olivier Hainque <hainque@adacore.com>
12969 Eric Botcazou <ebotcazou@adacore.com>
12971 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
12972 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
12973 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
12974 (TARGET_CPU_gr5): Likewise.
12975 (TARGET_CPU_gr6): Likewise.
12976 (MULTILIB_DEFAULTS): Likewise.
12977 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
12978 for mcpu=gr5 and mcpu=gr6.
12979 (MULTILIB_DIRNAMES): Adjust accordingly.
12981 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12983 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
12984 (mem_ref_p): Likewise.
12985 (outermost_indep_loop): Adjust.
12986 (mem_ref_in_stmt): Likewise.
12987 (determine_max_movement): Likewise.
12988 (mem_ref_alloc): Likewise.
12989 (record_mem_ref_loc): Likewise.
12990 (set_ref_stored_in_loop): Likewise.
12991 (mark_ref_stored): Likewise.
12992 (gather_mem_refs_stmt): Likewise.
12993 (mem_refs_may_alias_p): Likewise.
12994 (for_all_locs_in_loop): Likewise.
12995 (struct rewrite_mem_ref_loc): Likewise.
12996 (rewrite_mem_refs): Likewise.
12997 (struct first_mem_ref_loc_1): Likewise.
12998 (first_mem_ref_loc): Likewise.
12999 (struct sm_set_flag_if_changed): Likewise.
13000 (execute_sm_if_changed_flag_set): Likewise.
13001 (execute_sm): Likewise.
13002 (hoist_memory_references):
13003 (struct ref_always_accessed): Likewise.
13004 (ref_always_accessed_p): Likewise.
13005 (refs_independent_p): Likewise.
13006 (record_dep_loop): Likewise.
13007 (ref_indep_loop_p_1): Likewise.
13008 (ref_indep_loop_p_2): Likewise.
13009 (ref_indep_loop_p): Likewise.
13010 (can_sm_ref_p): Likewise.
13011 (find_refs_for_sm): Likewise.
13012 (tree_ssa_lim_finalize): Likewise.
13014 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13016 * dwarf2out.c (dw_attr_ref): Remove typedef.
13017 (dw_line_info_ref): Likewise.
13018 (pubname_ref): Likewise.
13019 (dw_ranges_ref): Likewise.
13020 (dw_ranges_by_label_ref): Likewise.
13021 (comdat_type_node_ref): Likewise.
13023 (get_AT_low_pc): Likewise.
13024 (get_AT_hi_pc): Likewise.
13025 (get_AT_string): Likewise.
13026 (get_AT_flag): Likewise.
13027 (get_AT_unsigned): Likewise.
13028 (get_AT_ref): Likewise.
13029 (get_AT_file): Likewise.
13030 (remove_AT): Likewise.
13031 (print_die): Likewise.
13032 (check_die): Likewise.
13033 (die_checksum): Likewise.
13034 (attr_checksum_ordered): Likewise.
13035 (struct checksum_attributes): Likewise.
13036 (collect_checksum_attributes): Likewise.
13037 (die_checksum_ordered): Likewise.
13038 (same_die_p): Likewise.
13039 (is_declaration_die): Likewise.
13040 (clone_die): Likewise.
13041 (clone_as_declaration): Likewise.
13042 (copy_declaration_context): Likewise.
13043 (break_out_comdat_types): Likewise.
13044 (copy_decls_walk): Likewise.
13045 (output_location_lists): Likewise.
13046 (external_ref_hasher::hash): Likewise.
13047 (optimize_external_refs_1): Likewise.
13048 (build_abbrev_table): Likewise.
13049 (size_of_die): Likewise.
13050 (unmark_all_dies): Likewise.
13051 (size_of_pubnames): Likewise.
13052 (output_die_abbrevs): Likewise.
13053 (output_die): Likewise.
13054 (output_pubnames): Likewise.
13055 (add_ranges_num): Likewise.
13056 (add_ranges_by_labels): Likewise.
13057 (add_high_low_attributes): Likewise.
13058 (gen_producer_string): Likewise.
13059 (dwarf2out_set_name): Likewise.
13060 (new_line_info_table): Likewise.
13061 (prune_unused_types_walk_attribs): Likewise.
13062 (prune_unused_types_update_strings): Likewise.
13063 (prune_unused_types): Likewise.
13064 (resolve_addr): Likewise.
13065 (optimize_location_lists_1): Likewise.
13066 (index_location_lists): Likewise.
13067 (dwarf2out_finish): Likewise.
13069 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13071 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
13073 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13075 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
13076 (dump_asserts_for): Adjust.
13077 (register_new_assert_for): Likewise.
13078 (process_assert_insertions): Likewise.
13079 (insert_range_assertions): Likewise.
13081 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13083 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
13084 and remove typedef.
13085 (new_temp_expr_table): Adjust.
13086 (free_temp_expr_table): Likewise.
13087 (version_to_be_replaced_p): Likewise.
13088 (make_dependent_on_partition): Likewise.
13089 (add_to_partition_kill_list): Likewise.
13090 (remove_from_partition_kill_list): Likewise.
13091 (add_dependence): Likewise.
13092 (finished_with_expr): Likewise.
13093 (process_replaceable): Likewise.
13094 (kill_expr): Likewise.
13095 (kill_virtual_exprs): Likewise.
13096 (mark_replaceable): Likewise.
13097 (find_replaceable_in_bb): Likewise.
13098 (find_replaceable_exprs): Likewise.
13099 (debug_ter): Likewise.
13101 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13103 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
13104 (struct btr_user): Rename from btr_user_s.
13105 (struct btr_def): Rename from btr_def_s.
13106 (find_btr_def_group): Adjust.
13107 (add_btr_def): Likewise.
13108 (new_btr_user): Likewise.
13109 (note_other_use_this_block): Likewise.
13110 (compute_defs_uses_and_gen): Likewise.
13111 (link_btr_uses): Likewise.
13112 (build_btr_def_use_webs): Likewise.
13113 (block_at_edge_of_live_range_p): Likewise.
13114 (btr_def_live_range): Likewise.
13115 (combine_btr_defs): Likewise.
13116 (move_btr_def): Likewise.
13117 (migrate_btr_def): Likewise.
13118 (migrate_btr_defs): Likewise.
13120 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13122 * var-tracking.c (shared_hash_def): Rename to shared_hash.
13123 (shared_hash): Remove typedef.
13124 (struct dataflow_set): Adjust.
13125 (shared_hash_unshare): Likewise.
13126 (dataflow_set_merge): Likewise.
13127 (vt_initialize): Likewise.
13128 (vt_finalize): Likewise.
13130 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13132 * var-tracking.c (struct location_chain): Rename from
13133 location_chain_def.
13134 (struct variable_part): Adjust.
13135 (variable_htab_free): Likewise.
13136 (unshare_variable): Likewise.
13137 (get_init_value): Likewise.
13138 (get_addr_from_local_cache): Likewise.
13139 (drop_overlapping_mem_locs): Likewise.
13140 (val_reset): Likewise.
13141 (struct variable_union_info): Likewise.
13142 (variable_union): Likewise.
13143 (find_loc_in_1pdv): Likewise.
13144 (insert_into_intersection): Likewise.
13145 (intersect_loc_chains): Likewise.
13146 (canonicalize_loc_order_check): Likewise.
13147 (canonicalize_values_mark): Likewise.
13148 (canonicalize_values_star): Likewise.
13149 (canonicalize_vars_star): Likewise.
13150 (variable_merge_over_cur): Likewise.
13151 (remove_duplicate_values): Likewise.
13152 (variable_post_merge_new_vals): Likewise.
13153 (variable_post_merge_perm_vals): Likewise.
13154 (find_mem_expr_in_1pdv): Likewise.
13155 (dataflow_set_preserve_mem_locs): Likewise.
13156 (dataflow_set_remove_mem_locs): Likewise.
13157 (variable_part_different_p): Likewise.
13158 (onepart_variable_different_p): Likewise.
13159 (find_src_set_src): Likewise.
13160 (dump_var): Likewise.
13161 (set_slot_part): Likewise.
13162 (clobber_slot_part): Likewise.
13163 (delete_slot_part): Likewise.
13164 (vt_expand_var_loc_chain): Likewise.
13165 (emit_note_insn_var_location): Likewise.
13166 (vt_finalize): Likewise.
13168 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13170 * dse.c (store_info_t): Remove typedef.
13171 (group_info_t): Likewise.
13172 (const_group_info_t): Likewise.
13173 (deferred_change_t): Likewise.
13174 (get_group_info): Adjust.
13175 (free_store_info): Likewise.
13176 (canon_address): Likewise.
13177 (clear_rhs_from_active_local_stores): Likewise.
13178 (record_store): Likewise.
13179 (replace_read): Likewise.
13180 (check_mem_read_rtx): Likewise.
13181 (scan_insn): Likewise.
13182 (remove_useless_values): Likewise.
13183 (dse_step1): Likewise.
13184 (dse_step2_init): Likewise.
13185 (dse_step2_nospill): Likewise.
13186 (scan_stores_nospill): Likewise.
13187 (scan_reads_nospill): Likewise.
13188 (dse_step3_exit_block_scan): Likewise.
13189 (dse_step3): Likewise.
13190 (dse_step5_nospill): Likewise.
13191 (dse_step6): Likewise.
13193 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13195 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
13196 (alias_set_entry): Remove typedef.
13197 (alias_set_subset_of): Adjust.
13198 (alias_sets_conflict_p): Likewise.
13199 (init_alias_set_entry): Likewise.
13200 (get_alias_set): Likewise.
13201 (new_alias_set): Likewise.
13202 (record_alias_subset): Likewise.
13204 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
13206 * doc/install.texi (Downloading the source): Mark up
13207 contrib/download_prerequisites properly and drop leading "./".
13209 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13211 * config/arc/arc.h: Remove define of STRUCT_VALUE.
13212 * config/lm32/lm32.h: Likewise.
13213 * config/mep/mep.h: Likewise.
13214 * config/visium/visium.h: Likewise.
13215 * system.h: Poison STRUCT_VALUE macro.
13217 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
13219 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
13220 CONSTANT_P operands.
13222 2015-09-11 David S. Miller <davem@davemloft.net>
13224 * config/sparc/constraints.md: Make "U" constraint a real register
13226 * config/sparc/sparc.c (TARGET_LRA_P): Define.
13227 (D_MODES, DF_MODES): Add missing cast.
13228 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13229 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13230 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13232 * config/sparc/sparc.h (PROMOTE_MODE): Define.
13233 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13234 provide these insn when flag_pic.
13236 2015-09-11 Jeff Law <law@redhat.com>
13238 PR tree-optimization/47679
13239 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
13240 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
13241 member with m_. Update inline member functions as necessary. Add
13243 * tree-ssa-scopedtables.c: Update const_and_copies's member
13244 functions to use m_ prefix to access the stack.
13246 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
13248 * graphite-optimize-isl.c (disable_tiling): Remove.
13249 (get_schedule_for_band): Do not use disable_tiling.
13250 (get_prevector_map): Delete function.
13251 (enable_polly_vector): Remove.
13252 (get_schedule_for_band_list): Remove dead code.
13254 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
13256 * graphite-optimize-isl.c (get_tile_map): Refactor.
13257 (get_schedule_for_band): Same.
13258 (getScheduleForBand): Same.
13259 (get_prevector_map): Same.
13260 (get_schedule_for_band_list): Same.
13261 (get_schedule_map): Same.
13262 (get_single_map): Same.
13263 (apply_schedule_map_to_scop): Same.
13264 (optimize_isl): Same.
13266 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13269 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
13271 * config/aarch64/iterators.md (GPF_TF_F16): New.
13274 2015-09-10 Nathan Sidwell <nathan@acm.org>
13276 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
13277 (nvptx_reorg): Adjust comments.
13279 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
13282 * configure.ac: Check if setenv and unsetenv are declared.
13283 * configure: Rebuild.
13284 * config.in: Rebuild.
13285 * system.h: Declare setenv and unsetenv if not declared.
13287 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13289 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
13290 commentary to simplify permute mask adjustment equation.
13291 (special_handling_values): Add SH_VPERM.
13292 (const_load_sequence_p): New function.
13293 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
13294 the mask loaded from the constant pool.
13295 (adjust_vperm): New function.
13296 (handle_special_swappables): Call adjust_vperm.
13297 (dump_swap_insn_table): Handle SH_VPERM.
13299 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
13301 * shrink-wrap.c (requires_stack_frame_p): Remove static.
13302 * shrink-wrap.h (requires_stack_frame_p): Put back.
13304 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
13306 * reload1.c (elimination_costs_in_insn): Locally turn
13307 -Wmaybe-uninitialized into a warning.
13309 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
13311 * shrink-wrap.c (requires_stack_frame_p): Make static.
13312 (prepare_shrink_wrap): Likewise.
13313 (dup_block_and_redirect): Likewise.
13314 * shrink-wrap.h: Remove declarations of those functions.
13316 2015-09-10 Mark Wielaard <mjw@redhat.com>
13318 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
13320 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
13323 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
13324 missing simplify_gen_subreg.
13326 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13328 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
13329 the vector element is bigger than 64 bit.
13331 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13333 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
13334 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
13336 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13338 * config/s390/s390.c: Add V1TImode to constant pool modes.
13340 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13343 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
13344 predicate. Set predicable_short_it attr to "no".
13346 2015-09-10 Jiong Wang <jiong.wang@arm.com>
13348 PR rtl-optimization/67421
13349 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
13350 left wide shift tranformation.
13352 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
13354 * common/config/arc/arc-common.c: Remove references to A5.
13355 * config/arc/arc-opts.h: Likewise.
13356 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
13357 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
13358 * config/arc/t-arc-newlib: Likewise.
13360 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
13362 * config/arc/arc.md (length): Fix attribute length for conditional
13363 executed instructions with long immediate.
13365 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13367 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
13368 type for second alternative.
13370 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
13372 * doc/invoke.texi (Downloading GCC): Mention
13373 contrib/download_prerequisites script.
13375 2015-09-10 Jakub Jelinek <jakub@redhat.com>
13378 * gimplify.c (gimplify_omp_for): If inner stmt is not found
13379 for combined loop, assert seen_error () and return GS_ERROR.
13381 PR middle-end/67521
13382 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
13383 if decl is already in outer->variables.
13385 PR middle-end/67517
13386 * gimplify.c (gimplify_scan_omp_clauses): Instead of
13387 asserting that decl is not specified in octx->variables,
13388 break out of the loop if it is.
13391 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
13392 iterator is not explicitly determined, but is defined inside
13393 of the combined workshare region, handle it like if it has
13394 DECL_EXPR in OMP_FOR_PRE_BODY.
13396 2015-09-09 Nathan Sidwell <nathan@acm.org>
13398 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
13399 (*cmp<mode>): Add assembler spacing.
13400 (setcc_int<mode>, set_cc_float<mode>): Likewise.
13401 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
13403 (write_func_decl_from_insn): Refactor argument loops & comma emission.
13404 (nvptx_expand_call): Likewise.
13405 (nvptx_output_call_insn): Likewise.
13406 (nvptx_reorg_subreg): Add spacing.
13408 2015-09-09 Marek Polacek <polacek@redhat.com>
13410 PR middle-end/67512
13411 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
13414 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
13417 * doc/invoke.texi ([Wsubobject-linkage]): Document.
13419 2015-09-09 Tom de Vries <tom@codesourcery.com>
13421 * params-list.h: Add missing copyright notice.
13423 2015-09-09 Nathan Sidwell <nathan@acm.org>
13425 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
13426 sel_truesi, not andsi.
13428 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13430 * config/arm/arm.md (*subsi3_compare0): Rename to...
13431 (subsi3_compare0): ... This.
13432 (modsi3): New define_expand.
13433 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
13434 when operand is power of 2.
13436 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13438 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
13439 (*neg<mode>2_compare0): Rename to...
13440 (neg<mode>2_compare0): ... This.
13441 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
13442 Move check for speed inside the if-then-elses. Reflect
13443 CSNEG sequence in MOD by power of 2 case.
13445 2015-09-09 Alan Modra <amodra@gmail.com>
13448 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
13449 reload replacement for PRE_MODIFY address reg.
13451 2015-09-09 Sebastian Pop <s.pop@samsung.com>
13453 PR tree-optimization/53852
13454 * config.in: Regenerate.
13455 * configure: Regenerate.
13456 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
13457 * graphite-optimize-isl.c (optimize_isl): Stop computation when
13458 PARAM_MAX_ISL_OPERATIONS is reached.
13459 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
13460 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
13461 result equal to isl_stat_ok as the status now can be isl_error_quota.
13462 (subtract_commutative_associative_deps): Same.
13463 (compute_deps): Same.
13465 2015-09-08 Aditya Kumar <hiraditya@msn.com>
13466 Sebastian Pop <s.pop@samsung.com>
13468 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
13469 Return the parameter if it was saved in corresponding
13470 parameter_rename_map of the region.
13471 (copy_def): Copy def from sese region to the newly created region.
13472 (copy_internal_parameters): Copy all the internal parameters defined
13473 within a region to the newly created region.
13474 (graphite_regenerate_ast_isl): Copy parameters to the new region before
13475 translating isl to gimple.
13476 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
13477 the loop-nest does not have any data-references.
13478 (build_graphite_scops): Create a scop only when there is at least one
13480 (contains_only_close_phi_nodes): Deleted.
13481 (print_graphite_scop_statistics): Deleted
13482 (print_graphite_statistics): Deleted
13483 (limit_scops): Deleted.
13484 (build_scops): Removed call to limit_scops.
13485 * sese.c (new_sese): Construct.
13486 (free_sese): Destruct.
13487 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
13489 (set_rename): Pass sese region so that parameters inside the region can
13490 be added to its parameter_rename_map.
13491 (rename_uses): Pass sese region.
13492 (graphite_copy_stmts_from_block): Do not copy parameters that have been
13493 generated in the header of the scop. For each SSA_NAME in the
13494 parameter_rename_map rename its usage.
13495 (invariant_in_sese_p_rec): Return false if tree t is defined outside
13497 (scalar_evolution_in_region): If the tree t is invariant just return t.
13498 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
13499 struct sese to keep track of all the parameters which need renaming.
13500 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
13502 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
13504 2015-09-08 Tom de Vries <tom@codesourcery.com>
13506 * Makefile.in (generated_files): Add params.list.
13507 (params.list, s-params.list): Add rule.
13508 * params.h (enum compiler_param): Include params-list.h. Move define
13509 DEFPARAM, include params.def and undef DEFPARAM ...
13510 * params-list.h: ... here. New file.
13512 2015-09-08 David Malcolm <dmalcolm@redhat.com>
13514 * pretty-print.h (printer_fn): Fix typo in comment.
13516 2015-09-07 Jeff Law <law@redhat.com>
13518 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
13520 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13522 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
13523 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
13524 (arm_neon_fp16_hw): New.
13526 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13528 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
13529 UNITS_PER_WORD >= 4.
13531 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13533 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
13534 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
13535 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
13536 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
13537 (aarch64_float_extend_lo_v2df): Rename to...
13538 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
13540 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
13541 (float_extend_lo): Add v4sf.
13543 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
13544 * config/aarch64/iterators.md (VQ_HSF): New iterator.
13545 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
13546 (Vwide): New mode_attr.
13548 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13550 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
13551 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
13552 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
13553 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
13554 V4HF and V8HF variants to iterator.
13556 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
13558 * config/aarch64/iterators.md (VDQF_F16): New.
13559 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
13561 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13563 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
13564 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13565 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
13566 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
13567 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
13568 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13569 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
13570 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
13571 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
13572 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
13573 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
13574 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13575 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
13576 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
13577 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
13578 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
13579 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
13580 vld1q_dup_f16): New.
13582 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13584 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
13585 Reparameterize to...
13586 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
13587 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
13588 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
13590 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
13592 (float_truncate_lo_): Use BUILTIN_VDF iterator.
13594 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
13596 * config/aarch64/iterators.md (VDF, Vdtype): New.
13597 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
13599 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13601 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
13602 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
13603 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
13604 Add __builtin_aarch64_simd_hf.
13605 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
13606 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
13607 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
13608 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
13609 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
13610 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
13611 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
13612 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
13613 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
13615 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
13616 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
13617 (VDC, Vdbl): Add V4HF.
13619 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13621 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
13622 V4HFmode and V8HFmode.
13623 (aarch64_split_simd_move): Add case for V8HFmode.
13624 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
13625 (aarch64_simd_builtin_std_type): Handle HFmode.
13626 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
13628 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
13629 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
13630 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
13632 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
13635 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
13636 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
13638 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
13639 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
13640 vst1q_lane_f16): New.
13641 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
13642 (VALLDI_F16, VALL_F16): New.
13643 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
13644 Add cases for V4HF and V8HF.
13645 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
13647 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13649 * config/arm/arm-builtins.c (VAR11, VAR12): New.
13650 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
13651 vld4_dup): Add v4hf variant.
13652 (vget_high, vget_low): Add v8hf variant.
13653 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
13654 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
13655 v4hf and v8hf variants.
13657 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
13659 (V_DOUBLE): Add case for V4HF.
13661 (V_HALF): Add case for V8HF.
13662 (VDQX): Add V4HF, V8HF.
13663 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
13664 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
13666 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
13667 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
13668 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
13669 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
13670 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
13671 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
13672 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
13673 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
13674 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
13676 (neon_vcreate, neon_vreinterpretv8qi<mode>,
13677 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
13678 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
13679 Change VDX to VD_RE.
13681 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
13682 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
13683 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
13685 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
13686 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
13687 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
13688 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
13689 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
13690 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
13691 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
13692 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
13693 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
13695 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13697 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
13698 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
13699 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
13700 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
13701 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13702 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
13703 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
13704 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
13705 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
13706 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
13709 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13711 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
13713 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
13715 * config/arm/arm-builtins.c (v8hf_UP): New.
13716 (arm_init_simd_builtin_types): Initialise Float16x8_t.
13718 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
13720 * config/arm/arm_neon.h (float16x8_t): New typedef.
13722 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13724 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
13725 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
13726 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
13727 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
13728 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13729 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
13730 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
13731 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
13732 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13733 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
13735 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
13737 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
13738 non-alphanumeric characters in the symbol name.
13740 2015-09-07 Marek Polacek <polacek@redhat.com>
13742 PR inline-asm/67448
13743 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
13746 2015-09-07 Marek Polacek <polacek@redhat.com>
13748 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
13750 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
13752 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
13755 2015-09-04 Jakub Jelinek <jakub@redhat.com>
13757 PR middle-end/67452
13758 * tree-ssa-live.c: Include cfgloop.h.
13759 (remove_unused_locals): Clear loop->simduid if simduid is about
13760 to be removed from cfun->local_decls.
13762 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13765 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
13768 2015-09-04 Tom de Vries <tom@codesourcery.com>
13770 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
13772 2015-09-04 Jeff Law <law@redhat.com>
13774 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
13775 unnecessary constructor. It's now trivial and implemented inside...
13776 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
13777 constructor. Add comments to various methods. Remove unused
13779 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
13780 * tree-vrp.c (identify_jump_threads): Likewise.
13781 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
13782 indentation issues.
13783 (thread_across_edge): Similarly.
13784 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
13785 arguments in constructor call.
13787 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
13789 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
13790 temp path contains a '-'.
13792 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
13793 Petr Murzin <petr.murzin@intel.com>
13794 Kirill Yukhin <kirill.yukhin@intel.com>
13796 * config/i386/i386-builtin-types.def
13797 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
13798 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
13799 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
13800 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
13801 * config/i386/i386.c
13802 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
13803 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13804 IX86_BUILTIN_SCATTERALTDIV16SI.
13805 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
13806 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
13807 __builtin_ia32_scatteraltdiv8si.
13808 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
13809 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13810 IX86_BUILTIN_SCATTERALTDIV16SI.
13811 (ix86_vectorize_builtin_scatter): New.
13812 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
13813 ix86_vectorize_builtin_scatter.
13815 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
13816 Petr Murzin <petr.murzin@intel.com>
13817 Kirill Yukhin <kirill.yukhin@intel.com>
13819 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
13820 * doc/tm.texi: Regenerate.
13821 * target.def: Add scatter builtin.
13822 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
13823 for loads/stores in case of gather/scatter accordingly.
13824 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13825 STMT_VINFO_GATHER_P(S).
13826 (vect_check_gather): Rename to ...
13827 (vect_check_gather_scatter): this.
13828 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
13829 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
13830 (vect_check_gather_scatter): Use it instead of vect_check_gather.
13831 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
13832 variable and new checkings for it accordingly.
13833 * tree-vect-stmts.c
13834 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13835 STMT_VINFO_GATHER_P(S).
13836 (vect_check_gather_scatter): Use it instead of vect_check_gather.
13837 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
13839 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
13841 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
13843 (mulv16qi3): New define_expand.
13845 2015-09-03 Martin Sebor <msebor@redhat.com>
13848 * doc/extend.texi (Other Builtins): Document when the address
13849 of a built-in function can be taken.
13851 2015-09-03 Richard Biener <rguenther@suse.de>
13853 * dwarf2out.c (flush_limbo_die_list): Split out from ...
13854 (dwarf2out_early_finish): ... here.
13855 (dwarf2out_finish): Do not call dwarf2out_early_finish but
13856 flush_limbo_die_list. Assert we have no deferred asm names.
13858 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13860 * optabs.c (expand_binop): Don't create a broadcast vector with a
13861 source element wider than the inner mode.
13863 2015-09-03 Richard Biener <rguenther@suse.de>
13865 * varasm.c (output_constant): Use fold_convert instead of
13868 2015-09-03 Tom de Vries <tom@codesourcery.com>
13870 PR tree-optimization/65637
13871 * omp-low.c (expand_omp_for_static_chunk): Handle case that
13872 fin_bb has 2 predecessors.
13874 2015-09-03 Tom de Vries <tom@codesourcery.com>
13876 PR tree-optimization/65637
13877 * omp-low.c (find_phi_with_arg_on_edge): New function.
13878 (expand_omp_for_static_chunk): Fix inner loop phi.
13880 2015-09-03 Tom de Vries <tom@codesourcery.com>
13882 PR tree-optimization/65637
13883 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
13886 2015-09-03 Tom de Vries <tom@codesourcery.com>
13888 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
13890 2015-09-03 Tom de Vries <tom@codesourcery.com>
13892 * doc/invoke.texi (parloops-chunk-size): Add item.
13893 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
13894 * tree-parloops.c: Include params.h.
13895 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
13896 param parloops-chunk-size is used.
13898 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13900 PR middle-end/67351
13901 * fold-const.c (fold_binary_loc) : Move
13902 Transform (x >> c) << c into x & (-1<<c) or
13903 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
13904 types using simplify and match.
13905 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
13906 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
13908 2015-09-03 Richard Biener <rguenther@suse.de>
13911 * tree-ssa-structalias.c (ctor_for_analysis): New function.
13912 (create_variable_info_for_1): Use ctor_for_analysis instead
13913 of get_constructor.
13914 (create_variable_info_for): Likewise.
13916 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
13919 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
13920 in new callgraph edge.
13922 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
13927 * config/aarch64/aarch64-simd.md
13928 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
13929 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
13930 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
13931 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
13933 2015-09-02 Alan Modra <amodra@gmail.com>
13935 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
13936 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
13937 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
13939 2015-09-02 Alan Modra <amodra@gmail.com>
13942 * config/rs6000/predicates.md (current_file_function_operand): Don't
13943 return true for weak symbols.
13944 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
13946 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
13947 Andrew Bennett <andrew.bennett@imgtec.com>
13949 * config/mips/mips-opts.h (mips_cb_setting): New enum.
13950 * config/mips/mips-protos.h: Add definitions for
13951 mips_output_jump and mips_output_equal_conditional_branch
13952 * config/mips/mips.c (MIPS_JR): Change to support the
13954 (mips_emit_compare): Add support for the MIPS R6 conditional
13956 (mips_process_sync_loop): Likewise.
13957 (mips_output_order_conditional_branch): Likewise.
13958 (mips16_build_call_stub): Change MIPS_CALL to
13960 (mips_print_operand_punctuation): Update 's' case to only
13961 apply to micromips r2.
13962 (mips_adjust_insn_length): Add support for forbidden slot
13964 (mips_avoid_hazard): Likewise.
13965 (mips_reorg_process_insns): Likewise.
13966 (mips_output_jump): New function.
13967 (mips_output_equal_conditional_branch): Likewise.
13968 (mips_output_conditional_branch): Use jrc/bc if compact
13969 branch support is enabled. Ensure the forbidden slots
13970 between the two branch instructions is filled with a nop.
13971 (mips_option_override): Add support to process the compact
13972 branch option and set the correct defaults. Prevent
13973 non-explict relocs being using for MIPS R6.
13974 (mips_trampoline_init): Add compact branch support.
13975 (mips_mult_zero_zero_cost): Allow zero initialisation of
13976 accumulators with TARGET_DSP.
13977 * config/mips/mips.h (TARGET_CB_NEVER): New define.
13978 (TARGET_CB_MAYBE): New define.
13979 (TARGET_CB_ALWAYS): New define.
13980 (ISA_HAS_DELAY_SLOTS): New define.
13981 (ISA_HAS_COMPACT_BRANCHES): New define.
13982 (ISA_HAS_JRC): New define.
13983 (MIPS_BRANCH_C): New define.
13984 (MIPS_CALL): Removed.
13985 (MICROMIPS_J): Removed.
13986 * config/mips/mips.md (compact_form): New attr.
13987 (hazard): Add support for forbidden slots.
13988 (define_delay): Add support for compact branches.
13989 (*branch_order<mode>): Likewise.
13990 (*branch_order<mode>_inverted): Likewise.
13991 (*branch_equality<mode>): Likewise.
13992 (*branch_equality<mode>_inverted): Likewise.
13993 (*jump_absolute): Likewise.
13994 (*jump_pic): Likewise.
13995 (indirect_jump): Use mips_output_jump to produce assembly output.
13996 (tablejump_<mode>"): Likewise.
13997 (*<optab>"): Likewise.
13998 (<optab>_internal): Likewise.
13999 (sibcall_internal): Likewise.
14000 (sibcall_value_internal): Likewise.
14001 (sibcall_value_multiple_internal): Likewise.
14002 (call_internal): Likewise.
14003 (call_split): Likewise.
14004 (call_internal_direct): Likewise.
14005 (call_direct_split): Likewise.
14006 (call_value_internal): Likewise.
14007 (call_value_split): Likewise.
14008 (call_value_internal_direct): Likewise.
14009 (call_value_direct_split): Likewise.
14010 (call_value_multiple_internal): Likewise.
14011 (call_value_multiple_split): Likewise.
14012 (mips_get_fcsr_mips16_<mode>): Likewise.
14013 (mips_set_fcsr_mips16_<mode>): Likewise.
14014 (tls_get_tp_mips16_<mode>): Likewise.
14015 * config/mips/mips.opt: Add -mcompact-branches option.
14016 * config/mips/predicates.md (order_operator): Ensure the
14017 conditional compact branches are only used if the ISA them.
14018 * doc/invoke.texi: Document -mcompact-branches option.
14020 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
14023 * lra-lives.c (process_bb_lives): Process move pseudos with the
14024 same value for copies and preferences
14025 * lra-constraints.c (match_reload): Create match reload pseudo
14026 with the same value from single dying input pseudo.
14028 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
14031 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
14033 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
14035 * trans-mem.c: Add contributed-by.
14036 * trans-mem.h: Same.
14038 2015-09-01 Richard Biener <rguenther@suse.de>
14040 * expr.c (expand_expr_real_1): For expanding TERed defs
14041 set the current location to that of the def if not UNKNOWN.
14043 2015-09-01 David Sherwood <david.sherwood@arm.com>
14045 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
14047 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14049 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
14050 then_cost, else_cost fields. Change branch_cost field to unsigned int.
14051 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
14052 Include rtl-iter.h.
14053 (noce_simple_bbs): New function.
14054 (noce_try_move): Bail if basic blocks are not simple.
14055 (noce_try_store_flag): Likewise.
14056 (noce_try_store_flag_constants): Likewise.
14057 (noce_try_addcc): Likewise.
14058 (noce_try_store_flag_mask): Likewise.
14059 (noce_try_cmove): Likewise.
14060 (noce_try_minmax): Likewise.
14061 (noce_try_abs): Likewise.
14062 (noce_try_sign_mask): Likewise.
14063 (noce_try_bitop): Likewise.
14064 (bbs_ok_for_cmove_arith): New function.
14065 (noce_emit_all_but_last): Likewise.
14066 (noce_emit_insn): Likewise.
14067 (noce_emit_bb): Likewise.
14068 (noce_try_cmove_arith): Handle non-simple basic blocks.
14069 (insn_valid_noce_process_p): New function.
14070 (contains_mem_rtx_p): Likewise.
14071 (bb_valid_for_noce_process_p): Likewise.
14072 (noce_process_if_block): Allow non-simple basic blocks
14075 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
14077 * tree-ssa-dom.c (record_equivalences_from_phis,
14078 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
14079 (lookup_avail_expr): Likewise, and remove comment and unused temp.
14081 2015-09-01 Nick Clifton <nickc@redhat.com>
14083 * config/msp430/msp430.opt (mcpu): Fix typo.
14085 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14087 * config/aarch64/aarch64.c (aarch64_set_current_function):
14088 Re-layout any vector parameters have non-simd layout.
14089 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
14091 (aarch64_simd_expand_args): Delete call to the above.
14093 2015-08-31 Mike Frysinger <vapier@gentoo.org>
14095 * doc/invoke.texi (asan-stack): Add space before option.
14097 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
14099 * tree.h (zerop): New function.
14100 * tree.c (zerop): Likewise.
14101 (element_precision): Handle expressions.
14102 * match.pd (define_predicates): Add zerop.
14103 (x <= +Inf): Fix comment.
14104 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
14105 * fold-const.c (fold_binary_loc): ... here. Remove.
14107 2015-08-31 Richard Biener <rguenther@suse.de>
14109 PR middle-end/67381
14110 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
14112 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
14114 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
14115 (CEXPI): New operator list.
14116 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
14117 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
14119 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
14121 2015-08-31 Tom de Vries <tom@codesourcery.com>
14123 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
14124 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
14126 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
14127 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
14128 (rewrite_into_loop_closed_ssa): ... here.
14129 (replace_uses_in_dominated_bbs): Remove function.
14130 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
14131 rewrite_into_loop_closed_ssa_1.
14133 2015-08-31 Michael Matz <matz@suse.de>
14135 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
14136 enter entry and exit blocks for reverse post order.
14138 2015-08-31 Richard Biener <rguenther@suse.de>
14140 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
14141 (lto_location_cache::current_sysp): Likewise.
14142 (output_block::current_sysp): Likewise.
14143 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
14144 (lto_location_cache::apply_location_cache): Properly record
14145 system header locations.
14146 (lto_location_cache::input_location): Input whether a file
14147 is a system header.
14148 * lto-streamer-out.c (lto_output_location): Stream whether a file
14149 is a system header.
14151 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14154 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
14156 2015-08-31 Tom de Vries <tom@codesourcery.com>
14158 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
14159 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
14160 Improve function header comments.
14162 2015-08-30 Michael Collison <michael.collison@linaro.org>
14165 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
14168 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14170 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
14171 special_handling bitfield.
14172 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
14173 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
14174 that represents a general xxpermdi.
14175 (insn_is_swappable_p): Add handling for vec_concat of two
14176 doublewords, which maps to a specific xxpermdi.
14177 (adjust_xxpermdi): New function.
14178 (adjust_concat): Likewise.
14179 (handle_special_swappables): Call adjust_xxpermdi and
14181 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
14183 2015-08-30 Rich Felker <dalias@libc.org>
14185 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
14186 case instead of sh[123456ble]-*-*.
14188 2015-08-29 Anatoly Sokolov <aesok@post.ru>
14190 * ira.c (print_unform_and_important_classes,
14191 print_translated_classes): Remove reg_class_names static array.
14192 (print_unform_and_important_classes): Rename to ...
14193 (print_uniform_and_important_classes): ... this.
14194 (ira_debug_allocno_classes): Update accordingly.
14196 2015-08-29 Tom de Vries <tom@codesourcery.com>
14198 PR tree-optimization/46193
14199 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
14202 2015-08-28 Jeff Law <law@redhat.com>
14205 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14206 unable to find X NE 0 in the tables, return X as the simplified
14208 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14209 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
14211 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14212 after removing the control flow statement and unnecessary edges.
14214 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
14217 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14219 PR tree-optimization/67283
14220 * tree-sra.c (type_consists_of_records_p): Rename to...
14221 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14223 (completely_scalarize_record): Rename to...
14224 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
14226 (scalarize_elem): New.
14228 2015-08-28 Jiong Wang <jiong.wang@arm.com>
14230 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
14231 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
14232 (aarch64_symbol_type): Likewise.
14233 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14235 (aarch64_expand_mov_immediate): Likewise.
14236 (aarch64_print_operand): Likewise.
14237 (aarch64_classify_tls_symbol): Likewise.
14239 2015-08-28 Richard Biener <rguenther@suse.de>
14241 * cgraphunit.c (symbol_table::compile): Move early debug generation
14243 (symbol_table::finalize_compilation_unit): ... back here and
14244 add a !seen_error () guard.
14246 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14248 * toplev.c (process_options): Do not use flag_loop_block,
14249 flag_loop_interchange, and flag_loop_strip_mine. Add check for
14250 flag_loop_optimize_isl.
14252 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14254 * Makefile.in (OBJS): Remove graphite-blocking.o and
14255 graphite-interchange.o.
14256 * common.opt (floop-strip-mine, floop-interchange, floop-block):
14257 Alias of floop-nest-optimize.
14258 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
14259 Document as alias of -floop-nest-optimize.
14260 * graphite-blocking.c: Remove.
14261 * graphite-interchange.c: Remove.
14262 * graphite-optimize-isl.c: Include dumpfile.h.
14263 (getScheduleForBand): Add dump for tiled loops. Use
14264 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
14265 * graphite-poly.c (scop_max_loop_depth): Remove.
14266 (print_scattering_function_1): Remove.
14267 (print_scattering_function): Remove.
14268 (print_scattering_functions): Remove.
14269 (debug_scattering_function): Remove.
14270 (debug_scattering_functions): Remove.
14271 (apply_poly_transforms): Remove use of flag_loop_block,
14272 flag_loop_strip_mine, and flag_loop_interchange.
14273 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
14275 (print_pdr_access_layout): Remove.
14276 (print_pdr): Print ISL representation.
14277 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
14278 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
14280 (openscop_print_pbb_domain): Remove.
14281 (print_pbb): Remove call to print_scattering_function.
14282 (openscop_print_scop_context): Remove.
14283 (print_scop_context): Do not print matrices anymore.
14284 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
14285 SCOP_TRANSFORMED_SCHEDULE.
14286 (print_isl_set): Add printing of a new line.
14287 (print_isl_map): Same.
14288 (print_isl_aff): Same.
14289 (print_isl_constraint): Same.
14290 (loop_to_lst): Remove.
14291 (scop_to_lst): Remove.
14292 (lst_indent_to): Remove.
14293 (print_lst): Remove.
14294 (debug_lst): Remove.
14295 (dot_lst_1): Remove.
14297 (reverse_loop_at_level): Remove.
14298 (reverse_loop_for_pbbs): Remove.
14299 * graphite-poly.h (pdr_dim_iter_domain): Remove.
14300 (pdr_nb_params): Remove.
14301 (pdr_alias_set_dim): Remove.
14302 (pdr_subscript_dim): Remove.
14303 (pdr_iterator_dim): Remove.
14304 (pdr_parameter_dim): Remove.
14305 (same_pdr_p): Remove.
14306 (struct poly_scattering): Remove.
14307 (struct poly_bb): Remove _original, _transformed, _saved.
14308 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
14309 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
14310 (PBB_NB_LOCAL_VARIABLES): Remove.
14311 (PBB_NB_SCATTERING_TRANSFORM): Remove.
14312 (schedule_to_scattering): Remove.
14313 (number_of_write_pdrs): Remove.
14314 (pbb_dim_iter_domain): Remove.
14315 (pbb_nb_params): Remove.
14316 (pbb_nb_scattering_orig): Remove.
14317 (pbb_nb_scattering_transform): Remove.
14318 (pbb_nb_dynamic_scattering_transform): Remove.
14319 (pbb_nb_local_vars): Remove.
14320 (pbb_iterator_dim): Remove.
14321 (pbb_parameter_dim): Remove.
14322 (psco_scattering_dim): Remove.
14323 (psct_scattering_dim): Remove.
14324 (psct_local_var_dim): Remove.
14325 (psco_iterator_dim): Remove.
14326 (psct_iterator_dim): Remove.
14327 (psco_parameter_dim): Remove.
14328 (psct_parameter_dim): Remove.
14329 (psct_dynamic_dim): Remove.
14330 (psct_static_dim): Remove.
14331 (psct_add_local_variable): Remove.
14332 (new_lst_loop): Remove.
14333 (new_lst_stmt): Remove.
14334 (free_lst): Remove.
14335 (copy_lst): Remove.
14336 (lst_add_loop_under_loop): Remove.
14337 (lst_depth): Remove.
14338 (lst_dewey_number): Remove.
14339 (lst_dewey_number_at_depth): Remove.
14340 (lst_pred): Remove.
14341 (lst_succ): Remove.
14342 (lst_find_pbb): Remove.
14343 (find_lst_loop): Remove.
14344 (lst_find_first_pbb): Remove.
14345 (lst_empty_p): Remove.
14346 (lst_find_last_pbb): Remove.
14347 (lst_contains_p): Remove.
14348 (lst_contains_pbb): Remove.
14349 (lst_create_nest): Remove.
14350 (lst_remove_from_sequence): Remove.
14351 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
14352 (lst_niter_for_loop): Remove.
14353 (pbb_update_scattering): Remove.
14354 (lst_update_scattering_under): Remove.
14355 (lst_update_scattering): Remove.
14356 (lst_insert_in_sequence): Remove.
14357 (lst_replace): Remove.
14358 (lst_substitute_3): Remove.
14359 (lst_distribute_lst): Remove.
14360 (lst_remove_all_before_including_pbb): Remove.
14361 (lst_remove_all_before_excluding_pbb): Remove.
14362 (struct scop): Remove original_schedule, transformed_schedule, and
14364 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
14365 (SCOP_SAVED_SCHEDULE): Remove.
14366 (poly_scattering_new): Remove.
14367 (poly_scattering_free): Remove.
14368 (poly_scattering_copy): Remove.
14369 (store_scattering_pbb): Remove.
14370 (store_lst_schedule): Remove.
14371 (restore_lst_schedule): Remove.
14372 (store_scattering): Remove.
14373 (restore_scattering_pbb): Remove.
14374 (restore_scattering): Remove.
14375 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
14376 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
14377 compute the scattering polyhedron dimension from the dimension of
14379 (build_scop_scattering): Update call to
14380 build_pbb_scattering_polyhedrons.
14381 (build_poly_scop): Remove call to scop_to_lst.
14382 * graphite.c (graphite_transform_loops): Add call to print_scop.
14383 (gate_graphite_transforms): Remove use of flag_loop_block,
14384 flag_loop_interchange, and flag_loop_strip_mine.
14386 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14388 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
14389 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
14390 -floop-nest-optimize.
14391 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
14392 (generate_luj_sepclass): Remove.
14393 (generate_luj_options): Remove.
14394 (set_options): Remove opt_luj.
14395 (scop_to_isl_ast): Remove opt_luj.
14396 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
14397 flag_loop_unroll_jam.
14398 (getPrevectorMap_full): Remove.
14399 (getScheduleForBandList): Remove map_sepcl.
14400 (getScheduleMap): Same.
14401 (apply_schedule_map_to_scop): Remove sepcl.
14402 (optimize_isl): Same.
14403 * graphite-poly.c (apply_poly_transforms): Remove check for
14404 flag_loop_unroll_jam.
14405 (new_poly_bb): Remove map_sepclass.
14406 * graphite-poly.h (struct poly_bb): Same.
14407 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
14408 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
14409 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
14410 * toplev.c (process_options): Remove flag_loop_unroll_jam.
14412 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
14415 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
14416 (addqi3_cc): Ditto.
14417 (UNSPEC_ADD_CARRY): Remove.
14418 (addqi3_cconly_overflow): New expander.
14419 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
14420 Adjust for changed add<mode>3_carry.
14421 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
14422 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
14423 (<plusminus_insn><mode>3_carry): Remove expander.
14424 (*<plusminus_insn><mode>3_carry): Split insn pattern to
14425 add<mode>3_carry and sub<mode>3_carry.
14426 (plusminus_carry_mnemonic): Remove code attribute.
14427 (add<mode>3_carry): Canonicalize insn pattern.
14428 (*addsi3_carry_zext): Ditto.
14429 (sub<mode>3_carry): Ditto.
14430 (*subsi3_carry_zext): Ditto.
14431 (adcx<mode>3): Remove insn pattern.
14432 (addcarry<mode>): New insn pattern.
14433 (subborrow<mode>): Ditto.
14434 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
14435 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
14436 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
14437 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
14438 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
14439 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
14440 Rewrite expander to not clobber carry flag chains.
14442 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
14444 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
14445 instead of a rotate.
14447 2015-08-27 Marek Polacek <polacek@redhat.com>
14449 PR middle-end/67005
14450 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
14451 an entry into an irreducible region.
14453 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14455 * configure: Regenerate.
14457 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14459 PR tree-optimization/67283
14460 * tree-sra.c (type_consists_of_records_p): Rename to...
14461 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14463 (completely_scalarize_record): Rename to...
14464 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14465 (scalarize_elem): New.
14467 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14469 * tree-sra.c (completely_scalarize_var): Rename to...
14470 (create_total_scalarization_access): ... Here. Drop call to
14471 completely_scalarize_record.
14473 (analyze_all_variable_accesses): Replace completely_scalarize_var
14474 with create_total_scalarization_access and completely_scalarize_record.
14476 2015-08-27 Alan Modra <amodra@gmail.com>
14479 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
14482 2015-08-27 Richard Biener <rguenther@suse.de>
14484 * passes.c (rest_of_decl_compilation): Guard early_global_decl
14485 call with !seen_error ().
14486 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
14487 early debug generation and finish...
14488 (symbol_table::compile): ... here to put it after a !seen_error ()
14491 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14493 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
14496 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14497 Andre Vieira <andre.simoesdiasvieira@arm.com>
14499 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
14500 (*cb<optab><mode>1): Likewise.
14501 (*tb<optab><mode>1): Likewise.
14502 (*cb<optab><mode>1): Likewise.
14503 * config/aarch64/iterators.md (inv_cb): New code attribute.
14504 (inv_tb): Likewise.
14505 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
14506 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
14508 2015-08-27 Richard Biener <rguenther@suse.de>
14510 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
14512 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
14514 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
14517 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14519 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
14522 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
14524 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
14525 floating point in VSX registers.
14526 (rs6000_output_move_128bit): Always print out the set insn if we
14527 can't generate an appropriate 128-bit move.
14528 (rs6000_generate_compare): Add support for IEEE 128-bit floating
14529 point in VSX registers comparisons.
14530 (rs6000_expand_float128_convert): Likewise.
14532 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
14533 predicate for only GPR hard registers.
14535 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
14536 modes to iterators. Add new iterators for moving 128-bit values in
14537 scalar FPR registers and VSX registers.
14538 (FMOVE128): Likewise.
14539 (FMOVE128_FPR): Likewise.
14540 (FMOVE128_GPR): Likewise.
14541 (FMOVE128_VSX): Likewise.
14542 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
14545 (IBM128): Likewise.
14546 (TFIFKF): Likewise.
14547 (RELOAD): Add IEEE 128-bit floating point modes.
14548 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
14549 floating point in VSX registers modes.
14550 (signbit<mode>2, IBM128 iterator): Likewise.
14551 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
14552 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14553 (negtf2): Likewise.
14554 (neg<mode>2, TFIFKF iterator): Likewise.
14555 (negtf2_internal): Likewise.
14556 (abstf2): Likewise.
14557 (abs<mode>2, TFIFKF iterator): Likewise.
14558 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
14559 VSX insn support for negate, absolute value, and negative absolute
14561 (ieee_128bit_vsx_neg<mode>2): Likewise.
14562 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
14563 (ieee_128bit_vsx_abs<mode>2): Likewise.
14564 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
14565 (ieee_128bit_vsx_nabs<mode>2): Likewise.
14566 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
14567 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
14568 floating point in VSX registers.
14569 (unpack<mode>_dm): Likewise.
14570 (unpack<mode>_nodm): Likewise.
14571 (pack<mode>): Likewise.
14572 (unpackv1ti): Likewise.
14573 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
14574 (packv1ti): Likewise.
14575 (pack<mode>, FMOVE128_VSX iterator): Likewise.
14576 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
14578 (extenddftf2_internal): Likewise.
14579 (trunctfdf2): Likewise.
14580 (trunctfdf2_internal2): Likewise.
14581 (fix_trunc_helper): Likewise.
14582 (fix_trunctfdi2"): Likewise.
14583 (floatditf2): Likewise.
14584 (floatuns<mode>tf2): Likewise.
14585 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
14586 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
14587 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
14588 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
14589 (float<SDI:mode><IFKF:mode>2): Likewise.
14590 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
14592 2015-08-26 Renlin Li <renlin.li@arm.com>
14594 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
14596 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14597 Jiong Wang <jiong.wang@arm.com>
14599 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
14600 (tlsie_tiny_<mode>): New define_insn.
14601 (tlsie_tiny_sidi): Likewise.
14602 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
14604 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
14605 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14607 (aarch64_expand_mov_immediate): Likewise.
14608 (aarch64_print_operand): Likewise.
14609 (arch64_classify_tls_symbol): Likewise.
14611 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14613 * config/arm/arm-arches.def: Replace single value flags with
14614 an initializer built from ARM_FSET_MAKE_CPU1.
14615 * config/arm/arm-cores.def: Likewise.
14616 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
14617 derivation from the ARM_CORE macro definition, use the given value
14619 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
14620 ARM_ARCH macro definition, use the given value instead.
14622 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14624 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
14626 (struct builtin_description): Replace field mask with field
14628 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
14629 (IWMMXT2_BUILTIN): Likewise.
14630 (IWMMXT2_BUILTIN2): Likewise.
14631 (FP_BUILTIN): Likewise.
14632 (CRC32_BUILTIN): Likewise.
14633 (CRYPTO_BUILTIN): Likewise.
14634 (iwmmx_mbuiltin): Likewise.
14635 (iwmmx2_mbuiltin): Likewise.
14636 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
14637 struct builtin_description.
14639 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14641 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
14642 (struct builtin_description): Change type of mask to unsigned
14644 * config/arm/arm-protos.h (insn_flags): Declare as type
14646 (tune_flags): Likewise.
14647 * config/arm/arm.c (feature_count): New.
14648 (insn_flags): Define as type arm_feature_set.
14649 (tune_flags): Likewise.
14650 (struct processors): Define field flags as type arm_feature_set.
14651 (all_cores): Update for change to struct processors.
14652 (all_architectures): Likewise.
14653 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
14655 (arm_option_override_internal): Likewise.
14656 (arm_option_override): Likewise.
14658 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14659 Jiong Wang <jiong.wang@arm.com>
14661 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
14662 tls size for tiny, small, large memory model.
14663 (aarch64_load_symref_appropriately): Support new symbol types.
14664 (aarch64_expand_mov_immediate): Likewise.
14665 (aarch64_print_operand): Likewise.
14666 (aarch64_classify_tls_symbol): Likewise.
14667 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
14668 (aarch64_symbol_type): Likewise.
14669 * config/aarch64/aarch64.md (tlsle): Deleted.
14670 (tlsle12_<mode>): New define_insn.
14671 (tlsle24_<mode>): Likewise.
14672 (tlsle32_<mode>): Likewise.
14673 (tlsle48_<mode>): Likewise.
14674 * doc/sourcebuild.texi (AArch64-specific attributes): Document
14677 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14679 * config/arm/arm-protos.h (FL_NONE): New.
14681 (arm_feature_set): New.
14682 (ARM_FSET_MAKE): New.
14683 (ARM_FSET_MAKE_CPU1): New.
14684 (ARM_FSET_MAKE_CPU2): New.
14685 (ARM_FSET_CPU1): New.
14686 (ARM_FSET_CPU2): New.
14687 (ARM_FSET_EMPTY): New.
14688 (ARM_FSET_ANY): New.
14689 (ARM_FSET_HAS_CPU1): New.
14690 (ARM_FSET_HAS_CPU2): New.
14691 (ARM_FSET_HAS_CPU): New.
14692 (ARM_FSET_ADD_CPU1): New.
14693 (ARM_FSET_ADD_CPU2): New.
14694 (ARM_FSET_DEL_CPU1): New.
14695 (ARM_FSET_DEL_CPU2): New.
14696 (ARM_FSET_UNION): New.
14697 (ARM_FSET_INTER): New.
14698 (ARM_FSET_XOR): New.
14699 (ARM_FSET_EXCLUDE): New.
14700 (AFM_FSET_IS_EMPTY): New.
14701 (ARM_FSET_CPU_SUBSET): New.
14703 2015-08-26 Jiong Wang <jiong.wang@arm.com>
14705 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14706 SYMBOL_TLSLE to SYMBOL_TLSLE24.
14707 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14709 (aarch64_expand_mov_immediate): Likewise.
14710 (aarch64_print_operand): Likewise.
14711 (aarch64_classify_symbol): Likewise.
14713 2015-08-26 Jiong Wang <jiong.wang@arm.com>
14715 * config/aarch64/aarch64.opt (mtls-size): New entry.
14716 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
14717 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
14718 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
14720 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14722 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
14723 ARM_CORE entry. Fix some white-space.
14724 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
14725 ARM_CORE definition.
14727 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14729 * fold-const.c (fold_binary_loc) : Move Optimize
14730 root(x)*root(y) as root(x*y) to match.pd.
14731 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
14732 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
14733 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
14734 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
14735 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
14736 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
14737 (mult (exps:s @0) (exps:s @1)) : New simplifier.
14738 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
14739 (rdiv @0 (exps:s @1)) : New simplifier.
14741 2015-08-25 Joseph Myers <joseph@codesourcery.com>
14743 * gcc.c (driver::finalize): Only assign to extra_specs if
14746 2015-08-25 Marek Polacek <polacek@redhat.com>
14748 PR middle-end/67330
14749 * varasm.c (declare_weak): Return after giving an error.
14751 2015-08-25 David Malcolm <dmalcolm@redhat.com>
14753 * gcc-main.c (main): Add params to driver ctor.
14754 * gcc.c (class env_manager): New.
14756 (env_manager::init): New.
14757 (env_manager::get): New.
14758 (env_manager::xput): New.
14759 (env_manager::restore): New.
14760 Poison getenv and putenv.
14761 (DEFAULT_TARGET_SYSTEM_ROOT): New.
14762 (target_system_root): Update initialization to use
14763 DEFAULT_TARGET_SYSTEM_ROOT.
14764 (struct spec_list): Add field "default_ptr".
14765 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
14766 (init_spec): Likewise.
14767 (set_spec): Clear field "default_ptr".
14768 (read_specs): Free "spec" and "buffer".
14769 (xputenv): Reimplement in terms of env_manager.
14770 (process_command): Replace ::getenv calls with calls to the
14771 env_manager singleton.
14772 (process_brace_body): Free string in three places.
14773 (driver::driver): New.
14774 (driver::~driver): New.
14775 (used_arg): Convert from a function to...
14776 (class used_arg_t): ...this class, and...
14777 (used_arg): ...this new global instance.
14778 (used_arg_t::finalize): New function.
14779 (getenv_spec_function): Add "const" to local "value". Replace
14780 ::getenv call with call to the env_manager singleton.
14781 (path_prefix_reset): New function.
14782 (driver::finalize): New function.
14783 * gcc.h (driver::driver): New.
14784 (driver::~driver): New.
14785 (driver::finalize): New.
14787 2015-08-25 Nathan Sidwell <nathan@acm.org>
14789 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
14790 target doesn't have one.
14792 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
14795 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
14797 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
14800 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
14801 a define_insn, remove second alternative.
14803 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
14804 Joseph Myers <joseph@codesourcery.com>
14806 * gcc.c (struct switchstr): Expand comment.
14808 2015-08-25 Nathan Sidwell <nathan@acm.org>
14810 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
14811 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
14813 2015-08-25 Richard Biener <rguenther@suse.de>
14815 PR middle-end/67306
14816 * genmatch.c (expr::gen_transform): Verify the result of
14817 builtin_decl_implicit.
14818 (dt_simplify::gen_1): Likewise.
14820 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
14822 * config/arm/constraints.md: Also list Cs and US ARM-specific
14823 constraints as used.
14825 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
14828 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
14830 (nonpic_symbol_mentioned_p): Likewise.
14831 (sh_delegitimize_address): Likewise.
14832 (sh_function_ok_for_sibcall): Take into account weak symbols.
14833 (sh_expand_sym_label2reg): New.
14834 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
14835 * config/sh/sh.md (UNSPEC_PCREL): New enum.
14836 (call_pcrel): Use sh_expand_sym_label2reg.
14837 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14838 (symPCREL_label2reg) New expand.
14840 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
14842 * graphite-poly.c: Change type of region from void* to sese.
14843 * graphite-poly.h (struct scop): Changing the type of scop::region
14844 from void* to sese. Change accessor macro accordingly.
14845 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
14847 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
14849 * graphite-scop-detection.c (stmt_simple_for_scop_p):
14850 Constrain only on INTEGER_TYPE.
14852 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14855 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
14856 -mefficient-unaligned-vsx on ISA 2.7.
14858 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
14859 option to a masked option.
14861 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
14862 logic for -mefficient-unaligned-vsx so that it is set via an arch
14863 ISA option, instead of being set if -mtune=power8 is set. Move
14864 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
14865 near other default option handling.
14867 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14869 * genflags.c (gen_macro): Delete.
14870 (gen_proto): Don't create GEN.*CALL.* macros.
14871 * gensupport.h (get_file_location): Declare.
14872 * gensupport.c (rtx_locs): New variable.
14873 (read_md_rtx): Record rtx locations.
14874 (get_file_location): New function.
14875 * target-insns.def (call, call_pop, call_value, call_value_pop)
14876 (sibcall, sibcall_value): New patterns.
14877 * gentarget-def.c (parse_argument): New function.
14878 (def_target_insn): Use it. Handle optional operands. Raise an
14879 error if an .md pattern has the wrong number of operands for the
14880 pattern name. Remove the names of unused operands from the prototype.
14881 * builtins.c (expand_builtin_apply): Use targetm functions
14882 instead of HAVE_call_value and GEN_CALL_VALUE.
14883 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
14884 and sibcall_value_pop.
14885 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
14887 * config/alpha/alpha.md (untyped_call): Likewise.
14888 * config/iq2000/iq2000.md (untyped_call): Likewise.
14889 * config/m68k/m68k.md (untyped_call): Likewise.
14890 * config/mips/mips.md (untyped_call): Likewise.
14891 * config/pa/pa.md (untyped_call): Likewise.
14892 * config/rs6000/rs6000.md (untyped_call): Likewise.
14893 * config/sparc/sparc.md (untyped_call): Likewise.
14894 * config/tilegx/tilegx.md (untyped_call): Likewise.
14895 * config/tilepro/tilepro.md (untyped_call): Likewise.
14896 * config/visium/visium.md (untyped_call): Likewise.
14897 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
14898 gen_call_value instead of GEN_CALL_VALUE.
14899 * config/arm/arm.md (untyped_call): Likewise.
14900 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
14903 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14905 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
14906 (have_cbranchcc4): New variable.
14907 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
14908 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
14909 (if_convert): Initialize have_cbranchcc4.
14911 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14913 * builtins.c (expand_cmpstrn): Rename to...
14914 (expand_cmpstrn_or_cmpmem): ...this.
14915 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
14916 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
14917 Remove mode argument.
14918 (expand_builtin): Update accordingly.
14920 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14922 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
14923 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
14924 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
14925 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
14926 Add predicates for operands 0 and 3.
14927 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
14929 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
14930 immediate_operand to nonmemory_operand.
14932 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14934 * df-scan.c (df_insn_info_init_fields): New function, split out
14936 (df_insn_create_insn_record): ...here.
14937 (df_insn_info_free_fields): New function, split out from...
14938 (df_insn_info_delete): ...here.
14939 (df_insn_rescan): Use the new functions instead of freeing and
14940 reallocating the df_insn_info.
14942 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14944 * doc/install.texi (Binaries): Remove links no longer valid.
14946 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14948 * config/nvptx/mkoffload.c (process): Replace
14949 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
14951 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
14954 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
14956 2015-08-24 Renlin Li <renlin.li@arm.com>
14958 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
14959 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
14960 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
14961 * config/arm/constraints.md ("j"): Add check for high code.
14963 2015-08-24 Tom de Vries <tom@codesourcery.com>
14965 PR tree-optimization/65468
14966 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
14969 2015-08-24 Nathan Sidwell <nathan@acm.org>
14971 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
14972 change to nvptx_type_from_mode call. Use arg_promotion for both
14973 split and non-split args.
14975 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14977 * target-insns.def (movstr): New pattern.
14978 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
14979 (expand_movstr): Use targetm rather than HAVE_movstr/
14982 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14984 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
14987 2015-08-24 Andrew Pinski <apinski@cavium.com>
14989 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
14990 AARCH64_EXTRA_TUNING_OPTION.
14991 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
14993 (aarch64_extra_tuning_flags): Base the shifted value on the index
14994 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
14995 * config/aarch64/aarch64.c: Remove the last argument to
14996 AARCH64_EXTRA_TUNING_OPTION.
14998 2015-08-23 Nathan Sidwell <nathan@acm.org>
15000 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
15002 (nvptx_declare_function_name): Insert formatting tabs for
15005 2015-08-23 Tom de Vries <tom@codesourcery.com>
15007 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
15008 parm_decl, rather than generating a dummy default def in cfun.
15009 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
15010 ssa_name from cfun and child_fn do not share a stmt as def stmt.
15011 (move_stmt_op): Handle PARM_DECl.
15012 (gather_ssa_name_hash_map_from): New function.
15013 (move_sese_region_to_fn): Add default defs for function params, and add
15014 them to vars_map. Release copied ssa names.
15015 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
15017 2015-08-23 Tom de Vries <tom@codesourcery.com>
15019 * doc/sourcebuild.texi: Rename vect_no_int_max with
15020 vect_no_int_min_max. Update description.
15022 2015-08-22 Andrew Pinski <apinski@cavium.com>
15024 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
15025 * config/aarch64/aarch64-protos.h
15026 (aarch64_fusion_pairs_index): New enum.
15027 (aarch64_fusion_pairs): Base the shifted value on the index instead
15028 Rewrite AARCH64_FUSE_ALL to be based on the end index.
15029 of the argument to AARCH64_FUSION_PAIR.
15030 * config/aarch64/aarch64.c: Remove the last argument to
15031 AARCH64_FUSION_PAIR.
15033 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
15035 * dominance.c (new_zero_array): Define.
15036 (dom_info): Redefine as class with proper encapsulation.
15037 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
15039 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
15040 allocations/deallocations. Pass function as parameter (instead of
15042 (dom_info::get_idom): Define accessor method.
15043 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
15044 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
15045 (calculate_dominance_info): Adjust to use dom_info class.
15046 (verify_dominators): Likewise.
15048 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
15050 * print-rtl.c (print_rtx): Check the correct range for
15051 flag_dump_unnumbered_links to behave as documented.
15053 PR rtl-optimization/67227
15054 PR rtl-optimization/64164
15055 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
15056 (nonoverlapping_memrefs_p): Test offsets and sizes when given
15057 identical gimple_reg exprs.
15059 2015-08-21 Nathan Sidwell <nathan@acm.org>
15061 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
15063 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
15064 crtl->stack_alignment_needed to determine alignment.
15065 (nvptx_get_drap_rtx): New.
15066 (TARGET_GET_DRAP_RTX): Override.
15067 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
15069 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15071 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
15073 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15075 * configure.ac: Remove uwin* cases.
15076 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
15077 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
15078 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
15079 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
15080 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
15081 i[34567]86-*-uwin*, powerpc-*-beos*.
15083 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
15085 * gencodes.c (gencodes): Print the comma for the preceding
15086 enum value rather than the current one. Use aliased enum values
15087 rather than #defines for compiled-out patterns.
15088 (main): Update accordingly. Replace LAST_INSN_CODE with
15090 * lra.c (insn_code_data): Update accordingly.
15091 (finish_insn_code_data_once, get_static_insn_data): Likewise.
15092 * recog.h (target_recog): Likewise.
15093 (preprocess_insn_constraints): Change parameter to unsigned int.
15094 * recog.c (preprocess_insn_constraints): Likewise.
15095 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
15096 * tree-vect-stmts.c (vectorizable_operation): Simplify.
15098 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
15100 PR rtl-optimization/61657
15101 * loop-iv.c (iv_number_of_iterations): Declare up and down as
15102 unsigned. Remove superflous uint64_t cast.
15104 2014-08-21 Felix Yang <felix.yang@huawei.com>
15105 Jiji Jiang <jiangjiji@huawei.com>
15107 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
15108 argument and get builtin function code directly from CALL.
15109 (gimple_stringop_fixed_value): Modified accordingly.
15110 (gimple_stringops_transform, gimple_stringops_values_to_profile):
15111 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
15113 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
15115 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
15117 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15119 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
15121 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
15122 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
15123 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
15124 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
15125 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
15126 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
15127 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
15128 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
15129 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
15130 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
15132 * match.pd (SIN ) : New Operator.
15133 (TAN) : New Operator.
15134 (mult (SQRT@1 @0) @1) : New simplifier.
15135 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
15136 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15137 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15138 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
15139 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
15140 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
15141 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
15142 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
15143 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
15144 (rdiv @0 (POW:s @1 @2)) : New simplifier.
15146 2015-08-21 Bin Cheng <bin.cheng@arm.com>
15148 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
15149 loop if EXPR is simplified to const value.
15151 2015-08-21 Yury Gribov <y.gribov@samsung.com>
15153 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
15154 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
15156 2015-08-21 Richard Biener <rguenther@suse.de>
15158 PR middle-end/67285
15159 * gimple-fold.c (replace_stmt_with_simplification): Assert
15160 seq is empty when replacing a call with itself but different
15162 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
15163 a call require that it is const.
15165 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15167 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
15168 * builtins.c (get_object_alignment_2): Adjust.
15169 * varasm.c (align_variable): Likewise.
15170 (get_variable_align): Likewise.
15171 (build_constant_desc): Likewise.
15172 (force_const_mem): Likewise.
15173 * doc/tm.texi.in: Likewise.
15174 * doc/tm.texi: Regenerate.
15176 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15178 * genconfig.c (main): Always define HAVE_cc0.
15179 * recog.c (rest_of_handle_peephole2): Adjust.
15181 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15183 * reorg.c (relax_delay_slots): Don't use #if to check value of
15186 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15188 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
15189 * targhooks.c (default_have_conditional_execution): Adjust.
15191 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
15193 * rtl.h (rtvec_all_equal_p): Declare.
15194 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
15195 * rtl.c (rtvec_all_equal_p): New function.
15196 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
15197 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
15198 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
15199 * config/arm/arm.c (neon_vdup_constant): Likewise.
15200 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
15201 * config/tilegx/constraints.md (W, Y): Likewise.
15202 * config/tilepro/constraints.md (W, Y): Likewise.
15203 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
15204 (classify_immediate): Use unwrap_const_vec_duplicate.
15205 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
15206 (reg_or_v2s8bit_operand): Likewise.
15207 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
15208 (reg_or_v4s8bit_operand): Likewise.
15210 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15212 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
15213 (vec_shasigma_be): New #define.
15214 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
15215 (VPMSUMH): Likewise.
15216 (VPMSUMW): Likewise.
15217 (VPMSUMD): Likewise.
15218 (VPMSUM): New BU_P8V_OVERLOAD_2.
15219 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
15220 entries for VEC_MADD and VEC_VPMSUM.
15222 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
15224 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
15225 Multiply argument avr_n_flash by 64 to match unit of "KiB".
15226 (avr_pgm_check_var_decl): Same.
15228 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
15230 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
15231 initialization of HFmode scalar type (float16_t) to...
15232 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
15235 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
15237 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
15238 having an -mfp16-format.
15240 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
15242 * config/i386/predicates.md (vector_all_ones_operand): Use
15243 CONSTM1_RTX to simplify definition.
15245 2015-08-20 Richard Biener <rguenther@suse.de>
15247 * toplev.c (compile_file): Remove loop calling late_global_decl
15249 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
15250 on decls we assembled.
15252 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
15254 * common/config/aarch64/aarch64-common.c
15255 (AARCH64_CPU_NAME_LENGTH): Delete.
15256 (aarch64_option_extension): New.
15257 (all_extensions): Likewise.
15258 (processor_name_to_arch): Likewise.
15259 (arch_to_arch_name): Likewise.
15261 (all_architectures): Likewise.
15262 (aarch64_get_extension_string_for_isa_flags): Likewise.
15263 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
15264 architecture names.
15265 * config/aarch64/aarch64-protos.h
15266 (aarch64_get_extension_string_for_isa_flags): New.
15267 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
15268 (aarch64_option_print): Get the string to print from
15269 aarch64_get_extension_string_for_isa_flags.
15270 (aarch64_declare_function_name): Likewise.
15271 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
15272 (MCPU_TO_MARCH_SPEC): This.
15273 (ASM_CPU_SPEC): Use it.
15274 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
15275 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
15276 (EXTRA_SPEC_FUNCTIONS): Use it.
15278 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
15280 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
15281 expansion when !ISA_HAS_LWL_LWR.
15282 (mips_block_move_straight): Update the size of elements copied to
15283 account for alignment when !ISA_HAS_LWL_LWR.
15284 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
15286 2015-08-19 Jiong Wang <jiong.wang@arm.com>
15288 * expr.c (expand_expr_real_2): Check gimple statement during
15289 LSHIFT_EXPR expand.
15291 2015-08-19 Magnus Granberg <zorry@gentoo.org>
15293 * common.opt (fstack-protector): Initialize to -1.
15294 (fstack-protector-all): Likewise.
15295 (fstack-protector-strong): Likewise.
15296 (fstack-protector-explicit): Likewise.
15297 * configure.ac: Add --enable-default-ssp.
15298 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
15299 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
15301 * doc/install.texi: Document --enable-default-ssp.
15302 * config.in: Regenerated.
15303 * configure: Likewise.
15305 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
15307 PR rtl-optimization/64164
15308 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
15309 (parm_in_stack_slot_p): ... this. Disregard mode, what
15310 matters is whether the parm will live in a pseudo or a stack
15312 (expand_one_ssa_partition): Deal with params without a default
15313 def. Disregard mode.
15314 * cfgexpand.h: Renamed function declaration.
15315 * tree-ssa-coalesce.c: Adjust.
15316 * function.c (split_complex_args): Allocate stack slot for
15317 unassigned parms before splitting.
15318 (parm_in_unassigned_mem_p): New. Use it instead of
15319 parm_maybe_byref_p throughout this file.
15320 (assign_parm_setup_block): Use it. Accept pseudos in the
15321 expand-assigned rtl.
15322 (assign_parm_setup_reg): Drop BLKmode requirement.
15323 (assign_parm_setup_stack): Allocate and fill in the address of
15324 unassigned MEM parms.
15326 2015-08-19 David Sherwood <david.sherwood@arm.com>
15328 * genmodes.c (emit_mode_unit_size_inline): New function.
15329 (emit_mode_unit_precision_inline): New function.
15330 (emit_insn_modes_h): Emit new #define. Emit new functions.
15331 (emit_mode_unit_size): New function.
15332 (emit_mode_unit_precision): New function.
15333 (emit_mode_adjustments): Add mode_unit_size adjustments.
15334 (emit_insn_modes_c): Emit new arrays.
15335 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
15336 use new inline methods.
15338 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15340 * config/aarch64/aarch64.c (bit_count): Delete prototype
15342 (aarch64_print_operand): Use popcount_hwi instead of the above.
15344 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15346 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
15349 2015-08-19 Marek Polacek <polacek@redhat.com>
15351 PR middle-end/67133
15352 * gimple-ssa-isolate-paths.c
15353 (insert_trap_and_remove_trailing_statements): Rename to ...
15354 (insert_trap): ... this. Don't remove trailing statements; split
15356 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
15358 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
15361 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
15362 conditionalize the whole on __GNUC__. Add fallback code
15363 depending neither on undefined nor implementation-defined behaviour.
15365 2015-08-19 Jiong Wang <jiong.wang@arm.com>
15367 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
15368 whitespaces with tab.
15370 2015-08-19 Florian Weimer <fweimer@redhat.com>
15372 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
15373 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
15374 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
15375 Move Name_Ids instantiation to the Prj.Proc package, to avoid
15378 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15380 * config/arm/arm.c (bounds_check): Use %wd print format
15381 for HOST_WIDE_INT arguments.
15383 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
15385 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
15386 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
15387 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
15388 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
15389 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
15390 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
15391 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
15392 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
15393 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
15396 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
15398 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
15399 function.c, graphite-scop-detection.c, haifa-sched.c,
15400 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
15401 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
15402 varasm.c: Remove typedefs of structs.
15404 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15406 * config/rs6000/altivec.h (vec_adde): New define.
15407 (vec_addec): Likewise.
15408 (vec_double): Likewise.
15409 (vec_bperm): Likewise.
15410 (vec_gb): Likewise.
15411 * config/rs6000/rs6000-builtin.def (ADDE): New
15412 BU_ALTIVEC_OVERLOAD_3.
15414 (DOUBLE): New BU_VSX_OVERLOAD_1.
15415 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
15416 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
15417 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
15418 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
15419 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
15420 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
15421 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
15422 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
15423 and P8V_BUILTIN_VEC_VBPERMQ.
15425 2015-08-18 Jason Merrill <jason@redhat.com>
15427 * print-tree.c (print_node): Handle TREE_BINFO.
15429 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15431 PR middle-end/36757
15432 * builtins.c (expand_builtin_signbit): Add asserts to make sure
15433 we can expand BUILT_IN_SIGNBIT inline.
15434 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
15435 * doc/extend.texi: Document the type-generic __builtin_signbit.
15437 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
15439 PR rtl-optimization/67218
15440 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
15441 (simplify_unary_operation_1): Use it.
15443 2015-08-18 Marek Polacek <polacek@redhat.com>
15445 PR middle-end/67222
15446 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
15447 if the call isn't valid.
15448 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
15449 gimple_call_builtin_p.
15450 (call_may_clobber_ref_p_1): Likewise.
15451 (stmt_kills_ref_p): Likewise.
15453 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
15455 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
15456 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
15457 (mips_hard_regno_scratch_ok): Likewise.
15458 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
15459 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
15461 2015-08-18 Bin Cheng <bin.cheng@arm.com>
15463 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
15464 (determine_value_range): Call refine_value_range_using_guard for
15465 each loop initial condition to improve value range.
15467 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
15469 * config/i386/i386.c: Remove include of fibheap.h.
15471 2015-08-17 Richard Biener <rguenther@suse.de>
15473 PR tree-optimization/67221
15474 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
15475 (sccvn_dom_walker::before_dom_children): Mark backedges of
15476 non-executable blocks as not executable.
15478 2015-08-17 David Sherwood <david.sherwood@arm.com>
15480 * config/arm/arm.c (neon_element_bits): Replace call to
15481 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
15482 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
15483 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
15484 (neon_vdup_lane<mode>): Likewise.
15485 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
15486 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
15487 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
15488 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
15489 * config/spu/spu.c (arith_immediate_p): Likewise.
15490 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
15491 * expr.c (expand_expr_real_2): Likewise.
15492 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
15493 * simplify-rtx.c (simplify_immed_subreg): Likewise.
15494 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
15495 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
15497 * fold-const.c (fold_binary_loc): Replace call to
15498 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
15499 GET_MODE_UNIT_PRECISION (m).
15501 2015-08-17 Mike Stump <mikestump@comcast.net>
15503 * config/arm/arm.c (arm_block_move_unaligned_straight):
15504 Emit normal move instead of unaligned load when source or destination
15505 are appropriately aligned.
15507 2015-08-17 Richard Biener <rguenther@suse.de>
15508 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15510 PR middle-end/16107
15511 * match.pd (div (coss (op @0) : New simplifier.
15513 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
15515 PR rtl-optimization/64164
15517 PR middle-end/66983
15518 PR rtl-optimization/67000
15519 PR middle-end/67034
15520 PR middle-end/67035
15521 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15522 * tree-ssa-copyrename.c: Removed.
15523 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15524 -ftree-coalesce-vars.
15525 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15526 * common.opt (ftree-copyrename): Ignore.
15527 (ftree-coalesce-inlined-vars): Likewise.
15528 * doc/invoke.texi: Remove the ignored options above.
15529 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15530 * tree-ssa-coalesce.h: ... here.
15531 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15532 headers required by it.
15533 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15534 across variables when flag_tree_coalesce_vars. Check register
15535 use and promoted modes to allow coalescing. Do not coalesce
15536 maybe-byref parms with SSA_NAMEs of other variables, or
15537 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
15538 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15539 with its member functions to tree-ssa-coalesce.c.
15540 (var_map_base_init): Likewise. Renamed to
15541 compute_samebase_partition_bases.
15542 (partition_view_normal): Drop want_bases parameter.
15543 (partition_view_bitmap): Likewise.
15544 * tree-ssa-live.h: Adjust declarations.
15545 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
15546 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15547 default defs at the entry point.
15548 (dump_part_var_map): New.
15549 (compute_optimized_partition_bases): New, called by...
15550 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15551 of compute_samebase_partition_bases. Adjust.
15552 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15553 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
15554 (ssa_default_def_partition): New.
15555 (get_rtl_for_parm_ssa_default_def): New.
15556 (align_local_variable, add_stack_var): Support anonymous SSA
15558 (defer_stack_allocation): Likewise. Declare earlier.
15559 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15560 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15561 Do no record deferred-allocation marker in
15562 SA.partition_to_pseudo.
15563 (expand_stack_vars): Adjust check for the marker in it.
15564 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15565 redundant MEM attr setting.
15566 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15568 (expand_one_stack_var): ... this. New wrapper to check and
15569 skip already expanded SSA partitions.
15570 (record_alignment_for_reg_var): New, factored out of...
15571 (expand_one_var): ... this.
15572 (expand_one_ssa_partition): New.
15573 (adjust_one_expanded_partition_var): New.
15574 (expand_one_register_var): Check and skip already expanded SSA
15576 (expand_used_vars): Don't create DECLs for anonymous SSA
15577 names. Expand all SSA partitions, then adjust all SSA names.
15578 (pass::execute): Replace the loops that set
15579 SA.partition_to_pseudo from partition leaders and cleared
15580 DECL_RTL for multi-location variables, and that which used to
15581 rename vars and set attrs, with one that clears DECL_RTL and
15582 checks that PARMs and RESULTs default_defs match DECL_RTL.
15583 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15584 * emit-rtl.c: Include stor-layout.h.
15585 (set_reg_attrs_for_parm): Handle NULL decl.
15586 (set_reg_attrs_for_decl_rtl): Take mode from expression if
15588 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
15589 rather than its possibly-NULL DECL.
15590 * explow.c (promote_ssa_mode): New.
15591 * explow.h (promote_ssa_mode): Declare.
15592 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15593 (read_complex_part): Export.
15594 * expr.h (read_complex_part): Declare.
15595 * cfgexpand.h (parm_maybe_byref_p): Declare.
15596 * function.c: Include cfgexpand.h.
15597 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15598 (use_register_for_parm_decl): Wrapper for the above to
15599 special-case the result_ptr.
15600 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15601 (split_complex_args): Take assign_parm_data_all argument.
15602 Pass it to rtl_for_parm. Set up rtl and context for split
15603 args. Reset complex parm before fetching its default decl
15605 (assign_parms_unsplit_complex): Use the default-def complex
15606 parm rtl if it matches the components.
15607 (assign_parms_augmented_arg_list): Adjust.
15608 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15609 multiple locations. Recognize split complex args.
15610 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15611 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15612 (assign_parm_setup_block): Prefer SSA-assigned location, and
15613 fill in its address if the memory location of a maybe-byref
15614 parm was not assigned by cfgexpand.
15615 (assign_parm_setup_reg): Likewise. Adjust its mode as
15616 needed. Use entry_parm for equiv if stack_parm is NULL. Make
15617 sure passed_pointer parms don't need conversion. Copy address
15618 or value as needed.
15619 (assign_parm_setup_stack): Prefer SSA-assigned location.
15620 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15621 rtl before testing for pointer bounds. Special-case result_ptr.
15622 (expand_function_start): Maybe reset DECL_RTL of result.
15623 Prefer SSA-assigned location for result and static chain.
15624 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
15625 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
15626 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15627 anonymous SSA names. Use promote_ssa_mode.
15628 (get_temp_reg): Likewise.
15629 (remove_ssa_form): Adjust.
15630 * stor-layout.c (layout_decl): Don't set mem attributes of
15632 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15633 and get its reg_usage for reg invalidation.
15634 (compute_bb_dataflow): Pass it insn.
15635 (emit_notes_in_bb): Likewise.
15637 2015-08-14 Marek Polacek <polacek@redhat.com>
15639 * tree-core.h (tree_base): Fix typo.
15641 2015-08-14 Marek Polacek <polacek@redhat.com>
15643 PR middle-end/67133
15644 * gimple.c (infer_nonnull_range_by_attribute): Check that the
15645 nonnull argument position is not outside function arguments.
15647 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
15650 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
15651 'lconst_atomic' with 'const_atomic'.
15652 (atomic_fetch_<optab><mode>): Likewise.
15653 (atomic_<optab>_fetch<mode>): Likewise.
15654 * config/aarch64/iterators.md (lconst-atomic): Move below
15656 (const_atomic): New.
15658 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
15659 Bernd Schmidt <bernds@codesourcery.com>
15661 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
15663 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
15664 (DWARF2_DEBUGGING_INFO): Don't define.
15665 * debug.h (dwarf2_lineno_debug_hooks): Declare.
15666 * toplev.c (process_options): Add a case for it.
15667 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
15668 (dwarf2out_init): Skip most initializations if
15669 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
15671 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
15672 DWARF2_LINENO_DEBUGGING_INFO.
15673 * opts.c (set_debug_level): Likewise.
15675 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
15677 * config/arm/types.md (is_neon_type): Add missing types.
15679 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
15681 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
15683 * config/i386/i386.c (PTA_SKYLAKE): New macros.
15684 (processor_alias_table): Add skylake description.
15685 (enum processor_model): Add skylake processor.
15686 (arch_names_table): Add skylake record.
15687 * doc/invoke.texi: Add skylake item.
15689 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
15691 * ira-int.h: Include recog.h.
15692 * ira-build.c: Don't include recog.h.
15693 * ira-color.c: Likewise.
15694 * ira-conflicts.c: Likewise.
15695 * ira-costs.c: Likewise.
15696 * ira-emit.c: Likewise.
15697 * ira-lives.c: Likewise.
15699 * sched-deps.c: Likewise.
15700 * sel-sched.c: Likewise.
15701 * target-globals.c: Likewise.
15703 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
15706 * reload1.c (elimination_costs_in_insn): Make it obvious to the
15707 compiler that the n_dups and n_operands loop bounds are invariant.
15709 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15711 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
15712 expressions in A and B.
15714 2015-08-13 Richard Biener <rguenther@suse.de>
15716 * tree.c (nonnull_arg_p): Move from ...
15717 * tree-vrp.c (nonnull_arg_p): ... here.
15718 * tree.h (nonnull_arg_p): Declare.
15719 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
15720 here, register ptr != 0 for nonnull_arg_p pointer arguments.
15721 Properly initialize static chain and by-reference result pointer.
15722 (run_scc_vn): Adjust.
15724 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
15726 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
15729 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
15731 * config/aarch64/aarch64-protos.h
15732 (aarch64_gen_atomic_cas): Declare.
15733 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
15734 Choose appropriate instruction pattern for the target.
15735 (aarch64_gen_atomic_cas): New.
15736 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
15737 (atomic_compare_and_swap<mode>_1): Rename to
15738 aarch64_compare_and_swap<mode>. Fix some indentation.
15739 (aarch64_compare_and_swap<mode>_lse): New.
15740 (aarch64_atomic_cas<mode>): New.
15742 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
15744 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
15747 2015-08-13 Richard Biener <rguenther@suse.de>
15749 PR tree-optimization/67191
15750 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
15751 assert we value-numbered last stmts operand because it can validly
15752 trigger for unreachable code.
15754 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15756 PR rtl-optimization/67103
15757 * ifcvt.c (noce_try_store_flag_constants): Move
15758 x = (-(test != 0) & (b - a)) + a transformation to...
15759 (noce_try_cmove): ... Here. Try it if normal conditional
15762 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
15764 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
15766 * config/mips/mips.md (processor): Remove w32 and w64.
15768 2015-08-13 Richard Biener <rguenther@suse.de>
15770 PR tree-optimization/66502
15771 PR tree-optimization/67167
15772 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
15773 backedge arguments.
15774 (vn_phi_lookup): Adjust.
15775 (vn_phi_insert): Likewise.
15776 (visit_phi): Prefer to value-number to another PHI node
15777 over value-numbering to a PHI argument.
15778 (init_scc_vn): Mark DFS back edges.
15780 2015-08-13 Richard Biener <rguenther@suse.de>
15782 * gimple.h (gcall::code_): New constant static member.
15783 (gcond::code_): Likewise.
15784 * gimple.c (gcall::code_): Define.
15785 (gcond::code_): Likewise.
15786 (is_a_helper <const gcond *>): Add.
15787 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
15788 and forward to a new gcall overload with less checking and a
15789 cheaper way to access the operand.
15790 (gimple_call_lhs_ptr): Likewise.
15791 (gimple_call_set_lhs): Likewise.
15792 (gimple_call_internal_p): Likewise.
15793 (gimple_call_with_bounds_p): Likewise.
15794 (gimple_call_set_with_bounds): Likewise.
15795 (gimple_call_internal_fn): Likewise.
15796 (gimple_call_set_ctrl_altering): Likewise.
15797 (gimple_call_ctrl_altering_p): Likewise.
15798 (gimple_call_fntype): Likewise.
15799 (gimple_call_fn): Likewise.
15800 (gimple_call_fn_ptr): Likewise.
15801 (gimple_call_set_fndecl): Likewise.
15802 (gimple_call_fndecl): Likewise.
15803 (gimple_call_chain): Likewise.
15804 (gimple_call_num_args): Likewise.
15805 (gimple_call_arg): Likewise.
15806 (gimple_call_arg_ptr): Likewise.
15807 (gimple_call_set_arg): Likewise.
15808 (gimple_call_noreturn_p): Likewise.
15809 (gimple_cond_code): Likewise.
15810 (gimple_cond_lhs): Likewise.
15811 (gimple_cond_rhs): Likewise.
15812 (gimple_has_lhs): Reduce checking.
15814 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15816 PR middle-end/25529
15817 * match.pd (div (mult @0 @1) @1) : New simplifier.
15819 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15822 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
15823 predicate to allow construction of vector constants using the
15824 VSLDOI vector shift instruction.
15826 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
15829 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
15830 the number of bytes to be shifted left and filled in with either
15831 all zero or all one bits.
15832 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
15834 (output_vec_const_move): On power8, generate XXLORC to generate
15835 a vector constant with all 1's. Do a split if we need to use a
15836 VSLDOI instruction.
15838 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
15839 properly test for the MSB.
15841 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
15842 vector constants that can be created with VSLDOI.
15844 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
15847 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15848 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15849 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15850 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15851 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15852 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15853 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15854 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15855 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15857 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
15859 * config/xtensa/constraints.md (define_constraint "Y"): New
15861 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
15862 * config/xtensa/linux.h (ASM_SPEC): Likewise.
15863 * config/xtensa/predicates.md (move_operand): Match constants
15864 and symbols in the presence of TARGET_AUTO_LITPOOLS.
15865 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
15866 immediate references to TLS data.
15867 (xtensa_emit_move_sequence): Don't force constants to memory in
15868 the presence of TARGET_AUTO_LITPOOLS.
15869 (print_operand): Add 'y' format, same as default, but capable of
15870 printing SF mode constants as well.
15871 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
15872 (movsf_internal): Add movi pattern that loads literal.
15873 (movsf, movdf): Don't force constants to memory in the presence
15874 of TARGET_AUTO_LITPOOLS.
15875 (movdf_internal): Add 'Y' constraint.
15876 * config/xtensa/xtensa.opt (mauto-litpools): New option.
15877 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
15879 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
15881 * config/arm/arm-fpus.def: Replace booleans with feature flags.
15883 * config/arm/arm.c (ARM_FPU): Update macro.
15884 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
15885 (TARGET_FP16): Likewise.
15886 (TARGET_CRYPTO): Likewise.
15887 (TARGET_NEON): Likewise.
15888 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
15891 2015-08-12 Tom de Vries <tom@codesourcery.com>
15895 * doc/install.texi: Remove --with_host_libstdcxx item. Update
15896 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
15897 accordingly. Mention default for --with-stage1-ldflags.
15899 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
15901 * config/arm/arm.h (arm_fpu_feature_set): New.
15902 (ARM_FPU_FSET_HAS): New.
15903 (FPU_FL_NONE): New.
15904 (FPU_FL_NEON): New.
15905 (FPU_FL_FP16): New.
15906 (FPU_FL_CRYPTO): New.
15908 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15910 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
15911 after -mcmodel=large -fPIC sorry.
15913 2015-08-12 Richard Biener <rguenther@suse.de>
15915 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
15916 comparison operand order and commutative ternary op operand order.
15917 (sccvn_dom_walker::cond_stack): New state to track temporary
15919 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
15921 (sccvn_dom_walker::record_cond): Add a single temporary conditional
15923 (sccvn_dom_walker::record_conds): Add a temporary conditional
15924 expressions and all related expressions also true/false.
15925 (sccvn_dom_walker::before_dom_children): Record temporary
15926 expressions based on the controlling condition of a single
15927 predecessor. When trying to simplify a conditional statement
15928 lookup expressions we might have inserted earlier.
15930 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
15933 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
15934 to ARM core registers.
15936 2015-08-12 Nathan Sidwell <nathan@acm.org>
15938 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
15939 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
15941 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
15943 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
15944 line with comments.
15945 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
15947 2015-08-12 Richard Biener <rguenther@suse.de>
15949 * gimple.h (remove_pointer): New trait.
15950 (GIMPLE_CHECK2): New inline template function.
15951 (gassign::code_): New constant static member.
15952 (is_a_helper<const gassign *>): Add.
15953 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
15954 and forward to a new gassign overload with less checking and a
15955 cheaper way to access the operand.
15956 (gimple_assign_lhs_ptr): Likewise.
15957 (gimple_assign_set_lhs): Likewise.
15958 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
15960 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
15962 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
15964 (gimple_assign_rhs_code): Likewise.
15965 * gimple.c (gassign::code_): Define.
15967 2015-08-12 Richard Biener <rguenther@suse.de>
15969 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15970 Eliminate edges marked as not executable by SCCVN.
15971 * tree-ssa-sccvn.c: Include gimple-iterator.h.
15972 (cond_dom_walker): Rename to sccvn_dom_walker.
15973 (sccvn_dom_walker::before_dom_children): Value-number defs
15975 (run_scc_vn): Remove loop value-numbering all SSA names.
15976 Drop not visited SSA names to varying.
15978 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
15980 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15981 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15982 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15983 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15984 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15985 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15986 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15987 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15988 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15990 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
15993 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
15994 to enum feature_priority and feature_list.
15995 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
15996 and isa_names_table.
15998 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
16000 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
16001 vect_induction_def.
16003 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16007 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
16008 account when deciding what was the command-line status.
16010 2015-08-11 Nathan Sidwell <nathan@acm.org>
16012 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
16014 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
16015 we're not the only contributor to target phi.
16017 2015-08-11 Jiong Wang <jiong.wang@arm.com>
16019 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
16022 2015-08-11 Tom de Vries <tom@codesourcery.com>
16024 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
16026 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
16028 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
16030 * config/i386/i386.md (cpu): Remove knl.
16032 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
16035 PR middle-end/66332
16036 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
16037 open-coded sequence.
16038 * omp-low.c (oacc_process_reduction_data): Remove handline of
16039 GOMP_DEVICE_HOST_NONSHM.
16041 * lto-streamer-in.c (lto_input_mode_table): Adjust to
16042 GET_MODE_INNER changes.
16044 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
16045 Ilya Verbin <ilya.verbin@intel.com>
16047 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
16049 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
16051 * doc/options.texi (EnabledBy): Document that the argument must be
16053 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
16054 Not enabled by -Wall.
16055 * optc-gen.awk: Give nicer error messages. Detect if the argument
16056 of EnabledBy is not a Common option.
16057 * common.opt (Wnull-dereference): Not enabled by -Wall.
16058 * opt-functions.awk (lang_enabled_by): Nicer error messages.
16060 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
16062 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
16063 model == 0x4f as Broadwell.
16065 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16067 PR rtl-optimization/67028
16068 * combine.c (simplify_comparison): Fix comment. Rearrange code.
16069 Add test to see if a const_int fits in the new mode.
16071 2015-08-07 DJ Delorie <dj@redhat.com>
16073 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
16075 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
16077 PR rtl-optimization/67029
16078 * ira-color.c: Include "recog.h" before including "ira-int.h".
16079 * target-globals.c: Likewise.
16080 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
16081 adds an alternative_mask argument and use it instead of
16082 preferred_alternatives.
16083 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
16084 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
16085 * sched-deps.c: Include "ira-int.h" after including "ira.h".
16086 (sched_analyze_insn): Update call to
16087 ira_implicitly_set_insn_hard_regs.
16088 * sel-sched.c: Include "ira-int.h" after including "ira.h".
16089 (implicit_clobber_conflict_p): Update call to
16090 ira_implicitly_set_insn_hard_regs.
16092 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
16094 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
16096 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
16099 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
16100 currently_expanding_to_rtl is set.
16102 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
16104 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
16105 * configure: Regenerate.
16107 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16108 Jiong Wang <jiong.wang@arm.com>
16110 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
16111 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
16112 (REG_CLASS_NAMES): Likewise.
16113 (REG_CLASS_CONTENTS): Likewise.
16114 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
16115 (aarch64_register_move_cost): Likewise.
16116 (aarch64_load_symref_appropriately): Invoke the new added pattern if
16118 * config/aarch64/constraints.md (Uc0): New constraint.
16120 2015-08-06 Jiong Wang <jiong.wang@arm.com>
16122 * config/aarch64/constraints.md (Usf): Add the test of
16123 aarch64_is_noplt_call_p.
16125 2015-08-06 Jiong Wang <jiong.wang@arm.com>
16127 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
16129 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
16130 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
16131 (call_symbol): Likewise.
16133 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
16135 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
16136 for vectorizing multiplication patterns.
16137 * tree-vectorizer.h: Adjust the number of patterns.
16139 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
16141 * config/i386/sse.md (*vec_concatv2df): Declare added
16142 alternatives as sselog type.
16144 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16146 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
16149 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16151 * config/s390/s390.c (s390_expand_tbegin): Expand either
16152 tbegin_1_z13 or tbegin_1 depending on VX flag.
16153 * config/s390/s390.md ("tbegin_1_z13"): New expander.
16155 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16157 * config/s390/s390.opt: Clarify description for -mzvector
16158 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
16161 2015-08-06 Richard Biener <rguenther@suse.de>
16163 * gimple.h (gimple_call_set_fn): Access op member directly.
16164 (gimple_call_chain_ptr): Likewise.
16165 (gimple_call_set_chain): Likewise.
16166 (gimple_cond_lhs_ptr): Likewise.
16167 (gimple_cond_set_lhs): Likewise.
16168 (gimple_cond_rhs_ptr): Likewise.
16169 (gimple_cond_set_rhs): Likewise.
16170 (gimple_cond_true_label): Likewise.
16171 (gimple_cond_set_true_label): Likewise.
16172 (gimple_cond_set_false_label): Likewise.
16173 (gimple_cond_false_label): Likewise.
16174 (gimple_label_label): Likewise.
16175 (gimple_label_set_label): Likewise.
16176 (gimple_goto_set_dest): Likewise.
16177 (gimple_asm_input_op): Likewise.
16178 (gimple_asm_input_op_ptr): Likewise.
16179 (gimple_asm_set_input_op): Likewise.
16180 (gimple_asm_output_op): Likewise.
16181 (gimple_asm_output_op_ptr): Likewise.
16182 (gimple_asm_set_output_op): Likewise.
16183 (gimple_asm_clobber_op): Likewise.
16184 (gimple_asm_set_clobber_op): Likewise.
16185 (gimple_asm_label_op): Likewise.
16186 (gimple_asm_set_label_op): Likewise.
16187 (gimple_switch_index): Likewise.
16188 (gimple_switch_index_ptr): Likewise.
16189 (gimple_return_retval_ptr): Likewise.
16190 (gimple_return_retval): Likewise.
16191 (gimple_return_set_retval): Likewise.
16192 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
16193 (gimple_switch_label): Likewise.
16194 (gimple_switch_set_label): Likewise.
16196 2015-08-06 Richard Biener <rguenther@suse.de>
16198 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
16199 bool comparison canonicalization and restrict to integers.
16201 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
16203 * coretypes.h (enum symbol_visibility): Relocate here.
16204 * flag-types.h (enum symbol_visibility): Remove.
16205 * tree-core.h (enum symbol_visibility): Remove.
16207 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
16210 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
16211 for no_split_stack function attribute along with
16213 (rs6000_expand_split_stack_prologue): Likewise.
16215 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
16216 Jeff Law <law@redhat.com>
16219 * doc/invoke.texi (Wnull-dereference): New.
16220 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
16221 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
16222 Warn for potential NULL dereferences.
16223 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
16224 * ubsan.c (instrument_nonnull_arg): Call
16225 infer_nonnull_range_by_attribute.
16226 (instrument_nonnull_return): Likewise.
16227 * common.opt (Wnull-dereference); New.
16228 * gimple.c (infer_nonnull_range): Remove bool arguments.
16229 (infer_nonnull_range_by_dereference): New.
16230 (infer_nonnull_range_by_attribute): New.
16231 * gimple.h: Update declarations.
16233 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16235 * gensupport.c (sequence_num): Replace with...
16236 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
16237 ...these new variables.
16238 (init_rtx_reader_args_cb): Update accordingly.
16239 (get_num_code_insns): Likewise.
16240 (read_md_rtx): Rework to use a while loop and get_c_test.
16241 Use the new counters. Remove redundant DEFINE_SUBST case.
16242 * genoutput.c (gen_split): Delete.
16243 (main): Don't call it.
16245 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16247 * gensupport.h (get_c_test): Declare.
16248 * gensupport.c (get_c_test): New function.
16249 * genconditions.c (main): Use it.
16250 * genrecog.c (validate_pattern): Likewise.
16251 (match_pattern_1): Likewise. Remove c_test argument.
16252 (match_pattern): Update accordingly and remove c_test argument.
16253 (main): Update accordingly.
16255 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16257 * gensupport.h (get_num_insn_codes): Declare.
16258 * gensupport.c (get_num_insn_codes): New function.
16259 * genattrtab.c (optimize_attrs): Rename max_insn_code to
16261 (main): Likewise. Use get_num_insn_codes.
16262 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
16264 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16266 PR middle-end/66311
16267 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
16268 is zero- rather than sign-extended.
16270 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16272 * target-insns.def (can_extend): Delete.
16274 2015-08-05 Richard Biener <rguenther@suse.de>
16276 PR tree-optimization/67121
16277 * tree-if-conv.c (combine_blocks): Clear range-info produced
16278 by stmts no longer executed conditionally.
16280 2015-08-05 Nick Clifton <nickc@redhat.com>
16282 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
16283 to allow identical far pointers to remain.
16285 2015-08-05 Richard Biener <rguenther@suse.de>
16287 PR middle-end/67120
16288 * match.pd: Compare address bases with == if they are decls
16289 or SSA names, not operand_equal_p. Otherwise fail.
16291 2015-08-05 Richard Biener <rguenther@suse.de>
16293 PR tree-optimization/67055
16294 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
16297 * g++.dg/torture/pr67055.C: New testcase.
16299 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
16301 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
16303 (define_attr "enabled"): Handle avx521vl and noavx512vl.
16304 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
16305 AVX-512 alternative out of SSE.
16306 (define_insn "*vec_concatv2df"): Ditto.
16308 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
16310 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
16311 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
16312 CODE_FOR_avx_ptestv4di.
16313 * config/i386/sse.md (define_mode_iterator V_AVX): New.
16314 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
16315 (define_insn "avx_ptest256"): Merge this ...
16316 (define_insn "sse4_1_ptest"): And this ...
16317 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
16319 2015-08-05 Richard Biener <rguenther@suse.de>
16321 PR tree-optimization/67109
16322 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
16323 against too big groups. Print whether this is a load or store
16324 group. Rename from ...
16325 (vect_analyze_group_access): ... this which is now a wrapper
16326 dissolving an invalid group.
16327 (vect_analyze_data_ref_accesses): Print whether this is a load
16330 2015-08-05 Richard Biener <rguenther@suse.de>
16332 PR middle-end/67107
16333 * match.pd: Guard const_binop result checking against NULL_TREE
16336 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
16338 * cse.c (cse_insn): Restoring old behaviour for src_eqv
16339 when dest and value in the REG_EQUAL are same and dest
16340 is STRICT_LOW_PART.
16342 2015-08-04 Anatoly Sokolov <aesok@post.ru>
16344 * config/moxie/moxie.h (PRINT_OPERAND,
16345 PRINT_OPERAND_ADDRESS): Remove macros.
16346 * config/moxie/moxie-protos.h (moxie_print_operand,
16347 moxie_print_operand_address): Remove declaration.
16348 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
16349 TARGET_PRINT_OPERAND_ADDRESS): Define.
16350 (moxie_print_operand, moxie_print_operand_address): Make static.
16352 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16355 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
16356 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
16358 2015-08-04 Richard Biener <rguenther@suse.de>
16360 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
16362 (dt_operand::gen_gimple_expr): Adjust.
16364 2015-08-04 Richard Biener <rguenther@suse.de>
16366 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
16367 bool compares on RHS.
16368 * match.pd: Add X ==/!= !X is false/true pattern.
16370 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
16372 * config/aarch64/aarch64.c: Change inner loop statement cost
16373 to be consistent with other targets.
16375 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
16377 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
16380 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
16382 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
16383 (machine_function): Remove pseudos field.
16385 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16387 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16388 Exit early and use target_option_current_node if processing current
16391 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16393 * doc/extend.texi (AArch64 Function Attributes): New node.
16394 (AArch64 Pragmas): Likewise.
16396 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16398 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16399 Initialize simd builtins if TARGET_SIMD.
16400 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
16401 Make sure that the builtins are initialized only once no matter how
16402 many times the function is called.
16403 (aarch64_init_builtins): Unconditionally initialize crc builtins.
16404 (aarch64_relayout_simd_param): New function.
16405 (aarch64_simd_expand_args): Use above during argument expansion.
16406 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
16407 simd builtins if TARGET_SIMD.
16408 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
16410 (aarch64_relayout_simd_types): Likewise.
16412 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16414 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
16415 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
16416 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
16417 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16419 (aarch64_reset_previous_fndecl): New function.
16420 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
16422 * config/aarch64/aarch64-c.c: New file.
16423 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
16424 Push and pop options at beginning and end. Remove ifdef
16425 __ARM_FEATURE_CRC32.
16426 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
16427 Add pragma +nothing+simd and +nothing+crypto where appropriate.
16428 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
16429 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
16431 (aarch64_register_pragmas): Likewise.
16432 (aarch64_reset_previous_fndecl): Likewise.
16433 (aarch64_process_target_attr): Likewise.
16434 (aarch64_override_options_internal): Likewise.
16436 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16438 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
16440 (aarch64_can_inline_p): Likewise.
16441 (TARGET_CAN_INLINE_P): Define.
16443 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16445 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
16446 Remove static. Handle OPT_mgeneral_regs_only,
16447 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
16448 OPT_momit_leaf_frame_pointer.
16449 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
16450 (aarch64_attr_opt_type): New enum.
16451 (aarch64_attribute_info): New struct.
16452 (aarch64_handle_attr_arch): New function.
16453 (aarch64_handle_attr_cpu): Likewise.
16454 (aarch64_handle_attr_tune): Likewise.
16455 (aarch64_handle_attr_isa_flags): Likewise.
16456 (aarch64_attributes): New table.
16457 (aarch64_process_one_target_attr): New function.
16458 (num_occurences_in_str): Likewise.
16459 (aarch64_process_target_attr): Likewise.
16460 (aarch64_option_valid_attribute_p): Likewise.
16461 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16462 * config/aarch64/aarch64-protos.h: Include input.h
16463 (aarch64_handle_option): Declare prototype.
16465 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16467 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
16468 * config/aarch64/aarch64.c: Include target-globals.h
16469 (aarch64_previous_fndecl): New variable.
16470 (aarch64_set_current_function): New function.
16471 (TARGET_SET_CURRENT_FUNCTION): Define.
16473 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16475 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
16476 (explicit_arch): Likewise.
16477 (x_aarch64_isa_flags): Likewise.
16478 (mgeneral-regs-only): Mark as Save.
16479 (mfix-cortex-a53-835769): Likewise.
16480 (mcmodel=): Likewise.
16481 (mstrict-align): Likewise.
16482 (momit-leaf-frame-pointer): Likewise.
16483 (mtls-dialect): Likewise.
16484 (master=): Likewise.
16485 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
16486 (aarch64_isa_flags): Remove extern declaration.
16487 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
16488 to indicate success or failure.
16489 (aarch64_validate_march): Likewise.
16490 (aarch64_validate_mtune): Likewise.
16491 (aarch64_isa_flags): Delete.
16492 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
16493 instead of aarch64_isa_flags.
16494 (aarch64_get_tune_cpu): New function.
16495 (aarch64_get_arch): Likewise.
16496 (aarch64_override_options): Use above and set up explicit_tune_core
16498 (aarch64_print_extension): Move earlier in file. Add isa_flags
16499 argument and use that instead of the global aarch64_isa_flags.
16500 (aarch64_option_save): New function.
16501 (aarch64_option_restore): Likewise.
16502 (aarch64_option_print): Likewise.
16503 (aarch64_declare_function_name): Likewise.
16504 (aarch64_start_file): Delete.
16505 (TARGET_ASM_FILE_START): Do not define.
16506 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
16507 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
16510 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16512 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
16513 flag_omit_leaf_frame_pointer to 2.
16515 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16517 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
16519 (TARGET_FIX_ERR_A53_835769): New macro.
16520 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16521 handling of opts->x_aarch64_fix_a53_err835769.
16522 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
16523 than aarch64_fix_a53_err835769.
16524 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
16525 * config/aarch64/aarch64-linux.h: Likewise.
16527 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
16529 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
16530 ix86_expand_int_movcc as boolean.
16532 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16534 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
16535 (aarch64_cpu_string): Likewise.
16536 (aarch64_tune_string): Likewise.
16537 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
16538 (aarch64_parse_extension): Return aarch64_parse_opt_result.
16539 Add extra argument to put result into.
16540 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
16541 (aarch64_parse_cpu): Add arguments to put results into. Return
16542 aarch64_parse_opt_result.
16543 (aarch64_parse_tune): Likewise.
16544 (aarch64_override_options_after_change_1): New function.
16545 (aarch64_override_options_internal): New function.
16546 (aarch64_validate_mcpu): Likewise.
16547 (aarch64_validate_march): Likewise.
16548 (aarch64_validate_mtune): Likewise.
16549 (aarch64_override_options): Update to reflect above changes.
16550 Move some logic into aarch64_override_options_internal.
16551 Initialize target_option_default_node and target_option_current_node.
16552 (aarch64_override_options_after_change): Move logic into
16553 aarch64_override_options_after_change_1 and call it with global_options.
16554 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
16555 flag values from that.
16557 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16559 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16560 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
16561 * config/aarch64/aarch64.c (struct processor): Add arch field.
16562 (all_architectures): Handle above, move above all_cores.
16563 (all_cores): Handle above.
16564 (aarch64_parse_arch): Handle above changes.
16565 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
16566 above. Update comments.
16567 (armv8.1-a): Likewise.
16568 * config/aarch64/aarch64-cores.def: Update according to above.
16569 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
16570 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
16571 aarch64_arch_driver_info.
16573 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16575 * config/aarch64/aarch64.c (struct processor): Add ident field.
16576 Rename core sched_core.
16577 (all_cores): Handle above changes.
16578 (all_architectures): Likewise.
16579 (aarch64_parse_arch): Likewise.
16580 (aarch64_override_options): Likewise.
16582 2015-08-04 Richard Biener <rguenther@suse.de>
16584 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16585 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
16586 comparisons embedded in [VEC_]COND_EXPRs.
16588 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
16590 * tree-if-conv.c: Fix various typos in comments.
16591 * tree-vect-stmts.c: Likewise.
16593 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
16595 PR tree-optimization/67043
16596 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
16597 preheader after hoisting invariant in it.
16598 (find_defs): Force recomputation of all luids.
16600 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
16602 * config/rs6000/htm.md (tabort.): Restrict the source operand to
16603 using a base register.
16605 2015-08-03 David Malcolm <dmalcolm@redhat.com>
16607 * main.c (main): Pass in NULL for toplev's external_timer.
16608 * timevar.c: Include coretypes.h.
16609 (class timer::named_items): New.
16610 (timer::named_items::named_items): New.
16611 (timer::named_items::~named_items): New.
16612 (timer::named_items::push): New.
16613 (timer::named_items::pop): New.
16614 (timer::named_items::print): New.
16615 (timer::timer): Initialize field "m_jit_client_items".
16616 (timer::~timer): New.
16617 (timer::push): Move bulk of implementation to...
16618 (timer::push_internal): ...here. New function.
16619 (timer::pop): Move bulk of implementation to...
16620 (timer::pop_internal): ...here. New function.
16621 (timer::push_client_item): New.
16622 (timer::pop_client_item): New.
16623 (timer::print_row): New function, taken from timer::print.
16624 (timer::print): Print "GCC items" header if we also have client
16625 items. Move row-printing to timer::print_row. Print any client
16627 (timer::get_topmost_item_name): New method.
16628 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
16629 (TV_JIT_CLIENT_CODE): New.
16630 * timevar.h (timer::push_client_item): New declaration.
16631 (timer::pop_client_item): New declaration.
16632 (timer::get_topmost_item_name): New method.
16633 (timer::push_internal): New declaration.
16634 (timer::pop_internal): New declaration.
16635 (timer::print_row): New declaration.
16636 (timer::named_items): New declaration.
16637 (timer::m_jit_client_items): New field.
16638 (timer): Add friend class named_items.
16639 (auto_timevar::auto_timevar): Add timer param.
16640 (auto_timevar::~auto_timevar): Use field "m_timer".
16641 (auto_timevar::m_timer): New field.
16642 * toplev.c (initialize_rtl): Add g_timer as param when
16643 constructing auto_timevar instance.
16644 (toplev::toplev): Add "external_timer" param, and use it to
16645 initialize the "g_timer" global if non-NULL.
16646 (toplev::~toplev): If this created "g_timer", delete it.
16647 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
16648 with "external_timer" timer *.
16650 2015-08-03 Alexander Basov <coohpt@gmail.com>
16652 PR middle-end/64744
16653 PR middle-end/48470
16654 PR middle-end/43404
16655 * cfgexpand.c (expand_one_var): Add check if stack is going to
16656 be used in naked function.
16657 * expr.c (expand_expr_addr_expr_1): Remove excess checking
16658 whether expression should not reside in MEM.
16659 * function.c (use_register_for_decl): Do not use registers for
16660 non-register things (volatile, float, BLKMode) in naked functions.
16662 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
16665 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
16666 Adjust splits to match new pattern.
16668 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16670 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
16673 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
16674 point in VSX registers.
16676 * config/rs6000/constraints.md (wb constraint): Document unused
16678 (we constraint): Likewise.
16679 (wo constraint): Likewise.
16680 (wp constraint): New constraint for IEEE 128-bit floating point in
16682 (wq constraint): Likewise.
16684 * config/rs6000/predicates.md (easy_fp_constant): Add support for
16685 IEEE 128-bit floating point in VSX registers.
16686 (easy_scalar_constant): Likewise.
16688 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
16689 constraints (wp, wq) for IEEE 128-bit floating point in VSX
16691 (rs6000_init_hard_regno_mode_ok): Likewise.
16693 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
16694 floating point in VSX registers.
16697 (VSX_M2): Likewise.
16703 (vsx_le_permute_<mode>): Add support to properly swap bytes for
16704 IEEE 128-bit floating point in VSX registers on little endian.
16705 (vsx_le_undo_permute_<mode>): Likewise.
16706 (vsx_le_perm_load_<mode>): Likewise.
16707 (vsx_le_perm_store_<mode>): Likewise.
16708 (splitters for IEEE 128-bit fp moves): Likewise.
16710 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
16713 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
16714 floating point in VSX registers.
16717 * doc/md.text (Machine Constraints): Document wp and wq
16718 constraints on PowerPC.
16720 2015-08-03 Jeff Law <law@redhat.com>
16722 PR middle-end/66314
16723 PR gcov-profile/66899
16724 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
16725 iterate over the jump threading paths when an element in the
16726 jump threading paths array is eliminated.
16728 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
16730 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
16732 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
16734 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
16735 is_use_properly_guarded the variable def_preds. Free its
16736 contents before returning.
16737 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
16738 (is_use_properly_guarded): Replace local variable def_preds with
16739 a parameter. Adjust accordingly. Only update *def_preds if it's
16742 2015-08-03 Richard Biener <rguenther@suse.de>
16744 * genmatch.c (simplify::for_subst_vec): New member.
16745 (binary_ok): New helper for for lowering.
16746 (lower_for): Delay substituting operators into result expressions
16747 if we can merge the results eventually again.
16748 (capture_info::walk_result): Adjust for user_id appearing as
16749 result expression operator.
16750 (expr::gen_transform): Likewise.
16751 (dt_simplify::gen_1): Likewise.
16752 (dt_simplify::gen): Pass not substituted operators to tail
16753 functions or initialize local variable with it.
16754 (decision_tree::gen): Adjust function signature.
16755 * match.pd: Fix tests against global code and add default
16756 cases to switch stmts.
16758 2015-08-03 Richard Biener <rguenther@suse.de>
16760 * genmatch.c (dt_simplify::gen): Create captures array
16761 with an initializer.
16763 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16765 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
16766 the host compiler is affected by placement new aliasing bug.
16767 * configure: Regenerate.
16768 * Makefile.in (ALIASING_FLAGS): New variable.
16769 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
16771 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16774 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
16775 (negmulsf3_vfp): Likewise.
16776 (muldf3negdf_vfp): Disable for -frounding-math.
16777 (mulsf3negsf_vfp): Likewise.
16778 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
16779 fix MULT cost with -frounding-math.
16781 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16783 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
16784 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
16785 explicit. Prefer to add the flag whenever possible.
16786 (noce_process_if_block): Try noce_try_store_flag_constants before
16789 2015-08-03 Richard Biener <rguenther@suse.de>
16791 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
16792 New hash-map to record equivalent transforms.
16793 (dt_node::analyze): Populate the equivalent transforms hash-map.
16794 (dt_simplify::info): Add reference to hash-map entry.
16795 (dt_simplify::gen): If we have split out a function for the
16796 transform, generate a call to it.
16797 (sinfo_hashmap_traits::hash): New function.
16798 (compare_op): New helper function for ...
16799 (sinfo_hashmap_traits::equal_keys): ... this new function.
16800 (decision_tree::gen): Split out common equivalent transforms
16803 2015-08-03 Richard Biener <rguenther@suse.de>
16805 * gimple-fold.c (fold_gimple_assign): Remove folding of
16806 the comparison in COND_EXPRs.
16808 2015-08-03 Richard Biener <rguenther@suse.de>
16810 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
16811 on the rhs of assignments first simplify the embedded
16814 2015-08-03 Richard Biener <rguenther@suse.de>
16816 PR tree-optimization/66917
16817 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
16819 (DR_VECT_AUX): New macro.
16820 (set_dr_misalignment): Adjust.
16821 (dr_misalignment): Likewise.
16822 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16823 Compute whether the base is at least element aligned.
16824 * tree-vect-stmts.c (ensure_base_align): Adjust.
16825 (vectorizable_store): If the base is not element aligned
16826 preserve alignment of the original access if misalignment is unknown.
16827 (vectorizable_load): Likewise.
16829 2015-08-02 Martin Sebor <msebor@redhat.com>
16831 * c-family/c.opt (-Wframe-address): New warning option.
16832 * doc/invoke.texi (Wframe-address): Document it.
16833 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
16834 Clarify possible effects of calling the functions with non-zero
16835 arguments and mention -Wframe-address.
16836 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
16838 2015-08-01 Michael Collison <michael.collison@linaro.org
16839 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16841 * config/arm/arm.md (*arm_smin_cmp): New pattern.
16842 (*arm_umin_cmp): Likewise.
16844 2015-08-01 Caroline Tice <cmtice@google.com>
16847 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
16849 (vtbl_find_mangled_name): New function.
16850 (vtbl_register_mangled_name): New function.
16851 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
16852 mangled name in mangled name vectors.
16853 (find_or_create_vtbl_map_node): Ditto.
16854 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
16855 update recursion_depth on function entry; pass it to every recursive
16856 call; automatically exit if depth > 25 (give up looking at that point).
16857 (verify_bb_vtables): Initialize recursion_depth and pass it to
16858 var_is_used_for_virtual_call_p.
16859 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
16860 global variable decls.
16861 (vtbl_register_mangled_name): New extern function decl.
16863 2015-08-01 Tom de Vries <tom@codesourcery.com>
16865 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
16867 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
16869 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
16870 operation_no_trapping_overflow. Allow non-overflow operations.
16871 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
16874 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
16877 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
16879 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16881 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
16882 Enable for TARGET_32BIT.
16883 (*if_move_neg): Likewise.
16885 2015-07-31 Nick Clifton <nickc@redhat.com>
16887 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
16888 Returns true for __model__.
16889 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
16891 2015-07-31 Alan Modra <amodra@gmail.com>
16894 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
16895 (rs6000_emit_prologue): Set it.
16896 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
16898 2015-07-31 Richard Biener <rguenther@suse.de>
16900 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
16901 -> X == (C1 ^ C2) which is already implemented in match.pd.
16902 Remove redundant dispatching to fold_relational_const.
16903 Move unordered self and NaN compares ...
16904 * match.pd: ... as patterns here. Remove some stray captures
16907 2015-07-31 Petr Murzin <petr.murzin@intel.com>
16909 * config/i386/i386.c
16910 (bdesc_special_args): Convert mask type from signed to unsigned for
16912 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
16913 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
16914 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
16915 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
16916 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
16917 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
16918 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
16919 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
16920 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
16921 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
16922 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
16923 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
16924 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
16925 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
16926 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
16927 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
16928 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
16929 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
16930 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
16931 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
16932 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
16933 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
16934 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
16935 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
16936 * config/i386/i386-builtin-types.def
16937 (V16QI_FTYPE_V16SI): Remove.
16938 (V8DF_FTYPE_V8SI): Ditto.
16939 (V8HI_FTYPE_V8DI): Ditto.
16940 (V8SI_FTYPE_V8DI): Ditto.
16941 (V8SF_FTYPE_V8DF): Ditto.
16942 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
16943 (V16HI_FTYPE_V16SI): Ditto.
16944 (V16SF_FTYPE_V16HI): Ditto.
16945 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
16946 (V16SF_FTYPE_V16SI): Ditto.
16947 (V4DI_FTYPE_V4DI): Ditto.
16948 (V16SI_FTYPE_V16SF): Ditto.
16949 (V16SF_FTYPE_FLOAT): Ditto.
16950 (V8DF_FTYPE_DOUBLE): Ditto.
16951 (V8DI_FTYPE_INT64): Ditto.
16952 (V8DI_FTYPE_V4DI): Ditto.
16953 (V16QI_FTYPE_V8DI): Ditto.
16954 (UINT_FTYPE_V4SF): Ditto.
16955 (UINT64_FTYPE_V4SF): Ditto.
16956 (UINT_FTYPE_V2DF): Ditto.
16957 (UINT64_FTYPE_V2DF): Ditto.
16958 (V16SI_FTYPE_V16SI): Ditto.
16959 (V8DI_FTYPE_V8DI): Ditto.
16960 (V16SI_FTYPE_PV4SI): Ditto.
16961 (V16SF_FTYPE_PV4SF): Ditto.
16962 (V8DI_FTYPE_PV2DI): Ditto.
16963 (V8DF_FTYPE_PV2DF): Ditto.
16964 (V4DI_FTYPE_PV2DI): Ditto.
16965 (V4DF_FTYPE_PV2DF): Ditto.
16966 (V16SI_FTYPE_PV2SI): Ditto.
16967 (V16SF_FTYPE_PV2SF): Ditto.
16968 (V8DI_FTYPE_PV4DI): Ditto.
16969 (V8DF_FTYPE_PV4DF): Ditto.
16970 (V8SF_FTYPE_FLOAT): Ditto.
16971 (V4SF_FTYPE_FLOAT): Ditto.
16972 (V4DF_FTYPE_DOUBLE): Ditto.
16973 (V8SF_FTYPE_PV4SF): Ditto.
16974 (V8SI_FTYPE_PV4SI): Ditto.
16975 (V4SI_FTYPE_PV2SI): Ditto.
16976 (V8SF_FTYPE_PV2SF): Ditto.
16977 (V8SI_FTYPE_PV2SI): Ditto.
16978 (V16SF_FTYPE_PV8SF): Ditto.
16979 (V16SI_FTYPE_PV8SI): Ditto.
16980 (V8DI_FTYPE_V8SF): Ditto.
16981 (V4DI_FTYPE_V4SF): Ditto.
16982 (V2DI_FTYPE_V4SF): Ditto.
16983 (V64QI_FTYPE_QI): Ditto.
16984 (V32HI_FTYPE_HI): Ditto.
16985 (V8UHI_FTYPE_V8UHI): Ditto.
16986 (V16UHI_FTYPE_V16UHI): Ditto.
16987 (V32UHI_FTYPE_V32UHI): Ditto.
16988 (V2UDI_FTYPE_V2UDI): Ditto.
16989 (V4UDI_FTYPE_V4UDI): Ditto.
16990 (V8UDI_FTYPE_V8UDI): Ditto.
16991 (V4USI_FTYPE_V4USI): Ditto.
16992 (V8USI_FTYPE_V8USI): Ditto.
16993 (V16USI_FTYPE_V16USI): Ditto.
16994 (V2DF_FTYPE_V2DF_UINT64): Ditto.
16995 (V2DI_FTYPE_V2DF_V2DF): Ditto.
16996 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
16997 (V8DF_FTYPE_V8DF_V8DI): Ditto.
16998 (V4SF_FTYPE_V4SF_UINT64): Ditto.
16999 (V4SI_FTYPE_V4SF_V4SF): Ditto.
17000 (V16SF_FTYPE_V16SF_V16SI): Ditto.
17001 (V64QI_FTYPE_V32HI_V32HI): Ditto.
17002 (V32HI_FTYPE_V16SI_V16SI): Ditto.
17003 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
17004 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
17005 (V32HI_FTYPE_V64QI_V64QI): Ditto.
17006 (V32HI_FTYPE_V32HI_V32HI): Ditto.
17007 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
17008 (V16SI_FTYPE_V16SI_V4SI): Ditto.
17009 (V16SI_FTYPE_V16SI_V16SI): Ditto.
17010 (V16SI_FTYPE_V32HI_V32HI): Ditto.
17011 (V16SI_FTYPE_V16SI_SI): Ditto.
17012 (V8DI_FTYPE_V8DI_V8DI): Ditto.
17013 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
17014 (V8DI_FTYPE_V16SI_V16SI): Ditto.
17015 (V8DI_FTYPE_V8DI_V2DI): Ditto.
17016 (QI_FTYPE_QI): Ditto.
17017 (SI_FTYPE_SI): Ditto.
17018 (DI_FTYPE_DI): Ditto.
17019 (QI_FTYPE_QI_QI): Ditto.
17020 (QI_FTYPE_QI_INT): Ditto.
17021 (HI_FTYPE_HI_INT): Ditto.
17022 (SI_FTYPE_SI_INT): Ditto.
17023 (DI_FTYPE_DI_INT): Ditto.
17024 (HI_FTYPE_V16QI_V16QI): Ditto.
17025 (SI_FTYPE_V32QI_V32QI): Ditto.
17026 (DI_FTYPE_V64QI_V64QI): Ditto.
17027 (QI_FTYPE_V8HI_V8HI): Ditto.
17028 (HI_FTYPE_V16HI_V16HI): Ditto.
17029 (SI_FTYPE_V32HI_V32HI): Ditto.
17030 (QI_FTYPE_V4SI_V4SI): Ditto.
17031 (QI_FTYPE_V8SI_V8SI): Ditto.
17032 (QI_FTYPE_V2DI_V2DI): Ditto.
17033 (QI_FTYPE_V4DI_V4DI): Ditto.
17034 (QI_FTYPE_V8DI_V8DI): Ditto.
17035 (HI_FTYPE_V16SI_V16SI): Ditto.
17036 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
17037 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
17038 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
17039 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
17040 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
17041 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
17042 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
17043 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
17044 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
17045 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
17046 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
17047 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
17048 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
17049 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
17050 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
17051 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
17052 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
17053 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
17054 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
17055 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
17056 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
17057 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
17058 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
17059 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
17060 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
17061 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
17062 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
17063 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
17064 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
17065 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
17066 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
17067 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
17068 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
17069 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
17070 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
17071 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
17072 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
17073 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
17074 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
17075 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
17076 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
17077 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
17078 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
17079 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
17080 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
17081 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
17082 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
17083 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
17084 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
17085 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
17086 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
17087 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
17088 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
17089 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
17090 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
17091 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
17092 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
17093 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
17094 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
17095 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
17096 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
17097 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
17098 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
17099 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
17100 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
17101 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
17102 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
17103 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
17104 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
17105 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
17106 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
17107 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
17108 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
17109 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
17110 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
17111 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
17112 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
17113 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
17114 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
17115 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
17116 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
17117 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
17118 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
17119 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
17120 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
17121 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
17122 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
17123 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
17124 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
17125 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
17126 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
17127 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
17128 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
17129 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
17130 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
17131 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
17132 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
17133 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
17134 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
17135 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
17136 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
17137 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
17138 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
17139 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
17140 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
17141 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
17142 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
17143 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
17144 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
17145 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
17146 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
17147 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
17148 (HI_FTYPE_HI): Ditto.
17149 (HI_FTYPE_V16QI): Ditto.
17150 (SI_FTYPE_V32QI): Ditto.
17151 (DI_FTYPE_V64QI): Ditto.
17152 (QI_FTYPE_V8HI): Ditto.
17153 (HI_FTYPE_V16HI): Ditto.
17154 (SI_FTYPE_V32HI): Ditto.
17155 (QI_FTYPE_V4SI): Ditto.
17156 (QI_FTYPE_V8SI): Ditto.
17157 (HI_FTYPE_V16SI): Ditto.
17158 (QI_FTYPE_V2DI): Ditto.
17159 (QI_FTYPE_V4DI): Ditto.
17160 (QI_FTYPE_V8DI): Ditto.
17161 (V16QI_FTYPE_HI): Ditto.
17162 (V32QI_FTYPE_SI): Ditto.
17163 (V64QI_FTYPE_DI): Ditto.
17164 (V8HI_FTYPE_QI): Ditto.
17165 (V16HI_FTYPE_HI): Ditto.
17166 (V32HI_FTYPE_SI): Ditto.
17167 (V4SI_FTYPE_QI): Ditto.
17168 (V4SI_FTYPE_HI): Ditto.
17169 (V8SI_FTYPE_QI): Ditto.
17170 (V8SI_FTYPE_HI): Ditto.
17171 (V2DI_FTYPE_QI): Ditto.
17172 (V4DI_FTYPE_QI): Ditto.
17173 (HI_FTYPE_HI_HI): Ditto.
17174 (SI_FTYPE_SI_SI): Ditto.
17175 (DI_FTYPE_DI_DI): Ditto.
17176 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
17177 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
17178 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
17179 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
17180 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
17181 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
17182 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
17183 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
17184 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
17185 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
17186 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
17187 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
17188 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
17189 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
17190 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
17191 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
17192 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
17193 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
17194 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
17195 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
17196 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
17197 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
17198 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
17199 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
17200 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
17201 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
17202 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
17203 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
17204 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
17205 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
17206 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
17207 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
17208 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
17209 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
17210 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
17211 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
17212 (V16SI_FTYPE_HI): Ditto.
17213 (V8DI_FTYPE_QI): Ditto.
17214 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
17215 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
17216 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
17217 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
17218 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
17219 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
17220 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
17221 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
17222 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
17223 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
17224 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
17225 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
17226 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
17227 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
17228 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
17229 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
17230 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
17231 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
17232 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
17233 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
17234 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
17235 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
17236 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
17237 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
17238 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
17239 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
17240 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
17241 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
17242 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
17243 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
17244 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
17245 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
17246 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
17247 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
17248 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
17249 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
17250 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
17251 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
17252 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
17253 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
17254 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
17255 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
17256 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
17257 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
17258 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
17259 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
17260 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
17261 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
17262 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
17263 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
17264 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
17265 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
17266 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
17267 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
17268 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
17269 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
17270 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
17271 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
17272 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
17273 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
17274 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
17275 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
17276 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
17277 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
17278 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
17279 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
17280 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
17281 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
17282 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
17283 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
17284 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
17285 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
17286 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
17287 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
17288 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
17289 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
17290 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
17291 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
17292 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
17293 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
17294 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
17295 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
17296 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
17297 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
17298 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
17299 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
17300 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
17301 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
17302 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
17303 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
17304 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
17305 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
17306 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
17307 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
17308 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
17309 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
17310 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
17311 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
17312 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
17313 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
17314 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
17315 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
17316 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
17317 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
17318 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
17319 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
17320 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
17321 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
17322 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
17323 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
17324 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
17325 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
17326 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
17327 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
17328 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
17329 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
17330 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
17331 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
17332 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
17333 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
17334 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
17335 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
17336 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
17337 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
17338 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
17339 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
17340 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
17341 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
17342 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
17343 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
17344 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
17345 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
17346 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
17347 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
17348 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
17349 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
17350 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
17351 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
17352 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
17353 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
17354 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
17355 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
17356 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
17357 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
17358 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
17359 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
17360 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
17361 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
17362 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
17363 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
17364 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
17365 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
17366 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
17367 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
17368 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
17369 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
17370 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
17371 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
17372 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
17373 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
17374 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
17375 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
17376 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
17377 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
17378 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
17379 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
17380 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
17381 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
17382 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
17383 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
17384 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
17385 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
17386 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
17387 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
17388 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
17389 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
17390 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
17391 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
17392 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
17393 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
17394 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
17395 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
17396 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
17397 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
17398 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
17399 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
17400 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
17401 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
17402 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
17403 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
17404 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
17405 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
17406 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
17407 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
17408 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
17409 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
17410 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
17411 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
17412 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
17413 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
17414 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
17415 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
17416 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
17417 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
17418 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
17419 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
17420 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
17421 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
17422 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
17423 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
17424 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
17425 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
17426 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
17427 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
17428 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
17429 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
17430 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
17431 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
17432 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
17433 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
17434 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
17435 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
17436 (QI_FTYPE_V8DF_INT_QI): Ditto.
17437 (QI_FTYPE_V4DF_INT_QI): Ditto.
17438 (QI_FTYPE_V2DF_INT_QI): Ditto.
17439 (HI_FTYPE_V16SF_INT_HI): Ditto.
17440 (QI_FTYPE_V8SF_INT_QI): Ditto.
17441 (QI_FTYPE_V4SF_INT_QI): Ditto.
17442 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
17444 2015-07-31 Richard Biener <rguenther@suse.de>
17446 * gimple-fold.c (fold_gimple_assign): Remove folding of
17449 2015-07-31 Tom de Vries <tom@codesourcery.com>
17451 PR tree-optimization/66846
17452 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
17453 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
17454 (expand_omp_target) [ENABLE_CHECKING]: Same.
17455 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
17456 cfun if !LOOPS_NEED_FIXUP.
17457 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
17458 that omp_for already has its own loop struct.
17459 * tree-parloops.c (create_phi_for_local_result)
17460 (create_call_for_reduction): Handle simple latch bb.
17461 (create_parallel_loop): Add simple latch bb to preserve
17462 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
17463 (gen_parallel_loop): Remove call to cancel_loop_tree.
17464 (parallelize_loops): Skip loops that are inner loops of parallelized
17466 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
17467 verify_loop_structure.
17469 2015-07-30 Anatoly Sokolov <aesok@post.ru>
17471 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
17472 * config/v850/v850.md (RV_REGNUM): New constants.
17473 * config/v850/v850.c (v850_libcall_value): New functions.
17474 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
17475 (TARGET_LIBCALL_VALUE): Define.
17477 2015-07-30 Anatoly Sokolov <aesok@post.ru>
17479 * rtl.h (lowpart_subreg): Move in file.
17480 * loop-iv.c (lowpart_subreg): Move to...
17481 * simplify-rtx.c (lowpart_subreg): ...here.
17482 (simplify_binary_operation_1): Use lowpart_subreg instead of
17483 simplify_gen_subreg.
17484 * expr.c (expand_expr_real_2): Ditto.
17485 * emit-rtl.c (gen_lowpart_common): Ditto.
17486 * combine.c (gen_lowpart_for_combine): Ditto.
17487 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
17488 expand_debug_source_expr): Ditto.
17490 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
17492 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
17493 (expand_builtin_atomic_clear): Remove support for atomic_clear
17496 2015-07-30 Richard Biener <rguenther@suse.de>
17498 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
17499 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
17500 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
17501 redundant operand canonicalization.
17503 2015-07-30 David Sherwood <david.sherwood@arm.com>
17505 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
17506 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
17507 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
17508 * config/arm/arm.c (neon_valid_immediate): Likewise.
17509 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
17510 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
17511 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
17512 (expand_vec_perm_vpshufb2_vpermq): Likewise.
17513 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
17514 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
17515 * config/i386/sse.md
17516 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
17517 (*ssse3_palignr<mode>_perm): Likewise.
17518 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
17519 * config/spu/spu.c (arith_immediate_p): Likewise.
17520 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17521 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
17523 2015-07-30 Richard Biener <rguenther@suse.de>
17525 * genmatch.c (decision_tree::gen_gimple): Merge with ...
17526 (decision_tree::gen_generic): ... this into ...
17527 (decision_tree::gen): ... this.
17528 (main): Adjust callers.
17530 2015-07-30 Richard Biener <rguenther@suse.de>
17532 * genmatch.c (verbose): New global.
17533 (warning_at): Add overload with source_location.
17534 (capture_info::capture_info): Add bool whether generating gimple
17535 or generic. Add gimple member.
17536 (capture_info::cinfo): Add capture member.
17537 (capture_info::walk_match): Record capture. Warn on
17538 non-captured leafs.
17539 (capture_info::walk_c_expr): Add more fragments captures cannot
17540 escape through. Warn on escaped captures.
17541 (dt_simplify::gen_1): Warn on operands we force to have no
17543 (main): Initialize verbose.
17544 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
17546 2015-07-30 Richard Biener <rguenther@suse.de>
17548 PR middle-end/67053
17549 * match.pd: Allow both operands to independently have conversion
17550 when simplifying compares of addresses.
17552 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
17556 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
17557 around those cases that need one.
17559 2015-07-29 Aditya Kumar <hiraditya@msn.com>
17561 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
17563 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
17565 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
17566 New. Copied from config/i386/gnu-user.h.
17567 (ASM_COMMENT_START): Likewise.
17568 (DBX_REGISTER_NUMBER): Likewise.
17570 2015-07-29 Richard Biener <rguenther@suse.de>
17572 * gimple-fold.c (fold_gimple_cond): Remove.
17573 (fold_stmt_1): Do not call it.
17575 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
17577 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
17578 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
17580 * config/aarch64/aarch64-modes.def: Add HFmode.
17582 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17583 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
17585 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
17586 aarch64_promoted_type): New.
17588 (aarch64_float_const_representable_p): Disable HFmode.
17589 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
17590 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
17591 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
17593 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
17594 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
17596 * config/aarch64/iterators.md (GPF_F16): New.
17598 2015-07-29 Richard Biener <rguenther@suse.de>
17600 * match.pd: Merge address comparison patterns and make them
17601 handle some more cases.
17603 2015-07-29 Richard Biener <rguenther@suse.de>
17605 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
17606 (parser::parse_capture): Add bool argument on whether to reject
17608 (parser::parse_expr): Adjust.
17609 (parser::parse_op): Likewise.
17610 (parser::parse_pattern): Likewise.
17612 2015-07-29 Richard Biener <rguenther@suse.de>
17614 * gimple-fold.c (has_use_on_stmt): New function.
17615 (replace_stmt_with_simplification): Use it to allow
17616 abnormals originally referenced in the stmt.
17617 (fold_stmt_1): Canonicalize operand order.
17619 2015-07-28 David Sherwood <david.sherwood@arm.com>
17621 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
17622 GET_MODE_INNER unconditionally.
17623 * config/spu/spu.c (arith_immediate_p): Likewise.
17624 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
17625 * expmed.c (synth_mult): Remove check for VOIDmode result from
17627 (expand_mult_const): Likewise.
17628 * fold-const.c (fold_binary_loc): Replace call to element_precision
17629 with call to GET_MODE_PRECISION.
17630 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
17632 (emit_mode_inner): Likewise.
17633 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
17635 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
17636 (GET_MODE_UNIT_PRECISION): Likewise.
17637 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
17638 * simplify-rtx.c (simplify_immed_subreg): Likewise.
17639 * stor-layout.c (bitwise_type_for_mode): Update assert.
17640 (element_precision): Remove.
17642 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17644 * target-insns.def (reload_load_address): New targetm instruction
17646 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
17648 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17650 * target-insns.def (atomic_test_and_set): New targetm instruction
17652 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
17653 HAVE_*/gen_* interface.
17655 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17657 * target-insns.def (can_extend, ptr_extend): New targetm instruction
17659 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
17660 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
17661 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
17662 * rtlanal.c (nonzero_bits1): Likewise.
17663 (num_sign_bit_copies1): Likewise.
17665 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17667 * target-insns.def (eh_return): New targetm instruction pattern.
17668 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
17670 * function.c (thread_prologue_and_epilogue_insns): Remove
17671 preprocessor condition.
17673 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17675 * target-insns.def (indirect_jump): New targetm instruction pattern.
17676 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
17679 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17681 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
17682 instead of nonimmediate_operand. Remove C condiition.
17684 2015-07-28 Richard Biener <rguenther@suse.de>
17686 * match.pd: Add more simplification of address comparisons.
17688 2015-07-28 Richard Biener <rguenther@suse.de>
17690 * match.pd: Re-order two cases in comparison with max/min
17691 value simplification to make it apply for bools.
17693 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17695 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
17696 Handle simple SIGN_EXTEND or ZERO_EXTEND.
17697 (aarch64_rtx_costs): Properly strip extend or extract before
17698 passing down to rtx costs again.
17700 2015-07-28 Nick Clifton <nickc@redhat.com>
17702 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
17703 Optimizes the case where -mes0 is active and a constant symbolic
17705 * config/rl78/rl78-protos.h: Prototype the new function.
17706 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
17708 2015-07-28 Tom de Vries <tom@codesourcery.com>
17710 * tree-parloops.c (reduc_stmt_res): New function.
17711 (initialize_reductions, add_field_for_reduction)
17712 (create_phi_for_local_result, create_loads_for_reductions)
17713 (create_stores_for_reduction, build_new_reduction): Handle case that
17714 reduc_stmt is a phi.
17715 (gather_scalar_reductions): Allow double_reduc reductions.
17717 2015-07-28 Richard Biener <rguenther@suse.de>
17719 * fold-const.c (fold_comparison): Remove equality folding
17720 of decl addresses ...
17721 * match.pd: ... here and merge with existing pattern.
17723 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
17725 PR tree-optimization/66828
17726 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
17727 from int64_t to uint64_t.
17729 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
17731 * opts-common.c (read_cmdline_option): List DriverOnly enum values
17732 as valid only in the error message of the driver, not in the
17733 messages of the language compilers.
17735 2015-07-27 Tom de Vries <tom@codesourcery.com>
17737 * tree-parloops.c (gather_scalar_reductions): Simplify function
17740 2015-07-27 Marek Polacek <polacek@redhat.com>
17742 * ipa-devirt.c (types_same_for_odr): Fix typo.
17744 2015-07-27 Jason Merrill <jason@redhat.com>
17747 * dwarf2out.c (gen_inlined_subroutine_die): Check
17748 cgraph_function_possibly_inlined_p.
17750 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
17752 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
17753 Place integer variant first.
17754 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17756 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
17759 * config/arm/arm-builtins.c (enum arm_builtins):
17760 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
17761 (ARM_BUILTIN_NEON_BASE): Rename macro to....
17762 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
17763 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
17764 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
17766 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
17769 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
17770 Add qualifier_lane_index.
17771 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
17772 (arm_getlane_qualifiers): Use qualifier_lane_index.
17773 (arm_lanemac_qualifiers): Rename to...
17774 (arm_mac_n_qualifiers): ...this.
17775 (LANEMAC_QUALIFIERS): Rename to...
17776 (MAC_N_QUALIFIERS): ...this.
17777 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
17778 (arm_setlane_qualifiers): Use qualifier_lane_index.
17779 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
17780 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
17781 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
17782 (arm_expand_neon_builtin): Handle qualifier_lane_index.
17784 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
17785 * config/arm/arm.c (bounds_check): Likewise, improve error message.
17786 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
17787 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
17788 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
17789 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
17790 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
17791 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
17792 qualifiers to TERNOP_IMM.
17793 (vdup_lane): Change qualifiers to GETLANE.
17794 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
17795 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
17796 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
17797 vqdmlsl_n): Change qualifiers to MAC_N.
17799 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
17800 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
17801 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
17802 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
17803 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
17804 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
17805 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
17806 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
17807 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
17808 Remove call to neon_lane_bounds.
17810 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
17812 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
17813 Place integer variant first.
17815 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
17817 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
17818 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
17819 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
17820 for armv6kz targets.
17821 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
17822 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
17823 (FL_FOR_ARCH6ZK): Remove.
17824 (FL_FOR_ARCH6KZ): New.
17825 (arm_arch6zk): New declaration.
17826 * config/arm/arm-tables.opt: Regenerate.
17827 * config/arm/arm.c (arm_arch6kz): New.
17828 (arm_option_override): Set arm_arch6kz.
17829 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
17830 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
17831 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
17833 2015-07-27 Marek Polacek <polacek@redhat.com>
17837 * doc/invoke.texi: Document -Wtautological-compare.
17839 2015-07-27 Richard Biener <rguenther@suse.de>
17841 * genmatch.c (decision_tree::gen_gimple): Split out large
17842 subtrees into separate functions.
17843 (decision_tree::gen_generic): Likewise.
17845 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
17847 * config/alpha/alpha.c: Use SUBREG_P predicate.
17848 * config/alpha/predicates.md: Ditto.
17850 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
17852 * config.host (s390*-*-*): Include driver-native.c only when
17853 building with s390* as host *and* target.
17855 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
17858 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
17859 T bit register modified_between_p check.
17861 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17863 * config/i386/i386.c: Use SUBREG_P predicate.
17864 * config/i386/i386.md: Ditto.
17865 * config/i386/sse.md: Ditto.
17866 * config/i386/predicates.md: Ditto.
17868 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17871 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
17872 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
17874 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17876 * Makefile.in: Remove use of TREEBROWSER.
17877 * config.in: Regenerated.
17878 * configure: Regenerated.
17879 * configure.ac: Remove definition of TREEBROWSER.
17880 * tree-browser.c: Removed.
17881 * tree-browser.def: Removed.
17883 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17885 * graphite-scop-detection.c: Include gimple-pretty-print.h.
17886 (stmt_simple_for_scop_p): Print when a stmt is not handled in
17888 (scopdet_basic_block_info): Print when a loop or bb cannot be
17889 represented in Graphite.
17891 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17894 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
17895 execution guard when min_size is less than size_needed.
17897 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17899 * doc/install.texi: Document supported versions of ISL.
17901 2015-07-25 Jeff Law <law@redhat.com>
17905 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17906 unable to find X NE 0 in the tables, return X as the simplified
17908 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17909 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17910 to VISISTED_BBS. */
17911 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17912 after removing the control flow statement and unnecessary edges.
17914 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
17917 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
17919 PR rtl-optimization/64164
17920 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17921 * tree-ssa-copyrename.c: Removed.
17922 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17923 -ftree-coalesce-vars.
17924 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17925 * common.opt (ftree-copyrename): Ignore.
17926 (ftree-coalesce-inlined-vars): Likewise.
17927 * doc/invoke.texi: Remove the ignored options above.
17928 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17929 * tree-ssa-coalesce.h: ... here.
17930 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17931 headers required by it.
17932 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17933 across variables when flag_tree_coalesce_vars. Check register
17934 use and promoted modes to allow coalescing. Moved to
17935 tree-ssa-coalesce.c.
17936 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17937 with its member functions to tree-ssa-coalesce.c.
17938 (var_map_base_init): Likewise. Renamed to
17939 compute_samebase_partition_bases.
17940 (partition_view_normal): Drop want_bases parameter.
17941 (partition_view_bitmap): Likewise.
17942 * tree-ssa-live.h: Adjust declarations.
17943 * tree-ssa-coalesce.c: Include explow.h.
17944 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17945 default defs at the entry point.
17946 (dump_part_var_map): New.
17947 (compute_optimized_partition_bases): New, called by...
17948 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17949 of compute_samebase_partition_bases. Adjust.
17950 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17951 * cfgexpand.c (leader_merge): New.
17952 (get_rtl_for_parm_ssa_default_def): New.
17953 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17954 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17955 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17956 redundant MEM attr setting.
17957 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17959 (expand_one_stack_var): ... this. New wrapper to check and
17960 skip already expanded SSA partitions.
17961 (record_alignment_for_reg_var): New, factored out of...
17962 (expand_one_var): ... this.
17963 (expand_one_ssa_partition): New.
17964 (adjust_one_expanded_partition_var): New.
17965 (expand_one_register_var): Check and skip already expanded SSA
17967 (expand_used_vars): Don't create DECLs for anonymous SSA
17968 names. Expand all SSA partitions, then adjust all SSA names.
17969 (pass::execute): Replace the loops that set
17970 SA.partition_to_pseudo from partition leaders and cleared
17971 DECL_RTL for multi-location variables, and that which used to
17972 rename vars and set attrs, with one that clears DECL_RTL and
17973 checks that PARMs and RESULTs default_defs match DECL_RTL.
17974 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17975 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17976 * explow.c (promote_ssa_mode): New.
17977 * explow.h (promote_ssa_mode): Declare.
17978 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17979 * function.c: Include cfgexpand.h.
17980 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17981 (use_register_for_parm_decl): Wrapper for the above to
17982 special-case the result_ptr.
17983 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17984 (split_complex_args): Take assign_parm_data_all argument.
17985 Pass it to rtl_for_parm. Set up rtl and context for split
17987 (assign_parms_augmented_arg_list): Adjust.
17988 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17989 multiple locations. Recognize split complex args.
17990 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17991 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17992 (assign_parm_setup_block): Prefer SSA-assigned location.
17993 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17994 if stack_parm is NULL.
17995 (assign_parm_setup_stack): Prefer SSA-assigned location.
17996 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17997 rtl before testing for pointer bounds. Special-case result_ptr.
17998 (expand_function_start): Maybe reset DECL_RTL of result.
17999 Prefer SSA-assigned location for result and static chain.
18000 Factor out DECL_RESULT and SET_DECL_RTL.
18001 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18002 anonymous SSA names. Use promote_ssa_mode.
18003 (get_temp_reg): Likewise.
18004 (remove_ssa_form): Adjust.
18005 * stor-layout.c (layout_decl): Don't set mem attributes of
18007 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18008 and get its reg_usage for reg invalidation.
18009 (compute_bb_dataflow): Pass it insn.
18010 (emit_notes_in_bb): Likewise.
18012 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18014 * config/i386/i386.c (ix86_va_start): Remove
18015 unneeded !TARGET_64BIT check.
18016 (ix86_gimplify_va_arg): Ditto.
18018 2015-07-24 Tom de Vries <tom@codesourcery.com>
18020 * graphite-sese-to-poly.c (build_poly_scop): Always call
18021 rewrite_commutative_reductions_out_of_ssa.
18023 2015-07-24 Tom de Vries <tom@codesourcery.com>
18025 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
18026 flag_associative_math to FLOAT_TYPE_P. Honour
18027 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
18029 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
18032 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
18033 and "%qD" in warning_at instead of "%q+D" in warning.
18035 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
18037 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
18038 (ix86_function_abi): Cleanup.
18040 2015-07-24 Michael Darling <darlingm@gmail.com>
18043 * acinclude.m4: Reflects renaming of configure.in to configure.ac
18044 * configure: Likewise
18045 * configure.ac: Likewise
18046 * doc/install.texi: Likewise
18047 * doc/tm.texi: Likewise
18048 * doc/tm.texi.in: Likewise
18050 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18052 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
18053 manually swapping values.
18054 * cse.c (fold_rtx): Likewise.
18055 * lra-eliminations.c (form_sum): Likewise.
18057 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
18060 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
18061 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
18062 (*jcc_1, *jcc_2, jump, simple_return_internal)
18063 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
18064 Set length_nobnd attribute instead of length attribute.
18065 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
18066 (length_nobnd): Remove attribute.
18067 (length): Remove length_nobnd processing.
18069 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
18071 * gimplify.c (omp_default_clause): New function. Reorganize flow
18072 for clarity. Broken out of ...
18073 (omp_notice_variable): ... here.
18075 2015-07-24 Gary Funck <gary@intrepid.com>
18077 PR middle-end/66984
18078 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
18079 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
18081 2015-07-24 Tom de Vries <tom@codesourcery.com>
18083 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
18084 exit-first loop transform.
18086 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
18089 * tree-cfg.c (struct replace_decls_d): New struct.
18090 (replace_block_vars_by_duplicates_1): New function.
18091 (replace_block_vars_by_duplicates): Use it to replace the decls
18092 in the value exprs by duplicates.
18094 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18096 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
18097 -shared, -symbolic, -rdynamic.
18099 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18102 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
18103 -dynamic-linker within %{!static %{!shared, and -rdynamic within
18106 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
18109 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
18110 edge summary is available.
18112 2015-07-24 Richard Biener <rguenther@suse.de>
18114 * genmatch.c (struct dt_node): Add statistic fields.
18115 (dt_node::analyze): New method.
18116 (decision_tree::gen_gimple): Call analyze on the root node
18117 and print statistics to stderr.
18118 (decision_tree::gen_generic): Likewise.
18120 2015-07-24 Richard Biener <rguenther@suse.de>
18122 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
18123 against the highest or lowest possible integer ...
18124 * match.pd: ... as patterns here.
18126 2015-07-24 Richard Biener <rguenther@suse.de>
18128 * genmatch.c (struct capture_info): Add same_as field.
18129 (capture_info::capture_info): Initialize same_as.
18130 (capture_info::walk_match): Compute same_as.
18131 (capture_info::walk_result): Compute stuff for the leader.
18132 (capture_info::walk_c_expr): Likewise.
18133 (dt_simplify::gen_1): Only look at leaders when deciding
18134 to force no side-effects or emit side-effects of omitted operands.
18136 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18138 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
18139 reg note to the GPR -> FPR save instructions.
18141 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18143 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
18145 (s390_expand_insv): Don't generate risbg pattern for constant zero
18147 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
18148 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
18151 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18153 * config/s390/s390.c (s390_reorg): Clean up handling of processors
18156 (s390_issue_rate): Likewise.
18157 (s390_sched_reorder): Likewise.
18158 (s390_sched_variable_issue): Likewise.
18159 (s390_loop_unroll_adjust): Likewise.
18160 (s390_option_override): Likewise.
18162 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18164 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
18165 processor capabilities with -march=native.
18166 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
18167 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
18168 (S390_TARGET_BITS_STRING): Macro to simplify specs.
18170 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18172 * config/s390/s390.c (s390_issue_rate): Handle
18173 PROCESSOR_2094_Z9_EC.
18174 (s390_option_override): Likewise.
18175 (s390_adjust_priority): Likewise.
18177 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18179 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
18180 when cross compiling.
18182 2015-07-24 Richard Biener <rguenther@suse.de>
18184 * fold-const.c (maybe_canonicalize_comparison_1): Move
18185 A code CST canonicalization ...
18186 * match.pd: ... to a pattern here.
18188 2015-07-24 Jiong Wang <jiong.wang@arm.com>
18191 2015-07-22 Jiong Wang <jiong.wang@arm.com>
18193 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18194 (HONOR_REG_ALLOC_ORDER): Define.
18196 2015-07-24 Richard Biener <rguenther@suse.de>
18198 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
18199 * fold-const.c (fold_comparison): Move parameter does not
18200 alias &local simplification ...
18201 * match.pd: ... as a pattern here.
18203 2015-07-24 Richard Biener <rguenther@suse.de>
18205 * gimple-fold.c (replace_stmt_with_simplification): Special-case
18206 valueizing call operands.
18207 * gimple-match-head.c (maybe_push_res_to_seq): Take
18208 number of call arguments from ops array.
18209 (do_valueize): New function.
18210 (gimple_simplify): Return true if valueization changed
18211 any operand even if the result didn't simplify further.
18213 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18215 PR middle-end/25530
18216 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
18218 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18220 PR middle-end/25529
18221 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
18223 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18225 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
18228 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18230 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
18233 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
18235 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
18236 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
18238 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
18239 ms_va_list_type_node initialization.
18241 2015-07-23 Jeff Law <law@redhat.com>
18244 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18245 unable to find X NE 0 in the tables, return X as the simplified
18247 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18248 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
18249 to VISISTED_BBS. */
18250 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18251 after removing the control flow statement and unnecessary edges.
18253 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
18255 * tree-pass.h (get_current_pass_name): Removed.
18257 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
18259 PR rtl-optimization/64164
18260 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18261 * tree-ssa-copyrename.c: Removed.
18262 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18263 -ftree-coalesce-vars.
18264 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18265 * common.opt (ftree-copyrename): Ignore.
18266 (ftree-coalesce-inlined-vars): Likewise.
18267 * doc/invoke.texi: Remove the ignored options above.
18268 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18269 * tree-ssa-coalesce.h: ... here.
18270 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18271 headers required by it.
18272 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18273 across variables when flag_tree_coalesce_vars. Check register
18274 use and promoted modes to allow coalescing. Moved to
18275 tree-ssa-coalesce.c.
18276 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18277 with its member functions to tree-ssa-coalesce.c.
18278 (var_map_base_init): Likewise. Renamed to
18279 compute_samebase_partition_bases.
18280 (partition_view_normal): Drop want_bases parameter.
18281 (partition_view_bitmap): Likewise.
18282 * tree-ssa-live.h: Adjust declarations.
18283 * tree-ssa-coalesce.c: Include explow.h.
18284 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18285 default defs at the entry point.
18286 (dump_part_var_map): New.
18287 (compute_optimized_partition_bases): New, called by...
18288 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18289 of compute_samebase_partition_bases. Adjust.
18290 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18291 * cfgexpand.c (leader_merge): New.
18292 (get_rtl_for_parm_ssa_default_def): New.
18293 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18294 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18295 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18296 redundant MEM attr setting.
18297 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18299 (expand_one_stack_var): ... this. New wrapper to check and
18300 skip already expanded SSA partitions.
18301 (record_alignment_for_reg_var): New, factored out of...
18302 (expand_one_var): ... this.
18303 (expand_one_ssa_partition): New.
18304 (adjust_one_expanded_partition_var): New.
18305 (expand_one_register_var): Check and skip already expanded SSA
18307 (expand_used_vars): Don't create DECLs for anonymous SSA
18308 names. Expand all SSA partitions, then adjust all SSA names.
18309 (pass::execute): Replace the loops that set
18310 SA.partition_to_pseudo from partition leaders and cleared
18311 DECL_RTL for multi-location variables, and that which used to
18312 rename vars and set attrs, with one that clears DECL_RTL and
18313 checks that PARMs and RESULTs default_defs match DECL_RTL.
18314 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18315 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18316 * explow.c (promote_ssa_mode): New.
18317 * explow.h (promote_ssa_mode): Declare.
18318 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18319 * function.c: Include cfgexpand.h.
18320 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18321 (use_register_for_parm_decl): Wrapper for the above to
18322 special-case the result_ptr.
18323 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18324 (split_complex_args): Take assign_parm_data_all argument.
18325 Pass it to rtl_for_parm. Set up rtl and context for split
18327 (assign_parms_augmented_arg_list): Adjust.
18328 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18329 multiple locations. Recognize split complex args.
18330 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18331 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18332 (assign_parm_setup_block): Prefer SSA-assigned location.
18333 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18334 if stack_parm is NULL.
18335 (assign_parm_setup_stack): Prefer SSA-assigned location.
18336 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18337 rtl before testing for pointer bounds. Special-case result_ptr.
18338 (expand_function_start): Maybe reset DECL_RTL of result.
18339 Prefer SSA-assigned location for result and static chain.
18340 Factor out DECL_RESULT and SET_DECL_RTL.
18341 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18342 anonymous SSA names. Use promote_ssa_mode.
18343 (get_temp_reg): Likewise.
18344 (remove_ssa_form): Adjust.
18345 * stor-layout.c (layout_decl): Don't set mem attributes of
18347 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18348 and get its reg_usage for reg invalidation.
18349 (compute_bb_dataflow): Pass it insn.
18350 (emit_notes_in_bb): Likewise.
18352 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
18355 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
18357 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
18358 (rs6000_emit_2insn_and): Handle dot forms.
18359 * config/rs6000/rs6000.md (and<mode>3): Adjust.
18360 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
18361 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
18363 2015-07-23 Richard Biener <rguenther@suse.de>
18365 * generic-match-head.c: Include cgraph.h.
18366 * gimple-match-head.c: Likewise.
18367 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
18369 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
18370 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
18373 2015-07-23 Richard Biener <rguenther@suse.de>
18375 * gimple-fold.c (fold_gimple_cond): Do not require folding
18376 results to pass valid_gimple_rhs_p.
18377 * tree-cfg.h (fold_cond_expr_cond): Remove.
18378 * tree-cfg.c (fold_cond_expr_cond): Likewise.
18379 (make_edges): Do not call it.
18380 * tree-inline.c (tree_function_versioning): Likewise.
18382 2015-07-23 Tom de Vries <tom@codesourcery.com>
18384 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
18385 vect_force_simple_reduction.
18386 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
18387 (vect_is_simple_reduction_1): Add and handle
18388 need_wrapping_integral_overflow parameter.
18389 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
18390 need_wrapping_integral_overflow parameter.
18391 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
18392 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
18395 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
18397 PR tree-optimization/66926,66951
18398 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
18399 INNER_LOOP and fix up condition for renaming virtual operands.
18401 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18403 * combine.c (try_combine): Use std::swap instead of manually
18406 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
18408 * config/mips/i6400.md: New file.
18409 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
18410 (mips64r6): Likewise.
18412 * config/mips/mips-tables.opt: Regenerate.
18413 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
18414 (mips_issue_rate): Add support for i6400.
18415 (mips_multipass_dfa_lookahead): Likewise.
18416 * config/mips/mips.h (TUNE_I6400): Define.
18417 * config/mips/mips.md: Include i6400.md.
18418 (processor): Add i6400.
18419 * doc/invoke.texi (-march=@var{arch}): Add i6400.
18421 2015-07-23 Richard Biener <rguenther@suse.de>
18423 PR middle-end/66916
18424 * match.pd: Guard widen and sign-change comparison simplification
18427 2015-07-23 Richard Biener <rguenther@suse.de>
18429 PR tree-optimization/66945
18430 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
18431 ::before_dom_children): Force the propagators idea of
18432 non-executable edges to materialize, not what the folder
18435 2015-07-23 Richard Biener <rguenther@suse.de>
18437 * gimple.h (gimple_cond_make_false): Use 0 != 0.
18438 (gimple_cond_make_true): Use 1 != 0.
18440 2015-07-22 DJ Delorie <dj@redhat.com>
18442 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
18445 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
18446 (ashrhi3): Likewise.
18447 (lshrhi3): Likewise.
18448 (movhi): Take advantage of zero-extend to load small constants.
18449 (movpsi): Likewise.
18450 (and<mode>3): Likewise.
18451 (zero_extendqihi2): Likewise.
18452 (zero_extendqisi2): New.
18453 * config/msp430/constraints.md (N,O): New.
18454 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
18456 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
18459 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
18460 to enum feature_priority and feature_list.
18461 (fold_builtin_cpu): Add F_AES to enum processor_features
18462 and isa_names_table.
18464 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
18467 * config/i386/linux-common.h (MPX_SPEC): Use linker option
18468 for 64bit target only.
18470 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
18472 * config/nvptx/nvptx.c: Expand some comments.
18474 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
18476 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
18477 (cortex_a53_advsimd): ...This.
18479 2015-07-22 Richard Biener <rguenther@suse.de>
18481 * genmatch.c (expr::gen_transform): Clarify error message
18482 and display location.
18484 2015-07-22 Richard Biener <rguenther@suse.de>
18486 * genmatch.c (struct operand): Add location member.
18487 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
18489 (struct simplify): Remove match_location and result_location
18491 (elsehwere): Adjust.
18493 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
18495 * config/mips/m5100.md: New file.
18496 * config/mips/mips-cpus.def (m5100, m5101): Define.
18497 * config/mips/mips-tables.opt: Regenerate.
18498 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
18499 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
18500 -march=m5101 to -mips32r5.
18501 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
18502 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
18504 * config/mips/mips.md: Include m5100.md.
18505 (processor): Add m5100.
18506 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
18508 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
18510 * config/mips/mips-cpus.def (interaptiv): Define.
18511 * config/mips/mips-tables.opt: Regenerate.
18512 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
18514 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
18515 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
18517 2015-07-22 Jiong Wang <jiong.wang@arm.com>
18520 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18521 (HONOR_REG_ALLOC_ORDER): Define.
18523 2015-07-22 Richard Biener <rguenther@suse.de>
18525 PR tree-optimization/66952
18526 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
18527 blocks we end up executing unconditionally reset all SSA
18528 info such as range and alignment.
18529 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
18530 * tree-ssanames.c (reset_flow_sensitive_info): New function.
18532 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
18534 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
18537 2015-07-22 Richard Biener <rguenther@suse.de>
18539 * genmatch.c (parser::parse_result): Properly handle
18540 match with result operands and conditions.
18542 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
18545 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18546 Add qualifier_struct_load_store_lane_index.
18547 (aarch64_types_loadstruct_lane_qualifiers): Use
18548 qualifier_struct_load_store_lane_index for lane index argument for
18550 (aarch64_types_storestruct_lane_qualifiers): Ditto.
18551 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18552 (aarch64_simd_expand_args): Add new argument describing mode of
18553 builtin. Check lane bounds for arguments with
18554 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18555 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
18556 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18557 (aarch64_simd_expand_builtin): Handle arguments with
18558 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
18559 aarch64_simd_expand_args.
18560 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
18561 vst[234]_lane with BUILTIN_VALLDIF.
18562 * config/aarch64/aarch64-simd.md:
18563 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
18564 endianness reversal on lane index.
18565 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
18566 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
18567 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
18568 (vec_store_lanesci_lane<mode>): Ditto.
18569 (vec_store_lanesxi_lane<mode>): Ditto.
18570 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
18571 reversal of lane index.
18572 (aarch64_ld3_lane<mode>): Ditto.
18573 (aarch64_ld4_lane<mode>): Ditto.
18574 (aarch64_st2_lane<mode>): Ditto.
18575 (aarch64_st3_lane<mode>): Ditto.
18576 (aarch64_st4_lane<mode>): Ditto.
18577 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
18578 to qmode. Add new mode parameter. Update uses.
18579 (__LD3_LANE_FUNC): Ditto.
18580 (__LD4_LANE_FUNC): Ditto.
18581 (__ST2_LANE_FUNC): Ditto.
18582 (__ST3_LANE_FUNC): Ditto.
18583 (__ST4_LANE_FUNC): Ditto.
18585 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
18587 * doc/invoke.texi (Language Independent Options): Rename node to
18588 Diagnostic Message Formatting Options.
18590 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
18593 * lra-remat.c (operand_to_remat): Prevent using insns with input
18594 subregs processed separately by IRA.
18596 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
18598 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
18600 (single_imm_use): Check for iterator node.
18601 (num_imm_uses): Likewise.
18602 * tree-ssa-operands.c (has_zero_uses_1): Delete.
18603 (single_imm_use_1): Check for iterator node.
18605 2015-07-21 Mike Frysinger <vapier@gentoo.org>
18606 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18608 * configure.ac: Add check for new options in isl-0.15.
18609 * config.in, configure: Rebuilt.
18610 * graphite-blocking.c: Include <isl/constraint.h>
18611 * graphite-interchange.c, graphite-poly.c: Likewise.
18612 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
18613 * graphite.c: Likewise.
18614 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
18616 * graphite-dependences.c: Include <isl/constraint.h>.
18617 (max_number_of_out_dimensions): Returns isl_stat.
18618 (extend_schedule_1): Likewise
18619 (extend_schedule): Corresponding changes.
18620 * graphite-optimize-isl.c: Include <isl/constraint.h> and
18622 (getSingleMap): Change return type of isl_stat.
18623 (optimize_isl): Conditionally use
18624 isl_options_set_schedule_serialize_sccs.
18625 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
18626 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
18628 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
18631 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
18632 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
18634 2015-07-21 Richard Biener <rguenther@suse.de>
18636 PR tree-optimization/66948
18637 * genmatch.c (capture_info::walk_match): Also recurse to
18638 captures. Properly compute expr state from captures of
18640 * match.pd: Add single-use guards to
18641 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
18643 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
18645 * config/nvptx/mkoffload.c (process): Add static destructor call.
18647 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18649 PR middle-end/66915
18650 * match.pd (A - B -> A + (-B)): Don't allow folding
18651 when type if a fixed-point type.
18653 2015-07-20 DJ Delorie <dj@redhat.com>
18655 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
18656 (iorqi3_real): Likewise for set1.
18658 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
18660 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
18663 2015-07-20 Aditya Kumar <hiraditya@msn.com>
18665 * graphite-isl-ast-to-gimple.c:
18666 Refactor so that each function can access 'region'. This will help
18667 maintain a parameter rename_map within a region.
18669 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18671 * config/rs6000/rs6000.md (*lt0_disi): New.
18673 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18676 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
18677 "available letters" comment.
18678 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
18679 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
18680 and_2rld_operand): Delete.
18681 (and_operand): Adjust.
18682 (rotate_mask_operator): New.
18683 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
18684 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
18685 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
18686 extract_ME): Delete.
18687 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18688 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
18689 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
18690 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18691 rs6000_emit_2insn_and): New.
18692 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
18693 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
18694 includes_rldic_lshift_p, includes_rldicr_lshift_p,
18695 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
18696 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18697 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
18698 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
18699 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18700 rs6000_emit_2insn_and): New.
18701 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
18702 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
18704 <NOT>: Don't fall through to next case.
18705 <AND>: Handle the various rotate-and-mask cases directly.
18706 <IOR>: Always cost as one insn.
18707 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
18708 (and<mode>3): Adjust expander for the new patterns.
18709 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
18710 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
18711 (*and<mode>3_imm_dot_shifted): New.
18712 (*and<mode>3_mask): Delete, rewrite as ...
18713 (and<mode>3_mask): ... New.
18714 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
18715 (andsi3_internal0_nomc): Delete.
18716 (*andsi3_internal6): Delete.
18717 (*and<mode>3_2insn): New.
18718 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18719 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18720 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
18721 *insvdi_internal3): Delete.
18722 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
18723 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
18724 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
18725 *ior<mode>_mask): New.
18726 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
18727 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18728 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18729 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18731 (ashr<mode>3): Delete expander.
18732 (*ashr<mode>3): Rename to ...
18733 (ashr<mode>3): ... This.
18734 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
18735 (*rotldi3_internal4, *rotldi3_internal5 and split,
18736 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
18737 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
18738 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
18739 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
18740 (splitter for loading a mask): Adjust.
18741 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
18743 2015-07-20 Marek Polacek <polacek@redhat.com>
18745 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
18746 output_add_clobbers, output_added_clobbers_hard_reg_p,
18747 gen_rtx_scratch): Remove declarations.
18749 2015-07-20 Marek Polacek <polacek@redhat.com>
18752 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
18754 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18756 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
18757 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
18759 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18761 * combine.c (combine_simplify_rtx): Move simplification step
18762 before various transformations/substitutions.
18764 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
18766 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
18767 (struct int_traits): Likewise.
18769 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18771 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
18772 function to vmsdbgout_function_decl.
18774 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
18777 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
18778 from misaligned positions.
18779 (ix86_expand_pinsr): Reject insertions to misaligned positions.
18781 2015-07-18 Sebastian Pop <s.pop@samsung.com>
18783 PR middle-end/46851
18784 PR middle-end/60340
18785 * Makefile.in: Removed omega.o.
18786 * common.opt: Document flag fcheck-data-deps as deprecated.
18787 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
18788 its associated params: omega-max-vars, omega-max-geqs,
18789 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
18790 omega-max-keys, omega-eliminate-redundant-constraints.
18791 * doc/loop.texi: Remove all the section on Omega.
18792 * graphite-blocking.c: Include missing params.h: it used to be
18793 included through tree-data-ref.h and omega.h.
18794 * graphite-isl-ast-to-gimple.c: Same.
18795 * graphite-optimize-isl.c: Same.
18796 * graphite-sese-to-poly.c: Same.
18797 * graphite.c: Same.
18800 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
18801 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
18802 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
18803 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
18804 * passes.def: Remove pass_check_data_deps.
18805 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
18806 (dump_conflict_function): Same.
18807 (dump_subscript): Same.
18808 (print_direction_vector): Same.
18809 (print_dir_vectors): Same.
18810 (print_lambda_vector): Same.
18811 (print_dist_vectors): Same.
18812 (dump_data_dependence_relation): Same.
18813 (dump_data_dependence_relations): Same.
18814 (dump_dist_dir_vectors): Same.
18816 (init_omega_eq_with_af): Removed.
18817 (omega_extract_distance_vectors): Removed.
18818 (omega_setup_subscript): Removed.
18819 (init_omega_for_ddr_1): Removed.
18820 (init_omega_for_ddr): Removed.
18821 (ddr_consistent_p): Removed.
18822 (compute_affine_dependence): Do not use omega to check data
18824 (compute_data_dependences_for_bb): Removed.
18825 (analyze_all_data_dependences): Removed.
18826 (tree_check_data_deps): Removed.
18827 * tree-data-ref.h: Do not include omega.h.
18828 (compute_data_dependences_for_bb): Removed.
18829 (tree_check_data_deps): Removed.
18830 * tree-ssa-loop.c (pass_check_data_deps): Removed.
18831 (make_pass_check_data_deps): Removed.
18832 * tree-ssa-phiopt.c: Include params.h.
18833 * tree-vect-data-refs.c: Same.
18834 * tree-vect-slp.c: Same.
18836 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
18838 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
18839 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
18840 (mem->fpreg splitters): Ditto.
18841 (general_operand->nonimmediate_operand splitter): Use explicit modes.
18842 Disable DFmode for TARGET_64BIT.
18844 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
18847 * config/i386/i386.c (ix86_expand_prologue): Replicate static
18848 chain on the stack.
18850 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
18852 * config/nvptx/mkoffload.c (process): Constify host data.
18853 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18854 Constify host data.
18855 (generate_host_descr_file): Likewise.
18857 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
18858 Sebastian Pop <s.pop@samsung.com>
18860 PR middle-end/61929
18861 * graphite-dependences.c (add_pdr_constraints): Renamed
18862 pdr->extent to pdr->subscript_sizes.
18863 * graphite-interchange.c (build_linearized_memory_access): Add
18864 back all gcc_assert's that the "isl_int to isl_val conversion"
18865 patch has removed. Refactored.
18866 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
18867 * graphite-poly.c (new_poly_dr): Same.
18868 (free_poly_dr): Same.
18869 * graphite-poly.h (struct poly_dr): Same.
18870 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
18871 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
18872 * graphite-scop-detection.h: Fix space.
18873 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
18874 back all gcc_assert's removed by a previous patch.
18875 (wrap): Remove the_isl_ctx global variable that the same patch has
18877 (build_loop_iteration_domains): Same.
18878 (add_param_constraints): Same.
18879 (pdr_add_data_dimensions): Same. Refactored.
18880 (build_poly_dr): Renamed extent to subscript_sizes.
18882 2015-07-17 Marek Polacek <polacek@redhat.com>
18884 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
18885 * match.pd: ... here.
18887 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
18889 * config/nvptx/mkoffload.c (process): Constify target data.
18890 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18891 Constify target data.
18892 (generate_target_offloadend_file): Likewise.
18894 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
18896 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
18897 to allow renaming of PHI arguments on edges incoming from outer
18898 loop header, add corresponding check before start PHI iterator.
18899 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
18900 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
18901 with true force_vectorize. Set-up dominator for outer loop too.
18902 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
18903 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
18904 was marked with force_vectorize and has restricted cfg.
18905 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
18907 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
18908 do peeling for outer loops.
18910 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
18911 Matthias Klose <doko@ubuntu.com>
18913 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
18914 build-sysroot, sysroot from the `Miscenalleous configure options' to
18915 the `Directories' section and strip trailing `/' from with_sysroot.
18916 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
18917 * configure: Regenerated.
18919 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
18922 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
18923 (TARGET_HARD_DF_REGS): Ditto.
18924 (TARGET_HARD_XF_REGS): Ditto.
18925 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
18926 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
18927 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
18928 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
18929 (*movsf_internal): Add alternatives 16 and 17. Enable
18930 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
18932 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
18934 PR rtl-optimization/66891
18935 * calls.c (expand_call): Wrap precompute_register_parameters with
18936 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
18938 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
18940 * config/nvptx/mkoffload.c (process): Constify mapping variables.
18941 Define target data struct and initialize it.
18943 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
18945 PR rtl-optimization/66626
18946 * ira.h (emit-rtl.h): Include.
18947 (non_spilled_static_chain_regno_p): New.
18948 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
18949 unless it is non spilled static chain pseudo.
18950 (assign_hard_rego): Spill memory profitable allocno unless it is
18951 non spilled static chain pseudo.
18952 (allocno_spill_priority_compare): Put non spilled static chain
18953 pseudo at the end of sorted array.
18954 (improve_allocation): Do nothing if we have static chain and
18956 (allocno__priority_compare_func): Put non spilled static chain
18957 pseudo at the beginning of sorted array.
18958 (move_spill_restore): Ignore non spilled static chain pseudo.
18959 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
18960 to non spilled static chain pseudo.
18961 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
18962 pseudo at the beginning of sorted array.
18963 (spill_for): Spill non spilled static chain pseudo last.
18964 * lra-constraints.c (lra_constraints): Remove static chain pseudo
18965 check for equivalence.
18967 2015-07-16 Martin Liska <mliska@suse.cz>
18970 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
18971 dst_ctx if it does not exist.
18973 2015-07-16 Martin Liska <mliska@suse.cz>
18975 * hash-set.h (remove): New function.
18976 (iterator): New iteration class for hash_set.
18978 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18980 * genattrtab.c (make_canonical): Add a file_location parameter.
18981 Use fatal_at rather than fatal.
18982 (get_attr_value): Likewise. Update call to make_canonical.
18983 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
18984 (make_internal_attr): Update calls accordingly.
18986 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18988 * read-md.h (message_with_line, error_with_line): Delete.
18989 * read-md.c (message_with_line, error_with_line): Delete.
18990 * gensupport.h: Include read-md.h.
18991 (md_rtx_info): New structure.
18992 (read_md_rtx): Use it. Return a bool success value.
18993 * gensupport.c (read_md_rtx): Likewise.
18994 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
18995 (main): Update after interface changes.
18996 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
18997 (main): Update after interface changes.
18998 * genattrtab.c (insn_code_number): Delete.
18999 (optimize_attrs): Add a max_insn_code parameter and use it instead
19000 of insn_code_number.
19001 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
19002 Use *_at rather than *_with_line functions.
19003 (gen_insn): Likewise.
19004 (gen_delay): Likewise.
19005 (gen_insn_reserv): Likewise.
19006 (gen_bypass): Take an md_rtx_info rather than an rtx.
19007 (main): Update after interface changes. Use a local max_insn_code
19008 variable instead of insn_code_number.
19009 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
19010 an rtx. Use fatal_at rather than fatal.
19011 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
19012 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
19013 (gen_absence_set, gen_final_absence_set, gen_automaton)
19014 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
19015 (main): Update after interface changes.
19016 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
19018 (main): Update after interface changes.
19019 * genconditions.c (main): Use new read_md_rtx interface.
19020 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
19021 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
19022 (main): Update after interface changes.
19023 * genemit.c (insn_code_number, insn_index_number): Delete.
19024 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19025 Use fatal_at rather than fatal.
19026 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
19028 (gen_split): Likewise.
19029 (main): Update after interface changes.
19030 * genextract.c (line_no): Delete.
19031 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19032 Update call to walk_rtx.
19033 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
19034 rather than message_with_line.
19035 (walk_rtx): Add an md_rtx_info argument. Update call to
19036 VEC_safe_set_locstr.
19037 (main): Update after interface changes.
19038 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
19039 and lineno. Use error_at rather than separate message_with_line
19040 calls and have_error assignments.
19041 (main): Update after interface changes.
19042 * genmddump.c (main): Use new read_md_rtx interface.
19043 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
19044 (main): Update after interface changes.
19045 * genoutput.c (next_code_number): Delete.
19046 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19047 (gen_peephole, gen_expand, gen_split): Likewise.
19048 (note_constraint): Likewise. Use *_at rather than *_with_line
19050 (main): Update after interface changes.
19051 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
19053 (main): Update after interface changes.
19054 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
19055 than an rtx and lineno.
19056 (process_define_constraint): Likewise.
19057 (process_define_register_constraint): Likewise.
19058 (main): Update after interface changes.
19059 * genrecog.c (next_insn_code, pattern_lineno): Delete.
19060 (validate_pattern): Replace top-level rtx with an md_rtx_info.
19061 Use *_at rather than *_with_line functions.
19062 (match_pattern_2): Likewise.
19063 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
19064 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
19065 Use *_at rather than *_with_line functions.
19066 * gentarget-def.c (add_insn): New function.
19067 (main): Use it. Use new read_md_rtx interface.
19069 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19071 * gensupport.h (compute_test_codes): Take a file_location rather
19072 than a line number.
19073 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
19074 rather than *_with_line functions.
19075 (process_define_predicate): Update call to compute_test_codes.
19076 * genpreds.c (validate_exp): Take a file_location rather than a
19077 line number. Use *_at functions rather than *_with_line functions.
19078 (process_define_predicate): Update call to validate_exp.
19079 (constraint_data): Replace lineno field with a file_location.
19080 (add_constraint): Take a file_location rather than a line number.
19081 Use *_at functions rather than *_with_line functions. Fix error
19082 message for address constraints. Update after changes to
19083 validate_exp, constraint_data and compute_test_codes.
19084 (process_define_constraint): Update accordingly.
19085 (process_define_register_constraint): Likewise.
19087 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19089 * genoutput.c (data): Use a file_location to record the source
19092 (idata, idata_end): Remove initialization.
19093 (constraint_data): Replace lineno with a file_location.
19094 (output_insn_data): Update after changes to data.
19095 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
19096 (scan_operands): Likewise, using *_at rather than *_with_line
19098 (process_template): Likewise.
19099 (validate_insn_alternatives): Likewise.
19100 (validate_insn_operands): Likewise.
19101 (validate_optab_operands): Likewise.
19102 (init_insn_for_nothing): Initialize idata and idata_end.
19103 (note_constraint): Update after changes to constraint_data,
19104 using at rather than with_line functions.
19105 (mdep_constraint_len): Take a file_location rather than a
19106 line number. Use at rather than with_line functions.
19108 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19110 * read-md.h (fatal_at): Declare.
19111 * read-md.c (fatal_at): New function.
19112 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
19113 to record the source position.
19114 (check_attr_test): Take a file_location instead of a line number.
19115 Use fatal_at instead of fatal.
19116 (check_attr_value): Update after above changes, using "at"
19117 rather than "with_line" reporting functions.
19118 (convert_set_attr_alternative): Likewise.
19119 (gen_attr): Likewise.
19120 (check_defs): Likewise. Don't assign to read_md_filename.
19121 (gen_insn): Update initialization after above changes.
19122 (gen_delay): Likewise.
19123 (write_insn_cases): Print the filename for a define_peephole.
19124 (gen_insn_reserv): Take a line number as argument and update
19125 the call to check_attr_test.
19126 (main): Pass a line number to gen_insn_reserv.
19128 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19130 * read-md.h (file_location): New structure.
19131 (directive_handler_t): Take a file_location rather than a line number.
19132 (message_at, error_at): Declare.
19133 (read_skip_construct): Delete.
19134 * read-md.c (message_with_line_1): Replace with...
19135 (message_at_1): ...this new function.
19136 (message_at, error_at): New functions.
19137 (message_with_line, error_with_line): Update to use message_at_1.
19138 (handle_enum): Take a file_location rather than a line number
19139 and use error_at for error reporting.
19140 (handle_include): Likewise.
19141 (read_skip_construct): Likewise. Make static.
19142 (handle_file): Update after above changes. Pass a file_location
19143 rather than a line number to handle_directive.
19144 * gensupport.c (queue_elem): Replace separate filename and lineno
19145 with a file_location.
19146 (queue_pattern): Replace filename and lineno arguments with a
19147 file_location. Update after change to queue_elem.
19148 (process_define_predicate): Replace lineno argument with a
19149 file_location and use error_at for error reporting. Update
19150 after above changes.
19151 (process_rtx): Likewise.
19152 (subst_pattern_match): Likewise.
19153 (get_alternatives_number): Likewise.
19154 (alter_predicate_for_insn): Likewise.
19155 (rtx_handle_directive): Likewise.
19156 (is_predicable): Update after above changes, using error_at rather
19157 than error_with_line.
19158 (has_subst_attribute): Likewise.
19159 (identify_predicable_attribute): Likewise.
19160 (alter_attrs_for_subst_insn): Likewise.
19161 (process_one_cond_exec): Likewise.
19162 (process_substs_on_one_elem): Likewise.
19163 (process_define_subst): Likewise.
19164 (check_define_attr_duplicates): Likewise.
19165 (read_md_rtx): Update after change to queue_elem.
19167 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19169 * genoutput.c (next_index_number): Delete.
19170 (data): Remove index_number.
19171 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
19172 (main): Remove manipulation of next_index_number.
19174 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19176 * genattrtab.c (check_attr_value): Remove handling of null attrs.
19177 (make_canonical): Likewise.
19179 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
19181 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
19182 instead of adjust_address_nv.
19183 (restore_stack_nonlocal): Likewise.
19184 (nonlocal_goto): Likewise.
19186 2015-07-16 Tom de Vries <tom@codesourcery.com>
19188 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
19189 not have a corresponding loop header phi.
19191 2015-07-16 Tom de Vries <tom@codesourcery.com>
19193 * tree-parloops.c (create_loads_for_reductions): Handle case that
19194 reduction is unused.
19196 2015-07-16 Richard Biener <rguenther@suse.de>
19198 PR tree-optimization/66894
19199 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
19200 about deriving NE_EXPR from truncated values.
19202 2015-07-16 Martin Liska <mliska@suse.cz>
19205 (object_allocator): Add new class.
19206 (pool_allocator::initialize): Use the underlying class.
19207 (pool_allocator::allocate): Likewise.
19208 (pool_allocator::remove): Likewise.
19209 (operator new): A new generic allocator.
19210 * asan.c (struct asan_mem_ref): Remove unused members.
19211 (asan_mem_ref_new): Replace new operator with
19212 object_allocator::allocate.
19213 (free_mem_ref_resources): Change deallocation.
19214 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
19215 with object_allocator.
19216 * config/sh/sh.c (add_constant): Replace new operator with
19217 object_allocator::allocate.
19218 (sh_reorg): Change call to a release method.
19219 * cselib.c (struct elt_list): Remove unused members.
19220 (new_elt_list): Replace new operator with
19221 object_allocator::allocate.
19222 (new_elt_loc_list): Likewise.
19223 (new_cselib_val): Likewise.
19224 (unchain_one_elt_list): Change delete operator with remove method.
19225 (unchain_one_elt_loc_list): Likewise.
19226 (unchain_one_value): Likewise.
19227 (cselib_finish): Release newly added static allocators.
19228 * cselib.h (struct cselib_val): Remove unused members.
19229 (struct elt_loc_list): Likewise.
19230 * df-problems.c (df_chain_alloc): Replace pool_allocator with
19232 * df-scan.c (struct df_scan_problem_data): Likewise.
19233 (df_scan_alloc): Likewise.
19234 * df.h (struct dataflow): Likewise.
19235 * dse.c (struct read_info_type): Likewise.
19236 (struct insn_info_type): Likewise.
19237 (struct dse_bb_info_type): Likewise.
19238 (struct group_info): Likewise.
19239 (struct deferred_change): Likewise.
19240 (get_group_info): Likewise.
19241 (delete_dead_store_insn): Likewise.
19242 (free_read_records): Likewise.
19243 (replace_read): Likewise.
19244 (check_mem_read_rtx): Likewise.
19245 (scan_insn): Likewise.
19246 (dse_step1): Likewise.
19247 (dse_step7): Likewise.
19248 * et-forest.c (struct et_occ): Remove unused members.
19249 (et_new_occ): Use allocate instead of new operator.
19250 (et_new_tree): Likewise.
19251 (et_free_tree): Call release method explicitly.
19252 (et_free_tree_force): Likewise.
19253 (et_free_pools): Likewise.
19254 (et_split): Use remove instead of delete operator.
19255 * et-forest.h (struct et_node): Remove unused members.
19256 * ipa-cp.c: Change pool_allocator to object_allocator.
19257 * ipa-inline-analysis.c: Likewise.
19258 * ipa-profile.c: Likewise.
19259 * ipa-prop.c: Likewise.
19260 * ipa-prop.h: Likewise.
19261 * ira-build.c (initiate_cost_vectors): Cast return value.
19262 (ira_allocate_cost_vector): Likewise.
19263 * ira-color.c (struct update_cost_record): Remove unused members.
19264 * lra-int.h (struct lra_live_range): Likewise.
19265 (struct lra_copy): Likewise.
19266 (struct lra_insn_reg): Likewise.
19267 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
19268 * lra.c (new_insn_reg): Replace new operator with allocate method.
19269 (free_insn_regs): Same for operator delete.
19270 (finish_insn_regs): Release new static allocator.
19271 (finish_insn_recog_data): Likewise.
19272 (lra_free_copies): Replace delete operator with remove method.
19273 (lra_create_copy): Replace operator new with allocate method.
19274 (invalidate_insn_data_regno_info): Same for remove method.
19275 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
19276 (free_debug_insn_changes): Replace delete operator with remove method.
19277 (replace_oldest_value_reg): Replace operator new with allocate method.
19278 (pass_cprop_hardreg::execute): Release new static variable.
19279 * sched-deps.c (sched_deps_init): Change pool_allocator to
19281 * sel-sched-ir.c: Likewise.
19282 * sel-sched-ir.h: Likewise.
19283 * stmt.c (expand_case): Likewise.
19284 (expand_sjlj_dispatch_table): Likewise.
19285 * tree-sra.c (struct access): Remove unused members.
19286 (struct assign_link): Likewise.
19287 (sra_deinitialize): Release newly added static pools.
19288 (create_access_1):Replace operator new with allocate method.
19289 (build_accesses_from_assign): Likewise.
19290 (create_artificial_child_access): Likewise.
19291 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
19292 pool_allocator to object_allocator.
19293 * tree-ssa-pre.c: Likewise.
19294 * tree-ssa-reassoc.c: Likewise.
19295 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
19296 * tree-ssa-strlen.c: Likewise.
19297 * tree-ssa-structalias.c: Likewise.
19298 * var-tracking.c (onepart_pool_allocate): New function.
19299 (unshare_variable): Use the newly added function.
19300 (variable_merge_over_cur): Likewise.
19301 (variable_from_dropped): Likewise.
19302 (variable_was_changed): Likewise.
19303 (set_slot_part): Likewise.
19304 (emit_notes_for_differences_1): Likewise.
19305 (vt_finalize): Release newly added static pools.
19307 2015-07-16 Martin Jambor <mjambor@suse.cz>
19309 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
19310 all uses. Fix two typos in its general comment.
19311 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
19313 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
19315 * config/i386/linux-common.h (LINK_MPX): New.
19316 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
19317 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
19318 indicating '-z bndplt' support by linker.
19319 * configure: Regenerate.
19320 * config.in: Regenerate.
19322 2015-07-16 Richard Biener <rguenther@suse.de>
19324 * fold-const.c (fold_widened_comparison): Remove.
19325 (fold_sign_changed_comparison): Likewise.
19326 (fold_comparison): Move widened and sign-changed comparison
19328 * match.pd: ... to patterns here.
19329 * generic-match-head.c: Include target.h.
19330 * gimple-match-head.c: Likewise.
19332 2015-07-16 Richard Biener <rguenther@suse.de>
19334 * tree-ssa-dom.c (dom_valueize): New function.
19335 (record_temporary_equivalences): Also record equivalences
19336 for dominating stmts that have uses of equivalences we are
19339 2015-07-16 Bin Cheng <bin.cheng@arm.com>
19341 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
19342 add_autoinc_candidates.
19343 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
19344 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
19345 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
19346 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
19348 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
19349 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
19350 Remove parameter struct iv*. Call add_autoinc_candidates here.
19351 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
19352 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
19354 (find_iv_candidates): Call new functions.
19356 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
19358 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
19359 uninitialized-variable warning.
19361 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
19364 * config/sh/sh.md (movdi): Split simple reg move to two movsi
19365 when the destination is R0.
19367 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
19370 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
19371 * config/i386/i386.c (ix86_expand_pextr): New function.
19372 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
19373 for non-lowpart subregs.
19374 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
19375 (insv<mode>): Use SWI248 mode iterator.
19376 (insv<mode>_1): Ditto.
19378 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19379 Sebastian Pop <s.pop@samsung.com>
19381 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
19382 iterator to use_stmt.
19384 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19385 Sebastian Pop <s.pop@samsung.com>
19387 * graphite-scop-detection.c (build_scops_1): Discard scops for
19390 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19391 Sebastian Pop <s.pop@samsung.com>
19393 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
19394 case of a return statement in scop.
19396 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19397 Sebastian Pop <s.pop@samsung.com>
19399 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
19400 INTEGER_TYPE parameters.
19401 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
19402 VECTOR_CST in scan_tree_for_params.
19403 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
19405 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
19407 * gimple-pretty-print.h: Don't include pretty-print.h.
19408 * tree-streamer.h: Don't include lto-streamer.h.
19409 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
19410 * gimple-streamer-in.c: Remove redundant includes.
19411 * gimple-streamer-out.c: Likewise.
19412 * ipa-devirt.c: Likewise.
19413 * ipa-icf.c: Likewise.
19414 * ipa-inline-analysis.c: Likewise.
19415 * ipa-polymorphic-call.c: Likewise.
19416 * ipa-profile.c: Likewise.
19417 * ipa-prop.c: Likewise.
19418 * ipa-pure-const.c: Likewise.
19419 * lto-cgraph.c: Likewise.
19420 * lto-streamer-in.c: Likewise.
19421 * lto-streamer-out.c: Likewise.
19422 * lto-streamer.c: Likewise.
19423 * tree-streamer-in.c: Likewise.
19424 * tree-streamer-out.c: Likewise.
19425 * tree-streamer.c: Likewise.
19427 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
19429 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
19431 * opts.c: Remove multiline #include comment.
19433 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
19435 * config/nvptx/mkoffload.c (process): Add C++ protection to
19438 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19441 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
19442 null before IEEE 128-bit floating point support patch.
19444 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19446 * simplify-rtx.c (simplify_ternary_operation): Add simplification
19447 for (!c) != {0,...,0} ? a : b for vector modes.
19449 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
19450 Martin Jambor <mjambor@suse.cz>
19452 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
19453 struct func_body_info* instead of struct ipa_node_params*, expecting
19454 fbi->info to be filled in. Replace throughout. Adjust call to
19455 ipa_load_from_parm_agg.
19456 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
19457 instead of struct ipa_node_params*. Adjust calls to other functions
19458 so that they pass either fbi or fbi->info.
19459 (set_switch_stmt_execution_predicate): Likewise.
19460 (will_be_nonconstant_predicate): Likewise.
19461 (compute_bb_predicates): Likewise.
19462 (estimate_function_body_sizes): Move asserts earlier. Fill in
19463 struct func_body_info, replace parms_info with fbi.info. Adjust
19464 calls to functions that now accept struct func_body_info.
19465 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
19466 (struct func_body_info): Likewise.
19467 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
19468 remove static. Adjust callers.
19469 (ipa_load_from_parm_agg): Remove.
19470 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
19471 (func_body_info): Likewise.
19472 (ipa_load_from_parm_agg): Adjust prototype.
19474 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19476 * gensupport.c (rtx_handle_directive): Adjust.
19477 * read-rtl.c (apply_iterators): Take vector to add rtxs to
19478 instead of expr list rtx.
19479 (add_define_attr_for_define_subst): Likewise.
19480 (add_define_subst_attr): Likewise.
19481 (read_subst_mapping): Likewise.
19482 (read_rtx): Likewise.
19483 * rtl.h (read_rtx): Adjust.
19485 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19487 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
19489 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19492 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
19493 (*tls_local_dynamic_base_64_<mode>): Ditto.
19494 (*tls_local_dynamic_base_64_largepic): Ditto.
19495 (tls_global_dynamic_64_<mode>): Update expander pattern.
19496 (tls_local_dynamic_base_64_<mode>): Ditto.
19498 2015-07-15 Richard Biener <rguenther@suse.de>
19500 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
19501 and bool_var == 1 -> bool_var simplifications ...
19502 * match.pd: ... to patterns here. Factor out negate_expr_p
19503 cases from the A - B -> A + (-B) patterns as negate_expr_p
19504 predicate and add a -(A + B) -> (-B) - A pattern.
19506 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
19508 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
19510 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
19511 Robert Suchanek <robert.suchanek@imgtec.com>
19513 * config/mips/mips.c (mips_int_mask): New enum.
19514 (mips_shadow_set): Likewise.
19515 (int_mask): New variable.
19516 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
19517 (machine_function): Add int_mask and use_shadow_register_set.
19518 (mips_attribute_table): Add attribute handlers for interrupt and
19519 use_shadow_register_set.
19520 (mips_interrupt_mask): New static function.
19521 (mips_handle_interrupt_attr): Likewise.
19522 (mips_handle_use_shadow_register_set_attr): Likewise.
19523 (mips_use_shadow_register_set): Change return type to enum
19524 mips_shadow_set. Add argument handling for use_shadow_register_set
19526 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
19527 compare with mips_shadow_set enum.
19528 (mips_compute_frame_info): Add interrupt mask and
19529 use_shadow_register_set to per-function information structure.
19530 Add a stack slot for EPC unconditionally.
19531 (mips_expand_prologue): Compare use_shadow_register_set value
19532 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
19533 masked interrupt register but in EIC mode use K0 and save Cause in K0.
19534 EPC saved and restored unconditionally. Use PMODE_INSN macro when
19535 copying the stack pointer from the shadow register set.
19536 * config/mips/mips.h (SR_IM0): New define.
19537 * config/mips/mips.md (mips_rdpgpr): Rename to...
19538 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
19539 * doc/extend.texi (Declaring Attributes of Functions): Document
19540 optional arguments for interrupt and use_shadow_register_set
19543 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
19545 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
19546 interrupt attribute.
19547 (mips_expand_prologue): Disable the floating point unit in an ISR.
19548 * config/mips/mips.h (SR_COP1): New define.
19550 2015-07-15 Richard Biener <rguenther@suse.de>
19552 * genmatch.c (parser::peek, parser::peek_ident): Add argument
19553 to tell how many tokens to peek ahead (default 1).
19554 (parser::eat_token, parser::eat_ident): Return token consumed.
19555 (parser::parse_result): Parse new switch statement.
19556 * match.pd: Use case statements where appropriate.
19558 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19560 PR rtl-optimization/58066
19561 * calls.c (expand_call): Precompute register parameters before stack
19562 alignment is performed.
19564 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19566 PR rtl-optimization/66838
19567 * postreload.c (reload_cse_move2add): Also process
19568 CALL_INSN_FUNCTION_USAGE when resetting information of
19569 call-clobbered registers.
19571 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19572 Cesar Philippidis <cesar@codesourcery.com>
19573 Chung-Lin Tang <cltang@codesourcery.com>
19575 * config/nios2/constraints.md (U, v): New constraints.
19576 * config/nios2/predicates.md (rdprs_dcache_operand): New.
19577 (ldstex_memory_operand): New.
19578 * config/nios2/sync.md: New file.
19579 * config/nios2/nios2.md (unspecv): Add new builtin function
19581 (rdprs, flushd, flushda, wrpie, eni): New patterns.
19582 (top-level): Include sync.md.
19583 * config/nios2/nios2.c (N2_FTYPES): Add function types for
19585 (N2_BUILTINS): Add arch field setting, add new builtins.
19586 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
19588 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
19589 Also handle ldex/stex/ldsex/stsex builtins.
19590 (nios2_expand_rdprs_builtin): New function.
19591 (nios2_expand_cache_builtin): New function.
19592 (nios2_expand_wrpie_builtin): New function.
19593 (nios2_expand_eni_builtin): New function.
19594 (nios2_expand_builtin): Add arch field handling and new builtin
19596 * doc/extend.texi (Altera Nios II Built-in Functions): Document
19598 * doc/md.texi (Machine Constraints): Document U and v constraints.
19600 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19601 Cesar Philippidis <cesar@codesourcery.com>
19602 Chung-Lin Tang <cltang@codesourcery.com>
19604 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
19605 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
19606 callee_save_reg_size and uses_anonymous_args fields.
19607 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
19608 (nios2_create_cfa_notes): New function.
19609 (nios2_adjust_stack): New function for adjusting stack.
19610 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
19611 Use nios2_adjust_stack.
19612 (nios2_expand_epilogue): Likewise.
19613 (nios2_expand_return): New function.
19614 (nios2_can_use_return_insn): Update for CDX pop.n usage.
19615 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
19616 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
19617 * config/nios2/nios2.md (return): Use nios2_expand_return.
19619 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19620 Cesar Philippidis <cesar@codesourcery.com>
19621 Chung-Lin Tang <cltang@codesourcery.com>
19623 * config/nios2/predicates.md (pop_operation): New.
19624 (ldwm_operation, stwm_operation): New.
19625 (nios2_hard_register_operand): New.
19626 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
19627 (ldstwm_operation_p): Declare.
19628 (gen_ldstwm_peep): Declare.
19629 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
19630 (base_reg_adjustment_p): New.
19631 (pop_operation_p): New.
19632 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
19633 (nios2_ldstwm_regset_p): New.
19634 (ldstwm_operation_p): New.
19636 (nios2_ldst_parallel): New.
19637 (struct ldswm_operand): Declare.
19638 (compare_ldstwm_operands): New.
19639 (can_use_cdx_ldstw): New.
19640 (gen_ldstwm_peep): New.
19641 * config/nios2/nios2-ldstwm.sml: New.
19642 * config/nios2/nios2.md: Include ldstwm.md.
19643 * config/nios2/ldstwm.md: Generated.
19645 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19646 Cesar Philippidis <cesar@codesourcery.com>
19647 Chung-Lin Tang <cltang@codesourcery.com>
19649 * config/nios2/nios2.h (LABEL_ALIGN): Define.
19650 (REG_ALLOC_ORDER): Define.
19651 (ADJUST_REG_ALLOC_ORDER): Define.
19652 (HONOR_REG_ALLOC_ORDER): Define.
19653 (CDX_REG_P): Define.
19654 (ANDCLEAR_INT): Define.
19655 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
19656 (nios2_label_align): Declare.
19657 (nios2_cdx_narrow_form_p): Declare.
19658 (nios2_adjust_reg_alloc_order): Declare.
19659 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
19661 (nios2_large_unspec_reloc_p): New function, split from...
19662 (nios2_legitimate_pic_operand_p): ...here.
19663 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
19664 (nios2_print_operand_punct_valid_p): New.
19665 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
19666 (split_mem_address): New.
19667 (split_alu_insn): New.
19669 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
19670 (enum nios2_add_insn_kind): New.
19671 (nios2_add_insn_names, nios2_add_insn_narrow): New.
19672 (nios2_add_insn_classify): New.
19673 (nios2_add_insn_asm): New.
19674 (nios2_cdx_narrow_form_p): New.
19675 (label_align, min_labelno, max_labelno): New.
19676 (nios2_reorg): New.
19677 (nios2_label_align): New.
19678 (nios2_adjust_reg_alloc_order): New.
19679 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19680 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19681 * config/nios2/constraints.md (P): New constraint.
19682 * config/nios2/predicates.md (const_and_operand): New.
19683 (and_operand): New.
19684 (stack_memory_operand): New.
19685 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
19686 (length): Update to use nios2_cdx_narrow_form_p().
19687 (type): Add new insn type values.
19688 (control, alu, st, ld, shift): Update insn reservations with
19689 new insn type values.
19690 (*high, *lo_sum): Define new insn patterns for constant generation.
19691 (movqi_internal, movhi_internal, movsi_internal): Reduce
19692 alternatives, update asm template to handle CDX variants, update
19694 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
19695 template, update type attributes.
19696 (extendhisi2, extendqi<mode>2): Likewise.
19697 (addsi3): Change to use function for asm string.
19698 (subsi3): Add CDX notation to asm template, update type attributes.
19699 (negsi3, one_cmplsi3): Likewise.
19700 (andsi3): New pattern, specialized from logical patterns.
19701 (<code>si3): Remove and case, combine alternatives, update asm
19703 (<shift_op>si3): Add CDX notation, update type attributes.
19704 (rotrsi3): Update type attribute.
19705 (*merge, extzv, insv): New insn patterns.
19706 (return): Change to define_expand.
19707 (simple_return): Add CDX notation, update type attributes.
19708 (indirect_jump): Add CDX notation.
19709 (jump): Update asm cases, update length attribute expression.
19710 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
19711 (nios2_cbranch): Update asm cases and length attribute expression
19712 to handle CDX variants.
19713 (nios2_cmp<code>): Update asm template.
19714 (nop): Add CDX notation, update type attributes.
19715 (trap): Add CDX notation.
19716 (ctrapsi4): Update asm cases and length attribute expression to
19717 handle CDX variant.
19718 * doc/md.texi (Machine Constraints): Document P constraint.
19720 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19721 Cesar Philippidis <cesar@codesourcery.com>
19722 Chung-Lin Tang <cltang@codesourcery.com>
19724 * config/nios2/nios2.h (SMALL_INT12): New macro.
19725 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
19726 (nios2_valid_addr_expr_p): Use it.
19727 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
19728 with implicit "io" instructions on R2.
19729 * config/nios2/constraints.md (w): New constraint.
19730 * config/nios2/predicates.md (ldstio_memory_operand): New.
19731 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
19732 operand predicate and constraint.
19733 (ld<bh>io_signed, st<bhw>io>): Likewise.
19734 * doc/md.texi (Machine Constraints): Document w constraint.
19736 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19737 Cesar Philippidis <cesar@codesourcery.com>
19738 Chung-Lin Tang <cltang@codesourcery.com>
19740 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
19741 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
19742 Nios II architecture level.
19743 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
19744 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
19745 (OPTION_DEFAULT_SPECS): Define.
19746 (ASM_SPEC): Add -march= spec strings.
19747 * config/nios2/nios2.c (nios2_option_override): Check for
19748 conflicts involving new options.
19749 * config.gcc (nios2*-*-*): Support --with-arch=.
19750 * doc/invoke.texi (Option Summary, Nios II Options): Document
19751 -march=, -mbmx, and -mcdx.
19753 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
19755 PR rtl-optimization/66626
19756 * lra-constraints.c (lra_constraints): Prevent equivalence
19757 substitution for static chain pseudo in functions with nonlocal
19760 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19762 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
19763 (nios2_emit_stack_limit_check): Add size parameter. Handle
19764 -fstack-limit-symbol as well as -fstack-limit-register.
19765 (nios2_expand_prologue): Emit only a single stack limit check,
19766 even if multiple stack adjustments are required.
19767 (nios2_option_override): Diagnose unsupported combination of -fpic
19768 and -stack-limit-symbol.
19770 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
19772 * Makefile.in (top_srcdir): New.
19773 * configure.ac: Use AM_ZLIB.
19774 * configure: Regeneated.
19776 2015-07-14 Matthias Klose <doko@ubuntu.com>
19779 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
19781 2015-07-14 Richard Biener <rguenther@suse.de>
19783 PR tree-optimization/66863
19784 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
19785 what we record for conversion use stmt lhs inequalities.
19787 2015-07-14 Richard Biener <rguenther@suse.de>
19789 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
19790 (decision_tree::gen_gimple): Likewise.
19792 2015-07-14 Tom de Vries <tom@codesourcery.com>
19794 * gcc.c (greater_than_spec_func): Declare forward.
19795 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
19796 -ftree-parallelize-loops={0,1}.
19797 (static_spec_functions): Add greater_than_spec_func function with name
19799 (greater_than_spec_func): New function.
19801 2015-07-14 Richard Biener <rguenther@suse.de>
19803 * tree-ssa-dom.c (record_temporary_equivalences): Merge
19804 wideing type conversion case from record_equivalences_from_incoming_edge
19805 and use record_equality to record equivalences.
19806 (record_equivalences_from_incoming_edge): Call
19807 record_temporary_equivalences.
19809 2015-07-14 Richard Biener <rguenther@suse.de>
19811 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
19812 (struct if_expr): New.
19813 (struct with_expr): Likewise.
19814 (is_a_helper): Add helpers for if_expr and with_expr.
19815 (struct simplify): Add simplify_kind enum and member. Remove
19817 (simplify::simplify): Adjust.
19818 (lower_commutative): Adjust.
19819 (lower_opt_convert): Likewise.
19820 (lower_cond): Likewise.
19821 (replace_id): Handle with_expr and if_expr.
19822 (lower_for): Adjust.
19823 (dt_simplify::gen_1): New recursive worker, split out from ...
19824 (dt_simplify::gen): ... here. Deal with if and with expansion
19826 (capture_info::capture_info): Take context argument
19827 (capture_info::walk_result): Only analyze specific result.
19828 (parser::parse_result): New function.
19829 (parser::parse_simplify): Adjust to parse ifs with then end
19831 (parser::parse_if): Simplify.
19832 (parser::parse_pattern): Pass down simplify kind.
19833 * match.pd: Convert if structure to new syntax.
19835 2015-07-13 Marek Polacek <polacek@redhat.com>
19837 * rtl.c (rtx_equal_p_cb): Fix typo.
19839 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
19841 * omega.h: Don't include config.h, don't include params.h again if
19842 omega.h has already been included.
19843 * graphite-poly.h: Include sese.h.
19844 * graphite.c: Don't include sese.h, remove needless includes and
19845 minimize includes outside #ifdef HAVE_isl block.
19846 * graphite-blocking.c: Don't include sese.h, remove needless includes,
19847 and wrap entire file in #ifdef HAVE_isl
19848 * graphite-dependences.c: Likewise.
19849 * graphite-interchange.c: Likewise.
19850 * graphite-isl-ast-to-gimple.c: Likewise.
19851 * graphite-optimize-isl.c: Likewise.
19852 * graphite-poly.c: Likewise.
19853 * graphite-scop-detection.c: Likewise.
19854 * graphite-sese-to-poly.c: Likewise.
19856 2015-07-13 Tom de Vries <tom@codesourcery.com>
19858 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
19860 2015-07-13 Renlin Li <renlin.li@arm.com>
19863 * simplify-rtx.c (simplify_const_relational_operation): Add
19864 side_effects_p checks.
19866 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
19868 * bitmap.h: Fix double word typos.
19869 * builtins.c: Same.
19871 * cfgloopmanip.c: Same.
19874 * cgraphclones.c: Same.
19876 * config/aarch64/aarch64-protos.h: Same.
19877 * config/aarch64/aarch64.c: Same.
19878 * config/aarch64/aarch64.md: Same.
19879 * config/arm/arm.md: Same.
19880 * config/arm/arm1020e.md: Same.
19881 * config/arm/arm1026ejs.md: Same.
19882 * config/arm/arm926ejs.md: Same.
19883 * config/arm/fa526.md: Same.
19884 * config/arm/fa606te.md: Same.
19885 * config/arm/fa626te.md: Same.
19886 * config/arm/fa726te.md: Same.
19887 * config/arm/fmp626.md: Same.
19888 * config/darwin.c: Same.
19889 * config/epiphany/epiphany.c: Same.
19890 * config/frv/frv.c: Same.
19891 * config/ft32/ft32.c: Same.
19892 * config/gnu-user.h: Same.
19893 * config/h8300/constraints.md: Same.
19894 * config/i386/i386.c: Same.
19895 * config/i386/i386.md: Same.
19896 * config/iq2000/iq2000.md: Same.
19897 * config/mips/mips.c: Same.
19898 * config/mmix/mmix.md: Same.
19899 * config/moxie/moxie.c: Same.
19900 * config/nds32/nds32.md: Same.
19901 * config/pa/pa.h: Same.
19902 * config/rs6000/aix.h: Same.
19903 * config/rs6000/rs6000.h: Same.
19904 * config/sh/sh.c: Same.
19905 * config/tilegx/tilegx.md: Same.
19906 * config/tilepro/gen-mul-tables.cc: Same.
19909 * doc/invoke.texi: Same.
19911 * dwarf2out.c: Same.
19914 * genmatch.c: Same.
19915 * gimplify.c: Same.
19916 * hash-table.h: Same.
19917 * internal-fn.c: Same.
19919 * ipa-devirt.c: Same.
19922 * ipa-profile.c: Same.
19923 * ipa-prop.c: Same.
19924 * ipa-prop.h: Same.
19927 * reg-stack.c: Same.
19928 * regcprop.c: Same.
19933 * tree-inline.c: Same.
19934 * tree-sra.c: Same.
19935 * tree-ssa-dom.c: Same.
19936 * tree-ssa-loop-ivopts.c: Same.
19937 * tree-ssa-structalias.c: Same.
19938 * tree-ssa-tail-merge.c: Same.
19939 * tree-ssa-ter.c: Same.
19940 * tree-ssa-threadupdate.c: Same.
19941 * tree-ssa-uninit.c: Same.
19942 * tree-ssanames.c: Same.
19943 * tree-vect-loop-manip.c: Same.
19944 * tree-vrp.c: Same.
19946 * valtrack.c: Same.
19949 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
19951 PR middle-end/66726
19952 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
19953 tree_ssa_phiopt_worker): Call it.
19955 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
19957 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
19958 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
19961 2015-07-11 Marek Polacek <polacek@redhat.com>
19963 PR middle-end/66353
19964 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
19965 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
19966 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
19967 rather than bb_has_abnormal_call_pred.
19968 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
19969 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
19970 rather than bb_has_abnormal_call_pred.
19972 2015-07-10 Anatoly Sokolov <aesok@post.ru>
19974 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
19975 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
19976 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19977 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
19978 v850_legitimate_address_p): New functions.
19979 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
19981 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
19984 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
19985 indirect sibcall with register arguments if register available
19986 for argument passing.
19987 (init_cumulative_args): Set cfun->machine->arg_reg_available
19988 to (cum->nregs > 0) or to true if function has a variable
19990 (function_arg_advance_32): Set cfun->machine->arg_reg_available
19991 to false if cum->nregs <= 0.
19992 * config/i386/i386.h (machine_function): Add arg_reg_available.
19994 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
19996 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
19997 and gen_higpart instead of gen_rtx_SUBREG.
19998 * config/i386/i386.md
19999 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
20000 (read-modify peephole2): Use gen_lowpart instead of
20001 gen_rtx_SUBREG for operand 5.
20003 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
20005 * config/tilepro/gen-mul-tables.cc (main): Change include list for
20007 * config/tilepro/mul-tables.c: Regenerate.
20008 * config/tilegx/mul-tables.c: Regenerate.
20010 2015-07-10 Richard Biener <rguenther@suse.de>
20012 * fold-const.c (distribute_bit_expr): Remove.
20013 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
20014 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
20015 to A & (B | C) and simplifying A << C1 << C2 to ...
20016 * match.pd: ... patterns here.
20018 2015-07-10 Jiong Wang <jiong.wang@arm.com>
20020 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
20021 Mark mem as READONLY and NOTRAP for PIC symbol.
20023 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
20025 * gimple-predict.h: New file.
20026 (gimple_predict_predictor, gimple_predict_set_predictor,
20027 gimple_predict_outcome, gimple_predict_set_outcome,
20028 gimple_build_predict): Relocate here.
20029 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
20030 gimple_predict_outcome, gimple_predict_set_outcome): Move to
20032 * gimple.c (gimple_build_predict): Move to gimple-predict.h
20033 * basic-block.h: Don't include cfghooks.h.
20034 * backend.h: Don't include predict.h.
20035 * cfghooks.h: Include predict.h.
20036 * gimple-pretty-print.c: Include gimple-predict.h.
20037 * gimplify.c: Likwise.
20038 * predict.c: Adjust includes.
20039 * tree-inline.c: Likewise.
20040 * asan.c: Likewise.
20041 * auto-inc-dec.c: Likewise.
20042 * auto-profile.c: Likewise.
20043 * bb-reorder.c: Likewise.
20044 * builtins.c: Likewise.
20045 * caller-save.c: Likewise.
20046 * calls.c: Likewise.
20047 * cfganal.c: Likewise.
20048 * cfgbuild.c: Likewise.
20050 * cfgcleanup.c: Likewise.
20051 * cfgexpand.c: Likewise.
20052 * cfghooks.c: Likewise.
20053 * cfgloopanal.c: Likewise.
20054 * cfgloop.c: Likewise.
20055 * cfgloopmanip.c: Likewise.
20056 * cfgrtl.c: Likewise.
20057 * cgraph.c: Likewise.
20058 * cgraphunit.c: Likewise.
20059 * combine.c: Likewise.
20060 * cprop.c: Likewise.
20063 * dojump.c: Likewise.
20065 * except.c: Likewise.
20066 * expmed.c: Likewise.
20067 * expr.c: Likewise.
20068 * final.c: Likewise.
20069 * fold-const.c: Likewise.
20070 * function.c: Likewise.
20071 * fwprop.c: Likewise.
20072 * gcc-plugin.h: Likewise.
20073 * gcse.c: Likewise.
20074 * genattrtab.c: Likewise.
20075 * genemit.c: Likewise.
20076 * gengtype.c: Likewise.
20077 * genopinit.c: Likewise.
20078 * genoutput.c: Likewise.
20079 * genpreds.c: Likewise.
20080 * genrecog.c: Likewise.
20081 * gimple-fold.c: Likewise.
20082 * gimple-iterator.c: Likewise.
20083 * gimple-ssa-isolate-paths.c: Likewise.
20084 * gimple-ssa-strength-reduction.c: Likewise.
20085 * graph.c: Likewise.
20086 * graphite-blocking.c: Likewise.
20087 * graphite.c: Likewise.
20088 * graphite-dependences.c: Likewise.
20089 * graphite-interchange.c: Likewise.
20090 * graphite-isl-ast-to-gimple.c: Likewise.
20091 * graphite-optimize-isl.c: Likewise.
20092 * graphite-poly.c: Likewise.
20093 * graphite-scop-detection.c: Likewise.
20094 * graphite-sese-to-poly.c: Likewise.
20095 * haifa-sched.c: Likewise.
20096 * ifcvt.c: Likewise.
20097 * internal-fn.c: Likewise.
20098 * ipa-cp.c: Likewise.
20099 * ipa-profile.c: Likewise.
20100 * ipa-split.c: Likewise.
20101 * ipa-utils.c: Likewise.
20102 * ira-build.c: Likewise.
20103 * ira-color.c: Likewise.
20104 * ira-conflicts.c: Likewise.
20105 * ira-costs.c: Likewise.
20106 * ira-emit.c: Likewise.
20107 * ira-lives.c: Likewise.
20108 * jump.c: Likewise.
20109 * loop-doloop.c: Likewise.
20110 * loop-init.c: Likewise.
20111 * loop-invariant.c: Likewise.
20112 * loop-unroll.c: Likewise.
20113 * lower-subreg.c: Likewise.
20114 * lra-assigns.c: Likewise.
20116 * lra-coalesce.c: Likewise.
20117 * lra-constraints.c: Likewise.
20118 * lra-lives.c: Likewise.
20119 * lto-cgraph.c: Likewise.
20120 * lto-streamer-in.c: Likewise.
20121 * mode-switching.c: Likewise.
20122 * modulo-sched.c: Likewise.
20123 * omp-low.c: Likewise.
20124 * optabs.c: Likewise.
20125 * passes.c: Likewise.
20126 * postreload.c: Likewise.
20127 * postreload-gcse.c: Likewise.
20128 * profile.c: Likewise.
20129 * recog.c: Likewise.
20130 * regstat.c: Likewise.
20131 * reload1.c: Likewise.
20132 * reorg.c: Likewise.
20133 * rtlanal.c: Likewise.
20134 * sched-ebb.c: Likewise.
20135 * sel-sched-ir.c: Likewise.
20136 * sese.c: Likewise.
20137 * shrink-wrap.c: Likewise.
20138 * simplify-rtx.c: Likewise.
20139 * stmt.c: Likewise.
20140 * store-motion.c: Likewise.
20141 * tracer.c: Likewise.
20142 * trans-mem.c: Likewise.
20143 * tree-call-cdce.c: Likewise.
20144 * tree-cfg.c: Likewise.
20145 * tree-cfgcleanup.c: Likewise.
20146 * tree-chkp.c: Likewise.
20147 * tree-complex.c: Likewise.
20148 * tree-eh.c: Likewise.
20149 * tree-if-conv.c: Likewise.
20150 * tree-loop-distribution.c: Likewise.
20151 * tree-outof-ssa.c: Likewise.
20152 * tree-parloops.c: Likewise.
20153 * tree-predcom.c: Likewise.
20154 * tree-pretty-print.c: Likewise.
20155 * tree-profile.c: Likewise.
20156 * tree-sra.c: Likewise.
20157 * tree-ssa.c: Likewise.
20158 * tree-ssa-coalesce.c: Likewise.
20159 * tree-ssa-dce.c: Likewise.
20160 * tree-ssa-dom.c: Likewise.
20161 * tree-ssa-forwprop.c: Likewise.
20162 * tree-ssa-ifcombine.c: Likewise.
20163 * tree-ssa-loop-ch.c: Likewise.
20164 * tree-ssa-loop-im.c: Likewise.
20165 * tree-ssa-loop-ivcanon.c: Likewise.
20166 * tree-ssa-loop-ivopts.c: Likewise.
20167 * tree-ssa-loop-manip.c: Likewise.
20168 * tree-ssa-loop-prefetch.c: Likewise.
20169 * tree-ssa-loop-unswitch.c: Likewise.
20170 * tree-ssa-math-opts.c: Likewise.
20171 * tree-ssa-phiopt.c: Likewise.
20172 * tree-ssa-pre.c: Likewise.
20173 * tree-ssa-reassoc.c: Likewise.
20174 * tree-ssa-sink.c: Likewise.
20175 * tree-ssa-tail-merge.c: Likewise.
20176 * tree-ssa-threadedge.c: Likewise.
20177 * tree-ssa-threadupdate.c: Likewise.
20178 * tree-switch-conversion.c: Likewise.
20179 * tree-tailcall.c: Likewise.
20180 * tree-vect-data-refs.c: Likewise.
20181 * tree-vect-loop.c: Likewise.
20182 * tree-vect-loop-manip.c: Likewise.
20183 * tree-vectorizer.c: Likewise.
20184 * tree-vrp.c: Likewise.
20185 * ubsan.c: Likewise.
20186 * value-prof.c: Likewise.
20187 * varasm.c: Likewise.
20188 * var-tracking.c: Likewise.
20189 * config/aarch64/aarch64-builtins.c: Likewise.
20190 * config/aarch64/aarch64.c: Likewise.
20191 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20192 * config/alpha/alpha.c: Likewise.
20193 * config/arc/arc.c: Likewise.
20194 * config/arm/arm.c: Likewise.
20195 * config/avr/avr.c: Likewise.
20196 * config/bfin/bfin.c: Likewise.
20197 * config/c6x/c6x.c: Likewise.
20198 * config/cr16/cr16.c: Likewise.
20199 * config/cris/cris.c: Likewise.
20200 * config/darwin.c: Likewise.
20201 * config/darwin-c.c: Likewise.
20202 * config/epiphany/epiphany.c: Likewise.
20203 * config/epiphany/mode-switch-use.c: Likewise.
20204 * config/epiphany/resolve-sw-modes.c: Likewise.
20205 * config/fr30/fr30.c: Likewise.
20206 * config/frv/frv.c: Likewise.
20207 * config/ft32/ft32.c: Likewise.
20208 * config/h8300/h8300.c: Likewise.
20209 * config/i386/i386.c: Likewise.
20210 * config/i386/winnt.c: Likewise.
20211 * config/ia64/ia64.c: Likewise.
20212 * config/iq2000/iq2000.c: Likewise.
20213 * config/lm32/lm32.c: Likewise.
20214 * config/m32c/m32c.c: Likewise.
20215 * config/m32r/m32r.c: Likewise.
20216 * config/m68k/m68k.c: Likewise.
20217 * config/mcore/mcore.c: Likewise.
20218 * config/mep/mep.c: Likewise.
20219 * config/microblaze/microblaze.c: Likewise.
20220 * config/mips/mips.c: Likewise.
20221 * config/mmix/mmix.c: Likewise.
20222 * config/mn10300/mn10300.c: Likewise.
20223 * config/moxie/moxie.c: Likewise.
20224 * config/msp430/msp430.c: Likewise.
20225 * config/nds32/nds32.c: Likewise.
20226 * config/nds32/nds32-cost.c: Likewise.
20227 * config/nds32/nds32-fp-as-gp.c: Likewise.
20228 * config/nds32/nds32-intrinsic.c: Likewise.
20229 * config/nds32/nds32-isr.c: Likewise.
20230 * config/nds32/nds32-md-auxiliary.c: Likewise.
20231 * config/nds32/nds32-memory-manipulation.c: Likewise.
20232 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20233 * config/nds32/nds32-predicates.c: Likewise.
20234 * config/nios2/nios2.c: Likewise.
20235 * config/nvptx/nvptx.c: Likewise.
20236 * config/pa/pa.c: Likewise.
20237 * config/pdp11/pdp11.c: Likewise.
20238 * config/rl78/rl78.c: Likewise.
20239 * config/rs6000/rs6000.c: Likewise.
20240 * config/rx/rx.c: Likewise.
20241 * config/s390/s390.c: Likewise.
20242 * config/sh/sh.c: Likewise.
20243 * config/sh/sh-mem.cc: Likewise.
20244 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20245 * config/sh/sh_treg_combine.cc: Likewise.
20246 * config/sparc/sparc.c: Likewise.
20247 * config/spu/spu.c: Likewise.
20248 * config/stormy16/stormy16.c: Likewise.
20249 * config/tilegx/tilegx.c: Likewise.
20250 * config/tilepro/tilepro.c: Likewise.
20251 * config/v850/v850.c: Likewise.
20252 * config/vax/vax.c: Likewise.
20253 * config/visium/visium.c: Likewise.
20254 * config/xtensa/xtensa.c: Likewise.
20256 2015-07-10 Richard Biener <rguenther@suse.de>
20258 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
20259 (decision_tree::gen_gimple): Likewise.
20260 (decision_tree::gen_generic): Likewise.
20262 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
20265 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
20266 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
20268 2015-07-10 Jakub Jelinek <jakub@redhat.com>
20270 PR middle-end/66820
20271 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
20272 or ORT_TASK contexts.
20273 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
20276 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20278 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
20281 2015-07-10 Tom de Vries <tom@codesourcery.com>
20283 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
20284 insert nit + 1 bound.
20286 2015-07-10 Richard Biener <rguenther@suse.de>
20288 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
20289 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
20290 (if_convertible_loop_p_1): For this always compute bb predicates.
20291 (if_convertible_loop_p): And free them.
20293 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20295 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
20298 2015-07-10 Richard Biener <rguenther@suse.de>
20300 PR tree-optimization/66823
20301 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
20302 inverted predicate.
20304 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
20306 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
20307 to handle mips[32|64]r3 and mips[32|64]r5.
20309 2015-07-09 Jakub Jelinek <jakub@redhat.com>
20311 PR middle-end/66633
20312 * tree-nested.c (get_static_chain): Or in a flag into
20313 info->static_chain_added.
20314 (get_frame_field, get_nonlocal_debug_decl): Likewise.
20315 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
20316 2015-07-01 changes.
20317 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
20318 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
20321 PR tree-optimization/66718
20322 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
20324 (vect_simd_lane_linear): New function.
20325 (vectorizable_simd_clone_call): Support using linear arguments for
20326 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
20328 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20331 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
20333 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
20335 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
20336 Use machine mode, not enum machine_mode in the prototype.
20338 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
20339 classify 128-bit floating point support.
20340 (FLOAT128_IBM_P): Likewise.
20341 (FLOAT128_VECTOR_P): Likewise.
20342 (FLOAT128_2REG_P): Likewise.
20343 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
20344 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
20345 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
20346 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
20348 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
20349 tests against TFmode/TDmode, since those modes do not use VSX
20351 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
20353 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
20354 tests against TFmode, etc.
20355 (invalid_e500_subreg): Add tests against IFmode/KFmode.
20356 (reg_offset_addressing_ok_p): Likewise.
20357 (rs6000_legitimate_offset_address_p): Likewise.
20358 (rs6000_legitimize_address): Likewise.
20359 (rs6000_legitimize_reload_address): Likewise.
20360 (rs6000_legitimate_address_p): Clean up tests against TFmode and
20361 TDmode to use the new helper macros, which will include IFmode and
20363 (rs6000_emit_move): Likewise.
20364 (rs6000_darwin64_record_arg_recurse): Likewise.
20365 (print_operand): Likewise.
20366 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
20367 that uses a single vector register as a vector and not as a
20368 floating point register in terms of the calling sequence.
20369 (rs6000_discover_homogeneous_aggregate): Likewise.
20370 (rs6000_return_in_memory): Likewise.
20371 (init_cumulative_args): Likewise.
20372 (rs6000_function_arg_boundary): Likewise.
20373 (rs6000_function_arg_advance_1): Likewise.
20374 (rs6000_function_arg): Likewise.
20375 (rs6000_pass_by_reference): Likewise.
20376 (rs6000_gimplify_va_arg): Likewise.
20377 (rs6000_secondary_reload_memory): Use machine_mode not enum
20379 (rs6000_split_multireg_move): Use new helper macros.
20380 (spe_func_has_64bit_regs_p): Likewise.
20381 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
20382 (output_toc): Use new helper macros.
20383 (rs6000_register_move_cost): Likewise.
20384 (rs6000_function_value): Add IEEE 128-bit floating point calling
20386 (rs6000_libcall_value): Likewise.
20387 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
20388 floating point support.
20389 (rs6000_vector_mode_supported_p): Likewise.
20391 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
20393 PR rtl-optimization/66782
20394 * lra-int.h (struct lra_insn_recog_data): Add comment about
20395 clobbered hard regs for arg_hard_regs.
20396 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
20397 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
20398 Add condition for processing used hard regs.
20399 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
20400 Process clobbered hard regs.
20402 2015-07-09 Michael Matz <matz@suse.de>
20404 * genmatch.c (fprintf_indent): New function.
20405 (operand::gen_transform): Add indent parameter.
20406 (expr::gen_transform, c_expr::gen_transform,
20407 capture::gen_transform): Ditto and use fprintf_indent.
20408 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
20409 (dt_operand::gen, dt_operand::gen_predicate,
20410 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
20411 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
20412 (decision_tree::gen_gimple): Adjust calls and indent generated
20414 (decision_tree::gen_generic): Ditto.
20415 (write_predicate): Ditto.
20417 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20420 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
20421 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
20422 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
20423 {GENERAL,SSE,MMX}_REG_P where appropriate.
20425 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
20427 * lto-streamer.h: Don't include target.h and alloc-pool.h.
20428 * builtins.c: Adjust includes.
20429 * gimple.c: Likewise.
20430 * ipa-icf.c: Likewise.
20431 * lto-opts.c: Likewise.
20432 * ipa-reference.c: Likewise.
20433 * lto-section-out.c: Likewise.
20434 * lto-streamer-in.c: Likewise.
20435 * lto-streamer-out.c: Likewise.
20436 * opts-global.c: Likewise.
20437 * symtab.c: Likewise.
20438 * tree-chkp.c: Likewise.
20439 * tree-ssa-live.c: Likewise.
20440 * tree-streamer-in.c: Likewise.
20441 * tree-streamer-out.c: Likewise.
20442 * config/darwin.c: Likewise.
20443 * config/i386/winnt.c: Likewise.
20445 2015-07-09 Richard Biener <rguenther@suse.de>
20447 * genmatch.c (struct expr): Add force_single_use flag.
20448 (expr::expr): Add copy constructor.
20449 (capture_info::walk_match): Gather force_single_use captures.
20450 (expr::gen_transform): Use possibly NULLified sequence.
20451 (dt_simplify::gen): Apply single-use restrictions by NULLifying
20452 seq if any constrained expr is not single-use.
20453 (parser::parse_expr): Refactor to allow multiple flags. Handle
20454 's' flag to force an expression have a single-use if the pattern
20455 simplifies to more than one statement.
20456 * match.pd: Convert most single_use conditionals to :s flags.
20458 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20460 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
20461 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20462 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
20464 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
20466 * flags.h: Don't include flag-types.h or options.h.
20467 * opts-common.c: Adjust includes.
20468 * opts-global.c: Likewise.
20469 * common/config/epiphany/epiphany-common.c: Likewise.
20471 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20474 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
20477 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20480 * config/i386/i386.c (ix86_return_in_memory): Return true
20481 if int_size_in_bytes returns negative for IA MCU.
20483 2015-07-09 Marek Polacek <polacek@redhat.com>
20485 PR tree-optimization/66718
20486 * Makefile.in (OBJS): Add gimple-laddress.o.
20487 * passes.def: Schedule pass_laddress.
20488 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
20489 * tree-pass.h (make_pass_laddress): Declare.
20490 * gimple-laddress.c: New file.
20492 2015-07-09 Richard Biener <rguenther@suse.de>
20494 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
20496 2015-07-09 Richard Biener <rguenther@suse.de>
20498 PR tree-optimization/66807
20499 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
20501 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
20503 * function.c (stack_protect_epilogue): Use if rather than switch for
20504 check targetm.have_stack_protect_test.
20506 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20508 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
20509 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
20510 * config/arc/arc.h: Likewise.
20511 * config/arm/arm.h: Likewise.
20512 * config/bfin/bfin.h: Likewise.
20513 * config/epiphany/epiphany.h: Likewise.
20514 * config/frv/frv.h: Likewise.
20515 * config/ia64/ia64.h: Likewise.
20516 * config/iq2000/iq2000.h: Likewise.
20517 * config/lm32/lm32.h: Likewise.
20518 * config/m32r/m32r.h: Likewise.
20519 * config/mcore/mcore.h: Likewise.
20520 * config/mep/mep.h: Likewise.
20521 * config/microblaze/microblaze.h: Likewise.
20522 * config/mips/mips.h: Likewise.
20523 * config/mmix/mmix.h: Likewise.
20524 * config/mn10300/mn10300.h: Likewise.
20525 * config/nds32/nds32.h: Likewise.
20526 * config/nios2/nios2.h: Likewise.
20527 * config/pa/pa.h: Likewise.
20528 * config/rl78/rl78.h: Likewise.
20529 * config/sh/sh.h: Likewise.
20530 * config/sparc/sparc.h: Likewise.
20531 * config/stormy16/stormy16.h: Likewise.
20532 * config/tilegx/tilegx.h: Likewise.
20533 * config/tilepro/tilepro.h: Likewise.
20534 * config/v850/v850.h: Likewise.
20535 * config/xtensa/xtensa.h: Likewise.
20536 * doc/tm.texi: Regenerate.
20537 * doc/tm.texi.in: Adjust.
20538 * combine.c (simplify_set): Likewise.
20539 (simplify_comparison): Likewise.
20540 * expr.c (store_constructor): Likewise.
20541 * internal-fn.c (expand_arith_overflow): Likewise.
20542 * reload.c (push_reload): Likewise.
20543 (find_reloads): Likewise.
20544 (find_reloads_subreg_address): Likewise.
20545 * reload1.c (eliminate_regs_1): Likewise.
20546 * rtlanal.c (nonzero_bits1): Likewise.
20547 (num_sign_bit_copies1): Likewise.
20548 * simplify-rtx.c (simplify_truncation): Likewise.
20550 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20552 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
20553 of AUTO_INC_DEC with the preprocessor.
20554 * combine.c (combine_instructions): Likewise.
20555 (can_combine_p): Likewise.
20556 (try_combine): Likewise.
20557 * emit-rtl.c (try_split): Likewise.
20558 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20559 * lower-subreg.c (resolve_simple_move): Likewise.
20560 * lra.c (update_inc_notes): Likewise.
20561 * recog.c (asm_operand_ok): Likewise.
20562 (constrain_operands): Likewise.
20563 * regrename.c (scan_rtx_address): Likewise.
20564 * reload.c (update_auto_inc_notes): Likewise.
20565 (reg_inc_found_and_valid_p): Likewise.
20566 * reload1.c (reload): Likewise.
20567 (emit_input_reload_insns): Likewise.
20568 (delete_output_reload): Likewise.
20569 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20570 * valtrack.c (cleanup_auto_inc_dec): Likewise.
20572 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20574 * rtl.h: Always define AUTO_INC_DEC.
20575 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
20576 * combine.c (combine_instructions): Likewise.
20577 (can_combine_p): Likewise.
20578 (try_combine): Likewise.
20579 * emit-rtl.c (try_split): Likewise.
20580 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20581 * lower-subreg.c (resolve_simple_move): Likewise.
20582 * lra.c (update_inc_notes): Likewise.
20583 * recog.c (asm_operand_ok): Likewise.
20584 (constrain_operands): Likewise.
20585 * regrename.c (scan_rtx_address): Likewise.
20586 * reload.c (update_auto_inc_notes): Likewise.
20587 (find_equiv_reg): Likewise.
20588 * reload1.c (reload): Likewise.
20589 (reload_as_needed): Likewise.
20590 (choose_reload_regs): Likewise.
20591 (emit_input_reload_insns): Likewise.
20592 (delete_output_reload): Likewise.
20593 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20594 * valtrack.c (cleanup_auto_inc_dec): Likewise.
20596 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20598 * combine.c (can_combine_def_p): Don't check the value of
20599 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
20600 (combinable_i3pat): Likewise.
20601 (mark_used_regs_combine): Likewise.
20602 * regrename.c (rename_chains): Likewise.
20603 * reload.c (find_reloads_address): Likewise.
20604 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20606 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20608 * combine.c (update_rsp_from_reg_equal): Don't check if
20609 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
20610 (reg_nonzero_bits_for_combine): Likewise.
20611 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
20613 * config/frv/frv.h: Likewise.
20614 * config/lm32/lm32.h: Likewise.
20615 * config/mep/mep.h: Likewise.
20616 * config/mips/mips.h: Likewise.
20617 * config/rs6000/rs6000.h: Likewise.
20618 * config/sh/sh.h: Likewise.
20619 * config/tilegx/tilegx.h (enum reg_class): Likewise.
20620 * config/tilepro/tilepro.h: Likewise.
20621 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
20622 * doc/tm.texi: Regenerate.
20623 * doc/tm.texi.in: Adjust.
20624 * rtlanal.c (nonzero_bits1): Likewise.
20626 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20628 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
20629 with the preprocessor.
20630 (combine_instructions): Likewise.
20631 (try_combine): Likewise.
20633 (distribute_notes): Likewise.
20635 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20637 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
20639 (simplify_set): Likewise.
20640 * cse.c (cse_insn): Likewise.
20641 * fold-const.c (fold_single_bit_test): Likewise.
20642 (fold_unary_loc): Likewise.
20643 * postreload.c (reload_cse_simplify_set): Likewise.
20644 (reload_cse_simplify_operands): Likewise.
20646 2015-07-08 Jiong Wang <jiong.wang@arm.com>
20648 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
20649 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
20651 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20654 * config/i386/x86intrin.h: Include <adxintrin.h> even if
20655 __iamcu__ is defined.
20657 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20659 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
20661 2015-07-08 Iain Sandoe <iain@codesourcery.com>
20664 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
20665 names from preservation.
20667 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20670 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
20672 (function_arg_advance_32): Don't pass vectors in registers for
20674 (function_arg_32): Likewise.
20675 (ix86_return_in_memory): Don't return vectors in registers for
20678 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
20680 PR middle-end/66334
20681 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
20682 hard regno live at the start of BB with incoming abnormal edges.
20683 * lra-lives.c (process_bb_lives): Ditto.
20685 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
20688 * config/nvptx/mkoffload.c (main): Create an offload image only in
20689 64-bit configurations.
20691 2015-07-08 Martin Liska <mliska@suse.cz>
20694 * tree-sra.c (create_access_1): Call ctor without brackets.
20695 (create_artificial_child_access): Likewise.
20697 2015-07-08 Richard Biener <rguenther@suse.de>
20699 PR tree-optimization/66793
20700 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
20701 Properly split the block after stmts ending it.
20703 2015-07-08 Richard Biener <rguenther@suse.de>
20705 PR tree-optimization/66794
20706 * passes.c (execute_function_todo): Assert that post-dominators
20708 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
20709 Free post-dominators.
20711 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20713 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
20716 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20718 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
20719 more than or equal 8 and less than 32 when optimizing for size.
20721 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20723 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
20724 COSTS_N_INSNS (1) and increment it appropriately throughout the
20727 2015-07-08 Richard Biener <rguenther@suse.de>
20729 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
20731 2015-07-08 Alan Modra <amodra@gmail.com>
20733 * target.def (rtx_costs): Remove "code" param, add "mode".
20734 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
20735 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
20736 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
20737 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
20738 call. Track mode when given in rtx.
20739 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
20740 (default_address_cost): Pass Pmode to rtx_cost.
20741 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
20742 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
20744 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
20745 (notreg_cost): Add mode param. Use it.
20746 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
20747 mode param and pass to set_src_cost. Update all calls.
20748 (hash_scan_set): Formatting.
20749 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
20750 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
20752 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
20753 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
20754 emit_store_flag): Update set_src_cost and rtx_cost calls.
20755 * auto-inc-dec.c (attempt_change): Likewise.
20756 * calls.c (precompute_register_parameters): Likewise.
20757 * combine.c (expand_compound_operation, make_extraction,
20758 force_to_mode, distribute_and_simplify_rtx): Likewise.
20759 * dojump.c (prefer_and_bit_test): Likewise.
20760 * dse.c (find_shift_sequence): Likewise.
20761 * expr.c (compress_float_constant): Likewise.
20762 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
20763 * ifcvt.c (noce_try_sign_mask): Likewise.
20764 * loop-doloop.c (doloop_optimize): Likewise.
20765 * loop-invariant.c (create_new_invariant): Likewise.
20766 * lower-subreg.c (shift_cost, compute_costs): Likewise.
20767 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
20768 lshift_cheap_p): Likewise.
20769 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
20770 try_replace_in_use, reload_cse_move2add): Likewise.
20771 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
20773 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20774 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20775 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
20776 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20777 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
20778 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
20780 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
20781 * config/arc/arc.c (arc_rtx_costs): Likewise.
20782 * config/arm/arm.c (arm_rtx_costs): Likewise.
20783 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
20784 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
20785 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
20786 * config/cris/cris.c (cris_rtx_costs): Likewise.
20787 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
20788 * config/frv/frv.c (frv_rtx_costs): Likewise.
20789 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
20790 * config/i386/i386.c (ix86_rtx_costs): Likewise.
20791 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
20792 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
20793 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
20794 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
20795 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
20796 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
20797 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
20798 * config/mep/mep.c (mep_rtx_cost): Likewise.
20799 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
20800 * config/mips/mips.c (mips_rtx_costs): Likewise.
20801 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
20802 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
20803 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
20804 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
20805 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
20806 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
20807 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
20808 * config/pa/pa.c (hppa_rtx_costs): Likewise.
20809 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
20810 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
20811 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
20812 * config/s390/s390.c (s390_rtx_costs): Likewise.
20813 * config/sh/sh.c (sh_rtx_costs): Likewise.
20814 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
20815 * config/spu/spu.c (spu_rtx_costs): Likewise.
20816 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
20817 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
20818 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
20819 * config/v850/v850.c (v850_rtx_costs): Likewise.
20820 * config/vax/vax.c (vax_rtx_costs): Likewise.
20821 * config/visium/visium.c (visium_rtx_costs): Likewise.
20822 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
20823 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
20824 "code" param, and pass as outer_code to first rtx_cost call. Pass
20825 mode to rtx_cost calls.
20826 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
20828 (aarch64_rtx_costs_wrapper): Update.
20829 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
20830 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
20832 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
20833 and rtx_cost calls.
20834 (avr_operand_rtx_cost): Similarly.
20835 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
20836 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
20837 * config/mips/mips.c (mips_stack_address_p): Comment typo.
20838 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
20839 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
20840 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
20842 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
20843 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
20844 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
20845 * doc/tm.texi: Regenerate.
20847 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
20849 * tree-core.h: Include symtab.h.
20850 * rtl.h: Include hard-reg-set.h but not flags.h.
20851 (HARD_CONST): Remove condition compilation involving HARD_CONST since
20852 hard-reg-set.h is always included.
20853 * regs.h: Don't include hard-reg-set.h or rtl.h.
20854 * cfg.h: Include dominance.h.
20855 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
20856 * backend.h: New. Aggregate commonly used backend header files.
20857 * gimple-ssa.h: Don't include tree-hasher.h.
20858 * ssa.h: New. Aggregate commonly used SSA header files.
20859 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
20860 * sel-sched-ir.h: Flatten includes.
20861 * lra-int.h: Flatten completely.
20862 * sel-sched-dump.h: Flatten includes.
20863 * ira-int.h: Flatten includes.
20864 * gimple-streamer.h: Remove all includes.
20865 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
20866 * resource.h: Flatten hard-reg-set.h and df.h.
20867 * sched-int.h: Flatten insn-arrt.h and df.h.
20868 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
20869 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
20870 * genattrtab.c (write_header): Adjust generated includes.
20871 * genautomata.c (main): Likewise.
20872 * genconditions.c (write-header): Likewise.
20873 * genemit.c (main): Likewise.
20874 * gengtype.c (open_base_files): Likewise.
20875 * genopinit.c (main): Likewise.
20876 * genoutput.c (output_prologue): Likewise.
20877 * genpeep.c (main): Likewise.
20878 * genpreds.c (write_insn_preds_c): Likewise.
20879 * genrecog.c (write_header): Likewise.
20880 * alias.c: Adjust includes.
20881 * asan.c: Likewise.
20882 * attribs.c: Likewise.
20883 * auto-inc-dec.c: Likewise.
20884 * auto-profile.c: Likewise.
20885 * bb-reorder.c: Likewise.
20886 * bt-load.c: Likewise.
20887 * builtins.c: Likewise.
20888 * caller-save.c: Likewise.
20889 * calls.c: Likewise.
20890 * ccmp.c: Likewise.
20892 * cfganal.c: Likewise.
20893 * cfgbuild.c: Likewise.
20894 * cfgcleanup.c: Likewise.
20895 * cfgexpand.c: Likewise.
20896 * cfghooks.c: Likewise.
20897 * cfgloop.c: Likewise.
20898 * cfgloopanal.c: Likewise.
20899 * cfgloopmanip.c: Likewise.
20900 * cfgrtl.c: Likewise.
20901 * cgraph.c: Likewise.
20902 * cgraphbuild.c: Likewise.
20903 * cgraphclones.c: Likewise.
20904 * cgraphunit.c: Likewise.
20905 * cilk-common.c: Likewise.
20906 * combine-stack-adj.c: Likewise.
20907 * combine.c: Likewise.
20908 * compare-elim.c: Likewise.
20909 * convert.c: Likewise.
20910 * coverage.c: Likewise.
20911 * cppbuiltin.c: Likewise.
20912 * cprop.c: Likewise.
20914 * cselib.c: Likewise.
20915 * data-streamer-in.c: Likewise.
20916 * data-streamer-out.c: Likewise.
20917 * data-streamer.c: Likewise.
20918 * dbxout.c: Likewise.
20921 * debug.c: Likewise.
20922 * df-core.c: Likewise.
20923 * df-problems.c: Likewise.
20924 * df-scan.c: Likewise.
20926 * dojump.c: Likewise.
20927 * dominance.c: Likewise.
20928 * domwalk.c: Likewise.
20929 * double-int.c: Likewise.
20931 * dumpfile.c: Likewise.
20932 * dwarf2asm.c: Likewise.
20933 * dwarf2cfi.c: Likewise.
20934 * dwarf2out.c: Likewise.
20935 * emit-rtl.c: Likewise.
20936 * et-forest.c: Likewise.
20937 * except.c: Likewise.
20938 * explow.c: Likewise.
20939 * expmed.c: Likewise.
20940 * expr.c: Likewise.
20941 * final.c: Likewise.
20942 * fixed-value.c: Likewise.
20943 * fold-const.c: Likewise.
20944 * function.c: Likewise.
20945 * fwprop.c: Likewise.
20946 * gcc-plugin.h: Likewise.
20947 * gcse-common.c: Likewise.
20948 * gcse.c: Likewise.
20949 * generic-match-head.c: Likewise.
20950 * ggc-page.c: Likewise.
20951 * gimple-builder.c: Likewise.
20952 * gimple-expr.c: Likewise.
20953 * gimple-fold.c: Likewise.
20954 * gimple-iterator.c: Likewise.
20955 * gimple-low.c: Likewise.
20956 * gimple-match-head.c: Likewise.
20957 * gimple-pretty-print.c: Likewise.
20958 * gimple-ssa-isolate-paths.c: Likewise.
20959 * gimple-ssa-strength-reduction.c: Likewise.
20960 * gimple-streamer-in.c: Likewise.
20961 * gimple-streamer-out.c: Likewise.
20962 * gimple-walk.c: Likewise.
20963 * gimple.c: Likewise.
20964 * gimplify-me.c: Likewise.
20965 * gimplify.c: Likewise.
20966 * godump.c: Likewise.
20967 * graph.c: Likewise.
20968 * graphite-blocking.c: Likewise.
20969 * graphite-dependences.c: Likewise.
20970 * graphite-interchange.c: Likewise.
20971 * graphite-isl-ast-to-gimple.c: Likewise.
20972 * graphite-optimize-isl.c: Likewise.
20973 * graphite-poly.c: Likewise.
20974 * graphite-scop-detection.c: Likewise.
20975 * graphite-sese-to-poly.c: Likewise.
20976 * graphite.c: Likewise.
20977 * haifa-sched.c: Likewise.
20978 * hw-doloop.c: Likewise.
20979 * ifcvt.c: Likewise.
20980 * init-regs.c: Likewise.
20981 * internal-fn.c: Likewise.
20982 * ipa-chkp.c: Likewise.
20983 * ipa-comdats.c: Likewise.
20984 * ipa-cp.c: Likewise.
20985 * ipa-devirt.c: Likewise.
20986 * ipa-icf-gimple.c: Likewise.
20987 * ipa-icf.c: Likewise.
20988 * ipa-inline-analysis.c: Likewise.
20989 * ipa-inline-transform.c: Likewise.
20990 * ipa-inline.c: Likewise.
20991 * ipa-polymorphic-call.c: Likewise.
20992 * ipa-profile.c: Likewise.
20993 * ipa-prop.c: Likewise.
20994 * ipa-pure-const.c: Likewise.
20995 * ipa-ref.c: Likewise.
20996 * ipa-reference.c: Likewise.
20997 * ipa-split.c: Likewise.
20998 * ipa-utils.c: Likewise.
20999 * ipa-visibility.c: Likewise.
21001 * ira-build.c: Likewise.
21002 * ira-color.c: Likewise.
21003 * ira-conflicts.c: Likewise.
21004 * ira-costs.c: Likewise.
21005 * ira-emit.c: Likewise.
21006 * ira-lives.c: Likewise.
21008 * jump.c: Likewise.
21009 * langhooks.c: Likewise.
21011 * loop-doloop.c: Likewise.
21012 * loop-init.c: Likewise.
21013 * loop-invariant.c: Likewise.
21014 * loop-iv.c: Likewise.
21015 * loop-unroll.c: Likewise.
21016 * lower-subreg.c: Likewise.
21017 * lra-assigns.c: Likewise.
21018 * lra-coalesce.c: Likewise.
21019 * lra-constraints.c: Likewise.
21020 * lra-eliminations.c: Likewise.
21021 * lra-lives.c: Likewise.
21022 * lra-remat.c: Likewise.
21023 * lra-spills.c: Likewise.
21025 * lto-cgraph.c: Likewise.
21026 * lto-compress.c: Likewise.
21027 * lto-opts.c: Likewise.
21028 * lto-section-in.c: Likewise.
21029 * lto-section-out.c: Likewise.
21030 * lto-streamer-in.c: Likewise.
21031 * lto-streamer-out.c: Likewise.
21032 * lto-streamer.c: Likewise.
21034 * mode-switching.c: Likewise.
21035 * modulo-sched.c: Likewise.
21036 * omega.c: Likewise.
21037 * omp-low.c: Likewise.
21038 * optabs.c: Likewise.
21039 * opts-global.c: Likewise.
21040 * passes.c: Likewise.
21041 * plugin.c: Likewise.
21042 * postreload-gcse.c: Likewise.
21043 * postreload.c: Likewise.
21044 * predict.c: Likewise.
21045 * print-rtl.c: Likewise.
21046 * print-tree.c: Likewise.
21047 * profile.c: Likewise.
21048 * real.c: Likewise.
21049 * realmpfr.c: Likewise.
21050 * recog.c: Likewise.
21052 * reg-stack.c: Likewise.
21053 * regcprop.c: Likewise.
21054 * reginfo.c: Likewise.
21055 * regrename.c: Likewise.
21056 * regstat.c: Likewise.
21057 * reload.c: Likewise.
21058 * reload1.c: Likewise.
21059 * reorg.c: Likewise.
21060 * resource.c: Likewise.
21061 * rtl-chkp.c: Likewise.
21062 * rtlanal.c: Likewise.
21063 * rtlhooks.c: Likewise.
21064 * sanopt.c: Likewise.
21065 * sched-deps.c: Likewise.
21066 * sched-ebb.c: Likewise.
21067 * sched-rgn.c: Likewise.
21068 * sched-vis.c: Likewise.
21069 * sdbout.c: Likewise.
21070 * sel-sched-dump.c: Likewise.
21071 * sel-sched-ir.c: Likewise.
21072 * sel-sched.c: Likewise.
21073 * sese.c: Likewise.
21074 * shrink-wrap.c: Likewise.
21075 * simplify-rtx.c: Likewise.
21076 * stack-ptr-mod.c: Likewise.
21077 * stmt.c: Likewise.
21078 * stor-layout.c: Likewise.
21079 * store-motion.c: Likewise.
21080 * stringpool.c: Likewise.
21081 * symtab.c: Likewise.
21082 * target-globals.c: Likewise.
21083 * targhooks.c: Likewise.
21084 * toplev.c: Likewise.
21085 * tracer.c: Likewise.
21086 * trans-mem.c: Likewise.
21087 * tree-affine.c: Likewise.
21088 * tree-browser.c: Likewise.
21089 * tree-call-cdce.c: Likewise.
21090 * tree-cfg.c: Likewise.
21091 * tree-cfgcleanup.c: Likewise.
21092 * tree-chkp-opt.c: Likewise.
21093 * tree-chkp.c: Likewise.
21094 * tree-chrec.c: Likewise.
21095 * tree-complex.c: Likewise.
21096 * tree-data-ref.c: Likewise.
21097 * tree-dfa.c: Likewise.
21098 * tree-diagnostic.c: Likewise.
21099 * tree-dump.c: Likewise.
21100 * tree-eh.c: Likewise.
21101 * tree-emutls.c: Likewise.
21102 * tree-if-conv.c: Likewise.
21103 * tree-inline.c: Likewise.
21104 * tree-into-ssa.c: Likewise.
21105 * tree-iterator.c: Likewise.
21106 * tree-loop-distribution.c: Likewise.
21107 * tree-nested.c: Likewise.
21108 * tree-nrv.c: Likewise.
21109 * tree-object-size.c: Likewise.
21110 * tree-outof-ssa.c: Likewise.
21111 * tree-parloops.c: Likewise.
21112 * tree-phinodes.c: Likewise.
21113 * tree-predcom.c: Likewise.
21114 * tree-pretty-print.c: Likewise.
21115 * tree-profile.c: Likewise.
21116 * tree-scalar-evolution.c: Likewise.
21117 * tree-sra.c: Likewise.
21118 * tree-ssa-address.c: Likewise.
21119 * tree-ssa-alias.c: Likewise.
21120 * tree-ssa-ccp.c: Likewise.
21121 * tree-ssa-coalesce.c: Likewise.
21122 * tree-ssa-copy.c: Likewise.
21123 * tree-ssa-copyrename.c: Likewise.
21124 * tree-ssa-dce.c: Likewise.
21125 * tree-ssa-dom.c: Likewise.
21126 * tree-ssa-dse.c: Likewise.
21127 * tree-ssa-forwprop.c: Likewise.
21128 * tree-ssa-ifcombine.c: Likewise.
21129 * tree-ssa-live.c: Likewise.
21130 * tree-ssa-loop-ch.c: Likewise.
21131 * tree-ssa-loop-im.c: Likewise.
21132 * tree-ssa-loop-ivcanon.c: Likewise.
21133 * tree-ssa-loop-ivopts.c: Likewise.
21134 * tree-ssa-loop-manip.c: Likewise.
21135 * tree-ssa-loop-niter.c: Likewise.
21136 * tree-ssa-loop-prefetch.c: Likewise.
21137 * tree-ssa-loop-unswitch.c: Likewise.
21138 * tree-ssa-loop.c: Likewise.
21139 * tree-ssa-math-opts.c: Likewise.
21140 * tree-ssa-operands.c: Likewise.
21141 * tree-ssa-phiopt.c: Likewise.
21142 * tree-ssa-phiprop.c: Likewise.
21143 * tree-ssa-pre.c: Likewise.
21144 * tree-ssa-propagate.c: Likewise.
21145 * tree-ssa-reassoc.c: Likewise.
21146 * tree-ssa-sccvn.c: Likewise.
21147 * tree-ssa-scopedtables.c: Likewise.
21148 * tree-ssa-sink.c: Likewise.
21149 * tree-ssa-strlen.c: Likewise.
21150 * tree-ssa-structalias.c: Likewise.
21151 * tree-ssa-tail-merge.c: Likewise.
21152 * tree-ssa-ter.c: Likewise.
21153 * tree-ssa-threadedge.c: Likewise.
21154 * tree-ssa-threadupdate.c: Likewise.
21155 * tree-ssa-uncprop.c: Likewise.
21156 * tree-ssa-uninit.c: Likewise.
21157 * tree-ssa.c: Likewise.
21158 * tree-ssanames.c: Likewise.
21159 * tree-stdarg.c: Likewise.
21160 * tree-streamer-in.c: Likewise.
21161 * tree-streamer-out.c: Likewise.
21162 * tree-streamer.c: Likewise.
21163 * tree-switch-conversion.c: Likewise.
21164 * tree-tailcall.c: Likewise.
21165 * tree-vect-data-refs.c: Likewise.
21166 * tree-vect-generic.c: Likewise.
21167 * tree-vect-loop-manip.c: Likewise.
21168 * tree-vect-loop.c: Likewise.
21169 * tree-vect-patterns.c: Likewise.
21170 * tree-vect-slp.c: Likewise.
21171 * tree-vect-stmts.c: Likewise.
21172 * tree-vectorizer.c: Likewise.
21173 * tree-vrp.c: Likewise.
21174 * tree.c: Likewise.
21175 * tsan.c: Likewise.
21176 * ubsan.c: Likewise.
21177 * valtrack.c: Likewise.
21178 * value-prof.c: Likewise.
21179 * var-tracking.c: Likewise.
21180 * varasm.c: Likewise.
21181 * varpool.c: Likewise.
21182 * vmsdbgout.c: Likewise.
21183 * vtable-verify.c: Likewise.
21185 * wide-int.cc: Likewise.
21186 * xcoffout.c: Likewise.
21187 * config/aarch64/aarch64-builtins.c: Likewise.
21188 * config/aarch64/aarch64.c: Likewise.
21189 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21190 * config/alpha/alpha.c: Likewise.
21191 * config/arc/arc.c: Likewise.
21192 * config/arm/aarch-common.c: Likewise.
21193 * config/arm/arm-builtins.c: Likewise.
21194 * config/arm/arm-c.c: Likewise.
21195 * config/arm/arm.c: Likewise.
21196 * config/avr/avr-c.c: Likewise.
21197 * config/avr/avr-log.c: Likewise.
21198 * config/avr/avr.c: Likewise.
21199 * config/bfin/bfin.c: Likewise.
21200 * config/c6x/c6x.c: Likewise.
21201 * config/cr16/cr16.c: Likewise.
21202 * config/cris/cris.c: Likewise.
21203 * config/darwin-c.c: Likewise.
21204 * config/darwin.c: Likewise.
21205 * config/epiphany/epiphany.c: Likewise.
21206 * config/epiphany/mode-switch-use.c: Likewise.
21207 * config/epiphany/resolve-sw-modes.c: Likewise.
21208 * config/fr30/fr30.c: Likewise.
21209 * config/frv/frv.c: Likewise.
21210 * config/ft32/ft32.c: Likewise.
21211 * config/h8300/h8300.c: Likewise.
21212 * config/i386/i386-c.c: Likewise.
21213 * config/i386/i386.c: Likewise.
21214 * config/i386/msformat-c.c: Likewise.
21215 * config/i386/winnt-cxx.c: Likewise.
21216 * config/i386/winnt-stubs.c: Likewise.
21217 * config/i386/winnt.c: Likewise.
21218 * config/ia64/ia64-c.c: Likewise.
21219 * config/ia64/ia64.c: Likewise.
21220 * config/iq2000/iq2000.c: Likewise.
21221 * config/lm32/lm32.c: Likewise.
21222 * config/m32c/m32c-pragma.c: Likewise.
21223 * config/m32c/m32c.c: Likewise.
21224 * config/m32r/m32r.c: Likewise.
21225 * config/m68k/m68k.c: Likewise.
21226 * config/mcore/mcore.c: Likewise.
21227 * config/mep/mep-pragma.c: Likewise.
21228 * config/mep/mep.c: Likewise.
21229 * config/microblaze/microblaze-c.c: Likewise.
21230 * config/microblaze/microblaze.c: Likewise.
21231 * config/mips/mips.c: Likewise.
21232 * config/mmix/mmix.c: Likewise.
21233 * config/mn10300/mn10300.c: Likewise.
21234 * config/moxie/moxie.c: Likewise.
21235 * config/msp430/msp430-c.c: Likewise.
21236 * config/msp430/msp430.c: Likewise.
21237 * config/nds32/nds32-cost.c: Likewise.
21238 * config/nds32/nds32-fp-as-gp.c: Likewise.
21239 * config/nds32/nds32-intrinsic.c: Likewise.
21240 * config/nds32/nds32-isr.c: Likewise.
21241 * config/nds32/nds32-md-auxiliary.c: Likewise.
21242 * config/nds32/nds32-memory-manipulation.c: Likewise.
21243 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21244 * config/nds32/nds32-predicates.c: Likewise.
21245 * config/nds32/nds32.c: Likewise.
21246 * config/nios2/nios2.c: Likewise.
21247 * config/nvptx/nvptx.c: Likewise.
21248 * config/pa/pa.c: Likewise.
21249 * config/pdp11/pdp11.c: Likewise.
21250 * config/rl78/rl78-c.c: Likewise.
21251 * config/rl78/rl78.c: Likewise.
21252 * config/rs6000/rs6000-c.c: Likewise.
21253 * config/rs6000/rs6000.c: Likewise.
21254 * config/rx/rx.c: Likewise.
21255 * config/s390/s390-c.c: Likewise.
21256 * config/s390/s390.c: Likewise.
21257 * config/sh/sh-c.c: Likewise.
21258 * config/sh/sh-mem.cc: Likewise.
21259 * config/sh/sh.c: Likewise.
21260 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21261 * config/sh/sh_treg_combine.cc: Likewise.
21262 * config/sol2-c.c: Likewise.
21263 * config/sol2-cxx.c: Likewise.
21264 * config/sol2-stubs.c: Likewise.
21265 * config/sol2.c: Likewise.
21266 * config/sparc/sparc-c.c: Likewise.
21267 * config/sparc/sparc.c: Likewise.
21268 * config/spu/spu-c.c: Likewise.
21269 * config/spu/spu.c: Likewise.
21270 * config/stormy16/stormy16.c: Likewise.
21271 * config/tilegx/mul-tables.c: Likewise.
21272 * config/tilegx/tilegx-c.c: Likewise.
21273 * config/tilegx/tilegx.c: Likewise.
21274 * config/tilepro/mul-tables.c: Likewise.
21275 * config/tilepro/tilepro-c.c: Likewise.
21276 * config/tilepro/tilepro.c: Likewise.
21277 * config/v850/v850-c.c: Likewise.
21278 * config/v850/v850.c: Likewise.
21279 * config/vax/vax.c: Likewise.
21280 * config/visium/visium.c: Likewise.
21281 * config/vms/vms-c.c: Likewise.
21282 * config/vms/vms.c: Likewise.
21283 * config/vxworks.c: Likewise.
21284 * config/xtensa/xtensa.c: Likewise.
21286 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
21288 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
21289 Remove operand constraints. Change operand 2 predicate to
21290 nonmemory operand. Limit const_int values to mode bitsize. Only
21291 allow const_int values less than 32 when optimizing for size.
21292 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
21293 Remove operand constraints.
21294 (*bt<mode>): Use SImode for const_int values less than 32.
21295 (regmode): Remove mode attribute.
21297 2015-07-07 Anatoly Sokolov <aesok@post.ru>
21299 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21300 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
21301 moxie_legitimate_address_p): New functions.
21302 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21304 2015-07-07 Tom de Vries <tom@codesourcery.com>
21306 PR tree-optimization/66642
21307 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
21308 header comment. Rename split_edge variable to edge_at_split. Split
21309 exit edge to create new loop exit bb. Insert loop exit phis in new
21312 2015-07-07 Tom de Vries <tom@codesourcery.com>
21314 * tree-cfg.c (get_virtual_phi): New function.
21315 * tree-cfg.h (get_virtual_phi): Declare.
21316 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
21317 (rewrite_virtuals_into_loop_closed_ssa): New function.
21318 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
21320 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
21321 (transform_to_exit_first_loop_alt): Use
21322 rewrite_virtuals_into_loop_closed_ssa.
21324 2015-07-07 Richard Biener <rguenther@suse.de>
21326 * fold-const.c (fold_binary_loc): Move
21327 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
21328 * match.pd: ... here.
21329 Add (X * C1) % C2 -> 0 simplification pattern derived from
21332 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
21335 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
21336 change for target/65249.
21338 2015-07-07 Paulo Matos <pmatos@broadcom.com>
21340 * symtab.c (address_matters_1): Fix typo in comment above.
21341 (can_increase_alignment_p): Likewise.
21343 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21345 * function.c (free_after_compilation): Clear PROP_cfg in
21346 f->curr_properties.
21348 2015-07-07 Richard Biener <rguenther@suse.de>
21350 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
21352 (add_control_edge): Remove excessive vertical space in dumping.
21353 (process_ssa_edge_worklist): Simulate at most one statement and
21354 return whether we did. Do not simulate PHIs if they are in a
21355 BB not yet simulated.
21356 (ssa_propagate): Adjust to always drain the BB worklist whenever
21357 a BB is available there, likewise the VARYING edges list before
21358 the interesting edge list.
21360 2015-07-07 Christian Bruel <christian.bruel@st.com>
21363 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
21365 2015-07-07 Richard Biener <rguenther@suse.de>
21367 PR middle-end/66739
21368 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
21371 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
21373 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
21374 modes for operands 0 and 3. Use SImode for operands 2 and 3.
21375 Copy operand 0 to a temporary if !ext_register_operand. Remove
21376 ancient extract_bit_field workaround.
21377 (insv<mode>_1): Rename from mov<mode>_insv_1.
21378 (*insvqi): Rename from *movqi_insv_2.
21379 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
21380 for renamed insvsi_1.
21381 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
21383 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
21385 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
21386 call to nvptx_reorg_subreg.
21388 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
21390 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
21391 * graphite-dependencies.c, graphite-interchange.c,
21392 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
21393 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
21396 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
21398 * match.pd: Remove element_mode inside HONOR_*.
21399 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
21400 (~X | X -> -1, ~X ^ X -> -1): Merge.
21401 * tree.c (build_each_one_cst): New function.
21402 * tree.h (build_each_one_cst): Likewise.
21404 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21406 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21409 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
21411 * config.gcc <mips*-*-*>: Add fused-madd.opt.
21412 * config/mips/mips.opt (mfused-madd): Remove.
21413 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
21414 * config/mips/mips.h (TARGET_MIPS8000): New.
21415 (ISA_HAS_FP_MADD4_MSUB4): Remove.
21416 (ISA_HAS_FP_MADDF_MSUBF): Remove.
21417 (ISA_HAS_FP_MADD3_MSUB3): Remove.
21418 (ISA_HAS_NMADD4_NMSUB4): Remove.
21419 (ISA_HAS_NMADD3_NMSUB3): Remove.
21420 (ISA_HAS_FUSED_MADD4): New.
21421 (ISA_HAS_UNFUSED_MADD4): New.
21422 (ISA_HAS_FUSED_MADDF): New.
21423 (ISA_HAS_FUSED_MADD3): New.
21424 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
21425 (*fma<mode>4_madd3) New.
21426 (*fma<mode>4_madd4) New.
21427 (*fma<mode>4_maddf) New.
21429 (*fms<mode>4_msub3) New.
21430 (*fms<mode>4_msub4) New.
21432 (*fnma<mode>4_nmadd3) New.
21433 (*fnma<mode>4_nmadd4) New.
21435 (*fnms<mode>4_nmsub3) New.
21436 (*fnms<mode>4_nmsub4) New.
21437 (*madd4<mode>) Modify to be unfused only.
21438 (*msub4<mode>) Modify to be unfused only.
21439 (*nmadd4<mode>) Modify to be unfused only.
21440 (*nmsub4<mode>) Modify to be unfused only.
21441 (*madd3<mode>) Remove.
21442 (*msub3<mode>) Remove.
21443 (*nmadd3<mode>) Remove.
21444 (*nmsub3<mode>) Remove.
21445 (*nmadd3<mode>_fastmath) Remove.
21446 (*nmsub3<mode>_fastmath) Remove.
21447 (*nmadd4<mode>_fastmath) Update condition.
21448 (*nmsub4<mode>_fastmath) Update condition.
21450 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21453 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
21454 alignment attribute, exploring one level down for records and arrays.
21456 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
21458 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
21459 modes for operands 0 and 1. Use SImode for operands 2 and 3.
21460 Copy operand 1 to a temporary if !ext_register_operand. Remove
21461 ancient extract_bit_field workaround.
21462 (*extv<mode>): Rename from *mov<mode>_extv_1.
21463 (*extvqi): Rename from *movqi_extv_1.
21464 (extzv<mode>): Rename from extzv. Use SWI248 modes for
21465 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
21466 to a temporary if !ext_register_operand. Remove ancient
21467 extract_bit_field workaround.
21468 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
21469 (*extzvqi): Rename from *movqi_extzv_2.
21470 (*testqi_ext_3): Remove modes from const_int_operand predicated
21471 operands. Add "n" constraint.
21472 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
21473 operand. Add "J" constraint.
21474 (*btsq, *btrq, *btcq peephole2s): Remove mode from
21475 const_0_to_63 predicated operand.
21476 (regmode): New insn attribute.
21477 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
21478 to nonmemory_operand. Use regmode insn attribute.
21479 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
21480 (*jcc_bt<mode>_mask): Remove mode from operand 3.
21481 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
21482 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
21483 operands. Use "N" constraint instead of "n".
21485 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21487 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
21489 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21492 * config/i386/i386.c (iamcu_cost): New.
21493 (m_IAMCU): Likewise.
21494 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
21495 (processor_target_table): Add an entry for "iamcu".
21496 (processor_alias_table): Likewise.
21497 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
21498 (ix86_adjust_cost): Likewise.
21499 (ia32_multipass_dfa_lookahead): Likewise.
21500 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
21501 * config/i386/x86-tune.def: Updated for m_IAMCU.
21503 2015-07-06 Richard Biener <rguenther@suse.de>
21505 PR tree-optimization/66772
21506 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
21507 values are available in the PHI node BB when there are
21508 still unexecutable edges.
21510 2015-07-06 Richard Biener <rguenther@suse.de>
21512 PR tree-optimization/66767
21513 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
21514 Make sure to build the alignment test on a SSA name without
21515 final alignment info valid only if the alignment test
21518 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
21521 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
21522 loop start when inserting LSETUP.
21524 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21527 * config/i386/i386.c (ix86_option_override_internal): Allow
21528 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
21530 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21532 * read-md.c (decimal_string): Rename to ...
21533 (md_decimal_string): ... this.
21534 (handle_enum): Reflect this.
21536 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
21539 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
21541 2015-07-06 Richard Biener <rguenther@suse.de>
21543 PR middle-end/66759
21544 * match.pd: Add missing constraint of y to REAL_CST in
21545 REAL_CST - x CMP y to y - CST CMP x simplification.
21547 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
21549 PR tree-optimization/66757
21550 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
21552 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
21553 Sandra Loosemore <sandra@codesourcery.com>
21555 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
21556 Delete extern declaration.
21557 (gprel_constant_p): Add extern declaration.
21558 * config/nios2/constraints.md ("S"): Use gprel_constant_p
21559 instead of nios2_symbol_ref_in_small_data_p.
21560 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
21561 (nios2_symbol_ref_in_small_data_p): Make static.
21562 (gprel_constant_p): Make non-static.
21564 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
21566 * doc/fragments.texi (Target Fragment): Convert debian.org
21568 * doc/install.texi (Configuration): Ditto.
21570 2015-07-05 Jakub Jelinek <jakub@redhat.com>
21572 PR tree-optimization/66718
21573 * tree-vect-stmts.c (vectorizable_call): Replace uses of
21574 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
21576 PR tree-optimization/66718
21577 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
21578 vectorizable_load, vectorizable_condition): Move vectype,
21579 nunits, ncopies computation after checking what kind of statement
21582 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21584 * target-insns.def (extv, extzv, insv): New targetm instruction
21586 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
21588 * recog.c (simplify_while_replacing): Likewise.
21590 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21592 * target-insns.def (doloop_begin, doloop_end): New targetm
21593 instruction patterns.
21594 * loop-init.c: Include target.h.
21595 (pass_loop2::gate): Use the new targetm patterns instead of
21596 HAVE_*/gen_* interface.
21597 (pass_rtl_doloop::gate): Likewise.
21598 (pass_rtl_doloop::execute): Remove preprocessor condition.
21599 * hw-doloop.c: Build unconditionally.
21600 * loop-doloop.c: Likewise.
21601 (doloop_optimize): Use the new targetm patterns instead of
21602 HAVE_*/gen_* interface.
21603 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
21604 * modulo-sched.c (doloop_register_get): Likewise.
21606 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21608 * target-insns.def (clear_cache): New targetm instruction pattern.
21609 * builtins.c (expand_builtin___clear_cache): Use it instead of
21610 HAVE_*/gen_* interface.
21612 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21614 * target-insns.def (allocate_stack, check_stack, probe_stack)
21615 (probe_stack_address, split_stack_prologue, split_stack_space_check):
21616 New targetm instruction patterns.
21617 * explow.c (allocate_dynamic_stack_space): Use them instead of
21618 HAVE_*/gen_* interface.
21619 (emit_stack_probe): Likewise.
21620 (probe_stack_range): Likewise.
21621 * function.c (thread_prologue_and_epilogue_insns): Likewise.
21623 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21625 * target-insns.def (stack_protect_set, stack_protect_test): New
21626 targetm instruction patterns.
21627 * cfgexpand.c (stack_protect_prologue): Use them instead of
21628 HAVE_*/gen_* interface.
21629 * function.c (stack_protect_epilogue): Likewise.
21631 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21633 * expr.h (gen_move_insn_uncast): Delete.
21634 * expr.c (gen_move_insn_uncast): Delete.
21636 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21638 * target-insns.def (restore_stack_block, restore_stack_function)
21639 (restore_stack_nonlocal, save_stack_block, save_stack_function)
21640 (save_stack_nonlocal): New targetm instruction patterns.
21641 * builtins.c (expand_builtin_apply): Use them instead of
21642 HAVE_*/gen_* interface.
21643 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
21645 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21647 * target-insns.def (trap): New targetm instruction pattern.
21648 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
21650 * explow.c (allocate_dynamic_stack_space): Likewise.
21651 * ifcvt.c (find_if_header): Likewise.
21653 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21655 * target-insns.def (prefetch): New targetm instruction pattern.
21656 * tree-ssa-loop-prefetch.c: Include targeth.
21657 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
21658 of HAVE_*/gen_* interface.
21659 * builtins.c (expand_builtin_prefetch): Likewise.
21660 * toplev.c (process_options): Likewise.
21662 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21664 * target-insns.def (untyped_call, untyped_return): New targetm
21665 instruction patterns.
21666 * builtins.c (expand_builtin_apply): Use them instead of
21667 HAVE_*/gen_* interface.
21668 (result_vector): Define unconditionally.
21670 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21672 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
21673 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
21674 (nonlocal_goto_receiver): New targetm instruction patterns.
21675 * builtins.c (expand_builtin_setjmp_setup): Use them instead
21676 of HAVE_*/gen_* interface.
21677 (expand_builtin_setjmp_receiver): Likewise.
21678 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
21679 * except.c (expand_dw2_landing_pad_for_region): Likewise.
21681 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21683 * target.def: Add code_for_* hooks.
21684 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
21685 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
21686 * target-insns.def (casesi, tablejump): New targetm instruction
21688 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
21689 (do_tablejump): Likewise.
21690 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
21691 (expand_sjlj_dispatch_table): Likewise.
21692 * targhooks.c (default_case_values_threshold): Likewise.
21694 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
21696 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
21697 Use rtx_insn * instead of rtx.
21698 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
21699 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
21700 (nios2_call_tls_get_addr): Likewise.
21701 (nios2_emit_expensive_div): Likewise.
21702 (nios2_emit_move_sequence): Change return type to bool.
21703 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
21704 Change return type to bool.
21706 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
21709 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
21711 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
21714 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
21715 of register_operand. Remove constraint.
21717 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
21719 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
21720 the first argument.
21722 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
21724 * attribs.c (decl_attributes): Guard inform with the return value
21725 of the preceding warning.
21727 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
21729 * doc/invoke.texi (moverride): Move to correct section.
21731 2015-07-03 Richard Biener <rguenther@suse.de>
21733 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
21735 (dt_operand::gen_gimple_expr): After valueizing operands
21736 re-canonicalize operand order for commutative tree codes.
21738 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
21741 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
21743 (__crc32w): Likewise.
21744 (__crc32d): Likewise.
21745 (__rdpmc): Likewise.
21746 (__rdtscp): Likewise.
21747 (_rdpmc): Likewise.
21748 (_rdtscp): Likewise.
21749 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
21752 2015-07-03 Richard Biener <rguenther@suse.de>
21754 * fold-const.c (fold_mathfn_compare): Remove.
21755 (fold_inf_compare): Likewise.
21756 (fold_comparison): Move floating point comparison simplifications...
21757 * match.pd: ... to patterns here. Introduce simple_comparisons
21758 operator list and use it for patterns formerly in fold_comparison.
21760 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
21762 PR tree-optimization/66119
21763 * toplev.c (process_options): Don't set up default values for
21764 the sra_max_scalarization_size_{speed,size} parameters.
21765 * tree-sra (analyze_all_variable_accesses): If no values
21766 have been set for the sra_max_scalarization_size_{speed,size}
21767 parameters, call get_move_ratio to get target defaults.
21769 2015-07-03 Richard Biener <rguenther@suse.de>
21771 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
21772 * match.pd: ... here.
21774 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
21777 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
21778 is not actually the default on FreeBSD.
21780 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21782 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
21784 (CMPGE_8HI): Likewise.
21785 (CMPGE_4SI): Likewise.
21786 (CMPGE_2DI): Likewise.
21787 (CMPGE_U16QI): Likewise.
21788 (CMPGE_U8HI): Likewise.
21789 (CMPGE_U4SI): Likewise.
21790 (CMPGE_U2DI): Likewise.
21791 (CMPLE_16QI): Likewise.
21792 (CMPLE_8HI): Likewise.
21793 (CMPLE_4SI): Likewise.
21794 (CMPLE_2DI): Likewise.
21795 (CMPLE_U16QI): Likewise.
21796 (CMPLE_U8HI): Likewise.
21797 (CMPLE_U4SI): Likewise.
21798 (CMPLE_U2DI): Likewise.
21799 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21800 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
21801 ALTIVEC_BUILTIN_VEC_CMPLE.
21802 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
21803 floating-point vector modes.
21804 (vector_nlt<mode>): New define_expand.
21805 (vector_nltu<mode>): Likewise.
21806 (vector_ngt<mode>): Likewise.
21807 (vector_ngtu<mode>): Likewise.
21809 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
21811 PR rtl-optimization/66706
21812 * combine.c (make_compound_operation): If an AND of SUBREG of
21813 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
21815 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
21817 * tree-pass.h (make_pass_ch_vect): New.
21818 * passes.def: Add pass_ch_vect just before pass_if_conversion.
21820 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
21821 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
21822 make_pass_ch_vect): New.
21823 (pass_ch): Extend ch_base.
21825 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
21826 (ch_base::copy_headers): ...here.
21828 2015-07-02 Richard Biener <rguenther@suse.de>
21830 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
21831 * fold-const.c (get_pointer_modulus_and_residue): Remove.
21832 (fold_binary_loc): Implement (T)ptr & CST in terms of
21833 get_pointer_alignment_1.
21834 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
21835 Make sure to build the alignment test on a SSA name without
21836 final alignment info valid only after the prologue.
21838 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
21840 * config/cris/cris.md ("epilogue"): Remove condition.
21841 ("prologue"): Ditto.
21843 2015-07-02 Richard Biener <rguenther@suse.de>
21845 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
21846 parameter to record a condition that is false.
21847 (record_conditions): When recording an extra NE_EXPR that is
21848 true also record a EQ_EXPR that is false.
21850 2015-07-02 Bin Cheng <bin.cheng@arm.com>
21852 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
21853 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
21854 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
21855 (set_iv, find_interesting_uses_address, add_candidate_1): New
21856 argument to alloc_iv.
21857 (find_interesting_uses_op, find_interesting_uses_cond): Don't
21858 duplicate struct iv.
21859 (free_loop_data): Don't free struct iv explicitly.
21860 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
21862 2015-07-01 DJ Delorie <dj@redhat.com>
21864 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
21866 (SUPPORTS_DISCRIMINATOR): Define.
21868 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
21871 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
21872 there are no CALLs in the same pattern.
21874 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
21876 PR rtl-optimization/61047
21877 * rtlanal.c (get_initial_register_offset): New function.
21878 (rtx_addr_can_trap_p_1): Check offsets of stack references.
21880 2015-07-01 Richard Biener <rguenther@suse.de>
21882 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
21883 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
21884 ~X CMP C -> X CMP' ~C to ...
21885 * match.pd: ... patterns here.
21887 2015-07-01 Nick Clifton <nickc@redhat.com>
21889 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
21890 a 16-bit value into a 20-bit memory slot.
21892 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21894 * doc/sourcebuild.texi (AArch64-specific attributes): Document
21895 "aarch64_tiny", "aarch64_small", "aarch64_large",
21896 "aarch64_little_endian", "aarch64_big_endian".
21898 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21900 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
21901 Document "aarch64_small_fpic".
21903 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21905 * configure.ac: Add check for aarch64 assembler -fpic relocation
21907 * configure: Regenerate.
21908 * config.in: Regenerate.
21909 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
21910 to -fPIC if not support of -fpic relocation modifier in assembler.
21912 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
21915 * rtl.c (classify_insn): Handle returns in PARALLELs.
21917 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
21919 PR middle-end/66633
21920 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
21921 to true if the function is nested and if not optimizing.
21922 (convert_local_omp_clauses): Initialize need_frame to true if the
21923 function contains nested functions and if not optimizing.
21925 2015-07-01 Richard Biener <rguenther@suse.de>
21927 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
21928 (X & Y) ^ Y -> ~X & Y transforms to ...
21929 * match.pd: ... here.
21931 2015-07-01 Richard Biener <rguenther@suse.de>
21933 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
21934 of converts to avoid uninteresting noise from the conversion
21935 simplifying patterns.
21937 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
21939 * config/c6x/c6x.c (try_rename_operands): Do not depend on
21940 gcc_assert evaluating its argument for side-effect.
21942 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
21945 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
21948 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
21950 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
21951 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
21952 (hash_scc): Add this_ref_p and ref_p parameters and pass them
21953 to the inner DFS walk.
21955 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21957 * target-insns.def (jump): New targetm instruction pattern.
21958 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
21959 instead of gen_jump.
21960 (fix_up_crossing_landing_pad): Likewise.
21961 (add_labels_and_missing_jumps): Likewise.
21962 (fix_crossing_conditional_branches): Likewise.
21963 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
21964 (force_nonfallthru_and_redirect): Likewise.
21965 * cse.c (cse_insn): Likewise.
21966 * expmed.c (expand_divmod): Likewise.
21967 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
21968 * haifa-sched.c (init_before_recovery): Likewise.
21969 (sched_create_recovery_edges): Likewise.
21970 * ifcvt.c (find_cond_trap): Likewise.
21971 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
21972 (expand_float, expand_fix): Likewise.
21973 * stmt.c (emit_jump): Likewise.
21975 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21977 * defaults.h (HAVE_load_multiple, gen_load_multiple)
21978 (HAVE_store_multiple, gen_store_multiple): Delete.
21979 * target-insns.def (load_multiple, store_multiple): New targetm
21980 instruction patterns.
21981 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
21982 of HAVE_*/gen_* interface.
21984 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21986 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
21987 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
21988 (gen_mem_signal_fence): Delete.
21989 * target-insns.def (mem_signal_fence, mem_thread_fence)
21990 (memory_barrier): New targetm instruction patterns.
21991 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
21993 (expand_mem_signal_fence): Likewise.
21995 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21997 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
21998 * target-insns.def (epilogue, prologue, sibcall_prologue): New
21999 targetm instruction patterns.
22000 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
22002 * calls.c (expand_call): Likewise.
22003 * cfgrtl.c (cfg_layout_finalize): Likewise.
22004 * df-scan.c (df_get_entry_block_def_set): Likewise.
22005 (df_get_exit_block_use_set): Likewise.
22006 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
22007 * final.c (final_start_function): Likewise.
22008 * function.c (thread_prologue_and_epilogue_insns): Likewise.
22009 (reposition_prologue_and_epilogue_notes): Likewise.
22010 * reorg.c (find_end_label): Likewise.
22011 * toplev.c (process_options): Likewise.
22013 2015-06-30 David Malcolm <dmalcolm@redhat.com>
22015 * typed-splay-tree.h: New file.
22017 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
22020 * lra-int.h (lra_substitute_pseudo): Add a parameter.
22021 (lra_substitute_pseudo_within_insn): Ditto.
22022 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
22024 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
22025 to lra_substitute_pseudo.
22026 * lra-lives.c (process_bb_lives): Add an argument to
22027 lra_substitute_pseudo_within_insn call.
22028 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
22029 argument to lra_substitute_pseudo and
22030 lra_substitute_pseudo_within_insn calls.
22031 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
22033 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
22035 * configure: Regenerated.
22037 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
22039 * config.gcc: Support i[34567]86-*-elfiamcu target.
22040 * config/i386/iamcu.h: New.
22041 * config/i386/i386.opt: Add -miamcu.
22042 * doc/invoke.texi: Document -miamcu.
22043 * common/config/i386/i386-common.c (ix86_handle_option): Turn
22044 off x87/MMX/SSE/AVX codegen for -miamcu.
22045 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22046 __iamcu/__iamcu__ for -miamcu.
22047 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
22048 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
22049 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
22050 * config/i386/i386.c (ix86_option_override_internal): Ignore and
22051 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
22052 MCU by default. Default long double to 64-bit for Intel MCU.
22053 Turn on -freg-struct-return for Intel MCU. Issue an error when
22054 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
22056 (function_arg_advance_32): Pass value whose size is no larger
22057 than 8 bytes in registers for Intel MCU.
22058 (function_arg_32): Likewise.
22059 (ix86_return_in_memory): Return value whose size is no larger
22060 than 8 bytes in registers for Intel MCU.
22061 (iamcu_alignment): New function.
22062 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
22064 (ix86_local_alignment): Don't increase alignment for Intel MCU.
22065 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
22068 2015-06-30 Marek Polacek <polacek@redhat.com>
22070 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
22071 both operands of the resulting expression.
22073 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
22074 the final expression with the operand's type and then convert
22075 it to the type of the expression.
22077 2015-06-30 Richard Biener <rguenther@suse.de>
22079 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
22080 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
22081 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
22082 * match.pd: ... to patterns here.
22084 2015-06-30 Richard Biener <rguenther@suse.de>
22086 PR tree-optimization/66704
22087 * tree-vect-data-refs.c (vect_setup_realignment): Use
22088 make_ssa_name for non-SSA name source.
22090 2015-06-30 Jakub Jelinek <jakub@redhat.com>
22092 PR middle-end/66702
22093 * omp-low.c (simd_clone_adjust): Handle addressable linear
22094 or uniform parameters or non-gimple type uniform parameters.
22096 2015-06-30 Richard Biener <rguenther@suse.de>
22098 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
22099 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
22100 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
22101 * match.pd: ... here.
22102 Add a few cases of A - B -> A + (-B) when B "easily" negates.
22103 Move (x & y) | x -> x and friends before
22104 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
22106 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
22108 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
22109 -mfix-ut699 is not specified.
22110 (leon3_load): Rename into...
22111 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
22114 2015-06-30 Marek Polacek <polacek@redhat.com>
22116 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
22117 * match.pd: ... here.
22119 2015-06-30 Richard Biener <rguenther@suse.de>
22121 * target-insns.def (canonicalize_funcptr_for_compare): Add.
22122 * fold-const.c (build_range_check): Replace uses of
22123 HAVE_canonicalize_funcptr_for_compare.
22124 (fold_widened_comparison): Likewise.
22125 (fold_sign_changed_comparison): Likewise.
22126 * dojump.c: Include "target.h".
22127 (do_compare_and_jump): Replace uses of
22128 HAVE_canonicalize_funcptr_for_compare and
22129 gen_canonicalize_funcptr_for_compare.
22130 * expr.c (do_store_flag): Likewise.
22132 2015-06-30 Tom de Vries <tom@codesourcery.com>
22134 PR tree-optimization/66652
22135 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
22136 max_loop_iterations to determine if nit + 1 overflows.
22138 2015-06-30 Richard Biener <rguenther@suse.de>
22140 * tree-vrp.c (register_edge_assert_for_2): Also register
22141 asserts for dominating conversion results.
22143 2015-06-30 Bin Cheng <bin.cheng@arm.com>
22145 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
22146 field in struct iv.
22148 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
22151 * configure.ac: Fix filds and fildq test for 64-bit.
22152 * configure: Regenerated.
22154 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
22156 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
22157 (nvptx_reorg): Here. Keep the non-subreg pieces.
22159 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
22161 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
22162 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22164 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
22166 * config/i386/i386.md (*jcc_1): Use %! in asm template.
22167 Set attribute "length_nobnd" instead of "length".
22170 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
22172 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
22174 * config/nios2/nios2.c (nios2_delegitimize_address): Make
22175 assert less restrictive.
22177 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
22180 * cgraphunit.c (cgraph_node::finalize_function): Do not call
22181 do_warn_unused_parameter.
22182 * function.c (do_warn_unused_parameter): Move from here.
22183 * function.h (do_warn_unused_parameter): Do not declare.
22185 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22188 * gcc.target/arm/armv-sync-comp-swap.c: New.
22189 * gcc.target/arm/armv-sync-op-acquire.c: New.
22190 * gcc.target/arm/armv-sync-op-full.c: New.
22191 * gcc.target/arm/armv-sync-op-release.c: New.
22193 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22196 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
22197 initial acquire barrier with final barrier.
22199 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22202 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
22203 initial acquire barrier with final barrier.
22205 2015-06-29 Richard Henderson <rth@redhat.com>
22207 * config/i386/constraints.md (Bf): New constraint.
22208 * config/i386/i386-c.c (ix86_target_macros): Define
22209 __GCC_ASM_FLAG_OUTPUTS__.
22210 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
22212 * doc/extend.texi (FlagOutputOperands): Document them.
22214 2015-06-29 Jiong Wang <jiong.wang@arm.com>
22216 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
22217 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
22219 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
22220 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
22221 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
22222 (aarch64_symbol_context): Ditto.
22223 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
22224 and use new pattern name.
22225 (aarch64_expand_mov_immediate): Ditto.
22226 (aarch64_print_operand): Ditto.
22227 (aarch64_classify_tls_symbol): Ditto.
22229 2015-06-29 Marek Polacek <polacek@redhat.com>
22230 Marc Glisse <marc.glisse@inria.fr>
22232 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
22233 * match.pd: ... pattern here.
22235 2015-06-29 Tom de Vries <tom@codesourcery.com>
22237 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
22238 function structure.
22240 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22242 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
22243 feature description, split out the native option, add a link to
22244 the feature documentation, rearrange and slightly rewrite text.
22245 (Aarch64 options, -mcpu): Likewise.
22246 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
22247 +rdma implies Adv. SIMD.
22249 2015-06-29 Marek Polacek <polacek@redhat.com>
22252 * function.c (stack_protect_epilogue): Remove a cast to int.
22253 * doc/invoke.texi: Update -Wswitch-bool description.
22255 2015-06-29 Richard Biener <rguenther@suse.de>
22257 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
22258 * fold-const.c (fold_binary_loc): Move &A - &B simplification
22259 via ptr_difference_const ...
22260 * match.pd: ... here.
22261 When matching (X ^ Y) == Y also match with swapped operands.
22263 2015-06-29 Richard Biener <rguenther@suse.de>
22265 * lto-streamer.h (LTO_major_version): Bump to 5.
22267 2015-06-29 Richard Biener <rguenther@suse.de>
22269 PR tree-optimization/66677
22270 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
22271 STMT_VINFO_VEC_STMT clobbering less strict.
22273 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
22275 PR middle-end/64130
22276 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
22277 division, compute max and min when value ranges for dividend and
22278 divisor are available.
22280 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
22281 Sandra Loosemore <sandra@codesourcery.com>
22283 * regrename.h (regrename_do_replace): Change to return bool.
22284 * regrename.c (rename_chains): Check return value of
22285 regname_do_replace.
22286 (regrename_do_replace): Re-validate the modified insns and
22287 return bool status.
22288 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
22289 Update to match rename_chains changes.
22290 * config/c6x/c6x.c (try_rename_operands): Assert that
22291 regrename_do_replace returns true.
22293 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
22295 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
22296 operand 2 here. Use copy_addr_to_reg to copy non-index
22297 register operand 2 to a temporary.
22298 (<mode>_stx): Ditto for operand 1.
22299 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
22300 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
22301 (ix86_store_bounds): Ditto.
22303 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
22305 * print-tree.c (print_node) [TREE_VEC]: Print its length.
22307 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
22309 * gimple.c (gimple_call_set_fndecl): Remove.
22310 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
22311 build1_loc directly instead of build_fold_addr_expr_loc.
22313 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
22315 * hash-map.h (hash_map::traverse): Use the definition of the
22316 Key typedef rather than the typedef itself.
22318 2015-06-26 Martin Jambor <mjambor@suse.cz>
22321 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
22322 NULL instead of calling dump_enabled_p.
22324 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22326 * config/aarch64/aarch64.opt: (override): New.
22327 * doc/invoke.texi (override): Document.
22328 * config/aarch64/aarch64.c (aarch64_flag_desc): New
22329 (aarch64_fusible_pairs): Likewise.
22330 (aarch64_tuning_flags): Likewise.
22331 (aarch64_tuning_override_function): Likewise.
22332 (aarch64_tuning_override_functions): Likewise.
22333 (aarch64_parse_one_option_token): Likewise.
22334 (aarch64_parse_boolean_options): Likewise.
22335 (aarch64_parse_fuse_string): Likewise.
22336 (aarch64_parse_tune_string): Likewise.
22337 (aarch64_parse_one_override_token): Likewise.
22338 (aarch64_parse_override_string): Likewise.
22339 (aarch64_override_options): Parse the -override string if it
22342 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22344 * config/aarch64/aarch64-protos.h (tune_params): Remove
22345 const from members.
22346 (aarch64_tune_params): Remove const, change to no longer be
22348 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
22349 change to no longer be a pointer, initialize to generic_tunings.
22350 (aarch64_min_divisions_for_recip_mul): Change dereference of
22351 aarch64_tune_params to member access.
22352 (aarch64_reassociation_width): Likewise.
22353 (aarch64_rtx_mult_cost): Likewise.
22354 (aarch64_address_cost): Likewise.
22355 (aarch64_branch_cost): Likewise.
22356 (aarch64_rtx_costs): Likewise.
22357 (aarch64_register_move_cost): Likewise.
22358 (aarch64_memory_move_cost): Likewise.
22359 (aarch64_sched_issue_rate): Likewise.
22360 (aarch64_builtin_vectorization_cost): Likewise.
22361 (aarch64_override_options): Take a copy of the selected tuning
22362 struct in to aarch64_tune_params, rather than just setting
22363 a pointer, change dereferences of aarch64_tune_params to member
22365 (aarch64_override_options_after_change): Change dereferences of
22366 aarch64_tune_params to member access.
22367 (aarch64_macro_fusion_p): Likewise.
22368 (aarch_macro_fusion_pair_p): Likewise.
22369 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
22371 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22373 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
22374 (aarch64_tune_flags): Likewise.
22375 (AARCH64_TUNE_FMA_STEERING): Likewise.
22376 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
22377 to AARCH64_FL_USE_FMA_STEERING_PASS.
22378 (cortex-a57.cortex-a53): Likewise.
22379 (cortex-a72): Use cortexa72_tunings.
22380 (cortex-a72.cortex-a53): Likewise.
22381 (exynos-m1): Likewise.
22382 * config/aarch64/aarch64-protos.h (tune_params): Add
22383 a field: extra_tuning_flags.
22384 * config/aarch64/aarch64-tuning-flags.def: New.
22385 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
22386 (aarch64_extra_tuning_flags): Likewise.
22387 (aarch64_tune_params): Declare here.
22388 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
22389 (cortexa53_tunings): Likewise.
22390 (cortexa57_tunings): Likewise.
22391 (thunderx_tunings): Likewise.
22392 (xgene1_tunings): Likewise.
22393 (cortexa72_tunings): New.
22394 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
22395 (gate): Check against aarch64_tune_params.
22396 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
22399 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22401 * config/aarch64/aarch64-fusion-pairs.def: New.
22402 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
22403 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
22404 aarch64_fusion_pairs.
22405 (AARCH64_FUSE_MOV_MOVK): Likewise.
22406 (AARCH64_FUSE_ADRP_ADD): Likewise.
22407 (AARCH64_FUSE_MOVK_MOVK): Likewise.
22408 (AARCH64_FUSE_ADRP_LDR): Likewise.
22409 (AARCH64_FUSE_CMP_BRANCH): Likewise.
22411 2015-06-26 Jiong Wang <jiong.wang@arm.com>
22413 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
22414 SYMBOL_SMALL_GOT_28K.
22415 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
22416 relocation modifiers.
22417 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
22418 (ldr_got_small_28k_<mode>): New.
22419 (ldr_got_small_28k_sidi): New.
22420 * config/aarch64/iterators.md (got_modifier): New mode iterator.
22421 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
22422 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
22423 SYMBOL_SMALL_GOT_28K.
22424 (aarch64_rtx_costs): Add costs for new instruction sequences.
22425 (initialize_aarch64_code_model): Initialize new model.
22426 (aarch64_classify_symbol): Recognize new model and new symbol classification.
22427 (aarch64_asm_preferred_eh_data_format): Support new model.
22428 (aarch64_load_symref_appropriately): Generate new instruction
22429 sequences for -fpic.
22430 (TARGET_USE_PSEUDO_PIC_REG): New definition.
22431 (aarch64_use_pseudo_pic_reg): New function.
22433 2015-06-26 Jiong Wang <jiong.wang@arm.com>
22435 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
22436 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
22437 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
22438 (aarch64_expand_mov_immediate): Ditto.
22439 (aarch64_print_operand): Ditto.
22440 (aarch64_classify_symbol): Ditto.
22442 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
22444 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
22446 2015-06-26 Bin Cheng <bin.cheng@arm.com>
22449 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
22450 assertion failed. Remove assertion itself.
22452 2015-06-26 Richard Biener <rguenther@suse.de>
22454 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
22455 and -A CMP CST -> A CMP -CST which is redundant with a pattern
22457 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
22458 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
22459 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
22460 * match.pd: ... patterns here.
22462 2015-06-26 Marek Polacek <polacek@redhat.com>
22464 * match.pd ((x | y) & ~(x & y) -> x ^ y,
22465 (x | y) & (~x ^ y) -> x & y): New patterns.
22467 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
22469 * rtl.h (emit): Add an optional boolean parameter to control
22470 whether barriers are emitted.
22471 * emit-rtl.c (emit): Likewise.
22472 * gensupport.c (get_emit_function): Return null rather than "emit".
22473 * genemit.c (gen_emit_seq): Handle the null return value.
22474 Don't emit barriers after the final instruction in the sequence.
22475 * gentarget-def.c (main): Don't emit barriers after the instruction.
22477 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22479 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
22480 TARGET_UNIFIED_ASM.
22482 2015-06-26 Richard Biener <rguenther@suse.de>
22484 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
22486 2015-06-26 Richard Biener <rguenther@suse.de>
22488 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
22489 irrespective on whether the inner operation has a single use
22490 of both off are constant.
22492 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
22493 Segher Boessenkool <segher@kernel.crashing.org>
22496 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
22497 before doing PUT_MODE or PUT_CODE on operands to avoid
22498 in-place RTX modification.
22500 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22502 * gentarget-def.c (def_target_insn): Cast return of strtol to
22505 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22507 * gimple.h (gimple_call_set_fn): Move inline function.
22508 * gimple.c (gimple_call_set_fn): Relocate here.
22510 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
22514 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
22515 the replacement insn will work.
22517 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22519 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
22522 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22524 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
22525 * cgraph.h: Include ipa-ref.h and plugin-api.h.
22526 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
22527 (symtab_node::address_can_be_compared_p): Move function.
22528 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
22530 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
22531 * auto-profile.c: Likewise.
22532 * bb-reorder.c: Likewise.
22533 * builtins.c: Likewise.
22534 * calls.c: Likewise.
22535 * cfgexpand.c: Likewise.
22536 * cgraphbuild.c: Likewise.
22537 * cgraphclones.c: Likewise.
22538 * cgraphunit.c: Likewise.
22539 * combine.c: Likewise.
22540 * coverage.c: Likewise.
22541 * data-streamer-in.c: Likewise.
22542 * data-streamer-out.c: Likewise.
22543 * data-streamer.c: Likewise.
22544 * dbxout.c: Likewise.
22545 * dwarf2out.c: Likewise.
22546 * except.c: Likewise.
22547 * expr.c: Likewise.
22548 * final.c: Likewise.
22549 * fold-const.c: Likewise.
22550 * ggc-page.c: Likewise.
22551 * gimple-fold.c: Likewise.
22552 * gimple-iterator.c: Likewise.
22553 * gimple-pretty-print.c: Likewise.
22554 * gimple-streamer-in.c: Likewise.
22555 * gimple-streamer-out.c: Likewise.
22556 * gimple.c: Likewise.
22557 * gimplify.c: Likewise.
22558 * ipa-chkp.c: Likewise.
22559 * ipa-comdats.c: Likewise.
22560 * ipa-cp.c: Likewise.
22561 * ipa-devirt.c: Likewise.
22562 * ipa-icf-gimple.c: Likewise.
22563 * ipa-icf.c: Likewise.
22564 * ipa-inline-analysis.c: Likewise.
22565 * ipa-inline-transform.c: Likewise.
22566 * ipa-inline.c: Likewise.
22567 * ipa-polymorphic-call.c: Likewise.
22568 * ipa-profile.c: Likewise.
22569 * ipa-prop.c: Likewise.
22570 * ipa-pure-const.c: Likewise.
22571 * ipa-ref.c: Likewise.
22572 * ipa-reference.c: Likewise.
22573 * ipa-split.c: Likewise.
22574 * ipa-utils.c: Likewise.
22575 * ipa-visibility.c: Likewise.
22577 * langhooks.c: Likewise.
22578 * lto-cgraph.c: Likewise.
22579 * lto-compress.c: Likewise.
22580 * lto-opts.c: Likewise.
22581 * lto-section-in.c: Likewise.
22582 * lto-section-out.c: Likewise.
22583 * lto-streamer-in.c: Likewise.
22584 * lto-streamer-out.c: Likewise.
22585 * lto-streamer.c: Likewise.
22586 * omp-low.c: Likewise.
22587 * opts-global.c: Likewise.
22588 * passes.c: Likewise.
22589 * predict.c: Likewise.
22590 * print-tree.c: Likewise.
22591 * profile.c: Likewise.
22593 * sanopt.c: Likewise.
22594 * stor-layout.c: Likewise.
22595 * symtab.c: Likewise.
22596 * toplev.c: Likewise.
22597 * trans-mem.c: Likewise.
22598 * tree-cfg.c: Likewise.
22599 * tree-chkp.c: Likewise.
22600 * tree-eh.c: Likewise.
22601 * tree-emutls.c: Likewise.
22602 * tree-inline.c: Likewise.
22603 * tree-nested.c: Likewise.
22604 * tree-parloops.c: Likewise.
22605 * tree-pretty-print.c: Likewise.
22606 * tree-profile.c: Likewise.
22607 * tree-sra.c: Likewise.
22608 * tree-ssa-alias.c: Likewise.
22609 * tree-ssa-live.c: Likewise.
22610 * tree-ssa-loop-ivcanon.c: Likewise.
22611 * tree-ssa-loop-ivopts.c: Likewise.
22612 * tree-ssa-pre.c: Likewise.
22613 * tree-ssa-sccvn.c: Likewise.
22614 * tree-ssa-strlen.c: Likewise.
22615 * tree-ssa-structalias.c: Likewise.
22616 * tree-streamer-in.c: Likewise.
22617 * tree-streamer-out.c: Likewise.
22618 * tree-streamer.c: Likewise.
22619 * tree-switch-conversion.c: Likewise.
22620 * tree-tailcall.c: Likewise.
22621 * tree-vect-data-refs.c: Likewise.
22622 * tree-vect-stmts.c: Likewise.
22623 * tree-vectorizer.c: Likewise.
22624 * tree.c: Likewise.
22625 * tsan.c: Likewise.
22626 * ubsan.c: Likewise.
22627 * value-prof.c: Likewise.
22628 * varasm.c: Likewise.
22629 * varpool.c: Likewise.
22630 * config/arm/arm.c: Likewise.
22631 * config/bfin/bfin.c: Likewise.
22632 * config/c6x/c6x.c: Likewise.
22633 * config/cris/cris.c: Likewise.
22634 * config/darwin-c.c: Likewise.
22635 * config/darwin.c: Likewise.
22636 * config/i386/i386.c: Likewise.
22637 * config/i386/winnt.c: Likewise.
22638 * config/microblaze/microblaze.c: Likewise.
22639 * config/mips/mips.c: Likewise.
22640 * config/rs6000/rs6000.c: Likewise.
22641 * config/rx/rx.c: Likewise.
22642 * config/s390/s390.c: Likewise.
22643 * config/tilegx/mul-tables.c: Likewise.
22645 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22647 * config/aarch64/aarch64.c, config/alpha/alpha.c,
22648 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
22649 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
22650 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
22651 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22652 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22653 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22654 config/microblaze/microblaze.c, config/mips/mips.c,
22655 config/mmix/mmix.c, config/mn10300/mn10300.c,
22656 config/moxie/moxie.c, config/msp430/msp430.c,
22657 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22658 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22659 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22660 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22661 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22662 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22663 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
22664 target-def.h include.
22665 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
22667 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22669 * Makefile.in (TARGET_DEF): Add target-insns.def.
22670 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
22671 (build/gentarget-def.o): New rule.
22672 (genprogrtl): Add target-def.
22673 * target-insns.def, gentarget-def.c: New files.
22674 * target.def: Add targetm.have_* and targetm.gen_* hooks,
22675 based on the contents of target-insns.def.
22676 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
22677 (HAVE_return, gen_return): Delete.
22678 * target-def.h: Include insn-target-def.h.
22679 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
22680 instead of direct calls. Rely on them to do the appropriate assertions.
22681 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
22682 (convert_jumps_to_returns): Use targetm interface instead of
22684 (thread_prologue_and_epilogue_insns): Likewise.
22685 * reorg.c (find_end_label, dbr_schedule): Likewise.
22686 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
22687 * shrink-wrap.c (convert_to_simple_return): Likewise.
22688 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
22690 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22692 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
22693 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22694 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
22695 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
22696 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22697 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22698 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22699 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
22700 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
22701 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22702 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22703 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22704 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22705 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22706 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22707 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
22710 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22712 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
22713 (unbounded_int_hashmap_traits::key_type): Likewise.
22714 * hash-map.h (hash_map): Get the key type from the traits.
22715 * hash-traits.h (default_hash_traits): By default, inherit from the
22716 template parameter.
22717 * alias.c (alias_set_traits): Delete.
22718 (alias_set_entry_d::children): Use alias_set_hash as the first
22719 template parameter.
22720 (record_alias_subset): Update accordingly.
22721 * except.c (tree_hash_traits): Delete.
22722 (type_to_runtime_map): Use tree_hash as the first template parameter.
22723 (init_eh): Update accordingly.
22724 * genmatch.c (capture_id_map_hasher): Delete.
22725 (cid_map_t): Use nofree_string_hash as first template parameter.
22726 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
22727 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
22728 Use symbol_compare_hash as the first template parameter in
22729 subdivide_hash_map.
22730 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
22731 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
22732 template parameter.
22733 * passes.c (pass_registry_hasher): Delete.
22734 (name_to_pass_map): Use nofree_string_hash as the first template
22736 (register_pass_name): Update accordingly.
22737 * sanopt.c (sanopt_tree_map_traits): Delete.
22738 (sanopt_tree_triplet_map_traits): Delete.
22739 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
22740 template parameter.
22741 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
22742 the first template parameter.
22743 * sese.c (rename_map_hasher): Delete.
22744 (rename_map_type): Use tree_ssa_name_hash as the first template
22746 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
22747 (function_summary::m_map): Use map_hash as the first template
22749 (function_summary::release): Update accordingly.
22750 * tree-if-conv.c (phi_args_hash_traits): Delete.
22751 (predicate_scalar_phi): Use tree_operand_hash as the first template
22752 parameter to phi_arg_map.
22753 * tree-inline.h (dependence_hasher): Delete.
22754 (copy_body_data::dependence_map): Use dependence_hash as the first
22755 template parameter.
22756 * tree-inline.c (remap_dependence_clique): Update accordingly.
22757 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
22758 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
22760 (addr_stridxptr): Update accordingly.
22761 * value-prof.c (profile_id_traits): Delete.
22762 (cgraph_node_map): Use profile_id_hash as the first template
22764 (init_node_map): Update accordingly.
22765 * config/alpha/alpha.c (string_traits): Delete.
22766 (machine_function::links): Use nofree_string_hash as the first
22767 template parameter.
22768 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
22769 * config/m32c/m32c.c (pragma_traits): Delete.
22770 (pragma_htab): Use nofree_string_hash as the first template parameter.
22771 (m32c_note_pragma_address): Update accordingly.
22772 * config/mep/mep.c (pragma_traits): Delete.
22773 (pragma_htab): Use nofree_string_hash as the first template parameter.
22774 (mep_note_pragma_flag): Update accordingly.
22775 * config/mips/mips.c (mips16_flip_traits): Delete.
22776 (mflip_mips16_htab): Use nofree_string_hash as the first template
22778 (mflip_mips16_use_mips16_p): Update accordingly.
22779 (local_alias_traits): Delete.
22780 (mips16_local_aliases): Use nofree_string_hash as the first template
22782 (mips16_local_alias): Update accordingly.
22784 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22786 * hash-map-traits.h (default_hashmap_traits): Delete.
22788 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22790 * hash-map-traits.h (unbounded_hashmap_traits): New class.
22791 (unbounded_int_hashmap_traits): Likewise.
22792 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
22794 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22796 * ipa-icf.h (symbol_compare_hash): New class.
22797 (symbol_compare_hashmap_traits): Use it.
22798 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
22799 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
22800 (mem_alloc_description::reverse_mem_map_t): Remove redundant
22801 default_hashmap_traits.
22802 * sanopt.c (sanopt_tree_triplet_hash): New class.
22803 (sanopt_tree_triplet_map_traits): Use it.
22805 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22807 * gengtype-parse.c (require_template_declaration): Allow '+' in
22808 template parameters. Consolidate cases.
22809 * hash-traits.h (int_hash): New class.
22810 * alias.c (alias_set_hash): New structure.
22811 (alias_set_traits): Use it.
22812 * symbol-summary.h (function_summary::map_hash): New class.
22813 (function_summary::summary_hashmap_traits): Use it.
22814 * tree-inline.h (dependence_hash): New class.
22815 (dependence_hasher): Use it.
22816 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
22817 * value-prof.c (profile_id_hash): New class.
22818 (profile_id_traits): Use it.
22820 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22822 * config/mips/mips.c (mips16_flip_traits): Use it.
22823 (local_alias_traits, mips16_local_aliases): Convert from a map of
22824 rtxes to a map of symbol names.
22825 (mips16_local_alias): Update accordingly.
22827 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22829 * hash-traits.h (string_hash, nofree_string_hash): New classes.
22830 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
22831 * passes.c (pass_registry_hasher): Likewise.
22832 * config/alpha/alpha.c (string_traits): Likewise.
22833 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
22834 * config/m32c/m32c.c (pragma_traits): Likewise.
22835 * config/mep/mep.c (pragma_traits): Likewise.
22837 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22839 * tree-hash-traits.h (tree_hash): New class.
22840 * except.c: Include tree-hash-traits.h.
22841 (tree_hash_traits): Use tree_hash.
22843 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22845 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
22846 * sese.c: Include tree-hash-traits.h.
22847 (rename_map_hasher): Use tree_ssa_name_hasher.
22849 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22851 * tree-hash-traits.h (tree_decl_hash): New class.
22852 * tree-ssa-strlen.c: Include tree-hash-traits.h.
22853 (stridxlist_hash_traits): Use tree_decl_hash.
22855 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22857 * tree-hash-traits.h: New file.
22858 (tree_operand_hash): New class.
22859 * sanopt.c: Include tree-hash-traits.h.
22860 (sanopt_tree_map_traits): Use tree_operand_hash.
22861 * tree-if-conv.c: Include tree-hash-traits.h.
22862 (phi_args_hash_traits): Use tree_operand_hash.
22863 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
22864 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
22866 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22868 * hash-map-traits.h: Include hash-traits.h.
22869 (simple_hashmap_traits): New class.
22870 * mem-stats.h (hash_map): Change the default traits to
22871 simple_hashmap_traits<default_hash_traits<Key> >.
22873 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22875 * hash-table.h: Update comments.
22877 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22879 * hash-traits.h (default_hash_traits): New structure.
22880 * hash-set.h (default_hashset_traits): Delete.
22881 (hash_set): Use default_hash_traits<Key> instead of
22882 default_hashset_traits. Delete hash_entry type and use Key directly.
22883 * ipa-devirt.c (pair_traits): Delete.
22884 (default_hash_traits <type_pair>): Override.
22885 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
22886 (odr_types_equivalent_p, add_type_duplicate): Likewise.
22888 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22890 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
22892 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22894 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
22895 (has_is_empty, is_empty_helper): Delete.
22896 (has_mark_deleted, mark_deleted_helper): Delete.
22897 (has_mark_empty, mark_empty_helper): Delete.
22898 (hash_table::is_deleted): Call the Descriptor unconditionally.
22899 (hash_table::is_empty): Likewise.
22900 (hash_table::mark_deleted): Likewise.
22901 (hash_table::mark_empty): Likewise.
22903 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22905 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
22906 redundant typedefs and members.
22907 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
22908 redundant typedefs.
22909 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
22910 * ipa-devirt.c (odr_name_hasher): Likewise.
22911 (polymorphic_call_target_hasher): Likewise.
22912 * ira-costs.c (cost_classes_hasher): Likewise.
22913 * statistics.c (stats_counter_hasher): Likewise.
22914 * trans-mem.c (log_entry_hasher): Likewise.
22915 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
22916 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
22917 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
22918 * var-tracking.c (variable_hasher): Likewise.
22919 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
22920 Remove redundant typedefs and members.
22922 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22924 * hash-traits.h (ggc_cache_hasher): Rename to...
22925 (ggc_cache_remove): ...this and remove typedefs.
22926 (ggc_cache_ptr_hash): New class.
22927 * hash-table.h: Update commentary.
22928 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
22929 rather than ggc_cache_hasher.
22930 (const_wide_int_hasher, reg_attr_hasher): Likewise.
22931 (const_double_hasher, const_fixed_hasher): Likewise.
22932 * function.c (insn_cache_hasher): Likewise.
22933 * trans-mem.c (tm_wrapper_hasher): Likewise.
22934 * tree.h (tree_decl_map_cache_hasher): Likewise.
22935 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
22936 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
22937 * ubsan.c (tree_type_map_cache_hasher): Likewise.
22938 * varasm.c (tm_clone_hasher): Likewise.
22939 * config/i386/i386.c (dllimport_hasher): Likewise.
22940 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
22941 (tree_hasher): Likewise.
22943 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22945 * hash-traits.h (ggc_hasher): Rename to...
22946 (ggc_remover): ...this and remove typedefs.
22947 (ggc_cache_hasher): Update accordingly. Add typedefs.
22948 (ggc_ptr_hash): New class.
22949 * hash-table.h: Update comment.
22950 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
22952 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
22953 (tree_descriptor_hasher): Likewise.
22954 * cgraph.c (function_version_hasher): Likewise.
22955 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
22956 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
22957 (dw_loc_list_hasher, addr_hasher): Likewise.
22958 * function.h (used_type_hasher): Likewise.
22959 * function.c (temp_address_hasher): Likewise.
22960 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
22961 * libfuncs.h (libfunc_hasher): Likewise.
22962 * lto-streamer.h (decl_state_hasher): Likewise.
22963 * optabs.c (libfunc_decl_hasher): Likewise.
22964 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
22965 * varasm.c (section_hasher, object_block_hasher): Likewise.
22966 (const_rtx_desc_hasher): Likewise.
22967 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
22968 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
22970 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22972 * hash-traits.h (free_ptr_hash): New class.
22973 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
22974 rather than typed_free_remove. Remove redudant typedefs.
22975 (external_ref_hasher): Likewise.
22976 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
22977 (ehspec_hasher): Likewise.
22978 * ggc-common.c (saving_hasher): Likewise.
22979 * gimplify.c (gimplify_hasher): Likewise.
22980 * haifa-sched.c (delay_i2_hasher): Likewise.
22981 * loop-invariant.c (invariant_expr_hasher): Likewise.
22982 * loop-iv.c (biv_entry_hasher): Likewise.
22983 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
22984 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
22985 * tree-cfg.c (locus_discrim_hasher): Likewise.
22986 * tree-eh.c (finally_tree_hasher): Likewise.
22987 * tree-into-ssa.c (var_info_hasher): Likewise.
22988 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
22989 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
22990 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
22991 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
22992 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
22993 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
22994 (shared_bitmap_hasher): Likewise.
22995 * tree-ssa-threadupdate.c (redirection_data): Likewise.
22996 * tree-vectorizer.h (peel_info_hasher): Likewise.
22997 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
22998 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
23000 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23002 * hash-table.h: Update comments.
23003 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
23004 (nofree_ptr_hash): New class.
23005 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
23006 than typed_noop_remove. Remove redudant typedefs.
23007 * attribs.c (attribute_hasher): Likewise.
23008 * cfg.c (bb_copy_hasher): Likewise.
23009 * cselib.c (cselib_hasher): Likewise.
23010 * dse.c (invariant_group_base_hasher): Likewise.
23011 * dwarf2cfi.c (trace_info_hasher): Likewise.
23012 * dwarf2out.c (macinfo_entry_hasher): Likewise.
23013 (comdat_type_hasher, loc_list_hasher): Likewise.
23014 * gcse.c (pre_ldst_expr_hasher): Likewise.
23015 * genmatch.c (id_base): Likewise.
23016 * genrecog.c (test_pattern_hasher): Likewise.
23017 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
23018 * haifa-sched.c (delay_i1_hasher): Likewise.
23019 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
23020 * ipa-icf.h (congruence_class_group_hash): Likewise.
23021 * ipa-profile.c (histogram_hash): Likewise.
23022 * ira-color.c (allocno_hard_regs_hasher): Likewise.
23023 * lto-streamer.h (string_slot_hasher): Likewise.
23024 * lto-streamer.c (tree_entry_hasher): Likewise.
23025 * plugin.c (event_hasher): Likewise.
23026 * postreload-gcse.c (expr_hasher): Likewise.
23027 * store-motion.c (st_expr_hasher): Likewise.
23028 * tree-sra.c (uid_decl_hasher): Likewise.
23029 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
23030 (ssa_name_var_hash): Likewise.
23031 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
23032 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
23033 * tree-ssa-pre.c (pre_expr_d): Likewise.
23034 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
23035 * vtable-verify.h (registration_hasher): Likewise.
23036 * vtable-verify.c (vtbl_map_hasher): Likewise.
23037 * config/arm/arm.c (libcall_hasher): Likewise.
23038 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
23039 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
23040 * config/sol2.c (comdat_entry_hasher): Likewise.
23041 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
23042 (print_fold_checksum, fold_checksum_tree): Likewise.
23043 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
23044 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
23045 (fold_build_call_array_loc): Likewise.
23046 * tree-ssa-ccp.c (gimple_htab): Likewise.
23047 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
23048 rather than pointer_type.
23050 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23052 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
23053 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
23055 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23057 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
23058 (ggc_hasher::ggc_mx): Likewise.
23059 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
23060 that duplicate ggc_hasher ones.
23062 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23064 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
23065 (gt_cleare_cache): Check here for deleted and empty entries.
23066 Replace handle_cache_entry with a call to keep_cache_entry.
23067 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
23068 (ggc_cache_hasher::keep_cache_entry): New function.
23069 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
23070 (tm_wrapper_hasher::keep_cache_entry): New function.
23071 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
23072 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23073 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
23074 (type_cache_hasher::keep_cache_entry): New function.
23075 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
23076 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23077 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
23078 (tree_type_map_cache_hasher::keep_cache_entry): New function.
23079 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
23080 (tm_clone_hasher::keep_cache_entry): New function.
23081 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
23082 (dllimport_hasher::keep_cache_entry): New function.
23084 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23086 * hash-table.h: Include hash-traits.h.
23087 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
23088 (ggc_cache_hasher): Move to...
23089 * hash-traits.h: ...this new file.
23091 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23093 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
23094 struct cl_optimization.
23095 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
23096 * tree.c (make_node_stat): Allocate cl_optimization struct.
23097 (copy_node_stat): Allocate and copy cl_optimization struct.
23099 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23101 * function.h (struct incoming_args): Move struct.
23102 (pass_by_reference, reference_callee_copied): Remove prototypes.
23103 * emit-rtl.h (struct incoming_args): Relocate struct here.
23104 * calls.h (pass_by_reference, reference_callee_copied): Relocate
23106 * function.c (pass_by_reference, reference_callee_copied): Move.
23107 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
23108 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
23109 * ipa-chkp.c: Include calls.h.
23111 2015-06-25 Andrew Macleod <amacleod@redhat.com>
23113 * alias.h (alias_set_type): Move typedef.
23114 * coretypes.h (alias_set_type): Relocate typedef here.
23115 * rtl.h: Don't include alias.h.
23117 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23119 * cgraph.h (cgraph_rtl_info): Move to rtl.h
23120 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
23122 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
23123 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
23125 * calls.c: Include hard-reg-set.h before rtl.h.
23128 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23129 Vladimir Makarov <vmakarov@redhat.com>
23131 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
23134 2015-06-25 Richard Biener <rguenther@suse.de>
23136 * fold-const.c (fold_binary_loc): Move simplification of
23137 (X <<>> C1) & C2 ...
23138 * match.pd: ... here.
23140 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
23142 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
23144 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23146 * match.pd: Add patterns for vec_conds between 1 and 0.
23148 2015-06-25 Richard Biener <rguenther@suse.de>
23150 * tree-vect-stmts.c (vectorizable_conversion): Do not set
23151 STMT_VINFO_VEC_STMT for SLP.
23152 (vectorizable_store): Likewise.
23153 (vectorizable_load): Likewise.
23154 (vect_transform_stmt): Catch SLP vectorization clobbering
23155 STMT_VINFO_VEC_STMT.
23157 2015-06-25 Richard Biener <rguenther@suse.de>
23159 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
23161 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
23162 cleanup resulting dead code and parameters.
23163 (vect_transform_slp_perm_load): Adjust.
23165 2015-06-25 Nick Clifton <nickc@redhat.com>
23167 * config/bfin/bfin.c (bfin_expand_prologue): Set
23168 current_function_static_stack_size if flag_stack_usage_info is set.
23169 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
23170 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
23171 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
23172 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
23174 2015-06-25 Tom de Vries <tom@codesourcery.com>
23176 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
23177 comment that the generated IV is unsigned.
23179 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23182 * config/arm/arm.c (arm_dbx_register_number): Return
23183 DWARF_FRAME_REGISTERS by default.
23185 2015-06-25 Tom de Vries <tom@codesourcery.com>
23187 * dominance.c (calculate_dominance_info): Fix verify_dominators call
23188 argument. Call verify_dominator when reusing dominator info.
23190 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
23193 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
23194 an additional element of the unspec vector. Modify indices
23196 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
23197 * config/sh/sh.c (prepare_move_operands): Pass incremented
23198 const_int to gen_GOTaddr2picreg.
23199 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
23201 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23203 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
23204 Condition on TARGET_FLOAT.
23206 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23208 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
23211 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23213 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
23215 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
23216 aarch64_err_no_fpadvsimd.
23218 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
23219 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
23220 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
23221 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
23222 Turn error into assert, test TARGET_FLOAT.
23223 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
23226 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
23229 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
23231 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
23233 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
23235 2015-06-24 Renlin Li <renlin.li@arm.com>
23237 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
23238 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
23240 2015-06-24 Richard Biener <rguenther@suse.de>
23242 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
23244 (lower_opt_convert): Support lowering of conditional view_convert.
23245 (parser::parse_operation): Likewise.
23246 (parser::parse_for): Likewise.
23248 2015-06-24 Renlin Li <renlin.li@arm.com>
23250 * varasm.c (emit_local): Use unsigned int for align variable.
23252 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23255 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
23256 for negative numbers.
23258 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23260 PR rtl-optimization/66306
23261 * reload.c (find_reloads): Swap the match_dup info for
23262 commutative operands.
23264 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23266 * config/s390/vx-builtins.md
23267 ("vec_scatter_element<mode>_<non_vec_int>")
23268 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
23269 attribute with bhfgq.
23271 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23273 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
23275 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23277 * config/s390/s390-builtin-types.def: Add flag to indicate the
23278 options under which the function type is needed.
23279 * config/s390/s390-builtins.def: Add flag to indicate the options
23280 under which the builtin is enabled.
23281 * config/s390/s390-builtins.h: Add flags parameter to macro
23283 (bflags_for_builtin): New function.
23284 (flags_for_builtin): Renamed to ...
23285 (opflags_for_builtin): ... this.
23286 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
23287 flags_for_builtin to bflags_for_builtin and
23288 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
23289 * config/s390/s390.c: Add initialization of bflags_builtin and
23290 opflags_builtin arrays.
23291 Remove code for flags_builtin.
23292 (s390_init_builtins): Only create builtin function types if one of
23293 their flags is active.
23294 Only create builtins if all of their flags are active.
23295 (s390_expand_builtin): Rename flags_for_builtin to
23296 opflags_for_builtin.
23298 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23300 * config/s390/vecintrin.h: Remove internal builtins.
23302 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23304 * config/s390/s390.c (s390_secondary_reload): Fix check for
23305 GENERAL_REGS register class.
23307 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23309 * config/s390/s390.c (s390_support_vector_misalignment): Call
23310 default implementation for !TARGET_VX.
23312 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23314 * config/s390/s390.c (s390_legitimate_constant_p): Add
23317 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23319 * config/s390/s390.c (s390_vector_abi): New variable definition.
23320 (s390_check_type_for_vector_abi): New function.
23321 (TARGET_ASM_FILE_END): New macro definition.
23322 (s390_asm_file_end): New function.
23323 (s390_function_arg): Call s390_check_type_for_vector_abi.
23324 (s390_gimplify_va_arg): Likewise.
23325 * configure: Regenerate.
23326 * configure.ac: Check for .gnu_attribute Binutils feature.
23328 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
23331 * config/bfin/bfin.c (hwloop_optimize): Initialize
23332 JUMP_LABEL for newly created jump.
23334 2015-06-23 Tristan Gingold <gingold@adacore.com>
23336 * collect-utils.c (collect_wait): Unlink the response file here
23338 (do_wait): ...here.
23339 (utils_cleanup): ...and here.
23341 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
23343 * df-scan.c: Don't include target-def.h.
23344 * targhooks.c: Likewise.
23345 * config/arm/arm-c.c: Likewise.
23346 * config/i386/i386-c.c: Likewise.
23347 * config/nds32/nds32-cost.c: Likewise.
23348 * config/nds32/nds32-fp-as-gp.c: Likewise.
23349 * config/nds32/nds32-intrinsic.c: Likewise.
23350 * config/nds32/nds32-isr.c: Likewise.
23351 * config/nds32/nds32-md-auxiliary.c: Likewise.
23352 * config/nds32/nds32-memory-manipulation.c: Likewise.
23353 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23354 * config/nds32/nds32-predicates.c: Likewise.
23356 2015-06-23 Richard Biener <rguenther@suse.de>
23358 PR tree-optimization/66636
23359 * tree-vect-stmts.c (vectorizable_store): Properly compute the
23360 def type for further defs for strided stores.
23362 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
23364 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
23365 conditional selects.
23366 (setcc_int<mode>, setcc_float<mode>): Reformat.
23368 2015-06-23 Marek Polacek <polacek@redhat.com>
23370 * match.pd ((x + y) - (x | y) -> x & y,
23371 (x + y) - (x & y) -> x | y): New patterns.
23373 2015-06-23 Ludovic Courtès <ludo@gnu.org>
23376 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
23377 '-dynamic-linker' within %{!shared: ...}.
23379 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
23382 * config/i386/predicates.md (addsub_vm_operator): New predicate.
23383 (addsub_vs_operator): Ditto.
23384 (addsub_vs_parallel): Ditto.
23385 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
23386 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
23387 Put minus RTX before plus and adjust vec_merge selector.
23388 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
23389 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
23390 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
23391 (addsub vec_merge splitters): New combiner splitters.
23392 (addsub vec_select/vec_concat splitters): Ditto.
23394 2015-06-23 Bin Cheng <bin.cheng@arm.com>
23396 PR tree-optimization/66449
23397 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
23398 POINTER_PLUS_EXPR for pointers.
23400 2015-06-23 Alan Modra <amodra@gmail.com>
23402 * rtlanal.c (commutative_operand_precedence): Correct comments.
23403 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
23404 declaration. Return an int. Distinguish REG,REG return from
23406 (struct simplify_plus_minus_op_data): Make local to function.
23407 (simplify_plus_minus): Don't set canonicalized if merely sorting
23408 registers. Avoid packing ops if nothing changes. White space fixes.
23410 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
23412 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
23413 -fdump-ada-spec is passed but not if -fsyntax-only is.
23415 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
23418 * lra-lives.c (process_bb_lives): Check insn copying the same
23419 reload pseudo and don't create a copy for it.
23421 2015-06-22 Tom de Vries <tom@codesourcery.com>
23423 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
23426 2015-06-22 Tom de Vries <tom@codesourcery.com>
23428 * builtins.def (DEF_GOMP_BUILTIN): Test
23429 'flag_tree_parallelize_loops > 1' instead of
23430 'flag_tree_parallelize_loops'. Test flag_cilkplus.
23432 2015-06-22 Tom de Vries <tom@codesourcery.com>
23434 * dominance.c (calculate_dominance_info): Verify dominators if
23437 2015-06-22 Marek Polacek <polacek@redhat.com>
23439 * match.pd ((x ^ y) ^ (x | y) -> x & y,
23440 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
23441 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
23442 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
23444 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
23447 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
23448 cost of embedded comparison.
23450 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23453 * config/rs6000/predicates.md (altivec_register_operand): Permit
23454 virtual stack registers.
23455 (vsx_register_operand): Likewise.
23456 (vfloat_operand): Likewise.
23457 (vint_operand): Likewise.
23458 (vlogical_operand): Likewise.
23460 2015-06-22 Richard Biener <rguenther@suse.de>
23462 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
23463 and single_scalar_iteration_cost members.
23464 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
23465 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
23466 (vect_get_single_scalar_iteration_cost): Remove.
23467 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
23468 Use LOOP_VINFO_SCALAR_ITERATION_COST.
23469 * tree-vect-loop.c (destroy_loop_vec_info): Free
23471 (vect_get_single_scalar_iteration_cost): Compute result into
23472 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
23473 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
23474 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
23475 (vect_estimate_min_profitable_iters): Use them.
23477 2015-06-22 Christian Bruel <christian.bruel@st.com>
23480 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
23481 (TARGET_INSERT_ATTRIBUTES): Define.
23482 (thumb_flipper): New var.
23483 * config/arm/arm.opt (-mflip-thumb): New switch.
23485 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23486 Martin Liska <mliska@suse.cz>
23489 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
23490 construction of arg_types.
23491 (sem_function::sem_function): Likewise.
23492 (sem_function::~sem_function): Remove destruction of arg_types.
23493 (sem_function::compatible_parm_types_p): New function.
23494 (sem_function::equals_wpa): Reorg matching of return values
23495 and parameter types.
23496 (sem_function::equals_private): Reorg mathcing of argument types.
23497 (sem_function::parse_tree_args): Remove.
23498 * ipa-icf.h (init_wpa): Do not call it.
23499 (parse_tree_args): Remove.
23500 (compatible_parm_types_p): Declare.
23501 (result_type): Remove.
23502 (arg_types): Remove.
23504 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23507 * ipa-polymorphic-call.c
23508 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
23509 initializing alias oracle; fix formating; set base_alias_set if it
23512 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
23514 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
23515 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
23516 (find_inc): Likewise.
23517 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
23519 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
23520 * df-scan.c (df_swap_refs): Remove.
23521 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
23522 * dominance.c (link_roots): Use std::swap instead of manually swapping.
23523 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
23524 * fold-const.c (fold_relational_const): Likewise.
23525 * genattrtab.c (simplify_test_exp): Likewise.
23526 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
23527 gimple_simplify): Likewise.
23528 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
23529 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
23530 * ipa-devirt.c (add_type_duplicate): Likewise.
23531 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
23532 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
23533 * lra.c (lra_create_copy): Likewise.
23534 * lto-streamer-out.c (DFS::DFS): Likewise.
23535 * modulo-sched.c (get_sched_window): Likewise.
23536 * omega.c (omega_pretty_print_problem): Likewise.
23537 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
23538 * reload1.c (reloads_unique_chain_p): Likewise.
23539 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
23540 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
23542 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
23544 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
23545 predicate_mem_writes): Likewise.
23546 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
23547 * tree-predcom.c (combine_chains): Likewise.
23548 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
23549 refs_may_alias_p_1): Likewise.
23550 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
23551 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23552 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
23553 number_of_iterations_cond): Likewise.
23554 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23555 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
23556 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
23557 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
23558 * tree-vrp.c (extract_range_from_binary_expr_1,
23559 extract_range_from_unary_expr_1): Likewise.
23561 2015-06-20 Marek Polacek <polacek@redhat.com>
23563 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
23565 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
23568 * config/sh/sh.c (prepare_move_operands): Replace subreg
23569 index term with R0 for base and index addressing.
23571 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
23573 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
23575 (movsf_aarch64): Change condition from register_operand to
23576 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
23577 load1. Change type for alternative 7 to store1.
23578 (movdf_aarch64): Likewise.
23580 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
23582 * config/vax/vax.md: Adjust sign/zero extend patterns to
23583 handle SUBREGs in operands[1].
23585 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23587 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
23588 of manually swapping.
23589 (expand_vec_perm_interleave2): Likewise.
23591 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
23593 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
23594 reuse bounds created for abnormal ssa names.
23596 2015-06-19 Jakub Jelinek <jakub@redhat.com>
23598 * config/nvptx/nvptx.md (allocate_stack): Rename to...
23599 (allocate_stack_<mode>): ... this, and add :P on both
23600 match_operand and unspec.
23601 (allocate_stack): New expander.
23603 2015-06-19 Christian Bruel <christian.bruel@st.com>
23607 * config/arm/arm.c (arm_set_current_function): Handle
23608 explicit default options.
23610 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
23612 * config/i386/i386.md (*movsicc_noc_zext): New insn.
23613 (zero-extended cmove with mem peephole2): New pattern.
23614 (cmove with mem peephole2): Merge patterns.
23616 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
23618 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
23620 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
23622 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
23623 * config/mips/mips.md (*madd4<mode>): Ditto.
23624 (*nmadd3<mode>) Ditto.
23625 (*nmadd4<mode>_fastmath): Ditto.
23626 (*nmadd3<mode>_fastmath): Ditto.
23627 (*nmsub4<mode>): Ditto.
23628 (*nmsub3<mode>): Ditto.
23629 (*nmsub4<mode>_fastmath): Ditto.
23630 (*nmsub3<mode>_fastmath): Ditto.
23632 2015-06-18 Michael Matz <matz@suse.de>
23634 PR middle-end/66253
23635 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
23636 grouped strided stores.
23637 (vectorizable_load): Don't use the DR from first_stmt in
23638 the non-SLP grouped strided case.
23640 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23643 * function.c (assign_bounds): Add arguments assign_regs,
23644 assign_special, assign_bt.
23645 (assign_parms): For vararg functions handle bounds in BT
23646 and special slots after incoming vararg bounds.
23648 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23650 PR middle-end/66568
23651 * cfgexpand.c (expand_return): Handle missing bounds.
23652 (expand_gimple_stmt_1): Likewise.
23653 * tree-chkp.c (chkp_expand_zero_bounds): New.
23654 * tree-chkp.h (chkp_expand_zero_bounds): New.
23656 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23658 PR middle-end/66567
23659 * ipa-chkp.c (chkp_maybe_create_clone): Require
23660 functions to be instrumentable.
23661 * tree-chkp.c (chkp_replace_function_pointer): Use
23662 chkp_instrumentable_p instead of attribute check.
23664 2015-06-18 Richard Biener <rguenther@suse.de>
23666 PR tree-optimization/66510
23667 * tree-vect-stmts.c (vectorizable_load): Properly compute the
23668 number of vector loads for SLP permuted loads.
23669 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
23670 check the stride for loop vectorization.
23671 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
23672 vectorization factor.
23673 (vect_analyze_group_access): If the group size is not a power
23674 of two require a epilogue loop.
23675 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
23676 compute and optimizing and alias test pruning after final
23677 vectorization factor computation.
23678 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
23680 (vect_transform_slp_perm_load): Properly compute the original
23681 number of vector load stmts.
23683 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
23685 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
23686 "unlikely character , in @var" warning.
23688 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
23690 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
23691 (ix86_function_arg_advance): Ditto.
23692 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
23694 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23696 * function.h (struct rtl_data): Remove struct and accessor macros.
23697 * emit-rtl.h (struct rtl_data): Relocate to here.
23698 * Makefile.in (GTFILES): Add emit-rtl.h.
23699 * df-core.c: Include emit-rtl.h.
23700 * genattrtab.c: Likewise.
23701 * genconditions.c: Likewise.
23702 * genpreds.c: Likewise.
23703 * genrecog.c: Likewise.
23704 * regcprop.c: Likewise.
23705 * resource.c: Likewise.
23706 * sched-rgn.c: Likewise.
23707 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23708 * config/i386/winnt.c: Likewise.
23710 2015-06-17 Jakub Jelinek <jakub@redhat.com>
23712 PR middle-end/66429
23713 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
23714 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
23715 and has_force_vectorize_loops flags from cfun into
23717 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
23718 if simduid is non-NULL.
23719 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
23720 * passes.def (pass_simduid_cleanup): Add new pass after loop
23722 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
23723 indirection from htab argument's type.
23724 (shrink_simd_arrays): New function.
23725 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
23726 Don't call adjust_simduid_builtins if there are no loops.
23727 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
23728 (pass_simduid_cleanup::execute): New method.
23729 (make_pass_simduid_cleanup): New function.
23731 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
23733 * tree-core.h (tree_target_option): Make opts field a pointer to a
23734 cl_target_option instead of an instance of the struct.
23735 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
23737 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
23738 TARGET_OPTION_NODE.
23739 (copy_node_stat): Allocate and copy struct cl_target_option.
23741 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23743 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
23744 Remove conditional exposure of prototypes.
23745 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
23746 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
23747 definitions in tree.h with functions.
23748 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
23750 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
23752 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
23754 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
23755 (*cmp<mode>_signed): ... this.
23756 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
23757 (*cmp<mode>_unsigned): ... this. Remove %b.
23759 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23761 * coretypes.h: Include input.h and as-a.h.
23762 * rtl.h: Include input.h and as-a.h for generator files.
23763 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
23764 * vec.c: Don't include diagnostic-core.h.
23765 * alias.c: Do not include input.h, line-map.h or is-a.h.
23766 * asan.c: Likewise.
23767 * attribs.c: Likewise.
23768 * auto-inc-dec.c: Likewise.
23769 * auto-profile.c: Likewise.
23770 * bb-reorder.c: Likewise.
23771 * bt-load.c: Likewise.
23772 * builtins.c: Likewise.
23773 * caller-save.c: Likewise.
23774 * calls.c: Likewise.
23775 * ccmp.c: Likewise.
23777 * cfganal.c: Likewise.
23778 * cfgbuild.c: Likewise.
23779 * cfgcleanup.c: Likewise.
23780 * cfgexpand.c: Likewise.
23781 * cfghooks.c: Likewise.
23782 * cfgloop.c: Likewise.
23783 * cfgloop.h: Likewise.
23784 * cfgloopanal.c: Likewise.
23785 * cfgloopmanip.c: Likewise.
23786 * cfgrtl.c: Likewise.
23787 * cgraph.c: Likewise.
23788 * cgraphbuild.c: Likewise.
23789 * cgraphclones.c: Likewise.
23790 * cgraphunit.c: Likewise.
23791 * cilk-common.c: Likewise.
23792 * combine-stack-adj.c: Likewise.
23793 * combine.c: Likewise.
23794 * compare-elim.c: Likewise.
23795 * convert.c: Likewise.
23796 * coverage.c: Likewise.
23797 * cppbuiltin.c: Likewise.
23798 * cprop.c: Likewise.
23800 * cselib.c: Likewise.
23801 * data-streamer-in.c: Likewise.
23802 * data-streamer-out.c: Likewise.
23803 * data-streamer.c: Likewise.
23804 * dbxout.c: Likewise.
23807 * debug.c: Likewise.
23808 * df-core.c: Likewise.
23809 * df-problems.c: Likewise.
23810 * df-scan.c: Likewise.
23813 * diagnostic-core.h: Likewise.
23814 * diagnostic.c: Likewise.
23815 * dojump.c: Likewise.
23816 * dominance.c: Likewise.
23817 * domwalk.c: Likewise.
23818 * double-int.c: Likewise.
23820 * dumpfile.c: Likewise.
23821 * dumpfile.h: Likewise.
23822 * dwarf2asm.c: Likewise.
23823 * dwarf2cfi.c: Likewise.
23824 * dwarf2out.c: Likewise.
23825 * emit-rtl.c: Likewise.
23826 * et-forest.c: Likewise.
23827 * except.c: Likewise.
23828 * explow.c: Likewise.
23829 * expmed.c: Likewise.
23830 * expr.c: Likewise.
23831 * final.c: Likewise.
23832 * fixed-value.c: Likewise.
23833 * fold-const.c: Likewise.
23834 * function.c: Likewise.
23835 * fwprop.c: Likewise.
23836 * gcc-plugin.h: Likewise.
23837 * gcse.c: Likewise.
23838 * generic-match-head.c: Likewise.
23839 * ggc-page.c: Likewise.
23840 * gimple-builder.c: Likewise.
23841 * gimple-expr.c: Likewise.
23842 * gimple-fold.c: Likewise.
23843 * gimple-iterator.c: Likewise.
23844 * gimple-low.c: Likewise.
23845 * gimple-match-head.c: Likewise.
23846 * gimple-pretty-print.c: Likewise.
23847 * gimple-ssa-isolate-paths.c: Likewise.
23848 * gimple-ssa-strength-reduction.c: Likewise.
23849 * gimple-streamer-in.c: Likewise.
23850 * gimple-streamer-out.c: Likewise.
23851 * gimple-streamer.h: Likewise.
23852 * gimple-walk.c: Likewise.
23853 * gimple.c: Likewise.
23854 * gimplify-me.c: Likewise.
23855 * gimplify.c: Likewise.
23856 * godump.c: Likewise.
23857 * graph.c: Likewise.
23858 * graphite-blocking.c: Likewise.
23859 * graphite-dependences.c: Likewise.
23860 * graphite-interchange.c: Likewise.
23861 * graphite-isl-ast-to-gimple.c: Likewise.
23862 * graphite-optimize-isl.c: Likewise.
23863 * graphite-poly.c: Likewise.
23864 * graphite-scop-detection.c: Likewise.
23865 * graphite-sese-to-poly.c: Likewise.
23866 * graphite.c: Likewise.
23867 * haifa-sched.c: Likewise.
23868 * hw-doloop.c: Likewise.
23869 * ifcvt.c: Likewise.
23870 * init-regs.c: Likewise.
23871 * input.c: Likewise.
23872 * internal-fn.c: Likewise.
23873 * ipa-chkp.c: Likewise.
23874 * ipa-comdats.c: Likewise.
23875 * ipa-cp.c: Likewise.
23876 * ipa-devirt.c: Likewise.
23877 * ipa-icf-gimple.c: Likewise.
23878 * ipa-icf.c: Likewise.
23879 * ipa-inline-analysis.c: Likewise.
23880 * ipa-inline-transform.c: Likewise.
23881 * ipa-inline.c: Likewise.
23882 * ipa-polymorphic-call.c: Likewise.
23883 * ipa-profile.c: Likewise.
23884 * ipa-prop.c: Likewise.
23885 * ipa-pure-const.c: Likewise.
23886 * ipa-ref.c: Likewise.
23887 * ipa-reference.c: Likewise.
23888 * ipa-split.c: Likewise.
23889 * ipa-utils.c: Likewise.
23890 * ipa-visibility.c: Likewise.
23892 * ira-build.c: Likewise.
23893 * ira-color.c: Likewise.
23894 * ira-conflicts.c: Likewise.
23895 * ira-costs.c: Likewise.
23896 * ira-emit.c: Likewise.
23897 * ira-lives.c: Likewise.
23899 * jump.c: Likewise.
23900 * langhooks.c: Likewise.
23902 * loop-doloop.c: Likewise.
23903 * loop-init.c: Likewise.
23904 * loop-invariant.c: Likewise.
23905 * loop-iv.c: Likewise.
23906 * loop-unroll.c: Likewise.
23907 * lower-subreg.c: Likewise.
23908 * lra-assigns.c: Likewise.
23909 * lra-coalesce.c: Likewise.
23910 * lra-constraints.c: Likewise.
23911 * lra-eliminations.c: Likewise.
23912 * lra-lives.c: Likewise.
23913 * lra-remat.c: Likewise.
23914 * lra-spills.c: Likewise.
23916 * lto-cgraph.c: Likewise.
23917 * lto-compress.c: Likewise.
23918 * lto-opts.c: Likewise.
23919 * lto-section-in.c: Likewise.
23920 * lto-section-out.c: Likewise.
23921 * lto-streamer-in.c: Likewise.
23922 * lto-streamer-out.c: Likewise.
23923 * lto-streamer.c: Likewise.
23925 * mode-switching.c: Likewise.
23926 * modulo-sched.c: Likewise.
23927 * omega.c: Likewise.
23928 * omp-low.c: Likewise.
23929 * optabs.c: Likewise.
23930 * opts-global.c: Likewise.
23931 * opts.h: Likewise.
23932 * passes.c: Likewise.
23933 * plugin.c: Likewise.
23934 * postreload-gcse.c: Likewise.
23935 * postreload.c: Likewise.
23936 * predict.c: Likewise.
23937 * pretty-print.h: Likewise.
23938 * print-rtl.c: Likewise.
23939 * print-tree.c: Likewise.
23940 * profile.c: Likewise.
23941 * real.c: Likewise.
23942 * realmpfr.c: Likewise.
23943 * recog.c: Likewise.
23945 * reg-stack.c: Likewise.
23946 * regcprop.c: Likewise.
23947 * reginfo.c: Likewise.
23948 * regrename.c: Likewise.
23949 * regstat.c: Likewise.
23950 * reload.c: Likewise.
23951 * reload1.c: Likewise.
23952 * reorg.c: Likewise.
23953 * resource.c: Likewise.
23954 * rtl-chkp.c: Likewise.
23955 * rtl-error.c: Likewise.
23956 * rtlanal.c: Likewise.
23957 * rtlhooks.c: Likewise.
23958 * sanopt.c: Likewise.
23959 * sched-deps.c: Likewise.
23960 * sched-ebb.c: Likewise.
23961 * sched-rgn.c: Likewise.
23962 * sched-vis.c: Likewise.
23963 * sdbout.c: Likewise.
23964 * sel-sched-dump.c: Likewise.
23965 * sel-sched-ir.c: Likewise.
23966 * sel-sched.c: Likewise.
23967 * sese.c: Likewise.
23968 * shrink-wrap.c: Likewise.
23969 * simplify-rtx.c: Likewise.
23970 * stack-ptr-mod.c: Likewise.
23971 * statistics.c: Likewise.
23972 * stmt.c: Likewise.
23973 * stor-layout.c: Likewise.
23974 * store-motion.c: Likewise.
23975 * streamer-hooks.c: Likewise.
23976 * stringpool.c: Likewise.
23977 * symtab.c: Likewise.
23978 * target-globals.c: Likewise.
23979 * targhooks.c: Likewise.
23980 * toplev.c: Likewise.
23981 * tracer.c: Likewise.
23982 * trans-mem.c: Likewise.
23983 * tree-affine.c: Likewise.
23984 * tree-browser.c: Likewise.
23985 * tree-call-cdce.c: Likewise.
23986 * tree-cfg.c: Likewise.
23987 * tree-cfgcleanup.c: Likewise.
23988 * tree-chkp-opt.c: Likewise.
23989 * tree-chkp.c: Likewise.
23990 * tree-chrec.c: Likewise.
23991 * tree-complex.c: Likewise.
23992 * tree-data-ref.c: Likewise.
23993 * tree-dfa.c: Likewise.
23994 * tree-diagnostic.c: Likewise.
23995 * tree-dump.c: Likewise.
23996 * tree-eh.c: Likewise.
23997 * tree-emutls.c: Likewise.
23998 * tree-if-conv.c: Likewise.
23999 * tree-inline.c: Likewise.
24000 * tree-into-ssa.c: Likewise.
24001 * tree-iterator.c: Likewise.
24002 * tree-loop-distribution.c: Likewise.
24003 * tree-nested.c: Likewise.
24004 * tree-nrv.c: Likewise.
24005 * tree-object-size.c: Likewise.
24006 * tree-outof-ssa.c: Likewise.
24007 * tree-parloops.c: Likewise.
24008 * tree-phinodes.c: Likewise.
24009 * tree-predcom.c: Likewise.
24010 * tree-pretty-print.c: Likewise.
24011 * tree-profile.c: Likewise.
24012 * tree-scalar-evolution.c: Likewise.
24013 * tree-sra.c: Likewise.
24014 * tree-ssa-address.c: Likewise.
24015 * tree-ssa-alias.c: Likewise.
24016 * tree-ssa-ccp.c: Likewise.
24017 * tree-ssa-coalesce.c: Likewise.
24018 * tree-ssa-copy.c: Likewise.
24019 * tree-ssa-copyrename.c: Likewise.
24020 * tree-ssa-dce.c: Likewise.
24021 * tree-ssa-dom.c: Likewise.
24022 * tree-ssa-dse.c: Likewise.
24023 * tree-ssa-forwprop.c: Likewise.
24024 * tree-ssa-ifcombine.c: Likewise.
24025 * tree-ssa-live.c: Likewise.
24026 * tree-ssa-loop-ch.c: Likewise.
24027 * tree-ssa-loop-im.c: Likewise.
24028 * tree-ssa-loop-ivcanon.c: Likewise.
24029 * tree-ssa-loop-ivopts.c: Likewise.
24030 * tree-ssa-loop-manip.c: Likewise.
24031 * tree-ssa-loop-niter.c: Likewise.
24032 * tree-ssa-loop-prefetch.c: Likewise.
24033 * tree-ssa-loop-unswitch.c: Likewise.
24034 * tree-ssa-loop.c: Likewise.
24035 * tree-ssa-math-opts.c: Likewise.
24036 * tree-ssa-operands.c: Likewise.
24037 * tree-ssa-phiopt.c: Likewise.
24038 * tree-ssa-phiprop.c: Likewise.
24039 * tree-ssa-pre.c: Likewise.
24040 * tree-ssa-propagate.c: Likewise.
24041 * tree-ssa-reassoc.c: Likewise.
24042 * tree-ssa-sccvn.c: Likewise.
24043 * tree-ssa-scopedtables.c: Likewise.
24044 * tree-ssa-sink.c: Likewise.
24045 * tree-ssa-strlen.c: Likewise.
24046 * tree-ssa-structalias.c: Likewise.
24047 * tree-ssa-tail-merge.c: Likewise.
24048 * tree-ssa-ter.c: Likewise.
24049 * tree-ssa-threadedge.c: Likewise.
24050 * tree-ssa-threadupdate.c: Likewise.
24051 * tree-ssa-uncprop.c: Likewise.
24052 * tree-ssa-uninit.c: Likewise.
24053 * tree-ssa.c: Likewise.
24054 * tree-ssanames.c: Likewise.
24055 * tree-stdarg.c: Likewise.
24056 * tree-streamer-in.c: Likewise.
24057 * tree-streamer-out.c: Likewise.
24058 * tree-streamer.c: Likewise.
24059 * tree-switch-conversion.c: Likewise.
24060 * tree-tailcall.c: Likewise.
24061 * tree-vect-data-refs.c: Likewise.
24062 * tree-vect-generic.c: Likewise.
24063 * tree-vect-loop-manip.c: Likewise.
24064 * tree-vect-loop.c: Likewise.
24065 * tree-vect-patterns.c: Likewise.
24066 * tree-vect-slp.c: Likewise.
24067 * tree-vect-stmts.c: Likewise.
24068 * tree-vectorizer.c: Likewise.
24069 * tree-vrp.c: Likewise.
24070 * tree.c: Likewise.
24071 * tsan.c: Likewise.
24072 * ubsan.c: Likewise.
24073 * valtrack.c: Likewise.
24074 * value-prof.c: Likewise.
24075 * var-tracking.c: Likewise.
24076 * varasm.c: Likewise.
24077 * varpool.c: Likewise.
24078 * vmsdbgout.c: Likewise.
24079 * vtable-verify.c: Likewise.
24081 * wide-int.cc: Likewise.
24082 * xcoffout.c: Likewise.
24083 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
24084 * common/common-targhooks.c: Likewise.
24085 * config/aarch64/aarch64-builtins.c: Likewise.
24086 * config/aarch64/aarch64.c: Likewise.
24087 * config/alpha/alpha.c: Likewise.
24088 * config/arc/arc.c: Likewise.
24089 * config/arm/aarch-common.c: Likewise.
24090 * config/arm/arm-builtins.c: Likewise.
24091 * config/arm/arm-c.c: Likewise.
24092 * config/arm/arm.c: Likewise.
24093 * config/avr/avr-c.c: Likewise.
24094 * config/avr/avr-log.c: Likewise.
24095 * config/avr/avr.c: Likewise.
24096 * config/bfin/bfin.c: Likewise.
24097 * config/c6x/c6x.c: Likewise.
24098 * config/cr16/cr16.c: Likewise.
24099 * config/cris/cris.c: Likewise.
24100 * config/darwin-c.c: Likewise.
24101 * config/darwin.c: Likewise.
24102 * config/default-c.c: Likewise.
24103 * config/epiphany/epiphany.c: Likewise.
24104 * config/epiphany/mode-switch-use.c: Likewise.
24105 * config/epiphany/resolve-sw-modes.c: Likewise.
24106 * config/fr30/fr30.c: Likewise.
24107 * config/frv/frv.c: Likewise.
24108 * config/ft32/ft32.c: Likewise.
24109 * config/glibc-c.c: Likewise.
24110 * config/h8300/h8300.c: Likewise.
24111 * config/i386/i386-c.c: Likewise.
24112 * config/i386/i386.c: Likewise.
24113 * config/i386/msformat-c.c: Likewise.
24114 * config/i386/winnt-cxx.c: Likewise.
24115 * config/i386/winnt-stubs.c: Likewise.
24116 * config/i386/winnt.c: Likewise.
24117 * config/ia64/ia64-c.c: Likewise.
24118 * config/ia64/ia64.c: Likewise.
24119 * config/iq2000/iq2000.c: Likewise.
24120 * config/lm32/lm32.c: Likewise.
24121 * config/m32c/m32c-pragma.c: Likewise.
24122 * config/m32c/m32c.c: Likewise.
24123 * config/m32r/m32r.c: Likewise.
24124 * config/m68k/m68k.c: Likewise.
24125 * config/mcore/mcore.c: Likewise.
24126 * config/mep/mep-pragma.c: Likewise.
24127 * config/mep/mep.c: Likewise.
24128 * config/microblaze/microblaze-c.c: Likewise.
24129 * config/microblaze/microblaze.c: Likewise.
24130 * config/mips/mips.c: Likewise.
24131 * config/mmix/mmix.c: Likewise.
24132 * config/mn10300/mn10300.c: Likewise.
24133 * config/moxie/moxie.c: Likewise.
24134 * config/msp430/msp430-c.c: Likewise.
24135 * config/msp430/msp430.c: Likewise.
24136 * config/nds32/nds32-cost.c: Likewise.
24137 * config/nds32/nds32-fp-as-gp.c: Likewise.
24138 * config/nds32/nds32-intrinsic.c: Likewise.
24139 * config/nds32/nds32-isr.c: Likewise.
24140 * config/nds32/nds32-md-auxiliary.c: Likewise.
24141 * config/nds32/nds32-memory-manipulation.c: Likewise.
24142 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24143 * config/nds32/nds32-predicates.c: Likewise.
24144 * config/nds32/nds32.c: Likewise.
24145 * config/nios2/nios2.c: Likewise.
24146 * config/nvptx/nvptx.c: Likewise.
24147 * config/pa/pa.c: Likewise.
24148 * config/pdp11/pdp11.c: Likewise.
24149 * config/rl78/rl78-c.c: Likewise.
24150 * config/rl78/rl78.c: Likewise.
24151 * config/rs6000/rs6000-c.c: Likewise.
24152 * config/rs6000/rs6000.c: Likewise.
24153 * config/rx/rx.c: Likewise.
24154 * config/s390/s390-c.c: Likewise.
24155 * config/s390/s390.c: Likewise.
24156 * config/sh/sh-c.c: Likewise.
24157 * config/sh/sh-mem.cc: Likewise.
24158 * config/sh/sh.c: Likewise.
24159 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24160 * config/sh/sh_treg_combine.cc: Likewise.
24161 * config/sol2-c.c: Likewise.
24162 * config/sol2-cxx.c: Likewise.
24163 * config/sol2-stubs.c: Likewise.
24164 * config/sol2.c: Likewise.
24165 * config/sparc/sparc-c.c: Likewise.
24166 * config/sparc/sparc.c: Likewise.
24167 * config/spu/spu-c.c: Likewise.
24168 * config/spu/spu.c: Likewise.
24169 * config/stormy16/stormy16.c: Likewise.
24170 * config/tilegx/mul-tables.c: Likewise.
24171 * config/tilegx/tilegx-c.c: Likewise.
24172 * config/tilegx/tilegx.c: Likewise.
24173 * config/tilepro/mul-tables.c: Likewise.
24174 * config/tilepro/tilepro-c.c: Likewise.
24175 * config/tilepro/tilepro.c: Likewise.
24176 * config/v850/v850-c.c: Likewise.
24177 * config/v850/v850.c: Likewise.
24178 * config/vax/vax.c: Likewise.
24179 * config/visium/visium.c: Likewise.
24180 * config/vms/vms-c.c: Likewise.
24181 * config/vms/vms.c: Likewise.
24182 * config/vxworks.c: Likewise.
24183 * config/winnt-c.c: Likewise.
24184 * config/xtensa/xtensa.c: Likewise.
24186 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
24188 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
24190 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
24192 2015-06-17 Richard Biener <rguenther@suse.de>
24194 PR tree-optimization/66251
24195 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
24196 stmts for SLP strided stores.
24199 2015-05-22 Richard Biener <rguenther@suse.de>
24201 PR tree-optimization/66251
24202 * tree-vect-stmts.c (vectorizable_conversion): Properly
24203 set STMT_VINFO_VEC_STMT even for the SLP case.
24205 2015-05-26 Michael Matz <matz@suse.de>
24207 PR middle-end/66251
24208 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
24209 STMT_VINFO_VEC_STMT, also with SLP.
24211 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
24214 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
24215 (*avx_addsubv4df3_1s): Ditto.
24216 (*sse3_addsubv2df3_1): Ditto.
24217 (*sse3_addsubv2df3_1s): Ditto.
24218 (*avx_addsubv8sf3_1): Ditto.
24219 (*avx_addsubv8sf3_1s): Ditto.
24220 (*sse3_addsubv4sf3_1): Ditto.
24221 (*sse3_addsubv4sf3_1s): Ditto.
24223 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
24225 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
24226 (SYSROOT_SUFFIX_SPEC): Update.
24227 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
24228 (STARTFILE_PREFIX_SPEC): Update.
24229 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
24230 (MULTILIB_REQUIRED): New.
24231 (MULTILIB_OSDIRNAMES): New.
24232 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
24233 (MULTILIB_REQUIRED): New.
24234 (MULTILIB_OSDIRNAMES): New.
24236 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
24238 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
24239 * config/aarch64/aarch64-options-extensions.def: Update "fP",
24240 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
24241 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
24242 (AARCH64_FL_PAN): New.
24243 (AARCH64_FL_LOR): New.
24244 (AARCH64_FL_RDMA): New.
24245 (AARCH64_FL_FOR_ARCH8_1): New.
24246 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
24247 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
24249 2015-06-16 Martin Liska <mliska@suse.cz>
24251 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
24252 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
24255 2015-06-16 Richard Biener <rguenther@suse.de>
24257 * tree-vect-stmts.c (vectorizable_store): Adjust.
24258 (vectorizable_load): Likewise.
24259 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
24261 (vect_create_data_ref_ptr): Likewise.
24262 (bump_vector_ptr): Adjust.
24264 2015-06-16 Richard Biener <rguenther@suse.de>
24266 * tree-vect-stmts.c (vectorizable_load): Properly start loads
24267 with the first element if this is grouped loads.
24269 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
24271 * config/arm/arm-protos.h (struct tune_params): Rename
24272 log_op_non_sc to log_op_non_short_circuit, and rename enum
24273 values to expand SC to SHORT_CIRCUIT.
24274 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
24275 to LOG_OP_NON_SHORT_CIRCUIT.
24276 (arm_fastmul_tune):Likewise
24277 (arm_strongarm_tune): Likewise.
24278 (arm_xscale_tune): Likewise.
24279 (arm_9e_tune): Likewise.
24280 (arm_marvell_pj4_tune): Likewise.
24281 (arm_v6t2_tune): Likewise.
24282 (arm_cortex_tune): Likewise.
24283 (arm_cortex_a8_tune): Likewise.
24284 (arm_cortex_a7_tune): Likewise.
24285 (arm_cortex_a15_tune): Likewise.
24286 (arm_cortex_a53_tune): Likewise.
24287 (arm_cortex_a57_tune): Likewise.
24288 (arm_xgene1_tune): Likewise.
24289 (arm_cortex_a5_tune): Likewise.
24290 (arm_cortex_a9_tune): Likewise.
24291 (arm_cortex_a12_tune): Likewise.
24292 (arm_v7m_tune): Likewise.
24293 (arm_cortex_m7_tune): Likewise.
24294 (arm_v6m_tune): Likewise.
24295 (arm_fa726te_tune): Likewise.
24297 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
24299 * altivec.md: Delete UNSPEC_VMLADDUHM.
24300 (mulv4si3_p8): New pattern.
24301 (mulv4si3): Use it for POWER8.
24302 (mulv8hi3): Use vmladduhm with zero addend.
24303 (altivec_vmladduhm): Descriptive RTL.
24305 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
24307 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
24308 to use neon_move instead of mov_imm.
24309 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
24310 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
24312 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
24313 aarch64_float_const_zero_rtx_p check before TFmode check.
24314 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
24316 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
24317 code and attributes to match. Change condition from register_operand
24318 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
24319 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
24322 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
24325 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
24326 there is no parent.
24328 2015-06-14 Shiva Chen <shiva0217@gmail.com>
24330 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
24331 HOST_WIDE_INT parameter.
24333 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
24336 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
24337 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
24339 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
24341 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
24343 * rtl.h (classify_insn): Declare.
24344 * emit-rtl.c (classify_insn): Move to...
24345 * rtl.c: ...here and add generator support.
24346 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
24347 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
24348 * genemit.c (gen_emit_seq): New function.
24349 (gen_expand, gen_split): Use it.
24351 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
24353 * tree.c (make_vector_stat): Fix comment to state that the
24354 function returns a VECTOR_CST.
24356 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
24358 * gensupport.h (add_implicit_parallel): Declare.
24359 * genrecog.c (add_implicit_parallel): Move to...
24360 * gensupport.c (add_implicit_parallel): ...here.
24361 (process_one_cond_exec): Use it.
24362 * genemit.c (gen_insn): Likewise.
24364 2015-06-13 Iain Sandoe <iain@codesourcery.com>
24367 * passes.c (rest_of_decl_compilation): Do not register globals for
24368 early debug if they are declared in built-ins.
24370 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
24372 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
24374 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24376 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
24378 (noce_try_cmove_arith): Likewise.
24379 (noce_get_alt_condition): Likewise.
24381 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24383 * common/config/i386/i386-common.c
24384 (OPTION_MASK_ISA_MWAITX_SET): New.
24385 (ix86_handle_option): Handle mwaitx.
24386 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
24387 (x86_64-*-*): Likewise.
24388 * config/i386/mwaitxintrin.h: New header.
24389 * config/i386/cpuid.h (bit_MWAITX): Define.
24390 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24392 * config/i386/i386.opt (mwaitx): New.
24393 * config/i386/i386-builtin-types.def
24394 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
24395 * config/i386/i386-c.c: Define __MWAITX__ if needed.
24396 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
24398 (ix86_option_override_internal): Handle new option.
24399 (processor_alias_table): Added PTA_MWAITX.
24400 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
24401 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
24402 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
24403 IX86_BUILTIN_MONITORX built-ins.
24404 * config/i386/i386.h (TARGET_MWAITX): New.
24405 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
24407 (mwaitx): New pattern.
24408 (monitorx_<mode>): New pattern.
24409 * config/i386/x86intrin.h: Include mwaitxintrin.h.
24410 * doc/extend.texi: Document monitorx and mwaitx builtins.
24411 * doc/invoke.texi: Document -mmwaitx option.
24413 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
24415 * emit-rtl.c (need_atomic_barrier_p): Mask model with
24416 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
24418 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
24420 * dbxout.c (xcoff_debug_hooks): Provide a function for
24421 register_main_translation_unit hook.
24423 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
24425 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
24426 variants cases from switch.
24427 (rs6000_post_atomic_barrier): Same.
24428 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
24429 (rs6000_expand_atomic_exchange): Same.
24430 (rs6000_expand_atomic_op): Same.
24431 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
24432 SYNC variants cases from switch.
24433 (atomic_load): Same.
24434 (atomic_store): Same.
24436 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
24438 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
24439 CONST_INT for goto.
24441 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
24444 * dwarf2out.c (check_die): Check for common duplicate attributes.
24445 (add_location_or_const_value_attribute): Do not add duplicate
24447 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
24449 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
24450 (gen_type_die_with_usage): Call check_die.
24451 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
24453 2015-06-11 Jason Merrill <jason@redhat.com>
24455 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
24458 2015-06-11 Marek Polacek <polacek@redhat.com>
24460 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
24462 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
24465 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
24466 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
24467 (*addx_extend_sp32): Fix pasto.
24468 (*subx_extend): Rename into...
24469 (*subx_extend_sp32): ...this.
24470 (*adddi3_extend_sp32): Add earlyclobber.
24471 (*subdi3_insn_sp32): Likewise.
24472 (*subdi3_extend_sp32): Likewise.
24473 (*and_not_di_sp32): Likewise.
24474 (*or_not_di_sp32): Likewise.
24475 (*xor_not_di_sp32): Likewise.
24476 (*negdi2_sp32): Likewise.
24477 (*one_cmpldi2_sp32): Likewise.
24479 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
24481 * debug.h (struct gcc_debug_hooks): Add a
24482 register_main_translation_unit hook.
24483 * debug.c (do_nothing_debug_hooks): Provide a function for this
24485 * dbxout.c (dbx_debug_hooks): Likewise.
24486 * sdbout.c (sdb_debug_hooks): Likewise.
24487 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24488 * dwarf2out.c (main_translation_unit): New global variable.
24489 (dwarf2out_register_main_translation_unit): New function
24490 implementing the new hook.
24491 (dwarf2_debug_hooks): Assign
24492 dwarf2out_register_main_translation_unit to this new hook.
24493 (dwarf2out_init): Associate any main translation unit to
24496 2015-06-11 Marek Polacek <polacek@redhat.com>
24498 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
24500 2015-06-11 Marek Polacek <polacek@redhat.com>
24502 * match.pd: Use single_use throughout.
24504 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24506 * config/arm/arm.c (arm_option_params_internal): When optimising
24507 for speed set max_insns_skipped when arm_restrict_it.
24509 2015-06-11 Christian Bruel <christian.bruel@st.com>
24512 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
24514 (arm_cpu_builtins): New function.
24515 (arm_pragma_target_parse): Call arm_cpu_builtins.
24516 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
24517 (arm_register_target_pragmas): Likewise.
24518 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
24519 Call arm_register_target_pragmas.
24520 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
24521 (arm_pragma_target_parse): Likewise.
24523 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
24525 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
24526 of the second operand.
24528 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
24531 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
24532 to prepare mask operand for AVX512 modes.
24534 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24537 * doc/md.texi (Machine Constraints): Document that on the PowerPC
24538 if you use a constraint that targets a VSX register, you must use
24539 %x<n> in the template.
24541 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
24543 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
24544 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
24545 (define_insn "trap"): New definition.
24547 2015-06-10 Richard Biener <rguenther@suse.de>
24549 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
24551 (vect_supported_load_permutation_p): ... here. Handle
24552 supportable permutations in reductions.
24553 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
24554 for vectorizing strided group loads.
24556 2015-06-10 Jakub Jelinek <jakub@redhat.com>
24559 * config/i386/i386.c (ix86_split_long_move): For collisions
24560 involving direct tls segment refs, move the UNSPEC_TP possibly
24561 wrapped in ZERO_EXTEND out of the address for lea, to each of
24564 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24566 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
24567 dmb sy. Adjust tabs.
24569 2015-06-10 Tom de Vries <tom@codesourcery.com>
24571 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
24573 2015-06-10 Martin Liska <mliska@suse.cz>
24576 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
24577 all enum values in mem_alloc_origin.
24578 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
24580 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
24581 * bitmap.c (bitmap_register): Likewise.
24582 (dump_bitmap_statistics): Likewise.
24583 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
24584 (ggc_record_overhead): Likewise.
24585 * hash-map.h: Likewise.
24586 * hash-set.h: Likewise.
24587 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
24588 * hash-table.h: Likewise.
24589 * vec.c (vec_prefix::register_overhead): Likewise.
24590 (vec_prefix::release_overhead): Likewise.
24591 (dump_vec_loc_statistics): Likewise.
24593 2015-06-09 Christian Bruel <christian.bruel@st.com>
24596 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
24597 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
24598 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
24599 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
24600 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
24601 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
24602 (arm_valid_target_attribute_p): Likewise.
24603 (arm_set_current_function, arm_can_inline_p): Likewise.
24604 (arm_valid_target_attribute_rec): Likewise.
24605 (arm_previous_fndecl): New variable.
24606 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
24607 (TARGET_CAN_INLINE_P): Define.
24608 (arm_asm_trampoline_template): Emit mode.
24609 (arm_file_start): Don't set unified syntax.
24610 (arm_declare_function_name): Set unified syntax and mode.
24611 (arm_option_override): Init target_option_default_node.
24612 and target_option_current_node.
24613 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
24614 (*call_symbol): Likewise.
24615 * doc/extend.texi: Document ARM/Thumb target attribute.
24616 * doc/invoke.texi: Likewise.
24618 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24621 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24622 PR rtl-optimization/64164
24623 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24624 * tree-ssa-copyrename.c: Removed.
24625 * opts.c (default_options_table): Drop -ftree-copyrename. Add
24626 -ftree-coalesce-vars.
24627 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24628 * common.opt (ftree-copyrename): Ignore.
24629 (ftree-coalesce-inlined-vars): Likewise.
24630 * doc/invoke.texi: Remove the ignored options above.
24631 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24632 * tree-ssa-coalesce.h: ... here.
24633 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24634 headers required by it.
24635 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24636 across variables when flag_tree_coalesce_vars. Check register
24637 use and promoted modes to allow coalescing. Moved to
24638 tree-ssa-coalesce.c.
24639 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24640 with its member functions to tree-ssa-coalesce.c.
24641 (var_map_base_init): Likewise. Renamed to
24642 compute_samebase_partition_bases.
24643 (partition_view_normal): Drop want_bases parameter.
24644 (partition_view_bitmap): Likewise.
24645 * tree-ssa-live.h: Adjust declarations.
24646 * tree-ssa-coalesce.c: Include explow.h.
24647 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24648 default defs at the entry point.
24649 (dump_part_var_map): New.
24650 (compute_optimized_partition_bases): New, called by...
24651 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24652 of compute_samebase_partition_bases. Adjust.
24653 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24654 * cfgexpand.c (leader_merge): New.
24655 (get_rtl_for_parm_ssa_default_def): New.
24656 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24657 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24658 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
24659 redundant MEM attr setting.
24660 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
24662 (expand_one_stack_var): ... this. New wrapper to check and
24663 skip already expanded SSA partitions.
24664 (record_alignment_for_reg_var): New, factored out of...
24665 (expand_one_var): ... this.
24666 (expand_one_ssa_partition): New.
24667 (adjust_one_expanded_partition_var): New.
24668 (expand_one_register_var): Check and skip already expanded SSA
24670 (expand_used_vars): Don't create DECLs for anonymous SSA
24671 names. Expand all SSA partitions, then adjust all SSA names.
24672 (pass::execute): Replace the loops that set
24673 SA.partition_to_pseudo from partition leaders and cleared
24674 DECL_RTL for multi-location variables, and that which used to
24675 rename vars and set attrs, with one that clears DECL_RTL and
24676 checks that PARMs and RESULTs default_defs match DECL_RTL.
24677 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24678 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24679 * explow.c (promote_ssa_mode): New.
24680 * explow.h (promote_ssa_mode): Declare.
24681 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24682 * function.c: Include cfgexpand.h.
24683 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24684 (use_register_for_parm_decl): Wrapper for the above to
24685 special-case the result_ptr.
24686 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24687 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24688 multiple locations.
24689 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24690 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
24691 (assign_parm_setup_block): Prefer SSA-assigned location.
24692 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
24693 if stack_parm is NULL.
24694 (assign_parm_setup_stack): Prefer SSA-assigned location.
24695 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
24696 rtl before testing for pointer bounds. Special-case result_ptr.
24697 (expand_function_start): Maybe reset DECL_RTL of result.
24698 Prefer SSA-assigned location for result and static chain.
24699 Factor out DECL_RESULT and SET_DECL_RTL.
24700 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24701 anonymous SSA names. Use promote_ssa_mode.
24702 (get_temp_reg): Likewise.
24703 (remove_ssa_form): Adjust.
24704 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24705 and get its reg_usage for reg invalidation.
24706 (compute_bb_dataflow): Pass it insn.
24707 (emit_notes_in_bb): Likewise.
24708 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24709 fail assert on conversion between unsigned types.
24711 2015-06-09 Tom de Vries <tom@codesourcery.com>
24713 PR tree-optimization/65460
24714 * omp-low.c (expand_omp_target): Set parallelized_function on
24715 cgraph_node for child_fn.
24717 2015-06-09 Tom de Vries <tom@codesourcery.com>
24719 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
24720 parallelized_function before add_new_function.
24722 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
24724 * gcc-plugin.h: Move decls to plugin.h and include it.
24725 * plugin.h: Relocate decls from gcc-plugin.h
24726 * ggc-page.c: Include required header files.
24727 * passes.c: Likewise.
24728 * cgraphunit.c: Likewise.
24730 2015-06-09 Tom de Vries <tom@codesourcery.com>
24732 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
24734 2015-06-09 Jason Merrill <jason@redhat.com>
24737 * toplev.c (check_global_declaration): Don't warn about a clone.
24739 2015-06-09 Marek Polacek <polacek@redhat.com>
24741 PR tree-optimization/66299
24742 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
24743 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
24746 2015-06-09 Richard Biener <rguenther@suse.de>
24748 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
24749 (vect_analyze_slp_instance): Instead do not falsely drop
24752 2015-06-09 Richard Biener <rguenther@suse.de>
24754 PR middle-end/66423
24755 * match.pd: Handle A % (unsigned)(1 << B).
24757 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
24759 * varasm.c (output_object_block_htab): Remove.
24760 (output_object_block_compare): New.
24761 (output_object_blocks): Sort named object_blocks before outputting
24764 2015-06-09 Richard Biener <rguenther@suse.de>
24766 PR tree-optimization/66419
24767 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
24768 consider GROUP_GAP when detecting a perfect subchain.
24770 2015-06-09 Nick Clifton <nickc@redhat.com>
24772 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
24773 place read only data in the .frodata section.
24775 2015-06-09 Shiva Chen <shiva0217@gmail.com>
24777 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
24778 (atomic_store<mode>): Likewise.
24780 2015-06-09 Richard Biener <rguenther@suse.de>
24782 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
24784 2015-06-09 Richard Biener <rguenther@suse.de>
24786 PR middle-end/66413
24787 * tree-inline.c (insert_init_debug_bind): Unshare value.
24789 2015-06-09 Richard Biener <rguenther@suse.de>
24791 PR tree-optimization/66396
24792 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
24793 Rename virtual operands.
24795 2015-06-09 Tom de Vries <tom@codesourcery.com>
24797 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
24798 always return false.
24800 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24802 PR rtl-optimization/64164
24803 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24804 * tree-ssa-copyrename.c: Removed.
24805 * opts.c (default_options_table): Drop -ftree-copyrename. Add
24806 -ftree-coalesce-vars.
24807 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24808 * common.opt (ftree-copyrename): Ignore.
24809 (ftree-coalesce-inlined-vars): Likewise.
24810 * doc/invoke.texi: Remove the ignored options above.
24811 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24812 * tree-ssa-coalesce.h: ... here.
24813 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24814 headers required by it.
24815 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24816 across variables when flag_tree_coalesce_vars. Check register
24817 use and promoted modes to allow coalescing. Moved to
24818 tree-ssa-coalesce.c.
24819 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24820 with its member functions to tree-ssa-coalesce.c.
24821 (var_map_base_init): Likewise. Renamed to
24822 compute_samebase_partition_bases.
24823 (partition_view_normal): Drop want_bases parameter.
24824 (partition_view_bitmap): Likewise.
24825 * tree-ssa-live.h: Adjust declarations.
24826 * tree-ssa-coalesce.c: Include explow.h.
24827 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24828 default defs at the entry point.
24829 (dump_part_var_map): New.
24830 (compute_optimized_partition_bases): New, called by...
24831 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24832 of compute_samebase_partition_bases. Adjust.
24833 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24834 * cfgexpand.c (leader_merge): New.
24835 (get_rtl_for_parm_ssa_default_def): New.
24836 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24837 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24838 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
24839 redundant MEM attr setting.
24840 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
24842 (expand_one_stack_var): ... this. New wrapper to check and
24843 skip already expanded SSA partitions.
24844 (record_alignment_for_reg_var): New, factored out of...
24845 (expand_one_var): ... this.
24846 (expand_one_ssa_partition): New.
24847 (adjust_one_expanded_partition_var): New.
24848 (expand_one_register_var): Check and skip already expanded SSA
24850 (expand_used_vars): Don't create DECLs for anonymous SSA
24851 names. Expand all SSA partitions, then adjust all SSA names.
24852 (pass::execute): Replace the loops that set
24853 SA.partition_to_pseudo from partition leaders and cleared
24854 DECL_RTL for multi-location variables, and that which used to
24855 rename vars and set attrs, with one that clears DECL_RTL and
24856 checks that PARMs and RESULTs default_defs match DECL_RTL.
24857 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24858 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24859 * explow.c (promote_ssa_mode): New.
24860 * explow.h (promote_ssa_mode): Declare.
24861 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24862 * function.c: Include cfgexpand.h.
24863 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24864 (use_register_for_parm_decl): Wrapper for the above to
24865 special-case the result_ptr.
24866 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24867 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24868 multiple locations.
24869 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24870 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
24871 (assign_parm_setup_block): Prefer SSA-assigned location.
24872 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
24873 if stack_parm is NULL.
24874 (assign_parm_setup_stack): Prefer SSA-assigned location.
24875 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
24876 rtl before testing for pointer bounds. Special-case result_ptr.
24877 (expand_function_start): Maybe reset DECL_RTL of result.
24878 Prefer SSA-assigned location for result and static chain.
24879 Factor out DECL_RESULT and SET_DECL_RTL.
24880 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24881 anonymous SSA names. Use promote_ssa_mode.
24882 (get_temp_reg): Likewise.
24883 (remove_ssa_form): Adjust.
24884 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24885 and get its reg_usage for reg invalidation.
24886 (compute_bb_dataflow): Pass it insn.
24887 (emit_notes_in_bb): Likewise.
24888 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24889 fail assert on conversion between unsigned types.
24891 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24894 * tree-inline.c (reset_debug_binding): New.
24895 (reset_debug_bindings): Likewise.
24896 (expand_call_inline): Call it.
24898 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24900 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
24903 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24905 * lto-streamer-out.c (lto_output_location): Stream
24906 reserved locations correctly.
24907 * lto-streamer-in.c (lto_output_location): Likewise.
24909 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
24911 * coretypes.h: Include hash-table.h and hash-set.h for host files.
24912 * ggc.h: Don't include statistics.h>
24913 * hash-map.h: Remove all includes.
24914 * hash-set.h: Likewise.
24915 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
24916 the include list. Remove <new>.
24917 * inchash.h: Remove all includes.
24918 * mem-stats.h: Likewise.
24919 * vec.h: No special processing for generators or ggc.
24920 * alias.c : Adjust include files.
24921 * alloc-pool.c : Likewise.
24922 * alloc-pool.h : Likewise.
24923 * asan.c : Likewise.
24924 * attribs.c : Likewise.
24925 * auto-inc-dec.c : Likewise.
24926 * auto-profile.c : Likewise.
24927 * bb-reorder.c : Likewise.
24928 * bitmap.c : Likewise.
24929 * bitmap.h : Likewise.
24930 * bt-load.c : Likewise.
24931 * builtins.c : Likewise.
24932 * caller-save.c : Likewise.
24933 * calls.c : Likewise.
24934 * ccmp.c : Likewise.
24935 * cfg.c : Likewise.
24936 * cfganal.c : Likewise.
24937 * cfgbuild.c : Likewise.
24938 * cfgcleanup.c : Likewise.
24939 * cfgexpand.c : Likewise.
24940 * cfghooks.c : Likewise.
24941 * cfgloop.c : Likewise.
24942 * cfgloop.h : Likewise.
24943 * cfgloopanal.c : Likewise.
24944 * cfgloopmanip.c : Likewise.
24945 * cfgrtl.c : Likewise.
24946 * cgraph.c : Likewise.
24947 * cgraphbuild.c : Likewise.
24948 * cgraphclones.c : Likewise.
24949 * cgraphunit.c : Likewise.
24950 * cilk-common.c : Likewise.
24951 * combine-stack-adj.c : Likewise.
24952 * combine.c : Likewise.
24953 * compare-elim.c : Likewise.
24954 * context.c : Likewise.
24955 * convert.c : Likewise.
24956 * coverage.c : Likewise.
24957 * cppbuiltin.c : Likewise.
24958 * cprop.c : Likewise.
24959 * cse.c : Likewise.
24960 * cselib.c : Likewise.
24961 * data-streamer-in.c : Likewise.
24962 * data-streamer-out.c : Likewise.
24963 * data-streamer.c : Likewise.
24964 * data-streamer.h : Likewise.
24965 * dbxout.c : Likewise.
24966 * dce.c : Likewise.
24967 * ddg.c : Likewise.
24968 * debug.c : Likewise.
24969 * df-core.c : Likewise.
24970 * df-problems.c : Likewise.
24971 * df-scan.c : Likewise.
24973 * dfp.c : Likewise.
24974 * dojump.c : Likewise.
24975 * dominance.c : Likewise.
24976 * domwalk.c : Likewise.
24977 * double-int.c : Likewise.
24978 * dse.c : Likewise.
24979 * dumpfile.c : Likewise.
24980 * dwarf2asm.c : Likewise.
24981 * dwarf2cfi.c : Likewise.
24982 * dwarf2out.c : Likewise.
24983 * emit-rtl.c : Likewise.
24984 * et-forest.c : Likewise.
24985 * except.c : Likewise.
24986 * except.h : Likewise.
24987 * explow.c : Likewise.
24988 * expmed.c : Likewise.
24989 * expr.c : Likewise.
24990 * final.c : Likewise.
24991 * fixed-value.c : Likewise.
24992 * fold-const.c : Likewise.
24993 * function.c : Likewise.
24994 * fwprop.c : Likewise.
24995 * gcc-plugin.h : Likewise.
24996 * gcc.c : Likewise.
24997 * gcse-common.c : Likewise.
24998 * gcse.c : Likewise.
24999 * genattrtab.c : Likewise.
25000 * genautomata.c : Likewise.
25001 * genconditions.c : Likewise.
25002 * genemit.c : Likewise.
25003 * generic-match-head.c : Likewise.
25004 * genextract.c : Likewise.
25005 * gengtype-state.c : Likewise.
25006 * gengtype.c : Likewise.
25007 * genhooks.c : Likewise.
25008 * genmatch.c : Likewise.
25009 * genmodes.c : Likewise.
25010 * genrecog.c : Likewise.
25011 * gensupport.c : Likewise.
25012 * ggc-common.c : Likewise.
25013 * ggc-internal.h : Likewise.
25014 * ggc-none.c : Likewise.
25015 * ggc-page.c : Likewise.
25016 * gimple-builder.c : Likewise.
25017 * gimple-expr.c : Likewise.
25018 * gimple-fold.c : Likewise.
25019 * gimple-iterator.c : Likewise.
25020 * gimple-low.c : Likewise.
25021 * gimple-match-head.c : Likewise.
25022 * gimple-pretty-print.c : Likewise.
25023 * gimple-ssa-isolate-paths.c : Likewise.
25024 * gimple-ssa-strength-reduction.c : Likewise.
25025 * gimple-ssa.h : Likewise.
25026 * gimple-streamer-in.c : Likewise.
25027 * gimple-streamer-out.c : Likewise.
25028 * gimple-streamer.h : Likewise.
25029 * gimple-walk.c : Likewise.
25030 * gimple.c : Likewise.
25031 * gimplify-me.c : Likewise.
25032 * gimplify.c : Likewise.
25033 * godump.c : Likewise.
25034 * graph.c : Likewise.
25035 * graphds.c : Likewise.
25036 * graphite-blocking.c : Likewise.
25037 * graphite-dependences.c : Likewise.
25038 * graphite-interchange.c : Likewise.
25039 * graphite-isl-ast-to-gimple.c : Likewise.
25040 * graphite-optimize-isl.c : Likewise.
25041 * graphite-poly.c : Likewise.
25042 * graphite-scop-detection.c : Likewise.
25043 * graphite-sese-to-poly.c : Likewise.
25044 * graphite.c : Likewise.
25045 * haifa-sched.c : Likewise.
25046 * hard-reg-set.h : Likewise.
25047 * hw-doloop.c : Likewise.
25048 * ifcvt.c : Likewise.
25049 * inchash.c : Likewise.
25050 * incpath.c : Likewise.
25051 * init-regs.c : Likewise.
25052 * input.c : Likewise.
25053 * internal-fn.c : Likewise.
25054 * ipa-chkp.c : Likewise.
25055 * ipa-comdats.c : Likewise.
25056 * ipa-cp.c : Likewise.
25057 * ipa-devirt.c : Likewise.
25058 * ipa-icf-gimple.c : Likewise.
25059 * ipa-icf.c : Likewise.
25060 * ipa-inline-analysis.c : Likewise.
25061 * ipa-inline-transform.c : Likewise.
25062 * ipa-inline.c : Likewise.
25063 * ipa-polymorphic-call.c : Likewise.
25064 * ipa-profile.c : Likewise.
25065 * ipa-prop.c : Likewise.
25066 * ipa-pure-const.c : Likewise.
25067 * ipa-ref.c : Likewise.
25068 * ipa-reference.c : Likewise.
25069 * ipa-split.c : Likewise.
25070 * ipa-utils.c : Likewise.
25071 * ipa-visibility.c : Likewise.
25072 * ipa.c : Likewise.
25073 * ira-build.c : Likewise.
25074 * ira-color.c : Likewise.
25075 * ira-conflicts.c : Likewise.
25076 * ira-costs.c : Likewise.
25077 * ira-emit.c : Likewise.
25078 * ira-lives.c : Likewise.
25079 * ira.c : Likewise.
25080 * jump.c : Likewise.
25081 * langhooks.c : Likewise.
25082 * lcm.c : Likewise.
25083 * libfuncs.h : Likewise.
25084 * lists.c : Likewise.
25085 * loop-doloop.c : Likewise.
25086 * loop-init.c : Likewise.
25087 * loop-invariant.c : Likewise.
25088 * loop-iv.c : Likewise.
25089 * loop-unroll.c : Likewise.
25090 * lower-subreg.c : Likewise.
25091 * lra-assigns.c : Likewise.
25092 * lra-coalesce.c : Likewise.
25093 * lra-constraints.c : Likewise.
25094 * lra-eliminations.c : Likewise.
25095 * lra-lives.c : Likewise.
25096 * lra-remat.c : Likewise.
25097 * lra-spills.c : Likewise.
25098 * lra.c : Likewise.
25099 * lto-cgraph.c : Likewise.
25100 * lto-compress.c : Likewise.
25101 * lto-opts.c : Likewise.
25102 * lto-section-in.c : Likewise.
25103 * lto-section-out.c : Likewise.
25104 * lto-streamer-in.c : Likewise.
25105 * lto-streamer-out.c : Likewise.
25106 * lto-streamer.c : Likewise.
25107 * lto-streamer.h : Likewise.
25108 * mcf.c : Likewise.
25109 * mode-switching.c : Likewise.
25110 * modulo-sched.c : Likewise.
25111 * omega.c : Likewise.
25112 * omp-low.c : Likewise.
25113 * optabs.c : Likewise.
25114 * opts-global.c : Likewise.
25115 * opts.h : Likewise.
25116 * passes.c : Likewise.
25117 * plugin.c : Likewise.
25118 * postreload-gcse.c : Likewise.
25119 * postreload.c : Likewise.
25120 * predict.c : Likewise.
25121 * print-rtl.c : Likewise.
25122 * print-tree.c : Likewise.
25123 * profile.c : Likewise.
25124 * read-md.c : Likewise.
25125 * read-md.h : Likewise.
25126 * read-rtl.c : Likewise.
25127 * real.c : Likewise.
25128 * realmpfr.c : Likewise.
25129 * recog.c : Likewise.
25130 * ree.c : Likewise.
25131 * reg-stack.c : Likewise.
25132 * regcprop.c : Likewise.
25133 * reginfo.c : Likewise.
25134 * regrename.c : Likewise.
25135 * regstat.c : Likewise.
25136 * reload.c : Likewise.
25137 * reload1.c : Likewise.
25138 * reorg.c : Likewise.
25139 * resource.c : Likewise.
25140 * rtl-chkp.c : Likewise.
25141 * rtl.c : Likewise.
25142 * rtl.h : Likewise.
25143 * rtlanal.c : Likewise.
25144 * rtlhash.c : Likewise.
25145 * rtlhash.h : Likewise.
25146 * rtlhooks.c : Likewise.
25147 * sanopt.c : Likewise.
25148 * sched-deps.c : Likewise.
25149 * sched-ebb.c : Likewise.
25150 * sched-rgn.c : Likewise.
25151 * sched-vis.c : Likewise.
25152 * sdbout.c : Likewise.
25153 * sel-sched-dump.c : Likewise.
25154 * sel-sched-ir.c : Likewise.
25155 * sel-sched-ir.h : Likewise.
25156 * sel-sched.c : Likewise.
25157 * sese.c : Likewise.
25158 * shrink-wrap.c : Likewise.
25159 * shrink-wrap.h : Likewise.
25160 * simplify-rtx.c : Likewise.
25161 * stack-ptr-mod.c : Likewise.
25162 * statistics.c : Likewise.
25163 * stmt.c : Likewise.
25164 * stor-layout.c : Likewise.
25165 * store-motion.c : Likewise.
25166 * stringpool.c : Likewise.
25167 * symtab.c : Likewise.
25168 * target-globals.c : Likewise.
25169 * targhooks.c : Likewise.
25170 * tlink.c : Likewise.
25171 * toplev.c : Likewise.
25172 * tracer.c : Likewise.
25173 * trans-mem.c : Likewise.
25174 * tree-affine.c : Likewise.
25175 * tree-affine.h : Likewise.
25176 * tree-browser.c : Likewise.
25177 * tree-call-cdce.c : Likewise.
25178 * tree-cfg.c : Likewise.
25179 * tree-cfgcleanup.c : Likewise.
25180 * tree-chkp-opt.c : Likewise.
25181 * tree-chkp.c : Likewise.
25182 * tree-chrec.c : Likewise.
25183 * tree-complex.c : Likewise.
25184 * tree-data-ref.c : Likewise.
25185 * tree-dfa.c : Likewise.
25186 * tree-diagnostic.c : Likewise.
25187 * tree-dump.c : Likewise.
25188 * tree-eh.c : Likewise.
25189 * tree-eh.h : Likewise.
25190 * tree-emutls.c : Likewise.
25191 * tree-hasher.h : Likewise.
25192 * tree-if-conv.c : Likewise.
25193 * tree-inline.c : Likewise.
25194 * tree-inline.h : Likewise.
25195 * tree-into-ssa.c : Likewise.
25196 * tree-iterator.c : Likewise.
25197 * tree-loop-distribution.c : Likewise.
25198 * tree-nested.c : Likewise.
25199 * tree-nrv.c : Likewise.
25200 * tree-object-size.c : Likewise.
25201 * tree-outof-ssa.c : Likewise.
25202 * tree-parloops.c : Likewise.
25203 * tree-phinodes.c : Likewise.
25204 * tree-predcom.c : Likewise.
25205 * tree-pretty-print.c : Likewise.
25206 * tree-profile.c : Likewise.
25207 * tree-scalar-evolution.c : Likewise.
25208 * tree-sra.c : Likewise.
25209 * tree-ssa-address.c : Likewise.
25210 * tree-ssa-alias.c : Likewise.
25211 * tree-ssa-ccp.c : Likewise.
25212 * tree-ssa-coalesce.c : Likewise.
25213 * tree-ssa-copy.c : Likewise.
25214 * tree-ssa-copyrename.c : Likewise.
25215 * tree-ssa-dce.c : Likewise.
25216 * tree-ssa-dom.c : Likewise.
25217 * tree-ssa-dse.c : Likewise.
25218 * tree-ssa-forwprop.c : Likewise.
25219 * tree-ssa-ifcombine.c : Likewise.
25220 * tree-ssa-live.c : Likewise.
25221 * tree-ssa-loop-ch.c : Likewise.
25222 * tree-ssa-loop-im.c : Likewise.
25223 * tree-ssa-loop-ivcanon.c : Likewise.
25224 * tree-ssa-loop-ivopts.c : Likewise.
25225 * tree-ssa-loop-manip.c : Likewise.
25226 * tree-ssa-loop-niter.c : Likewise.
25227 * tree-ssa-loop-prefetch.c : Likewise.
25228 * tree-ssa-loop-unswitch.c : Likewise.
25229 * tree-ssa-loop.c : Likewise.
25230 * tree-ssa-math-opts.c : Likewise.
25231 * tree-ssa-operands.c : Likewise.
25232 * tree-ssa-phiopt.c : Likewise.
25233 * tree-ssa-phiprop.c : Likewise.
25234 * tree-ssa-pre.c : Likewise.
25235 * tree-ssa-propagate.c : Likewise.
25236 * tree-ssa-reassoc.c : Likewise.
25237 * tree-ssa-sccvn.c : Likewise.
25238 * tree-ssa-scopedtables.c : Likewise.
25239 * tree-ssa-sink.c : Likewise.
25240 * tree-ssa-strlen.c : Likewise.
25241 * tree-ssa-structalias.c : Likewise.
25242 * tree-ssa-tail-merge.c : Likewise.
25243 * tree-ssa-ter.c : Likewise.
25244 * tree-ssa-threadedge.c : Likewise.
25245 * tree-ssa-threadupdate.c : Likewise.
25246 * tree-ssa-uncprop.c : Likewise.
25247 * tree-ssa-uninit.c : Likewise.
25248 * tree-ssa.c : Likewise.
25249 * tree-ssanames.c : Likewise.
25250 * tree-stdarg.c : Likewise.
25251 * tree-streamer-in.c : Likewise.
25252 * tree-streamer-out.c : Likewise.
25253 * tree-streamer.c : Likewise.
25254 * tree-streamer.h : Likewise.
25255 * tree-switch-conversion.c : Likewise.
25256 * tree-tailcall.c : Likewise.
25257 * tree-vect-data-refs.c : Likewise.
25258 * tree-vect-generic.c : Likewise.
25259 * tree-vect-loop-manip.c : Likewise.
25260 * tree-vect-loop.c : Likewise.
25261 * tree-vect-patterns.c : Likewise.
25262 * tree-vect-slp.c : Likewise.
25263 * tree-vect-stmts.c : Likewise.
25264 * tree-vectorizer.c : Likewise.
25265 * tree-vectorizer.h : Likewise.
25266 * tree-vrp.c : Likewise.
25267 * tree.c : Likewise.
25268 * tsan.c : Likewise.
25269 * ubsan.c : Likewise.
25270 * valtrack.c : Likewise.
25271 * valtrack.h : Likewise.
25272 * value-prof.c : Likewise.
25273 * var-tracking.c : Likewise.
25274 * varasm.c : Likewise.
25275 * varpool.c : Likewise.
25277 * vmsdbgout.c : Likewise.
25278 * vtable-verify.c : Likewise.
25279 * vtable-verify.h : Likewise.
25280 * web.c : Likewise.
25281 * wide-int.cc : Likewise.
25282 * xcoffout.c : Likewise.
25283 * config/aarch64/aarch64-builtins.c : Likewise.
25284 * config/aarch64/aarch64.c : Likewise.
25285 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
25286 * config/alpha/alpha.c : Likewise.
25287 * config/arc/arc.c : Likewise.
25288 * config/arm/aarch-common.c : Likewise.
25289 * config/arm/arm-builtins.c : Likewise.
25290 * config/arm/arm-c.c : Likewise.
25291 * config/arm/arm.c : Likewise.
25292 * config/avr/avr-c.c : Likewise.
25293 * config/avr/avr-log.c : Likewise.
25294 * config/avr/avr.c : Likewise.
25295 * config/bfin/bfin.c : Likewise.
25296 * config/c6x/c6x.c : Likewise.
25297 * config/cr16/cr16.c : Likewise.
25298 * config/cris/cris.c : Likewise.
25299 * config/darwin-c.c : Likewise.
25300 * config/darwin.c : Likewise.
25301 * config/default-c.c : Likewise.
25302 * config/epiphany/epiphany.c : Likewise.
25303 * config/epiphany/mode-switch-use.c : Likewise.
25304 * config/epiphany/resolve-sw-modes.c : Likewise.
25305 * config/fr30/fr30.c : Likewise.
25306 * config/frv/frv.c : Likewise.
25307 * config/ft32/ft32.c : Likewise.
25308 * config/glibc-c.c : Likewise.
25309 * config/h8300/h8300.c : Likewise.
25310 * config/i386/i386-c.c : Likewise.
25311 * config/i386/i386.c : Likewise.
25312 * config/i386/msformat-c.c : Likewise.
25313 * config/i386/winnt-cxx.c : Likewise.
25314 * config/i386/winnt-stubs.c : Likewise.
25315 * config/i386/winnt.c : Likewise.
25316 * config/ia64/ia64-c.c : Likewise.
25317 * config/ia64/ia64.c : Likewise.
25318 * config/iq2000/iq2000.c : Likewise.
25319 * config/lm32/lm32.c : Likewise.
25320 * config/m32c/m32c-pragma.c : Likewise.
25321 * config/m32c/m32c.c : Likewise.
25322 * config/m32r/m32r.c : Likewise.
25323 * config/m68k/m68k.c : Likewise.
25324 * config/mcore/mcore.c : Likewise.
25325 * config/mep/mep-pragma.c : Likewise.
25326 * config/mep/mep.c : Likewise.
25327 * config/microblaze/microblaze-c.c : Likewise.
25328 * config/microblaze/microblaze.c : Likewise.
25329 * config/mips/mips.c : Likewise.
25330 * config/mmix/mmix.c : Likewise.
25331 * config/mn10300/mn10300.c : Likewise.
25332 * config/moxie/moxie.c : Likewise.
25333 * config/msp430/msp430-c.c : Likewise.
25334 * config/msp430/msp430.c : Likewise.
25335 * config/nds32/nds32-cost.c : Likewise.
25336 * config/nds32/nds32-fp-as-gp.c : Likewise.
25337 * config/nds32/nds32-intrinsic.c : Likewise.
25338 * config/nds32/nds32-isr.c : Likewise.
25339 * config/nds32/nds32-md-auxiliary.c : Likewise.
25340 * config/nds32/nds32-memory-manipulation.c : Likewise.
25341 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
25342 * config/nds32/nds32-predicates.c : Likewise.
25343 * config/nds32/nds32.c : Likewise.
25344 * config/nios2/nios2.c : Likewise.
25345 * config/nvptx/nvptx.c : Likewise.
25346 * config/pa/pa.c : Likewise.
25347 * config/pdp11/pdp11.c : Likewise.
25348 * config/rl78/rl78-c.c : Likewise.
25349 * config/rl78/rl78.c : Likewise.
25350 * config/rs6000/rs6000-c.c : Likewise.
25351 * config/rs6000/rs6000.c : Likewise.
25352 * config/rx/rx.c : Likewise.
25353 * config/s390/s390-c.c : Likewise.
25354 * config/s390/s390.c : Likewise.
25355 * config/sh/sh-c.c : Likewise.
25356 * config/sh/sh-mem.cc : Likewise.
25357 * config/sh/sh.c : Likewise.
25358 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
25359 * config/sh/sh_treg_combine.cc : Likewise.
25360 * config/sol2-c.c : Likewise.
25361 * config/sol2-cxx.c : Likewise.
25362 * config/sol2-stubs.c : Likewise.
25363 * config/sol2.c : Likewise.
25364 * config/sparc/sparc-c.c : Likewise.
25365 * config/sparc/sparc.c : Likewise.
25366 * config/spu/spu-c.c : Likewise.
25367 * config/spu/spu.c : Likewise.
25368 * config/stormy16/stormy16.c : Likewise.
25369 * config/tilegx/mul-tables.c : Likewise.
25370 * config/tilegx/tilegx-c.c : Likewise.
25371 * config/tilegx/tilegx.c : Likewise.
25372 * config/tilepro/mul-tables.c : Likewise.
25373 * config/tilepro/tilepro-c.c : Likewise.
25374 * config/tilepro/tilepro.c : Likewise.
25375 * config/v850/v850-c.c : Likewise.
25376 * config/v850/v850.c : Likewise.
25377 * config/vax/vax.c : Likewise.
25378 * config/visium/visium.c : Likewise.
25379 * config/vms/vms-c.c : Likewise.
25380 * config/vms/vms.c : Likewise.
25381 * config/vxworks.c : Likewise.
25382 * config/winnt-c.c : Likewise.
25383 * config/xtensa/xtensa.c : Likewise.
25385 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25388 * ipa-utils.h (warn_types_mismatch): Update prototype.
25389 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
25391 (type_mismatch_p): New function.
25392 (warn_types_mismatch): Reorg to work better on non-C++ types.
25393 (odr_types_equivalent_p): Add loc1/loc2 parameters.
25394 (add_type_duplicate): Update.
25396 2015-06-08 Tom de Vries <tom@codesourcery.com>
25398 PR rtl-optimization/66444
25399 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
25402 2015-06-08 Richard Biener <rguenther@suse.de>
25404 PR tree-optimization/66422
25405 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
25406 block after inserted gcc_unreachable.
25408 2015-06-08 Nick Clifton <nickc@redhat.com>
25410 * config/rx/rx.c (rx_function_value): Do not promote vector types.
25411 (rx_promote_function_mode): Likewise.
25412 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
25414 2015-06-08 Jakub Jelinek <jakub@redhat.com>
25416 * genattrtab.c (insn_alternatives): Change type from int *
25418 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
25419 (get_attr_value): Change type of num_alt to uint64_t.
25420 (compute_alternative_mask): Change return type from
25421 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
25422 (make_alternative_compare, mk_attr_alt): Change argument type
25423 from int to uint64_t.
25424 (simplify_test_exp): Change type of i from int to uint64_t.
25425 Shift ((uint64_t) 1) instead of 1 up.
25426 (main): Adjust oballocvec first argument from int to uint64_t.
25427 Shift ((uint64_t) 1) instead of 1 up.
25429 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
25432 * gdbhooks.py: Import sys.
25433 (intptr): New function. Replace int(...) by intptr(...).
25435 2015-06-08 Richard Biener <rguenther@suse.de>
25437 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
25438 adjustment for gaps at the end of a SLP load group properly.
25439 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
25440 all permutations we can generate.
25441 (vect_transform_slp_perm_load): Use the correct group-size.
25443 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
25445 * genmatch.c (expr::gen_transform): For conditions, guess the type
25446 from the second operand.
25448 2015-06-08 Tom de Vries <tom@codesourcery.com>
25450 PR tree-optimization/66442
25451 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
25452 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
25453 if the loop latch is not a singleton. Use
25454 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
25456 2015-06-08 Marek Polacek <polacek@redhat.com>
25459 * toplev.c (check_global_declaration): Don't warn about artificial
25462 2015-06-08 Tom de Vries <tom@codesourcery.com>
25464 PR tree-optimization/66436
25465 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
25467 * gimplify.c: Add tree-dump.h include.
25468 (gimplify_function_tree): Dump function to gimple dump file.
25469 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
25472 2015-06-08 Tom de Vries <tom@codesourcery.com>
25474 PR tree-optimization/66435
25475 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
25478 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
25480 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
25481 of ptr_type_node to not be ptr_to_node.
25482 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
25483 TREE_TYPE of pointers.
25484 * gimple-expr.c (useless_type_conversion): Reorder the check for
25485 function pointers and TYPE_CANONICAL.
25487 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
25490 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
25491 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
25492 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
25494 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
25495 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
25496 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
25497 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
25498 and non iso if unix2003.
25500 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
25502 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
25504 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
25506 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
25507 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
25508 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
25509 except.c, final.c, function.c, gcse-common.c, genemit.c,
25510 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
25511 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
25512 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
25513 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
25516 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
25518 * combine.c (combine_split_insns): Remove cast.
25519 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
25520 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
25521 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
25522 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
25523 * genemit.c (gen_split): Change return type of generated functions to
25525 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
25526 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
25527 gen_peephole2_* functions.
25528 (print_subroutine, main): Likewise.
25529 * recog.c (peephole2_optimize): Remove cast.
25530 (peep2_next_insn): Promote return type to rtx_insn.
25531 * recog.h (peep2_next_insn): Fix prototype.
25532 * rtl.h (try_split, split_insns): Likewise.
25534 2015-06-06 DJ Delorie <dj@redhat.com>
25536 * config/msp430/msp430.c (msp430_asm_integer): Support addition
25537 and subtraction too.
25539 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
25542 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
25543 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
25544 instead of Snd. Disparage Sid/z alternative with '^'.
25546 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
25548 * dwarf2out.c: Remove deferred_locations*.
25549 (dwarf2_debug_hooks): Add early_finish hook.
25550 Remove global_decl hook.
25551 Add early_global_decl and late_global_decl hook.
25552 New global early_dwarf.
25553 New structure set_early_dwarf.
25554 (output_die): Indicate whether a DIE was generated early
25555 when generating assembly with -dA.
25556 (struct limbo_die_struct): Document created_for field.
25557 Remove file_table_last_lookup.
25558 (remove_AT): Return TRUE if successful.
25559 (remove_child_TAG): Clear die_parent.
25560 (reparent_child): New function abstracted from...
25561 (splice_child_die): ...here.
25562 (new_die): ICE if a DIE ends up in limbo too late.
25564 (defer_location): Remove.
25565 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
25566 (fill_variable_array_bounds): New.
25567 (decl_start_label): Call fill_variable_array_bounds.
25568 (gen_formal_parameter_die): Rewrite to reuse previously generated
25570 (gen_subprogram_die): Same.
25571 (gen_variable_die): Same.
25572 (gen_const_die): Same.
25573 (gen_label_die): Same.
25574 (gen_lexical_block_die): Same.
25575 (decl_will_get_specification_p): New.
25576 (local_function_static): New.
25577 (gen_struct_or_union_type_die): Fill in variable-length fields.
25578 (gen_typedef_die): Fill in variable-length typedefs.
25579 (gen_tagged_type_die): Gracefully return on error_mark_node.
25580 Handle re-entrancy.
25581 (gen_type_die_with_usage): Handle variable-length types.
25582 Remove duplicate code for ARRAY_TYPE case.
25583 (process_scope_var): Only process imported modules during early
25585 (dwarf2out_early_global_decl): New.
25586 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
25587 (dwarf2out_type_decl): Set early_dwarf while calling
25589 (dwarf2out_decl): Verify that we did not recreate a previously
25591 Do not return on DECL_EXTERNALs in VAR_DECLs.
25592 Abstract some code to local_function_static.
25593 (lookup_filename): Remove use of file_table_last_lookup.
25594 Gracefully exit on missing file_name.
25595 (dwarf2out_finish): Verify limbo list.
25596 Remove deferred_locations_list use.
25597 Move deferred_asm_name and limbo flushing to...
25598 (dwarf2out_early_finish): ...here. New.
25599 (dwarf2out_c_finalize): Remove set of deferred_location_list,
25600 deferred_asm_name, and file_table_last_lookup.
25601 * cgraph.h (referred_to_p): Add default argument.
25602 * cgraphunit.c (referred_to_p): Add and handle include_self
25604 (analyze_functions): Add first_time argument.
25605 Call check_global_declaration for all symbols.
25606 Call late_global_decl for nodes for moribund nodes.
25607 (finalize_compilation_unit): Add new argument to
25609 Call early_global_decl for functions.
25610 Call early_finish debug hook.
25611 * dbxout.c (dbxout_early_global_decl): New.
25612 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
25613 (dbx_debug_hooks): Add new hooks.
25614 (xcoff_debug_hooks): Same.
25615 * debug.c (do_nothing_debug_hooks): Add early_finish field.
25616 Add early and late debug hooks.
25617 Remove global_decl hook.
25618 * debug.h (struct gcc_debug_hooks): Add early_finish,
25619 early_global_decl, and late_global_decl fields.
25620 Remove global_decl field.
25621 Document gcc_debug_hooks.
25622 * gengtype.c (output_typename): Remove.
25623 * godump.c (go_early_global_decl): New.
25624 (go_late_global_decl): New.
25625 (go_global_decl): Remove.
25626 (dump_go_spec_init): Remove global_decl. Add
25627 {early,late}_global_decl.
25628 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
25629 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
25630 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
25631 (write_global_declarations): Remove.
25632 (global_decl_processing): New.
25633 * langhooks.h (struct lang_hooks_for_decls): Remove
25634 final_write_globals field.
25635 Add post_compilation_parsing_cleanups field.
25636 * passes.c (rest_of_decl_compilation): Call early_global_decl.
25637 * sdbout.c: Add early and late_global_decl hooks. Remove
25638 sdbout_global_decl hook.
25639 Add early_finish field for sdb_debug_hooks.
25640 (sdbout_global_decl): Remove.
25641 (sdbout_early_global_decl): New.
25642 (sdbout_late_global_decl): New.
25643 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
25644 * toplev.c (check_global_declaration): Rename from
25645 check_global_declaration_1.
25646 Adapt to use symtab infrastructure.
25647 (check_global_declarations): Remove.
25648 (emit_debug_global_declarations): Remove.
25649 (compile_file): Remove call to final_write_globals langhook.
25650 Run the actual compilation process.
25651 Perform any post compilation parser cleanups.
25652 Generate late debug info.
25653 * toplev.h (check_global_declaration): New.
25654 (check_global_declaration_1): Remove.
25655 (check_global_declarations): Remove.
25656 (write_global_declarations): Remove.
25657 (emit_debug_global_declarations): Remove.
25658 (global_decl_processing): New.
25659 * tree-core.h (struct tree_block): Add DIE field.
25660 * tree.h (BLOCK_DIE): New.
25661 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
25663 (vmsdbgout_early_global_decl): New.
25664 (vmsdbgout_late_global_decl): New.
25665 Add early_finish debug hook field to vmsdbg_debug_hooks.
25666 Remove vmsdbgout_decl to vmsdbgout_function_decl.
25667 Add early and late_global_decl debug hooks.
25669 2015-06-05 Julian Brown <julian@codesourcery.com>
25670 Sandra Loosemore <sandra@codesourcery.com>
25672 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
25673 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
25674 to print-sysroot-suffix.sh script.
25676 2015-06-05 Tom de Vries <tom@codesourcery.com>
25678 merge from gomp4 branch:
25679 2015-05-28 Tom de Vries <tom@codesourcery.com>
25681 PR tree-optimization/65443
25682 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
25683 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
25684 (try_transform_to_exit_first_loop_alt): New function.
25685 (transform_to_exit_first_loop): Use
25686 try_transform_to_exit_first_loop_alt.
25688 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
25690 * builtins.c (expand_builtin_atomic_compare_exchange): Call
25691 emit_cmp_and_jump_insns with the mode of target.
25693 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25695 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
25697 2015-06-04 DJ Delorie <dj@redhat.com>
25699 * config/msp430/msp430.md (movsi_s): New. Special case for
25700 storing a 20-bit symbol into a 32-bit register.
25701 * config/msp430/msp430.c (msp430_subreg): Add support for it.
25702 * config/msp430/predicates.md (msp430_symbol_operand): New.
25704 2015-06-04 Sriraman Tallam <tmsriram@google.com>
25706 * c-family/c-common.c (noplt): New attribute.
25707 (handle_noplt_attribute): New handler.
25708 * calls.c (prepare_call_address): Check for noplt
25710 * config/i386/i386.c (ix86_expand_call): Check
25711 for noplt attribute.
25712 (ix86_nopic_noplt_attribute_p): New function.
25713 (ix86_output_call_insn): Output indirect call for non-pic
25715 * doc/extend.texi (noplt): Document new attribute.
25716 * doc/invoke.texi: Document new attribute.
25718 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
25720 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
25721 real.h, and fixed-value.h when included in host source files.
25722 * double-int.h: Remove redundant #includes listed above.
25723 * fixed-value.h: Likewise.
25724 * real.h: Likewise.
25725 * wide-int.h: Likewise.
25726 * inchash.h: Likewise.
25727 * rtl.h: Add some include files When included from a generator file.
25728 * target.h: Remove wide-int.h and insn-modes.h from the include list.
25729 * internal-fn.h: Don't include coretypes.h.
25730 * alias.c: Adjust includes for restructured coretypes.h.
25731 * asan.c: Likewise.
25732 * attribs.c: Likewise.
25733 * auto-inc-dec.c: Likewise.
25734 * auto-profile.c: Likewise.
25735 * bb-reorder.c: Likewise.
25736 * bt-load.c: Likewise.
25737 * builtins.c: Likewise.
25738 * caller-save.c: Likewise.
25739 * calls.c: Likewise.
25740 * ccmp.c: Likewise.
25742 * cfganal.c: Likewise.
25743 * cfgbuild.c: Likewise.
25744 * cfgcleanup.c: Likewise.
25745 * cfgexpand.c: Likewise.
25746 * cfghooks.c: Likewise.
25747 * cfgloop.c: Likewise.
25748 * cfgloop.h: Likewise.
25749 * cfgloopanal.c: Likewise.
25750 * cfgloopmanip.c: Likewise.
25751 * cfgrtl.c: Likewise.
25752 * cgraph.c: Likewise.
25753 * cgraphbuild.c: Likewise.
25754 * cgraphclones.c: Likewise.
25755 * cgraphunit.c: Likewise.
25756 * cilk-common.c: Likewise.
25757 * combine-stack-adj.c: Likewise.
25758 * combine.c: Likewise.
25759 * compare-elim.c: Likewise.
25760 * convert.c: Likewise.
25761 * coverage.c: Likewise.
25762 * cppbuiltin.c: Likewise.
25763 * cprop.c: Likewise.
25765 * cselib.c: Likewise.
25766 * data-streamer-in.c: Likewise.
25767 * data-streamer-out.c: Likewise.
25768 * data-streamer.c: Likewise.
25769 * dbxout.c: Likewise.
25772 * debug.c: Likewise.
25773 * df-core.c: Likewise.
25774 * df-problems.c: Likewise.
25775 * df-scan.c: Likewise.
25778 * dojump.c: Likewise.
25779 * dominance.c: Likewise.
25780 * domwalk.c: Likewise.
25781 * double-int.c: Likewise.
25783 * dumpfile.c: Likewise.
25784 * dwarf2asm.c: Likewise.
25785 * dwarf2cfi.c: Likewise.
25786 * dwarf2out.c: Likewise.
25787 * dwarf2out.h: Likewise.
25788 * emit-rtl.c: Likewise.
25789 * et-forest.c: Likewise.
25790 * except.c: Likewise.
25791 * explow.c: Likewise.
25792 * expmed.c: Likewise.
25793 * expr.c: Likewise.
25794 * final.c: Likewise.
25795 * fixed-value.c: Likewise.
25796 * fold-const.c: Likewise.
25797 * function.c: Likewise.
25798 * fwprop.c: Likewise.
25799 * gcc-plugin.h: Likewise.
25800 * gcse.c: Likewise.
25801 * generic-match-head.c: Likewise.
25802 * ggc-page.c: Likewise.
25803 * gimple-builder.c: Likewise.
25804 * gimple-expr.c: Likewise.
25805 * gimple-fold.c: Likewise.
25806 * gimple-iterator.c: Likewise.
25807 * gimple-low.c: Likewise.
25808 * gimple-match-head.c: Likewise.
25809 * gimple-pretty-print.c: Likewise.
25810 * gimple-ssa-isolate-paths.c: Likewise.
25811 * gimple-ssa-strength-reduction.c: Likewise.
25812 * gimple-streamer-in.c: Likewise.
25813 * gimple-streamer-out.c: Likewise.
25814 * gimple-streamer.h: Likewise.
25815 * gimple-walk.c: Likewise.
25816 * gimple.c: Likewise.
25817 * gimplify-me.c: Likewise.
25818 * gimplify.c: Likewise.
25819 * godump.c: Likewise.
25820 * graph.c: Likewise.
25821 * graphite-blocking.c: Likewise.
25822 * graphite-dependences.c: Likewise.
25823 * graphite-interchange.c: Likewise.
25824 * graphite-isl-ast-to-gimple.c: Likewise.
25825 * graphite-optimize-isl.c: Likewise.
25826 * graphite-poly.c: Likewise.
25827 * graphite-scop-detection.c: Likewise.
25828 * graphite-sese-to-poly.c: Likewise.
25829 * graphite.c: Likewise.
25830 * haifa-sched.c: Likewise.
25831 * hooks.h: Likewise.
25832 * hw-doloop.c: Likewise.
25833 * ifcvt.c: Likewise.
25834 * incpath.c: Likewise.
25835 * init-regs.c: Likewise.
25836 * internal-fn.c: Likewise.
25837 * ipa-chkp.c: Likewise.
25838 * ipa-comdats.c: Likewise.
25839 * ipa-cp.c: Likewise.
25840 * ipa-devirt.c: Likewise.
25841 * ipa-icf-gimple.c: Likewise.
25842 * ipa-icf.c: Likewise.
25843 * ipa-inline-analysis.c: Likewise.
25844 * ipa-inline-transform.c: Likewise.
25845 * ipa-inline.c: Likewise.
25846 * ipa-polymorphic-call.c: Likewise.
25847 * ipa-profile.c: Likewise.
25848 * ipa-prop.c: Likewise.
25849 * ipa-pure-const.c: Likewise.
25850 * ipa-ref.c: Likewise.
25851 * ipa-reference.c: Likewise.
25852 * ipa-split.c: Likewise.
25853 * ipa-utils.c: Likewise.
25854 * ipa-visibility.c: Likewise.
25856 * ira-build.c: Likewise.
25857 * ira-color.c: Likewise.
25858 * ira-conflicts.c: Likewise.
25859 * ira-costs.c: Likewise.
25860 * ira-emit.c: Likewise.
25861 * ira-lives.c: Likewise.
25863 * jump.c: Likewise.
25864 * langhooks.c: Likewise.
25866 * loop-doloop.c: Likewise.
25867 * loop-init.c: Likewise.
25868 * loop-invariant.c: Likewise.
25869 * loop-iv.c: Likewise.
25870 * loop-unroll.c: Likewise.
25871 * lower-subreg.c: Likewise.
25872 * lra-assigns.c: Likewise.
25873 * lra-coalesce.c: Likewise.
25874 * lra-constraints.c: Likewise.
25875 * lra-eliminations.c: Likewise.
25876 * lra-lives.c: Likewise.
25877 * lra-remat.c: Likewise.
25878 * lra-spills.c: Likewise.
25880 * lto-cgraph.c: Likewise.
25881 * lto-compress.c: Likewise.
25882 * lto-opts.c: Likewise.
25883 * lto-section-in.c: Likewise.
25884 * lto-section-out.c: Likewise.
25885 * lto-streamer-in.c: Likewise.
25886 * lto-streamer-out.c: Likewise.
25887 * lto-streamer.c: Likewise.
25889 * mode-switching.c: Likewise.
25890 * modulo-sched.c: Likewise.
25891 * omega.c: Likewise.
25892 * omp-low.c: Likewise.
25893 * optabs.c: Likewise.
25894 * opts-global.c: Likewise.
25895 * passes.c: Likewise.
25896 * plugin.c: Likewise.
25897 * postreload-gcse.c: Likewise.
25898 * postreload.c: Likewise.
25899 * predict.c: Likewise.
25900 * print-rtl.c: Likewise.
25901 * print-tree.c: Likewise.
25902 * profile.c: Likewise.
25903 * real.c: Likewise.
25904 * realmpfr.c: Likewise.
25905 * realmpfr.h: Likewise.
25906 * recog.c: Likewise.
25908 * reg-stack.c: Likewise.
25909 * regcprop.c: Likewise.
25910 * reginfo.c: Likewise.
25911 * regrename.c: Likewise.
25912 * regs.h: Likewise.
25913 * regstat.c: Likewise.
25914 * reload.c: Likewise.
25915 * reload1.c: Likewise.
25916 * reorg.c: Likewise.
25917 * resource.c: Likewise.
25918 * rtl-chkp.c: Likewise.
25919 * rtlanal.c: Likewise.
25920 * rtlhooks.c: Likewise.
25921 * sanopt.c: Likewise.
25922 * sched-deps.c: Likewise.
25923 * sched-ebb.c: Likewise.
25924 * sched-rgn.c: Likewise.
25925 * sched-vis.c: Likewise.
25926 * sdbout.c: Likewise.
25927 * sel-sched-dump.c: Likewise.
25928 * sel-sched-ir.c: Likewise.
25929 * sel-sched.c: Likewise.
25930 * sese.c: Likewise.
25931 * shrink-wrap.c: Likewise.
25932 * shrink-wrap.h: Likewise.
25933 * simplify-rtx.c: Likewise.
25934 * stack-ptr-mod.c: Likewise.
25935 * statistics.c: Likewise.
25936 * stmt.c: Likewise.
25937 * stor-layout.c: Likewise.
25938 * store-motion.c: Likewise.
25939 * stringpool.c: Likewise.
25940 * symtab.c: Likewise.
25941 * target-globals.c: Likewise.
25942 * targhooks.c: Likewise.
25943 * toplev.c: Likewise.
25944 * tracer.c: Likewise.
25945 * trans-mem.c: Likewise.
25946 * tree-affine.c: Likewise.
25947 * tree-affine.h: Likewise.
25948 * tree-browser.c: Likewise.
25949 * tree-call-cdce.c: Likewise.
25950 * tree-cfg.c: Likewise.
25951 * tree-cfgcleanup.c: Likewise.
25952 * tree-chkp-opt.c: Likewise.
25953 * tree-chkp.c: Likewise.
25954 * tree-chrec.c: Likewise.
25955 * tree-complex.c: Likewise.
25956 * tree-data-ref.c: Likewise.
25957 * tree-dfa.c: Likewise.
25958 * tree-diagnostic.c: Likewise.
25959 * tree-dump.c: Likewise.
25960 * tree-eh.c: Likewise.
25961 * tree-emutls.c: Likewise.
25962 * tree-if-conv.c: Likewise.
25963 * tree-inline.c: Likewise.
25964 * tree-into-ssa.c: Likewise.
25965 * tree-iterator.c: Likewise.
25966 * tree-loop-distribution.c: Likewise.
25967 * tree-nested.c: Likewise.
25968 * tree-nrv.c: Likewise.
25969 * tree-object-size.c: Likewise.
25970 * tree-outof-ssa.c: Likewise.
25971 * tree-parloops.c: Likewise.
25972 * tree-phinodes.c: Likewise.
25973 * tree-predcom.c: Likewise.
25974 * tree-pretty-print.c: Likewise.
25975 * tree-pretty-print.h: Likewise.
25976 * tree-profile.c: Likewise.
25977 * tree-scalar-evolution.c: Likewise.
25978 * tree-sra.c: Likewise.
25979 * tree-ssa-address.c: Likewise.
25980 * tree-ssa-alias.c: Likewise.
25981 * tree-ssa-ccp.c: Likewise.
25982 * tree-ssa-coalesce.c: Likewise.
25983 * tree-ssa-copy.c: Likewise.
25984 * tree-ssa-copyrename.c: Likewise.
25985 * tree-ssa-dce.c: Likewise.
25986 * tree-ssa-dom.c: Likewise.
25987 * tree-ssa-dse.c: Likewise.
25988 * tree-ssa-forwprop.c: Likewise.
25989 * tree-ssa-ifcombine.c: Likewise.
25990 * tree-ssa-live.c: Likewise.
25991 * tree-ssa-loop-ch.c: Likewise.
25992 * tree-ssa-loop-im.c: Likewise.
25993 * tree-ssa-loop-ivcanon.c: Likewise.
25994 * tree-ssa-loop-ivopts.c: Likewise.
25995 * tree-ssa-loop-manip.c: Likewise.
25996 * tree-ssa-loop-niter.c: Likewise.
25997 * tree-ssa-loop-prefetch.c: Likewise.
25998 * tree-ssa-loop-unswitch.c: Likewise.
25999 * tree-ssa-loop.c: Likewise.
26000 * tree-ssa-loop.h: Likewise.
26001 * tree-ssa-math-opts.c: Likewise.
26002 * tree-ssa-operands.c: Likewise.
26003 * tree-ssa-phiopt.c: Likewise.
26004 * tree-ssa-phiprop.c: Likewise.
26005 * tree-ssa-pre.c: Likewise.
26006 * tree-ssa-propagate.c: Likewise.
26007 * tree-ssa-reassoc.c: Likewise.
26008 * tree-ssa-sccvn.c: Likewise.
26009 * tree-ssa-scopedtables.c: Likewise.
26010 * tree-ssa-sink.c: Likewise.
26011 * tree-ssa-strlen.c: Likewise.
26012 * tree-ssa-structalias.c: Likewise.
26013 * tree-ssa-tail-merge.c: Likewise.
26014 * tree-ssa-ter.c: Likewise.
26015 * tree-ssa-threadedge.c: Likewise.
26016 * tree-ssa-threadupdate.c: Likewise.
26017 * tree-ssa-uncprop.c: Likewise.
26018 * tree-ssa-uninit.c: Likewise.
26019 * tree-ssa.c: Likewise.
26020 * tree-ssanames.c: Likewise.
26021 * tree-stdarg.c: Likewise.
26022 * tree-streamer-in.c: Likewise.
26023 * tree-streamer-out.c: Likewise.
26024 * tree-streamer.c: Likewise.
26025 * tree-switch-conversion.c: Likewise.
26026 * tree-tailcall.c: Likewise.
26027 * tree-vect-data-refs.c: Likewise.
26028 * tree-vect-generic.c: Likewise.
26029 * tree-vect-loop-manip.c: Likewise.
26030 * tree-vect-loop.c: Likewise.
26031 * tree-vect-patterns.c: Likewise.
26032 * tree-vect-slp.c: Likewise.
26033 * tree-vect-stmts.c: Likewise.
26034 * tree-vectorizer.c: Likewise.
26035 * tree-vrp.c: Likewise.
26036 * tree.c: Likewise.
26037 * tsan.c: Likewise.
26038 * ubsan.c: Likewise.
26039 * valtrack.c: Likewise.
26040 * value-prof.c: Likewise.
26041 * var-tracking.c: Likewise.
26042 * varasm.c: Likewise.
26043 * varpool.c: Likewise.
26044 * vmsdbgout.c: Likewise.
26045 * vtable-verify.c: Likewise.
26047 * wide-int-print.cc: Likewise.
26048 * wide-int-print.h: Likewise.
26049 * wide-int.cc: Likewise.
26050 * xcoffout.c: Likewise.
26051 * config/aarch64/aarch64-builtins.c: Likewise.
26052 * config/aarch64/aarch64.c: Likewise.
26053 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26054 * config/alpha/alpha.c: Likewise.
26055 * config/arc/arc.c: Likewise.
26056 * config/arm/aarch-common.c: Likewise.
26057 * config/arm/arm-builtins.c: Likewise.
26058 * config/arm/arm-c.c: Likewise.
26059 * config/arm/arm.c: Likewise.
26060 * config/avr/avr-c.c: Likewise.
26061 * config/avr/avr-log.c: Likewise.
26062 * config/avr/avr.c: Likewise.
26063 * config/bfin/bfin.c: Likewise.
26064 * config/c6x/c6x.c: Likewise.
26065 * config/cr16/cr16.c: Likewise.
26066 * config/cris/cris.c: Likewise.
26067 * config/darwin-c.c: Likewise.
26068 * config/darwin.c: Likewise.
26069 * config/default-c.c: Likewise.
26070 * config/epiphany/epiphany.c: Likewise.
26071 * config/epiphany/mode-switch-use.c: Likewise.
26072 * config/epiphany/resolve-sw-modes.c: Likewise.
26073 * config/fr30/fr30.c: Likewise.
26074 * config/frv/frv.c: Likewise.
26075 * config/ft32/ft32.c: Likewise.
26076 * config/glibc-c.c: Likewise.
26077 * config/h8300/h8300.c: Likewise.
26078 * config/i386/i386-c.c: Likewise.
26079 * config/i386/i386.c: Likewise.
26080 * config/i386/msformat-c.c: Likewise.
26081 * config/i386/winnt-cxx.c: Likewise.
26082 * config/i386/winnt-stubs.c: Likewise.
26083 * config/i386/winnt.c: Likewise.
26084 * config/ia64/ia64-c.c: Likewise.
26085 * config/ia64/ia64.c: Likewise.
26086 * config/iq2000/iq2000.c: Likewise.
26087 * config/lm32/lm32.c: Likewise.
26088 * config/m32c/m32c-pragma.c: Likewise.
26089 * config/m32c/m32c.c: Likewise.
26090 * config/m32r/m32r.c: Likewise.
26091 * config/m68k/m68k.c: Likewise.
26092 * config/mcore/mcore.c: Likewise.
26093 * config/mep/mep-pragma.c: Likewise.
26094 * config/mep/mep.c: Likewise.
26095 * config/microblaze/microblaze-c.c: Likewise.
26096 * config/microblaze/microblaze.c: Likewise.
26097 * config/mips/mips.c: Likewise.
26098 * config/mmix/mmix.c: Likewise.
26099 * config/mn10300/mn10300.c: Likewise.
26100 * config/moxie/moxie.c: Likewise.
26101 * config/msp430/msp430-c.c: Likewise.
26102 * config/msp430/msp430.c: Likewise.
26103 * config/nds32/nds32-cost.c: Likewise.
26104 * config/nds32/nds32-fp-as-gp.c: Likewise.
26105 * config/nds32/nds32-intrinsic.c: Likewise.
26106 * config/nds32/nds32-isr.c: Likewise.
26107 * config/nds32/nds32-md-auxiliary.c: Likewise.
26108 * config/nds32/nds32-memory-manipulation.c: Likewise.
26109 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26110 * config/nds32/nds32-predicates.c: Likewise.
26111 * config/nds32/nds32.c: Likewise.
26112 * config/nios2/nios2.c: Likewise.
26113 * config/nvptx/nvptx.c: Likewise.
26114 * config/pa/pa.c: Likewise.
26115 * config/pdp11/pdp11.c: Likewise.
26116 * config/rl78/rl78-c.c: Likewise.
26117 * config/rl78/rl78.c: Likewise.
26118 * config/rs6000/rs6000-c.c: Likewise.
26119 * config/rs6000/rs6000.c: Likewise.
26120 * config/rx/rx.c: Likewise.
26121 * config/s390/s390-c.c: Likewise.
26122 * config/s390/s390.c: Likewise.
26123 * config/sh/sh-c.c: Likewise.
26124 * config/sh/sh-mem.cc: Likewise.
26125 * config/sh/sh.c: Likewise.
26126 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26127 * config/sh/sh_treg_combine.cc: Likewise.
26128 * config/sol2-c.c: Likewise.
26129 * config/sol2-cxx.c: Likewise.
26130 * config/sol2-stubs.c: Likewise.
26131 * config/sol2.c: Likewise.
26132 * config/sparc/sparc-c.c: Likewise.
26133 * config/sparc/sparc.c: Likewise.
26134 * config/spu/spu-c.c: Likewise.
26135 * config/spu/spu.c: Likewise.
26136 * config/stormy16/stormy16.c: Likewise.
26137 * config/tilegx/mul-tables.c: Likewise.
26138 * config/tilegx/tilegx-c.c: Likewise.
26139 * config/tilegx/tilegx.c: Likewise.
26140 * config/tilepro/mul-tables.c: Likewise.
26141 * config/tilepro/tilepro-c.c: Likewise.
26142 * config/tilepro/tilepro.c: Likewise.
26143 * config/v850/v850-c.c: Likewise.
26144 * config/v850/v850.c: Likewise.
26145 * config/vax/vax.c: Likewise.
26146 * config/visium/visium.c: Likewise.
26147 * config/vms/vms-c.c: Likewise.
26148 * config/vms/vms.c: Likewise.
26149 * config/vxworks.c: Likewise.
26150 * config/winnt-c.c: Likewise.
26151 * config/xtensa/xtensa.c: Likewise.
26152 * common/config/bfin/bfin-common.c: Likewise.
26154 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
26156 * tree.h (tree_code_for_canonical_type_merging): New function.
26157 * tree.c (gimple_canonical_types_compatible_p): Use
26158 tree_code_for_canonical_type_merging..
26160 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26164 * doc/tm.texi: Regenerate.
26165 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
26166 * target.def (TARGET_RELAXED_ORDERING): Likewise.
26167 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
26168 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
26169 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
26170 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
26171 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
26172 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
26173 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
26175 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26177 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
26178 register fma steering pass.
26179 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
26180 AARCH64_TUNE_FMA_STEERING.
26182 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
26184 * tree.c (verify_type_variant): Verify that type and variant is
26186 (gimple_canonical_types_compatible_p): Look for main variants.
26188 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
26190 * config.gcc (powerpc*-*-*): Add support for a new configure
26191 option --with-advance-toolchain=<xxx> which overrides using the
26192 default header files, libraries and dynamic linker.
26194 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
26195 specs to support the configure --with-advance-toolchain=<xxx>
26197 (INCLUDE_EXTRA_SPEC): Likewise.
26198 (LINK_OS_EXTRA_SPEC32): Likewise.
26199 (LINK_OK_EXTRA_SPEC64): Likewise.
26200 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
26201 (DYNAMIC_LINKER_PREFIX): Likewise.
26202 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
26204 (GLIBC_DYNAMIC_LINKER32): Likewise.
26205 (GLIBC_DYNAMIC_LINKER64): Likewise.
26206 (LINK_OS_LINUX_SPEC32): Likewise.
26207 (LINK_OS_LINUX_SPEC64): Likewise.
26209 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
26210 configuration option.
26212 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
26215 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
26216 to determine current function ABI.
26217 (ix86_function_value_regno_p): Ditto.
26219 2015-06-03 Martin Liska <mliska@suse.cz>
26221 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
26222 * bitmap.h (struct bitmap_usage): Likewise.
26223 * ggc-common.c (struct ggc_usage): Likewise.
26224 * mem-stats.h (struct mem_location): Likewise.
26225 (struct mem_usage): Likewise.
26226 * vec.c (struct vec_usage): Likewise.
26228 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
26230 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
26233 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
26235 * doc/plugins.texi (enum plugin_event): New event.
26236 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
26237 and PLUGIN_FINISH_FUNCTION.
26238 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
26239 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
26241 2015-06-03 Richard Biener <rguenther@suse.de>
26243 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26244 compute GROUP_GAP for the first element.
26245 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
26248 2015-06-03 Nick Clifton <nickc@redhat.com>
26250 * config/rl78/rl78-real.md: Add peepholes to avoid a register
26251 copy when calling a function.
26252 * config/rl78/rl78.c (need_to_save): Do not push the frame
26253 pointer in an interrupt handler prologue if it is never used.
26255 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26257 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
26259 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
26261 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
26262 reference when cloning alias node.
26264 2015-06-03 Martin Liska <mliska@suse.cz>
26266 * alloc-pool.h (struct pool_usage): Correct space padding.
26267 * ggc-page.c (ggc_print_statistics): Align columns in a report.
26268 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
26269 * tree.c (dump_tree_statistics): Align columns in a report.
26271 2015-06-03 Martin Liska <mliska@suse.cz>
26273 * alloc-pool.c (allocate_pool_descriptor): Remove.
26274 (struct pool_output_info): Likewise.
26275 (print_alloc_pool_statistics): Likewise.
26276 (dump_alloc_pool_statistics): Likewise.
26277 * alloc-pool.h (struct pool_usage): New struct.
26278 (pool_allocator::initialize): Change usage of memory statistics
26279 to a new interface.
26280 (pool_allocator::release): Likewise.
26281 (pool_allocator::allocate): Likewise.
26282 (pool_allocator::remove): Likewise.
26283 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
26284 for a pool allocator.
26285 * mem-stats.h (struct mem_location): Add new ctor.
26286 (struct mem_usage): Add counter for number of
26288 (mem_alloc_description::register_descriptor): New overload of
26289 * mem-stats.h (mem_location::to_string): New function.
26290 * bitmap.h (struct bitmap_usage): Use this new function.
26291 * ggc-common.c (struct ggc_usage): Likewise.
26294 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
26296 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
26297 of GCC_INSN_FLAGS_H block.
26299 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
26301 * explow.c (plus_constant): Update check after force_const_mem call
26302 to see if the value returned is not a NULL_RTX.
26304 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
26306 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
26307 remove instumentation thunks calling reachable functions.
26308 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
26309 * lto/lto-partition.c (privatize_symbol_name_1): New.
26310 (privatize_symbol_name): Privatize both decl and orig_decl
26311 names for instrumented functions.
26312 * cgraph.c (cgraph_node::verify_node): Add transparent
26313 alias chain check for instrumented node.
26315 2015-06-03 Marek Polacek <polacek@redhat.com>
26319 * tree.c (attribute_value_equal): Handle attribute format.
26320 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
26322 2015-06-03 Richard Biener <rguenther@suse.de>
26324 PR tree-optimization/63916
26325 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
26326 Forward-propagate non-invariant addresses by splicing their
26327 reference ops if the result isn't going to be used by PRE.
26328 (vn_reference_lookup_3): Remove pointless assert.
26330 2015-06-03 Richard Biener <rguenther@suse.de>
26332 PR tree-optimization/66375
26333 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
26334 add to the evolution before following SSA edges.
26336 2015-06-03 Bin Cheng <bin.cheng@arm.com>
26338 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
26339 (dump_use, dump_cand, find_induction_variables): Pass new argument
26341 (record_use): Preserve the ssa name information in IV.
26343 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
26345 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
26347 (add_mode_tests): Don't add mode tests if the predicate only
26348 accepts scalar constant integers. Otherwise, allow the mode
26349 of "op" to be VOIDmode if the predicate does accept such integers.
26351 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
26354 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
26355 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
26356 (aarch64_secondary_reload): Likewise
26357 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
26359 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
26362 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
26363 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26366 * cprop.c (try_replace_reg): Check cost of constants before propagating.
26368 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26370 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
26371 provide access to the IBM extended double floating point mode if
26372 long double is IEEE 128-bit floating point.
26373 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
26374 point if long double is the IBM extended double type.
26376 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
26377 enable adding IEEE 128-bit floating point support.
26378 (-mfloat128-software): Likewise.
26379 (-mfloat128-sw): Likewise.
26381 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
26382 128-bit floating point types to occupy any register if
26383 -mlong-double-64. Do not allow use of IFmode/KFmode unless
26384 -mfloat128-software is enabled.
26385 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
26387 (rs6000_option_override_internal): Add -mfloat128-* support.
26388 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
26390 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
26391 and float128 type nodes.
26392 (ieee128_float_type_node): Likewise.
26393 (ibm128_float_type_node): Likewise.
26395 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26398 * config/aarch64/geniterators.sh: Rewrite in awk.
26400 2015-06-02 Martin Liska <mliska@suse.cz>
26402 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
26403 values to avoid -Wmaybe-uninitialized errors.
26405 2015-06-02 Richard Biener <rguenther@suse.de>
26408 * dwarf2out.c (lookup_context_die): New function.
26409 (resolve_addr): Avoid forcing a full DIE for the
26410 target of a DW_TAG_GNU_call_site during late compilation.
26411 Instead create a stub DIE without a type if we have a
26412 context DIE present.
26414 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
26416 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
26418 2015-06-02 Bin Cheng <bin.cheng@arm.com>
26420 PR tree-optimization/48052
26421 * cfgloop.h (struct control_iv): New.
26422 (struct loop): New field control_ivs.
26423 * tree-ssa-loop-niter.c : Include "stor-layout.h".
26424 (number_of_iterations_lt): Set no_overflow information.
26425 (number_of_iterations_exit): Init control iv in niter struct.
26426 (record_control_iv): New.
26427 (estimate_numbers_of_iterations_loop): Call record_control_iv.
26428 (loop_exits_before_overflow): New. Interface factored out of
26429 scev_probably_wraps_p.
26430 (scev_probably_wraps_p): Factor loop niter related code into
26431 loop_exits_before_overflow.
26432 (free_numbers_of_iterations_estimates_loop): Free control ivs.
26433 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
26435 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
26437 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
26438 the target doesn't belong to the current function.
26440 2015-06-02 Marek Polacek <polacek@redhat.com>
26442 PR middle-end/66345
26443 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
26444 get_maxval_strlen does not produce an INTEGER_CST.
26446 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
26448 * config/arc/constraints.md: Use lower-case names in match_code.
26449 * config/mmix/constraints.md: Likewise.
26451 2015-06-02 Richard Biener <rguenther@suse.de>
26453 PR tree-optimization/65961
26454 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
26455 check and clarify dump message.
26456 (vect_build_slp_tree): If all children are built up from scalars
26457 build up the parent from scalars instead.
26458 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
26460 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
26463 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
26464 instead of print ... .
26466 2015-06-02 Alan Modra <amodra@gmail.com>
26468 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
26471 2015-06-02 Bin Cheng <bin.cheng@arm.com>
26473 PR tree-optimization/52563
26474 PR tree-optimization/62173
26475 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
26476 (alloc_iv, set_iv): New parameter.
26477 (determine_biv_step): Delete.
26478 (find_bivs): Inline original determine_biv_step. Pass new
26479 argument to set_iv.
26480 (idx_find_step): Use no_overflow information for conversion.
26481 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
26482 resolve_mixers handle folded_casts.
26483 (instantiate_scev_name): Change bool parameter to bool pointer.
26484 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
26485 (instantiate_array_ref, instantiate_scev_not): Ditto.
26486 (instantiate_scev_3, instantiate_scev_2): Ditto.
26487 (instantiate_scev_1, instantiate_scev_r): Ditto.
26488 (instantiate_scev_convert, ): Change parameter. Pass argument
26489 to chrec_convert_aggressive.
26490 (instantiate_scev): Change argument.
26491 (resolve_mixers): New parameter and set it.
26492 (scev_const_prop): New argument.
26493 * tree-scalar-evolution.h (resolve_mixers): New parameter.
26494 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
26496 (chrec_convert): New parameter. Move definition below.
26497 (chrec_convert_aggressive): New parameter and set it. Call
26498 convert_affine_scev.
26499 * tree-chrec.h (chrec_convert): New parameter.
26500 (chrec_convert_aggressive): Ditto.
26502 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
26504 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
26505 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
26506 the LHS of a no-return call if its type has variable size.
26507 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
26508 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
26510 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
26512 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
26513 * config.in: Regenerate.
26515 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
26517 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
26518 consecutive accesses within outer-loop with force_vectorize
26519 for references with zero step in inner-loop.
26521 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
26523 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
26524 rather than from gcc/build directory.
26526 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
26529 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
26530 for __sync memory models, emit initial loads and final barriers as
26533 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
26536 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
26537 (aarch64_split_atomic_op): Check for __sync memory models, emit
26538 appropriate initial loads and final barriers.
26540 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
26542 * Makefile.in: Fix gcov dependencies that should
26543 not point to a build folder.
26545 2015-06-01 Richard Biener <rguenther@suse.de>
26548 2015-05-29 Richard Biener <rguenther@suse.de>
26550 PR tree-optimization/66314
26551 * tree-ssa-threadupdate.c (create_block_for_threading): Add
26552 parameter that says which loop the new block belongs to.
26553 (ssa_create_duplicates): Blocks duplicated for the threaded
26554 path belong to the loop of the thread destination.
26556 2015-06-01 Martin Liska <mliska@suse.cz>
26558 * sched-deps.c: Include pool-alloc.h before
26559 cselib.h header file is included.
26561 2015-06-01 Richard Biener <rguenther@suse.de>
26563 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
26566 2015-06-01 Martin Liska <mliska@suse.cz>
26568 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
26569 a function local variable.
26571 2015-06-01 Martin Liska <mliska@suse.cz>
26573 * alloc-pool.c (create_alloc_pool): Remove.
26574 (empty_alloc_pool): Likewise.
26575 (free_alloc_pool): Likewise.
26576 (free_alloc_pool_if_empty): Likewise.
26577 (pool_alloc): Likewise.
26578 (pool_free): Likewise.
26579 * alloc-pool.h: Remove old declarations.
26581 2015-06-01 Martin Liska <mliska@suse.cz>
26583 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
26584 (ira_create_object): Likewise.
26585 (ira_create_allocno): Likewise.
26586 (ira_create_live_range): Likewise.
26587 (copy_live_range): Likewise.
26588 (ira_finish_live_range): Likewise.
26589 (ira_free_allocno_costs): Likewise.
26590 (finish_allocno): Likewise.
26591 (finish_allocnos): Likewise.
26592 (initiate_prefs): Likewise.
26593 (ira_create_pref): Likewise.
26594 (finish_pref): Likewise.
26595 (finish_prefs): Likewise.
26596 (initiate_copies): Likewise.
26597 (ira_create_copy): Likewise.
26598 (finish_copy): Likewise.
26599 (finish_copies): Likewise.
26600 (finish_prefs): Likewise.
26602 2015-06-01 Martin Liska <mliska@suse.cz>
26604 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
26605 (allocate_and_init_ipcp_value): Likewise.
26606 (ipcp_lattice::add_value): Likewise.
26607 (merge_agg_lats_step): Likewise.
26608 (ipcp_driver): Likewise.
26609 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
26610 (ipa_free_all_structures_after_iinln): Likewise.
26611 * ipa-prop.h: Likewise.
26613 2015-06-01 Martin Liska <mliska@suse.cz>
26615 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
26617 (set_hint_predicate): Likewise.
26618 (inline_summary_alloc): Likewise.
26619 (reset_inline_edge_summary): Likewise.
26620 (reset_inline_summary): Likewise.
26621 (set_cond_stmt_execution_predicate): Likewise.
26622 (set_switch_stmt_execution_predicate): Likewise.
26623 (compute_bb_predicates): Likewise.
26624 (estimate_function_body_sizes): Likewise.
26625 (inline_free_summary): Likewise.
26627 2015-06-01 Martin Liska <mliska@suse.cz>
26629 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
26630 (ipa_edge_duplication_hook): Likewise.
26631 (ipa_free_all_structures_after_ipa_cp): Likewise.
26632 (ipa_free_all_structures_after_iinln): Likewise.
26634 2015-06-01 Martin Liska <mliska@suse.cz>
26636 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
26637 (ipa_profile_generate_summary): Likewise.
26638 (ipa_profile_read_summary): Likewise.
26639 (ipa_profile): Likewise.
26641 2015-06-01 Martin Liska <mliska@suse.cz>
26643 * tree-ssa-structalias.c (new_var_info): Use new type-based
26645 (new_constraint): Likewise.
26646 (init_alias_vars): Likewise.
26647 (delete_points_to_sets): Likewise.
26649 2015-06-01 Martin Liska <mliska@suse.cz>
26651 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
26652 (free_strinfo): Likewise.
26653 (pass_strlen::execute): Likewise.
26655 2015-06-01 Martin Liska <mliska@suse.cz>
26657 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
26659 (vn_reference_insert_pieces): Likewise.
26660 (vn_phi_insert): Likewise.
26661 (visit_reference_op_call): Likewise.
26662 (copy_phi): Likewise.
26663 (copy_reference): Likewise.
26664 (process_scc): Likewise.
26665 (allocate_vn_table): Likewise.
26666 (free_vn_table): Likewise.
26668 2015-06-01 Martin Liska <mliska@suse.cz>
26670 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
26672 (add_repeat_to_ops_vec): Likewise.
26673 (get_ops): Likewise.
26674 (maybe_optimize_range_tests): Likewise.
26675 (init_reassoc): Likewise.
26676 (fini_reassoc): Likewise.
26678 2015-06-01 Martin Liska <mliska@suse.cz>
26680 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
26682 (bitmap_set_new): Likewise.
26683 (get_or_alloc_expr_for_constant): Likewise.
26684 (get_or_alloc_expr_for): Likewise.
26685 (phi_translate_1): Likewise.
26686 (compute_avail): Likewise.
26687 (init_pre): Likewise.
26688 (fini_pre): Likewise.
26690 2015-06-01 Martin Liska <mliska@suse.cz>
26692 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
26693 (delete_dep_node): Likewise.
26694 (create_deps_list): Likewise.
26695 (free_deps_list): Likewise.
26696 (sched_deps_init): Likewise.
26697 (sched_deps_finish): Likewise.
26699 2015-06-01 Martin Liska <mliska@suse.cz>
26701 * regcprop.c (free_debug_insn_changes): Use new type-based
26703 (replace_oldest_value_reg): Likewise.
26704 (pass_cprop_hardreg::execute): Likewise.
26706 2015-06-01 Martin Liska <mliska@suse.cz>
26708 * ira-build.c (initiate_cost_vectors): Use new type-based
26710 (ira_allocate_cost_vector): Likewise.
26711 (ira_free_cost_vector): Likewise.
26712 (finish_cost_vectors): Likewise.
26714 2015-06-01 Martin Liska <mliska@suse.cz>
26716 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
26718 (free_sched_pools): Likewise.
26719 * sel-sched-ir.h (_list_alloc): Likewise.
26720 (_list_remove): Likewise.
26722 2015-06-01 Martin Liska <mliska@suse.cz>
26724 * stmt.c (add_case_node): Use new type-based pool allocator.
26725 (expand_case): Likewise.
26726 (expand_sjlj_dispatch_table): Likewise.
26728 2015-06-01 Martin Liska <mliska@suse.cz>
26730 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
26731 (free_bb): Likewise.
26732 (pass_cse_reciprocals::execute): Likewise.
26734 2015-06-01 Martin Liska <mliska@suse.cz>
26736 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
26737 (sra_deinitialize) Likewise.
26738 (create_access_1) Likewise.
26739 (build_accesses_from_assign) Likewise.
26740 (create_artificial_child_access) Likewise.
26742 2015-06-01 Martin Liska <mliska@suse.cz>
26744 * dse.c (get_group_info):Use new type-based pool allocator.
26745 (dse_step0) Likewise.
26746 (free_store_info) Likewise.
26747 (delete_dead_store_insn) Likewise.
26748 (free_read_records) Likewise.
26749 (record_store) Likewise.
26750 (replace_read) Likewise.
26751 (check_mem_read_rtx) Likewise.
26752 (scan_insn) Likewise.
26753 (dse_step1) Likewise.
26754 (dse_step7) Likewise.
26756 2015-06-01 Martin Liska <mliska@suse.cz>
26758 * df-scan.c (struct df_scan_problem_data):Use new type-based
26760 (df_scan_free_internal) Likewise.
26761 (df_scan_alloc) Likewise.
26762 (df_grow_reg_info) Likewise.
26763 (df_free_ref) Likewise.
26764 (df_insn_create_insn_record) Likewise.
26765 (df_mw_hardreg_chain_delete) Likewise.
26766 (df_insn_info_delete) Likewise.
26767 (df_free_collection_rec) Likewise.
26768 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
26769 (df_sort_and_compress_mws) Likewise.
26770 (df_ref_create_structure) Likewise.
26771 (df_ref_record) Likewise.
26773 2015-06-01 Martin Liska <mliska@suse.cz>
26775 * df-problems.c (df_chain_create):Use new type-based pool allocator.
26776 (df_chain_unlink_1) Likewise.
26777 (df_chain_unlink) Likewise.
26778 (df_chain_remove_problem) Likewise.
26779 (df_chain_alloc) Likewise.
26780 (df_chain_free) Likewise.
26781 * df.h (struct dataflow) Likewise.
26783 2015-06-01 Martin Liska <mliska@suse.cz>
26785 * cselib.c (new_elt_list):Use new type-based pool allocator.
26786 (new_elt_loc_list) Likewise.
26787 (unchain_one_elt_list) Likewise.
26788 (unchain_one_elt_loc_list) Likewise.
26789 (unchain_one_value) Likewise.
26790 (new_cselib_val) Likewise.
26791 (cselib_init) Likewise.
26792 (cselib_finish) Likewise.
26794 2015-06-01 Martin Liska <mliska@suse.cz>
26796 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
26797 (sh_reorg) Likewise.
26799 2015-06-01 Martin Liska <mliska@suse.cz>
26801 * cfg.c (initialize_original_copy_tables):Use new type-based
26803 (free_original_copy_tables) Likewise.
26804 (copy_original_table_clear) Likewise.
26805 (copy_original_table_set) Likewise.
26807 2015-06-01 Martin Liska <mliska@suse.cz>
26809 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
26811 (asan_mem_ref_new) Likewise.
26812 (free_mem_ref_resources) Likewise.
26814 2015-06-01 Martin Liska <mliska@suse.cz>
26816 * var-tracking.c (variable_htab_free):Use new type-based
26818 (attrs_list_clear) Likewise.
26819 (attrs_list_insert) Likewise.
26820 (attrs_list_copy) Likewise.
26821 (shared_hash_unshare) Likewise.
26822 (shared_hash_destroy) Likewise.
26823 (unshare_variable) Likewise.
26824 (var_reg_delete_and_set) Likewise.
26825 (var_reg_delete) Likewise.
26826 (var_regno_delete) Likewise.
26827 (drop_overlapping_mem_locs) Likewise.
26828 (variable_union) Likewise.
26829 (insert_into_intersection) Likewise.
26830 (canonicalize_values_star) Likewise.
26831 (variable_merge_over_cur) Likewise.
26832 (dataflow_set_merge) Likewise.
26833 (remove_duplicate_values) Likewise.
26834 (variable_post_merge_new_vals) Likewise.
26835 (dataflow_set_preserve_mem_locs) Likewise.
26836 (dataflow_set_remove_mem_locs) Likewise.
26837 (variable_from_dropped) Likewise.
26838 (variable_was_changed) Likewise.
26839 (set_slot_part) Likewise.
26840 (clobber_slot_part) Likewise.
26841 (delete_slot_part) Likewise.
26842 (loc_exp_insert_dep) Likewise.
26843 (notify_dependents_of_changed_value) Likewise.
26844 (emit_notes_for_differences_1) Likewise.
26845 (vt_emit_notes) Likewise.
26846 (vt_initialize) Likewise.
26847 (vt_finalize) Likewise.
26849 2015-06-01 Martin Liska <mliska@suse.cz>
26851 * ira-color.c (init_update_cost_records):Use new type-based
26853 (get_update_cost_record) Likewise.
26854 (free_update_cost_record_list) Likewise.
26855 (finish_update_cost_records) Likewise.
26856 (initiate_cost_update) Likewise.
26858 2015-06-01 Martin Liska <mliska@suse.cz>
26860 * lra.c (init_insn_regs): Use new type-based pool allocator.
26861 (new_insn_reg) Likewise.
26862 (free_insn_reg) Likewise.
26863 (free_insn_regs) Likewise.
26864 (finish_insn_regs) Likewise.
26865 (init_insn_recog_data) Likewise.
26866 (init_reg_info) Likewise.
26867 (finish_reg_info) Likewise.
26868 (lra_free_copies) Likewise.
26869 (lra_create_copy) Likewise.
26870 (invalidate_insn_data_regno_info) Likewise.
26872 2015-06-01 Martin Liska <mliska@suse.cz>
26874 * lra-lives.c (free_live_range): Use new type-based pool allocator.
26875 (free_live_range_list) Likewise.
26876 (create_live_range) Likewise.
26877 (copy_live_range) Likewise.
26878 (lra_merge_live_ranges) Likewise.
26879 (remove_some_program_points_and_update_live_ranges) Likewise.
26880 (lra_live_ranges_init) Likewise.
26881 (lra_live_ranges_finish) Likewise.
26883 2015-06-01 Martin Liska <mliska@suse.cz>
26885 * et-forest.c (et_new_occ): Use new type-based pool allocator.
26886 (et_new_tree): Likewise.
26887 (et_free_tree): Likewise.
26888 (et_free_tree_force): Likewise.
26889 (et_free_pools): Likewise.
26890 (et_split): Likewise.
26892 2015-06-01 Martin Liska <mliska@suse.cz>
26894 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
26896 * alloc-pool.h (pool_allocator::pool_allocator): New function.
26897 (pool_allocator::release): Likewise.
26898 (inline pool_allocator::release_if_empty): Likewise.
26899 (inline pool_allocator::~pool_allocator): Likewise.
26900 (pool_allocator::allocate): Likewise.
26901 (pool_allocator::remove): Likewise.
26903 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26905 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
26908 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26910 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
26912 * config/arm/arm.c (arm_print_tune_info): Likewise.
26913 (arm_macro_fusion_p): Likewise.
26914 (arm_macro_fusion_pair_p): Likewise.
26916 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26918 * config/aarch64/aarch64-protos.h (tune_params): Rename
26919 fuseable_ops to fusible_ops.
26920 * config/aarch64/aarch64.c (generic_tunings): Rename
26921 fuseable_ops to fusible_ops.
26922 (cortexa53_tunings): Likewise.
26923 (cortexa57_tunings): Likewise.
26924 (thunderx_tunings): Likewise.
26925 (xgene1_tunings): Likewise.
26926 (aarch64_macro_fusion_p): Likewise.
26927 (aarch64_macro_fusion_pair_p): Likewise.
26929 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
26931 * config/s390/driver-native.c: New file.
26932 * config/s390/x-native: New file.
26933 * config.host: Add new files for s390.
26934 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
26936 * config.gcc: Likewise.
26937 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
26938 * config/s390/s390-opts.h (enum processor_type): Ditto.
26939 * config/s390/s390.c (s390_option_override): Catch unhandled
26942 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
26945 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
26946 redirection for instrumented calls.
26947 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
26948 (append_compiler_options): Append -fcheck-pointer-bounds.
26949 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
26950 (chkp_redirect_edge): New.
26951 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
26952 (chkp_redirect_edge): New.
26954 2015-06-01 Richard Biener <rguenther@suse.de>
26956 PR tree-optimization/66280
26957 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
26960 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26962 * config/aarch64/aarch64.md
26963 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
26966 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
26968 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
26969 Remove obsolete kludge.
26971 2015-06-01 Richard Biener <rguenther@suse.de>
26973 * tree-ssa-reassoc.c (get_rank): Simplify.
26975 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
26977 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
26978 * configure: Regenerated.
26980 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
26982 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
26983 issue (add space between string literal and macro).
26984 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
26986 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
26988 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
26989 implict or explicit -fPIE or -fpie.
26991 2015-05-30 Mike Frysinger <vapier@gentoo.org>
26993 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
26995 2015-05-28 DJ Delorie <dj@redhat.com>
26997 * expmed.c (extract_bit_field_1): Avoid clobbering a
26998 yet-to-be-used base/index register.
27000 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
27002 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
27003 (alias_stats): Add num_universal.
27004 (alias_set_subset_of): Special case pointers; be ready for NULL
27006 (alias_sets_conflict_p): Special case pointers; be ready for NULL
27008 (init_alias_set_entry): Break out from ...
27009 (record_alias_subset): ... here; propagate new fields;
27010 allocate children only when really needed.
27011 (get_alias_set): Do less generous pointer globbing.
27012 (dump_alias_stats_in_alias_c): Update statistics.
27014 2015-05-30 Alan Modra <amodra@gmail.com>
27016 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
27017 correct block for use of r12.
27018 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
27020 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
27023 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
27026 2015-05-29 Jakub Jelinek <jakub@redhat.com>
27028 PR tree-optimization/66142
27029 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
27030 virtual phis that feed themselves.
27032 2015-05-29 Richard Biener <rguenther@suse.de>
27034 PR tree-optimization/66314
27035 * tree-ssa-threadupdate.c (create_block_for_threading): Add
27036 parameter that says which loop the new block belongs to.
27037 (ssa_create_duplicates): Blocks duplicated for the threaded
27038 path belong to the loop of the thread destination.
27040 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27042 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
27043 to cleanup-saved-temps.
27044 * doc/sourcebuild.texi (Clean up generated test files): Expand
27046 (dg-keep-saved-temps): Document new proc.
27047 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
27048 cleanup-saved-temps): Remove.
27050 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
27052 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
27053 gcc_AC_CHECK_DECLS.
27054 * configure: Regenerate.
27056 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27058 * config/nios2/linux.h (CPP_SPEC): Define.
27060 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27062 * config/microblaze/linux.h (CPP_SPEC): Define.
27064 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27066 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
27067 -pthread is specified.
27069 2015-05-28 Richard Biener <rguenther@suse.de>
27071 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
27072 (vect_fixup_scalar_cycles_with_patterns): Likewise.
27073 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
27074 after pattern recog.
27075 (vect_create_epilog_for_reduction): Properly handle reductions
27077 (vectorizable_reduction): Likewise.
27078 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
27080 (vect_get_constant_vectors): Create the correct number of
27081 initial values for reductions.
27082 (vect_schedule_slp_instance): Handle reduction chains that are
27083 type changing properly.
27084 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
27086 2015-05-28 Richard Biener <rguenther@suse.de>
27088 PR tree-optimization/66142
27089 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
27090 values better in memcpy destination handling. Handle non-aliasing
27093 2015-05-28 Lawrence Velázquez <vq@larryv.me>
27096 * config/darwin-c.c (version_components): New global enum.
27097 (parse_version, version_as_legacy_macro)
27098 (version_as_modern_macro, macosx_version_as_macro): New functions.
27099 (version_as_macro): Remove.
27100 (darwin_cpp_builtins): Use new function.
27102 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
27104 * builtins.c (expand_builtin_acc_on_device): Mark parameters
27105 with ATTRIBUTE_UNUSED.
27107 2015-05-28 Julian Brown <julian@codesourcery.com>
27111 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
27112 sequence for !ACCEL_COMPILER.
27114 2015-05-28 Nick Clifton <nickc@redhat.com>
27116 * config/rx/rx.c (push_regs): New function. Extracts code from...
27117 (rx_expand_prologue): ... here. Use push_regs to push even small
27118 spans of registers.
27119 (pop_regs): New function.
27120 (rx_expand_epilogue): Use pop_regs to pop even small spans of
27123 2015-05-28 Richard Biener <rguenther@suse.de>
27125 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
27127 (SLP_INSTANCE_BODY_COST_VEC): Remove.
27128 (vect_update_slp_costs_according_to_vf): Likewise.
27129 (vect_slp_analyze_operations): Update prototype.
27130 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
27131 vect_update_slp_costs_according_to_vf, adjust.
27132 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
27133 (vect_analyze_slp_cost_1): Likewise.
27134 (vect_analyze_slp_cost): Likewise. Properly deal with
27135 widening reduction ops. Commit body costs.
27136 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
27137 cost for loops from here.
27138 (vect_slp_analyze_operations): But do it from here when
27139 the vectorization factor is known and stmts are analyzed.
27140 (vect_bb_vectorization_profitable_p): Simplify.
27141 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
27142 (vect_update_slp_costs_according_to_vf): Remove.
27144 2015-05-27 Magnus Granberg <zorry@gentoo.org>
27145 H.J. Lu <hongjiu.lu@intel.com>
27147 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
27148 (BUILD_CFLAGS): Likewise.
27149 (BUILD_CXXFLAGS): Likewise.
27150 (LINKER): Add @NO_PIE_FLAG@.
27151 (BUILD_LDFLAGS): Likewise.
27152 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
27153 --enable-default-pie.
27154 * common.opt (fPIE): Initialize to -1.
27156 (no-pie): New option.
27157 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
27158 * configure.ac: Add --enable-default-pie.
27159 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
27160 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
27161 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
27162 * gcc.c (NO_PIE_SPEC): New.
27163 (PIE_SPEC): Likewise.
27164 (NO_FPIE1_SPEC): Likewise.
27165 (FPIE1_SPEC): Likewise.
27166 (NO_FPIE2_SPEC): Likewise.
27167 (FPIE2_SPEC): Likewise.
27168 (NO_FPIE2_SPEC): Likewise.
27169 (FPIE_SPEC): Likewise.
27170 (NO_FPIE_SPEC): Likewise.
27171 (NO_FPIC1_SPEC): Likewise.
27172 (FPIC1_SPEC): Likewise.
27173 (NO_FPIC2_SPEC): Likewise.
27174 (FPIC2_SPEC): Likewise.
27175 (NO_FPIC2_SPEC): Likewise.
27176 (FPIC_SPEC): Likewise.
27177 (NO_FPIC_SPEC): Likewise.
27178 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
27179 (FPIE1_OR_FPIC1_SPEC): Likewise.
27180 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
27181 (FPIE2_OR_FPIC2_SPEC): Likewise.
27182 (NO_FPIE_AND_FPIC_SPEC): Likewise.
27183 (FPIE_OR_FPIC_SPEC): Likewise.
27184 (LD_PIE_SPEC): Likewise.
27185 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
27186 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
27187 * config/darwin.h (PIE_SPEC): Renamed to ...
27188 (DARWIN_PIE_SPEC): This.
27189 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
27190 * config/darwin9.h (PIE_SPEC): Renamed to ...
27191 (DARWIN_PIE_SPEC): This.
27192 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
27193 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
27194 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
27195 FPIE2_OR_FPIC2_SPEC.
27196 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
27197 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
27198 * config/sol2.h (ASM_PIC_SPEC): Likewise.
27199 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27200 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27201 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27202 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
27203 * config/m32r/m32r.h (ASM_SPEC): Likewise.
27204 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
27205 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27206 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
27207 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
27208 * config/sparc/linux.h (ASM_SPEC): Likewise.
27209 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27210 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
27211 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
27212 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27213 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27214 * config/sparc/sparc.h (ASM_SPEC): Likewise.
27215 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
27216 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
27217 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
27218 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
27219 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
27220 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
27221 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
27222 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
27223 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
27224 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
27225 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
27226 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
27227 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27228 * config/vax/linux.h (ASM_SPEC): Likewise.
27229 * doc/install.texi: Document --enable-default-pie.
27230 * doc/invoke.texi: Document -no-pie.
27231 * config.in: Regenerated.
27232 * configure: Likewise.
27234 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
27236 PR rtl-optimization/66168
27237 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
27238 can_move_invariant_reg.
27240 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
27243 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
27244 REG_EQUAL note when doing insert.
27246 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
27247 instead of "%d" for 'o' operand.
27249 2015-05-27 Nathan Sidwell <nathan@acm.org>
27252 * tree.c (build_pointer_type_for_mode): Canonical type does not
27253 inherit can_alias_all.
27254 (build_reference_type_for_mode): Likewise.
27256 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
27258 * expr.h (array_at_struct_end_p): Move to...
27259 (array_ref_element_size): Likewise.
27260 (component_ref_field_offset): Likewise.
27261 * tree.h (array_ref_element_size): ...here.
27262 (array_at_struct_end_p): Likewise.
27263 (component_ref_field_offset): Likewise.
27264 * expr.c (array_ref_element_size): Move to...
27265 (array_ref_low_bound): Likewise.
27266 (array_at_struct_end_p): Likewise.
27267 (array_ref_up_bound): Likewise.
27268 (component_ref_field_offset): Likewise.
27269 * tree.c (array_ref_element_size): ...here.
27270 (array_ref_low_bound): Likewise.
27271 (array_ref_up_bound): Likewise.
27272 (array_at_struct_end_p): Likewise.
27273 (component_ref_field_offset): Likewise.
27275 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
27276 Szabolcs Nagy <szabolcs.nagy@arm.com>
27278 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
27280 2015-05-27 Jason Merrill <jason@redhat.com>
27283 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
27284 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
27285 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
27287 2015-05-22 Aditya Kumar <hiraditya@msn.com>
27289 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
27292 * statistics.c (statistics_fini_pass): Print pass name.
27294 2015-05-27 Richard Biener <rguenther@suse.de>
27296 PR tree-optimization/66272
27298 2014-08-15 Richard Biener <rguenther@suse.de>
27300 PR tree-optimization/62031
27301 * tree-data-ref.c (dr_analyze_indices): Do not set
27302 DR_UNCONSTRAINED_BASE.
27303 (dr_may_alias_p): All indirect accesses have to go the
27304 formerly DR_UNCONSTRAINED_BASE path.
27305 * tree-data-ref.h (struct indices): Remove
27306 unconstrained_base member.
27307 (DR_UNCONSTRAINED_BASE): Remove.
27309 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
27311 * dwarf2out.c: Remove block_map.
27312 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
27313 (gen_lexical_block_die): Same.
27314 (dwarf2out_function_decl): Remove block_map use.
27315 (dwarf2out_c_finalize): Same.
27316 * tree-core.h (struct tree_block): Add die field.
27317 * tree.h (BLOCK_DIE): New.
27319 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27322 * expr.c (memory_load_overlap): New function.
27323 (emit_push_insn): When pushing partial args to the stack would
27324 clobber the register part load the overlapping part into a pseudo
27325 and put it into the hard reg after pushing. Change return type
27326 to bool. Add bool argument.
27327 * expr.h (emit_push_insn): Change return type to bool.
27329 * calls.c (expand_call): Cancel sibcall optimization when encountering
27330 partial argument on targets with ARGS_GROW_DOWNWARD and
27331 !STACK_GROWS_DOWNWARD.
27332 (emit_library_call_value_1): Update callsite of emit_push_insn.
27333 (store_one_arg): Likewise.
27335 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
27337 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
27339 2015-05-27 Martin Liska <mliska@suse.cz>
27341 * Makefile.in: Add additional dependencies related to memory report
27343 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
27344 * bitmap.c (struct bitmap_descriptor_d): Remove.
27345 (struct loc): Likewise.
27346 (struct bitmap_desc_hasher): Likewise.
27347 (bitmap_desc_hasher::hash): Likewise.
27348 (bitmap_desc_hasher::equal): Likewise.
27349 (get_bitmap_descriptor): Likewise.
27350 (bitmap_register): User new memory descriptor API.
27351 (register_overhead): Likewise.
27352 (bitmap_find_bit): Register nsearches and search_iter statistics.
27353 (struct bitmap_output_info): Remove.
27354 (print_statistics): Likewise.
27355 (dump_bitmap_statistics): Use new memory descriptor.
27356 * bitmap.h (struct bitmap_usage): New class.
27357 * genmatch.c: Extend header file inclusion.
27358 * genpreds.c: Likewise.
27359 * ggc-common.c (struct ggc_usage): New class.
27360 (struct ggc_loc_desc_hasher): Remove.
27361 (ggc_loc_desc_hasher::hash): Likewise.
27362 (ggc_loc_desc_hasher::equal): Likewise.
27363 (struct ggc_ptr_hash_entry): Likewise.
27364 (struct ptr_hash_hasher): Likewise.
27365 (ptr_hash_hasher::hash): Likewise.
27366 (ptr_hash_hasher::equal): Likewise.
27367 (make_loc_descriptor): Likewise.
27368 (ggc_prune_ptr): Likewise.
27369 (dump_ggc_loc_statistics): Use new memory descriptor.
27370 (ggc_record_overhead): Likewise.
27371 (ggc_free_overhead): Likewise.
27372 (final_cmp_statistic): Remove.
27373 (cmp_statistic): Likewise.
27374 (ggc_add_statistics): Liekwise.
27375 (ggc_prune_overhead_list): Likewise.
27376 * hash-map-traits.h: New file.
27377 * hash-map.h (struct default_hashmap_traits): Move the traits to a
27378 separate header file.
27379 * hash-set.h: Pass memory statistics info to ctor.
27380 * hash-table.c (void dump_hash_table_loc_statistics): New function.
27381 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
27382 (hash_table::~hash_table): Register memory release operation.
27383 (hash_table::alloc_entries): Handle memory allocation operation.
27384 (hash_table::expand): Likewise.
27385 * inchash.c (iterative_hash_hashval_t): Move implementation to header
27387 (iterative_hash_host_wide_int): Likewise.
27388 * inchash.h (class hash): Likewise.
27389 * mem-stats-traits.h: New file.
27390 * mem-stats.h: New file.
27391 (mem_location): Add new class.
27392 (mem_usage): Likewise.
27393 (mem_alloc_description): Likewise.
27394 * sese.c: Add new header file inclusision.
27395 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
27397 * tree-sra.c: Add new header file inclusision.
27398 * vec.c (struct vec_descriptor): Remove.
27399 (hash_descriptor): Likewise.
27400 (struct vec_usage): Likewise.
27401 (struct ptr_hash_entry): Likewise.
27402 (hash_ptr): Likewise.
27403 (eq_ptr): Likewise.
27404 (vec_prefix::register_overhead): Use new memory descriptor API.
27405 (vec_prefix::release_overhead): Likewise.
27406 (add_statistics): Remove.
27407 (dump_vec_loc_statistics): Use new memory descriptor API.
27408 * vec.h (struct vec_prefix): Likewise.
27409 (va_heap::reserve): Likewise.
27410 (va_heap::release): Likewise.
27411 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
27413 2015-05-27 Richard Biener <rguenther@suse.de>
27415 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
27416 earlier and remove ??? comment.
27417 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
27418 and got called from loop analysis bail out. Always pass the SLP
27419 node to the vectorizable_* functions.
27420 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
27421 the premature SLP check here.
27422 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
27423 detected SLP stmts.
27424 (vect_detect_hybrid_slp_1): Likewise.
27426 2015-05-26 Jeff Law <law@redhat.com>
27428 * combine.c (find_split_point): Verify that the shift count is a
27429 constant when choosing (plus (ashift ...)) as a split point.
27431 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
27432 No functional changes.
27434 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
27436 * ipa-polymorphic-call.c
27437 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
27438 case when call target is already known.
27440 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
27443 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
27444 take into account the case that operands[1] and operands[2]
27445 are the same register.
27447 2015-05-26 Michael Matz <matz@suse.de>
27449 PR middle-end/66251
27451 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
27453 (vect_create_vectorized_demotion_stmts): Always set
27454 STMT_VINFO_VEC_STMT, also with SLP.
27455 (vectorizable_store): Handle strided group stores.
27457 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27460 * config/aarch64/aarch64.md
27461 (*adds_shift_imm_<mode>): New pattern.
27462 (*subs_shift_imm_<mode>): Likewise.
27463 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27464 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27465 (*add_uxt<mode>_shift2): Likewise.
27466 (*add_uxtsi_shift2_uxtw): Likewise.
27467 (*sub_uxt<mode>_shift2): Likewise.
27468 (*sub_uxtsi_shift2_uxtw): Likewise.
27470 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
27472 * config/rs6000/constraints.md (Y, U): Use match_test.
27474 2015-05-26 Christian Bruel <christian.bruel@st.com>
27477 * config/arm/arm.c (arm_option_check_internal)
27478 (arm_option_params_internal): Check opts->target_flags to set macros.
27479 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27480 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
27481 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27482 (builtin_define): Replaced with def_or_undef_macro.
27483 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27484 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
27485 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27486 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
27487 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
27488 (TARGET_ARM_FEATURE_LDREX_P)
27489 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
27490 * config/arm/arm-c.c (def_or_undef_macro): New function.
27491 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
27493 2015-05-26 Christian Bruel <christian.bruel@st.com>
27495 * c-common.h (builtin_define_with_int_value)
27496 (builtin_define_type_sizeof): Declare.
27497 * c-cppbuiltin.c (builtin_define_with_int_value)
27498 (builtin_define_type_sizeof): Externalize.
27499 (builtin_define_std): Cleanup declaration.
27500 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
27501 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
27502 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
27503 (builtin_define, builtin_assert): New macros.
27505 2015-05-26 Richard Biener <rguenther@suse.de>
27507 PR tree-optimization/66142
27508 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
27509 MEM_REFs for the same base address.
27511 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27514 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
27516 2015-05-26 Jason Merrill <jason@redhat.com>
27518 * configure.ac: Set CXXFLAGS for ISL test.
27519 * configure: Regenerate.
27521 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
27522 strstr and basename.
27523 * configure: Regenerate.
27525 2015-05-26 Richard Biener <rguenther@suse.de>
27527 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
27528 X % C -> X & (C - 1) for C being a power-of two to ...
27529 * match.pd: ... patterns.
27531 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
27533 * match.pd (swapped_tcc_comparison): New operator list.
27534 (-A CMP -B): New simplification.
27535 * fold-const.c (fold_comparison): Remove corresponding code.
27537 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
27539 * caller-save.c (init_caller_save): Base temporary register numbers
27540 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
27541 * cfgloopanal.c (init_set_costs): Likewise.
27542 * dojump.c (prefer_and_bit_test): Likewise.
27543 * expr.c (init_expr_target): Likewise.
27544 * ira.c (setup_prohibited_mode_move_regs): Likewise.
27545 * lower-subreg.c (init_lower_subreg): Likewise.
27546 * postreload.c (reload_cse_regs_1): Likewise.
27548 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
27550 * gensupport.h (compute_test_codes): Declare.
27551 * gensupport.c (compute_predicate_codes): Rename to...
27552 (compute_test_codes): ...this. Generalize error message.
27553 (process_define_predicate): Update accordingly.
27554 * genpreds.c (compute_maybe_allows): Delete.
27555 (add_constraint): Use compute_test_codes to determine whether
27556 something can accept a SUBREG, REG or MEM.
27558 2015-05-26 Torvald Riegel <triegel@redhat.com>
27560 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
27561 'memory model' to align with C++11; fix description of memory orders;
27564 2015-05-26 Richard Biener <rguenther@suse.de>
27566 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
27567 (vect_analyze_loop_operations): ... here. Remove slp parameter,
27568 detect whether we apply SLP. Remove call to
27569 vect_update_slp_costs_according_to_vf.
27570 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
27571 vect_update_slp_costs_according_to_vf from here. Dispatch
27572 to vect_slp_analyze_operations to analyze SLP stmts.
27573 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
27574 unused bb_vec_info parameter, adjust assert.
27575 (vect_slp_analyze_operations): Pass in the slp instance tree
27576 instead of bb_vec_info.
27577 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
27578 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
27580 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
27582 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
27583 Q_REGS. Expand comment.
27584 (REG_CLASS_NAMES): Ditto.
27585 (REG_CLASS_CONTENTS): Ditto.
27587 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
27590 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
27591 when LEGACY_INT_REGNO_P is processed.
27593 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
27595 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
27597 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
27599 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
27600 register if not marked dead/unused, before return.
27602 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27605 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
27606 is set; check for assembler name at LTO time.
27607 (type_in_anonymous_namespace): Remove hacks, check that all
27608 anonymous types are called "<anon>"
27609 (odr_type_p): Simplify; add check for "<anon>"
27610 (odr_subtypes_equivalent): Add odr_type_p check.
27611 * tree.c (need_assembler_name_p): Even anonymous namespace needs
27614 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27616 * ipa-utils.h (method_class_type): Remove.
27617 * cgraphunit.c (walk_polymorphic_call_targets): Use
27618 TYPE_METHOD_BASETYPE.
27619 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
27620 on main variants only.
27621 (method_class_type): Remove.
27622 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
27623 (build_type_inheritance_graph): Likewise.
27624 * ipa-icf.c (sem_function::equals_wpa): Likewise.
27625 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
27626 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
27628 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27630 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
27631 is_typedef_decl, typedef_variant_p): Constify.
27632 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
27633 is_typedef_decl, typedef_variant_p): Constify.
27635 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27637 * defaults.h (gen_tablejump): New function.
27638 (HAVE_tablejump): Add default value.
27640 * stmt.c: Likewise.
27642 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27644 * defaults.h (gen_store_multiple): New function.
27645 (HAVE_store_multiple): Add default value.
27646 * expr.c (move_block_from_reg): Adjust.
27648 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27650 * defaults.h (gen_load_multiple): New function.
27651 (HAVE_load_multiple): Add default value.
27652 * expr.c (move_block_to_reg): Adjust.
27654 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27656 * defaults.h (gen_mem_signal_fence): New function.
27657 (HAVE_mem_signal_fence): Add default value.
27658 * optabs.c: Adjust.
27660 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27662 * defaults.h (gen_memory_barrier): New function.
27663 (HAVE_memory_barrier): Add default value.
27664 * optabs.c: Adjust.
27666 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27668 * defaults.h (gen_mem_thread_fence): New function.
27669 (HAVE_mem_thread_fence): Add default definition.
27670 * optabs.c: Adjust.
27672 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27674 * combine.c (find_split_point): Check the value of HAVE_lo_sum
27675 instead of if it is defined.
27676 (combine_simplify_rtx): Likewise.
27677 * lra-constraints.c (process_address_1): Likewise.
27678 * config/darwin.c: Adjust.
27679 * genconfig.c (main): Always define HAVE_lo_sum.
27681 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27683 * genmatch.c (parser::parse_operation): Reject expanding
27684 operator-list inside 'for'.
27686 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27688 * genmatch.c (parser::parse_for): Reject iterator if used as
27691 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27693 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
27694 after end of id-list.
27696 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
27698 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
27699 we do not try to compute canonical type for type that does not need
27701 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
27703 * tree.h (type_with_alias_set_p): New.
27705 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
27707 * tree.c (gimple_canonical_types_compatible_p): Do not compare
27708 function attributes.
27709 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
27711 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
27713 * Makefile.in (check_gcc_parallelize): Delete.
27714 (lang_checks_parallelized): Update comment.
27716 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
27718 PR rtl-optimization/66237
27719 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
27720 location of an "as_a" cast.
27722 2015-05-22 Jeff Law <law@redhat.com>
27724 * config/pa/pa.md (non-canonical shift-add insns): Remove.
27725 (peepholes with non-canonical RTL sources): Remove.
27726 (peepholes for indexed stores of FP regs in integer modes): Match and
27727 generate canonical RTL.
27729 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27731 PR tree-optimization/63387
27732 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
27733 ((x ord x) & (y ord y) -> (x ord y),
27734 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
27735 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
27736 vectors like scalars.
27738 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27740 * convert.c (convert_to_integer, convert_to_vector): Include the
27741 types in the error message.
27743 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27745 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
27748 2015-05-22 Jeff Law <law@redhat.com>
27750 * config/pa/pa.md (integer_indexed_store splitters): Use
27751 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
27752 insns -- adjusting the constant 2nd operand accordingly.
27754 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
27755 (plus (ashift X log2) Y) if it is a split point.
27757 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
27758 out of hppa_legitimize_address to handle both forms of a multiply
27760 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
27761 Always generate the ASHIFT variant as the result is not directly
27762 used in a MEM. Update comments and refactor slightly to improve
27765 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27768 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
27769 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
27770 (aarch64_composite_type_p): Return false if given type and mode are
27771 for a short vector.
27773 2015-05-22 Richard Biener <rguenther@suse.de>
27775 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
27777 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
27778 patterns when determining whether SLP is pure.
27779 (vect_is_slp_reduction): Remove check for pattern stmts.
27780 (vect_is_simple_reduction_1): Remove dead code.
27781 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
27782 (vect_get_and_check_slp_defs): Pass in the stmt number.
27783 Allow the first def in a reduction to be not a pattern stmt when
27784 the rest of the stmts def are patterns.
27785 (vect_build_slp_tree_1): Allow tcc_expression codes like
27786 SAD_EXPR and DOT_PROD_EXPR.
27787 (vect_build_slp_tree): Adjust.
27788 (vect_analyze_slp): Refactor and move BB vect error message ...
27789 (vect_slp_analyze_bb_1): ... here.
27791 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
27793 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
27794 for CSWTCH temporary.
27796 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27798 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
27799 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
27802 2015-05-22 Richard Biener <rguenther@suse.de>
27804 PR tree-optimization/66251
27805 * tree-vect-stmts.c (vectorizable_conversion): Properly
27806 set STMT_VINFO_VEC_STMT even for the SLP case.
27808 2015-05-22 Marek Polacek <polacek@redhat.com>
27810 * doc/extend.texi: Use @pxref instead of @xref.
27812 2015-05-22 hiraditya <hiraditya@msn.com>
27814 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
27817 2015-05-22 Richard Biener <rguenther@suse.de>
27819 PR tree-optimization/65701
27820 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27821 Move peeling cost models into one place. Peel for alignment
27822 for single loads only if an aligned load is cheaper than
27825 2015-05-22 Marek Polacek <polacek@redhat.com>
27828 * doc/extend.texi (Enumerator Attributes): New section.
27829 Document syntax of enumerator attributes.
27831 2015-05-22 Richard Biener <rguenther@suse.de>
27833 * tree-vect-loop.c (get_reduction_op): New function.
27834 (vect_model_reduction_cost): Use it, add reduc_index parameter.
27835 Make ready for BB reductions.
27836 (vect_create_epilog_for_reduction): Use get_reduction_op.
27837 (vectorizable_reduction): Init reduc_index to a valid value.
27838 Adjust vect_model_reduction_cost call.
27839 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
27840 operand for reduction defaults. Add SAD_EXPR support.
27841 Assert we have a neutral op for SLP reductions.
27842 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
27843 walking pattern stmt ops only recurse to SSA names.
27845 2015-05-22 Richard Biener <rguenther@suse.de>
27847 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
27848 assert with guard, remove check on detected reduction.
27849 (vect_recog_sad_pattern): Likewise.
27850 (vect_recog_widen_sum_pattern): Likewise.
27852 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27854 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
27855 __always_inline__ attribute.
27856 (vaesdq_u8): Likewise.
27857 (vaesmcq_u8): Likewise.
27858 (vaesimcq_u8): Likewise.
27859 (vsha1cq_u32): Likewise.
27860 (vsha1mq_u32): Likewise.
27861 (vsha1pq_u32): Likewise.
27862 (vsha1h_u32): Likewise.
27863 (vsha1su0q_u32): Likewise.
27864 (vsha1su1q_u32): Likewise.
27865 (vsha256hq_u32): Likewise.
27866 (vsha256h2q_u32): Likewise.
27867 (vsha256su0q_u32): Likewise.
27868 (vsha256su1q_u32): Likewise.
27869 (vmull_p64): Likewise.
27870 (vmull_high_p64): Likewise.
27872 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27874 * final.c (final_scan_insn): Don't check HAVE_peephole with the
27876 * output.h: Likewise.
27877 * genconfig.c (main): Alwways define HAVE_peephole.
27878 * genpeep.c: Don't emit checks of HAVE_peephole.
27880 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27882 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
27883 check HAVE_conditional_move with the preprocessor.
27885 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27887 * genconfig.c (main): Always define HAVE_conditional_move.
27888 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
27889 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
27892 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27894 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
27895 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
27896 and FRAME_POINTER_REGNUM with the preprocessor.
27898 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27900 * defaults.h: Add default for STACK_PUSH_CODE.
27901 * expr.c: Don't redefine STACK_PUSH_CODE.
27902 * recog.c: Likewise.
27904 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27906 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
27907 sched-deps.c: Use if instead of preprocessor checks with
27908 STACK_GROWS_DOWNWARD.
27910 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27912 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
27914 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
27915 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
27916 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
27917 * doc/tm.texi: Regenerate.
27919 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
27922 * config/i386/constraints.md (Bg): New constraint for GOT memory
27924 * config/i386/i386.md (*call_got_x32): New pattern.
27925 (*call_value_got_x32): Likewise.
27926 * config/i386/predicates.md (GOT_memory_operand): New predicate.
27928 2015-05-21 Jakub Jelinek <jakub@redhat.com>
27930 PR tree-optimization/66233
27931 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
27934 2015-05-21 Jeff Law <law@redhat.com>
27936 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
27937 than MULT for shadd sequences.
27939 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
27941 * alias.c (alias_stats): New static var.
27942 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
27943 (dump_alias_stats_in_alias_c): New function.
27944 * alias.h (dump_alias_stats_in_alias_c): Declare.
27945 * tree-ssa-alias.c (dump_alias_stats): Call it.
27947 2015-05-08 Michael Matz <matz@suse.de>
27949 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
27951 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
27952 (STMT_VINFO_STRIDED_P): ... this.
27953 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
27954 (vect_verify_datarefs_alignment): Likewise.
27955 (vect_enhance_data_refs_alignment): Likewise.
27956 (vect_analyze_data_ref_access): Likewise.
27957 (vect_analyze_data_refs): Accept strided stores.
27958 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
27959 (vect_model_load_cost): Adjust for macro rename.
27960 (vectorizable_mask_load_store): Likewise.
27961 (vectorizable_load): Likewise.
27962 (vectorizable_store): Open code strided stores.
27964 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27966 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
27967 Document sqrt_insn.
27969 2015-05-21 Richard Biener <rguenther@suse.de>
27972 * match.pd: Guard pattern optimzing (int)(float)int
27973 conversions to apply only on GIMPLE.
27975 2015-05-21 Jeff Law <law@redhat.com>
27977 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
27978 multiply-accumulate/shift-add insn generation.
27980 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
27983 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
27984 operands[1] are the same.
27986 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
27988 PR middle-end/66221
27989 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
27990 build_distinct_type_copy to copy bounds.
27992 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
27994 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
27995 Change to unsigned int.
27997 2015-05-20 Jeff Law <law@redhat.com>
27999 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
28000 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
28001 (pa_shadd_constant_p): Allow constants for shadd insns rather
28002 than valid scaling constants for memory addresses.
28003 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
28004 * config/pa/predicates.md (mem_shadd_operand): New predicate.
28005 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
28006 (shift-add insns using ASHIFT): New patterns.
28008 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
28010 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
28012 (fix_up_fall_thru_edges): Likewise.
28013 (fix_crossing_conditional_branches): Likewise. Promote jump targets
28014 from to rtx_insn to rtx_code_label where feasible.
28015 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
28016 gen_move_insn (returned type changed to rtx_insn).
28017 * builtins.c (expand_errno_check): Fix arguments of
28018 do_compare_rtx_and_jump (now expects rtx_code_label).
28019 (expand_builtin_acc_on_device): Likewise.
28020 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
28021 invert_jump (now exprects rtx_jump_insn).
28022 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
28023 (construct_init_block): Use rtx_code_label.
28024 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
28025 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
28026 calling redirect_jump.
28027 (patch_jump_insn): Likewise.
28028 (redirect_branch_edge): Likewise.
28029 (force_nonfallthru_and_redirect): Likewise.
28030 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
28032 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
28033 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
28034 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
28035 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
28036 to store the value retured by gen_label_rtx.
28037 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
28039 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
28040 (split_branches): Fix calls of redirect_jump.
28041 * dojump.c (jumpifnot): Promote argument type from rtx to
28043 (jumpifnot_1): Likewise.
28044 (jumpif): Likewise.
28045 (jumpif_1): Likewise.
28046 (do_jump_1): Likewise.
28047 (do_jump): Likewise. Use rtx_code_label when feasible.
28048 (do_jump_by_parts_greater_rtx): Likewise.
28049 (do_jump_by_parts_zero_rtx): Likewise.
28050 (do_jump_by_parts_equality_rtx): Likewise.
28051 (do_compare_rtx_and_jump): Likewise.
28052 * dojump.h: Update function prototypes.
28053 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
28055 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
28057 (emit_label_before): Likewise.
28058 (emit_jump_insn_after_noloc): Likewise.
28059 (emit_jump_insn_after_setloc): Likewise.
28060 (emit_jump_insn_after): Likewise
28061 (emit_jump_insn_before_setloc): Likewise.
28062 (emit_jump_insn_before): Likewise.
28063 (emit_label_before): Promote return type to rtx_code_label.
28064 (emit_label): Likewise.
28065 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
28066 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
28068 (emit_stack_restore): Likewise.
28069 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
28070 (do_cmp_and_jump): Likewise.
28071 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
28072 from rtx to rtx_code_label.
28073 (gen_move_insn_uncast): New function.
28074 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
28075 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
28076 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
28077 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
28078 invert_jump_1 and redirect_jump_1.
28079 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
28080 do_compare_rtx_and_jump.
28081 (expand_addsub_overflow): Likewise.
28082 (expand_neg_overflow): Likewise.
28083 (expand_mul_overflow): Likewise.
28084 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
28085 return value of gen_move_insn.
28086 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
28087 * loop-doloop.c (add_test): Use rtx_code_label.
28088 (doloop_modify): Likewise.
28089 (doloop_optimize): Likewise.
28090 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
28091 * lra-constraints.c (emit_spill_move): Remove cast of value returned
28093 (inherit_reload_reg): Add cast when calling dump_insn_slim.
28094 (split_reg): Likewise.
28095 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
28097 * optabs.c (expand_binop_directly): Remove casts of values returned by
28099 (expand_unop_direct): Likewise.
28100 (expand_abs): Likewise.
28101 (maybe_emit_unop_insn): Likewise.
28102 (maybe_gen_insn): Promote return type to rtx_insn.
28103 * optabs.h: Update prototype of maybe_gen_insn.
28104 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
28106 * recog.c (struct peep2_insn_data): Promote type of insn field to
28108 (peep2_reinit_state): Use NULL instead of NULL_RTX.
28109 (peep2_attempt): Remove casts of insn in peep2_insn_data.
28110 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
28111 * recog.h (struct insn_gen_fn): Promote return types of function
28112 pointers and operator ().from rtx to rtx_insn.
28113 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
28114 (fill_eager_delay_slots): Likewise.
28115 (relax_delay_slots): Likewise.
28116 (make_return_insns): Likewise.
28117 (dbr_schedule): Likewise.
28118 (optimize_skips): Likewise.
28119 (reorg_redirect_jump): Likewise.
28120 (fill_slots_from_thread): Likewise.
28121 * reorg.h: Update prototypes.
28122 * resource.c (find_dead_or_set_registers): Use dyn_cast to
28123 rtx_jump_insn instead of check. Use it's jump_target method.
28124 * rtl.h (rtx_jump_insn::jump_label): Define new method.
28125 (rtx_jump_insn::jump_target): Define new method.
28126 (rtx_jump_insn::set_jump_target): Define new method.
28127 * rtlanal.c (tablejump_p): Promote type of one local variable.
28128 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
28129 (sched_analyze_insn): Likewise.
28130 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
28131 (print_insn): Likewise.
28132 * stmt.c (label_rtx): Promote return type to rtx_insn.
28133 (force_label_rtx): Likewise.
28134 (jump_target_rtx): Define new function.
28135 (expand_label): Use it, get rid of one cast.
28136 (expand_naked_return): Promote rtx to rtx_code_label.
28137 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
28138 (expand_case): Use rtx_code_label instread of rtx where feasible.
28139 (expand_sjlj_dispatch_table): Likewise.
28140 (emit_case_nodes): Likewise.
28141 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
28142 * store-motion.c (insert_store): Make use of new return type of
28143 gen_move_insn and remove a cast.
28144 (replace_store_insn): Likewise.
28146 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
28148 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
28149 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
28151 2015-05-20 Jeff Law <law@redhat.com>
28153 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
28154 dispose of the jump thread path when the jump threading
28155 opportunity is cancelled.
28157 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
28159 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
28160 when printing the caret character.
28162 2015-05-20 Marek Polacek <polacek@redhat.com>
28164 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
28166 2015-05-20 Marek Polacek <polacek@redhat.com>
28168 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
28169 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
28170 * gimple-fold.c (canonicalize_bool): Likewise.
28171 (same_bool_result_p): Likewise.
28172 * tree-if-conv.c (parse_predicate): Likewise.
28174 2015-05-20 Marek Polacek <polacek@redhat.com>
28176 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
28177 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
28179 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28181 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
28182 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
28185 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
28187 * config/mips/mips.h (micromips_globals): Declare.
28189 2015-05-20 David Malcolm <dmalcolm@redhat.com>
28191 * timevar.def (TV_INITIALIZE_RTL): New.
28192 * toplev.c (initialize_rtl): Use an auto_timevar to account this
28193 function's time to TV_INITIALIZE_RTL.
28195 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
28197 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
28198 gimple_build_nop calls.
28199 (chkp_find_bounds_for_elem): Likewise.
28200 (chkp_get_zero_bounds): Likewise.
28201 (chkp_get_none_bounds): Likewise.
28202 (chkp_get_bounds_by_definition): Likewise.
28203 (chkp_generate_extern_var_bounds): Likewise.
28204 (chkp_get_bounds_for_decl_addr): Likewise.
28205 (chkp_get_bounds_for_string_cst): Likewise.
28207 2015-05-20 Bin Cheng <bin.cheng@arm.com>
28209 PR tree-optimization/65447
28210 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
28211 (dump_use, dump_uses): Support to dump sub use.
28212 (record_use): New parameters to support sub use. Remove call to
28214 (record_sub_use, record_group_use): New functions.
28215 (compute_max_addr_offset, split_all_small_groups): New functions.
28216 (group_address_uses, rewrite_use_address): New functions.
28217 (strip_offset): New declaration.
28218 (find_interesting_uses_address): Call record_group_use.
28219 (add_candidate): New assertion.
28220 (infinite_cost_p): Move definition forward.
28221 (add_costs): Check INFTY cost and return immediately.
28222 (get_computation_cost_at): Clear setup cost and dependent bitmap
28224 (determine_use_iv_cost_address): Compute cost for sub uses.
28225 (rewrite_use_address_1): Rename from old rewrite_use_address.
28226 (free_loop_data): Free sub uses.
28227 (tree_ssa_iv_optimize_loop): Call group_address_uses.
28229 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28230 Jim Wilson <jim.wilson@linaro.org>
28232 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
28233 new fields loadv and storev.
28234 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
28235 Initialize loadv and storev.
28236 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
28237 (cortexa53_extra_costs): Likewise.
28238 (cortexa57_extra_costs): Likewise.
28239 (xgene1_extra_costs): Likewise.
28240 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
28243 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28245 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
28247 (cortexa8_extra_costs): Likewise.
28248 (cortexa5_extra_costs): Likewise.
28249 (cortexa7_extra_costs): Likewise.
28250 (cortexa12_extra_costs): Likewise.
28251 (cortexa15_extra_costs): Likewise.
28252 (v7m_extra_costs): Likewise.
28254 2015-05-20 Jeff Law <law@redhat.com>
28256 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
28257 instead of open-coded version. Also delete the jump thread created
28258 within this function.
28260 2015-05-20 Alan Modra <amodra@gmail.com>
28262 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
28263 stack adjusting insn. Formatting.
28264 (rs6000_emit_prologue): Track stack adjusting insn, and use of
28265 r12. If possible, emit first -fsplit-stack arg pointer insn
28266 before stack adjust. Don't use r12 to save cr if split-stack.
28268 2015-05-20 Alan Modra <amodra@gmail.com>
28270 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
28272 (rs6000_supports_split_stack): New function.
28273 * config/rs6000/rs6000.c (machine_function): Add
28274 split_stack_arg_pointer.
28275 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
28276 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
28277 rather than virtual_incoming_args_rtx.
28278 (rs6000_va_start): Likewise.
28279 (split_stack_arg_pointer_used_p): New function.
28280 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
28281 (morestack_ref): New var.
28282 (gen_add3_const, rs6000_expand_split_stack_prologue,
28283 rs6000_internal_arg_pointer, rs6000_live_on_entry,
28284 rs6000_split_stack_space_check): New functions.
28285 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
28286 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
28287 (UNSPECV_SPLIT_STACK_RETURN): Define.
28288 (split_stack_prologue, load_split_stack_limit,
28289 load_split_stack_limit_di, load_split_stack_limit_si,
28290 split_stack_return, split_stack_space_check): New expands and insns.
28291 * config/rs6000/rs6000-protos.h
28292 (rs6000_expand_split_stack_prologue): Declare.
28293 (rs6000_split_stack_space_check): Declare.
28295 2015-05-20 Alan Modra <amodra@gmail.com>
28297 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
28298 (direct_return): Test vrsave_size rather than vrsave_mask.
28299 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
28300 (rs6000_emit_epilogue): Likewise.
28302 2015-05-20 Alan Modra <amodra@gmail.com>
28304 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
28305 when not saving registers.
28306 (debug_stack_info): Adjust to omit printing unused offsets,
28308 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
28311 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28314 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
28315 value_type to const char *.
28317 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
28319 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
28320 to build a biarch toolchain again.
28322 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
28324 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
28325 or implicit declarations.
28326 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
28328 (get_odr_type): Check type has linkage before adding bases.
28329 (register_odr_type): Check that type has linkage before adding it.
28330 (type_known_to_have_no_deriavations_p): Rename to ..
28331 (type_known_to_have_no_derivations_p): This one.
28332 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
28333 (type_known_to_have_no_derivations_p): This one.
28334 * ipa-polymorphic-call.c
28335 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
28338 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
28340 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
28341 (layout_type): Use RECORD_OR_UNION_TYPE_P.
28343 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28345 * config/s390/s390.c (s390_vector_bool_type_p): New function.
28346 (s390_invalid_binary_op): New function.
28347 (TARGET_INVALID_BINARY_OP): Define macro.
28349 2015-05-19 David Sherwood <david.sherwood@arm.com>
28351 * loop-invariant.c (create_new_invariant): Don't calculate address cost
28352 if mode is not a scalar integer.
28353 (get_inv_cost): Increase computational cost for unused invariants.
28355 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28357 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
28358 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
28359 * config/s390/s390-builtin-types.def: New file.
28360 * config/s390/s390-builtins.def: New file.
28361 * config/s390/s390-builtins.h: New file.
28362 * config/s390/s390-c.c: New file.
28363 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
28364 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
28365 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
28366 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
28368 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
28370 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
28371 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
28372 variable definitions.
28373 (s390_const_operand_ok): New function.
28374 (s390_expand_builtin): Rewrite.
28375 (s390_init_builtins): New function.
28376 (s390_handle_vectorbool_attribute): New function.
28377 (s390_attribute_table): Add s390_vector_bool attribute.
28378 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
28379 (s390_branch_condition_mask): Generate masks for new modes.
28380 (s390_expand_vec_compare_cc): New function.
28381 (s390_mangle_type): Add mangling for vector bool types.
28382 (enum s390_builtin): Remove.
28383 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
28385 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
28386 s390_cpu_cpp_builtins.
28387 (REGISTER_TARGET_PRAGMAS): New macro.
28388 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
28389 (insn_cmp mode attribute): Add new CC modes.
28390 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
28391 (lcbb): New pattern definition.
28392 * config/s390/s390intrin.h: Include vecintrin.h.
28393 * config/s390/t-s390: New file.
28394 * config/s390/vecintrin.h: New file.
28395 * config/s390/vector.md: Include vx-builtins.md.
28396 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
28399 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28401 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
28403 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
28404 (s390_select_ccmode): Likewise.
28405 (s390_canonicalize_comparison): Swap operands if necessary.
28406 (s390_expand_vec_compare_scalar): Expand DFmode compare using
28407 single element vector instructions.
28408 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
28409 (s390_branch_condition_mask): Generate CC masks for the new modes.
28410 * config/s390/s390.md (v0, vf, vd): New mode attributes.
28411 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
28412 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
28413 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
28414 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
28415 (*extend<DSF:mode><BFP:mode>2): New insn definition.
28416 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
28417 (extend<DSF:mode><BFP:mode>2): Turn into expander.
28418 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
28419 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
28420 (sqrt<mode>2): Add vector instruction.
28422 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28424 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
28426 * config/s390/predicates.md (const0_operand, constm1_operand)
28427 (constable_operand): Accept vector operands.
28428 * config/s390/s390-modes.def: Add supported vector modes.
28429 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
28430 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
28431 (s390_bytemask_vector_p, s390_expand_vec_strlen)
28432 (s390_expand_vec_compare, s390_expand_vcond)
28433 (s390_expand_vec_init): Add prototypes.
28434 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
28435 (s390_vector_mode_supported_p): New function.
28436 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
28437 (s390_contiguous_bitmask_vector_p): New function.
28438 (s390_bytemask_vector_p): New function.
28439 (s390_split_ok_p): Vector regs don't work either.
28440 (regclass_map): Add VEC_REGS.
28441 (s390_legitimate_constant_p): Handle vector constants.
28442 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
28443 (legitimate_reload_vector_constant_p): New function.
28444 (s390_preferred_reload_class): Handle CONST_VECTOR.
28445 (s390_reload_symref_address): Likewise.
28446 (s390_secondary_reload): Vector memory instructions only support
28447 short displacements. Rename reload*_nonoffmem* to reload*_la*.
28448 (s390_emit_ccraw_jump): New function.
28449 (s390_expand_vec_strlen): New function.
28450 (s390_expand_vec_compare): New function.
28451 (s390_expand_vcond): New function.
28452 (s390_expand_vec_init): New function.
28453 (s390_dwarf_frame_reg_mode): New function.
28454 (print_operand): Handle addresses with 'O' and 'R' constraints.
28455 (NR_C_MODES, constant_modes): Add vector modes.
28456 (s390_output_pool_entry): Handle vector constants.
28457 (s390_hard_regno_mode_ok): Handle vector registers.
28458 (s390_class_max_nregs): Likewise.
28459 (s390_cannot_change_mode_class): New function.
28460 (s390_invalid_arg_for_unprototyped_fn): New function.
28461 (s390_function_arg_vector): New function.
28462 (s390_function_arg_float): Remove size variable.
28463 (s390_pass_by_reference): Handle vector arguments.
28464 (s390_function_arg_advance): Likewise.
28465 (s390_function_arg): Likewise.
28466 (s390_return_in_memory): Vector values are returned in a VR if
28468 (s390_function_and_libcall_value): Handle vector arguments.
28469 (s390_gimplify_va_arg): Likewise.
28470 (s390_call_saved_register_used): Consider the arguments named.
28471 (s390_conditional_register_usage): Disable v16-v31 for non-vec
28473 (s390_preferred_simd_mode): New function.
28474 (s390_support_vector_misalignment): New function.
28475 (s390_vector_alignment): New function.
28476 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
28477 (TARGET_VECTOR_MODE_SUPPORTED_P)
28478 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
28479 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
28480 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
28481 (TARGET_VECTOR_ALIGNMENT): Define target macro.
28482 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
28483 (FIRST_PSEUDO_REGISTER): Increase value.
28484 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
28485 (VECTOR_REG_P): Define macros.
28486 (FIXED_REGISTERS, CALL_USED_REGISTERS)
28487 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
28488 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
28489 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
28490 Add vector registers.
28491 (CANNOT_CHANGE_MODE_CLASS): Call C function.
28492 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
28493 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
28495 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
28496 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
28497 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
28498 (VR*_REGNUM): New constants.
28499 (ALL): New mode iterator.
28500 (INTALL): Remove mode iterator.
28502 (movti): Implement TImode moves for VRs.
28503 Disable TImode splitter for VR targets.
28504 Implement splitting TImode GPR<->VR moves.
28505 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
28506 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
28507 reload<mode>_la_in, reload<mode>_la_out.
28508 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
28509 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
28510 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
28511 (mov<mode> SF SD): Prefer lder, lde for loading.
28512 Add lrl and strl instructions.
28513 Add vector instructions.
28514 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
28515 Call s390_expand_vec_strlen on z13.
28516 (*cc_to_int): Change predicate to nonimmediate_operand.
28517 (addti3): Rename to *addti3. New expander.
28518 (subti3): Rename to *subti3. New expander.
28519 * config/s390/vector.md: New file.
28521 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28523 * common/config/s390/s390-common.c (processor_flags_table): Add
28525 * config.gcc: Add z13.
28526 * config/s390/s390-opts.h (enum processor_type): Add
28527 PROCESSOR_2964_Z13.
28528 * config/s390/s390.c (s390_adjust_priority): Check for
28529 PROCESSOR_2964_Z13.
28530 (s390_reorg): Likewise.
28531 (s390_sched_reorder): Likewise.
28532 (s390_sched_variable_issue): Likewise.
28533 (s390_loop_unroll_adjust): Likewise.
28534 (s390_option_override): Likewise. Default to -mvx when available.
28535 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
28536 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
28537 (TARGET_VX_ABI): Define macros.
28539 (TARGET_DEFAULT): Add MASK_OPT_VX.
28540 * config/s390/s390.md ("cpu" attribute): Add z13.
28541 ("cpu_facility" attribute): Add vec.
28542 * config/s390/s390.opt (processor_type): Add z13.
28543 (mvx): New options.
28544 * doc/invoke.texi: Add z13 option for -march.
28546 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28548 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
28549 mode check to make sure that only scalar integer values are
28552 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
28554 * tree.c (verify_type_variant): Fix #undef.
28555 (gimple_canonical_types_compatible_p): Move here from lto.c
28556 (verify_type): Verify TYPE_CANONICAL compatibility.
28557 * tree.h (gimple_canonical_types_compatible_p): Declare.
28559 2015-05-19 Jakub Jelinek <jakub@redhat.com>
28561 PR middle-end/66199
28562 * tree.h (OMP_TEAMS_COMBINED): Define.
28563 * gimplify.c (enum gimplify_omp_var_data): Add
28564 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
28565 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
28566 (omp_notice_variable): Accept both ORT_TEAMS
28567 and ORT_COMBINED_TEAMS. Don't recurse if
28568 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
28569 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
28571 (omp_no_lastprivate): New function.
28572 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
28573 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
28574 notice_outer and set appropriate bits, otherwise make
28575 sure default(none) combined constructs won't complain.
28576 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
28577 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
28578 omp_no_lastprivate either remove the clause or turn it
28579 into OMP_CLAUSE_PRIVATE.
28580 (gimplify_omp_for): Fix up handling of implicit
28581 lastprivate or linear iterators.
28582 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
28583 ORT_COMBINED_TEAMS.
28584 * omp-low.c (lower_omp_for_lastprivate): For combined
28585 for simd use fd.loop.n2 from the for rather than simd.
28587 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28589 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
28590 instead of gen_rtx_raw_REG.
28591 (cris_expand_epilogue): Likewise.
28592 * config/microblaze/microblaze.c (microblaze_classify_address):
28594 * config/sparc/sparc.md: Likewise.
28596 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
28598 * config/alpha/alpha.c (alpha_legitimize_reload_address)
28599 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
28600 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
28601 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
28602 Use CASE_CONST_SCALAR_INT.
28603 (print_operand) <case 'M'>: Use mode_width_operand to check the
28604 value of the constant.
28605 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
28606 * config/alpha/predicates.md (input_operand): Use general_operand
28607 instead of match_code as operand check.
28608 (symbolic_operand): Use match_code with subexpression digits.
28609 * config/alpha/constraints.md (Q): Ditto.
28611 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28613 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
28615 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28617 * config/s390/s390.c (s390_secondary_reload): Fix check for
28618 load/store relative.
28620 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28622 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
28623 alternative_mask to uint64_t.
28625 2015-05-19 Jakub Jelinek <jakub@redhat.com>
28627 PR tree-optimization/66187
28628 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
28629 Pass TYPE_SIGN to tree_int_cst_min_precision. If
28630 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
28632 2015-05-19 David Malcolm <dmalcolm@redhat.com>
28634 * diagnostic.c (diagnostic_report_current_module): Strengthen
28635 local "new_map" from const line_map * to
28636 const line_map_ordinary *.
28637 * genmatch.c (error_cb): Likewise for local "map".
28638 (output_line_directive): Likewise for local "map".
28639 * input.c (expand_location_1): Likewise for local "map".
28640 Pass NULL rather than &map to
28641 linemap_unwind_to_first_non_reserved_loc, since the value is never
28642 read from there, and the value written back not read from here.
28643 (is_location_from_builtin_token): Strengthen local "map" from
28644 const line_map * to const line_map_ordinary *.
28645 (dump_location_info): Strengthen locals "map" from
28646 line_map *, one to const line_map_ordinary *, the other
28647 to const line_map_macro *.
28648 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
28649 const line_map * to const line_map_macro *.
28650 (maybe_unwind_expanded_macro_loc): Add a call to
28651 linemap_check_macro when writing to the "map" field of the
28653 Introduce local const line_map_ordinary * "ord_map", using it in
28654 place of "map" in the part of the function where we know we have
28655 an ordinary map. Strengthen local "m" from const line_map * to
28656 const line_map_ordinary *.
28658 2015-05-19 Nick Clifton <nickc@redhat.com>
28661 * config/msp430/msp430.md (zero_extendhisi2): Add support for
28662 separate source and destination registers.
28664 2015-05-19 Richard Biener <rguenther@suse.de>
28666 PR tree-optimization/66165
28667 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
28668 for no load permutation.
28670 PR tree-optimization/66185
28671 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
28672 when building the SLP node from scalars.
28674 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
28675 Tristan Gingold <gingold@adacore.com>
28677 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
28678 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
28679 (expand_stack_restore): Call record_new_stack_level.
28680 (expand_stack_save): Do not call do_pending_stack_adjust.
28681 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
28682 * calls.c (expand_call): Call record_new_stack_level for alloca.
28683 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
28684 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
28685 (update_sjlj_context): New global function.
28686 * except.h (update_sjlj_context): Declare.
28687 * explow.c (record_new_stack_level): New global function.
28688 (allocate_dynamic_stack_space): Call record_new_stack_level.
28689 * explow.h (record_new_stack_level): Declare.
28690 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
28691 * cfgrtl.c (duplicate_insn_chain): Likewise.
28693 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28695 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
28696 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
28697 STACK_GROWS_DOWNWARD as normal if.
28698 (expand_call): Likewise.
28700 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
28703 * config/sh/sh.md (*round_int_even): New insn_and_split and
28704 accompanying new unnamed split.
28706 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28708 * bitmap.c (bitmap_set_range): Handle count==1 specially.
28709 (bitmap_clear_range): Likewise.
28710 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
28711 bitmap_set_range unconditionally.
28712 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28713 * df-scan.c (df_mark_reg): Likewise.
28714 * haifa-sched.c (setup_ref_regs): Likewise.
28715 * sched-rgn.c (update_live_1): Likewise.
28717 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28719 * regs.h (END_HARD_REGNO): Delete.
28720 (END_REGNO): Move to...
28722 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
28723 * caller-save.c (mark_set_regs): Likewise.
28724 * combine.c (move_deaths, distribute_notes): Likewise.
28725 * cse.c (invalidate, invalidate_for_call): Likewise.
28726 * df-scan.c (df_ref_record): Likewise.
28727 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
28728 (record_last_reg_set_info): Likewise.
28729 * reg-stack.c (convert_regs_exit): Likewise.
28730 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
28731 * resource.c (update_live_status): Likewise.
28732 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
28734 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28736 * rtl.h (reg_info): Add an nregs field.
28737 (REG_NREGS): Use it.
28738 (SET_REGNO_RAW): Delete.
28739 (set_regno_raw): New function.
28740 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
28741 (END_REGNO): Redefine in terms of REG_NREGS.
28742 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
28744 * emit-rtl.c (set_mode_and_regno): Likewise.
28745 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
28746 instead of SET_REGNO_RAW.
28748 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28750 * rtl.h (PUT_MODE_RAW): New macro.
28751 (PUT_REG_NOTE_KIND): Use it.
28752 (set_mode_and_regno): Declare.
28753 (gen_raw_REG): Change regno to "unsigned int".
28754 (gen_rtx_REG): Change "unsigned" to "unsigned int".
28755 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
28756 use set_mode_and_regno to change the mode of registers.
28757 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
28758 * emit-rtl.c (set_mode_and_regno): New function.
28759 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
28760 * caller-save.c (reg_save_code): Use set_mode_and_regno.
28761 * expr.c (init_expr_target): Likewise.
28762 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28763 * postreload.c (reload_cse_simplify_operands): Likewise.
28765 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28767 * caller-save.c (init_caller_save): Use word_mode and
28768 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
28769 * expr.c (init_expr_target): Likewise.
28770 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28771 * postreload.c (reload_cse_regs_1): Likewise.
28773 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28775 * rtl.def (REG): Change format to "r".
28776 * rtl.h (rtunion): Remove rt_reg.
28777 (reg_info): New structure.
28778 (rtx_def): Add reg field to main union.
28779 (X0REGATTR): Delete.
28780 (REG_CHECK): New macro.
28781 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
28782 * rtl.c (rtx_format): Document "r".
28783 (rtx_code_size): Handle REG specially.
28784 * gengenrtl.c (special_format): Return true for formats
28786 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
28787 Deal with REG_ATTRS after the field loop.
28788 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
28789 * expmed.c (init_expmed): Call gen_raw_REG instead of
28791 * expr.c (init_expr_target): Likewise.
28792 * regcprop.c (maybe_mode_change): Likewise.
28793 * varasm.c (make_decl_rtl): Likewise.
28794 * final.c (leaf_renumber_regs_insn): Return early after
28796 * genemit.c (gen_exp): Handle 'r' fields.
28797 * genpeep.c (match_rtx): Likewise.
28798 * gensupport.c (subst_pattern_match): Likewise.
28799 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
28800 (alter_constraints, subst_dup): Likewise.
28801 * read-rtl.c (read_rtx_code): Likewise.
28802 * print-rtl.c (print_rtx): Likewise.
28803 * genrecog.c (find_operand, find_matching_operand): Likewise.
28804 (validate_pattern, match_pattern_2): Likewise.
28805 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
28806 (rtx_test::regno_field): New function.
28807 (operator ==, safe_to_hoist_p, transition_parameter_type)
28808 (parameter_type_string, print_parameter_value)
28809 (print_nonbool_test, print_test): Handle new enum values.
28810 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
28811 * lra-constraints.c (operands_match_p): Likewise.
28813 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28815 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
28816 Change type of new_regno to unsigned int.
28817 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
28818 new_regno to unsigned int.
28819 (df_ref_change_reg_with_loc): Remove old_regno parameter.
28820 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
28821 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
28822 (SET_REGNO_RAW): Add space after ",".
28824 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28826 * rtl.h (REG_NREGS): New macro
28827 * alias.c (record_set): Use it.
28828 * cfgcleanup.c (mark_effect): Likewise.
28829 * combine.c (likely_spilled_retval_1): Likewise.
28830 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
28831 (move_deaths, distribute_notes): Likewise.
28832 * cselib.c (cselib_record_set): Likewise.
28833 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28834 * df-scan.c (df_mark_reg): Likewise.
28835 * dse.c (look_for_hardregs): Likewise.
28836 * dwarf2out.c (reg_loc_descriptor): Likewise.
28837 (multiple_reg_loc_descriptor): Likewise.
28838 * expr.c (write_complex_part, read_complex_part): Likewise.
28839 (emit_move_complex): Likewise.
28840 * haifa-sched.c (setup_ref_regs): Likewise.
28841 * ira-lives.c (mark_hard_reg_live): Likewise.
28842 * lra.c (lra_set_insn_recog_data): Likewise.
28843 * mode-switching.c (create_pre_exit): Likewise.
28844 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
28845 (reload_combine_recognize_pattern): Likewise.
28846 (reload_combine_note_use, move2add_record_mode): Likewise.
28847 (reload_cse_move2add): Likewise.
28848 * reg-stack.c (subst_stack_regs_pat): Likewise.
28849 * regcprop.c (kill_value, copy_value): Likewise.
28850 (copyprop_hardreg_forward_1): Likewise.
28851 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
28852 (build_def_use): Likewise.
28853 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
28854 (deps_analyze_insn): Likewise.
28855 * sched-rgn.c (check_live_1, update_live_1): Likewise.
28856 * sel-sched.c (count_occurrences_equiv): Likewise.
28857 * valtrack.c (dead_debug_insert_temp): Likewise.
28859 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28861 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
28862 * dse.c (note_add_store): Likewise.
28863 * ira-lives.c (mark_hard_reg_dead): Likewise.
28864 * loop-invariant.c (mark_reg_store): Likewise.
28865 (mark_reg_death): Likewise.
28866 * postreload.c (reload_combine): Likewise.
28867 (reload_combine_note_store): Likewise.
28868 (reload_combine_note_use): Likewise.
28869 * recog.c (peep2_reg_dead_p): Likewise.
28871 2015-05-19 Alan Modra <amodra@gmail.com>
28873 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
28874 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
28875 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
28877 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
28878 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
28879 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
28880 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
28882 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
28884 * config/mips/mips.md (JOIN_MODE): New mode iterator.
28885 (join2_load_Store<JOIN_MODE:mode>): New pattern.
28886 (join2_loadhi): Likewise.
28887 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
28888 load-load and store-stores.
28889 * config/mips/mips.opt (mload-store-pairs): New option.
28890 (TARGET_LOAD_STORE_PAIRS): New macro.
28891 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
28892 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
28893 * config/mips/mips.c (mips_load_store_bonding_p): New function.
28895 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
28897 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
28899 * dojump.c (do_compare_rtx_and_jump): Likewise.
28900 * expmed.c (emit_store_flag_1): Likewise.
28901 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
28902 * final.c (sprint_ul): Use std::reverse for reversing a string.
28903 * fold-const.c (extract_muldiv_1): Use std::swap.
28904 * genmodes.c (emit_mode_int_n): Likewise.
28905 * ifcvt.c (dead_or_predicable): Likewise.
28906 * ira-build.c (ira_merge_live_ranges): Likewise.
28907 (swap_allocno_copy_ends_if_necessary): Likewise.
28908 * ira.c (ira_setup_alts): Likewise.
28909 * loop-iv.c (iv_analyze_expr): Likewise.
28910 (implies_p): Likewise.
28911 (canon_condition): Likewise.
28912 * lra-constraints.c (swap_operands): Likewise.
28913 * lra-lives.c (lra_merge_live_ranges): Likewise.
28914 * omega.c (swap): Remove.
28916 (omega_unprotect_1): Use std::swap.
28917 (omega_solve_geq): Likewise.
28918 * optabs.c (expand_binop_directly): Likewise.
28919 (expand_binop): Likewise.
28920 (emit_conditional_move): Likewise.
28921 (emit_conditional_add): Likewise.
28922 * postreload.c (reload_cse_simplify_operands): Likewise.
28923 * reg-stack.c (emit_swap_insn): Likewise.
28924 (swap_to_top): Likewise.
28925 (compare_for_stack_reg): Likewise.
28926 (subst_asm_stack_regs): Likewise.
28927 * reload.c (find_reloads): Likewise.
28928 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
28929 * sel-sched.c (invoke_reorder_hooks): Likewise.
28930 (create_block_for_bookkeeping): Likewise.
28931 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
28932 (lambda_matrix_right_hermite): Use std::swap.
28933 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
28934 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
28935 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
28936 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
28937 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
28938 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
28939 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
28940 * tree-vrp.c (compare_ranges): Likewise.
28941 * var-tracking.c (add_with_sets): Likewise.
28942 (vt_find_locations): Likewise.
28944 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
28946 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
28948 (FBSD_ENDFILE_SPEC): Likewise.
28949 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
28950 config/freebsd-spec.h.
28951 (ENDFILE_SPEC): Likewise.
28953 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
28954 Richard Henderson <rth@redhat.com>
28957 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
28958 Check for a memory location that is not a reference (using an AND)
28959 to an unaligned location here.
28960 * config/alpha/predicates.md (normal_memory_operand): Remove.
28962 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
28964 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
28965 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
28967 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
28969 * config/mips/mips.c (micromips_globals): New variable.
28970 (mips_set_compression_mode): Save and reinitialize target-dependent
28971 state for microMIPS.
28973 2015-05-18 Martin Liska <mliska@suse.cz>
28975 * dbgcnt.def: Add new counter.
28976 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
28978 2015-05-18 Martin Liska <mliska@suse.cz>
28980 * dbgcnt.def: Sort counters.
28981 * opts.c (common_handle_option): Do not compile if
28982 -fdbg-cnt-list is enabled.
28984 2015-05-18 Tom de Vries <tom@codesourcery.com>
28986 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
28987 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
28988 address operator to va_list operand.
28989 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
28991 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
28993 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
28994 * config/s390/s390.c (s390_gimplify_va_arg): Same.
28995 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
28997 2015-05-18 Tom de Vries <tom@codesourcery.com>
28999 * tree-ssa-tail-merge.c: Fix whitespace.
29001 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
29003 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
29004 cortex-a17, and cortex-a17.cortex-a7.
29006 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
29009 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
29011 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
29014 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
29015 QImode inner modes for TARGET_AVX512BW. Force mask operand
29016 to a register for AVX512F modes.
29018 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29020 * toplev.c (emit_debug_global_declarations): Do not output debug info
29021 when doing slim LTO objects.
29023 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29025 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
29026 odr_types_equivalent_p): Declare.
29027 (odr_type_p): Use gcc_checking_assert.
29028 (type_in_anonymous_namespace_p) Declare.
29029 (type_with_linkage_p): Declare.
29030 * common.opt (Wlto-type-mismatch): New warning.
29031 * ipa-devirt.c (compound_type_base): New function.
29032 (odr_or_derived_type_p): New function.
29033 (odr_types_equivalent_p): New function.
29034 (add_type_duplicate): Simplify.
29035 (type_with_linkage_p): Add hack to prevent false positives on C types
29036 (type_in_anonymous_namespace_p): Likewise.
29037 * tree.c (need_assembler_name_p): Use type_with_linkage.
29038 * tree.h (type_in_anonymous_namespace_p): Remove.
29039 * doc/invoke.texi (-Wlto-type-mismatch): Document
29041 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29043 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
29044 (verify_type): Verify STRING_FLAG.
29046 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
29049 * tree-pretty-print.c (percent_K_format): Replace locus pointer
29050 with accessor function.
29051 * tree-diagnostic.c (diagnostic_report_current_function): Use
29052 diagnostic_location function.
29053 (maybe_unwind_expanded_macro_loc): Likewise.
29054 (virt_loc_aware_diagnostic_finalizer): Likewise.
29055 (default_tree_printer): Replace locus pointer with accessor function.
29056 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
29057 (diagnostic_set_info_translated): Initialize second location.
29058 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
29059 (diagnostic_show_locus): Handle two locations. Call
29060 diagnostic_print_caret_line.
29061 (diagnostic_print_caret_line): New.
29062 (default_diagnostic_starter): Use diagnostic_location function.
29063 (diagnostic_report_diagnostic): Use diagnostic_location function.
29064 (verbatim): Do not set text.locus.
29065 * diagnostic.h (struct diagnostic_info): Remove location field.
29066 (struct diagnostic_context): Make caret_chars an array of two.
29067 (diagnostic_location): New inline.
29068 (diagnostic_expand_location): Handle two locations.
29069 (diagnostic_same_line): New inline.
29070 (diagnostic_print_caret_line): Declare.
29071 (CARET_LINE_MARGIN): New constant.
29072 * pretty-print.c (pp_printf): Do not set text.locus.
29073 (pp_verbatim): Do not set text.locus.
29074 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
29075 (struct text_info): Replace locus pointer with locations
29076 array. Add accessor functions.
29078 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
29079 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29082 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
29083 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
29084 large constants in register instead of splitting them.
29086 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
29089 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
29090 replacements in memory addresses.
29091 (get_unaligned_address): Ditto.
29093 2015-05-16 James Bowman <james.bowman@ftdichip.com>
29095 * config/ft32/*: New files for FT32 port.
29096 * doc/install.texi: Add FT32 information.
29097 * doc/invoke.texi: Add FT32 information.
29098 * doc/md.texi: Add FT32 information.
29099 * doc/contrib.texi: Self added.
29101 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
29103 PR tree-optimization/64454
29104 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
29105 (-1 - A -> ~A): Remove unnecessary condition.
29107 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
29109 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
29110 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
29111 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
29113 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
29115 * ipa-chkp.h (chkp_wrap_function): New.
29116 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
29117 (chkp_wrap_function_name): New.
29118 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
29119 to get wrapper name.
29120 * lto-cgraph.c: Include ipa-chkp.h.
29121 (input_cgraph_1): Avoid alias chain for wrappers.
29123 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
29125 PR middle-end/66134
29126 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
29127 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
29129 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29131 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
29132 (AARCH64_FL_SLOWMUL): Delete.
29133 (AARCH64_FL_CRC): Redefine to 1<<3.
29134 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
29136 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29138 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
29141 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
29143 * config/alpha/alpha.md (extendqidi2): Use general_operand
29144 instead of some_operand for operand[1] predicate.
29145 (extendhidi2): Ditto.
29146 (cbranchdi4): Use general_operand instead of some_operand
29147 for operand[1] and operands[2] predicates.
29148 (cstoredi4): Ditto.
29149 * config/alpha/predicates.md (some_operand): Remove unused predicate.
29150 (some_ni_operand): Ditto.
29152 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
29154 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
29155 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
29156 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
29157 low part of the constant using alpha_emit_set_const_1.
29158 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
29160 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
29162 * varasm.c (output_constant_pool_1): Pass down alignment from
29163 constant pool entry's descriptor to output_constant_pool_2.
29164 (output_object_block): Add comment prior to call to
29165 output_constant_pool_1.
29167 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
29169 PR rtl-optimization/65862
29170 * target.def (ira_change_pseudo_allocno_class): New hook.
29171 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
29173 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
29174 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
29176 * ira-costs.c (find_costs_and_classes): Call the hook and change
29177 classes when it is necessary.
29178 * doc/tm.texi: Update.
29180 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
29182 * config/i386/i386.md (sibcall_memory): Check that register with
29183 callee address is not also used as one of the arguments, instead
29184 of checking that it is not live after the sibcall.
29185 (sibcall_pop_memory): Ditto.
29186 (sibcall_value_memory): Ditto.
29187 (sibcall_value_pop_memory): Ditto.
29189 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
29191 * generic-match-head.c (types_match): Handle non-types.
29192 * gimple-match-head.c (types_match): Likewise.
29193 * match.pd: Remove unnecessary TREE_TYPE for types_match.
29195 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
29197 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
29198 (csneg3<mode>_insn): Enable expansion of pattern.
29200 2015-05-14 Nick Clifton <nickc@redhat.com>
29202 * config/rl78/rl78.c (rl78_select_section): Select the correct
29203 default section based upon the category of the decl.
29205 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
29207 PR rtl-optimization/30967
29208 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
29209 destination mode for the cost of scc patterns.
29211 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
29213 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
29214 using SWIM248 mode iterator.
29215 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
29216 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
29217 for operand[2] constraint.
29218 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
29220 2015-05-13 Jakub Jelinek <jakub@redhat.com>
29222 PR middle-end/66133
29223 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
29224 make sure it is never noreturn, even when the task body does not
29226 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
29227 right before GIMPLE_OMP_RETURN.
29228 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
29229 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
29230 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
29232 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29234 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
29235 * tree-ssa-math-opts.c: Include params.h
29236 (pow_synth_sqrt_info): New struct.
29237 (representable_as_half_series_p): New function.
29238 (get_fn_chain): Likewise.
29239 (print_nested_fn): Likewise.
29240 (dump_fractional_sqrt_sequence): Likewise.
29241 (dump_integer_part): Likewise.
29242 (expand_pow_as_sqrts): Likewise.
29243 (gimple_expand_builtin_pow): Use above to attempt to expand
29244 pow as series of square roots. Removed now unused variables.
29246 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
29248 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
29249 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
29250 Remove *p0 and *p1 arguments. Rewrite function.
29251 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
29252 (alpha_split_const_mov): Update calls to alpha_extract_integer and
29253 alpha_emit_set_long_const.
29254 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
29255 (alpha_output_mi_thunk_osf): Ditto.
29256 * config/alpha/alpha.md (movti): Do not check operands[1]
29259 2015-05-13 Richard Biener <rguenther@suse.de>
29261 PR tree-optimization/66129
29262 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
29264 (vect_schedule_slp_instance): Fix typo.
29266 2015-05-13 David Malcolm <dmalcolm@redhat.com>
29268 * common.opt (fdump-internal-locations): New option.
29269 * input.c: Include diagnostic-core.h.
29270 (get_end_location): New function.
29271 (write_digit): New function.
29272 (write_digit_row): New function.
29273 (dump_location_range): New function.
29274 (dump_labelled_location_range): New function.
29275 (dump_location_info): New function.
29276 * input.h (dump_location_info): New prototype.
29277 * toplev.c (compile_file): Handle flag_dump_locations.
29279 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
29281 * gimple-expr.h (is_gimple_constant): Reorder.
29282 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
29284 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
29286 * combine.c (simplify_set): When generating a CC set, if the
29287 source already is in the correct mode, do not wrap it in a
29288 compare. Simplify the rest of that code.
29290 2015-05-13 Richard Biener <rguenther@suse.de>
29292 PR tree-optimization/66123
29293 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
29296 2015-05-13 Richard Biener <rguenther@suse.de>
29298 PR middle-end/66110
29299 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
29301 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
29303 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29305 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
29306 * aclocal.m4: Regenerated with automake-1.11.6.
29308 2015-05-13 Tom de Vries <tom@codesourcery.com>
29310 PR tree-optimization/66010
29311 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
29312 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
29313 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
29314 and rval based on do_deref.
29316 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
29319 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
29320 link time constants into adress expressions and therefore set
29323 2015-05-13 Jakub Jelinek <jakub@redhat.com>
29326 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
29327 Use SWI248 iterator instead of SWI.
29328 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
29329 Use eq_attr "alternative" "0" instead of match_test in
29330 length_immediate attribute computation.
29331 (*mulvhi4, *mulvhi4_1): New define_insns.
29334 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
29335 SIGNED to get precision of non-negative value.
29337 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
29340 * function.c (diddle_return_value_1): Process bounds first.
29341 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
29344 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29346 PR rtl-optimization/64616
29347 * loop-invariant.c (can_move_invariant_reg): New.
29348 (move_invariant_reg): Call above new function to decide whether
29349 instruction can just be moved, skipping creation of temporary
29352 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29354 PR target/pr66047.c
29355 * i386.c (ix86_function_sseregparm): Only return -1 if local function
29356 with implied regparm is called from -mno-sse function.
29357 (init_cumulative_args): Output error if ix86_function_sseregparm
29358 return -1 and SSE register would be needed.
29359 (function_arg_advance_32): Likewise.
29360 (function_arg_32): Likewise.
29361 * i386.h (ix86_args): Add decl field.
29363 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29366 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
29367 inlines across optimization boundary.
29369 2015-05-12 Jason Merrill <jason@redhat.com>
29371 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
29372 string literal and macro name.
29374 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
29376 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
29377 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
29378 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
29380 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29382 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
29383 (-Wmisleading-indentation): New option.
29384 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
29386 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
29388 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
29389 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
29390 (alpha_extract_integer): Ditto.
29391 (alpha_legitimate_constant_p): Ditto.
29392 (alpha_split_tmode_pair): Ditto.
29393 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
29394 (alpha_expand_mov): Ditto.
29395 (print_operand): Remove handling of 'H' modifier.
29396 <case 'm'>: Remove CONST_DOUBLE handling.
29397 (summarize_insn): Handle CONST_WIDE_INT.
29398 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
29400 (movti): Handle CONST_WIDE_INT.
29401 * config/alpha/constraints.md ('H'): Remove constraint definition.
29402 ('G'): Do not match MODE_FLOAT class.
29403 * config/alpha/predicates.md (const0_operand): Also match
29405 (non_add_const_operand): Ditto.
29406 (non_zero_const_operand): Ditto.
29407 (some_operand): Ditto.
29408 (input_operand): Ditto. Handle CONST_WIDE_INT.
29409 (and_operand): Do not match const_double.
29410 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
29412 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
29415 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
29416 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
29417 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
29418 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
29419 is_mm_seq_cst, is_mm_sync): New accessor functions.
29420 * builtins.c (expand_builtin_sync_operation,
29421 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
29422 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
29423 (get_memmodel, expand_builtin_atomic_compare_exchange,
29424 expand_builtin_atomic_load, expand_builtin_atomic_store,
29425 expand_builtin_atomic_clear): Use new accessor routines.
29426 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
29427 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
29428 (maybe_emit_sync_lock_test_and_set): Use new accessors and
29429 MEMMODEL_SYNC_ACQUIRE.
29430 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
29431 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
29432 expand_atomic_store): Use new accessors.
29433 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
29434 * tsan.c (instrument_builtin_call): Update check for memory model beyond
29435 final enum to use MEMMODEL_LAST.
29436 * c-family/c-common.c: Use new accessor for memmodel_base.
29437 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
29439 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
29440 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
29441 mem_thread_fence, *dmb): Likewise.
29442 * config/alpha/alpha.c (alpha_split_compare_and_swap,
29443 alpha_split_compare_and_swap_12): Likewise.
29444 * config/arm/arm.c (arm_expand_compare_and_swap,
29445 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
29446 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
29447 atomic_loaddi): Likewise.
29448 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
29450 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
29451 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
29453 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
29454 atomic_store<mode>, atomic_compare_and_swap<mode>,
29455 atomic_exchange<mode>): Use new accessors.
29456 * config/mips/mips.c (mips_process_sync_loop): Likewise.
29457 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
29458 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
29459 rs6000_post_atomic_barrier): Add new cases.
29460 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
29461 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
29462 (atomic_load<mode>): Add new cases and use new accessors.
29463 (store_quadpti): Add new cases.
29464 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
29466 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
29467 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
29470 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29472 * ipa-devirt.c (type_with_linkage_p): New function.
29473 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
29475 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
29476 (can_be_name_hashed_p): Simplify.
29477 (hash_odr_name): Check that type has linkage before checking if it is
29479 (types_same_for_odr): Likewise.
29480 (odr_name_hasher::equal): Likewise.
29481 (odr_subtypes_equivalent_p): Likewise.
29482 (warn_types_mismatch): Likewise.
29483 (get_odr_type): Likewise.
29484 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
29485 * ipa-utils.h (odr_type_p): Move offline.
29486 * tree.c (need_assembler_name_p): Fix handling of types
29488 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
29490 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29492 * timevar.c (timevar_enable): Delete in favor of...
29493 (g_timer): New global.
29494 (struct timevar_def): Move to timevar.h inside class timer.
29495 (struct timevar_stack_def): Likewise.
29496 (timevars): Delete global in favor of field "m_timevars" within
29497 class timer in timevar.h
29498 (stack): Likewise, in favor of field "m_stack".
29499 (unused_stack_instances): Likewise, in favor of field
29500 "m_unused_stack_instances".
29501 (start_time): Likewise, in favor of field "m_start_time".
29502 (get_time): Eliminate check for timevar_enable.
29503 (timer::timer): New function, built from part of timevar_init.
29504 (timevar_init): Rewrite idempotency test from using
29505 "timevar_enable" bool to using dynamic allocation of "g_timer".
29506 Move rest of implementation into timer's constructor.
29507 (timevar_push_1): Rename to...
29508 (timer::push): ...this, adding "m_" prefixes to variables that
29509 are now fields of timer.
29510 (timevar_pop_1): Likewise, rename to...
29511 (timer::pop): ...this, and add "m_" prefixes.
29512 (timevar_start): Replace test for "timevar_enable" with one for
29513 "g_timer", and move bulk of implementation to...
29514 (timer::start): ...here, adding "m_" prefixes.
29515 (timevar_stop): Likewise, from here...
29516 (timer::stop): ...to here.
29517 (timevar_cond_start): Likewise, from here...
29518 (timer::cond_start): ...to here.
29519 (timevar_cond_stop): Likewise, from here...
29520 (timer::cond_stop): ...to here.
29521 (validate_phases): Rename to...
29522 (timer::validate_phases): ...this, and add "m_" prefixes. Make
29523 locals "total" and "tv" const.
29524 (timevar_print): Rename to...
29525 (timer::print): ...this, and add "m_" prefixes. Make locals
29526 "total" and "tv" const. Eliminate test for timevar_enable.
29527 * timevar.h (timevar_enable): Eliminate.
29528 (g_timer): New declaration.
29529 (timevar_push_1): Eliminate.
29530 (timevar_pop_1): Eliminate.
29531 (timevar_print): Eliminate.
29532 (class timer): New class.
29533 (timevar_push): Rewrite to use g_timer.
29534 (timevar_pop): Likewise.
29535 * toplev.c (toplev::~toplev): Likewise.
29537 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
29539 * arm-protos.h (arm_sched_autopref): Delete.
29540 (tune_params): Re-organize, use enums for flag values.
29541 (FUSE_OPS): New macro.
29542 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
29543 (ARM_PREFETCH_BENEFICIAL): Likewise.
29544 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
29545 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
29546 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
29547 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
29548 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
29549 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
29550 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
29551 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
29553 (arm_option_override, thumb2_reorg, arm_print_tune_info)
29554 (aarch_macro_fusion_pair_p): Update uses of current_tune.
29555 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
29557 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
29559 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
29562 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
29563 Sandra Loosemore <sandra@codesourcery.com>
29565 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
29567 (REG_CLASS_NAMES): Add "IJMP_REGS".
29568 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
29569 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
29570 use new "c" register constraint.
29571 * config/nios2/constraint.md (c): New register constraint
29572 corresponding to IJMP_REGS.
29574 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29576 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
29577 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
29578 define_splits): Delete, revamp, transmogrify into ...
29579 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
29580 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
29581 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
29584 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29586 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
29587 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
29589 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29591 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
29592 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
29593 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
29594 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
29595 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
29596 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
29597 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
29598 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
29599 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
29600 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
29601 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
29602 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
29603 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
29604 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
29605 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
29606 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
29607 and 30 corresponding splitters): Delete.
29609 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29611 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
29614 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29616 * combine.c (recog_for_combine_1): New function, factored out
29617 from recog_for_combine.
29618 (change_zero_ext): New function.
29619 (recog_for_combine): If recog fails, try again with the pattern
29620 modified by change_zero_ext; if that still fails, restore the
29623 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29625 * combine.c (get_undo_marker): New function.
29626 (undo_to_marker): New function, largely factored out from ...
29627 (undo_all): ... this. Adjust.
29629 2015-05-12 Richard Biener <rguenther@suse.de>
29631 PR tree-optimization/66101
29632 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
29633 fixup if we turn a loop exit edge to a fallthru edge.
29635 2015-05-12 Richard Biener <rguenther@suse.de>
29637 PR tree-optimization/37021
29638 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
29639 (SLP_TREE_TWO_OPERATORS): New define.
29640 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
29641 SLP_TREE_TWO_OPERATORS.
29642 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
29644 (vect_build_slp_tree): Adjust.
29645 (vect_analyze_slp_cost_1): Likewise.
29646 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
29647 emitting two vector stmts and mixing the results.
29649 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
29651 * call.c (print_z_candidates): Remove dead code.
29653 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29655 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
29656 and zEC12_simple_fp.
29657 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
29660 2015-05-12 Tom de Vries <tom@codesourcery.com>
29662 PR tree-optimization/66010
29663 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
29665 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
29666 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
29667 va_lists are passed, and remove corresponding handling.
29668 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
29669 do_deref argument to ifn_va_arg.
29670 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
29673 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29676 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
29677 REG before taking its REGNO.
29679 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
29681 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
29682 rsp->sign_bit_copies and rsp->nonzero_bits into ...
29683 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
29684 present to get more accurate information about the number of sign bit
29685 copies and non zero bits.
29687 2015-05-12 Richard Biener <rguenther@suse.de>
29689 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
29690 do not allow unrolling.
29692 2015-05-11 Richard Henderson <rth@redhat.com>
29694 * config/i386/i386-modes.def (CCP): New.
29695 * config/i386/i386.c (put_condition_code): Handle it.
29696 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
29698 2015-05-11 Richard Henderson <rth@redhat.com>
29700 * target.def (md_asm_clobbers): Replace with...
29701 (md_asm_adjust): this.
29702 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
29703 (TARGET_MD_ASM_ADJUST): New.
29704 * tm.texi: Rebuild.
29705 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
29706 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
29707 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
29709 * cfgexpand.c (check_operand_nalternatives): Accept vector of
29710 constraints instead of lists of outputs and inputs.
29711 (expand_asm_stmt): Save and restore input_location around the
29712 body of the function. Move asm data into vectors instead of
29713 building tree lists. Generate cleanup sequences as needed,
29714 rather than waiting til the end. Use new md_asm_adjust hook.
29716 * config/vxworks.c: Include vec.h before target.h.
29717 * gimple.c: Likewise.
29718 * incpath.c: Likewise.
29719 * mode-switching.c: Likewise.
29721 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
29722 (cris_md_asm_adjust): this.
29723 (TARGET_MD_ASM_CLOBBERS): Remove.
29724 (TARGET_MD_ASM_ADJUST): New.
29725 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
29726 (ix86_md_asm_adjust): this.
29727 (TARGET_MD_ASM_CLOBBERS): Remove.
29728 (TARGET_MD_ASM_ADJUST): New.
29729 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
29730 (mn10300_md_asm_adjust): this.
29731 (TARGET_MD_ASM_CLOBBERS): Remove.
29732 (TARGET_MD_ASM_ADJUST): New.
29733 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
29734 (rs6000_md_asm_adjust): this.
29735 (TARGET_MD_ASM_CLOBBERS): Remove.
29736 (TARGET_MD_ASM_ADJUST): New.
29737 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
29738 (visium_md_asm_adjust): this.
29739 (TARGET_MD_ASM_CLOBBERS): Remove.
29740 (TARGET_MD_ASM_ADJUST): New.
29742 2015-05-11 Richard Henderson <rth@redhat.com>
29744 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
29745 if noutputs is zero.
29746 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
29748 * cfgexpand.c (expand_asm_operands): Merge into...
29749 (expand_asm_stmt): ... here.
29751 * cfgexpand.c (expand_asm_operands): Don't call
29752 resolve_asm_operand_names.
29753 * stmt.c (resolve_asm_operand_names): Clarify block comment.
29755 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
29757 * dwarf2out.c (gen_member_die): Sanity check that we access
29758 TYPE_MAIN_VARIANT for TYPE_METHODS.
29759 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
29760 checking TYPE_METHODS.
29761 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
29763 (build_distinct_type_copy): Clear TYPE_METHODS.
29764 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
29765 (verify_type): Allow TYPE_METHODS to be error_mark_node.
29766 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
29768 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
29770 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
29771 (emit_pattern_before_setloc): Likewise.
29773 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
29775 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
29776 for define_peephole2s.
29777 (get_peephole2_pattern): New function.
29778 (main): Use it. Call validate_pattern.
29780 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
29782 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
29783 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
29784 (Last callee saved reg is different for AVR_TINY architecture)
29786 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
29788 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
29789 when looking for memory references.
29791 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
29794 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
29795 via function pointers.
29797 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
29799 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
29800 indirect call by forcing address into a pseudo with -fno-plt.
29801 * common.opt (flag_plt): New option.
29802 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
29803 ([-fno-plt]): Document.
29805 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
29808 * config/rs6000/option-defaults.h: Add space between string literal
29811 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
29813 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
29814 accross ARM targets.
29816 2015-05-11 Christian Bruel <christian.bruel@st.com>
29818 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
29819 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
29821 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
29823 PR rtl-optimization/66076
29824 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
29825 Don't grow the heap array if it is already big enough from a
29826 previous iteration.
29828 2015-05-11 Christian Bruel <christian.bruel@st.com>
29830 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
29831 (is_called_in_ARM_mode): Remove.
29832 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
29833 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
29834 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
29835 arm_declare_function_name.
29837 2015-05-11 Christian Bruel <christian.bruel@st.com>
29839 * config/arm/arm.c (arm_option_override): Reoganized and split into :
29840 (arm_option_params_internal); New function.
29841 (arm_option_check_internal): New function.
29842 (arm_option_override_internal): New function.
29843 (thumb_code, thumb1_code): Remove.
29844 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
29845 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
29846 (thumb_code, thumb1_code): Remove.
29847 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
29849 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
29851 * config/alpha/alpha.c (alpha_emit_set_const_1)
29852 (alpha_emit_set_long_const, alpha_extract_integer)
29853 (alpha_legitimate_constant_p, alpha_split_const_mov)
29854 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
29855 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29856 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
29858 * config/alpha/predicates.md (mode_mask_operand): Do not match
29860 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29861 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
29862 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
29863 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29864 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
29866 2015-05-11 Jakub Jelinek <jakub@redhat.com>
29869 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
29870 default_binds_local_p_2.
29871 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
29872 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
29874 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29876 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
29878 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29880 Patch by Richard Biener
29881 * coverage.c (coverage_obj_init): Delay building of type variant
29882 until the type is finished.
29884 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29886 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
29887 mismatch between C and C++ type; compoare correctly ARG_TYPES
29888 for non-prototypes and output correctly parameter index for METHOD_TYPE.
29889 (odr_types_equivalent_p): Fix wording of warning about attributes;
29890 it is OK to match prototype and non-prototype.
29892 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29894 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
29895 TYPE_ARG_TYPES list.
29896 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
29897 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
29899 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29901 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
29902 * tree.h (is_lang_specific): Constify.
29904 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
29906 PR tree-optimization/64454
29907 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
29910 2015-05-08 Jason Merrill <jason@redhat.com>
29912 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
29913 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
29914 config/darwin.h, config/darwin9.h, config/elfos.h,
29915 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
29916 config/microblaze/microblaze.h, config/mips/mips.h,
29917 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
29918 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
29919 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
29920 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
29921 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
29922 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
29923 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
29924 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
29925 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
29926 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
29927 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
29928 between string literal and macro name.
29930 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29932 * jump.c: Change argument types to rtx_insn *.
29935 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29937 * lra-constraints.c: Change argument type to rtx_insn *.
29939 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29941 * df-problems.c: Change argument type to rtx_insn *.
29943 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29945 * combine.c: Change argument type to rtx_insn *.
29947 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29950 * rtlanal.c: Change argument type to rtx_insn *.
29952 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29954 * sched-deps.c: Change argument types to rtx_insn *.
29955 * sched-int.h: Adjust.
29957 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29959 * dwarf2cfi.c: Change argument type to rtx_insn *.
29961 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29963 * ira.c (decrease_live_ranges_number): Changetype of local
29964 variable to rtx_insn *.
29965 * recog.c: Change argument types to rtx_insn *.
29968 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29970 * reorg.c: Change argument types to rtx_insn *.
29972 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29974 * ira-color.c: Change argument types to rtx_insn *.
29975 * lra-eliminations.c: Likewise.
29978 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29980 * gcse.c: Change argument types to rtx_insn *.
29982 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29984 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
29986 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29988 * emit-rtl.c (emit_debug_insn_before): Change argument type to
29992 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29994 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
29997 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29999 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
30002 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30004 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
30007 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30009 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
30012 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30014 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
30018 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30020 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
30024 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30026 * except.c (can_nonlocal_goto): Change type of argument to
30030 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30032 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
30035 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30037 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
30038 * cfgrtl.c (can_delete_label_p): Adjust.
30041 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30043 * reorg.c (stop_search_p): Change argument to rtx_insn *.
30045 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30047 * except.c (make_reg_eh_region_note): Change argument to
30049 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
30050 * except.h: Adjust.
30052 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30054 * mode-switching.c (commit_mode_sets): Change type of local
30055 variable from rtx to rtx_insn *.
30057 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
30059 * doc/install.texi (--enable-languages): Add missing jit and lto info.
30060 Add ^ to grep command.
30061 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
30062 arg to last gimple_simplify declaration. Add missing gimple_build
30063 declaration for built-in function case with four tree args.
30065 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
30066 Szabolcs Nagy <szabolcs.nagy@arm.com>
30068 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
30069 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
30070 (GNU_USER_DYNAMIC_LINKERN32): Update.
30072 2015-05-08 Richard Biener <rguenther@suse.de>
30074 PR tree-optimization/66036
30075 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
30076 Handle strided group loads.
30077 (vect_verify_datarefs_alignment): Likewise.
30078 (vect_enhance_data_refs_alignment): Likewise.
30079 (vect_analyze_group_access): Likewise.
30080 (vect_analyze_data_ref_access): Likewise.
30081 (vect_analyze_data_ref_accesses): Likewise.
30082 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
30083 (vectorizable_load): Likewise.
30085 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
30087 * config/rs6000/rs6000.md: Require operand inequality in one
30090 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
30091 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
30093 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
30095 * config/rx/rx.md (movdi, movdf): Likewise.
30096 Likewise for define_peephole2s.
30098 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30100 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
30101 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
30102 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
30103 vtst_u64): Rewrite using gcc vector extensions.
30105 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30107 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
30108 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
30110 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30112 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
30114 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
30116 * config/glibc-stdint.h (OPTION_MUSL): Define.
30117 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
30118 Change the definition based on OPTION_MUSL for 64 bit targets.
30119 * config/linux.h (OPTION_MUSL): Redefine.
30120 * config/alpha/linux.h (OPTION_MUSL): Redefine.
30121 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
30122 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
30124 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
30125 Szabolcs Nagy <szabolcs.nagy@arm.com>
30127 * config.gcc (LIBC_MUSL): New tm_defines macro.
30128 * config/linux.h (OPTION_MUSL): Define.
30129 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
30130 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
30131 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30132 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30133 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30134 * config/linux.opt (mmusl): New option.
30135 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
30136 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30137 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30138 * configure: Regenerate.
30140 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
30141 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30144 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
30145 * config/i386/knetbsd-gnu64.h: New file.
30147 2015-05-08 Marek Polacek <polacek@redhat.com>
30150 * doc/invoke.texi: Document -Woverride-init-side-effects.
30152 2015-05-07 Marek Polacek <polacek@redhat.com>
30155 * doc/invoke.texi: Document -Wshift-negative-value.
30157 2015-05-06 Aditya Kumar <hiraditya@msn.com>
30159 * gcov-tool.c (do_merge): Refactore to remove int ret.
30160 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
30161 !type == FUNC to type != FUNC.
30162 * reload.h (struct target_reload): Changee to type of
30163 x_spill_indirect_levels from bool to unsigned char.
30165 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
30167 * rtl.h (always_void_p): New function.
30168 * gengenrtl.c (always_void_p): Likewise.
30169 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
30170 with code foo are always VOIDmode.
30171 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
30172 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
30173 compare-elim.c, config/aarch64/aarch64.c,
30174 config/aarch64/aarch64.md, config/alpha/alpha.c,
30175 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
30176 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
30177 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
30178 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
30179 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
30180 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
30181 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
30182 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
30183 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
30184 config/ia64/vect.md, config/iq2000/iq2000.c,
30185 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
30186 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
30187 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
30188 config/mep/mep.c, config/microblaze/microblaze.c,
30189 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
30190 config/mn10300/mn10300.c, config/msp430/msp430.c,
30191 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
30192 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
30193 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
30194 config/rs6000/altivec.md, config/rs6000/rs6000.c,
30195 config/rs6000/rs6000.md, config/rs6000/vector.md,
30196 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
30197 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
30198 config/sh/sh.md, config/sh/sh_treg_combine.cc,
30199 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
30200 config/spu/spu.md, config/stormy16/stormy16.c,
30201 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
30202 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
30203 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
30204 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
30205 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
30206 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
30207 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
30208 var-tracking.c: Update calls accordingly.
30210 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
30213 PR middle-end/54303
30214 * varasm.c (function_mergeable_rodata_prefix): New function.
30215 (mergeable_string_section): Use it.
30216 (mergeable_constant_section): Use it.
30218 2015-05-07 Jeff Law <law@redhat.com>
30221 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30222 simplifier to narrow arithmetic.
30223 * generic-match-head.c: (types_match, single_use): New functions.
30224 * gimple-match-head.c: (types_match, single_use): New functions.
30226 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30228 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
30231 2015-05-07 Richard Biener <rguenther@suse.de>
30233 PR tree-optimization/66002
30234 * passes.def: Schedule another pass_merge_phi after ifcombine, right
30237 2015-05-07 Marek Polacek <polacek@redhat.com>
30238 Martin Uecker <uecker@eecs.berkeley.edu>
30240 * doc/invoke.texi: Document -fsanitize=bounds-strict.
30241 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
30242 into SANITIZE_NONDEFAULT.
30243 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
30245 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
30248 * config/alpha/alpha.c (alpha_override_options_after_change): New.
30249 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
30250 (alpha_override_options): Move align_loops, align_jumps and
30251 align_functions handling into alpha_override_options_after_change.
30253 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
30254 Chris Jones <chrisj@nvidia.com>
30255 Joshua Conner <jconner@nvidia.com>
30257 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
30258 linking of crtfastmath.o.
30259 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
30261 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
30263 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
30264 (cstore<mode>4_unsigned_imm): New expander.
30265 (cstore<mode>4): Remove empty constraint strings. Use the new
30268 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
30271 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
30274 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
30276 * config/aarch64/geniterators.sh: Use standard BRE in sed.
30278 2015-05-06 Alan Modra <amodra@gmail.com>
30281 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
30282 (UNSPEC_NOP): Define.
30283 (reload_vsx_from_gpr<mode>): Add missing DONE.
30284 (reload_gpr_from_vsx<mode>): Likewise.
30285 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
30286 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
30288 2015-05-06 Christian Bruel <christian.bruel@st.com>
30291 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
30292 align_jumps, align_functions into aarch64_override_options_after_change.
30294 2015-05-06 Richard Biener <rguenther@suse.de>
30296 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
30297 vect_transform_slp_perm_load to check if we support a permutation
30298 for basic-block vectorization.
30300 2015-05-06 Nick Clifton <nickc@redhat.com>
30302 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
30303 used, even if it is not being used as a frame pointer.
30305 2015-05-05 Jason Merrill <jason@redhat.com>
30307 * dwarf2out.c (gen_member_die): Don't emit anything for an
30308 anonymous class constructor.
30310 2015-05-05 David Malcolm <dmalcolm@redhat.com>
30312 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
30313 that it reflects the block structure.
30314 (afdo_propagate_edge): Likewise.
30315 (afdo_calculate_branch_prob): Likewise.
30316 (afdo_annotate_cfg): Likewise.
30317 * cfgcleanup.c (equal_different_set_p): Likewise.
30318 (try_crossjump_to_edge): Likewise.
30319 * cgraph.c (cgraph_node::verify_node): Likewise.
30320 * cgraphunit.c (expand_all_functions): Likewise.
30321 * config/i386/i386.c (ix86_expand_copysign): Likewise.
30322 (exact_dependency_1): Likewise.
30323 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
30324 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
30325 * gensupport.c (process_define_subst): Likewise.
30326 * lto-wrapper.c (merge_and_complain): Likewise.
30327 * tree-if-conv.c (if_convertible_bb_p): Likewise.
30328 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
30329 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
30330 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
30331 * tree-vect-loop.c (vectorizable_reduction): Likewise.
30332 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
30333 * tree-vect-stmts.c (vectorizable_shift): Likewise.
30334 * tree-vrp.c (vrp_finalize): Likewise.
30335 * tree.c (variably_modified_type_p): Likewise.
30337 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
30339 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
30340 on darwin12 and later.
30341 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
30342 file to pass -rdynamic on darwin12 and later.
30343 * config/darwin.opt (rdynamic): Add.
30345 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30347 * doc/extend.texi (C Extensions): Update menu for moved Variable
30348 Attributes and Type Attributes sections.
30350 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30353 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
30354 if rep_8byte stringop strategy was specified for 32-bit target.
30356 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
30359 * config/i386/i386.md (vector convert to float spltiter): Check for
30360 xmm16+, when splitting scalar float conversion.
30361 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
30363 2015-05-05 Nick Clifton <nickc@redhat.com>
30365 * config/msp430/msp430-opts.h (enum msp430_regions): New.
30366 * config/msp430/msp430.c (msp430_override_options): Complain if
30367 -mcode-region or -mdata-region is used on a non MSP430X.
30368 (msp430_section_attr): New function. Checks lower, upper and
30370 (msp430_attribute_table): Add lower, upper and either.
30371 (gen_prefix): New function. Generates a prefix for a section
30373 (msp430_select_section): New function - handles the choice of
30374 section for an object. Takes into account memory region
30375 attributes and options.
30376 (msp430_function_section): Use gen_prefix.
30377 (TARGET_SECTION_TYPE_FLAGS): Define.
30378 (msp430_section_type_flags): New function.
30379 (TARGET_ASM_UNIQUE_SECTION): Define.
30380 (msp430_unique_section): New function.
30381 (msp430_output_aligned_decl_common): New function.
30382 (msp430_do_not_relax_short_jumps): New function.
30383 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
30385 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
30386 * config/msp430/msp430-protos.h
30387 (msp430_do_not_relax_short_jumps): New prototype.
30388 (msp430_output_aligned_decl_common): New prototype.
30389 * config/msp430/msp430.md (length): New attribute.
30390 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
30391 then use a long code sequence for short jumps.
30392 * config/msp430/msp430.opt (mcode-region): New.
30393 (mdata-region): New.
30394 * doc/invoke.texi: Document new options.
30395 * doc/extend.texi: Document new attributes.
30397 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
30399 * config/aarch64-protos.h (struct cpu_branch_cost): New.
30400 (tune_params): Add field branch_costs.
30401 (aarch64_branch_cost): Declare.
30402 * config/aarch64.c (generic_branch_cost): New.
30403 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
30404 (cortexa53_tunings): Likewise.
30405 (cortexa57_tunings): Likewise.
30406 (thunderx_tunings): Likewise.
30407 (xgene1_tunings): Likewise.
30408 (aarch64_branch_cost): Define.
30409 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
30411 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30413 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
30414 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
30415 * config/i386/i386.md: Ditto.
30416 * config/i386/winnt.c: Ditto.
30418 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
30420 * doc/extend.texi (__atomic Builtins): Move implementation details
30421 to the end of the description, rewrite opening paragraphs, state
30422 difference with __sync builtins, state C11/C++11 assumptions,
30423 weaken itemized descriptions, add explanation of memory model
30424 behaviour, expand description of compare-exchange, simplify text.
30426 2015-05-05 Renlin Li <renlin.li@arm.com>
30428 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
30430 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
30432 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
30433 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30434 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
30435 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30436 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
30437 * configure: Regenerate.
30438 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
30439 * doc/install.texi (aarch64*-*-*): Document new
30440 --enable-fix-cortex-a53-843419 option.
30441 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
30442 and -mno-fix-cortex-a53-843419 options.
30444 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30447 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
30449 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
30451 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
30452 fix overactive TYPE_MIN_VALUE check and add FIXME for type
30453 compatibility problems.
30455 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
30457 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
30459 (cbranchsi4_reg): New.
30460 * config/microblaze/microblaze.c
30461 (microblaze_expand_conditional_branch_reg): New.
30462 * config/microblaze/microblaze-protos.h
30463 (microblaze_expand_conditional_branch_reg): New prototype.
30465 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
30467 * config/microblaze/microblaze.md (peephole2): New.
30469 2015-05-04 Jeff Law <law@redhat.com>
30472 2015-05-04 Jeff Law <law@redhat.com>
30474 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30475 simplifier to narrow arithmetic.
30476 * generic-match-head.c: (types_match, single_use): New functions.
30477 * gimple-match-head.c: (types_match, single_use): New functions.
30479 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
30482 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
30483 (split_branches): Likewise.
30485 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
30487 * common.opt (fdelete-null-pointer-checks): Init to -1.
30488 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
30489 override flag_delete_null_pointer_checks default.
30490 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
30491 behavior re address zero. Better document target-specific behavior.
30492 (-fisolate-errneous-paths-dereference): Mention relationship to
30493 -fdelete-null-pointer-checks.
30495 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30497 PR tree-optimization/65984
30498 * ubsan.c: Include tree-cfg.h.
30499 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
30500 stmt_could_throw_p test, rename can_throw variable to ends_bb.
30502 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
30504 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
30505 to CONST_DOUBLE_P predicate.
30506 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
30507 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
30508 allow only operands that satisfy standard_sse_constant_p predicate.
30509 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
30510 to CONST_DOUBLE_P predicate.
30512 2015-05-04 Jeff Law <law@redhat.com>
30514 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30515 simplifier to narrow arithmetic.
30516 * generic-match-head.c: (types_match, single_use): New functions.
30517 * gimple-match-head.c: (types_match, single_use): New functions.
30519 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
30521 * config/arm/arm.c: Restore bootstrap.
30523 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
30525 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
30526 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
30527 as CONST_WIDE_INT, not CONST_DOUBLE.
30528 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
30529 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
30530 (ix86_find_base_term): Do not check for CONST_DOUBLE.
30531 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
30532 (ix86_build_signbit_mask): Rewrite using wide ints.
30533 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
30534 (ix86_rtx_costs): Handle CONST_WIDE_INT.
30535 (find_constant): Ditto.
30536 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
30537 using gen_int_mode.
30538 * config/i386/predicates.md (x86_64_immediate_operand)
30539 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30540 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
30541 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30542 (const0_operand): Also match const_wide_int.
30543 (constm1_operand): Ditto.
30544 (const1_operand): Ditto.
30546 2015-05-04 Richard Biener <rguenther@suse.de>
30548 PR tree-optimization/65965
30549 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
30550 store groups at gaps.
30552 2015-05-04 Richard Biener <rguenther@suse.de>
30554 PR tree-optimization/65935
30555 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
30556 then make sure to apply that swapping to the IL.
30558 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30560 * Makefile.in (PATCHLEVEL_c): New variable.
30561 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
30562 expand the same way as if DEVPHASE_c was non-empty.
30564 2015-05-04 Kai Tietz <ktietz@redhat.com>
30567 * lto-wrapper.c (run_gcc): Open filename
30570 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
30572 * doc/extend.texi (Variable Attributes, Type Attributes): Move
30573 sections up in file, to immediately after the Function Attributes
30576 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
30578 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
30580 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30582 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
30583 (insert_partition_copy_on_edge): Adjust.
30584 (insert_rtx_to_part_on_edge): Likewise.
30585 (insert_part_to_rtx_on_edge): Likewise.
30587 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30589 * function.c (set_return_jump_label): Change type of argument to
30591 * function.h (set_return_jump_label): Adjust.
30593 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30595 * reload.h (struct reg_equivs_t): Change type of init to
30597 * ira.c (fix_reg_equiv_init): Adjust.
30598 * reload1.c (eliminate_regs_1): Likewise.
30599 (init_eliminable_invariants): Likewise.
30601 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30603 * cselib.c (fp_setter_insn): Take a rtx_insn *.
30604 * cselib.h (fp_setter_insn): Adjust.
30606 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30608 * recog.c (struct validate_replace_src_data): Change type of
30609 insn field to rtx_insn *.
30610 (validate_replace_src_group): Change type of argument to rtx_insn *.
30611 * recog.h (validate_replace_src_group): Adjust.
30613 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30615 * haifa-sched.c: Change the type of some variables to rtx_insn *.
30616 * sched-deps.c: Likewise.
30617 * sched-int.h: Likewise.
30618 * sched-rgn.c: Likewise.
30619 * sel-sched.c: Likewise.
30621 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30624 * config/i386/i386.c: Change the type of some arguments to
30626 * config/arm/arm.c: Likewise.
30628 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30630 * lra-constraints.c: Change type of some arguments to rtx_insn *.
30632 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30634 * regcprop.c (kill_autoinc_value): Change type of argument to
30637 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30639 * genrecog.c (print_subroutine): Adjust.
30640 * recog.c (get_bool_attr_mask_uncached): Likewise.
30641 * recog.h (struct recog_data_d): Change the type of insn to
30644 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30646 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
30648 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30650 * df-problems.c (df_set_note): Change type of argument to
30653 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30655 * builtins.c (expand_builtin_trap): Change type of local
30656 variable to rtx_insn *.
30657 (add_sched_insns_for_speculation): Likewise.
30658 (ix86_emit_save_regs): Likewise.
30659 (get_scratch_register_on_entry): Likewise.
30660 (ix86_emit_restore_reg_using_pop): Likewise.
30661 (ix86_emit_leave): Likewise.
30662 (ix86_emit_restore_regs_using_mov): Likewise.
30663 (ix86_expand_epilogue): Likewise.
30665 (rl78_alloc_physical_registers_umul): Likewise.
30666 * cselib.c (discard_useless_locs): Likewise.
30667 (cselib_invalidate_regno): Likewise.
30668 (cselib_invalidate_mem): Likewise.
30669 * function.c (expand_function_start): Likewise.
30670 (emit_use_return_register_into_block): Likewise.
30671 * gcse.c: Likewise.
30672 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
30673 * ifcvt.c (noce_get_alt_condition): Likewise.
30674 * loop-doloop.c (doloop_condition_get): Likewise.
30675 * lra-constraints.c (inherit_in_ebb): Likewise.
30676 * modulo-sched.c (sms_schedule_by_order): Likewise.
30677 * recog.c (next_insn_tests_no_inequality): Likewise.
30678 * reorg.c (emit_delay_sequence): Likewise.
30679 (update_reg_dead_notes): Likewise.
30680 (fix_reg_dead_note): Likewise.
30681 (fill_slots_from_thread): Likewise.
30682 (delete_computation): Likewise.
30684 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
30686 * doc/extend.texi (Variable Attributes): Add menu and proper
30687 @nodes to subsections. Move Microsoft Windows attributes to
30688 their own subsection.
30689 (Type Attributes): Reorganize introduction to remove duplicate
30690 list of attributes. Add menu and proper @nodes to subsections.
30691 Alphabetize the main table of common attributes.
30693 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
30695 * match.pd: New simplification patterns.
30696 (x + (x & 1)) -> ((x + 1) & ~1)
30697 (x & ~(x & y)) -> ((x & ~y))
30698 (x | ~(x | y)) -> ((x | ~y))
30700 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30702 * target.def (attribute_table): Mention that struct attribute_spec
30703 is defined in tree-core.h rather than tree.h
30704 * doc/tm.texi: Regenerate.
30706 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
30708 * genrecog.c (test): Rename to rtx_test. Update rest of file
30711 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
30713 PR translation/65959
30714 * params.h (DEFPARAM): Rename msgid to nocmsgid.
30716 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30718 * config/aarch64/aarch64-protos.h (tune_params):
30719 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
30720 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
30721 Return value depending on target.
30722 (generic_tunings): Initialize new target settings.
30723 (cortexa53_tunings): Likewise.
30724 (cortexa57_tunings): Likewise.
30725 (thunderx_tunings): Likewise.
30726 (xgene1_tunings): Likewise.
30728 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30730 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
30731 Make Cortex-A53 shift costs more accurate.
30733 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30735 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
30738 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30740 * config/aarch64/aarch64.c (aarch64_rtx_costs):
30741 Calculate cost of op0 and op1 in PLUS and MINUS cases.
30743 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30745 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
30746 Add cost of op0 in the compare-with-fpzero case.
30748 2015-04-30 David Malcolm <dmalcolm@redhat.com>
30750 * builtins.c (fold_builtin_1): Remove spurious second
30752 * cgraph.h (symtab_node::get_availability): Likewise.
30753 * opts.c (common_handle_option): Remove spurious second semicolon.
30754 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
30755 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
30757 2015-04-30 Caroline Tice <cmtice@google.com>
30759 PR gcov-profile/65929
30760 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
30761 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
30762 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
30763 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
30764 * doc/tm.texi: Regenerate.
30765 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
30766 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
30767 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
30768 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
30770 2015-04-30 Marek Polacek <polacek@redhat.com>
30772 * varasm.c (handle_cache_entry): Fix logic.
30774 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30776 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
30777 (*extrsi5_insn_uxtw_alt): Likewise.
30778 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
30779 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
30782 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30784 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
30787 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30789 * config/aarch64/aarch64.md
30790 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
30791 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
30792 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
30793 appropriately. Handle alternative EON form.
30795 2015-04-30 Renlin Li <renlin.li@arm.com>
30797 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
30798 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
30800 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
30803 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
30804 -fstrict-aliasing boundaries.
30806 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30808 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
30809 and [SU]MNEGL patterns.
30811 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30813 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
30814 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
30815 combined arithmetic-shift ops. Properly handle all shift and extend
30816 operations that can occur in combination with PLUS/MINUS.
30817 Rename maybe_fma to compound_p.
30818 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
30819 arithmetic and shift operations.
30821 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30823 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
30824 rather than arith_shift cost when costing ADD/MINUS of an
30827 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
30830 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
30833 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
30835 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
30836 are for the same position.
30838 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
30840 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
30842 (vectorize_loops): Use it.
30844 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
30846 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
30847 for aggregate types.
30848 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
30849 type to be non_ODR.
30850 * tree.c (need_assembler_name_p): Compute mangled name for
30851 non-fundamental types and integer types.
30853 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
30855 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
30857 * expr.c (expand_expr_real_2): Likewise.
30859 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
30861 * tree.c (build_common_builtin_nodes): Do not build
30862 __builtin_alloca_with_align as equivalent of library alloca.
30864 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
30866 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
30867 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
30869 * tree.c: Include print-tree.h and ipa-utils.h
30870 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
30871 (free_lang_data_in_cgraph): Call verify_type.
30872 (verify_type_variant): New function.
30873 (verify_type): New function.
30874 * tree.h (verify_type): Declare.
30876 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
30878 * config/mips/mips-cpus.def: (mips4): Change default processor
30879 from PROCESSOR_R8000 to PROCESSOR_R10000.
30881 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
30883 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
30884 la/jalr instead of jal.
30886 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
30889 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
30890 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
30891 (setcc+movzbl peephole2): Check also clobbered reg.
30892 (setcc+andl peephole2): Ditto.
30894 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
30897 * config/nvptx/mkoffload.c (target_ilp32): New variable.
30898 (main): Set it depending on "-foffload-abi=[...]".
30899 (compile_native, main): Use it to pass "-m32" or "-m64" to the
30902 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
30905 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
30906 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
30907 Flip lane index back at assembly time for bigendian.
30909 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
30911 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
30912 * gimplify.c (gimplify_omp_workshare): Use it.
30914 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30916 * Makefile.in (build/genrecog.o): Depend on inchash.h.
30917 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
30919 * genrecog.c: Rewrite most of the code except for the third page.
30921 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30923 * inchash.h, inchash.c: Include bconfig.h for build objects.
30924 * Makefile.in (build/inchash.o): New rule.
30926 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
30929 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
30930 number in type attribute expression.
30932 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30934 * loop-iv.c (canon_condition): Generalize to all types of integer
30937 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
30939 * gimple-walk.c: Prune duplicate or unneeded includes.
30940 (walk_gimple_asm): Only call parse_input_constraint or
30941 parse_output_constraint if their findings are used.
30942 Honour parse_input_constraint and parse_output_constraint
30945 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
30947 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
30949 2015-04-29 Tom de Vries <tom@codesourcery.com>
30951 PR tree-optimization/65893
30952 * passes.def (pass_all_optimizations): Move pass_stdarg to after
30955 2015-04-29 Richard Biener <rguenther@suse.de>
30957 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
30958 compute GROUP_SIZE for basic-block SLP.
30959 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
30960 take into account gaps.
30961 (vect_get_mask_element): Properly reject references to previous
30963 (vect_transform_slp_perm_load): Likewise.
30965 2015-04-29 Christian Bruel <christian.bruel@st.com>
30968 * config/i386/i386.c (ix86_default_align): New function.
30969 (ix86_override_options_after_change): Call ix86_default_align.
30970 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
30971 (ix86_override_options_after_change): New function.
30973 2015-04-28 Jeff Law <law@redhat.com>
30975 * tree-ssa-dom.c (record_equality); Fix comment typos.
30977 2015-04-28 Tom de Vries <tom@codesourcery.com>
30979 PR tree-optimization/65887
30980 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
30982 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
30984 * doc/extend.texi (Declaring Attributes of Functions): Split into
30985 subsections by target. Alphabetize the table of common attributes.
30986 Rewrite some of the introductory text to reflect the new structure.
30987 Update some cross-references to point to the new subsections.
30988 (Attribute Syntax): Put paragraph about "__" naming here. Remove
30989 duplicate copies in the discussion of function, label, and type
30992 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
30995 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
30997 2015-04-28 Jason Merrill <jason@redhat.com>
31000 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
31001 (finalize_type_size): Respect TYPE_USER_ALIGN.
31002 (layout_type) [ARRAY_TYPE]: Likewise.
31004 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
31006 * config/arm/arm.md (*arm_movt): Fix type attribute.
31007 (*cmpsi_shiftsi): Likewise.
31008 (*cmpsi_shiftsi_swp): Likewise.
31009 (*movsicc_insn): Likewise.
31010 (*cond_move): Likewise.
31011 (*if_plus_move): Likewise.
31012 (*if_move_plus): Likewise.
31013 (*if_arith_move): Likewise.
31014 (*if_move_arith): Likewise.
31015 (*if_shift_move): Likewise.
31016 (*if_move_shift): Likewise.
31017 (*arm_movtas_ze): Likewise.
31018 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
31019 redundancy and type attribute.
31020 (*thumb2_movsi_insn): Fix type attribute.
31021 (*thumb2_addsi_short): Likewise.
31022 (thumb2_addsi3_compare0): Likewise.
31023 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
31024 attributes accordingly.
31026 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
31029 * function.c (pad_to_arg_alignment): Add parentheses.
31031 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
31033 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
31034 libgcc/config/frv/elf-lib.h.
31036 2015-04-28 Tom de Vries <tom@codesourcery.com>
31038 * tree-call-cdce.c: Fix example in header comment.
31040 2015-04-28 Richard Biener <rguenther@suse.de>
31042 PR tree-optimization/62283
31043 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
31044 fails fatally and we are vectorizing a basic-block simply
31045 cause the child to be constructed piecewise.
31046 (vect_analyze_slp_cost_1): Adjust.
31047 (vect_detect_hybrid_slp_stmts): Likewise.
31048 (vect_bb_slp_scalar_cost): Likewise.
31049 (vect_get_constant_vectors): For piecewise constructed
31050 constants place them after the last def.
31051 (vect_get_slp_defs): Adjust.
31052 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
31053 externals for basic-block vectorization.
31055 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
31058 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
31060 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
31061 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
31062 (AARCH64_TUNE_FMA_STEERING): Likewise.
31063 * config/aarch64/aarch64-cores.def: Set
31064 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
31065 FMUL/FMADD instructions.
31066 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
31067 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
31068 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
31069 * config/aarch64/cortex-a57-fma-steering.h: New file.
31070 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
31072 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
31074 * gensupport.c (std_preds): Add missing codes to address_operand entry.
31076 2015-04-28 Richard Biener <rguenther@suse.de>
31078 PR tree-optimization/65851
31079 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
31080 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
31081 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
31082 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
31083 (ccp_visit_phi_node): Adjust.
31084 (evaluate_stmt): For simplifications to SSA names return its
31085 lattice value if that isn't VARYING. Return immediately when
31086 simplified to a constant.
31087 (visit_assignment): Adjust.
31088 (ccp_visit_stmt): Likewise.
31090 2015-04-28 Tom de Vries <tom@codesourcery.com>
31092 PR tree-optimization/65818
31093 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
31096 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31098 * calls.c (save_fixed_argument_area): Don't check
31099 ARGS_GROW_DOWNWARD with the preprocessor.
31100 (restore_fixed_argument_area): Likewise.
31101 (mem_overlaps_already_clobbered_arg_p): Likewise.
31102 (check_sibcall_argument_overlap): Likewise.
31103 (expand_call): Likewise.
31104 (emit_library_call_value_1): Likewise.
31105 (store_one_arg): Likewise.
31106 * function.c (assign_parms): Likewise.
31107 (locate_and_pad_parm): Likewise.
31108 (pad_to_arg_alignment): Likewise.
31109 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31111 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31113 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
31114 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
31115 * calls.c (save_fixed_argument_area): Don't chekc if
31116 ARGS_GROW_DOWNWARD is defined.
31117 (restore_fixed_argument_area): Likewise.
31118 (mem_overlaps_already_clobbered_arg_p): Likewise.
31119 (check_sibcall_argument_overlap): Likewise.
31120 (expand_call): Likewise.
31121 (emit_library_call_value_1): Likewise.
31122 (store_one_arg): Likewise.
31123 * function.c (assign_parms): Likewise.
31124 (locate_and_pad_parm): Likewise.
31125 (pad_to_arg_alignment): Likewise.
31126 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31128 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31130 * defaults.h (gen_epilogue): New function.
31131 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
31133 * cfgrtl.c (cfg_layout_finalize): Likewise.
31134 * df-scan.c: Likewise.
31135 * function.c (thread_prologue_and_epilogue_insns): Likewise.
31136 (reposition_prologue_and_epilogue_notes): Likewise.
31137 * reorg.c (find_end_label): Likewise.
31138 * toplev.c: Likewise.
31140 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31142 * bb-reorder.c (HAVE_return): Don't check if its undefined.
31143 * defaults.h (gen_simple_return): New function.
31144 (gen_simple_return): Likewise.
31145 (HAVE_return): Add default definition to false.
31146 (HAVE_simple_return): Likewise.
31147 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
31148 HAVE_return and HAVE_simple_return are defined.
31149 * function.c (gen_return_pattern): Likewise.
31150 (convert_jumps_to_returns): Likewise.
31151 (thread_prologue_and_epilogue_insns): Likewise.
31152 * reorg.c (find_end_label): Likewise.
31153 (dbr_schedule): Likewise.
31154 * shrink-wrap.c: Likewise.
31155 * shrink-wrap.h: Likewise.
31157 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31159 * defaults.h (EPILOGUE_USES): Add default definition of false.
31160 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
31161 * resource.c (init_resource_info): Likewise.
31163 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31165 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
31167 * dwarf2out.c (field_byte_offset): REmove check if
31168 PCC_BITFIELD_TYPE_MATTERS is defined.
31169 * stor-layout.c (layout_decl): Likewise.
31170 (update_alignment_for_field): Likewise.
31171 (place_field): Likewise.
31173 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31175 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
31177 * regrename.c (check_new_reg_p): Remove check if
31178 HARD_REGNO_RENAME_OK is defined.
31179 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
31181 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31183 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
31184 * cse.c (fold_rtx): Likewise.
31185 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
31186 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
31187 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
31188 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
31189 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
31190 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
31191 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
31192 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
31193 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
31194 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
31196 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
31197 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
31198 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
31199 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
31200 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
31201 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
31202 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
31203 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
31204 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
31205 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
31206 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
31207 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
31208 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
31209 * doc/tm.texi: Regenerate.
31210 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
31211 either true or false.
31213 2015-04-27 Jeff Law <law@redhat.com>
31215 PR tree-optimization/65217
31216 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
31217 of them has a single use, make sure it is the LHS of the implied
31220 2015-04-28 Alan Modra <amodra@gmail.com>
31223 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
31224 (offsettable_ok_by_alignment): Use minimum of decl and toc
31225 pointer alignment. Replace dead code with assertion.
31226 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
31227 case if size exceeds toc pointer alignment.
31228 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
31229 (rs6000_emit_move): Likewise.
31230 * configure.ac: Add linker toc pointer alignment check.
31231 * configure: Regenerate.
31232 * config.in: Regenerate.
31234 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
31236 * config.gcc: Add h8300-*-linux.
31237 * config/h8300/linux.h: New.
31238 * config/h8300/t-linux: New.
31239 * config/h8300/h8300.c (h8300_option_override): Normal mode
31240 is not supported for h8300-*-linux.
31241 (h8300_file_start): Target priority change.
31242 (get_shift_alg): Likewise.
31243 (h8300_shift_need_scratch_p): Likewise.
31244 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
31245 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
31247 2015-04-27 Caroline Tice <cmtice@google.com>
31249 * final.c (final_scan_insn): Output cold_function_name as function
31251 * varasm.c (cold_function_name): Make global.
31252 (assemble_start_function): Re-set cold_function_name.
31253 (assemble_end_function): Output cold partition size.
31254 * varasm.h (cold_function_name): Declare global.
31256 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
31258 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
31259 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
31261 (*movxi_internal_avx512f): Ditto.
31262 (define_split): Check for xmm16+, when splitting scalar float_extend.
31263 (*extendsfdf2_mixed): Use "v" constraint.
31264 (define_split): Check for xmm16+, when splitting scalar float_truncate.
31265 (*truncdfsf_fast_sse): Use "v" constraint.
31266 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
31267 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
31268 (define_peephole2): Check for xmm16+, when converting scalar
31270 (define_peephole2): Check for xmm16+, when converting scalar
31272 (*fop_<mode>_comm_mixed): Use "v" constraint.
31273 (*fop_<mode>_comm_sse): Ditto.
31274 (*fop_<mode>_1_mixed): Ditto.
31275 (*sqrt<mode>2_sse): Ditto.
31276 (*ieee_s<ieee_maxmin><mode>3): Ditto.
31278 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31280 * combine.c (simplify_if_then_else): Use std::swap instead
31281 of manually swapping.
31282 (known_cond): Likewise.
31283 (simplify_comparison): Likewise.
31285 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
31288 * config/rs6000/htm.md: Remove all define_expands.
31289 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
31290 UNSPECV_HTM_TABORTWCI): Remove.
31291 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
31292 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
31293 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
31294 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
31295 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
31296 tabortwci_internal): Remove define_insns.
31297 (tabort<wd>c, tabort<wd>ci): New define_insns.
31298 (tabort): Use gpc_reg_operand.
31299 (tcheck): Remove operand.
31300 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
31301 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
31303 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
31304 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
31305 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
31306 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
31307 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
31308 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
31309 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
31310 (tcheck): Remove builtin argument.
31311 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
31313 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
31314 tabortdc and tabortdci builtins when not in 64-bit mode.
31315 Modify code to handle the loss of the HTM define_expands.
31316 Emit code to copy the CR register to TARGET.
31317 (htm_init_builtins): Modify code to handle the loss of the HTM
31319 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
31320 (RS6000_BTC_64BIT): Likewise.
31321 (RS6000_BTC_CR): New macro.
31322 * doc/extend.texi: Update documentation for htm builtins.
31324 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31326 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
31327 of manually swapping.
31328 (simplify_associative_operation): Likewise.
31329 (simplify_binary_operation): Likewise.
31330 (simplify_plus_minus): Likewise.
31331 (simplify_relational_operation): Likewise.
31332 (simplify_ternary_operation): Likewise.
31334 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
31336 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
31337 (xs_hi_nonmemory_operand): Remove error.
31338 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
31339 general_operand rather than xs_hi_general_operand.
31341 2015-04-27 Richard Biener <rguenther@suse.de>
31343 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
31344 (record_equivalences_from_stmt): Valueize rhs.
31345 (record_equality): Canonicalize x and y order via
31346 tree_swap_operands_p. Do not swap operands for same loop depth.
31348 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
31352 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
31353 Add hint how to use own spec file.
31355 2015-04-27 Jakub Jelinek <jakub@redhat.com>
31357 PR tree-optimization/65875
31358 * tree-vrp.c (update_value_range): If in is_new case setting
31359 old_vr to VR_VARYING, also set new_vr to it. Remove
31360 old_vr->type == VR_VARYING test.
31361 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
31362 SSA_PROP_INTERESTING if update_value_range returned true,
31363 but new range is VR_VARYING.
31365 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
31367 * combine.c (sign_extend_short_imm): New.
31368 (set_nonzero_bits_and_sign_copies): Use above new function for sign
31369 extension of src short immediate.
31370 (reg_nonzero_bits_for_combine): Likewise for tem.
31372 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
31374 * stor-layout.c (self_referential_component_ref_p): New predicate.
31375 (copy_self_referential_tree_r): Use it.
31376 (self_referential_size): Punt for simple operations directly involving
31377 self-referential component references.
31378 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
31380 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
31382 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
31384 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
31386 * vec.h (vec): Make splice arguments const. Update definitions
31389 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
31391 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
31394 2015-04-26 Tom de Vries <tom@codesourcery.com>
31396 PR tree-optimization/65826
31397 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
31399 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
31401 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
31402 (*madd3<mode>): Ditto.
31403 (*msub4<mode>): Ditto.
31404 (*msub3<mode>): Ditto.
31405 (*nmadd4<mode>): Ditto.
31406 (*nmadd3<mode>): Ditto.
31407 (*nmadd4<mode>_fastmath): Ditto.
31408 (*nmadd3<mode>_fastmath): Ditto.
31409 (*nmsub4<mode>): Ditto.
31410 (*nmsub3<mode>): Ditto.
31411 (*nmsub4<mode>_fastmath): Ditto.
31412 (*nmsub3<mode>_fastmath): Ditto.
31414 2015-04-24 Jason Merrill <jason@redhat.com>
31417 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
31418 down when building TYPE_CANONICAL.
31419 (build_pointer_type_for_mode): Likewise.
31421 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
31423 * genrecog.c (validate_pattern): Check matching constraint refers
31424 to a lower numbered operand.
31426 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
31429 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
31430 save to independent variables use the Save attribute. This will
31431 allow these options to be modified with the #pragma/attribute
31433 (-mallow-movmisalign): Likewise.
31434 (-mallow-df-permute): Likewise.
31435 (-msched-groups): Likewise.
31436 (-malways-hint): Likewise.
31437 (-malign-branch-targets): Likewise.
31438 (-mvectorize-builtins): Likewise.
31439 (-msave-toc-indirect): Likewise.
31441 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
31442 can be set via the #pragma/attribute target support.
31443 (rs6000_opt_vars): Likewise.
31444 (rs6000_inner_target_options): If VSX was set, also set
31445 -mno-avoid-indexed-addresses.
31447 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31449 * config/arm/iterators.md (shiftable_ops): Rename to...
31450 (SHIFTABLE_OPS): ... This. Update use in comments.
31451 (ior_xor): Rename to...
31452 (IOR_XOR): ... This.
31453 (vqh_ops): Rename to...
31454 (VQH_OPS): ... This.
31455 (vqhs_ops): Rename to...
31456 (VQHS_OPS): ... This.
31457 (rshifts): Rename to...
31458 (RSHIFTS): ... This.
31459 (returns): Rename to...
31460 (RETURNS): ... This.
31461 * config/arm/arm.md: Update uses of the above.
31462 * config/arm/neon.md: Likewise.
31464 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31466 * config.host (case ${host}): Add aarch64*-*-linux case.
31467 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
31468 fields to all the cores.
31469 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
31470 Add MCPU_MTUNE_NATIVE_SPECS.
31471 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
31472 field to all extensions.
31473 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
31474 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
31475 Adjust definition of AARCH64_OPT_EXTENSION.
31476 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
31477 (MCPU_MTUNE_NATIVE_SPECS): Define.
31478 * config/aarch64/driver-aarch64.c: New file.
31479 * config/aarch64/x-arch64: New file.
31480 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
31483 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31484 Wei Mi <wmi@google.com>
31486 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
31487 * config/i386/i386.c (extract_base_offset_in_addr): New function.
31488 (ix86_operands_ok_for_move_multiple): Ditto.
31489 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
31490 (movlpd/movhpd to movupd peephole2): Ditto.
31492 2015-04-24 Marek Polacek <polacek@redhat.com>
31495 * input.h (from_macro_expansion_at): Define.
31498 * doc/invoke.texi: Update description of -Wlogical-op.
31500 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31502 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
31503 ternary operator in fprintf and harmonize spacing.
31505 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31507 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
31508 Mark operand1 commutative.
31510 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31512 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
31513 input operands in memory.
31514 (*vec_concatv2si_sse4_1): Ditto.
31515 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
31516 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
31518 (vec_extract_hi_v32hi): Ditto.
31519 (vec_extract_hi_v64hi): Ditto.
31520 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
31522 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31523 Steven Bosscher <steven@gcc.gnu.org>
31525 PR rtl-optimization/34503
31526 * cprop.c (cprop_reg_p): New.
31527 (hash_scan_set): Use above function to check if register can be
31529 (find_avail_set): Return up to two sets, one whose source is a
31530 register and one whose source is a constant. Sets are returned in an
31531 array passed as parameter rather than as a return value.
31532 (cprop_insn): Use a do while loop rather than a goto. Try each of the
31533 sets returned by find_avail_set, starting with the one whose source is
31534 a constant. Use cprop_reg_p to check if register can be propagated.
31535 (do_local_cprop): Use cprop_reg_p to check if register can be
31537 (implicit_set_cond_p): Likewise.
31539 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31541 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
31542 (sem_function::equals): IGNORED_NODES parameter is now unused;
31543 update call of equals_private.
31544 (sem_function::equals_private): Do not call equals_wpa; skip
31545 gimple body matching if there is no body.
31546 (sem_function::init): Add logic to hash tthunk info.
31547 (sem_function::parse): Also parse thunks.
31548 * ipa-icf.h (equals_private): Update declaration.
31550 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31552 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
31553 asterisk from name so this can be generated directly.
31554 (*altivec_stvx_<mode>_internal): Likewise.
31555 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
31556 that this is never called during or after reload/lra.
31557 (rs6000_frame_related): Remove split_reg
31558 argument and logic that references it.
31559 (emit_frame_save): Remove last parameter from call to
31560 rs6000_frame_related.
31561 (rs6000_emit_prologue): Remove last parameter from eight calls to
31562 rs6000_frame_related. Force generation of stvx instruction for
31563 Altivec register saves. Remove split_reg handling, which is no
31565 (rs6000_emit_epilogue): Force generation of lvx instruction for
31566 Altivec register restores.
31568 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31570 * config/rs6000/rs6000.opt (mcrypto): Change option description to
31571 match category changes in ISA 2.07B.
31573 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31575 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
31577 (cmp_op, cmp_type): New code attributes.
31578 (NEON_VCMP, NEON_VACMP): New int iterators.
31579 (cmp_op_unsp): New int attribute.
31580 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
31581 (neon_vceq<mode>): Delete.
31582 (neon_vc<cmp_op><mode>_insn): New pattern.
31583 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
31584 (neon_vcgeu<mode>): Delete.
31585 (neon_vcle<mode>): Likewise.
31586 (neon_vclt<mode>: Likewise.
31587 (neon_vcage<mode>): Likewise.
31588 (neon_vcagt<mode>): Likewise.
31589 (neon_vca<cmp_op><mode>): New define_expand.
31590 (neon_vca<cmp_op><mode>_insn): New pattern.
31591 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
31593 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31595 * tree.h (attribute_value_equal): Declare.
31596 * tree.c (attribute_value_equal): Export.
31598 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31600 * ipa-icf.c (sem_item::compare_attributes): New function.
31601 (sem_item::compare_referenced_symbol_properties): Compare variable
31603 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
31604 (sem_function::param_used_p): New function.
31605 (sem_function::equals_wpa): Fix attribute comparsion; match
31606 parameter type codes; do not compare paremter flags when
31607 they are not used; compare edge flags; compare indirect calls.
31608 (sem_item::update_hash_by_addr_refs): Hash reference type.
31609 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
31610 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
31611 reference use type.
31612 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
31613 * ipa-icf.h (compare_attributes, param_used_p): Declare.
31615 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31617 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
31619 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
31620 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
31621 (sem_item::compare_referenced_symbol_properties): New.
31622 (sem_item::hash_referenced_symbol_properties): New.
31623 (sem_item::compare_cgraph_references): Rename to ...
31624 (sem_item::compare_symbol_references): ... this one; use
31625 compare_referenced_symbol_properties.
31626 (sem_function::equals_wpa): Do not compare
31627 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
31628 DECL_IS_OPERATOR_NEW; compare pointer sizes.
31629 (sem_item::update_hash_by_addr_refs): Call
31630 hash_referenced_symbol_properties.
31631 (sem_item::update_hash_by_local_refs): Cleanup.
31632 (sem_function::merge): Do not mix up symbol properties.
31633 (sem_variable::equals_wpa): Use compare_symbol_references.
31634 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
31635 (sem_item::hash_referenced_symbol_properties): New.
31636 (sem_item::compare_symbol_references): New.
31637 (sem_item::compare_cgraph_references): Remove.
31639 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
31642 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
31643 Emit size of local.
31645 2015-04-23 Nick Clifton <nickc@redhat.com>
31647 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
31648 ATTRIBUTE_UNUSED to x parameter.
31649 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
31651 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31653 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
31654 TARGET_CRYPTO to TARGET_P8_VECTOR>
31655 (crypto_vpermxor_<mode>): Likewise.
31656 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
31657 (BU_CRYPTO_3A): Likewise.
31658 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
31659 (BU_CRYPTO_OVERLOAD_3A): New #define.
31660 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
31661 (VPMSUMH): Likewise.
31662 (VPMSUMW): Likewise.
31663 (VPMSUMD): Likewise.
31664 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
31665 (VPERMXOR_V4SI): Likewise.
31666 (VPERMXOR_V8HI): Likewise.
31667 (VPERMXOR_V16QI): Likewise.
31668 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
31669 BU_CRYPTO_OVERLOAD_2A.
31670 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
31671 BU_CRYPTO_OVERLOAD_3A.
31672 * config/rs6000/rs6000.opt (mcrypto): Change description of
31675 2015-04-23 Richard Biener <rguenther@suse.de>
31677 * passes.def: Remove copy propagation passes run directly after CCP.
31678 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
31680 (ccp_visit_phi_node): Rework to handle first executable edge
31683 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
31685 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31686 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31687 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31688 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
31689 (thumb_legimitimize_reload_address): Remove.
31690 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
31692 (thumb_legimitimize_reload_address): Remove.
31694 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31696 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
31698 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31700 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
31702 (store_multiple): Likewise.
31704 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31706 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
31707 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
31708 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
31709 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
31710 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
31711 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
31712 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
31713 Specify issue_rate value.
31714 (arm_issue_rate): Look up issue rate from tuning structs. Remove
31715 large switch statement.
31716 (arm_marvell_pj4_tune): New struct.
31717 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
31720 2015-04-23 Richard Biener <rguenther@suse.de>
31722 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
31723 (vect_find_last_store_in_slp_instance): Rename to ...
31724 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
31725 (vect_analyze_slp_cost_1): Use vector_load for constant defs
31726 and vec_construct for external defs when estimating prologue cost.
31727 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
31728 Compute costs here only when vectorizing loops.
31729 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
31730 have been determined.
31731 (vect_schedule_slp_instance): Simplify vectorized code placement
31732 and prepare for in-BB external defs.
31733 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
31734 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
31735 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
31737 (vect_model_load_cost): Likewise.
31738 (vectorizable_store): Instead add it here.
31739 (vectorizable_load): Likewise.
31740 (vect_is_simple_use): Dump def type textually.
31742 2015-04-23 Richard Biener <rguenther@suse.de>
31744 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
31745 * cfgloop.c (verify_loop_structure): Verify the root loop node.
31746 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
31747 instead of get_eh_region_from_lp_number.
31748 * loop-init.c (fix_loop_structure): If we removed a loop, reset
31751 2015-04-23 Anton Blanchard <anton@samba.org>
31753 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
31754 need for -mprofile-kernel to save LR to stack.
31756 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31758 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
31760 (insn_is_swappable_p): Return 1 for a convert from double to
31761 single precision when all of its uses are splats of BE element
31764 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
31766 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
31768 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31771 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
31772 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
31773 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
31775 (rs6000_builtin_mask_for_load): Return 0 for targets with
31776 efficient unaligned VSX accesses so that the vectorizer will use
31777 direct unaligned loads.
31778 (rs6000_builtin_support_vector_misalignment): Always return true
31779 for targets with efficient unaligned VSX accesses.
31780 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
31781 stores on targets with efficient unaligned VSX accesses is almost
31782 always the same as the cost of an aligned load or store, so model
31784 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
31785 unaligned vectors if we have efficient unaligned VSX accesses.
31786 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
31787 undocumented option.
31789 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31792 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
31794 * config.gcc (LIBC_MUSL): New tm_defines macro.
31795 * config/linux.h (OPTION_MUSL): Define.
31796 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31797 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31798 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31800 * config/linux.opt (mmusl): New option.
31801 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31802 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31804 * configure: Regenerate.
31806 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
31808 * config.gcc (LIBC_MUSL): New tm_defines macro.
31809 * config/linux.h (OPTION_MUSL): Define.
31810 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31811 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31812 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31814 * config/linux.opt (mmusl): New option.
31815 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31816 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31818 * configure: Regenerate.
31820 2015-04-22 Yury Gribov <y.gribov@samsung.com>
31822 * doc/invoke.texi (-fsanitize-sections): Update description.
31823 * asan.c (set_sanitized_sections): Parse incoming arg.
31824 (section_sanitized_p): Support wildcards.
31826 2015-04-22 Tom de Vries <tom@codesourcery.com>
31828 PR tree-optimization/65823
31829 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
31830 equality between ap_copy and ap.
31832 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31835 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
31837 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31840 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
31842 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31845 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
31846 remove already contained t-files.
31848 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31850 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
31851 Remove unneeded forward declarations.
31852 (suitable_for_tail_call_opt_p): Commentary typo fix.
31854 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31856 * varasm.c (emit_bss): Remove redundant guard.
31858 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31860 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
31862 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31864 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
31866 2015-04-22 Hale Wang <hale.wang@arm.com>
31867 Terry Guo <terry.guo@arm.com>
31869 PR rtl-optimization/64818
31870 * combine.c (can_combine_p): Don't combine user-specified
31871 register if it is in an asm input.
31873 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
31876 * passes.def (early_optimizations): Add pass_dse.
31878 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31880 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
31881 * reorg.c (redundant_insn): Remove ifdef
31882 INSN_REFERENCES_ARE_DELAYED.
31883 * resource.c (mark_referenced_resources): Likewise.
31885 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31887 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
31888 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
31889 * resource.c (mark_set_resources): Likewise.
31891 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31893 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
31894 * cfgcleanup.c (flow_find_cross_jump): Likewise.
31895 (flow_find_head_matching_sequence): Likewise.
31896 (try_head_merge_bb): Likewise.
31897 * combine.c (can_combine_p): Likewise.
31898 (try_combine): Likewise.
31899 (distribute_notes): Likewise.
31900 * df-problems.c (can_move_insns_across): Likewise.
31901 * final.c (final): Likewise.
31902 * gcse.c (insert_insn_end_basic_block): Likewise.
31903 * ira.c (find_moveable_pseudos): Likewise.
31904 * reorg.c (try_merge_delay_insns): Likewise.
31905 (fill_simple_delay_slots): Likewise.
31906 (fill_slots_from_thread): Likewise.
31907 * sched-deps.c (sched_analyze_2): Likewise.
31909 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31911 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
31912 PIC_OFFSET_TABLE_REGNUM.
31914 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31916 * alias.c (init_alias_target): Remove ifdef
31917 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
31918 * df-scan.c (df_insn_refs_collect): Likewise.
31919 (df_get_regular_block_artificial_uses): Likewise.
31920 (df_get_eh_block_artificial_uses): Likewise.
31921 (df_get_entry_block_def_set): Likewise.
31922 (df_get_exit_block_use_set): Likewise.
31923 * emit-rtl.c (gen_rtx_REG): Likewise.
31924 * ira.c (ira_setup_eliminable_regset): Likewise.
31925 * reginfo.c (init_reg_sets_1): Likewise.
31926 * regrename.c (rename_chains): Likewise.
31927 * reload1.c (reload): Likewise.
31928 (eliminate_regs_in_insn): Likewise.
31929 * resource.c (mark_referenced_resources): Likewise.
31930 (init_resource_info): Likewise.
31932 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31934 * defaults.h (MASK_RETURN_ADDR): New definition.
31935 * except.c (expand_builtin_extract_return_addr): Remove ifdef
31938 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31940 * defaults.h (RETURN_ADDR_OFFSET): New definition.
31941 * except.c (expand_builtin_extract_return_addr): Remove ifdef
31942 RETURN_ADDR_OFFSET.
31943 (expand_builtin_frob_return_addr): Likewise.
31945 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31947 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
31948 (try_redirect_by_replacing_jump): Likewise.
31949 (rtl_tidy_fallthru_edge): Likewise.
31950 * combine.c (insn_a_feeds_b): Likewise.
31951 (find_split_point): Likewise.
31952 (simplify_set): Likewise.
31953 * cprop.c (cprop_jump): Likewise.
31954 * cse.c (cse_extended_basic_block): Likewise.
31955 * df-problems.c (can_move_insns_across): Likewise.
31956 * function.c (emit_use_return_register_into_block): Likewise.
31957 * haifa-sched.c (sched_init): Likewise.
31958 * ira.c (find_moveable_pseudos): Likewise.
31959 * loop-invariant.c (find_invariant_insn): Likewise.
31960 * lra-constraints.c (curr_insn_transform): Likewise.
31961 * postreload.c (reload_combine_recognize_const_pattern):
31963 * reload.c (find_reloads): Likewise.
31964 * reorg.c (delete_scheduled_jump): Likewise.
31965 (steal_delay_list_from_target): Likewise.
31966 (steal_delay_list_from_fallthrough): Likewise.
31967 (redundant_insn): Likewise.
31968 (fill_simple_delay_slots): Likewise.
31969 (fill_slots_from_thread): Likewise.
31970 (delete_computation): Likewise.
31971 * sched-rgn.c (add_branch_dependences): Likewise.
31973 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31975 * genconfig.c (main): Always define HAVE_cc0.
31976 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
31978 * cfgcleanup.c (flow_find_cross_jump): Likewise.
31979 (flow_find_head_matching_sequence): Likewise.
31980 (try_head_merge_bb): Likewise.
31981 * cfgrtl.c (rtl_merge_blocks): Likewise.
31982 (try_redirect_by_replacing_jump): Likewise.
31983 (rtl_tidy_fallthru_edge): Likewise.
31984 * combine.c (do_SUBST_MODE): Likewise.
31985 (insn_a_feeds_b): Likewise.
31986 (combine_instructions): Likewise.
31987 (can_combine_p): Likewise.
31988 (try_combine): Likewise.
31989 (find_split_point): Likewise.
31991 (simplify_set): Likewise.
31992 (distribute_notes): Likewise.
31993 * cprop.c (cprop_jump): Likewise.
31994 * cse.c (cse_extended_basic_block): Likewise.
31995 * df-problems.c (can_move_insns_across): Likewise.
31996 * final.c (final): Likewise.
31997 (final_scan_insn): Likewise.
31998 * function.c (emit_use_return_register_into_block): Likewise.
31999 * gcse.c (insert_insn_end_basic_block): Likewise.
32000 * haifa-sched.c (sched_init): Likewise.
32001 * ira.c (find_moveable_pseudos): Likewise.
32002 * loop-invariant.c (find_invariant_insn): Likewise.
32003 * lra-constraints.c (curr_insn_transform): Likewise.
32004 * optabs.c (prepare_cmp_insn): Likewise.
32005 * postreload.c (reload_combine_recognize_const_pattern):
32007 * reload.c (find_reloads): Likewise.
32008 (find_reloads_address_1): Likewise.
32009 * reorg.c (delete_scheduled_jump): Likewise.
32010 (steal_delay_list_from_target): Likewise.
32011 (steal_delay_list_from_fallthrough): Likewise.
32012 (try_merge_delay_insns): Likewise.
32013 (redundant_insn): Likewise.
32014 (fill_simple_delay_slots): Likewise.
32015 (fill_slots_from_thread): Likewise.
32016 (delete_computation): Likewise.
32017 (relax_delay_slots): Likewise.
32018 * sched-deps.c (sched_analyze_2): Likewise.
32019 * sched-rgn.c (add_branch_dependences): Likewise.
32021 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32023 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
32024 that is trivially ded on non cc0 targets.
32025 (simplify_set): Likewise.
32026 (mark_used_regs_combine): Likewise.
32027 * cse.c (new_basic_block): Likewise.
32028 (fold_rtx): Likewise.
32029 (cse_insn): Likewise.
32030 (cse_extended_basic_block): Likewise.
32031 (set_live_p): Likewise.
32032 * rtlanal.c (canonicalize_condition): Likewise.
32033 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
32035 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32037 * conditions.h: Define macros even if HAVE_cc0 is undefined.
32038 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
32039 * final.c: Likewise.
32040 * jump.c: Likewise.
32041 * recog.c: Likewise.
32042 * recog.h: Declare functions even when HAVE_cc0 is undefined.
32043 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
32045 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32047 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
32048 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
32049 * builtins.c (expand_builtin): Remove check if
32050 EH_RETURN_DATA_REGNO is defined.
32051 * df-scan.c (df_bb_refs_collect): Likewise.
32052 (df_get_exit_block_use_set): Likewise.
32053 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
32054 * ira-lives.c (process_bb_node_lives): Likewise.
32055 * lra-lives.c (process_bb_lives): Likewise.
32057 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
32059 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
32060 FIRST_PSEUDO_REG): New.
32061 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
32062 (ARG_POINTER_REGNUM): Define to ARGP_REG.
32063 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
32064 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
32065 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
32066 (FIRST_INT_REG): New.
32067 (LAST_INT_REG): New.
32068 (FIRST_*_REG): Define using *_REG.
32069 (LAST_*_REG): Ditto.
32070 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
32071 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
32072 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
32074 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32076 * expmed.c: (synth_mult): Only assume overlapping
32077 shift with previous steps in alg_sub_t_m2 case.
32079 2015-04-21 Richard Biener <rguenther@suse.de>
32081 PR tree-optimization/65650
32082 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
32083 transitions involving copies.
32084 (set_lattice_value): Adjust for copy lattice state.
32085 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
32086 if that doesn't dominate the merge point.
32087 (bit_value_unop): Adjust what we treat as varying mask.
32088 (bit_value_binop): Likewise.
32089 (bit_value_assume_aligned): Likewise.
32090 (evaluate_stmt): When we simplified to a SSA name record a copy
32091 instead of dropping to varying.
32092 (visit_assignment): Simplify.
32094 * gimple-match.h (gimple_simplify): Add another callback.
32095 * gimple-fold.c (fold_stmt_1): Adjust caller.
32096 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
32097 for the 2nd callback.
32098 * gimple-match-head.c (gimple_simplify): Add a callback that is
32099 used to valueize the stmt operands and use it that way.
32101 2015-04-21 Richard Biener <rguenther@suse.de>
32103 PR tree-optimization/65788
32104 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
32106 2015-04-21 Richard Biener <rguenther@suse.de>
32108 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
32109 vec_construct cost by vec_stmt_cost.
32111 2015-04-21 Richard Biener <rguenther@suse.de>
32113 * cfghooks.h (create_basic_block): Replace with two overloads
32114 for RTL and GIMPLE.
32115 (split_block): Likewise.
32116 * cfghooks.c (split_block): Rename to ...
32117 (split_block_1): ... this.
32118 (split_block): Add two type-safe overloads for RTL and GIMPLE.
32119 (split_block_after_labels): Call split_block_1.
32120 (create_basic_block): Rename to ...
32121 (create_basic_block_1): ... this.
32122 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
32123 (create_empty_bb): Call create_basic_block_1.
32124 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
32125 split_block_after_labels.
32126 * omp-low.c (expand_parallel_call): Likewise.
32127 (expand_omp_target): Likewise.
32128 (simd_clone_adjust): Likewise.
32129 * tree-chkp.c (chkp_get_entry_block): Likewise.
32130 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
32131 create_basic_block overload.
32132 (cgraph_node::expand_thunk): Likewise.
32133 * tree-cfg.c (make_blocks): Likewise.
32134 (handle_abnormal_edges): Likewise.
32135 * tree-inline.c (copy_bb): Likewise.
32137 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32139 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
32141 (*xor_one_cmplsidi3_ze): Likewise.
32143 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
32145 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
32146 use df_remove_problem rather than manually removing problems, leaving
32147 holes in df->problems_in_order[].
32149 2015-04-21 Tom de Vries <tom@codesourcery.com>
32151 PR tree-optimization/65802
32152 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
32154 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32156 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
32158 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
32159 at '.'. Assert that there's enough space for everything.
32161 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
32163 PR tree-optimization/64950
32165 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
32168 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
32171 2015-04-20 Shiva Chen <shiva0217@gmail.com>
32173 PR rtl-optimization/64916
32174 * cfgcleanup.c (values_equal_p): New function.
32175 (can_replace_by): Use it.
32177 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
32180 * doc/invoke.texi ([-Wnarrowing]): Update.
32182 2015-04-20 Jeff Law <law@redhat.com>
32184 PR tree-optimization/65658
32185 * tree-ssa-threadupdate.c (redirection_block_p): Remove
32186 redundant test for GIMPLE_ASSIGN in last change.
32188 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
32190 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
32191 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
32192 (legitimize_tls_address): Ditto.
32193 (ix86_expand_move): Ditto.
32194 (ix86_expand_binary_operator): Remove reload_in_progress checks.
32195 (ix86_expand_unary_operator): Ditto.
32196 * config/i386/predicates.md (index_register_operand): Ditto.
32198 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
32200 * reorg.c (try_merge_delay_insns): Improve correctness checking
32201 for targets with multiple delay slots.
32203 2015-04-20 Jeff Law <law@redhat.com>
32205 PR tree-optimization/65658
32206 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
32209 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
32211 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
32212 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
32215 2015-04-20 Jakub Jelinek <jakub@redhat.com>
32218 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
32220 2015-04-20 Richard Biener <rguenther@suse.de>
32222 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
32223 * gimple-fold.c (gimple_build_valueize): New function.
32224 (gimple_build): Always use gimple_build_valueize as valueize hook.
32226 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
32229 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
32230 and overwrite variable parts if <= 1/2 the elements are variable.
32232 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
32234 PR rtl-optimization/65805
32235 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
32236 Don't use difference of offset and previous offset if
32237 update_sp_offset is non-zero.
32238 (eliminate_regs_in_insn): Ditto.
32239 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
32240 lra_eliminate_regs_1 call.
32241 * lra-constraints.c (get_equiv_with_elimination): Ditto.
32243 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
32245 * hash-table.h: Remove version of hash_table that stored value_type *.
32246 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
32247 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
32248 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
32249 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
32250 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
32251 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
32252 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
32253 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
32254 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
32255 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
32256 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
32257 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
32258 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
32259 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
32260 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
32261 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
32263 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32264 Jakub Jelinek <jakub@redhat.com>
32267 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
32268 subsequent SH_NONE operand does not overwrite an existing *special
32270 (adjust_extract): Handle case where a vec_extract operation is
32271 wrapped in a PARALLEL.
32273 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
32276 * config/i386/i386.c (ix86_binds_local_p): Define only if
32277 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
32279 2015-04-17 Jeff Law <law@redhat.com>
32281 PR tree-optimization/47679
32282 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
32283 * tree-ssa-scopedtables.c: New file.
32284 * tree-ssa-scopedtables.h: New file.
32285 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
32286 (const_and_copies): Change name/type.
32287 (record_const_or_copy): Move into tree-ssa-scopedtables.c
32288 (record_const_or_copy_1): Similarly.
32289 (restore_vars_to_original_value): Similarly.
32290 (pass_dominator::execute): Create and destroy const_and_copies table.
32291 (thread_across_edge): Update passing of const_and_copies.
32292 (record_temporary_equivalence): Use method calls rather than
32293 manipulating const_and_copies directly.
32294 (record_equality, cprop_into_successor_phis): Similarly.
32295 (dom_opt_dom_walker::before_dom_children): Similarly.
32296 (dom_opt_dom_walker::after_dom_children): Similarly.
32297 (eliminate_redundant_computations): Similarly.
32298 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
32299 (record_temporary_equivalence): Likewise.
32300 (invalidate_equivalences): Likewise.
32301 (record_temporary_equivalences_from_phis): Update due to type
32302 change of const_and_copies. Use method calls rather than
32303 manipulating the stack directly.
32304 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
32305 (thread_through_normal_block, thread_across_edge): Likewise.
32306 (thread_across_edge): Likewise.
32307 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
32308 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
32310 (identify_jump_threads): Update due to type change of equiv_stack.
32311 (finalize_jump_threads): Delete the equiv_stack when complete.
32313 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
32315 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32316 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
32317 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
32319 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
32322 * config.gcc: Exit with a comment when we do not have a major version
32323 number for the FreeBSD target.
32325 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32328 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
32329 maybe_allows_mem bitfields.
32330 (maybe_allows_none_start, maybe_allows_none_end,
32331 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
32332 maybe_allows_mem_end): New variables.
32333 (compute_maybe_allows): New function.
32334 (add_constraint): Use it to initialize maybe_allows_reg and
32335 maybe_allows_mem fields.
32336 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
32337 is_address constraints such that those that allow neither mem nor
32338 reg come first, then those that only allow reg but not mem, then
32339 those that only allow mem but not reg, then the rest.
32340 (write_allows_reg_mem_function): New function.
32341 (write_tm_preds_h): Call it.
32342 * stmt.c (parse_output_constraint, parse_input_constraint): Use
32343 the generated insn_extra_constraint_allows_reg_mem function
32344 instead of always setting *allows_reg = true; *allows_mem = true;
32345 for unknown extra constraints.
32347 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
32350 * output.h (default_binds_local_p_3): New.
32351 * varasm.c (default_binds_local_p_3): Make it public. Take an
32352 argument to indicate if common symbol may be local. If common
32353 symbol may be local, treat non-external variable as defined
32355 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
32356 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
32357 * config/i386/i386.c (ix86_binds_local_p): New.
32358 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
32359 ix86_binds_local_p.
32361 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32364 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
32365 trying mem_loc_descriptor on XEXP (rtl, 0).
32367 2015-04-17 Martin Liska <mliska@suse.cz>
32369 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
32370 Release symbol_compare_collection.
32371 * ipa-reference.c: Add TODO that a vector should be released.
32373 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
32376 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
32377 to new AVR-LibC file layout (bug #44574).
32378 (*avrlibc_devicelib): Same.
32379 * config/avr/avr-mcus.def: Adjust comments.
32380 * config/avr/avr.opt (nodevicelib): Adjust help.
32382 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
32384 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
32386 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
32389 * gimplify.c (gimplify_init_constructor): Always emit a
32390 side-effecting constructor.
32392 2015-04-17 Tom de Vries <tom@codesourcery.com>
32394 PR tree-optimization/64950
32395 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
32396 in cfun->curr_properties.
32397 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
32398 if we generate an IFN_VA_ARG.
32399 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
32400 function if PROP_gimple_lva is not set in src function.
32402 2015-04-17 Tom de Vries <tom@codesourcery.com>
32403 Michael Matz <matz@suse.de>
32405 PR tree-optimization/64950
32406 * gimple-iterator.c (update_modified_stmts): Remove static.
32407 * gimple-iterator.h (update_modified_stmts): Declare.
32408 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
32409 (gimplify_va_arg_internal): New function.
32410 (gimplify_va_arg_expr): Use IFN_VA_ARG.
32411 * gimplify.h (gimplify_va_arg_internal): Declare.
32412 * internal-fn.c (expand_VA_ARG): New unreachable function.
32413 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
32414 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
32415 (expand_ifn_va_arg): New function.
32416 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
32417 (pass_stdarg::execute): Call expand_ifn_va_arg.
32418 (pass_data_lower_vaarg): New pass_data.
32419 (pass_lower_vaarg): New gimple_opt_pass.
32420 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
32421 (make_pass_lower_vaarg): New function.
32422 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
32423 properties_required field.
32424 * passes.def (all_passes): Add pass_lower_vaarg.
32425 * tree-pass.h (PROP_gimple_lva): Add define.
32426 (make_pass_lower_vaarg): Declare.
32428 2015-04-17 Tom de Vries <tom@codesourcery.com>
32430 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
32431 * calls.c (call_expr_flags): Same.
32433 2015-04-17 Tom de Vries <tom@codesourcery.com>
32435 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
32436 (pass_stdarg::execute): ... here.
32438 2015-04-17 Tom de Vries <tom@codesourcery.com>
32439 Michael Matz <matz@suse.de>
32441 * tree-cfg.c (make_blocks_1): Factor out of ...
32442 (make_blocks): ... here.
32443 (make_edges_bb): Factor out of ...
32444 (make_edges): ... here.
32445 (gimple_find_sub_bbs): New function.
32446 * tree-cfg.h (gimple_find_sub_bbs): Declare.
32448 2015-04-17 Tom de Vries <tom@codesourcery.com>
32450 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
32452 2015-04-17 Yury Gribov <y.gribov@samsung.com>
32454 * asan.c (set_sanitized_sections): New function.
32455 (section_sanitized_p): Ditto.
32456 (asan_protect_global): Optionally sanitize user-defined
32458 * asan.h (set_sanitized_sections): Declare new function.
32459 * common.opt (fsanitize-sections): New option.
32460 * doc/invoke.texi (-fsanitize-sections): Document new option.
32461 * opts-global.c (handle_common_deferred_options): Handle new
32464 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32467 * dwarf2out.c (loc_list_from_tree): Return NULL
32468 for DEBUG_EXPR_DECL.
32470 2015-04-17 Christian Bruel <christian.bruel@st.com>
32472 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
32475 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32477 * ira-color.c (setup_left_conflict_sizes_p): Do not process
32478 node itself when computing left conflict subnode size.
32480 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
32482 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
32483 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
32484 *fop_<mode>_1_sse using enabled attribute. Use
32485 register_mixssei387nonimm_operand operand 1 predicate. Change
32486 alternative 3 constraints from "x" to "v".
32488 2015-04-16 Richard Biener <rguenther@suse.de>
32490 PR tree-optimization/65774
32491 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
32492 bit-value tracking on.
32494 2015-04-16 Richard Biener <rguenther@suse.de>
32496 PR tree-optimization/64277
32497 * tree-vrp.c (check_array_ref): Fix anti-range handling,
32498 simplify upper bound handling.
32499 (search_for_addr_array): Simplify.
32500 (check_array_bounds): Handle ADDR_EXPRs here.
32501 (check_all_array_refs): Simplify.
32503 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
32505 * config/i386/i386.c (print_reg): Rewrite function.
32507 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32509 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
32510 Invert the condition.
32512 2015-04-16 Renlin Li <renlin.li@arm.com>
32514 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
32515 simplifications for UNSIGNED_FLOAT.
32517 2015-04-16 Nick Clifton <nickc@redhat.com>
32519 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
32521 (enum rl78_cpu_type): New.
32522 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
32523 (umulhi3_shift_virt): Remove m constraint from operand 1.
32524 (umulqihi3_virt): Likewise.
32525 * config/rl78/rl78.c (rl78_option_override): Add code to process
32526 -mcpu and -mmul options.
32527 (rl78_alloc_physical_registers): Add code to handle divhi and
32528 divsi valloc attributes.
32529 (set_origin): Likewise.
32530 * config/rl78/rl78.h (RL78_MUL_G14): Define.
32531 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
32532 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
32534 (ASM_SPEC): Pass -mcpu on to assembler.
32535 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
32536 (mulqi3_rl78): Likewise.
32537 (mulhi3_g13): Likewise.
32538 (mulhi3): Generate the G13 or G14 versions of the insn directly.
32539 (mulsi3): Likewise.
32540 (mulhi3_g14): Add clobbers of AX and BC.
32541 (mulsi3_g14): Likewise.
32542 (mulsi3_g13): Likewise.
32543 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
32544 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
32545 * config/rl78/rl78.opt (mmul): Initialise value to
32547 (mcpu): New option.
32548 (m13, m14, mrl78): New option aliases.
32549 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
32550 (MULTILIB_DIRNAMES): Add g13 and g14.
32551 * doc/invoke.texi: Document -mcpu and -mmul options.
32553 2015-04-16 Richard Biener <rguenther@suse.de>
32555 * tree-ssa-ccp.c (likely_value): See if we have operands that
32556 are marked as never simulate again and return CONSTANT in this
32558 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
32559 not have any operands that will be simulated again as
32560 not being simulated again.
32562 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
32564 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
32565 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
32566 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
32568 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
32570 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
32571 *float<SWI48:mode><MODEF:mode>2_sse.
32572 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
32574 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
32577 2015-04-15 Tom de Vries <tom@codesourcery.com>
32580 * function.c (push_dummy_function): New function.
32581 (init_dummy_function_start): Use push_dummy_function.
32582 (pop_dummy_function): New function. Factored out of ...
32583 (expand_dummy_function_end): ... here.
32584 * function.h (push_dummy_function, pop_dummy_function): Declare.
32585 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
32586 pop_dummy_function.
32587 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
32589 2015-04-15 Jeff Law <law@redhat.com>
32591 PR tree-optimization/47679
32592 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
32593 need for forward declaration in upcoming changes.
32594 (record_conditions, record_edge_info): Likewise.
32596 PR rtl-optimization/42522
32597 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
32598 SIGN_EXTRACT as a whole object rather than simplifying
32601 2015-04-15 Jakub Jelinek <jakub@redhat.com>
32604 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
32605 and GIMPLE_PREDICT use break instead of return true. For
32606 GIMPLE_EH_DISPATCH, compare dispatch region.
32608 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
32610 * doc/extend.texi (__sync Builtins): Simplify some text. Update
32611 details about the implementation. Make clear preference for
32612 __atomic builtins. Reduce possibility of future change.
32614 2015-04-15 Nick Clifton <nickc@redhat.com>
32616 * config/rx/rx.opt (mallow-string-insns): New option.
32617 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
32618 builtin if string instructions are denied.
32619 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
32620 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
32622 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
32623 * config/rx/rx.md (movstr): Enable pattern only if string
32624 instructions are allowed.
32625 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
32626 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
32627 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
32628 (MULTILIB_DIRNAMES): Add no-strings.
32629 * doc/invoke.texi: Document -mno-allow-string-insns.
32631 2015-04-15 Alan Modra <amodra@gmail.com>
32635 PR middle-end/36043
32636 * calls.c (load_register_parameters): Don't load past end of
32637 mem unless suitably aligned.
32639 2015-04-15 Nick Clifton <nickc@redhat.com>
32641 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
32642 decrement instruction as being frame related.
32643 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
32645 If zero extending a function address enclose the operation in
32647 (rl78_preferred_reload_class): New function.
32648 (TARGET_PREFERRED_RELOAD_CLASS): Define.
32649 * config/rl78/rl78.md: Remove useless constraints in expanders.
32650 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
32651 (mulhi3_rl78): Likewise.
32652 (mulhi3_g13): Likewise.
32653 (mulsi3_rl78): Likewise.
32654 (es_addr): Move to before the multiply patterns.
32656 2015-04-15 Alan Modra <amodra@gmail.com>
32658 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
32659 and sequence_stack. Add seq.
32660 (seq_stack): Delete.
32661 * function.c (prepare_function_start): Don't access x_last_insn.
32662 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
32663 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
32664 * emit_rtl.c (start_sequence, push_topmost_sequence,
32665 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
32666 sequence accessors.
32667 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
32668 remove_insn): Likewise. Simplify.
32669 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
32670 and pop_topmost_sequence.
32671 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
32673 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
32675 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
32678 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
32681 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
32683 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
32684 (LEGACY_INT_REGNO_P): Ditto.
32685 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
32686 (ANY_MASK_REG_P): Remove.
32687 (BND_REG_P): Rename from ANY_BND_REG_P.
32688 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
32689 legacy integer registers. Do not handle MMX_REG_P in a special way.
32690 Merge 64byte and 32byte SSE handling.
32692 2015-04-14 Nick Clifton <nickc@redhat.com>
32694 * expr.c (expand_assignment): Force an address offset computation
32695 into a register before changing its mode.
32696 (expand_expr_real_1): Likewise.
32698 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
32700 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
32701 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
32702 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
32703 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
32704 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
32705 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
32706 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
32707 and __aarch64_vget_lane_any.
32709 2015-04-14 Jakub Jelinek <jakub@redhat.com>
32711 PR rtl-optimization/65761
32712 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
32713 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
32715 2015-04-14 Richard Biener <rguenther@suse.de>
32717 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
32718 (graphite_can_represent_scev): Use POINTER_TYPE_P.
32720 2015-04-14 Richard Biener <rguenther@suse.de>
32722 PR tree-optimization/65758
32723 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
32725 (ccp_lattice_meet): Likewise.
32726 (bit_value_unop): Likewise.
32727 (bit_value_binop): Likewise.
32728 (bit_value_assume_aligned): Likewise.
32730 2015-04-14 Christian Bruel <christian.bruel@st.com>
32732 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
32735 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
32737 PR tree-optimization/63387
32738 * match.pd ((x unord x) | (y unord y) -> (x unord y),
32739 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
32741 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
32743 * config/i386/predicates.md (any_QIreg_operand): Rename from
32744 q_regs_operand. Do not process subregs.
32745 (QIreg_operand): Use QI_REGNO_P predicate.
32746 (ext_QIreg_operand): Ditto.
32747 (ext_register_operand): Ditto.
32748 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
32749 (AND splitters): Ditto.
32750 (AND with -65536 splitter): Add SWI48 mode for operand 0.
32751 (AND with -256 splitter): Use any_QIreg_operand predicate and
32752 SWI248 mode for operand 0.
32753 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
32754 mode for operand 0.
32755 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
32757 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
32759 * doc/plugins.texi: Rewrite first introductory paragraph.
32761 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32763 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
32764 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
32766 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32768 * ipa-profie.c (ipa_profile): Check number of parameters
32769 and possible polymorphic call targets before
32772 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
32774 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
32775 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
32777 2015-04-13 Richard Biener <rguenther@suse.de>
32779 PR tree-optimization/65204
32780 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
32781 takens for bit-CCP.
32783 2015-04-13 Richard Biener <rguenther@suse.de>
32786 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
32787 and cond_not_taken_branch_cost to 4 and 2.
32788 (bdver2_cost): Likewise.
32789 (bdver3_cost): Likewise.
32790 (bdver4_cost): Likewise.
32792 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32794 * hash-table.h (hash_table constructor): Add mem stats.
32795 (alloc_entries): Likewise.
32797 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32799 * ipa-cp.c (ipcp_driver): Relase prev_edge.
32800 * passes.c (execute_one_pass): Only add transform if pass has one.
32802 2015-04-12 Joseph Myers <joseph@codesourcery.com>
32804 * config/i386/i386.c (ix86_option_override_internal): Don't set
32805 -fprefetch-loop-arrays if optimizing for size.
32807 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32808 Gerald Pfeifer <gerald@pfeifer.com>
32810 * doc/contrib.texi (Contributors): Add Martin Jambor and
32813 2015-04-12 Jakub Jelinek <jakub@redhat.com>
32815 * BASE-VER: Set to 6.0.0.
32817 PR tree-optimization/65747
32818 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
32819 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
32821 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
32823 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
32824 sentence. Improve grammar.
32826 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
32828 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
32830 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
32833 * ipa-inline-transform.c (speculation_removed): Remove static var.
32834 (check_speculations): New function.
32835 (clone_inlined_nodes): Do not check spculations.
32836 (inline_call): Call check_speculations.
32837 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
32838 consider non-invariants.
32840 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
32841 Martin Liska <mliska@suse.cz>
32844 * ipa-icf.c (sem_item::compare_cgraph_references): function and
32845 variable can not match.
32846 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
32847 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
32849 2015-04-11 Jakub Jelinek <jakub@redhat.com>
32851 PR tree-optimization/65735
32852 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
32853 Remove visited_phis argument, add visited_bbs, avoid recursing into the
32854 same bb rather than just into the same phi node.
32855 (thread_through_normal_block): Adjust caller.
32857 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
32859 * doc/contrib.texi (Contributors): Add Ira Rosen.
32861 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
32863 * gcov.c (find_source): Fix miswording in error message.
32864 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
32865 (ix86_expand_sse_comi_round): Fix typo in error message.
32867 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
32869 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
32871 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
32873 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
32875 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
32878 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
32879 Print bad_spills_num and insn_pseudos_num.
32881 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32884 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
32885 when creating +1 values for SImode.
32887 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
32890 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
32893 2015-04-10 Jakub Jelinek <jakub@redhat.com>
32894 Iain Sandoe <iain@codesourcery.com>
32897 * configure: Regenerate.
32899 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
32902 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
32904 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
32906 * doc/contrib.texi (Contributors): Add John Marino.
32908 2015-04-09 Jakub Jelinek <jakub@redhat.com>
32910 PR tree-optimization/65709
32911 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
32912 TREE_TYPE (TREE_TYPE (t)).
32914 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
32917 * lra-int.h (lra_bad_spill_regno_start): New.
32918 * lra.c (lra_bad_spill_regno_start): New.
32919 (lra): Set up lra_bad_spill_regno_start. Set up
32920 lra_constraint_new_regno_start unconditionally.
32921 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
32924 2015-04-09 Marek Polacek <polacek@redhat.com>
32925 Jakub Jelinek <jakub@redhat.com>
32927 PR middle-end/65554
32928 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
32929 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
32932 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
32934 PR rtl-optimization/65693
32935 * combine.c (is_parallel_of_n_reg_sets): Move outside of
32938 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
32941 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
32942 device specs file if "device-specs%s" didn't resolve to a path.
32944 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
32947 * config/i386/i386.c (fixup_modeless_constant): New.
32948 (ix86_expand_args_builtin): Fixup modeless constant operand.
32949 (ix86_expand_round_builtin): Ditto.
32950 (ix86_expand_special_args_builtin): Ditto.
32951 (ix86_expand_builtin): Ditto.
32953 2015-04-09 Jakub Jelinek <jakub@redhat.com>
32956 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
32957 any pow2 integer in between 2 and 0x80000000U inclusive.
32959 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
32961 PR rtl-optimization/65693
32962 * combine.c (is_parallel_of_n_reg_sets): Change first argument
32963 from an rtx_insn * to an rtx.
32964 (try_combine): Adjust both callers. Use it once more.
32966 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32968 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
32969 (chkp_make_static_const_bounds): Search existing
32970 symbol by assembler name. Use make_decl_one_only.
32971 (chkp_get_zero_bounds_var): Remove node search which
32972 is now performed in chkp_make_static_const_bounds.
32973 (chkp_get_none_bounds_var): Likewise.
32975 2015-04-08 Michael Witten <mfwitten@gmail.com>
32977 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
32980 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32982 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
32984 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
32986 * doc/extend.texi (__sync Builtins): Fix grammar.
32988 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32990 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
32992 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32994 * varasm.c (emit_local): Move definition of align.
32996 2015-04-08 Julian Brown <julian@codesourcery.com>
32998 * config/nvptx/mkoffload.c (process): Support variable mapping.
33000 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
33002 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
33004 (alpha_write_one_linkage): Correct typo.
33006 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33008 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
33010 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
33012 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
33014 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33016 * tree-chkp.h (chkp_insert_retbnd_call): New.
33017 * tree-chkp.c (chkp_insert_retbnd_call): New.
33018 * ipa-split.c (insert_bndret_call_after): Remove.
33019 (split_function): Use chkp_insert_retbnd_call.
33020 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
33021 bounds for instrumented functions.
33023 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
33026 * calls.c (initialize_argument_information): When producing tail
33027 call also turn SSA_NAMES passed by references to original PARM_DECLs
33029 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
33032 * lra-remat.c (do_remat): Process input and non-input insn
33033 registers separately.
33035 2015-04-07 Jakub Jelinek <jakub@redhat.com>
33038 * valtrack.c (debug_lowpart_subreg): New function.
33039 (dead_debug_insert_temp): Use it.
33041 PR middle-end/65680
33042 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
33043 into signed HOST_WIDE_INT the same as negative bit_offset.
33045 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
33047 * ipa-comdats.c (ipa_comdats): Visit all thunks
33048 to set proper comdat group.
33050 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33053 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
33054 on constants for NEON VSTRUCT modes.
33056 2015-04-07 Jakub Jelinek <jakub@redhat.com>
33057 Iain Sandoe <iain@codesourcery.com>
33060 * configure: Regenerate.
33062 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
33065 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
33066 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
33067 that LFD is used to load double constants instead of LFS. Add
33068 defaults for all costs structures. Add comments for missing
33069 initialization fields.
33070 (size32_cost): Likewise.
33071 (size64_cost): Likewise.
33072 (rs64a_cost): Likewise.
33073 (mpccore_cost): Likewise.
33074 (ppc403_cost): Likewise.
33075 (ppc405_cost): Likewise.
33076 (ppc440_cost): Likewise.
33077 (ppc476_cost): Likewise.
33078 (ppc601_cost): Likewise.
33079 (ppc603_cost): Likewise.
33080 (ppc604_cost): Likewise.
33081 (ppc604e_cost): Likewise.
33082 (ppc620_cost): Likewise.
33083 (ppc630_cost): Likewise.
33084 (ppccell_cost): Likewise.
33085 (ppc750_cost): Likewise.
33086 (ppc7450_cost): Likewise.
33087 (ppc8540_cost): Likewise.
33088 (ppce300c2c3_cost): Likewise.
33089 (ppce500mc_cost): Likewise.
33090 (ppce500mc64_cost): Likewise.
33091 (ppce5500_cost): Likewise.
33092 (ppce6500_cost): Likewise.
33093 (titan_cost): Likewise.
33094 (power4_cost): Likewise.
33095 (power6_cost): Likewise.
33096 (power7_cost): Likewise.
33097 (power8_cost): Likewise.
33098 (ppca2_cost): Likewise.
33099 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
33101 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
33102 instead of XXLOR to copy SFmode to clear out dirty bits created
33103 when SFmode denormals are generated.
33104 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
33105 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
33107 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
33109 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
33110 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
33111 * config/aarch64/aarch64-tune.md: Regenerate.
33113 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
33115 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
33116 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
33117 * config/arm/arm-cores.def (exynos-m1): New core.
33118 * config/arm/arm-tune.md: Regenerate.
33119 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
33120 * config/arm/bpabi.h: Likewise.
33122 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
33124 * ipa-cp (set_single_call_flag): Remove too
33125 restrictive assert.
33127 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
33129 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
33130 GOMP_offload_unregister from the destructor.
33132 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
33134 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
33135 flags for instrumentation thunk.
33136 (chkp_produce_thunks): Likewise.
33138 2015-04-05 Martin Liska <mliska@suse.cz>
33141 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
33142 has computed data structure.
33143 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33145 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
33147 * invoke.texi (inline-unit-growth): Increase growth to 20%
33148 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
33150 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
33153 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
33155 (lra_rematerialization_iter): New.
33156 * lra.c (lra): Initialize lra_rematerialization_iter.
33157 Stop updating lra_constraint_new_regno_start after switching of
33158 inheritance and rematerialization.
33159 * lra-remat.c (lra_rematerialization_iter): New.
33160 (lra_remat): Add printing pass iteration. Do rematerialization
33161 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
33163 2015-04-04 Richard Biener <rguenther@suse.de>
33165 PR tree-optimization/64909
33166 PR tree-optimization/65660
33167 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
33168 to take a cost vector for scalar iteration cost.
33169 (vect_get_single_scalar_iteration_cost): Likewise.
33170 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
33171 Compute the scalar iteration cost into a cost vector.
33172 (vect_get_known_peeling_cost): Use the scalar cost vector to
33173 account for the cost of the peeled iterations.
33174 (vect_estimate_min_profitable_iters): Likewise.
33175 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
33178 2015-04-04 Alan Modra <amodra@gmail.com>
33182 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
33183 0.0 constant unless TARGET_VSX.
33184 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
33187 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33190 * ipa-inline-transform.c (inline_call): Skip sanity check to work
33193 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33196 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
33197 speculative indirect edges to avoid ordering issue.
33199 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33202 * ipa-inline.c (edge_badness): Add combined size to the denominator.
33204 2015-04-03 Jakub Jelinek <jakub@redhat.com>
33206 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
33207 TYPE_ARTIFICIAL on the .omp_data* types.
33209 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33211 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
33212 instrumentation thunks.
33214 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33216 * config/i386/i386.c (ix86_expand_call): Avoid nested
33217 PARALLEL in returned call value.
33219 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33221 * lto-cgraph.c (input_cgraph_1): Always link instrumented
33222 assembler name with original one.
33224 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33226 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
33228 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33230 Revert parts of r216820.
33231 * config/i386/i386.md (movqi_internal): Correct type calculation
33232 for alternatives 3 and 5.
33234 2015-04-02 Jakub Jelinek <jakub@redhat.com>
33236 PR preprocessor/61977
33237 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
33238 predefine __vector/__bool/__pixel macros nor context sensitive
33239 macros for CLK_ASM.
33240 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
33242 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
33244 * config/pa/pa.c (pa_output_move_double): Directly handle register
33245 indexed memory operand. Simplify handling of scaled register indexed
33248 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33251 * config/i386/linux-common.h (MPX_SPEC): New.
33252 (CHKP_SPEC): Add MPX_SPEC.
33253 * doc/invoke.texi (-fcheck-pointer-boudns): Document
33254 possible issues with '-z bndplt' support in linker.
33256 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33258 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
33259 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
33260 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
33261 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
33262 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
33264 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
33266 * config/i386/sync.md (UNSPEC_MOVA): Remove.
33267 (atomic_load<mode>): Change operand 0 predicate to
33268 nonimmediate_operand and fix up the destination when needed.
33270 (atomic_loaddi_fpu): Use UNSPEC_LDA.
33271 (atomic_store<mode>): Change operand 1 predicate to
33272 nonimmendate_operand and move the source to register when needed.
33274 (atomic_store<mode>_1): Use UNSPEC_STA.
33275 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
33276 Fix moves from memory operand. Use UNSPEC_STA.
33278 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
33280 * expmed.c (strict_volatile_bitfield_p): Check that the access will
33281 not cross a MODESIZE boundary.
33282 (store_bit_field, extract_bit_field): Added assertions in the
33283 strict volatile bitfields code path.
33285 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
33288 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
33289 Increase args array size by one to avoid buffer overflow.
33291 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
33293 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
33295 * ipa-inline.c (edge_badness): Add wrapper penalty.
33296 (sum_callers): Move up.
33297 (inline_small_functions): Set single_caller.
33298 * ipa-inline.h (inline_summary): Add single_caller.
33299 * ipa-split.c (split_function): Set split_part.
33300 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
33301 * cgraph.h (cgraph_node): Add split_part.
33303 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
33306 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
33307 Do not split operands 0 and operands 2 to halfmode.
33308 (atomic_compare_and_swap<mode>): Update for
33309 atomic_compare_and_swap<dwi>_doubleword changes.
33311 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
33313 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
33314 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
33315 no caching is done.
33317 2015-03-31 Martin Liska <mliska@suse.cz>
33320 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
33321 has already filled up function summary.
33322 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33324 2015-03-31 Richard Biener <rguenther@suse.de>
33326 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
33329 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
33331 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
33333 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
33334 (s390_asm_output_function_label): Adapt to new signature of
33335 s390_function_num_hotpatch_hw
33336 Optimise the code generating assembler output.
33337 Add comments to assembler file.
33339 2015-03-31 Richard Biener <rguenther@suse.de>
33341 PR middle-end/65626
33342 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
33343 of the noreturn call so it is last and cleanup_control_flow_bb
33344 can do the CFG part.
33346 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
33349 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
33350 same_comdat_group for external symbols.
33351 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
33352 infinite same_comdat_group traversal loop.
33354 2015-03-31 Jakub Jelinek <jakub@redhat.com>
33357 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
33358 automatically to $headers.
33360 2015-03-30 Jakub Jelinek <jakub@redhat.com>
33363 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
33364 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
33366 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
33368 * ipa-prop.c (param_type_may_change_p): Likewise.
33369 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
33370 (remove_unused_scope_block_p): Add in_ctor_dtor_block
33371 argument. Before inlining, preserve
33372 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
33373 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
33375 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
33377 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33380 * ipa-inline.c (edge_badness): Base denominator on callee's
33383 2015-03-27 Martin Jambor <mjambor@suse.cz>
33386 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
33387 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
33388 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
33389 node_calling_single_call.
33390 * ipa-cp.c (count_callers): New function.
33391 (set_single_call_flag): Likewise.
33392 (initialize_node_lattices): Count callers and set single_flag_call if
33394 (incorporate_penalties): New function.
33395 (good_cloning_opportunity_p): Use it, dump new flags.
33396 (propagate_constants_topo): Set node_within_scc flag if appropriate.
33397 * doc/invoke.texi (ipa-cp-recursion-penalty,
33398 ipa-cp-single-call-pentalty): Document.
33400 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33403 * symtab.c (symtab_node::get_partitioning_class): Register vars
33405 * varpool.c (symbol_table::output_variables) Do not assemble unefined
33406 decls for non-symbols.
33408 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
33411 * output.h (default_binds_local_p_2): New.
33412 * varasm.c (default_binds_local_p_2): Renamed to ...
33413 (default_binds_local_p_3): This. Don't return true on protected
33414 data symbol if protected data may be external.
33415 (default_binds_local_p): Use default_binds_local_p_3.
33416 (default_binds_local_p_1): Likewise.
33417 (default_binds_local_p_2): New.
33418 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
33419 default_binds_local_p_2 if TARGET_MACHO is undefined.
33421 2015-03-27 Jakub Jelinek <jakub@redhat.com>
33424 * config/i386/i386.c (legitimize_pic_address): If base
33425 is SYMBOL_REF or LABEL_REF using %rip addressing, force
33426 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
33428 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33431 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
33434 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33437 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
33438 of optimized out indirect call.
33439 (redirect_to_unreachable): Always build symbol table node for
33440 BUILT_IN_UNREACHABLE
33442 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
33445 * ira-costs.c (record_reg_classes): Process all constraint string
33448 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
33450 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
33454 * config/c6x/constraints.md (S3): New constraint.
33455 * config/c6x/c6x.md (real_jump): Use it.
33457 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33459 PR middle-end/65595
33460 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
33461 do redirection if the call is not optimized out.
33463 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
33466 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
33467 (fchkp-check-incomplete-type): Add LTO.
33468 (fchkp-zero-input-bounds-for-main): Likewise.
33469 (fchkp-first-field-has-own-bounds): Likewise.
33470 (fchkp-narrow-bounds): Likewise.
33471 (fchkp-narrow-to-innermost-array): Likewise.
33472 (fchkp-use-static-bounds): Likewise.
33473 (fchkp-use-static-const-bounds): Likewise.
33474 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33476 2015-03-27 Marek Polacek <polacek@redhat.com>
33478 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
33480 2015-03-27 Marek Polacek <polacek@redhat.com>
33483 * ubsan.c (ubsan_create_edge): New function.
33484 (instrument_bool_enum_load): Call it.
33485 (instrument_nonnull_arg): Likewise.
33486 (instrument_nonnull_return): Likewise.
33487 (instrument_object_size): Likewise.
33489 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33491 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
33494 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33497 * lto-streamer.h (class lto_location_cache): New.
33498 (struct data_in): Add location_cache.
33499 (lto_input_location): Update prototype.
33500 (stream_input_location_now): New.
33501 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
33502 pointer to location.
33503 (stream_input_location): Update.
33504 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
33505 (warn_odr): Apply location cache before warning.
33506 (lto_input_location): Update prototype.
33507 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
33508 Use stream_input_location_now.
33509 * lto-streamer-in.c (lto_location_cache::current_cache): New static
33511 (lto_location_cache::cmp_loc): New function.
33512 (lto_location_cache::apply_location_cache): New function.
33513 (lto_location_cache::accept_location_cache): New function.
33514 (lto_location_cache::revert_location_cache): New function.
33515 (lto_location_cache::input_location): New function.
33516 (lto_input_location): Do location caching.
33517 (stream_input_location_now): New function.
33518 (input_eh_region, input_struct_function_base): Use
33519 stream_input_location_now.
33520 (lto_data_in_create): use new.
33521 (lto_data_in_delete): Use delete.
33522 * tree-streamer-in.c (unpack_ts_block_value_fields,
33523 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
33524 lto_input_ts_exp_tree_pointers): Update for cached location api.
33526 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33529 * passes.def: Add pass_nothrow.
33530 * ipa-pure-const.c: (pass_data_nothrow): New.
33531 (pass_nothrow): New.
33532 (pass_nothrow::execute): New.
33533 (make_pass_nothrow): New.
33534 * tree-pass.h (make_pass_nothrow): Declare.
33536 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33538 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
33539 edge to change by speculation resolution or redirection.
33540 (edge_set_predicate): Likewise.
33541 (inline_summary_t::duplicate): Likewise.
33542 (remap_edge_summaries): Likewise.
33544 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33546 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
33548 (can_inline_edge_p): Relax option matching for always inline functions.
33550 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
33553 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
33554 Check operand 4 and operand 0 for equality.
33555 (avx512f_vextract<shuffletype>32x4_1_maskm):
33556 Check operand 6 and operand 0 for equality.
33557 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
33559 (vec_extract_hi_<mode>_maskm): Ditto.
33561 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33563 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
33564 dead calls back to live.
33565 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
33567 (cgraph_node::verify_node): ... here; verify only callee edges,
33569 * cif-code.def (CILK_SPAWN): New code.
33571 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33573 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
33574 (edge_set_predicate): Use it to mark unreachable edges.
33575 (inline_summary_t::duplicate): Remove unnecesary code.
33576 (remap_edge_summaries): Likewise.
33577 (dump_inline_summary): Report contains_cilk_spawn.
33578 (compute_inline_parameters): Compute contains_cilk_spawn.
33579 (inline_read_section, inline_write_summary): Stream
33580 contains_cilk_spawn.
33581 * ipa-inline.c (can_inline_edge_p): Do not touch
33582 DECL_STRUCT_FUNCTION that may not be available;
33583 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
33584 remove check for callee_fun->can_throw_non_call_exceptions and
33585 replace it by optimization attribute check; check for flag_exceptions.
33586 * ipa-inline-transform.c (inline_call): Maintain
33587 DECL_FUNCTION_PERSONALITY
33588 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
33590 2015-03-26 Jakub Jelinek <jakub@redhat.com>
33592 PR tree-optimization/65551
33593 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
33594 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
33596 2015-03-26 Richard Biener <rguenther@suse.de>
33598 PR middle-end/65555
33599 * tree-cfg.c (verify_gimple_call): Do not require a call to
33600 have no LHS if it wasn't recognized as control altering yet.
33602 2015-03-26 Jakub Jelinek <jakub@redhat.com>
33604 PR tree-optimization/64715
33605 * passes.def: Add another instance of pass_object_sizes before ccp1.
33606 * tree-object-size.c (pass_object_sizes::execute): In
33607 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
33608 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
33609 __bos result and the computed constant. Remove redundant
33610 checks, obsoleted by gimple_call_builtin_p test.
33612 * var-tracking.c (variable_tracking_main_1): Don't track
33613 variables for targetm.no_register_allocation targets.
33615 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
33617 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
33618 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
33620 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
33623 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
33624 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
33625 0.0 is correctly setup.
33626 (extenddftf2_internal): Likewise.
33628 2015-03-25 Sebastian Pop <s.pop@samsung.com>
33630 PR tree-optimization/65177
33631 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
33633 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
33634 edges not adjacent on the path to the original code.
33636 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
33639 * doc/install.texi (Building a native compiler): Document new
33640 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
33641 configuration assumes that the host supports the linker plugin.
33643 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
33646 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
33647 chain for generated call.
33649 2015-03-25 Richard Biener <rguenther@suse.de>
33651 * passes.c (pass_manager::execute_early_local_passes): Guard
33652 execution of pass_chkp_instrumentation_passes with
33653 flag_check_pointer_bounds.
33654 (pass_chkp_instrumentation_passes::gate): Likewise.
33656 2015-03-25 Martin Liska <mliska@suse.cz>
33658 PR tree-optimization/65538
33659 * symbol-summary.h (function_summary::~function_summary):
33660 Relese memory for allocated summaries.
33661 (function_summary::release): New function.
33663 2015-03-25 Jakub Jelinek <jakub@redhat.com>
33666 * lto-streamer-out.c (DFS::worklist): New struct.
33667 (DFS::worklist_vec): New data member.
33668 (DFS::next_dfs_num): Remove.
33669 (DFS::DFS): Rewritten using worklist instead of recursion,
33670 using most of code from DFS::DFS_write_tree.
33671 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
33672 pass it to DFS_write_tree calls.
33673 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
33674 quick initial checks push it into worklist_vec and return.
33676 2015-03-25 Richard Biener <rguenther@suse.de>
33678 PR middle-end/65519
33679 * genmatch.c (expr::gen_transform): Re-write to avoid
33680 using gimple_build.
33682 2015-03-25 Bin Cheng <bin.cheng@arm.com>
33684 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
33686 2015-03-25 Bin Cheng <bin.cheng@arm.com>
33688 * config/arm/arm.opt (print_tune_info): New option.
33689 * config/arm/arm.c (arm_print_tune_info): New function.
33690 (arm_file_start): Call arm_print_tune_info.
33691 * config/arm/arm-protos.h (struct tune_params): Add comment.
33692 * doc/invoke.texi (@item -mprint-tune-info): New item.
33693 (-mtune): mention it in ARM Option Summary.
33695 2015-03-25 DJ Delorie <dj@redhat.com>
33697 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
33700 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
33701 Martin Liska <mliska@suse.cz>
33703 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
33704 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
33705 (sem_item::add_type): New function.
33706 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
33707 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
33708 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
33709 (sem_function::equals_wpa): Fix typo.
33710 * ipa-icf.h (sem_item::add_type): New function.
33711 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
33714 2015-03-24 Jakub Jelinek <jakub@redhat.com>
33716 PR tree-optimization/65533
33717 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
33718 with swapped operands, call vect_free_slp_tree on
33719 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
33722 2015-03-24 Richard Biener <rguenther@suse.de>
33724 PR middle-end/65517
33725 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
33726 for fixup if necessary.
33728 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
33730 * doc/extend.texi (Function Attributes): Add @cindex entries
33731 for all attributes and regularize their format. Delete text
33732 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
33733 information about "eightbit_data", "tiny_data", and "model"
33734 variable attributes to the Variable Attributes section. Fix
33735 some obvious typos and copy-editing issues.
33736 (Variable Attributes, Type Attributes): Likewise add/fix
33737 @cindex entries for all attributes.
33739 2015-03-23 Jakub Jelinek <jakub@redhat.com>
33742 * tree-chkp.c (chkp_build_returned_bound): Ignore
33743 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
33745 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
33748 * config/sh/predicates.md (simple_mem_operand,
33749 displacement_mem_operand): Add test for reg.
33750 (short_displacement_mem_operand): Test for displacement_mem_operand
33751 before invoking sh_disp_addr_displacement.
33752 * config/sh/constraints.md (Sdd, Sra): Simplify.
33753 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
33754 Remove redundant displacement_mem_operand tests.
33756 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
33759 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
33760 the same -mmcu=MCU more than once.
33762 2015-03-23 Jakub Jelinek <jakub@redhat.com>
33765 * ipa-devirt.c: Remove duplicate demangle.h include.
33768 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
33770 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
33771 REG_POINTER on *destptr after adjusting it for prologue size.
33774 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
33775 ultimate_alias_target ()->order ints instead of
33776 ultimate_alias_target () pointers.
33778 2015-03-23 Richard Biener <rguenther@suse.de>
33780 PR tree-optimization/65518
33781 * tree-vect-stmts.c (vectorizable_load): Reject single-element
33782 interleaving cases we generate absymal code for.
33784 2015-03-23 Richard Biener <rguenther@suse.de>
33786 PR tree-optimization/65494
33787 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
33789 (vect_analyze_slp_instance): But do that here, always and once.
33791 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33793 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
33794 adding T or multiplying by T+1 and subracting T.
33796 2015-03-22 Jeff Law <law@redhat.com>
33798 PR rtl-optimization/64317
33799 * Makefile.in (OBJS): Add gcse-common.c
33800 * gcse.c: Include gcse-common.h
33801 (struct modify_pair_s): Move structure definition to gcse-common.h
33802 (compute_transp): Move function to gcse-common.c.
33803 (canon_list_insert): Similarly.
33804 (record_last_mem_set_info): Break out some code and put it into
33805 gcse-common.c. Call into the new common code.
33806 (compute_local_properties): Pass additional arguments to compute_transp.
33807 * postreload-gcse.c: Include gcse-common.h and df.h
33808 (modify_mem_list_set, blocks_with_calls): New variables.
33809 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
33810 (get_bb_avail_insn): Pass in the expression index too.
33811 (alloc_mem): Allocate memory for the new bitmaps and lists.
33812 (free_mem): Free memory for the new bitmaps and lists.
33813 (insert_expr_in_table): Record a bitmap index for each entry we
33815 (record_last_mem_set_info): Call into common code in gcse-common.c.
33816 (get_bb_avail_insn): If no available insn was found in the requested
33817 BB. If BB has a single predecessor, see if the expression is
33818 transparent in BB and available in that single predecessor.
33819 (compute_expr_transp): New wrapper for compute_transp.
33820 (eliminate_partially_redundant_load): Pass expression's bitmap_index
33821 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
33822 (gcse_after_reload_main): If there are elements in the hash table,
33823 then compute transparency for all the elements in the hash table.
33824 * gcse-common.h: New file.
33825 * gcse-common.c: New file.
33827 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
33829 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
33831 (System Headers): Likewise.
33833 (Traditional macros): Likewise.
33834 (Invocation): Likewise.
33835 (Option Index): Likewise.
33836 * doc/cppopts.texi (-M): Likewise.
33837 (-finput-charset): Likewise.
33838 (--help): Likewise.
33839 * doc.invoke.texi (AVR Options): Likewise.
33840 (V850 Options): Likewise.
33842 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
33845 * ipa-devirt.c: Include demangle.h
33846 (odr_type_d): Add field rtti_broken.
33847 (odr_subtypes_equivalent_p): Do not require name to match.
33848 (compare_virtual_tables): Fix typo; if type already has ODR violation,
33849 bypass the tests; be ready for function referneces in vtables that are
33850 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
33851 (warn_odr): Give up for nameless types.
33852 (warn_types_mismatch): Report mismatch in mangled names;
33853 report mismatch in anonymous namespaces; look into component types to
33854 give useful error; report when mismatch is dragged in from other ODR
33856 (odr_types_equivalent_p): Match types for being polymorphic; avoid
33857 duplicated diagnostics.
33858 (add_type_duplicate): Reorder checks so more informative ones come
33859 first; fix typo; do not output "the extra base is defined here" when
33861 (BINFO_N_BASE_BINFOS): Relax sanity check.
33863 2015-03-22 Martin Liska <mliska@suse.cz>
33864 Jakub Jelinek <jakub@redhat.com>
33866 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
33867 masks that can potentially include a builtin.
33868 (ix86_add_new_builtins): Introduce fast filter for isa values
33869 that cannot trigger builtin inclusion.
33871 2015-03-22 Martin Liska <mliska@suse.cz>
33873 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
33874 (sem_item::update_hash_by_local_refs): Likewise.
33875 (sem_variable::get_hash): Empty line is fixed.
33876 (sem_item_optimizer::execute): Include adding of hash references.
33877 (sem_item_optimizer::update_hash_by_addr_refs): New function.
33878 (sem_item_optimizer::build_hash_based_classes): Use local hash.
33879 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
33880 (sem_item::update_hash_by_local_refs): Likewise.
33882 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
33885 * ipa-comdats.c (enqueue_references): Walk through thunks.
33886 (ipa_comdats): Likewise.
33887 (set_comdat_group_1): New function.
33889 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
33892 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
33895 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
33896 Gerald Pfeifer <gerald@pfeifer.com>
33898 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
33900 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
33901 Sandra Loosemore <sandra@codesourcery.com>
33903 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
33904 function parameter declaration.
33905 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
33906 Update arguments to nios2_adjust_call_address().
33907 (sibcall_internal): Rename from *sibcall.
33908 (sibcall_value_internal): Rename from *sibcall_value.
33909 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
33910 (nios2_large_got_address): Add target temp reg parameter.
33911 (nios2_got_address): Adjust call to nios2_large_got_address, add
33912 force_reg around it.
33913 (nios2_load_pic_address): Add target temp reg parameter, replace call
33914 to nios2_got_address with corresponding code.
33915 (nios2_legitimize_constant_address): Update call to
33916 nios2_load_pic_address.
33917 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
33918 to use temp reg for PIC loading purposes.
33919 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
33920 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
33921 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
33923 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33925 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
33926 usage of "the @option{...}".
33927 (-Wopenmp-simd): Likewise.
33928 (-fsanitize-recover): Likewise.
33929 (-fsanitize-undefined-trap-on-error): Likewise.
33931 (tracer-dynamic-coverage-feedback): Likewise.
33932 (reorder-block-duplicate-feedback): Likewise.
33933 (loop-unroll-jam-size): Likewise.
33936 (-mabs=legacy): Likewise.
33937 (-mupper-regs-df): Likewise.
33938 (-mupper-regs-sf): Likewise.
33939 (-mpointers-to-nested-functions): Likewise.
33941 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33943 * doc/extend.texi (Cilk Plus Builtins): Add markup.
33945 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33947 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
33948 additional index entries and cross-references.
33949 (-fchkp-check-incomplete-type): Likewise.
33950 (-fchkp-first-field-has-own-bounds): Likewise.
33951 (-fchkp-narrow-to-innermost-array): Likewise.
33952 (-fchkp-use-fast-string-functions): Likewise.
33953 (-fchkp-use-nochk-string-functions): Likewise.
33954 (-fchkp-use-static-const-bounds): Likewise.
33955 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33956 (-fchkp-instrument-marked-only): Likewise.
33957 (-fchkp-use-wrappers): Likewise.
33958 (-static-libmpx): Likewise.
33959 (-static-libmpxwrappers): Likewise.
33960 * doc/extend.texi (bnd_legacy): Likewise.
33961 (bnd_instrument): Likewise.
33962 (bnd_variable_size): Likewise.
33963 (Pointer Bounds Checker builtins): Likewise.
33965 2015-03-21 Tom de Vries <tom@codesourcery.com>
33967 PR tree-optimization/65458
33968 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
33969 * cgraph.h (cgraph_node): Add parallelized_function field.
33970 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
33971 (input_overwrite_node): Read parallelized_function field.
33972 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
33973 parallelized_function on cgraph_node for child_fn.
33974 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
33975 Remove include of gt-tree-parloops.h.
33976 (parallelized_functions): Remove static variable.
33977 (parallelized_function_p): Rewrite using parallelized_function field of
33979 (create_loop_fn): Remove adding to parallelized_functions.
33980 * Makefile.in (GTFILES): Remove tree-parloops.c
33982 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
33984 PR rtl-optimization/64366
33985 * lra.c (lra_update_insn_regno_info): Consider regs in
33986 CALL_INSN_FUNCTION_USAGE memory.
33988 2015-03-20 Richard Biener <rguenther@suse.de>
33990 PR middle-end/64715
33991 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
33992 for type comparison and gcc_checking_assert.
33993 (chrec_fold_plus_poly_poly): Likewise.
33994 (chrec_fold_multiply_poly_poly): Likewise.
33995 (chrec_convert_1): Likewise.
33996 * gimplify.c (gimplify_expr): Remove premature folding of
33997 &X + CST to &MEM[&X, CST].
33999 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34001 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
34003 (ipa_inline): Recompute inline_failed codes.
34004 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34005 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
34008 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
34010 PR rtl-optimization/60851
34011 * recog.c (constrain_operands): Accept a pseudo register before reload
34012 for LRA enabled targets.
34014 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
34017 * config/rs6000/predicates.md (easy_fp_constant): Remove special
34018 -ffast-math handling that kept non-0 constants live in the RTL
34019 until reload. Remove logic testing the number of instructions it
34020 took to create a constant in a GPR that was never used, due to a
34021 test for soft-float earlier.
34022 (memory_fp_constant): Delete, no longer used.
34024 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
34025 alternatives for loading non-0 constants into GPRs for hard
34026 floating point that is no longer needed due to changes in
34027 easy_fp_constant. Add support for loading 0.0 into GPRs.
34028 (mov<mode>_hardfloat32): Likewise.
34029 (mov<mode>_hardfloat64): Likewise.
34030 (mov<mode>_64bit_dm): Likewise.
34031 (movtd_64bit_nodm): Likewise.
34032 (pre-reload move FP constant define_split): Delete define_split,
34033 since it is no longer used.
34034 (extenddftf2_internal): Remove GHF constraints that are not valid
34037 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
34039 PR rtl-optimization/63491
34040 * lra-constraints.c (check_and_process_move): Use src instead of
34041 sreg. Remove some dead code.
34043 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
34046 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
34047 (sem_variable::merge): Likewise.
34049 2015-03-19 Martin Liska <mliska@suse.cz>
34052 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
34053 all fields of cgraph_thunk_info.
34055 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
34057 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
34058 clone instrumented thunks.
34060 2015-03-19 Richard Biener <rguenther@suse.de>
34063 2015-03-10 Richard Biener <rguenther@suse.de>
34065 PR middle-end/63155
34066 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34067 * tree-ssa-coalesce.c: Include timevar.h.
34068 (attempt_coalesce): Handle graph being NULL.
34069 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34070 Split out abnormal coalescing to ...
34071 (perform_abnormal_coalescing): ... this function.
34072 (coalesce_ssa_name): Perform abnormal coalescing without computing
34074 (verify_ssa_coalescing_worker): New function.
34075 (verify_ssa_coalescing): Likewise.
34077 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
34078 Jakub Jelinek <jakub@redhat.com>
34081 * tsan.c (instrument_gimple): Clear tail call flag on
34084 2015-03-19 Jakub Jelinek <jakub@redhat.com>
34087 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
34088 call in the return bb.
34089 (find_split_points): Add RETURN_BB argument, don't call
34091 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
34092 if true append TSAN_FUNC_EXIT internal call after the call to
34093 the split off function.
34094 (execute_split_functions): Call find_return_bb here.
34095 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
34096 Adjust find_split_points and split_function calls.
34098 2015-03-18 DJ Delorie <dj@redhat.com>
34100 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
34101 (iorqi3_virt): Likewise.
34103 2015-03-18 Tom de Vries <tom@codesourcery.com>
34105 * tree-parloops.c (parallelize_loops): Make static.
34106 * tree-parloops.h (parallelize_loops): Remove extern declaration.
34108 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
34110 PR middle-end/64491
34112 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
34114 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
34115 condition would be removed due to undefined behaviour.
34117 2015-03-18 Martin Liska <mliska@suse.cz>
34120 * cgraph.c (cgraph_node::get_create): Remove unnecessary
34121 xstrdup_for_dump wrapper.
34122 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
34124 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
34125 with xstrdup_for_dump.
34126 (sem_variable::equals): Likewise.
34127 (sem_item_optimizer::read_section): Use symtab_node::name instead of
34129 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
34130 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
34131 symtab_node::asm_name with xstrdup_for_dump.
34132 (congruence_class::dump): Use symtab_node::name instead of
34134 * ipa-icf.h (symtab_node::name): Remove.
34135 (symtab_node::asm_name): Likewise.
34137 2015-03-18 Jakub Jelinek <jakub@redhat.com>
34139 PR tree-optimization/65450
34140 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
34142 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
34143 it instead of duplicate_ssa_name_ptr_info.
34146 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
34148 2015-03-18 Richard Biener <rguenther@suse.de>
34150 * tree-data-ref.h (struct access_matrix): Remove.
34151 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
34152 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
34153 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
34154 (am_vector_index_for_loop): Likewise.
34155 (struct data_reference): Remove access_matrix member.
34156 (DR_ACCESS_MATRIX): Remove.
34157 (lambda_vector_new): Add comment.
34158 (lambda_matrix_new): Use XOBNEWVEC.
34160 2015-03-18 Richard Biener <rguenther@suse.de>
34162 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
34163 (pass_ch::execute): Cleanup the CFG only if we did sth.
34164 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
34166 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34168 * expmed.c (synth_mult): Use std::swap instead of manually
34169 swapping algorithms.
34171 2015-03-18 Jakub Jelinek <jakub@redhat.com>
34174 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
34176 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
34179 * config/avr/avr.opt (-nodevicelib): New option.
34180 * doc/invoke.texi (AVR Options): Document it.
34181 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
34182 libgcc.a, libc.a, libm.a.
34183 * config/avr/specs.h: Same.
34184 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
34185 which don't (directly) depend on the device. Print more help.
34186 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
34187 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
34188 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
34190 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
34191 for specs file name.
34192 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
34193 * config/avr/avr-mcus.def: Adjust initializers and comments.
34195 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
34197 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
34198 DECL_ONE_ONLY to check if decl is one only.
34199 * ipa-split.c (consider_split): Limit splitt of one only functions.
34201 2015-03-16 Jakub Jelinek <jakub@redhat.com>
34203 PR tree-optimization/65427
34204 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
34206 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
34208 2015-03-16 Marek Polacek <polacek@redhat.com>
34210 * cgraph.h (add_new_static_var): Remove declaration.
34211 * varpool.c (add_new_static_var): Remove function.
34213 2015-03-16 Jakub Jelinek <jakub@redhat.com>
34215 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
34216 instead of vec<tree> * with vec_alloc and release for args.
34219 PR middle-end/65431
34220 * omp-low.c (delete_omp_context): Only splay_tree_delete
34221 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
34222 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
34224 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
34227 * cfgexpand.c (align_base): New function.
34228 (alloc_stack_frame_space): Call it.
34229 (expand_stack_vars): Align prev_frame to be sure
34230 data->asan_vec elements aligned properly.
34232 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
34234 PR middle-end/65409
34235 * expr.c (store_field): Do not do a direct block copy if the source is
34236 a PARALLEL with BLKmode.
34238 2015-03-16 Tom de Vries <tom@codesourcery.com>
34240 PR middle-end/65414
34242 2015-03-12 Tom de Vries <tom@codesourcery.com>
34244 PR rtl-optimization/64895
34245 * lra-lives.c (check_pseudos_live_through_calls): Use
34246 actual_call_used_reg_set instead of call_used_reg_set, if available.
34248 2015-03-16 Alan Modra <amodra@gmail.com>
34251 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
34252 Modify Z->r bswapdi splitter to use dest in place of scratch.
34253 In r->Z and Z->r bswapdi splitter rename word_high, word_low
34254 to word1, word2 and rearrange logic to suit.
34255 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
34256 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
34257 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
34258 Add one '?' on r->r. Modify Z->r splitter to avoid need for
34261 2015-03-14 Jakub Jelinek <jakub@redhat.com>
34263 PR tree-optimization/65369
34264 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
34265 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
34266 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
34268 PR tree-optimization/65418
34269 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
34270 are casts in the first PLUS_EXPR operand, ensure tbias and
34271 *totallowp are in the inner type.
34273 PR rtl-optimization/65401
34274 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
34275 argument. If true, adjust_address_nv of x with big-endian
34276 correction for the mode widening to GET_MODE (y).
34277 (make_field_assignment): Don't do MEM mode widening here.
34278 Use MEM_P instead of GET_CODE == MEM.
34280 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
34282 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
34283 the external decls.
34285 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34288 * config/arm/arm.c (arm_gen_constant, AND case): Use
34289 ARM_SIGN_EXTEND when constructing AND mask.
34291 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34293 * graph.c (print_graph_cfg): Make function names visible and append
34294 parenthesis to it. Also make groups of basic blocks belonging to the
34295 same function visible.
34297 2015-03-12 Richard Biener <rguenther@suse.de>
34299 PR middle-end/44563
34300 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
34301 to avoid quadratic behavior with inline expansion splitting blocks.
34302 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
34303 with the successor if the predecessor will be merged with it.
34304 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
34305 entry block with its successor.
34307 2015-03-13 Richard Biener <rguenther@suse.de>
34309 PR middle-end/44563
34310 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
34311 (cleanup_tree_cfg_1): Do not call it.
34312 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
34313 (fixup_noreturn_call): Mark the stmt as control altering.
34314 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
34316 (pass_data_fixup_cfg): Produce a dump file.
34317 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
34318 (need_noreturn_fixup): New global.
34319 (pass_dominator::execute): Fixup queued noreturn calls.
34320 (optimize_stmt): Queue calls that became noreturn for fixup.
34321 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
34322 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
34323 (el_to_fixup): New global.
34324 (eliminate_dom_walker::before_dom_childre): Queue calls that
34325 became noreturn for fixup.
34326 (eliminate): Fixup queued noreturn calls.
34327 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
34328 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
34329 (substitute_and_fold_dom_walker::before_dom_children): Queue
34330 alls that became noreturn for fixup.
34331 (substitute_and_fold): Fixup queued noreturn calls.
34333 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
34335 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
34336 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
34337 are building; for methods check ODR type of class they belong to if
34338 they may lead to a polymorphic call.
34339 (sem_function::compare_polymorphic_p): Be bit smarter about testing
34340 when function may lead to a polymorphic call.
34341 (sem_function::compare_type_list): Remove.
34342 (sem_variable::equals): Update use of compatible_types_p.
34343 (sem_variable::parse_tree_refs): Remove.
34344 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
34346 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
34348 (func_checker::compatible_polymorphic_types_p): Break out from ...
34349 (unc_checker::compatible_types_p): ... here.
34350 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
34352 (unc_checker::compatible_types_p): Update.
34353 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
34356 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34358 PR rtl-optimization/65235
34359 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
34360 When first element of vec_concat is const_int, calculate its size
34361 using second element.
34363 2015-03-12 Richard Biener <rguenther@suse.de>
34365 PR middle-end/65270
34366 * fold-const.c (operand_equal_p): Fix ordering of resetting
34367 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
34369 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
34371 * config/s390/s390.c (s390_reorg): Move code to output nops after label
34373 (s390_asm_output_function_label): Likewise.
34374 * config/s390/s390.c (s390_asm_output_function_label):
34375 Fix function label alignment with -mhtopatch.
34376 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
34377 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
34378 ("nop_2_byte"): New define_insn.
34379 ("nop_4_byte"): Likewise.
34380 ("nop_6_byte"): Likewise.
34381 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
34382 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
34384 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
34387 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
34390 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
34393 * toplev.c (process_options): Restrict Pointer Bounds Checker
34394 usage with Address Sanitizer.
34396 2015-03-12 Richard Biener <rguenther@suse.de>
34398 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
34400 * omp-low.c (expand_omp_taskreg): Split block before removing
34402 (expand_omp_target): Likewise.
34403 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
34404 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
34405 stmt to split_block.
34407 2015-03-12 Tom de Vries <tom@codesourcery.com>
34409 PR rtl-optimization/64895
34410 * lra-lives.c (check_pseudos_live_through_calls): Use
34411 actual_call_used_reg_set instead of call_used_reg_set, if available.
34413 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34415 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
34416 (cgraph_node::remove): Likewise.
34417 (cgraph_node::get_untransformed_body): Likewise.
34418 * varpool.c (varpool_node::remove): Likewise.
34419 (varpool_node::get_constructor): Add sanity check.
34421 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
34423 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
34425 (-fabi-compat-version): Likewise.
34426 (-ffriend-injection): Likewise.
34427 (-Wdeclaration-after-statement): Likewise.
34428 (-fomit-frame-pointer): Likewise.
34429 (-ftree-coalesce-inlined-vars): Likewise.
34430 (-fvisibility=): Likewise.
34431 * doc/extend.texi (Typeof): Likewise.
34432 (Zero Length): Likewise.
34433 (Escaped Newlines): Likewise.
34434 (Compound Literals): Likewise.
34435 (Function Attributes): Likewise.
34436 (Label Attributes): Likewise.
34437 (Type Attributes): Likewise.
34438 (Function Names): Likewise.
34439 (Other Builtins): Likewise.
34440 (Function Specific Option Pragmas): Likewise.
34441 (C++ Interface): Likewise.
34443 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
34445 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
34447 2015-03-11 Marek Polacek <polacek@redhat.com>
34449 PR tree-optimization/65388
34450 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
34452 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
34455 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
34456 * configure: Regenerate.
34457 * config.in: Regenerate.
34458 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
34459 [-mn-flash]: Document it.
34460 [__AVR_ARCH__]: Document avrtiny.
34462 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
34463 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
34464 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
34466 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34468 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
34470 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
34473 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
34474 allow reloads of PLUS in floating point/VSX registers.
34476 2015-03-11 Junmo Park <junmoz.park@samsung.com>
34478 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
34479 crypto_sha256_fast.
34480 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
34482 2015-03-11 Richard Biener <rguenther@suse.de>
34484 PR tree-optimization/65310
34485 * tree-sra.c (build_ref_for_offset): Also preserve larger
34488 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
34490 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
34492 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34495 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
34497 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
34499 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34501 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
34502 (sem_function::equals_wpa): ... here.
34504 2015-03-10 Marek Polacek <polacek@redhat.com>
34505 Jakub Jelinek <jakub@redhat.com>
34508 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
34509 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
34512 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34515 * config/rs6000/t-linux: For powerpc64* target set
34516 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
34518 2015-03-10 Richard Biener <rguenther@suse.de>
34520 PR middle-end/44563
34521 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
34522 for redirect_all_calls.
34524 2015-03-10 Marek Polacek <polacek@redhat.com>
34526 * gdbinit.in (pcfun): Define and document.
34528 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
34530 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
34531 of libgomp-plugin.h.
34532 (find_target_compiler): Support a case when the path to gcc is
34533 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
34534 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
34535 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
34537 (main): Use GCC_INSTALL_NAME as target_driver_name.
34538 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
34540 (mkoffload.o): Remove obsolete include path and defines.
34541 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
34543 2015-03-10 Richard Biener <rguenther@suse.de>
34545 PR middle-end/63155
34546 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34547 * tree-ssa-coalesce.c: Include timevar.h.
34548 (attempt_coalesce): Handle graph being NULL.
34549 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34550 Split out abnormal coalescing to ...
34551 (perform_abnormal_coalescing): ... this function.
34552 (coalesce_ssa_name): Perform abnormal coalescing without computing
34554 (verify_ssa_coalescing_worker): New function.
34555 (verify_ssa_coalescing): Likewise.
34557 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
34560 * config.gcc (extra_options) [avr]: Remove.
34561 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
34562 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
34563 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
34565 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
34566 (-mmcu=): Add Var and MissingArgError properties.
34568 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
34569 * config/avr/t-multilib: Regenerate.
34570 * config/avr/specs.h: New file.
34571 * config/avr/driver-avr.c: New file.
34572 * config/avr/genopt.sh: Remove file.
34573 * config/avr/avr-tables.opt: Remove file.
34574 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
34575 * config/avr/avr-c.c: Same.
34576 * avr-arch.h: Same.
34577 (avr_current_device): Remove proto.
34578 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
34579 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
34580 (EXTRA_SPEC_FUNCTIONS): Define.
34581 (avr_devicespecs_file): New specs function proto.
34582 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
34583 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
34584 (avr_current_device): Remove definition and usage.
34585 (avr_set_core_architecture): New static function.
34586 (avr_option_override): Use it.
34587 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
34588 (mcu_name): New static array.
34589 (comparator, avr_archs_str, avr_mcus_str): New static functions.
34590 (avr_inform_devices, avr_inform_core_architectures): New functions.
34591 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
34592 (avrlibc.h) [WITH_AVRLIBC]: Include.
34593 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
34594 (print_mcu): Rewrite from scratch.
34595 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
34596 Forward to avr-specific specs defined in device-specs file.
34597 * config/avr/t-avr (driver-avr.o): New rule.
34598 (avr-devices.o): Depend on avr-arch.h.
34599 (avr-mcus): No more depend on avr-tables.opt.
34600 (avr-tables.opt): Remove rule.
34601 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
34603 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34605 * c-family/c.opt (fchkp-use-wrappers): New.
34606 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
34607 (chkp_wrap_function): New.
34608 (chkp_build_instrumented_fndecl): Support wrapped
34610 * doc/invoke.texi (-fcheck-pointer-bounds): New.
34611 (-fchkp-check-incomplete-type): New.
34612 (-fchkp-first-field-has-own-bounds): New.
34613 (-fchkp-narrow-bounds): New.
34614 (-fchkp-narrow-to-innermost-array): New.
34615 (-fchkp-optimize): New.
34616 (-fchkp-use-fast-string-functions): New.
34617 (-fchkp-use-nochk-string-functions): New.
34618 (-fchkp-use-static-bounds): New.
34619 (-fchkp-use-static-const-bounds): New.
34620 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
34621 (-fchkp-check-read): New.
34622 (-fchkp-check-write): New.
34623 (-fchkp-store-bounds): New.
34624 (-fchkp-instrument-calls): New.
34625 (-fchkp-instrument-marked-only): New.
34626 (-fchkp-use-wrappers): New.
34627 (-static-libmpx): New.
34628 (-static-libmpxwrappers): New.
34630 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34632 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
34633 (CHKP_SPEC): Add wrappers library.
34634 * c-family/c.opt (static-libmpxwrappers): New.
34636 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34638 * config/i386/linux-common.h (LIBMPX_LIBS): New.
34639 (LIBMPX_SPEC): New.
34641 * gcc.c (CHKP_SPEC): New.
34642 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
34643 * c-family/c.opt (static-libmpx): New.
34645 2015-03-10 Richard Biener <rguenther@suse.de>
34647 PR middle-end/44563
34648 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
34650 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
34651 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
34652 (cgraph_add_edge_to_call_site_hash): Likewise.
34653 (cgraph_node::get_edge): Likewise.
34654 (cgraph_edge::set_call_stmt): Likewise.
34655 (cgraph_edge::remove_caller): Likewise.
34657 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
34659 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
34660 (callee_saved_gpr_regs_size): ... this.
34661 (callee_saved_regs_first_regno): Rename to ...
34662 (callee_saved_first_gpr_regno): ... this.
34663 (callee_saved_regs_last_regno) Rename to ...
34664 (callee_saved_last_gpr_regno): ... this.
34665 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
34667 (nds32_initial_elimination_offset): Likewise.
34668 (nds32_expand_prologue): Likewise.
34669 (nds32_expand_epilogue): Likewise.
34670 (nds32_expand_prologue_v3push): Likewise.
34671 (nds32_expand_epilogue_v3pop): Likewise.
34672 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
34673 Adjust renamed variables.
34674 (nds32_output_stack_pop): Likewise.
34676 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
34678 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
34681 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34683 PR rtl-optimization/65321
34684 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
34686 * var-tracking.c (use_narrower_mode): Likewise.
34688 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34690 PR tree-optimization/65355
34691 * varasm.c (notice_global_symbol): Do not produce RTL.
34692 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
34694 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
34695 check for section anchors.
34697 2015-03-10 Alan Modra <amodra@gmail.com>
34700 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
34701 to be single-arch by default. Set cpu_is_64bit for powerpc64
34702 given --with-cpu=native.
34703 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
34704 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
34706 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
34707 rs6000_isa_flags rather than TARGET_64BIT.
34709 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
34710 Kaz Kojima <kkojima@gcc.gnu.org>
34712 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
34714 2015-03-09 Jakub Jelinek <jakub@redhat.com>
34717 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
34718 on a TREE_BINFO, instead use BINFO_TYPE.
34720 2015-03-09 Richard Biener <rguenther@suse.de>
34722 PR middle-end/65270
34723 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
34724 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
34725 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
34726 of that. When comparing dereferences compare alignment.
34727 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
34729 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
34731 * ipa-inline-analysis.c (check_callers): Check
34732 node->can_remove_if_no_direct_calls_and_refs_p.
34733 (growth_likely_positive): Reorganize to call
34734 can_remove_if_no_direct_calls_p later.
34735 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
34736 will_be_removed_from_program_if_no_direct_calls_p): Add
34737 will_inline parameter.
34738 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
34739 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34740 Handle inliner case correctly.
34742 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
34744 PR tree-optimization/63743
34745 * cfgexpand.c (reorder_operands): Also reorder if only second operand
34746 had its definition forwarded by TER.
34748 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
34751 * ipa-utils.h (types_odr_comparable): Add strict argument.
34752 * ipa-devirt.c: Fix whitespace;
34753 (odr_hasher): Remove.
34754 (odr_name_hasher, odr_vtable_hasher): New hashers.
34755 (can_be_name_hashed_p): New predicate.
34756 (hash_type_name): remove.
34757 (hash_odr_name): New.
34758 (odr_name_hasher::hash): new.
34759 (can_be_vtable_hashed_p): New.
34760 (hash_odr_vtable): New.
34761 (odr_vtable_hasher::hash): New.
34762 (types_same_for_odr): Add strict parameter.
34763 (types_odr_comparable): Likewise.
34764 (odr_name_hasher::equal): New.
34765 (odr_vtable_hasher::equal): New.
34766 (odr_name_hasher::remove): New.
34767 (odr_hash_type): Change to hash_table<odr_name_hasher>.
34768 (odr_vtable_hash_type): New.
34769 (odr_vtable_hash): New.
34770 (odr_subtypes_equivalent_p): Do strict comparsion.
34771 (add_type_duplicate): Merge type names; cleanup; avoid type
34773 (register_odr_type): Initialize vtable hash.
34774 (build_type_inheritance_graph): Likewise
34775 (get_odr_type): Reorg to use two hashes.
34776 (dump_possible_polymorphic_call_targets): Move sanity check after debug
34778 (ipa_devirt): Dump type_inheritance_graph.
34779 (types_same_for_odr): Add strict mode.
34781 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34784 * cgraph.h (symtab_node): Add definition_alignment,
34785 can_increase_alignment_p and increase_alignment.
34786 * symtab.c (symtab_node::can_increase_alignment_p,
34787 increase_alignment_1, symtab_node::increase_alignment,
34788 symtab_node::definition_alignment): New.
34789 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
34790 can_increase_alignment_p.
34791 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
34792 * tree-vect-stmts.c (ensure_base_align): Likewise.
34793 * varasm.c (function_section_1): Use definition_alignment.
34794 (assemble_start_function): Likewise.
34795 (emit_local): likewise.
34796 (build_constant_desc): Likewsie.
34797 (output_constant_def_contents): Likewise.
34798 (place_block_symbol): Likewise.
34799 (output_object_block): Likewise.
34801 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34804 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
34805 when outputting debug.
34807 2015-03-07 Marek Polacek <polacek@redhat.com>
34808 Martin Uecker <uecker@eecs.berkeley.edu>
34811 * doc/invoke.texi: Update description of -fsanitize=bounds.
34813 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
34815 * tree-ssa-phiopt.c (neg_replacement): Remove.
34816 (tree_ssa_phiopt_worker): Remove negate optimization.
34818 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34821 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
34823 2015-03-06 Richard Biener <rguenther@suse.de>
34825 PR middle-end/64928
34826 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
34827 and liveout_obstack members.
34828 (calculate_live_on_exit): Remove.
34829 (calculate_live_ranges): Change declaration.
34830 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
34831 (new_tree_live_info): Adjust.
34832 (calculate_live_ranges): Delete livein when not wanted.
34833 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
34834 Deal with partly deleted live info.
34835 (loe_visit_block): Remove temporary bitmap by using
34836 bitmap_ior_and_compl_into.
34837 (live_worklist): Adjust accordingly.
34838 (calculate_live_on_exit): Make static.
34839 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
34840 we do not need livein.
34842 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
34844 * real.c (real_from_string): Fix typo in assertion.
34846 2015-03-06 Alex Velenko <alex.velenko@arm.com>
34848 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
34851 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34853 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
34855 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
34858 * lra-assigns.c (find_hard_regno_for): Rename to
34859 find_hard_regno_for_1. Add a new parameter.
34860 (find_hard_regno_for): New function using find_hard_regno_for_1.
34862 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
34864 PR rtl-optimization/65067
34865 * expmed.c (store_bit_field, extract_bit_field): Reworked the
34866 strict volatile bitfield handling.
34868 2015-03-05 Martin Liska <mliska@suse.cz>
34871 * ipa-icf.c (sem_variable::equals): Compare variables types.
34873 2015-03-05 Richard Henderson <rth@redhat.com>
34876 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
34877 correctly check weak symbol binding.
34879 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
34881 PR middle-end/65315
34882 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
34885 2015-03-05 Martin Liska <mliska@suse.cz>
34887 * ipa-inline.c (inline_small_functions): Set default value to
34888 prevent warning during bootstrap.
34889 * tree.h: Add pragma guard that ignores false positives during
34892 2015-03-05 Richard Biener <rguenther@suse.de>
34894 PR tree-optimization/65310
34895 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
34896 Properly preserve alignment of the base of the access.
34898 2015-03-05 Richard Biener <rguenther@suse.de>
34901 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
34902 Compare dependence info.
34904 2015-03-05 Richard Biener <rguenther@suse.de>
34906 PR middle-end/65233
34907 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
34909 (walk_ssa_copies): Revert last chage. Instead do not walk
34910 SSA names registered for SSA update.
34912 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34915 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
34916 vtable references for their containing type.
34917 (sem_function::equals_wpa): Compare TYPE_RESTRICT
34918 and type attributes.
34920 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
34922 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
34923 before negating it.
34924 * stor-layout.c (finalize_record_size): Revert latest change.
34926 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
34928 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
34930 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34932 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
34933 for correct comdat handling.
34934 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34936 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
34937 (used_from_object_file_p_worker): Remove.
34938 (cgraph_node::only_called_directly_or_alised): Add
34939 used_from_object_file_p.
34940 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
34941 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
34942 can_remove_if_no_direct_calls_and_refs_p.
34944 2015-03-04 Nick Clifton <nickc@redhat.com>
34946 * config/rl78/rl78.h (enum reg_class): Remove real registers from
34947 General register class.
34948 * config/rl78/rl78-real.md: Replace general register constraints
34949 with real+virtual register constraints.
34951 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34953 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
34954 from checking for -mhtm option.
34956 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34958 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
34959 (struct ipa_sra_check_caller_data): Add has_thunk field.
34960 (ipa_sra_check_caller): Check for thunk.
34961 (ipa_sra_preliminary_function_checks): Give up on function with
34963 (ipa_early_sra): Use call_for_symbol_and_aliases.
34965 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
34968 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
34969 called for __stack_chk_guard symbol.
34971 2015-03-03 DJ Delorie <dj@redhat.com>
34973 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
34975 (*addhi3_real): Likewise.
34976 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
34977 pattern to match incrementing memory.
34978 * config/rl78/predicates.md (rl78_1_2_operand): New.
34979 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
34980 it's the same and only mem.
34981 (rl78_alloc_physical_registers_op2): If there's effectively only
34982 one MEM, transcode it into HL.
34983 (rl78_far_p): Reject addresses that aren't legitimate.
34985 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
34987 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
34990 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
34992 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
34994 Implement call0 ABI for xtensa
34995 * config/xtensa/constraints.md ("a" constraint): Include stack
34996 pointer in case of call0 ABI.
34997 ("q" constraint): Make empty in case of call0 ABI.
34998 ("D" constraint): Include stack pointer in case of call0 ABI.
34999 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
35000 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
35002 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
35004 (xtensa_regno_to_class): Make it a local variable in the
35005 function xtensa_regno_to_class.
35006 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
35007 macro, function prototype and implementation.
35008 (reg_nonleaf_alloc_order): Make it a local variable in the
35009 function order_regs_for_local_alloc.
35010 (xtensa_conditional_register_usage): New function.
35011 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
35012 (xtensa_valid_move): Allow direct moves to stack pointer
35013 register in call0 ABI.
35014 (xtensa_setup_frame_addresses): Only spill register windows in
35016 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
35017 call0 ABI respectively.
35018 (xtensa_function_arg_1): Only mark a7 register for copying in
35020 (xtensa_call_save_reg): New function.
35021 (compute_frame_size): Add space for callee saved register
35022 storage to the frame size in call0 ABI.
35023 (xtensa_expand_prologue): Generate code to set up stack frame
35024 and save callee-saved registers in call0 ABI.
35025 (xtensa_expand_epilogue): New function.
35026 (xtensa_set_return_address): New function.
35027 (xtensa_return_addr): Calculate return address in call0 ABI.
35028 (xtensa_builtin_saveregs): Only mark a7 register for copying and
35029 emit copying code in windowed ABI.
35030 (order_regs_for_local_alloc): Add preferred register allocation
35031 order for non-leaf function in call0 ABI.
35032 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
35033 (xtensa_asm_trampoline_template): Add trampoline generation for
35035 (xtensa_trampoline_init): Add trampoline initialization for
35037 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
35039 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
35040 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
35041 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
35042 ABI call-used registers.
35043 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
35044 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
35046 (REG_CLASS_CONTENTS): Include all registers into the preferred
35047 reload registers set, adjust the set in the
35048 xtensa_conditional_register_usage.
35049 (xtensa_regno_to_class): Drop variable declaration.
35050 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
35052 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
35054 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
35055 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
35056 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
35057 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
35058 location in call0 ABI.
35059 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
35060 stack adjustment size when handling exception.
35061 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
35062 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
35064 ("return" pattern): Generate ret.n/ret in call0 ABI.
35065 ("epilogue" pattern): Expand epilogue.
35066 ("nonlocal_goto" pattern): Use default in call0 ABI.
35067 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
35068 emit eh_set_a0_* depending on ABI.
35069 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
35070 ("eh_set_a0_call0", "blockage"): New patterns.
35072 2015-03-03 Martin Liska <mliska@suse.cz>
35075 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
35077 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
35080 * config/rs6000/rs6000-tables.opt: Regenerate table.
35082 2015-03-03 Renlin Li <renlin.li@arm.com>
35084 * doc/md.texi (@item ^): Change ? into ^.
35086 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
35088 * doc/tm.texi: Regenerated.
35090 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
35092 * builtins.c (expand_builtin_return_addr): Add
35093 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
35094 surrounding #ifdef.
35095 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
35097 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
35099 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
35101 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
35104 2015-03-03 Martin Jambor <mjambor@suse.cz>
35105 Eric Botcazou <ebotcazou@adacore.com>
35107 * tree-sra.c (ipa_sra_check_caller_data): New type.
35108 (has_caller_p): Removed.
35109 (ipa_sra_check_caller): New function.
35110 (ipa_sra_preliminary_function_checks): Use it.
35112 2015-03-03 Martin Liska <mliska@suse.cz>
35114 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
35115 instead of if branch.
35117 2015-03-03 Martin Liska <mliska@suse.cz>
35120 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
35122 2015-03-23 Jeff Law <law@redhat.com>
35124 PR tree-optimization/65241
35125 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
35126 hash table if INSERT is true.
35128 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35131 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
35133 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35136 * config/avr/avr.c (context.h, tree-pass.h): Include them.
35137 (avr_pass_data_recompute_notes): New static variable.
35138 (avr_pass_recompute_notes): New class.
35139 (avr_register_passes): New static function.
35140 (avr_option_override): Call it.
35142 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35144 Fix various problems with specs file generation.
35147 * config.gcc (extra_gcc_objs) [avr]: Remove.
35148 * config/avr/driver-avr.c: Remove file.
35149 * config/avr/t-avr (driver-avr.o): Remove rule.
35150 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
35151 INCLUDES to build. Depend on TM_H.
35152 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
35153 build warnings. Fix non-matching types and non-existing %-codes.
35155 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
35156 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
35157 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
35158 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
35159 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
35160 (LIBGCC_SPEC): Remove definitions.
35162 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
35164 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
35165 to create a register in testing mode.
35167 2015-03-03 Martin Liska <mliska@suse.cz>
35168 Jan Hubicka <hubicka@ucw.cz>
35171 * cgraph.c (cgraph_node::has_thunk_p): New function.
35172 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
35173 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
35174 (sem_function::merge): Assert is changed.
35176 2015-03-03 Martin Liska <mliska@suse.cz>
35177 Martin Jambor <mjambor@suse.cz>
35180 * ipa-icf.c (sem_item_optimizer::execute): Change function
35181 return value to boolean.
35182 (sem_item_optimizer::merge_classes): Likewise.
35183 (ipa_icf_driver): Return TODO_remove_functions in case there's
35184 a merge operation processed.
35185 * ipa-icf.h: Change function return value to boolean.
35187 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
35190 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
35191 processor type for 64-bit little endian PowerPC.
35193 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
35194 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
35195 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
35196 printing built-in mask so it does not pass NULL pointers.
35198 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
35201 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
35204 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
35205 !ISA_HAS_FP_CONDMOVE.
35207 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
35209 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
35212 2015-03-02 Ulrich Drepper <drepper@gmail.com>
35214 * doc/invoke.texi (Options for Code Generation Conventions):
35215 Fix URL of DSO paper.
35217 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35220 * ipa-inline.c (check_callers): Looks for recursion.
35221 (inline_to_all_callers): Give up on uninlinable or recursive edges.
35222 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
35223 summary of inline clones.
35224 (do_estimate_growth_1): Fix recursion check.
35226 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35229 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
35232 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35233 Aldy Hernandez <aldyh@redhat.com>
35236 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
35237 when checking TYPE_BINFO.
35239 2015-03-02 Richard Biener <rguenther@suse.de>
35242 * ipa-icf-gimple.c: Include builtins.h.
35243 (func_checker::compare_memory_operand): Compare base alignment.
35245 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
35248 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
35249 passed by reference.
35251 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
35254 * tree-chkp.c (chkp_check_lower): Don't check against
35255 zero bounds for already instrumented functions.
35256 (chkp_check_upper): Likewise.
35257 (chkp_fini): Clean pass local data to avoid wrong reusage.
35259 2015-02-28 Martin Liska <mliska@suse.cz>
35260 Jan Hubicka <hubicka@ucw.cz>
35262 * ipa-icf.c (sem_variable::equals): Improve debug output;
35263 get variable constructor.
35264 (sem_variable::parse): Do not filter out too early; give up on
35265 volatile and register vars.
35266 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
35268 * ipa-icf.h (sem_variable::init): Do not set ctor.
35269 (sem_variable::ctor): Remove.
35271 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
35273 PR middle-end/65233
35274 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
35276 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35278 * ipa-icf.c: Include stor-layout.h
35279 (sem_function::compare_cgraph_references): Rename to ...
35280 (sem_item::compare_cgraph_references): ... this one.
35281 (sem_variable::equals_wpa): New function
35282 (sem_variable::equals): Do not check stuff already verified by
35284 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
35285 * ipa-icf.h (sem_item): Add compare_cgraph_references.
35286 (sem_function): Remove compare_cgraph_references.
35287 (sem_variable): Turns equals_wpa into non-inline.
35289 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35291 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
35292 (sem_item::add_expr): New function.
35293 (sem_function::hash_stmt): Handle operands of most statements.
35294 (sem_variable::get_hash): Hash the actual constructor.
35295 * ipa-icf.h (sem_item): Add add_expr.
35296 (sem_function): Update prototype of hash_stmt
35298 2015-02-28 Martin Liska <mliska@suse.cz>
35299 Jan Hubicka <hubicka@ucw.cz>
35302 * ipa-icf-gimple.c (func_checker::compare_function_decl):
35304 (func_checker::compare_variable_decl): Skip symtab vars.
35305 (func_checker::compare_cst_or_decl): Update.
35306 * ipa-icf.c (sem_function::parse): Do not consider aliases.
35307 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
35308 use correct symtab predicates.
35309 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
35310 (sem_variable::parse): Update comment.
35311 (sem_item_optimizer::build_graph): Consider ultimate aliases
35314 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35316 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
35319 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35321 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
35322 (sem_variable::merge) Likewise.
35324 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35326 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
35327 target; also match flag_ipa_devirt.
35329 2015-03-01 Martin Liska <mliska@suse.cz>
35330 Jan Hubicka <hubicka@ucw.cz>
35332 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
35333 Validate variable alignment.
35334 * ipa-icf.c (sem_function::equals_private): Be more precise
35335 about non-common function attributes.
35336 (sem_variable::equals): Likewise.
35338 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35341 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
35342 across COMDAT group boundary.
35344 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35347 * ipa-icf.c (clear_decl_rtl): New function.
35348 (sem_function::merge): Clear RTL before forming alias.
35349 (sem_variable::merge): Clear RTL before forming alias.
35351 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35354 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
35356 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
35358 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
35361 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35363 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
35364 a typo in the description.
35366 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35369 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35370 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35371 * lra-constraints.c: Include "params.h".
35372 (EBB_PROBABILITY_CUTOFF): Use
35373 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
35374 (lra_inheritance): Use '<' instead of '<=' for
35375 EBB_PROBABILITY_CUTOFF.
35376 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
35379 2015-02-27 Martin Liska <mliska@suse.cz>
35381 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
35382 vector length condition.
35384 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
35386 * doc/extend.texi (x86 transactional memory intrinsics):
35387 Reorganize discussion of _xbegin. Clarify that the return
35388 value is a bit mask. Expand example and move to end of section.
35390 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35391 Aldy Hernandez <aldyh@redhat.com>
35393 PR rtl-optimization/65220
35394 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
35396 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35399 * lra-remat.c (update_scratch_ops): New.
35400 (do_remat): Call it.
35401 * lra.c (lra_register_new_scratch_op): New. Take code from ...
35402 (remove_scratches): ... here.
35403 * lra-int.h (lra_register_new_scratch_op): New prototype.
35405 2015-02-27 Marek Polacek <polacek@redhat.com>
35408 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
35409 -Wformat-signedness anymore.
35411 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35413 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
35415 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
35417 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35419 * config/s390/s390.c (enum s390_builtin):
35420 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
35421 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
35422 (s390_init_builtins): Generate new builtin functions.
35423 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
35424 (s390_sfpc, s390_efpc): New pattern definitions.
35426 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35428 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
35429 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
35430 (s390_builtin_decls): New array.
35431 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
35432 (s390_builtin_decl): New function.
35433 (TARGET_BUILTIN_DECL): Define macro.
35435 2015-02-27 Richard Biener <rguenther@suse.de>
35437 PR middle-end/63175
35438 * builtins.c (get_object_alignment_2): Make sure to re-apply
35439 the ANDed mask after recursing to its operand gets us a new
35440 misalignment bit position.
35442 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
35443 Martin Liska <mliska@suse.cz>
35446 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
35447 Use address_matters_p.
35448 (redirect_all_callers, set_addressable): New functions.
35449 (sem_function::merge): Reorganize and fix merging issues.
35450 (sem_variable::merge): Likewise.
35451 (sem_variable::compare_sections): Remove.
35452 * common.opt (fmerge-all-constants, fmerge-constants): Remove
35454 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
35456 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
35458 (address_matters_1): New function.
35459 (symtab_node::address_matters_p): New function.
35460 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
35461 check for merged flag.
35462 * cgraph.h (address_matters_p): Declare.
35463 (symtab_node::address_taken_from_non_vtable_p): Remove.
35464 (symtab_node::address_can_be_compared_p): New method.
35465 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
35466 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
35468 (comdat_can_be_unshared_p_1) Use address_matters_p.
35469 (update_vtable_references): Fix formating.
35470 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
35471 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
35472 * cgraphclones.c: Preserve merged and icf_merged flags.
35474 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
35476 * doc/extend.texi (Function Attributes): Fix spelling and typos.
35477 (Label Attributes): Likewise.
35478 (Cilk Plus Builtins): Likewise.
35479 (ARC SIMD Built-in Functions): Likewise.
35480 (ARM C Language Extensions (ACLE)): Likewise.
35481 (PowerPC Built-in Functions): Likewise.
35482 (PowerPC Hardware Transactional Memory Built-in Functions):
35485 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35487 PR tree-optimization/65216
35488 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
35489 new stmt and new SSA_NAME for lhs whenever the arguments have
35490 changed and weren't just swapped. Fix comment typo.
35492 PR tree-optimization/65215
35493 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
35494 for PDP endian targets.
35495 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
35496 Fix up formatting issues.
35497 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
35498 size is smaller than the original, adjust MEM_REF offset by the
35499 difference of sizes. Use is_gimple_mem_ref_addr instead of
35500 is_gimple_min_invariant test to avoid adding address temporaries.
35502 2015-02-26 Martin Liska <mliska@suse.cz>
35503 Jan Hubicka <hubicka@ucw.cz>
35506 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
35507 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
35508 (sem_item_optimizer::process_cong_reduction): Include division by
35509 sensitive references.
35510 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
35511 * ipa-ref.c (ipa_ref::address_matters_p): New function.
35512 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
35514 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
35517 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
35519 * config/avr/avr.c: Same.
35520 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
35521 Refuse any constant address not in 0..0xbf.
35522 * config/avr/avr.md (*mov<mode>, *movsf): Remove
35523 tiny_valid_direct_memory_access_range from insn conditions.
35524 (mov<mode>): Don't special-case expansion of avrtiny addresses.
35526 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
35529 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
35530 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
35531 * config/sh/predicates.md (const_logical_operand): New predicate.
35532 * config/sh/sh.md: Add new peephole2 patterns.
35534 2015-02-26 Marek Polacek <polacek@redhat.com>
35537 * ipa-inline.c (early_inliner): Recompute inline parameters.
35539 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35542 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
35543 instructions with TImode operands are included in the analysis.
35545 2015-02-26 Sebastian Pop <s.pop@samsung.com>
35547 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
35548 of an EDGE_FSM_THREAD.
35550 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
35552 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
35554 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
35557 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
35559 2015-02-26 Sebastian Pop <s.pop@samsung.com>
35561 PR tree-optimization/65048
35562 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
35563 (thread_through_all_blocks): Call valid_jump_thread_path.
35564 Remove invalid FSM jump-thread paths.
35566 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35568 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
35569 (ipa_write_optimization_summaries): Likewise.
35570 * tree-streamer.h: Include data-streamer.h.
35571 (streamer_mode_table): Declare extern variable.
35572 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
35573 * lto-streamer-out.c (lto_output_init_mode_table,
35574 lto_write_mode_table): New functions.
35575 (produce_asm_for_decls): Call lto_write_mode_table when streaming
35577 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
35578 (lto_create_simple_input_block): Add mode_table argument to the
35579 lto_input_block constructors.
35580 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
35582 * data-streamer-in.c (string_for_index): Likewise.
35583 * ipa-inline-analysis.c (inline_read_section): Likewise.
35584 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
35585 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
35586 * lto-streamer-in.c (lto_read_body_or_constructor,
35587 lto_input_toplevel_asms): Likewise.
35588 (lto_input_mode_table): New function.
35589 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
35590 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
35591 Use bp_pack_machine_mode.
35592 * real.h (struct real_format): Add name field.
35593 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
35594 (class lto_input_block): Add mode_table member.
35595 (lto_input_block::lto_input_block): Add mode_table_ argument,
35596 initialize mode_table.
35597 (struct lto_file_decl_data): Add mode_table field.
35598 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
35599 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
35600 unpack_ts_decl_common_value_fields,
35601 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
35602 * tree-streamer.c (streamer_mode_table): New variable.
35603 * real.c (ieee_single_format, mips_single_format,
35604 motorola_single_format, spu_single_format, ieee_double_format,
35605 mips_double_format, motorola_double_format,
35606 ieee_extended_motorola_format, ieee_extended_intel_96_format,
35607 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
35608 ibm_extended_format, mips_extended_format, ieee_quad_format,
35609 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
35610 decimal_single_format, decimal_double_format, decimal_quad_format,
35611 ieee_half_format, arm_half_format, real_internal_format): Add name
35613 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
35615 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
35618 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
35619 reordering for selective scheduling.
35621 2015-02-26 Terry Guo <terry.guo@arm.com>
35623 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
35624 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
35625 (arm_arch_no_volatile_ce): Declare new global variable.
35626 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
35627 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
35628 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
35629 (TARGET_NO_VOLATILE_CE): New macro.
35630 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
35631 volatile memory access in IT block
35633 2015-02-25 Kai Tietz <ktietz@redhat.com>
35635 PR tree-optimization/61917
35636 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
35637 that reduc_def_stmt is null.
35639 2015-02-25 Martin Liska <mliska@suse.cz>
35641 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
35642 hard register variables.
35644 2015-02-25 Kai Tietz <ktietz@redhat.com>
35647 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
35648 (symtab::noninterposable_alias): Likewise.
35650 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
35653 * config/i386/i386.c (ix86_function_arg_regno_p): Support
35655 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
35657 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
35660 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
35661 as split condition; force split via '#' in output pattern.
35663 2015-02-25 Richard Biener <rguenther@suse.de>
35664 Kai Tietz <ktietz@redhat.com>
35666 PR tree-optimization/61917
35667 * tree-vect-loop.c (vectorizable_reduction): Allow
35668 vect_internal_def without reduction to exit graceful.
35670 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35673 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
35674 only with NONDEBUG_INSN_P.
35676 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35678 Use variadic macros with avr-log.c.
35680 * config/avr/avr-protos.h (avr_vdump): New prototype.
35681 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
35682 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
35683 * config/avr/avr-log.c: Adjust comments.
35684 (avr_vdump): New function.
35685 (avr_vadump): Pass caller as 2nd argument instead of format string.
35686 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
35687 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
35689 2015-02-25 Jakub Jelinek <jakub@redhat.com>
35692 * target.def (target_option_stream_in): New target hook.
35693 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
35694 targetm.target_option.post_stream_in if non-NULL.
35695 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
35696 * doc/tm.texi: Updated.
35697 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
35699 (TARGET_OPTION_POST_STREAM_IN): Redefine.
35701 2015-02-24 Jeff Law <law@redhat.com>
35704 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
35705 of operand 0 and operand 2.
35706 (zero_cost_loop_end, loop_end): Similarly.
35708 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
35710 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
35713 2015-02-24 DJ Delorie <dj@redhat.com>
35715 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
35716 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
35717 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
35718 instead of hardcoding SImode.
35720 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
35722 * omp-low.c (create_omp_child_function): Tag entrypoint
35723 functions with a special attribute.
35725 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35728 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
35730 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
35732 PR rtl-optimization/65123
35733 * lra-remat.c (operand_to_remat): Check hard regs in insn
35736 2015-02-24 Nick Clifton <nickc@redhat.com>
35738 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
35741 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
35744 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
35745 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
35746 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
35747 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
35748 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
35749 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
35750 (BUILT_IN_GOACC_PARALLEL): Specify as
35751 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
35752 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
35753 * builtin-types.def
35754 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35755 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35756 Remove function types.
35757 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
35758 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35759 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35760 New function types.
35762 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
35764 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
35766 2015-02-24 Jakub Jelinek <jakub@redhat.com>
35768 PR tree-optimization/65170
35769 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
35770 if val[1] < 0, clear also val[2] and return 3.
35772 2015-02-24 Alan Modra <amodra@gmail.com>
35775 * config/rs6000/rs6000.c (get_memref_parts): Only return true
35776 when *base is a reg. Handle nested plus addresses. Simplify
35779 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
35781 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
35782 use natural alignment when optimizing for size.
35784 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
35787 * config/sh/sh.md (movsicc_true+3): Remove peephole.
35788 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
35789 * config/sh/sh.c (replace_n_hard_rtx): Remove.
35791 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
35794 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
35795 too big for a wide_int. Implement missing wrapping operation.
35797 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
35800 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
35801 instead of const_int 4294901760.
35803 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
35805 * config/avr/t-avr: Fix typo in comment.
35807 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
35809 * doc/rtl.texi (fma): Clarify documentation.
35811 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
35814 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
35815 over input_location.
35817 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
35819 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
35820 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
35821 restrict alignments to absolute_biggest_alignment.
35822 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
35824 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
35825 * doc/tm.texi: Regenerate.
35826 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
35828 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
35831 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
35833 2015-02-20 Richard Biener <rguenther@suse.de>
35835 PR tree-optimization/65136
35836 * tree-ssa-propagate.c: Include cfgloop.h.
35837 (replace_phi_args_in): Avoid replacing loop latch edge PHI
35838 arguments with constants.
35840 2015-02-20 Jakub Jelinek <jakub@redhat.com>
35841 Martin Liska <mliska@suse.cz>
35844 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
35845 don't try to create_thunk if stdarg_p. If
35846 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
35847 redirect_callers if possible.
35848 (sem_item_optimizer::execute): Call unregister_hooks here...
35849 (ipa_icf_driver): ... instead of here.
35851 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35853 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
35854 Mark operand 0 as earlyclobber in 2nd alternative.
35855 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
35856 Write negated shift amount into QI lowpart operand 0 and use it
35858 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
35860 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
35862 * cgraph.h (clone_function_name_1): Declare.
35863 * cgraphclones.c (clone_function_name_1): New function.
35864 (clone_function_name): Use it.
35865 * lto-partition.c: Include "stringpool.h".
35866 (must_not_rename, maybe_rewrite_identifier)
35867 (validize_symbol_for_target): New static functions.
35868 (privatize_symbol_name): Use must_not_rename.
35869 (promote_symbol): Call validize_symbol_for_target.
35870 (lto_promote_cross_file_statics): Likewise.
35871 (lto_promote_statics_nonwpa): Likewise.
35873 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
35876 * config/avr/avr.md (pushhi_insn): New insn.
35877 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
35879 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
35880 Jakub Jelinek <jakub@redhat.com>
35882 * tree-streamer.c (preload_common_nodes): Don't preload
35883 TI_VA_LIST* for offloading.
35884 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
35887 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
35889 * config/pa/pa.c (pa_emit_move_sequence): Always force
35890 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
35893 * config/pa/pa.c (pa_reloc_rw_mask): New function.
35894 (TARGET_ASM_RELOC_RW_MASK): Define.
35895 (pa_cannot_force_const_mem): Revert previous change.
35897 2015-02-19 Martin Jambor <mjmabor@suse.cz>
35898 Jan Hubicka <hubicka@ucw.cz>
35901 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
35902 across jump functions.
35904 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
35906 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
35908 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
35910 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
35912 2015-02-19 Richard Henderson <rth@redhat.com>
35914 PR middle-end/65074
35915 * varasm.c (default_binds_local_p_2): Don't test node->definition;
35916 test DECL_EXTERNAL independent of symtab_node.
35918 2015-02-19 Jakub Jelinek <jakub@redhat.com>
35921 * varpool.c (varpool_node::get_constructor): Return early
35922 if this->lto_file_data is NULL.
35924 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35926 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
35927 (rank_for_schedule_debug): Update.
35928 (ready_sort): Make static. Move sorting logic to ...
35929 (ready_sort_debug, ready_sort_real): New static functions.
35930 (schedule_block): Sort both debug insns and real insns in preparation
35931 for ready list trimming. Improve debug output.
35932 * sched-int.h (ready_sort): Remove global declaration.
35934 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
35936 * ipa-icf.c (sem_function::equals_private): Adjust.
35937 (sem_function::bb_dict_test): Take a vec<int> * instead of
35939 * ipa-icf.h (bb_dict_test): Likewise.
35941 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35943 PR gcov-profile/64634
35944 * tree-eh.c (frob_into_branch_around): Fix up typos
35945 in function comment.
35946 (lower_catch): Put eh_seq resulting from EH lowering of
35947 the cleanup sequence after the cleanup rather than before it.
35949 2015-02-18 Tom de Vries <tom@codesourcery.com>
35951 * common.opt (fstdarg-opt): New option.
35952 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
35953 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
35954 (@item -fstdarg-opt): New item.
35956 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
35959 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
35960 for common symbols.
35962 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35964 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
35966 (ALL_HOST_OBJS): Add mkoffload.o.
35967 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
35969 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
35971 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
35972 (compare_virtual_tables): Be smarter about skipping typeinfos;
35973 do sane output on virtual table table mismatch.
35974 (warn_odr): Be ready for forward declarations of enums;
35975 output sane info on base mismatch and virtual table mismatch.
35976 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
35977 when only one type is polymorphic.
35978 (get_odr_type): Fix hashtable corruption.
35979 (dump_odr_type): Dump mangled names.
35981 2015-02-18 Richard Biener <rguenther@suse.de>
35983 PR tree-optimization/65063
35984 * tree-predcom.c (determine_unroll_factor): Return 1 if we
35985 have replaced looparound PHIs.
35987 2015-02-18 Martin Liska <mliska@suse.cz>
35989 * lto-streamer.c (lto_streamer_init): Encapsulate
35990 streamer_check_handled_ts_structures with checking macro.
35992 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35995 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
35996 section if !implicit_section.
35997 (cgraph_node::create_version_clone_with_body): Likewise.
35998 * trans-mem.c (ipa_tm_create_version): Likewise.
36000 2015-02-18 Richard Biener <rguenther@suse.de>
36002 PR tree-optimization/62217
36003 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
36006 2015-02-18 Marek Polacek <polacek@redhat.com>
36009 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
36010 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
36011 is in range [-16K, -1]. Don't issue run-time error if
36012 (ptr > ptr + offset).
36014 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
36016 * doc/install.texi (nvptx-*-none): New section.
36017 * doc/invoke.texi (Nvidia PTX Options): Likewise.
36018 * config/nvptx/nvptx.opt: Update.
36020 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
36021 (access_check): New functions, copied from
36022 config/i386/intelmic-mkoffload.c.
36023 (main): For non-installed testing, look in all COMPILER_PATHs for
36026 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
36028 2015-02-18 Andrew Pinski <apinski@cavium.com>
36029 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36031 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
36032 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
36034 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
36036 * ipa-visibility.c (function_and_variable_visibility): Only
36037 check locality if node is not already local.
36038 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36039 call_for_symbol_and_aliases instead of
36040 call_for_symbol_thunks_and_aliases.
36041 (ipa_inline): Likewise.
36042 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36043 first walk aliases.
36044 * ipa.c (symbol_table::remove_unreachable_nodes): Use
36045 call_for_symbol_and_aliases.
36046 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36047 (ipa_propagate_frequency_1): Use it; use opt_for_fn
36048 (ipa_propagate_frequency): Update.
36049 (ipa_profile): Add opt_for_fn gueards.
36051 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
36053 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
36054 * doc/invoke.texi (SH options): Document it.
36055 * config/sh/sh.c (sh_insn_length_adjustment): Check
36056 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
36058 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
36060 * common.opt (fipa-cp-alignment): New.
36061 * ipa-cp.c (ipcp_store_alignment_results): Check
36062 flag_ipa_cp_alignment.
36063 * opts.c (default_options_table): Enable -fipa-cp-alignment for
36065 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
36066 * doc/invoke.texi: Document -fipa-cp-alignment.
36068 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
36071 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
36072 to nil. Adjust comments.
36074 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
36076 * ipa-visibility.c (function_and_variable_visibility): Only
36077 check locality if node is not already local.
36078 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36079 call_for_symbol_and_aliases instead of
36080 call_for_symbol_thunks_and_aliases.
36081 (ipa_inline): Likewise.
36082 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36083 first walk aliases.
36084 * ipa.c (symbol_table::remove_unreachable_nodes): Use
36085 call_for_symbol_and_aliases.
36086 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36087 (ipa_propagate_frequency_1): Use it; use opt_for_fn
36088 (ipa_propagate_frequency): Update.
36089 (ipa_profile): Add opt_for_fn guards.
36091 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
36093 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
36094 skipping of "strange" tokens.
36096 2015-02-17 Jeff Law <law@redhat.com>
36098 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
36101 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
36103 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
36104 as forcing a HARD_DEP between instructions, thereby
36105 disallowing rewriting to break dependencies.
36107 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
36109 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
36110 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
36111 variables in boundary that have no inlitalizer encoded and are
36113 * varasm.c (default_binds_local_p_2): External definitions do not
36114 count as definitions here.
36116 2015-02-16 Jeff Law <law@redhat.com>
36118 PR tree-optimization/64823
36119 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
36121 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36122 threading through blocks with PHIs, but no statements.
36123 (thread_through_normal_block): Distinguish between blocks where
36124 we did not process all the statements and blocks with no statements.
36126 2015-02-16 Jakub Jelinek <jakub@redhat.com>
36127 James Greenhalgh <james.greenhalgh@arm.com>
36130 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
36131 section if not linkonce. Fix up formatting.
36132 (cgraph_node::create_version_clone_with_body): Copy section.
36133 * trans-mem.c (ipa_tm_create_version): Likewise.
36135 2015-02-16 Richard Biener <rguenther@suse.de>
36137 PR tree-optimization/65077
36138 * tree-ssa-structalias.c (get_constraint_for_1): Handle
36139 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
36140 (find_func_aliases): Allow float values to carry pointers again.
36142 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
36144 * doc/install.texi (Specific): Reorder targets list to put
36145 aarch64 in alphabetical order. Add a link to aarch64*-*-*
36148 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36149 David Edelsohn <dje.gcc@gmail.com>
36152 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
36153 mapping class to external variable or function reference.
36154 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
36157 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
36160 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
36161 ASM_WEAKEN_DECL if defined.
36163 2015-02-16 Richard Biener <rguenther@suse.de>
36166 * varasm.c (default_file_start): For LTO produced units
36167 emit <artificial> as file directive.
36169 2015-02-16 Richard Biener <rguenther@suse.de>
36171 PR tree-optimization/63593
36172 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
36173 stmts and releasing SSA names until...
36174 (execute_pred_commoning): ... after processing all chains.
36176 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
36179 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
36180 external functions.
36182 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
36184 * doc/bugreport.texi: Adjust section titles throughout the file
36185 to use "Title Case".
36186 * doc/extend.texi: Likewise.
36187 * doc/gcov.texi: Likewise.
36188 * doc/implement-c.texi: Likewise.
36189 * doc/implement-cxx.texi: Likewise.
36190 * doc/invoke.texi: Likewise.
36191 * doc/objc.texi: Likewise.
36192 * doc/standards.texi: Likewise.
36193 * doc/trouble.texi: Likewise.
36195 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
36197 * cgraph.h (symtab_node::has_aliases_p): Simplify.
36198 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
36199 * tree.c (lookup_binfo_at_offset): Make static.
36200 (get_binfo_at_offset): Do not shadow offset; add explanatory
36203 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
36205 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
36206 for all floading point loads and stores except those using a register
36208 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
36211 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
36213 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
36214 (do_estimate_growth_1): Record if any uninlinable edge was seen.
36215 (estimate_growth): Handle uninlinable edges correctly.
36216 (check_callers): New.
36217 (growth_likely_positive): Handle aliases correctly.
36219 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
36221 * ipa-chkp.c: Use iterate_direct_aliases.
36222 * symtab.c (resolution_used_from_other_file_p): Move inline.
36223 (symtab_node::create_reference): Fix formating.
36224 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36225 (symtab_node::iterate_reference): Move inline.
36226 (symtab_node::iterate_referring): Move inline.
36227 (symtab_node::iterate_direct_aliases): Move inline.
36228 (symtab_node::used_from_object_file_p_worker): Inline into ...
36229 (symtab_node::used_from_object_file_p): ... this one; move inline.
36230 (symtab_node::call_for_symbol_and_aliases): Move inline;
36231 use iterate_direct_aliases.
36232 (symtab_node::call_for_symbol_and_aliases_1): New method.
36233 (cgraph_node::call_for_symbol_and_aliases): Move inline;
36234 use iterate_direct_aliases.
36235 (cgraph_node::call_for_symbol_and_aliases_1): New method.
36236 (varpool_node::call_for_node_and_aliases): Rename to ...
36237 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
36238 use iterate_direct_aliases.
36239 (varpool_node::call_for_symbol_and_aliases_1): New method.
36240 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
36241 (ipa_discover_readonly_nonaddressable_var): Update.
36242 * ipa-devirt.c: Fix formating.
36243 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
36245 (cgraph_node::call_for_symbol_and_aliases): Move inline.
36246 (cgraph_node::call_for_symbol_and_aliases_1): New function..
36247 * cgraph.h (used_from_object_file_p_worker): Remove.
36248 (resolution_used_from_other_file_p): Move inline.
36249 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36250 (symtab_node::iterate_reference): Move inline.
36251 (symtab_node::iterate_referring): Move inline.
36252 (symtab_node::iterate_direct_aliases): Move inline.
36253 (symtab_node::used_from_object_file_p_worker): Inline into ...
36254 (symtab_node::used_from_object_file_p): Move inline.
36255 * tree-emutls.c (ipa_lower_emutls): Update.
36256 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
36257 (varpool_node::call_for_node_and_aliases): Remove.
36259 2015-02-14 Jakub Jelinek <jakub@redhat.com>
36261 PR tree-optimization/62209
36262 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
36263 op == range->exp, insert seq and gimplified code after labels
36264 instead of after the phi.
36266 2015-02-13 Jeff Law <law@redhat.com>
36269 Revert my change for tree-optimization/64823.
36271 2015-02-13 Jakub Jelinek <jakub@redhat.com>
36273 PR tree-optimization/65053
36274 * tree-ssa-phiopt.c (value_replacement): When moving assign before
36275 cond, either reset VR on lhs or set it to phi result VR.
36277 2015-02-13 Jeff Law <law@redhat.com>
36279 PR tree-optimization/64823
36280 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
36281 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36282 threading through blocks with PHIs, but no statements.
36283 (thread_through_normal_block): Distinguish between blocks where
36284 we did not process all the statements and blocks with no statements.
36286 PR rtl-optimization/47477
36287 * match.pd (convert (plus/minus (convert @0) (convert @1): New
36288 simplifier to narrow arithmetic.
36290 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
36293 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
36294 polymorphic call info when type is not known to be preserved.
36296 2015-02-13 Maritn Jambor <mjambor@suse.cz>
36299 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
36300 (inline_call): Use it.
36302 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
36304 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
36305 GOMP_DEVICE_NVIDIA_PTX.
36307 2015-02-13 Jakub Jelinek <jakub@redhat.com>
36310 * stmt.c (emit_case_nodes): Use void_type_node instead of
36311 NULL_TREE as LABEL_DECL type.
36313 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
36315 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
36317 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
36318 symbolic references to data to be forced to constant memory on the
36321 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
36323 PR tree-optimization/65002
36324 * tree-cfg.c (pass_data_fixup_cfg): Don't update
36326 * tree-sra.c (some_callers_have_no_vuse_p): New.
36327 (ipa_early_sra): Reject functions whose callers
36328 assume function is read only.
36330 2015-02-13 Richard Biener <rguenther@suse.de>
36333 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
36334 for LTO produced CUs.
36336 2015-02-13 Bin Cheng <bin.cheng@arm.com>
36338 PR tree-optimization/64705
36339 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
36340 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
36341 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
36342 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
36343 expand_simple_operations.
36345 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
36346 Richard Henderson <rth@redhat.com>
36349 * cgraphunit.c (cgraph_node::finalize_function): Set definition
36350 before notice_global_symbol.
36351 (varpool_node::finalize_decl): Likewise.
36352 * varasm.c (default_binds_local_p_2): Rename from
36353 default_binds_local_p_1, add weak_dominate argument. Use direct
36354 returns instead of assigning to local variable. Unify varpool and
36355 cgraph paths via symtab_node. Reject undef weak variables before
36356 testing visibility. Reorder tests for simplicity.
36357 (default_binds_local_p): Use default_binds_local_p_2.
36358 (default_binds_local_p_1): Likewise.
36359 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
36361 (default_elf_asm_output_external): Emit visibility when specified.
36363 2015-02-13 Alan Modra <amodra@gmail.com>
36365 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
36366 code setting up r11 for out-of-line fp restore.
36368 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
36370 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
36371 (muser-mode): Likewise.
36373 2015-02-13 Alan Modra <amodra@gmail.com>
36375 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
36376 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
36378 2015-02-12 David Howells <dhowells@redhat.com>
36380 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
36382 * tree-ssa-uninit.c (dump_predicates): Likewise.
36383 * opts.c (print_filtered_help): Likewise.
36385 2015-02-12 Jakub Jelinek <jakub@redhat.com>
36387 * dwarf2out.c (output_die): Use "%s", name instead of name to
36388 avoid -Wformat-security warning.
36390 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
36391 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36392 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
36393 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36395 2015-02-12 Jason Merrill <jason@redhat.com>
36397 * common.opt (-flifetime-dse): New.
36399 2015-02-12 Jakub Jelinek <jakub@redhat.com>
36402 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
36404 PR tree-optimization/65014
36405 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
36406 use original second operand of arg0 or arg1 instead of
36407 that adjusted by STRIP_NOPS.
36409 2015-02-11 Jeff Law <law@redhat.com>
36412 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
36413 that needs to be queued, just queue it for a single cycle.
36415 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
36417 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
36418 bodies of thunks; comment on why.
36419 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
36420 symbols are extern.
36422 2015-02-11 Richard Henderson <rth@redhat.com>
36425 * tree-eh.c (mark_reachable_handlers): Mark source and destination
36426 regions of __builtin_eh_copy_values.
36428 2015-02-11 Jakub Jelinek <jakub@redhat.com>
36430 PR middle-end/65003
36431 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
36432 ultimate alias is MEM with SYMBOL_REF satisfying
36433 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
36434 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
36436 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
36438 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
36439 "diagnostic-core.h".
36440 (main): Initialize progname, and call diagnostic_initialize.
36442 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
36443 instead of __OPENMP_TARGET__.
36445 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
36446 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
36447 hard-coding PTX_ID.
36449 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
36451 * doc/sourcebuild.texi (pie_enabled): Document.
36453 2015-02-11 Martin Liska <mliska@suse.cz>
36456 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
36457 a return value for call to a function that is noreturn.
36459 2015-02-11 Richard Biener <rguenther@suse.de>
36462 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
36465 2015-02-11 Andrew Pinski <apinski@cavium.com>
36468 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
36469 Change the first argument type to size_type_node and add another
36471 (aarch64_simd_expand_builtin): Handle the new argument to
36472 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
36473 print an out when the first two arguments are not
36474 nonzero integer constants.
36475 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
36476 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
36478 2015-02-11 Jakub Jelinek <jakub@redhat.com>
36481 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
36482 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
36483 (ix86_set_current_function): Rewritten.
36484 (ix86_add_new_builtins): Temporarily clear current_target_pragma
36485 when creating builtin fndecls.
36487 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36490 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
36492 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
36493 have no comdat group.
36494 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
36495 (lto_output_varpool_node): Always output alias info.
36496 (output_refs): Output refs of boundary aliases, too.
36497 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
36498 (output_symtab): Output call eges in thunks in boundary.
36499 (get_alias_symbol): Remove.
36500 (input_node, input_varpool_node): Do not special case weakrefs.
36501 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
36502 alias and thunks targets in the boundary; do not take removed symbols
36503 from their comdat groups.
36504 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
36505 (cgraph_node::global_info): Remove.
36506 (cgraph_node::rtl_info): Look through aliases and thunks.
36507 * cgrpah.h (global_info): Remove.
36508 (non_local_p): Remove.
36510 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36511 Sandra Loosemore <sandra@codesourcery.com>
36513 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
36514 to inline asm. List dialects in proper order.
36516 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36517 Sandra Loosemore <sandra@codesourcery.com>
36519 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
36521 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36523 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
36524 modified) reference to Solaris.
36526 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
36528 * doc/extend.texi (Extended Asm): Fix typos.
36530 2015-02-10 Jakub Jelinek <jakub@redhat.com>
36533 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
36535 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
36538 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
36539 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
36540 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
36541 * config/sh/constraints.md (Ara, Add): New constraints.
36542 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
36544 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
36545 atomic_mem_operand_0. Don't use force_reg on the memory address.
36546 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
36547 Sra constraint. Convert to insn_and_split. Add workaround for
36549 (atomic_compare_and_swap<mode>_hard): Copy to
36550 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
36551 Use atomic_mem_operand_0 predicate.
36552 (atomic_compare_and_swap<mode>_soft_gusa,
36553 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
36554 AraAdd constraints.
36555 (atomic_compare_and_swap<mode>_soft_tcb,
36556 atomic_compare_and_swap<mode>_soft_imask,
36557 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
36558 atomic_mem_operand_0 predicate and SraSdd constraints.
36559 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
36561 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
36562 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
36563 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
36564 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
36565 force_reg on the memory address.
36566 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
36567 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
36568 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
36569 atomic_mem_operand_1 predicate and Sra constraint.
36570 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
36571 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
36572 Use atomic_mem_operand_1 predicate.
36573 (atomic_<fetchop_name><mode>_hard): Copy to
36574 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
36575 Use atomic_mem_operand_1 predicate.
36576 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
36577 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
36578 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
36579 insn_and_split. Use atomic_mem_operand_1 predicate.
36580 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
36581 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
36582 Use atomic_mem_operand_1 predicate.
36583 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
36584 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
36585 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
36586 in generated insn with original mem operand before emitting the insn.
36587 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
36588 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
36589 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
36590 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
36591 Use atomic_mem_operand_1 predicate and AraAdd constraints.
36592 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
36593 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
36594 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
36595 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
36596 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
36597 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
36598 atomic_not_fetch<mode>_soft_tcb,
36599 atomic_<fetchop_name>_fetch<mode>_soft_imask,
36600 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
36601 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
36602 Use atomic_mem_operand_1 predicate and SraSdd constraints.
36604 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
36606 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
36607 and 3 earlyclobber operands.
36609 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36611 * common.opt (fstack-reuse): Mark as optimization.
36613 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36616 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
36618 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
36620 PR tree-optimization/64326
36621 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
36623 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
36625 PR gcov-profile/61889
36626 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
36628 2015-02-10 Richard Biener <rguenther@suse.de>
36630 PR tree-optimization/64995
36631 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
36632 value we use is final.
36633 (visit_reference_op_store): Always valueize op.
36634 (visit_use): Properly valueize vuses.
36636 2015-02-10 Richard Biener <rguenther@suse.de>
36638 PR tree-optimization/64909
36639 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
36640 pass a scalar-stmt count estimate to the cost model.
36641 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
36643 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
36645 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
36646 enabled by default together with var-tracking.
36648 2015-02-10 Nick Clifton <nickc@redhat.com>
36650 * config/rl78/rl78.c: Remove DIV attribute code accidentally
36651 included in previous rl78 commit.
36653 2015-02-10 Richard Biener <rguenther@suse.de>
36655 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
36656 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
36657 return the bitpack.
36659 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36661 PR gcov-profile/61889
36662 * config.in: regenerate.
36663 * configure.in: Likewise.
36664 * configure.ac: Check for ftw.h.
36665 * gcov-tool.c: Check for ftw.h before using nftw.
36667 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36670 * ipa-visibility.c (update_visibility_by_resolution_info): Only
36671 assert when not in lto mode.
36673 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
36675 * ira-color.c (setup_left_conflict_sizes_p): Simplify
36676 initialization/assignment of conflict_size.
36678 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
36681 * ipa-cp.c (gather_caller_stats): Skip thunks.
36682 (propagate_constants_topo): Skip aliases.
36684 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
36687 * config/sh/sh.c (sh_option_override): Don't change
36688 -freorder-blocks-and-partition to -freorder-blocks even when
36689 unwinding is enabled.
36690 (sh_can_follow_jump): Return false if the followee jump is
36691 a crossing jump when -freorder-blocks-and-partition is specified.
36692 * config/sh/sh.md (*jump_compact_crossing): New insn.
36694 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
36695 Kaz Kojima <kkojima@gcc.gnu.org>
36698 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
36699 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
36700 (sh_can_redirect_branch): Rename to ...
36701 (sh_can_follow_jump): ... this. Constify argument types.
36702 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
36703 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
36704 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
36705 * doc/tm.texi: Regenerate.
36707 2015-02-09 Jakub Jelinek <jakub@redhat.com>
36710 * builtins.c (expand_builtin): Call targetm.expand_builtin
36711 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
36713 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36716 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
36718 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36721 * ipa-icf.c (set_local): New function.
36722 (sem_function::merge): Use it.
36724 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36726 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
36727 (add_type_duplicate): Fix comparison of BINFOs.
36729 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36731 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
36732 on getting VOID pointer.
36734 2015-02-09 Jakub Jelinek <jakub@redhat.com>
36737 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
36740 2015-02-09 Richard Biener <rguenther@suse.de>
36742 * genmatch.c (replace_id): Copy expr_type.
36744 2015-02-09 Richard Biener <rguenther@suse.de>
36746 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
36747 (streamer_write_tree_bitfields): Declare.
36748 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
36749 properly unpack padding.
36750 (unpack_value_fields): Inline ...
36751 (streamer_read_tree_bitfields): ... here.
36752 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
36753 and properly add padding bits.
36754 (streamer_pack_tree_bitfields): Fold into ...
36755 (streamer_write_tree_bitfields): ... this new function,
36756 exposing the bitpack object.
36757 * lto-streamer-out.c (lto_write_tree_1): Call
36758 streamer_write_tree_bitfields.
36760 2015-02-09 Richard Biener <rguenther@suse.de>
36762 PR tree-optimization/54000
36763 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
36764 (struct ivopts_data): Add loop_loc member.
36765 (tree_ssa_iv_optimize_loop): Dump loop location.
36766 (create_new_ivs): Likewise, also dump number of IVs generated.
36768 2015-02-09 Martin Liska <mliska@suse.cz>
36770 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
36771 just if not yet registered.
36772 (ipa_icf_generate_summary): Register callgraph hooks.
36774 2015-02-08 Andrew Pinski <apinski@cavium.com>
36776 * config/aarch64/aarch64.c (gty_dummy): Delete.
36778 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36781 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
36782 (cgraph_node::local_p): Remove thunk related FIXME.
36784 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36787 * i386.c (ix86_function_regparm): Look through aliases to see if callee
36788 is local and optimized.
36789 (ix86_function_sseregparm): Likewise; also use target's SSE math
36790 settings; error out instead of silently generating wrong code
36792 (init_cumulative_args): Look through aliases.
36794 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36797 * ipa-split.c (execute_split_functions): Split if function has aliases.
36799 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36802 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
36803 aliases before trying to expand it.
36804 (cgraph_node::expand_thunk): Fix formating.
36806 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
36808 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
36809 (Using Assembly Language with C): Expand introduction.
36810 (Basic Asm): Copy-edit. Add more information about uses of
36812 (Extended Asm): Copy-edit. Document new escape syntax and
36814 (Global Reg Vars): Copy-edit.
36815 (Local Reg Vars): Likewise.
36817 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
36821 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
36822 (DBX_CONTIN_CHAR): Define.
36824 2015-02-06 Sebastian Pop <s.pop@samsung.com>
36825 Brian Rzycki <b.rzycki@samsung.com>
36827 PR tree-optimization/64878
36828 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
36829 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
36830 Stop recursion at loop phi nodes after having visited a loop phi node.
36832 2015-02-06 Jakub Jelinek <jakub@redhat.com>
36834 * toplev.c (process_options): Change flag_ipa_ra before creating
36835 optimization_{default,current}_node.
36838 * cgraphunit.c (cgraph_node::expand_thunk): If
36839 restype is not is_gimple_reg_type nor the thunk_fndecl
36840 returns aggregate_value_p, set restmp to a temporary variable
36841 instead of resdecl.
36843 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
36845 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
36847 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
36850 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
36851 add a general secondary reload handler for SDmode, unless we have
36852 both read/write support for SDmode.
36854 2015-02-06 Jakub Jelinek <jakub@redhat.com>
36856 PR middle-end/64937
36857 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
36858 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
36859 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
36860 1 before, push it to abstract_vec.
36861 (dwarf2out_abstract_function): Adjust caller. Don't call
36862 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
36863 DECL_ABSTRACT_P flags for all abstract_vec elts.
36865 2015-02-06 Renlin Li <renlin.li@arm.com>
36867 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
36869 * tree-ssa.c (execute_update_addresses_taken): Likewise.
36871 2015-02-06 Jeff Law <law@redhat.com>
36874 * config/h8300/h8300.c (push): New argument "in_prologue".
36875 Pass "in_prologue" along to "F".
36876 (h8300_push_pop): Corresponding changes.
36877 (h8300_expand_prologue): Likewise.
36878 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
36880 2015-02-06 Jakub Jelinek <jakub@redhat.com>
36882 PR rtl-optimization/64957
36884 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
36885 IOR rather than for AND.
36887 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
36890 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
36891 of shift-add and (add + shift) operations. Rename local variable.
36893 2015-02-05 Jeff Law <law@redhat.com>
36896 * config/h8300/constraints.md (U): Correctly dectect
36897 "eightbit_data" memory addresses.
36898 * config/h8300/h8300.c (eightbit_constant_address_p): Also
36899 handle (const (plus (symbol_ref (x)))) where x is declared
36900 as an 8-bit data memory address.
36901 * config/h8300/h8300.md (call, call_value): Correctly detect
36902 "funcvec" functions.
36905 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
36906 24 to 28 bits for the H8/300.
36908 2015-02-06 Alan Modra <amodra@gmail.com>
36911 * config/rs6000/rs6000.c (chain_already_loaded): New function.
36912 (rs6000_call_aix): Use it.
36914 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
36916 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
36919 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
36921 * config/h8300/constraints.md ("U" constraint): Use strict
36922 variant of REG_OK_FOR_BASE_P after reload has started.
36924 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
36926 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
36927 define to zero if !TARGET_NEON.
36928 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
36930 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36931 Trevor Saunders <tsaunders@mozilla.com>
36934 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
36936 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36939 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
36940 when removing varpool nodes.
36942 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36945 * varpool.c (varpool_node::remove): Fix order of variables.
36947 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36950 * ipa-inline.c (inline_small_functions): Fix ordering issue between
36951 speculation resolution and key updates.
36953 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36955 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
36956 about not letting any speculative edges unupdated.
36958 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36961 * gcov-io.c (gcov_var): Export.
36963 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36965 PR middle-end/64922
36966 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
36967 edges that become speculative.
36969 2015-02-04 Jakub Jelinek <jakub@redhat.com>
36971 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
36972 or DW_LANG_Fortran08.
36973 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
36975 (gen_compile_unit_die): Handle "GNU Fortran2003" and
36976 "GNU Fortran2008" language strings.
36977 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
36978 * langhooks.h (lang_GNU_Fortran): New prototype.
36979 * langhooks.c (lang_GNU_Fortran): New function.
36980 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
36983 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
36985 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
36986 (RTX_OK_FOR_OLO10_P): Likewise.
36988 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
36990 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
36992 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36994 PR middle-end/64922
36995 * gimple.c: Include gimple-ssa.h.
36996 (maybe_remove_unused_call_args): New function.
36997 * gimple.h (maybe_remove_unused_call_args): Declare.
36998 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
36999 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
37000 * gimple-fold.c (gimple_fold_call): Likewise.
37002 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
37004 PR rtl-optimization/64905
37005 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
37006 pointer alignment if it isn't needed.
37008 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
37010 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
37011 cortex-a72.cortex-a53.
37012 * config/aarch64/aarch64-tune.md: Regenerate.
37013 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
37015 2015-02-04 Nick Clifton <nickc@redhat.com>
37017 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
37020 2015-02-04 Jakub Jelinek <jakub@redhat.com>
37022 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
37023 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
37024 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
37026 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
37027 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
37028 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
37029 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
37030 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
37031 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
37032 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
37033 * tree-core.h (enum built_in_function): In between
37034 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
37035 for builtins that use DEF_BUILTIN_CHKP macro.
37037 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
37040 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
37041 operands for tcc_comparison exprs. Fix typos.
37044 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
37045 of two XORs that have an intervening AND or IOR.
37048 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
37049 simplification of XOR of AND to not allocate new rtx before
37050 committing to a simplification.
37052 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37054 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
37055 manual swaps in all peepholes.
37057 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37059 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
37060 of manual swapping implementation.
37061 (aarch64_expand_vec_perm_const_1): Likewise.
37063 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
37065 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
37066 (generic_addrcost_table): Remove NAMED_PARAM.
37067 (cortexa57_addrcost_table): Likewise.
37068 (xgene1_addrcost_table): Likewise.
37069 (generic_regmove_table): Likewise.
37070 (cortexa53_regmove_table): Likewise.
37071 (xgene1_regmove_table): Likewise.
37072 (generic_vector_table): Likewise.
37073 (cortexa57_vector_table): Likewise.
37074 (xgene1_vector_table): Likewise.
37075 (generic_tunings): Likewise.
37076 (cortexa53_tunings): Likewise.
37077 (cortexa57_tunings): Likewise.
37078 (xgene1_tunings): Likewise.
37080 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
37082 * config/arm/arm-cores.def: Add cortex-a72 and
37083 cortex-a72.cortex-a53.
37084 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
37085 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
37086 * config/arm/arm-tune.md: Regenerate.
37087 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
37088 "cortex-a72.cortex-a53".
37089 * doc/invoke.texi (ARM Options/-mtune): Likewise.
37091 2015-02-04 Nick Clifton <nickc@redhat.com>
37094 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
37096 (nonimmediate_di_operand): Likewise.
37098 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
37099 prefixes of known F5 using MSP430 MCUs.
37101 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37103 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
37104 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
37105 instead of __builtin_sqrt.
37107 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
37109 * varasm.c (do_assemble_alias): Follow transparent alias
37111 (default_assemble_visibility): Follow transparent alias
37112 chain for decl name.
37114 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
37116 PR middle-end/62103
37117 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
37118 to compute size of referenced value in the constant case.
37120 2015-02-03 Jakub Jelinek <jakub@redhat.com>
37122 PR rtl-optimization/64756
37123 * cse.c (invalidate_dest): New function.
37124 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
37125 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
37126 invalidate and do not record it.
37128 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37131 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
37132 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
37133 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
37134 atomic_nand<mode>_soft_tcb): New insns.
37135 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
37136 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
37137 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
37138 Split into atomic_not_fetchsi_hard if operands[0] is unused.
37139 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
37140 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37141 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
37142 atomic_not<mode>_hard if operands[0] is unused.
37143 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
37144 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
37145 if operands[0] is unused.
37146 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
37147 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
37148 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
37149 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37151 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
37152 into atomic_not<mode>_soft_tcb if operands[0] is unused.
37153 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
37154 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
37155 if operands[0] is unused.
37156 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
37157 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
37158 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
37159 atomic_nand_fetchsi_hard if operands[0] is unused.
37160 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
37161 atomic_nand<mode>_hard if operands[0] is unused.
37162 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
37163 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
37164 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
37165 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37166 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
37167 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
37168 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
37169 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37170 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
37171 atomic_not<mode>_hard if operands[0] is unused.
37172 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
37173 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37175 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
37176 into atomic_not<mode>_soft_tcb if operands[0] is unused.
37177 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
37178 atomic_nand<mode>_hard if operands[0] is unused.
37179 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
37180 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37182 2015-02-03 David Malcolm <dmalcolm@redhat.com>
37185 * Makefile.in (GCC_OBJS): Add gcc-main.o.
37186 * gcc-main.c: New file, containing "main" taken from gcc.c.
37187 * gcc.c (do_self_spec): Free decoded_options.
37188 (class driver): Move declaration to gcc.h.
37189 (main): Move declaration and implementation to new file
37191 (driver_get_configure_time_options): New function.
37192 * gcc.h (class driver): Move this declaration here, from
37194 (driver_get_configure_time_options): New declaration.
37196 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
37198 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
37199 cross-module inlining.
37200 * cgraph.h (cgraph_node): Add flag merged.
37201 * ipa-icf.c (sem_function::merge): Maintain it.
37203 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
37205 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
37206 instead of OBJECT_P.
37208 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
37211 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
37212 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
37213 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
37214 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
37216 2015-02-03 Jakub Jelinek <jakub@redhat.com>
37219 * combine.c (reg_n_sets_max): New variable.
37220 (can_change_dest_mode, reg_nonzero_bits_for_combine,
37221 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
37222 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
37223 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
37224 (rest_of_handle_combine): Initialize reg_n_sets_max.
37226 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
37228 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
37229 if some always_inline was inlined, apply changes before inlining
37232 2015-02-02 David Malcolm <dmalcolm@redhat.com>
37235 * config/arm/arm.c (arm_option_override): Set
37236 arm_selected_arch/cpu/tune to NULL on entry.
37238 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
37239 Andrew Pinski <pinskia@gcc.gnu.org>
37240 Jakub Jelinek <jakub@gcc.gnu.org>
37243 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
37244 integer typing for small model. Use IN_RANGE.
37246 2015-02-02 Richard Biener <rguenther@suse.de>
37248 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
37249 * tree-vrp.c (vrp_valueize_1): Likewise.
37251 2015-02-02 Alan Modra <amodra@gmail.com>
37253 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
37254 than mem for toc_restore.
37255 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
37256 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
37257 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
37259 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
37262 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
37263 explicit default options.
37265 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
37268 * ipa-utils.c (ipa_merge_profiles): Add release argument.
37269 * ipa-icf.c (sem_function::merge): Do not release body when merging.
37270 * ipa-utils.h (ipa_merge_profiles): Update prototype.
37272 2015-02-01 Jakub Jelinek <jakub@redhat.com>
37275 * cfgexpand.c (deep_ter_debug_map): New variable.
37276 (avoid_deep_ter_for_debug): New function.
37277 (expand_debug_expr): If TERed SSA_NAME is in
37278 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
37279 instead of trying to expand SSA_NAME's def stmt.
37280 (expand_debug_locations): When expanding debug bind
37281 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
37282 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
37284 (pass_expand::execute): Call avoid_deep_ter_for_debug on
37285 all debug bind stmts. Delete deep_ter_debug_map after
37286 expand_debug_location if non-NULL and clear it.
37288 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
37291 * config/sh/sync.md (atomic_fetch_notsi_hard,
37292 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
37293 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
37294 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
37295 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
37296 atomic_not_fetch<mode>_soft_imask): New insns.
37298 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37300 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
37301 (rank_for_schedule_debug): Split from ...
37302 (rank_for_schedule): ... this.
37303 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
37304 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
37306 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
37308 * doc/md.texi (Machine Constraints): Alphabetize table by target.
37309 * doc/extend.texi (x86 Variable Attributes): Move section to
37310 correct alphabetization after renaming.
37311 (x86 Type Attributes): Likewise.
37312 (Target Builtins): Re-alphabetize menu.
37313 (x86 Built-in Functions): Move section to correct alphabetization
37315 (x86 transactional memory intrinsics): Likewise.
37316 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
37317 and x86 Windows Options in table and menu.
37318 (x86 Options): Move section to correct alphabetization after
37320 (x86 Windows Options): Likewise.
37322 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
37324 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
37325 preferred names of the architecture and its 32- and 64-bit
37327 * doc/invoke.texi: Likewise.
37328 * doc/md.texi: Likewise.
37330 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
37333 * config/i386/predicates.md (address_no_seg_operand): Reject
37334 non-CONST_INT_P operands in invalid mode.
37336 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
37338 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
37339 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
37340 * config/i386/predicates.md (address_no_seg_operand): Call
37341 address_operand with VOIDmode.
37342 (vsib_address_operand): Ditto.
37343 (address_mpx_no_base_operand): Ditto.
37344 (address_mpx_no_index_operand): Ditto.
37346 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
37349 * lra-constraints.c (original_subreg_reg_mode): New.
37350 (simplify_operand_subreg): Try to simplify subreg of const. Use
37351 original_subreg_reg_mode for it.
37352 (swap_operands): Update original_subreg_reg_mode.
37353 (curr_insn_transform): Set up original_subreg_reg_mode.
37355 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
37358 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
37360 (process_alt_operands): Use it.
37361 (curr_insn_transform): Check the optional reload pseudo class is
37364 2015-01-30 Joseph Myers <joseph@codesourcery.com>
37366 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
37367 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
37369 * toplev.h (init_asm_output): Update comment on use of
37370 UNKNOWN_LOCATION with fatal_error.
37371 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
37372 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
37373 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
37374 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
37375 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
37376 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
37377 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
37378 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
37379 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
37380 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
37381 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
37382 fatal_error changed to pass input_location as first argument.
37384 2015-01-30 Martin Liska <mliska@suse.cz>
37386 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
37387 in #pragma GCC diagnostic guards.
37389 2015-01-30 Richard Biener <rguenther@suse.de>
37391 PR tree-optimization/64829
37392 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
37393 not add a widening conversion pattern but hand off extra
37394 widenings to callers.
37395 (vect_recog_widen_mult_pattern): Handle extra widening produced
37396 by vect_handle_widen_op_by_const.
37397 (vect_recog_widen_shift_pattern): Likewise.
37398 (vect_pattern_recog_1): Remove excess vertical space in dumping.
37399 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
37400 (vect_init_vector_1): Likewise.
37401 (vect_get_vec_def_for_operand): Likewise.
37402 (vect_finish_stmt_generation): Likewise.
37403 (vectorizable_load): Likewise.
37404 (vect_analyze_stmt): Likewise.
37405 (vect_is_simple_use): Likewise.
37407 2015-01-29 Jeff Law <law@redhat.com>
37409 * combine.c (try_combine): Fix typo in comment.
37411 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
37414 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
37415 (rs6000_stack_info): Add assert.
37416 (rs6000_output_savres_externs): New function, split off from...
37417 (rs6000_output_function_prologue): ... here. Do not call it for
37420 2015-01-29 Jeff Law <law@redhat.com>
37423 * combine.c (try_combine): If I0 is a memory load and I3 a store
37424 to a related address, increase the "goodness" of doing a 4-insn
37425 combination with I0-I3.
37426 (make_field_assignment): Handle SUBREGs in the ior+and case.
37428 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
37430 PR tree-optimization/64746
37431 * tree-if-conv.c (mask_exists): New function.
37432 (predicate_mem_writes): Save created mask with given size for further
37434 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
37435 (ifcvt_repair_bool_pattern): Collect all statements that are root
37436 of bool pattern and use iterative algorithm to remove multiple uses
37437 of predicates, display number of required iterations.
37439 2015-01-29 Richard Biener <rguenther@suse.de>
37441 PR tree-optimization/64853
37442 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
37443 stmt will get simulated again.
37444 * tree-ssa-ccp.c (valueize_op_1): Likewise.
37446 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37448 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
37449 return_in_pc. Remove redundant assignments.
37450 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
37451 (arm_expand_epilogue): Don't compare boolean with true in if condition.
37453 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
37455 * config/i386/i386.c (ix86_mode_after): Make static.
37457 2015-01-29 Richard Biener <rguenther@suse.de>
37459 PR tree-optimization/64844
37460 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
37461 dump cost model analysis.
37462 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
37463 Do not register adjusted load/store costs here.
37465 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
37466 Uros Bizjak <ubizjak@gmail.com>
37468 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
37469 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
37470 using x86_use_pseudo_pic_reg.
37471 * config/i386/i386.c (ix86_conditional_register_usage): Remove
37472 support for fixed PIC register.
37473 (ix86_use_pseudo_pic_reg): Not static any more.
37475 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
37477 PR middle-end/64805
37478 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
37479 to avoid error in cgraph node verification.
37481 2015-01-29 Marek Polacek <polacek@redhat.com>
37483 * doc/standards.texi: Reflect that the default for C is gnu11.
37485 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
37488 * reorg.c (switch_text_sections_between_p): New function.
37489 (relax_delay_slots): Call it when testing if the jump insn
37490 is removable. Use targetm.can_follow_jump when testing if
37491 the conditional branch can follow an unconditional jump.
37493 2015-01-27 Caroline Tice <cmtice@google.com>
37495 Committing VTV Cywin/Ming patch for Patrick Wollgast
37496 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
37497 if -fvtable-verify=preinit/std is used.
37498 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
37499 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
37500 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
37501 if -fvtable-verify=preinit/std is used.
37502 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
37503 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
37504 if -fvtable-verify=preinit/std is used.
37505 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
37506 * config/i386/mingw32.h (LIB_SPEC): Likewise.
37507 * varasm.c (assemble_variable): Add code to properly set the comdat
37508 section and name for the .vtable_map_vars section in case the
37509 target is PE or COFF.
37511 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
37514 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
37515 make sane BB profile.
37516 (cgraph_node::expand_thunk): Make sane BB profile.
37517 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
37518 * cgraph.h (init_lowered_empty_function): Update prototype.
37519 * config/i386/i386.c (make_resolver_func): Update call.
37520 * predict.c (gate): Disable branch prediction pass if
37521 profile is already there.
37523 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
37525 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
37526 * opth-gen.awk: Likewise.
37527 * common.opt: Mark flag_fp_contract_mode as Optimization.
37529 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
37531 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
37532 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
37534 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
37537 * config/sh/predicates.md (atomic_arith_operand,
37538 atomic_logical_operand): Remove.
37539 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
37540 (atomic_arith_operand_0): New predicate.
37541 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
37542 Use atomic_arith_operand_0 for input values.
37543 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
37544 atomic_compare_and_swap<mode>_soft_gusa,
37545 atomic_compare_and_swap<mode>_soft_tcb,
37546 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
37547 arith_reg_operand instead of register_operand.
37548 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
37549 atomic_arith_operand_0 for newval input.
37550 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
37551 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
37552 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
37553 arith_reg_operand instead of register_operand.
37554 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
37555 fetchop_predicate_1, fetchop_constraint_1_llcs,
37556 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
37557 fetchop_constraint_1_imask): New code iterator attributes.
37558 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
37559 register_operand. Use fetchop_predicate_1.
37560 (atomic_fetch_<fetchop_name>si_hard,
37561 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
37562 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
37563 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
37564 and arith_reg_operand instead of register_operand. Use
37565 fetchop_predicate_1, fetchop_constraint_1_gusa.
37566 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
37567 and arith_reg_operand instead of register_operand. Use
37568 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
37570 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
37571 and arith_reg_operand instead of register_operand. Use
37572 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
37574 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
37575 register_operand. Use atomic_logical_operand_1.
37576 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
37577 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
37578 arith_reg_operand instead of register_operand.
37579 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
37580 Use arith_reg_dest and arith_reg_operand instead of register_operand.
37581 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
37582 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
37583 register_operand. Use fetchop_predicate_1.
37584 (atomic_<fetchop_name>_fetchsi_hard,
37585 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
37586 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37587 fetchop_constraint_1_llcs.
37588 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
37589 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37590 fetchop_constraint_1_gusa.
37591 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
37592 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37593 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
37594 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
37595 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37596 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
37597 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
37598 register_operand. Use atomic_logical_operand_1.
37599 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
37600 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
37601 arith_reg_operand instead of register_operand.
37602 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
37603 arith_reg_operand instead of register_operand. Use logical_operand
37604 and K08. Adjust asm sequence to allow R0 usage.
37605 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
37606 arith_reg_operand instead of register_operand. Use logical_operand
37609 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37612 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
37613 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
37614 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
37615 only get_full_len HOST_WIDE_INTs from get_val () array rather than
37616 all bits in *val_wide.
37618 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
37620 * varpool.c (tls_model_names): Fix names.
37621 (varpool_node::dump): Dump tls- prefix for tls models.
37623 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
37624 Bernd Schmidt <bernds@codesourcery.com>
37625 Nathan Sidwell <nathan@codesourcery.com>
37627 * config/nvptx/mkoffload.c: New file.
37628 * config/nvptx/t-nvptx: Add build rules for it.
37629 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
37630 (extra_programs): Add mkoffload.
37631 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
37633 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
37635 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
37637 PR middle-end/64809
37638 * cfgexpand.c (reorder_operands): Skip debug gimples.
37640 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
37642 PR tree-optimization/64277
37643 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
37644 range info when possible to refine estimation.
37646 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
37648 PR tree-optimization/64718
37649 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
37650 be a 16bit unsigned integer when n->range is 16.
37651 (bswap_replace): Convert src to that type if necessary for all bswap
37652 sizes. Fix rotation right notation in nearby comment. Use bswap_type
37653 set in pass_optimize_bswap::execute ().
37655 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
37657 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
37658 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
37659 integer and floating point variants.
37660 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
37662 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
37664 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
37665 for all vector modes.
37667 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37670 * doc/sourcebuild.texi (comdat_group): Document.
37672 2015-01-28 Terry Guo <terry.guo@arm.com>
37674 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
37676 2015-01-27 David Malcolm <dmalcolm@redhat.com>
37678 * toplev.c (print_version): Add param "show_global_state", and
37679 only print GGC and plugin information if it is true.
37680 (init_asm_output): Pass in "true" for the new param when calling
37682 (process_options): Likewise.
37683 (toplev::main): Likewise.
37684 * toplev.h (print_version): Add new param to decl.
37686 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
37690 * tree.c (lookup_binfo_at_offset): New function.
37691 (get_binfo_at_offset): Use it.
37693 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
37696 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
37697 on vtable being vtable.
37699 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
37701 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
37702 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
37703 -mhotpatch= option.
37704 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
37705 -mno-hotpatch options. Change syntax of -mhotpatch= option.
37706 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
37708 (s390_hotpatch_trampoline_halfwords_max): Renamed.
37709 (s390_hotpatch_hw_max): New name.
37710 (s390_hotpatch_trampoline_halfwords): Renamed.
37711 (s390_hotpatch_hw_before_label): New name.
37712 (get_hotpatch_attribute): Removed.
37713 (s390_hotpatch_hw_after_label): New name.
37714 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
37716 (s390_attribute_table): Ditto.
37717 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
37718 (s390_function_num_hotpatch_hw): New name.
37719 Remove special handling of inline functions and hotpatching.
37720 Return number of nops before and after the function label.
37721 (s390_can_inline_p): Removed.
37722 (s390_asm_output_function_label): Emit a configurable number of nops
37723 after the function label.
37724 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
37725 (TARGET_CAN_INLINE_P) Removed.
37726 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
37728 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37729 Jiong Wang <jiong.wang@arm.com>
37731 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
37733 (cb<optab><mode>1): Likewise.
37734 * config/aarch64/iterators.md (bcond): New define_code_attr.
37736 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37738 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
37741 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37743 * config/s390/s390.c (s390_register_move_cost): Increase costs for
37746 2015-01-27 Richard Biener <rguenther@suse.de>
37748 * tree-vrp.c (update_value_range): Intersect the range with
37749 old recorded SSA name range information.
37751 2015-01-27 Nick Clifton <nickc@redhat.com>
37753 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
37754 BC, DE and HL registers directly, not via AX.
37755 When decrementing the stack pointer by a large amount, transfer SP
37756 into AX and perform the subtraction there.
37757 (rl78_expand_epilogue): Perform the inverse of the above
37760 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37762 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
37764 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37765 Yury Gribov <y.gribov@samsung.com>
37768 * ubsan.c (ubsan_source_location): Refactor code.
37769 (ubsan_type_descriptor): Update type size. Refactor code.
37771 2015-01-27 Richard Biener <rguenther@suse.de>
37773 PR tree-optimization/56273
37774 PR tree-optimization/59124
37775 PR tree-optimization/64277
37776 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
37777 from the first VRP pass.
37779 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37782 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
37783 handle the first argument in the same loop as all the other arguments.
37785 PR rtl-optimization/61058
37786 * jump.c (cleanup_barriers): Update basic block boundaries
37787 if BLOCK_FOR_INSN is non-NULL on PREV.
37789 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
37791 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
37792 bounds narrowing, already instrumented calls and calls to
37793 not instrumentable functions.
37795 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37797 PR tree-optimization/64807
37798 * wide-int.cc (wi::divmod_internal): Clear
37799 b_dividend[dividend_blocks_needed].
37801 2015-01-26 DJ Delorie <dj@redhat.com>
37803 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
37804 volatile memory references.
37806 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
37809 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
37811 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
37812 shifts if it already fits into K08.
37814 2015-01-26 Jakub Jelinek <jakub@redhat.com>
37817 * ipa-inline.c (inline_small_functions): Print "unknown" even
37818 if edge->call_stmt is non-NULL, but has builtins or unknown
37821 PR middle-end/64421
37822 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
37823 with asterisk, skip the first character.
37825 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
37828 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
37831 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
37834 * config/i386/i386.md (*movdi_internal): Also check operand 0
37835 to determine TYPE_LEA operand.
37836 (*movsi_internal): Ditto.
37838 2015-01-26 Jakub Jelinek <jakub@redhat.com>
37840 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
37841 OPTION_MASK_QUAD_MEMORY_ATOMIC.
37843 2015-01-26 Renlin Li <renlin.li@arm.com>
37845 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
37847 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
37850 2015-01-26 Richard Biener <rguenther@suse.de>
37852 PR middle-end/64764
37853 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
37854 combining two BIT_AND_EXPR predicates.
37856 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
37859 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
37861 2015-01-26 Terry Guo <terry.guo@arm.com>
37863 * config/arm/arm.c (arm_file_start): Update the assignment of
37864 Tag_ABI_HardFP_use.
37866 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
37868 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
37870 config/arm/arm.md: Include the new Cortex-A57 model.
37871 (generic_sched): Don't use generic_sched when tuning for
37874 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
37875 Uros Bizjak <ubizjak@gmail.com>
37877 * config/i386/i386.c (get_builtin_code_for_version): Add
37878 support for BMI and BMI2 multiversion functions.
37880 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37882 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
37883 (extract_bit_field): Likewise.
37884 (extract_low_bits): Likewise.
37885 (expand_mult): Likewise.
37886 (expand_mult_highpart_adjust): Likewise.
37888 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
37890 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
37891 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
37892 * config/i386/i386.c (processor_model): Add
37893 M_INTEL_COREI7_BROADWELL.
37894 (arch_names_table): Add "broadwell".
37896 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
37905 * config/sh/sh-protos.h
37906 (sh_extending_set_of_reg::can_use_as_unextended_reg,
37907 sh_extending_set_of_reg::use_as_unextended_reg,
37908 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
37909 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
37910 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
37911 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
37912 (sh_treg_insns): New class.
37913 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
37914 (scope_counter): New class.
37915 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
37916 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
37917 sh_extending_set_of_reg::can_use_as_unextended_reg,
37918 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
37919 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
37920 sh_split_treg_set_expr): New functions.
37921 (addsubcosts): Handle treg_set_expr.
37922 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
37923 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
37924 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
37925 (sh_insn_operands_modified_between_p): Make non-static.
37926 * config/sh/predicates.md (zero_extend_movu_operand): Allow
37927 simple_mem_operand in addition to displacement_mem_operand.
37928 (zero_extend_operand): Don't allow zero_extend_movu_operand.
37929 (treg_set_expr, treg_set_expr_not_const01,
37930 arith_reg_or_treg_set_expr): New predicates.
37931 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
37932 arith_or_int_operand instead of logical_operand. Convert to
37933 insn_and_split. Try to optimize constant operand in splitter.
37934 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
37935 (*tstqi_t_zero): Delete.
37936 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
37937 (tstsi_t_and_not): Delete.
37938 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
37939 Convert to insn_and_split.
37940 (unnamed split, tstsi_t_zero_extract_xor,
37941 tstsi_t_zero_extract_subreg_xor_little,
37942 tstsi_t_zero_extract_subreg_xor_big): Delete.
37943 (*tstsi_t_shift_mask): New insn_and_split.
37944 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
37945 to recombine with surrounding insns when splitting.
37946 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
37947 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
37948 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
37949 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
37950 (*cbranch_div0s: Delete.
37951 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
37952 Try to recombine with surrounding insns when splitting. Add operand
37954 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
37955 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
37956 *addc_r_r_msb, *addc_2r_msb): Delete.
37957 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
37959 (*addc_negreg_t): New insn_and_split.
37960 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
37961 Try to recombine with surrounding insns when splitting.
37962 Add operand order variants.
37963 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
37964 insn_and_split patterns.
37965 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
37966 surrounding insns when splitting.
37967 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
37968 (*rotcl): Likewise. Add zero_extract variant.
37969 (*ashrsi2_31): New insn_and_split.
37970 (*negc): Convert to insn_and_split. Use treg_set_expr.
37971 (*zero_extend<mode>si2_disp_mem): Update comment.
37972 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
37974 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
37975 with surrounding insns when splitting.
37976 (any_treg_expr_to_reg): New insn_and_split.
37977 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
37978 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
37979 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
37980 *zero_extract_2): New single bit zero extract patterns.
37981 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
37982 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
37983 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
37984 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
37986 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
37987 register_operand for set source.
37989 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
37991 * i386.opt (prefetch_sse): New targetsave.
37992 * i386.c (ix86_function_specific_save): Save prefetch_sse.
37993 (ix86_function_specific_restore): Restore prefetch_sse and initialize
37994 ix86_cost/ix86_tune_cost.
37996 2015-01-23 David Malcolm <dmalcolm@redhat.com>
37998 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
37999 Support the JIT by using 0 as the language type.
38001 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
38004 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
38005 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
38006 (mark_regno_live, process_bb_lives): Pass new parameter value to
38007 make_hard_regno_born.
38009 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38011 PR rtl-optimization/63637
38012 PR rtl-optimization/60663
38013 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
38014 if elt->cost is MAX_COST for ASM_OPERANDS.
38015 (find_sets_in_insn): Fix up comment typo.
38016 (cse_insn): Don't set src_volatile for all non-volatile
38017 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
38018 or with "memory" clobber. Set elt->cost to MAX_COST
38019 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
38020 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
38022 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
38024 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
38027 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
38029 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
38030 libgcc/config/i386/elf-lib.h.
38032 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38035 * gcc.c (print_configuration): Don't print a blank line at the end
38037 (run_attempt): ... but here unstead.
38039 PR middle-end/64734
38040 * omp-low.c (scan_sharing_clauses): Don't ignore
38041 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
38042 on target data/update constructs.
38044 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
38047 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
38048 (DEBUG_RELOAD): Removed define.
38049 (m32c_limit_reload_class): Enable traces with if DEBUG0.
38050 (m32c_function_arg): Added a type cast.
38051 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
38052 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
38053 * config/m32c/bitops.md (andqi3_16): Likewise.
38054 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
38055 (push_a01_l): Likewise.
38057 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38060 * main.c (main): Construct toplev instances with init_signals=true.
38061 * toplev.c (general_init): Add param "init_signals", and use it to
38062 conditionalize the calls to signal and host_hooks.extra_signals.
38063 (toplev::toplev): Add param "init_signals".
38064 (toplev::main): When invoking general_init, pass m_init_signals
38065 to control whether signal-handlers are installed.
38066 * toplev.h (toplev::toplev): Add param "init_signals".
38067 (toplev::m_init_signals): New field.
38069 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38072 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
38073 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
38074 latter may be affected by the former (e.g. on i686).
38076 2015-01-23 Martin Liska <mliska@suse.cz>
38078 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
38079 false positive during profiledbootstrap.
38081 2015-01-23 Tom de Vries <tom@codesourcery.com>
38084 * lto-opts.c (lto_write_options): Output non-explicit conservative
38086 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
38087 (append_compiler_options): Pass -fopenacc through.
38089 2015-01-23 Tom de Vries <tom@codesourcery.com>
38092 * lto-opts.c (lto_write_options): Output non-explicit conservative
38094 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
38095 (append_compiler_options): Pass -fopenmp through.
38097 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38100 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
38103 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
38104 * diagnostic.def (DK_ICE_NOBT): New kind.
38105 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
38106 like DK_ICE, but never print backtrace.
38107 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
38108 (internal_error_no_backtrace): New function.
38109 * gcc.c (execute): Use internal_error_no_backtrace instead of
38112 2015-01-22 Jeff Law <law@redhat.com>
38115 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
38116 improve code density for small immediate to memory case.
38117 (insv): Better handle bitfield assignments when the field is
38118 being set to all ones.
38119 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
38122 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38123 Jakub Jelinek <jakub@redhat.com>
38125 PR middle-end/64729
38126 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
38127 for !TARGET_LIBC_PROVIDES_SSP version and
38128 -fstack-protector-{all,strong,explicit} otherwise.
38129 * config/freebsd.h (LINK_SSP_SPEC): Handle
38130 -fstack-protector-{strong,explicit}.
38132 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
38133 H.J. Lu <hongjiu.lu@intel.com>
38136 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
38139 2015-01-22 Wei Mi <wmi@google.com>
38141 PR rtl-optimization/64557
38142 * dse.c (record_store): Call get_addr for mem_addr.
38143 (check_mem_read_rtx): Likewise.
38145 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
38147 * fold-const.c (const_binop): Add early return for non-tcc_binary.
38149 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
38151 * toplev.c (init_local_tick): Process the failure when read
38152 fails for random_seed.
38154 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
38155 'pretty_name' to avoid memory overflow.
38157 2015-01-22 Richard Biener <rguenther@suse.de>
38159 PR middle-end/64728
38160 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
38161 abnormal coalescing on undefined SSA names.
38163 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
38167 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
38169 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
38171 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
38173 PR middle-end/63325
38174 * fold-const.c (fold_checksum_tree): Don't include value of
38175 expr->decl_with_vis.symtab_node in the checksum.
38177 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38179 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
38181 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
38184 * gcc.c (insert_comments): New function.
38185 (try_generate_repro): Call it.
38186 (append_text): Removed.
38188 2015-01-22 Richard Biener <rguenther@suse.de>
38190 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
38191 with IL incompatible options. Properly honor user optimize
38194 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
38196 PR rtl-optimization/64682
38197 * combine.c (distribute_notes): When moving a death note for
38198 a register that is set in the new I2, make sure to put it
38199 before that new I2.
38201 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
38203 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
38204 not TARGET_DEFAULT.
38206 2015-01-21 Jakub Jelinek <jakub@redhat.com>
38209 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
38210 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
38211 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
38214 * doc/invoke.texi (-fsanitize=vptr): Document.
38216 PR rtl-optimization/62078
38217 * dse.c: Include cfgcleanup.h.
38218 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
38219 anything call purge_all_dead_edges and cleanup_cfg at the end
38222 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
38224 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
38227 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
38229 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
38232 2015-01-21 David Sherwood <david.sherwood@arm.com>
38233 Tejas Belagod <Tejas.Belagod@arm.com>
38235 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
38236 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
38237 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
38240 2015-01-21 David Sherwood <david.sherwood@arm.com>
38241 Tejas Belagod <Tejas.Belagod@arm.com>
38243 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
38244 (aarch64_reverse_mask): New decls.
38245 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
38246 (insn_count): New mode_attr.
38247 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
38248 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
38249 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
38250 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
38251 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
38252 (aarch64_simd_st4): New patterns.
38253 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
38254 (aarch64_reverse_mask): New functions.
38256 2015-01-21 Alan Hayward <alan.hayward@arm.com>
38258 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
38260 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
38261 addressing modes for BE.
38262 (aarch64_print_operand): Add 'R' specifier.
38263 (aarch64_simd_disambiguate_copy): Delete.
38264 (aarch64_simd_emit_reg_reg_move): New function.
38265 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
38266 in define_splits for structural moves.
38267 (mov<mode>): Use less restrictive predicates.
38268 (*aarch64_mov<mode>): Simplify and only allow for LE.
38269 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
38271 2015-01-21 Alan Hayward <alan.hayward@arm.com>
38273 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
38275 2015-01-21 Richard Henderson <rth@redhat.com>
38278 * ccmp.c (used_in_cond_stmt_p): Remove.
38279 (expand_ccmp_expr): Don't use it.
38281 2015-01-21 Nick Clifton <nickc@redhat.com>
38283 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
38286 2015-01-21 Richard Biener <rguenther@suse.de>
38288 PR middle-end/64313
38289 * tree-core.h (builtin_info, builtin_info_type): Turn from
38290 an object with two arrays into an array of an object with
38291 decl and two flags, implicit_p and declared_p.
38292 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
38293 set_builtin_decl, set_builtin_decl_implicit_p,
38294 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
38295 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
38296 * builtins.c (builtin_info): Adjust.
38297 * gimplify.c (gimplify_addr_expr): References to builtins
38298 that have been declared by the user makes them eligible for
38299 use by the compiler. Call set_builtin_decl_implicit_p on them.
38301 2015-01-20 Jeff Law <law@redhat.com>
38304 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
38305 allow pc-relative addresses in operand predicates or constraints.
38307 2015-01-21 Bin Cheng <bin.cheng@arm.com>
38309 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
38310 neon on aarch32 processors for stringops.
38312 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38315 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
38317 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38320 * ipa-inline.c: Include lto-streamer.h
38321 (report_inline_failed_reason): Output source file differences and
38322 flags on optimization/target node mismatch.
38323 (can_inline_edge_p): Consider caller to be the outer inline function;
38324 be less restrictive about matching opimize and optimize_size attributes.
38325 (inline_account_function_p): Break out from ...
38326 (inline_small_functions): ... here.
38327 * ipa-inline-transform.c (clone_inlined_nodes): Use
38328 inline_account_function_p.
38329 (inline_call): Use optimize attribution; use inline_account_function_p.
38330 (inline_transform): Use opt_for_fn.
38331 * ipa-inline.h (inline_account_function_p): Declare.
38333 2015-01-20 Jakub Jelinek <jakub@redhat.com>
38336 * dwarf2out.c (decl_piece_node): Don't put bitsize into
38337 mode if bitsize <= 0.
38338 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
38339 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
38340 sizes and positions.
38342 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
38344 * config/nios2/nios2.c (nios2_asm_file_end): Implement
38345 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
38347 (TARGET_ASM_FILE_END): Define.
38349 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38351 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
38352 (struct tune_params): Use the enum.
38353 * arm.c (arm_*_tune): Update.
38354 (arm_option_override): Update.
38356 2015-01-20 Richard Biener <rguenther@suse.de>
38359 * ipa-reference.c (add_static_var): Inline ...
38360 (analyze_function): ... here after splitting out from ...
38361 (is_proper_for_analysis): ... this.
38363 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
38366 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
38367 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
38368 replace the conditional with it's true branch.
38369 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
38370 (arm_lra_p): Remove.
38372 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
38374 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
38376 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38378 * config/tilegx/mul-tables.c: Move symtab.h include after
38379 coretypes.h include.
38380 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
38381 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
38382 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
38383 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
38384 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38386 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
38390 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
38392 PR rtl-optimization/64081
38393 * loop-iv.c (def_pred_latch_p): New function.
38394 (latch_dominating_def): Allow specific cases with non-single
38396 (iv_get_reaching_def): Likewise.
38397 (check_complex_exit_p): New function.
38398 (check_simple_exit): Use check_complex_exit_p to allow certain cases
38399 with exits not executing on any iteration.
38401 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38404 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
38405 to set branch cost.
38407 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38410 * i386.c (gate): Check flag_expensive_optimizations and
38412 (ix86_option_override_internal): Drop optimize_size condition
38413 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
38414 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
38415 MASK_PREFER_AVX128.
38416 (ix86_avx256_split_vector_move_misalign,
38417 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
38418 * sse.md (all uses of TARGET_PREFER_AVX128): Add
38419 optimize_insn_for_speed_p check.
38421 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
38423 * config/mips/mips.h (FP_ASM_SPEC): New define.
38424 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
38427 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
38430 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
38431 nullptr for insn when reaching the first insn.
38432 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
38433 (sh_insn_operands_modified_between_p): Add nullptr check.
38434 (sh_find_extending_set_of_reg): Fix log message. Don't accept
38435 sign extending mem load if the insn contains any UNSPEC or
38438 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38440 * params.def (inline-unit-growth): Drop to 15%.
38441 * invoke.texi (inline-unit-growth): Document change.
38443 2015-01-19 Martin Liska <mliska@suse.cz>
38446 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
38447 function for second argument of OBJ_TYPE_REF.
38449 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38452 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
38453 whether function is an alias.
38455 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38457 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
38460 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
38462 PR rtl-optimization/64671
38463 * lra-remat.c (operand_to_remat): Don't consider jump and call
38466 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
38469 * config/rs6000/default64.h: Include rs6000-cpus.def.
38470 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
38471 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
38472 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
38474 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
38476 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
38477 pseudo-op to specify assembler dialect.
38479 2015-01-19 Martin Liska <mliska@suse.cz>
38482 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
38483 Handle safe potentially removed nodes during filtering.
38485 2015-01-19 Martin Liska <mliska@suse.cz>
38487 * doc/extend.texi (no_icf): Add new attribute description.
38488 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
38489 where the pass attempts to merge a function with no_icf attribute.
38491 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38494 * doc/md.texi (ARM Options): Document register constraints.
38496 2015-01-19 Jiong Wang <jiong.wang@arm.com>
38497 Andrew Pinski <apinski@cavium.com>
38500 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
38501 (ashl<mode>3): Don't expand if operands[2] is not constant.
38503 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38506 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
38507 Match xor-and-xor RTL pattern.
38509 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
38511 PR rtl-optimization/64081
38512 * loop-iv.c (def_pred_latch_p): New function.
38513 (latch_dominating_def): Allow specific cases with non-single
38515 (iv_get_reaching_def): Likewise.
38516 (check_complex_exit_p): New function.
38517 (check_simple_exit): Use check_complex_exit_p to allow certain cases
38518 with exits not executing on any iteration.
38520 2015-01-19 Jakub Jelinek <jakub@redhat.com>
38522 * common.opt (fgraphite): Fix a typo.
38524 2015-01-19 Felix Yang <felix.yang@huawei.com>
38526 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
38528 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
38529 uminp, smax_nanp, smin_nanp): New builtins.
38530 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
38531 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
38532 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
38533 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
38534 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
38535 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
38536 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
38537 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
38538 vpminnms_f32): Rewrite using builtin functions.
38540 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
38543 * omp-low.c (offload_symbol_decl): Remove variable.
38544 (get_offload_symbol_decl): Remove function.
38545 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
38546 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
38547 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
38548 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
38549 BUILT_IN_GOACC_UPDATE don't pass it at all.
38551 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
38553 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
38556 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
38558 * ipa-chkp.c (chkp_produce_thunks): Add early param
38559 to split thunks production into two passes. Keep
38560 'always_inline' function bodies after the first pass.
38561 (pass_data_ipa_chkp_early_produce_thunks): New.
38562 (pass_ipa_chkp_early_produce_thunks): New.
38563 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
38564 chkp_produce_thunks signature.
38565 (make_pass_ipa_chkp_early_produce_thunks): New.
38566 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
38567 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
38568 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
38570 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38572 * cgraph.c (cgraph_node::dump): Dump profile flags.
38574 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
38577 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
38578 reg appear first in the parallel.
38580 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38582 * ipa-reference.c (set_reference_optimization_summary,
38583 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
38585 (ignore_module_statics): New static var.
38586 (propagate_bits): If ipa-reference is disabled, do not look into local
38588 (analyze_function): Disable analysis when ipa_reference is disabled.
38589 (generate_summary): Do not dump when reference is disabled;
38590 collect vars accessed from functions with ipa-reference disabled.
38591 (get_read_write_all_from_node): When ipa-reference is disabled, use the
38593 (gate): Enable for LTO.
38594 (ignore_edge_p): New function.
38595 (propagate): Skip functions w/o ipa-reference analysis.
38596 * optc-save-gen.awk: Handle optimize_debug correctly.
38597 * opth-gen.awk: Likewise.
38598 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
38599 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
38600 fira-share-save-slots, fira-share-spill-slots,
38601 fmodulo-sched-allow-regmoves, fpartial-inlining,
38602 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
38603 ftracer, ftree-parallelize-loops, fassociative-math,
38604 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
38606 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
38607 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
38609 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
38612 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38615 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
38617 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
38619 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
38621 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
38622 Remove duplicate option listings.
38624 2015-01-18 Felix Yang <felix.yang@huawei.com>
38626 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
38627 (autofdo_source_profile::get_callsite_total_count,
38628 function_instance::get_function_instance_by_decl,
38629 string_table::get_index, string_table::get_index_by_decl,
38630 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
38631 Fix comment typos. Reformatting and minor code rearrangement.
38633 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38635 * config/rs6000/rs6000.md (probe_stack): Delete.
38636 (probe_stack_address): New.
38638 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38640 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
38641 to test for 32-bit ABIs, not !TARGET_POWERPC64.
38643 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38645 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
38646 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
38647 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
38649 (rs6000_libcall_value): Use the new function.
38651 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
38653 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
38655 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
38657 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
38658 implement a more precise life analysis for it during backward scan.
38660 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
38662 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
38664 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
38666 PR rtl-optimization/52773
38667 * calls.c (emit_library_call_value): When pushing arguments use
38668 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
38669 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
38670 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
38672 2015-01-17 Jeff Law <law@redhat.com>
38674 PR rtl-optimization/32790
38675 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
38676 not ZERO_EXTEND in SET_DESTs.
38678 2015-01-17 Alan Modra <amodra@gmail.com>
38680 * cprop.c (do_local_cprop): Revert last change.
38682 2015-01-16 DJ Delorie <dj@redhat.com>
38683 Nick Clifton <nickc@redhat.com>
38685 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
38686 (addhi3_real): Likewise. Fix [HL+0] syntax.
38687 (subqi3_real): Likewise.
38688 (subhi3_real): Likewise.
38689 (cbranchqi4_real): Likewise. Allow saddr,#imm.
38690 (cbranchhi4_real): Likewise.
38691 (cbranchhi4_real_inverted): Likewise.
38692 (cbranchsi4_real_lt): Likewise.
38693 (cbranchsi4_real_ge): Likewise.
38694 (cbranchsi4_real_ge): Likewise.
38695 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
38696 (sub<mode>3_virt): Likewise.
38697 (cbranchqi4_virt): Likewise.
38698 (cbranchhi4_virt): Likewise.
38699 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
38700 always use '[reg+imm]' even when imm is zero.
38701 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
38702 (rl78_general_operand): New.
38703 (rl78_nonimmediate_operand): New.
38704 (rl78_nonfar_operand): Use them.
38705 (rl78_nonfar_nonimm_operand): Likewise.
38706 (rl78_stack_based_mem): Fix.
38707 * config/rl78/constraints.md (Ibqi): New.
38712 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
38713 (iorqi3): Likewise.
38714 (xorqi3): Likewise.
38715 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
38717 * config/rl78/constrains (Qs8): New constraint.
38718 * config/rl78/rl78.c (rl78_flags_already_set): New function.
38719 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
38720 * config/rl78/rl78-real.md (update_Z): New attribute.
38721 Update patterns to set it.
38722 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
38723 shorter compare and branch sequence can be used.
38724 (cbranchhi4_real): Likewise.
38725 (cbranchhi4_real_inverted): Likewise.
38727 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
38728 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
38730 * config/rl78/rl78.c (rl78_get_name_encoding): New.
38731 (rl78_option_override): Allow -mes0 only if C.
38732 (characterize_address): Support subregs of symbol_refs.
38733 (rl78_addr_space_address_mode): Move. Add __near.
38734 (rl78_far_p): Likewise.
38735 (rl78_addr_space_pointer_mode): Likewise.
38736 (rl78_as_legitimate_address): Likewise.
38737 (rl78_addr_space_subset_p): Likewise.
38738 (rl78_addr_space_convert): Likewise.
38739 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
38740 symbols with -mes0.
38741 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
38743 (rl78_alloc_physical_registers_op1): Change logic to prefer
38744 symbol[BC] addressing.
38745 (frodata_section): New.
38746 (rl78_asm_init_sections): Initialize it.
38747 (rl78_select_section): Put __far readonly symbols in .frodata.
38748 (rl78_make_type_far): New.
38749 (rl78_insert_attributes): Force all readonly symbols to be
38751 (rl78_asm_out_integer): New.
38752 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
38753 * config/rl78/rl78.opt (-mes0): New.
38755 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
38756 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
38757 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
38758 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
38759 (rl78_saddr_p): New.
38760 (rl78_output_aligned_common): New.
38761 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
38762 (rl78_handle_saddr_attribute): New.
38763 (rl78_handle_naked_attribute): New.
38764 (rl78_attribute_table): Add saddr.
38765 (rl78_print_operand_1): Don't print '!' on saddr operands.
38766 (rl78_print_operand_1): Strip encodings.
38768 (rl78_strip_name_encoding): New.
38769 (rl78_attrlist_to_encoding): New.
38770 (rl78_encode_section_info): New.
38771 (rl78_asm_init_sections): New.
38772 (rl78_select_section): New.
38773 (rl78_output_labelref): New.
38774 (rl78_output_aligned_common): New.
38775 (rl78_asm_out_integer): New.
38776 (rl78_asm_ctor_dtor): New.
38777 (rl78_asm_constructor): New.
38778 (rl78_asm_destructor): New.
38780 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
38781 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
38782 (transcode_memory_rtx): Update.
38783 (rl78_expand_epilogue): Use A_REG instead of 0.
38785 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38787 * config/arm/arm-protos.h (struct tune_params): New field
38788 sched_autopref_queue_depth.
38789 * config/arm/arm.c (sched-int.h): Include header.
38790 (arm_first_cycle_multipass_dfa_lookahead_guard,)
38791 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
38792 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
38793 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
38794 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
38795 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
38796 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
38797 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
38798 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
38799 * config/arm/t-arm (arm.o): Update.
38800 * haifa-sched.c (update_insn_after_change): Update.
38801 (rank_for_schedule): Use auto-prefetcher model, if requested.
38802 (autopref_multipass_init): New static function.
38803 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
38804 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
38805 variable for debug dumps.
38806 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
38807 (autopref_multipass_dfa_lookahead_guard): New global function that
38808 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
38809 (init_h_i_d): Update.
38810 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
38811 * sched-int.h (enum autopref_multipass_data_status): New const enum.
38812 (autopref_multipass_data_): Structure for auto-prefetcher data.
38813 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
38814 (struct _haifa_insn_data:autopref_multipass_data): New field.
38815 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
38816 (autopref_multipass_dfa_lookahead_guard): Declare.
38818 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38820 * rtlanal.c (get_base_term): Handle SCRATCH.
38822 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38824 * config/aarch64/aarch64.c
38825 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
38826 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38828 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
38829 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38831 2015-01-17 Alan Modra <amodra@gmail.com>
38833 * cprop.c (do_local_cprop): Disallow replacement of fixed
38836 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38839 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
38842 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
38844 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
38845 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
38847 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38849 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
38850 * config/arm/thumb1.md: ... Here.
38852 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38854 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
38855 TImode for TARGET_32BIT.
38857 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38859 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
38860 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
38862 (rs6000_abi_word_mode): New function.
38864 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38866 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
38867 instead of UNITS_PER_WORD to describe the size of stack slots.
38869 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38871 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
38872 as rs6000_promote_function_mode. Move comment to there.
38873 (rs6000_promote_function_mode): New function.
38875 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38877 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
38878 -mpowerpc64 is active.
38880 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
38882 PR middle-end/64353
38883 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
38886 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
38888 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
38889 introduced in revision 219724.
38891 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38892 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38895 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
38896 destination is not a GP reg.
38897 (*movdi_aarch64): Likewise.
38899 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
38902 * config/rs6000/default64.h: Revert ISA change.
38904 2015-01-16 Richard Biener <rguenther@suse.de>
38906 PR middle-end/64614
38907 * tree-ssa-uninit.c: Include tree-cfg.h.
38908 (MAX_SWITCH_CASES): New define.
38909 (convert_control_dep_chain_into_preds): Handle switch statements.
38910 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
38911 (normalize_one_pred_1): Do not split bit-manipulations.
38914 2015-01-16 Richard Biener <rguenther@suse.de>
38916 PR tree-optimization/64568
38917 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
38918 complex load rewriting for TARGET_MEM_REFs.
38920 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
38922 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
38924 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
38927 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
38929 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
38930 (aarch64_lra_p): Remove.
38932 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
38935 * ipa-chkp.h (chkp_instrumentable_p): New.
38936 * ipa-chkp.c: Include tree-inline.h.
38937 (chkp_instrumentable_p): New.
38938 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
38939 Fix processing of not instrumentable functions.
38940 (chkp_versioning): Use chkp_instrumentable_p. Warn about
38941 not instrumentable functions.
38942 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
38943 chkp_instrumentable_p.
38944 * tree-inline.h (copy_forbidden): New.
38945 * tree-inline.c (copy_forbidden): Not static anymore.
38947 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38949 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
38952 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
38954 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
38955 type OP_OUT to OP_INOUT.
38957 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
38959 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
38960 (high x) y) to y if x and y have the same base.
38962 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
38964 * config/arm/cortex-a57.md: New.
38965 * config/aarch64/aarch64.md: Include it.
38966 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
38967 * config/aarch64/aarch64-tune.md: Regenerate.
38969 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
38972 * ccmp.c (expand_ccmp_next): New function.
38973 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
38974 and compare insn sequence.
38975 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
38976 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
38977 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
38978 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
38979 (*ccmp_ior): Changed to ccmp_ior<mode>.
38980 (cmp<mode>): New pattern.
38981 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
38983 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
38985 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
38987 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
38988 _mm256_bsrli_epi128): New.
38989 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
38991 2015-01-15 Jiong Wang <jiong.wang@arm.com>
38993 * expmed.c (store_bit_field_using_insv): Improve warning message.
38994 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
38996 2015-01-15 Jiong Wang <jiong.wang@arm.com>
38998 PR rtl-optimization/64011
38999 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
39000 there is partial overflow.
39002 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39004 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
39006 (nds32_expand_epilogue_v3pop): Likewise.
39007 * config/nds32/nds32.md (sibcall): Define this for sibling call
39009 (sibcall_register): Likewise.
39010 (sibcall_immediate): Likewise.
39011 (sibcall_value): Likewise.
39012 (sibcall_value_register): Likewise.
39013 (sibcall_value_immediate): Likewise.
39014 (sibcall_epilogue): Likewise.
39015 (epilogue): Pass false to indicate this is not a sibcall epilogue.
39016 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
39017 (nds32_expand_epilogue_v3pop): Likewise.
39019 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39021 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
39022 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
39023 (return_internal): New.
39024 (return): Define this named pattern.
39025 (simple_return): Define this named pattern.
39026 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
39027 pattern instead of unspec_volatile_func_return.
39028 (nds32_expand_epilogue_v3pop): Likewise.
39029 (nds32_can_use_return_insn): New function.
39031 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39033 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
39034 * config/nds32/nds32.md (pop25return): New.
39035 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
39036 pop25return pattern.
39038 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39040 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
39041 -mforbid-fp-as-gp, and -mex9 options.
39043 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39045 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
39046 remove -mgp-direct option.
39048 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39050 * doc/invoke.texi (--param early-inlining-insns): Update default value.
39051 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
39053 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39055 * ipa-inline.c (inline_small_functions): Work around hints
39058 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
39061 * doc/invoke.texi (Option Summary): Document new Nios II
39063 (Nios II Options): Likewise.
39064 * config/nios2/nios2.opt: Add -mgpopt= option support.
39065 Modify existing -mgpopt and -mno-gpopt options to be aliases.
39066 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
39067 * config/nios2/nios2.c (nios2_option_override): Adjust
39068 -mgpopt defaulting.
39069 (nios2_in_small_data_p): Return true for explicit small data
39070 sections even with -G0.
39071 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
39074 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39077 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
39079 (inline_call): Fix removal of aliases.
39081 2015-01-15 Jakub Jelinek <jakub@redhat.com>
39083 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
39084 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
39085 * opts.c (common_handle_option): Add -fsanitize=vptr.
39086 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
39087 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
39088 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
39089 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
39090 (ubsan_expand_vptr_ifn): New prototype.
39091 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
39092 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
39093 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
39094 expand_LOOP_VECTORIZED): Make argument nameless, remove
39096 (expand_UBSAN_VPTR): New function.
39097 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
39099 (UBSAN_VPTR): New internal function.
39100 * sanopt.c (tree_map_traits): Renamed to ...
39101 (sanopt_tree_map_traits): ... this.
39102 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
39103 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
39104 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
39105 (maybe_optimize_ubsan_vptr_ifn): New function.
39106 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
39107 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
39109 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
39110 internal calls like pure functions for aliasing, even when they
39111 have other side-effects that prevent making them ECF_PURE.
39112 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
39113 (ubsan_expand_vptr_ifn): New function.
39115 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
39117 PR rtl-optimization/64110
39118 * stmt.c (parse_output_constraint): Process '^' and '$'.
39119 (parse_input_constraint): Ditto.
39120 * lra-constraints.c (process_alt_operands): Process the new
39122 * ira-costs.c (record_reg_classes): Process the new constraint
39124 * genoutput.c (indep_constraints): Add '^' and '$'.
39125 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
39126 * doc/md.texi: Add description of the new constraints.
39128 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
39129 Bernd Schmidt <bernds@codesourcery.com>
39130 Cesar Philippidis <cesar@codesourcery.com>
39131 James Norris <jnorris@codesourcery.com>
39132 Tom de Vries <tom@codesourcery.com>
39133 Ilmir Usmanov <i.usmanov@samsung.com>
39134 Dmitry Bocharnikov <dmitry.b@samsung.com>
39135 Evgeny Gavrin <e.gavrin@samsung.com>
39136 Jakub Jelinek <jakub@redhat.com>
39138 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
39139 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39140 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39141 New function types.
39142 * builtins.c: Include "gomp-constants.h".
39143 (expand_builtin_acc_on_device): New function.
39144 (expand_builtin, is_inexpensive_builtin): Handle
39145 BUILT_IN_ACC_ON_DEVICE.
39146 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
39148 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
39150 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
39151 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
39152 i386/intelmic-offload.h.
39153 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
39154 to libgomp and its dependencies.
39155 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
39156 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
39157 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
39158 * config/ia64/hpux.h (LIB_SPEC): Likewise.
39159 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
39160 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
39161 * doc/generic.texi: Update for OpenACC changes.
39162 * doc/gimple.texi: Likewise.
39163 * doc/invoke.texi: Likewise.
39164 * doc/sourcebuild.texi: Likewise.
39165 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
39166 GF_OMP_FOR_KIND_OACC_LOOP.
39167 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
39168 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
39169 GF_OMP_TARGET_KIND_OACC_UPDATE,
39170 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39172 * gimple.c: Update comments for OpenACC changes.
39173 * gimple.def: Likewise.
39174 * gimple.h: Likewise.
39175 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
39176 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39177 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
39178 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39179 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
39181 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
39182 * gimplify.c: Include "gomp-constants.h".
39183 Update comments for OpenACC changes.
39184 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
39185 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
39186 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39187 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
39188 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39189 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39190 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
39191 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39192 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
39194 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
39195 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
39196 OMP_CLAUSE_SET_MAP_KIND.
39197 (gimplify_oacc_cache): New function.
39198 (gimplify_omp_for): Handle OACC_LOOP.
39199 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
39201 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
39202 OACC_EXIT_DATA, OACC_UPDATE.
39203 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
39204 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
39205 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
39206 (gimplify_body): Consider flag_openacc next to flag_openmp.
39207 * lto-streamer-out.c: Include "gomp-constants.h".
39208 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
39209 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
39210 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
39211 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
39212 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
39213 (BUILT_IN_ACC_ON_DEVICE): New builtins.
39214 * omp-low.c: Include "gomp-constants.h".
39215 Update comments for OpenACC changes.
39216 (struct omp_context): Add reduction_map, gwv_below, gwv_this
39218 (extract_omp_for_data, use_pointer_for_field, install_var_field)
39219 (new_omp_context, delete_omp_context, scan_sharing_clauses)
39220 (create_omp_child_function, scan_omp_for, scan_omp_target)
39221 (check_omp_nesting_restrictions, lower_reduction_clauses)
39222 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
39223 Update for OpenACC changes.
39224 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
39225 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
39226 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
39227 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39228 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
39229 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
39231 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
39232 Handle GF_OMP_FOR_KIND_OACC_LOOP.
39233 (expand_omp_target, lower_omp_target): Handle
39234 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39235 GF_OMP_TARGET_KIND_OACC_UPDATE,
39236 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
39237 GF_OMP_TARGET_KIND_OACC_DATA.
39238 (pass_expand_omp::execute, execute_lower_omp)
39239 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
39241 (offload_symbol_decl): New variable.
39242 (oacc_get_reduction_array_id, oacc_max_threads)
39243 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
39244 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
39245 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
39246 (oacc_gimple_assign, oacc_initialize_reduction_data)
39247 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
39249 (is_targetreg_ctx): Remove function.
39250 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
39251 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
39252 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39253 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
39254 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
39255 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
39256 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
39257 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
39258 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
39259 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
39260 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
39261 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
39262 * tree-core.h: Update comments for OpenACC changes.
39263 (enum omp_clause_map_kind): Remove.
39264 (struct tree_omp_clause): Change type of map_kind member from enum
39265 omp_clause_map_kind to unsigned char.
39266 * tree-inline.c: Update comments for OpenACC changes.
39267 * tree-nested.c: Likewise. Include "gomp-constants.h".
39268 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
39269 (convert_tramp_reference_stmt, convert_gimple_call): Update for
39270 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
39271 OMP_CLAUSE_SET_MAP_KIND.
39272 * tree-pretty-print.c: Include "gomp-constants.h".
39273 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
39274 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
39275 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
39276 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
39277 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39278 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
39279 instead of OMP_CLAUSE_MAP_*.
39280 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
39281 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
39282 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39283 * tree-streamer-in.c: Include "gomp-constants.h".
39284 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
39285 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
39286 * tree-streamer-out.c: Include "gomp-constants.h".
39287 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
39289 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
39290 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
39291 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
39292 * tree.c (omp_clause_num_ops): Update accordingly.
39293 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
39295 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
39296 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
39297 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
39298 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
39299 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
39300 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
39301 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
39302 (OMP_CLAUSE_SET_MAP_KIND): New macro.
39303 * varpool.c (varpool_node::get_create): Consider flag_openacc next
39305 * config/i386/intelmic-offload.h: New file.
39306 * config/nvptx/offload.h: Likewise.
39308 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39310 * explow.h: Remove duplicate contents.
39311 * dojump.h: Likewise.
39313 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
39315 * arm.c (arm_xgene_tune): Add default initializer for instruction
39318 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39322 * ipa.c (symbol_table::remove_unreachable_nodes):
39323 Do not put abstract origins into boundary.
39325 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
39327 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
39328 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
39330 2015-01-15 Steve Ellcey <sellcey@mips.com>
39332 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
39333 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
39334 builtins.def, and chkp-builtins.def.
39336 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
39338 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
39341 2015-01-15 Richard Biener <rguenther@suse.de>
39343 PR tree-optimization/61743
39344 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
39345 information on PHIs for some simple cases.
39347 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39349 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
39351 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
39352 * config/arm/arm-cores.def (xgene1): New entry.
39353 * config/arm/arm-tables.opt: Regenerate.
39354 * config/arm/arm-tune.md: Regenerate.
39355 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
39357 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
39359 * tree-if-conv.c: Include hash-map.h.
39360 (aggressive_if_conv): New variable.
39361 (fold_build_cond_expr): Add simplification of non-zero condition.
39362 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
39363 destination block is not always executed.
39364 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
39365 than two predecessors if AGGRESSIVE_IF_CONV is true.
39366 (if_convertible_stmt_p): Fix commentary.
39367 (all_preds_critical_p): New function.
39368 (has_pred_critical_p): New function.
39369 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
39370 BB can have more than two predecessors and all incoming edges can be
39372 (predicate_bbs): Skip predication for loop exit block, use build2_loc
39373 to compute predicate for true edge.
39374 (find_phi_replacement_condition): Delete this function.
39375 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
39376 Allow interchange PHI arguments if EXTENDED is false.
39377 Change check that block containing reduction statement candidate
39378 is predecessor of phi-block since phi may have more than two arguments.
39379 (phi_args_hash_traits): New helper structure.
39380 (struct phi_args_hash_traits): New type.
39381 (phi_args_hash_traits::hash): New function.
39382 (phi_args_hash_traits::equal_keys): New function.
39383 (gen_phi_arg_condition): New function.
39384 (predicate_scalar_phi): Add handling of phi nodes with more than two
39385 arguments, delete COND and TRUE_BB arguments, insert body of
39386 find_phi_replacement_condition to predicate ordinary phi nodes.
39387 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
39388 delete call of find_phi_replacement_condition and invoke
39389 predicate_scalar_phi with two arguments.
39390 (insert_gimplified_predicates): Add assert that non-predicated block
39391 don't have statements to insert.
39392 (ifcvt_split_critical_edges): New function.
39393 (ifcvt_split_def_stmt): Likewise.
39394 (ifcvt_walk_pattern_tree): Likewise.
39395 (stmt_is_root_of_bool_pattern): Likewise.
39396 (ifcvt_repair_bool_pattern): Likewise.
39397 (ifcvt_local_dce): Likewise.
39398 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
39399 is copy of inner or outer loop force_vectorize field, invoke
39400 ifcvt_split_critical_edges, ifcvt_local_dce and
39401 ifcvt_repair_bool_pattern for aggressive if-conversion.
39403 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
39405 * config/aarch64/aarch64.md: Include xgene1.md.
39406 * config/aarch64/xgene1.md: New file.
39408 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39410 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
39411 xgene1 (APM XGene-1) core definition.
39412 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
39413 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
39414 * doc/invoke.texi: Document -mcpu=xgene1.
39416 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39418 * dojump.h: New header file.
39419 * explow.h: Likewise.
39420 * expr.h: Remove includes.
39421 Move expmed.c prototypes to expmed.h.
39422 Move dojump.c prototypes to dojump.h.
39423 Move alias.c prototypes to alias.h.
39424 Move explow.c prototypes to explow.h.
39425 Move calls.c prototypes to calls.h.
39426 Move emit-rtl.c prototypes to emit-rtl.h.
39427 Move varasm.c prototypes to varasm.h.
39428 Move stmt.c prototypes to stmt.h.
39429 (saved_pending_stack_adjust): Move to dojump.h.
39430 (adjust_address): Move to explow.h.
39431 (adjust_address_nv): Move to emit-rtl.h.
39432 (adjust_bitfield_address): Likewise.
39433 (adjust_bitfield_address_size): Likewise.
39434 (adjust_bitfield_address_nv): Likewise.
39435 (adjust_automodify_address_nv): Likewise.
39436 * explow.c (expr_size): Move to expr.c.
39437 (int_expr_size): Likewise.
39438 (tree_expr_size): Likewise.
39439 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39440 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39441 * genemit.c (main): Generate includes statistics.h, real.h,
39442 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
39444 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
39445 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
39446 explow.h, emit-rtl.h, stmt.h.
39447 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
39448 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
39449 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
39450 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
39451 emit-rtl.h, varasm.h, stmt.h.
39452 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
39453 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
39454 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
39455 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
39456 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39457 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
39458 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
39459 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
39460 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
39461 tm.h tree.h varasm.h vec.h wide-int.h.
39462 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39463 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39464 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
39465 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
39466 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
39467 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
39468 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
39469 * loop-iv.c: Likewise.
39470 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
39471 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
39472 statistics.h stmt.h tree.h varasm.h wide-int.h.
39473 * lra-constraints.c: Likewise.
39474 * lra-eliminations.c: Likewise.
39475 * lra-lives.c: Likewise.
39476 * lra-remat.c: Likewise.
39477 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39478 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
39479 statistics.h stmt.h tree.h varasm.h wide-int.h.
39480 * hw-doloop.c: Likewise.
39481 * ira-color.c: Likewise.
39482 * ira-emit.c: Likewise.
39483 * loop-doloop.c: Likewise.
39484 * loop-invariant.c: Likewise.
39485 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39486 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
39487 statistics.h stmt.h tree.h varasm.h wide-int.h.
39488 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
39489 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
39490 statistics.h stmt.h tree.h varasm.h wide-int.h.
39491 * combine-stack-adj.c: Likewise.
39494 * ifcvt.c: Likewise.
39495 * ira-costs.c: Likewise.
39496 * jump.c: Likewise.
39497 * lra-coalesce.c: Likewise.
39498 * lra-spills.c: Likewise.
39499 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39500 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
39501 stmt.h varasm.h wide-int.h.
39502 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39503 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39505 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
39506 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
39507 statistics.h stmt.h varasm.h wide-int.h.
39508 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
39509 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
39510 varasm.h wide-int.h.
39511 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
39512 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39513 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
39514 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
39515 statistics.h stmt.h.
39516 * config/tilepro/tilepro.c: Likewise.
39517 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
39518 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
39519 * config/pdp11/pdp11.c: Likewise.
39520 * config/xtensa/xtensa.c: Likewise.
39521 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
39522 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39524 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39525 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39526 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
39527 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39528 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39529 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
39530 * rtl-chkp.c: Likewise.
39531 * tree-chkp-opt.c: Likewise.
39532 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
39533 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39534 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
39535 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39536 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39537 statistics.h stmt.h.
39538 * tree-vect-data-refs.c: Likewise.
39539 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
39540 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39541 rtl.h statistics.h stmt.h varasm.h.
39542 * internal-fn.c: Likewise.
39543 * ipa-icf-gimple.c: Likewise.
39544 * lto-section-out.c: Likewise.
39545 * tree-data-ref.c: Likewise.
39546 * tree-nested.c: Likewise.
39547 * tree-outof-ssa.c: Likewise.
39548 * tree-predcom.c: Likewise.
39549 * tree-pretty-print.c: Likewise.
39550 * tree-scalar-evolution.c: Likewise.
39551 * tree-ssa-strlen.c: Likewise.
39552 * tree-vect-loop.c: Likewise.
39553 * tree-vect-patterns.c: Likewise.
39554 * tree-vect-slp.c: Likewise.
39555 * tree-vect-stmts.c: Likewise.
39556 * tsan.c: Likewise.
39557 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39558 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
39560 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
39561 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39562 statistics.h stmt.h varasm.h.
39563 * loop-unroll.c: Likewise.
39564 * ubsan.c: Likewise.
39565 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
39566 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
39568 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39569 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
39570 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
39571 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39572 statistics.h stmt.h.
39573 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
39574 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39575 statistics.h stmt.h varasm.h.
39576 * gimple-match-head.c: Likewise.
39577 * lto-cgraph.c: Likewise.
39578 * lto-section-in.c: Likewise.
39579 * lto-streamer-in.c: Likewise.
39580 * lto-streamer-out.c: Likewise.
39581 * tree-affine.c: Likewise.
39582 * tree-cfg.c: Likewise.
39583 * tree-cfgcleanup.c: Likewise.
39584 * tree-if-conv.c: Likewise.
39585 * tree-into-ssa.c: Likewise.
39586 * tree-ssa-alias.c: Likewise.
39587 * tree-ssa-copyrename.c: Likewise.
39588 * tree-ssa-dse.c: Likewise.
39589 * tree-ssa-forwprop.c: Likewise.
39590 * tree-ssa-live.c: Likewise.
39591 * tree-ssa-math-opts.c: Likewise.
39592 * tree-ssa-pre.c: Likewise.
39593 * tree-ssa-sccvn.c: Likewise.
39594 * tree-tailcall.c: Likewise.
39595 * tree-vect-generic.c: Likewise.
39596 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39597 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
39598 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39599 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
39600 * varasm.c: Likewise.
39601 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39602 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
39604 * init-regs.c: Likewise.
39606 * omp-low.c: Likewise.
39607 * stack-ptr-mod.c: Likewise.
39608 * tree-ssa-reassoc.c: Likewise.
39609 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39610 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
39612 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39613 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
39614 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39615 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
39616 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39617 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
39618 * tree-ssa-phiopt.c: Likewise.
39619 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39620 fixed-value.h hashtab.h real.h statistics.h stmt.h.
39621 * config/fr30/fr30.c: Likewise.
39622 * config/frv/frv.c: Likewise.
39623 * expr.c: Likewise.
39624 * final.c: Likewise.
39625 * optabs.c: Likewise.
39626 * passes.c: Likewise.
39627 * simplify-rtx.c: Likewise.
39628 * stmt.c: Likewise.
39629 * toplev.c: Likewise.
39630 * var-tracking.c: Likewise.
39631 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39632 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39633 * lower-subreg.c: Likewise.
39634 * postreload-gcse.c: Likewise.
39636 * reginfo.c: Likewise.
39637 * store-motion.c: Likewise.
39638 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39639 fixed-value.h hashtab.h real.h stmt.h varasm.h.
39640 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39641 fixed-value.h hashtab.h statistics.h stmt.h.
39642 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39643 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39644 * except.c: Likewise.
39645 * explow.c: Likewise.
39646 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39647 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
39649 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39650 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
39651 * tree-ssa-structalias.c: Likewise.
39652 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39653 fixed-value.h insn-config.h real.h statistics.h.
39654 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39655 fixed-value.h insn-config.h real.h statistics.h stmt.h.
39656 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39657 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39658 * cfgbuild.c: Likewise.
39659 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39660 fixed-value.h real.h rtl.h statistics.h stmt.h.
39661 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39662 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39663 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39664 fixed-value.h real.h statistics.h stmt.h.
39665 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39666 fixed-value.h real.h statistics.h stmt.h varasm.h.
39667 * cprop.c: Likewise.
39668 * modulo-sched.c: Likewise.
39669 * postreload.c: Likewise.
39670 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39671 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
39672 statistics.h stmt.h varasm.h.
39673 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
39674 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39675 rtl.h statistics.h stmt.h varasm.h.
39676 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
39677 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
39679 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39680 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
39682 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
39683 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
39685 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
39686 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39687 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39688 function.h real.h statistics.h stmt.h varasm.h.
39689 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39690 insn-config.h real.h statistics.h stmt.h.
39691 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39692 statistics.h stmt.h.
39693 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
39694 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
39695 statistics.h stmt.h varasm.h.
39696 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
39697 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
39698 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39699 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
39700 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
39701 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39702 statistics.h stmt.h varasm.h.
39703 * ipa-polymorphic-call.c: Likewise.
39704 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
39705 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39706 statistics.h stmt.h.
39707 * config/c6x/c6x.c: Likewise.
39708 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
39709 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39710 statistics.h stmt.h varasm.h.
39711 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
39712 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
39714 * ipa-split.c: Likewise.
39715 * tree-eh.c: Likewise.
39716 * tree-ssa-dce.c: Likewise.
39717 * tree-ssa-loop-niter.c: Likewise.
39718 * tree-vrp.c: Likewise.
39719 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
39720 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
39722 * config/nds32/nds32-fp-as-gp.c: Likewise.
39723 * config/nds32/nds32-intrinsic.c: Likewise.
39724 * config/nds32/nds32-isr.c: Likewise.
39725 * config/nds32/nds32-md-auxiliary.c: Likewise.
39726 * config/nds32/nds32-memory-manipulation.c: Likewise.
39727 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
39728 * config/nds32/nds32-predicates.c: Likewise.
39729 * config/nds32/nds32.c: Likewise.
39730 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
39731 fixed-value.h hashtab.h real.h statistics.h.
39732 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
39733 fixed-value.h hashtab.h real.h statistics.h stmt.h.
39734 * config/arm/arm.c: Likewise.
39735 * config/avr/avr.c: Likewise.
39736 * config/bfin/bfin.c: Likewise.
39737 * config/h8300/h8300.c: Likewise.
39738 * config/i386/i386.c: Likewise.
39739 * config/ia64/ia64.c: Likewise.
39740 * config/iq2000/iq2000.c: Likewise.
39741 * config/m32c/m32c.c: Likewise.
39742 * config/m32r/m32r.c: Likewise.
39743 * config/m68k/m68k.c: Likewise.
39744 * config/mcore/mcore.c: Likewise.
39745 * config/mep/mep.c: Likewise.
39746 * config/mips/mips.c: Likewise.
39747 * config/mn10300/mn10300.c: Likewise.
39748 * config/moxie/moxie.c: Likewise.
39749 * config/pa/pa.c: Likewise.
39750 * config/rl78/rl78.c: Likewise.
39751 * config/rx/rx.c: Likewise.
39752 * config/s390/s390.c: Likewise.
39753 * config/sh/sh.c: Likewise.
39754 * config/sparc/sparc.c: Likewise.
39755 * config/spu/spu.c: Likewise.
39756 * config/stormy16/stormy16.c: Likewise.
39757 * config/v850/v850.c: Likewise.
39758 * config/vax/vax.c: Likewise.
39759 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
39760 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39761 * config/msp430/msp430.c: Likewise.
39762 * predict.c: Likewise.
39763 * value-prof.c: Likewise.
39764 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
39765 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
39766 * config/microblaze/microblaze.c: Likewise.
39767 * config/nios2/nios2.c: Likewise.
39768 * config/rs6000/rs6000.c: Likewise.
39769 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39770 insn-config.h real.h rtl.h statistics.h stmt.h.
39771 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39772 insn-config.h real.h statistics.h stmt.h.
39773 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
39774 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39775 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
39776 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39777 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
39778 fixed-value.h real.h statistics.h stmt.h.
39779 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
39780 fixed-value.h statistics.h stmt.h.
39781 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
39784 2015-01-15 Jakub Jelinek <jakub@redhat.com>
39786 * gengtype.c (create_user_defined_type): Workaround
39787 -Wmaybe-uninitialized false positives.
39788 * cse.c (fold_rtx): Likewise.
39789 * loop-invariant.c (gain_for_invariant): Likewise.
39791 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
39793 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
39794 set the memory attributes in all cases but clear MEM_EXPR if need be.
39796 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
39798 PR tree-optimization/64434
39799 * cfgexpand.c (reorder_operands): New function.
39800 (expand_gimple_basic_block): Insert call of reorder_operands if
39803 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
39805 * config/mips/micromips.md (*swp): Remove explicit parallel.
39806 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
39807 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
39808 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
39809 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
39810 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
39811 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
39812 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
39813 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
39814 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
39815 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
39816 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
39817 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
39818 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
39819 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
39820 (mips_wrdsp): Likewise.
39821 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
39823 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
39824 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
39825 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
39826 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
39827 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
39828 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
39829 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
39830 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
39831 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
39833 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
39835 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
39836 (mips_print_operand): Support 'y' to print exact log2 in decimal
39838 * config/mips/mips.h (ISA_HAS_LSA): New define.
39839 (ISA_HAS_DLSA): Likewise.
39840 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
39841 * config/mips/predicates.md (const_immlsa_operand): New predicate.
39843 2015-01-15 Martin Liska <mliska@suse.cz>
39846 * optc-save-gen.awk: Add support for array types.
39848 2015-01-15 Richard Biener <rguenther@suse.de>
39850 PR middle-end/64365
39851 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
39852 for MEM_REF access functions with the same base can never partially
39855 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
39857 * common.opt: New option -fstack-protector-explicit.
39858 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
39859 (stack_protect_decl_phase): Handle stack_protect attribute for
39860 explicit stack protection requests.
39861 (expand_used_vars): Similarly.
39862 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
39863 * doc/extend.texi: Add documentation for "stack_protect" attribute.
39864 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
39866 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
39869 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
39871 (sh_extending_set_of_reg): New struct.
39872 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
39873 sh_remove_reg_dead_or_unused_notes): New Declarations.
39874 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
39875 sh_find_extending_set_of_reg, sh_split_tst_subregs,
39876 sh_extending_set_of_reg::use_as_extended_reg): New functions.
39877 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
39878 convert to insn_and_split and use new function sh_split_tst_subregs.
39880 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
39882 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
39884 (Optimization Options): Move -fuse-ld documentation to...
39885 (Link Options): ...here.
39887 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
39889 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
39891 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
39892 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
39893 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
39894 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
39895 instead of ZR for the memory operand of LL/SC.
39896 (compare_and_swap_12, sync_add<mode>): Likewise.
39897 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
39898 (sync_new_<optab>_12, sync_nand_12): Likewise.
39899 (sync_old_nand_12, sync_new_nand_12): Likewise.
39900 (sync_sub<mode>, sync_old_add<mode>): Likewise.
39901 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
39902 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
39903 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
39904 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
39905 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
39906 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
39907 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
39908 * doc/md.texi (ZC): Update description.
39910 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
39912 * builtins.c (expand_builtin_atomic_exchange): Remove error when
39913 memory model is CONSUME.
39914 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
39915 expand_builtin_atomic_store): Change invalid memory model errors to
39917 (expand_builtin_atomic_clear): Change invalid model errors to warnings
39918 and issue warning for CONSUME.
39920 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
39922 * lto-cgraph: Update function comments for
39923 lto_symtab_encoder_encode_*.
39925 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
39927 * Makefile.in (site.exp): Do not set ENABLE_LTO.
39929 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
39931 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
39932 * lto-cgraph.c (select_what_to_stream): Remove argument, use
39933 lto_stream_offload_p instead.
39934 * lto-streamer.h (select_what_to_stream): Remove argument.
39935 * passes.c (ipa_write_summaries): Likewise.
39936 * tree-pass.h (ipa_write_summaries): Likewise.
39938 2015-01-14 Richard Biener <rguenther@suse.de>
39940 PR tree-optimization/59354
39941 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
39942 groups larger than the slp group size as having gaps.
39944 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
39946 PR middle-end/59448
39947 * builtins.c (get_memmodel): Promote consume to acquire always.
39949 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39952 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
39955 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39958 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
39960 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
39961 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
39962 AVX512VBMI, as it implies AVX512BW.
39964 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39967 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
39968 (vec_unpacks_hi_v16sf): Ditto.
39970 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39972 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
39975 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39977 * doc/invoke.texi (mapcs): Mention deprecation.
39978 (mapcs-frame): Likewise.
39980 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
39983 * config/arm/arm.c (callee_saved_reg_p): Define.
39984 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
39985 register is callee saved instead of !call_used_regs[reg].
39986 (thumb1_compute_save_reg_mask): Likewise.
39988 2015-01-14 Hale Wang <hale.wang@arm.com>
39990 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
39993 2015-01-14 Richard Biener <rguenther@suse.de>
39996 * tree-inline.c (insert_debug_decl_map): Check destination
39997 function MAY_HAVE_DEBUG_STMTS.
39998 (insert_init_debug_bind): Likewise.
39999 (insert_init_stmt): Remove redundant check.
40000 (remap_gimple_stmt): Drop debug stmts if the destination
40001 function has var-tracking assignments disabled.
40003 2015-01-14 Martin Liska <mliska@suse.cz>
40005 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
40006 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
40008 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40011 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
40012 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
40014 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40016 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
40017 level from an ARCH; do not inject the default.
40018 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
40019 MIPS_ISA_LEVEL_SPEC.
40020 (MIPS_ISA_NAN2008_SPEC): Update comment.
40021 (BASE_DRIVER_SELF_SPECS): Likewise.
40022 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
40023 MIPS_DEFAULT_ISA_LEVEL_SPEC.
40024 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
40025 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
40026 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
40028 2015-01-14 Richard Biener <rguenther@suse.de>
40030 PR tree-optimization/64493
40031 PR tree-optimization/64495
40032 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
40033 assign the proper vectorized PHI to the inner loop exit PHIs.
40035 2015-01-14 Joey Ye <joey.ye@arm.com>
40037 * config/arm/arm.c (arm_compute_save_reg_mask):
40038 Do not save lr in case of tail call.
40039 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
40041 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
40043 * tree-vrp.c (check_array_ref): Emit more warnings
40044 for warn_array_bounds >= 2.
40045 * common.opt: New option -Warray-bounds=.
40046 * doc/invoke.texi: Document -Warray-bounds=.
40048 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
40050 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
40051 (mforbid-fp-as-gp): Remove.
40053 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
40054 (nds32_symbol_load_store_p): Remove.
40055 (nds32_fp_as_gp_check_available): Clean up implementation.
40056 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
40058 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
40059 fp-as-gp and ex9 cases.
40061 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40063 * tree-profile.c (init_ic_make_global_vars): Drop workaround
40064 for bintuils bug 14342.
40065 (init_ic_make_global_vars): Likewise.
40066 (gimple_init_edge_profiler): Likewise.
40067 (gimple_gen_ic_func_profiler): Likewise.
40069 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
40071 * ipa-inline.c (inline_small_functions): Swap the operands in
40074 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40077 * ipa-inline-analysis.c (node_growth_cache): Remove.
40078 (initialize_growth_caches): Do not initialize it.
40079 (free_growth_caches): Do not free it.
40080 (do_estimate_growth): Rename to ...
40081 (estimate_growth): ... this one; drop growth cache code.
40082 (growth_likely_positive): Always go the heuristics way.
40083 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
40084 (reset_edge_caches): Do not reset node growth.
40085 (heap_edge_removal_hook): Do not maintain cache.
40086 (inline_small_functions): Likewise; strenghten sanity check.
40087 (ipa_inline): Do not maintain caches.
40088 * ipa-inline.h (node_growth_cache): Remove.
40089 (do_estimate_growth): Remove to ...
40090 (estimate_growth): this one; remove inline version.
40091 (reset_node_growth_cache): Remove.
40093 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40096 * ipa-inline.c (inline_small_functions): Update callee keys after
40097 resolving speculation
40098 (inline_small_functions): Always check monotonicity of the queue.
40100 2015-01-13 Marek Polacek <polacek@redhat.com>
40102 PR middle-end/64391
40103 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
40105 2015-01-13 Jakub Jelinek <jakub@redhat.com>
40107 PR rtl-optimization/64286
40108 * ree.c (combine_reaching_defs): Move part of comment earlier,
40109 remove !SCALAR_INT_MODE_P check.
40110 (add_removable_extension): Don't add vector mode
40111 extensions if all uses of the source register aren't the same
40114 2015-01-13 Renlin Li <renlin.li@arm.com>
40116 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
40117 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
40119 2015-01-13 Martin Liska <mliska@suse.cz>
40121 * ipa-icf.c (sem_function::equals_private): Call new functions
40122 cl_target_option_print_diff and cl_optimization_print_diff.
40123 * optc-save-gen.awk (cl_target_option_print_diff): New function.
40124 (cl_optimization_print_diff): Likewise.
40125 * opth-gen.awk: Likewise.
40127 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
40129 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
40130 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
40131 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
40132 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
40133 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
40134 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
40136 2015-01-13 Andrew Pinski <apinski@cavium.com>
40138 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
40139 instead of src mode.
40141 2015-01-13 Richard Biener <rguenther@suse.de>
40144 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
40147 2015-01-13 Andrew Pinski <apinski@cavium.com>
40149 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
40151 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
40153 2015-01-13 Jakub Jelinek <jakub@redhat.com>
40155 PR middle-end/63974
40156 * cfgexpand.c (expand_computed_goto): Don't call
40157 convert_memory_address here.
40159 2015-01-13 Richard Biener <rguenther@suse.de>
40161 PR tree-optimization/64406
40162 * tree-loop-distibution.c (pass_loop_distribution::execute):
40163 Reset the SCEV hashtable if we distributed anything.
40165 2015-01-13 Richard Biener <rguenther@suse.de>
40167 PR tree-optimization/64404
40168 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
40169 SLP types for CSEd loads.
40171 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
40173 PR tree-optimization/64436
40174 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
40175 merge of two symbolic numbers for a bitwise OR to ...
40176 (perform_symbolic_merge): This. Also fix computation of the range and
40177 end of the symbolic number corresponding to the result of a bitwise OR.
40179 2015-01-13 Richard Biener <rguenther@suse.de>
40181 PR tree-optimization/64568
40182 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
40183 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
40185 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40187 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
40188 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
40190 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40192 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
40193 target-specific symbol_ref flag.
40194 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
40195 resides in rodata section.
40196 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
40197 (nds32_encode_section_info): New function.
40199 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40201 * config/nds32/nds32.md (call): Use pseudo instruction bal which
40202 clobbers TA_REGNUM if large code model is specified.
40203 (call_register): Likewise.
40204 (call_immediate): Likewise.
40205 (call_value): Likewise.
40206 (call_value_register): Likewise.
40207 (call_value_immediate): Likewise.
40209 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40211 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
40212 (TARGET_CMODEL_MEDIUM): New macro.
40213 (TARGET_CMODEL_LARGE): New macro.
40214 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
40215 code model setting in assembly code.
40217 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40219 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
40220 Remove MASK_GP_DIRECT flag.
40221 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
40222 one of the multilib default options.
40223 * config/nds32/nds32.opt (mgp-direct): Remove.
40224 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
40225 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
40227 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40229 * config/nds32/nds32.opt (mcmodel): Add new option.
40230 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
40231 to describe code model.
40233 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
40236 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
40238 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
40240 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
40241 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
40242 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
40243 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
40244 __builtin_sh_set_fpscr.
40246 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
40248 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
40249 after a funtion name just to indicate it is a function.
40250 ([-fsanitize-undefined-trap-on-error]): Likewise.
40251 ([-fdbg-cnt=]): Likewise.
40252 ([-mmemcpy]): Likewise.
40253 ([-mflush-func]): Likewise.
40254 ([-msynci]): Likewise.
40256 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
40258 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
40261 2015-01-12 Jakub Jelinek <jakub@redhat.com>
40263 PR tree-optimization/64563
40264 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
40265 instead of != VR_VARYING.
40268 * config/i386/i386.c (ix86_expand_prologue): Add
40269 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
40271 PR tree-optimization/64454
40272 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
40273 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
40274 for signed or [0, op1 - 1] for unsigned modulo.
40275 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
40276 even if op1 does not satisfy integer_pow2p.
40279 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
40281 2015-01-12 Jeff Law <law@redhat.com>
40284 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
40285 (trunchiqi2, truncsihi2): Similarly.
40287 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
40288 rather than calling F.
40290 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
40292 * tsan.c (instrument_expr): Use force_gimple_operand.
40293 Use may_be_nonaddressable_p instead of is_gimple_addressable.
40295 2015-01-12 Richard Biener <rguenther@suse.de>
40297 PR tree-optimization/64530
40298 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
40301 2015-01-12 Richard Biener <rguenther@suse.de>
40303 PR middle-end/64357
40304 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
40307 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40309 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
40310 Cortex-A17 tuning parameters.
40311 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
40313 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40315 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
40316 * config/arm/arm.c (arm_macro_fusion_p): New function.
40317 (arm_macro_fusion_pair_p): Likewise.
40318 (TARGET_SCHED_MACRO_FUSION_P): Define.
40319 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
40320 (ARM_FUSE_NOTHING): Likewise.
40321 (ARM_FUSE_MOVW_MOVT): Likewise.
40322 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
40323 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
40324 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
40325 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
40326 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
40327 arm_cortex_a5_tune): Specify fuseable_ops value.
40329 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
40332 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
40333 test for PIE with copy reloc.
40334 * configure: Regenerated.
40336 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40338 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
40340 (arm_tls_descseq_addr): Likewise.
40341 (arm_gen_movmemqi): Likewise.
40342 (arm_expand_epilogue_apcs_frame): Likewise.
40343 (arm_expand_epilogue): Likewise.
40344 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
40347 2015-01-12 Martin Liska <mliska@suse.cz>
40350 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
40351 volatility for correct operands.
40353 2015-01-12 Martin Liska <mliska@suse.cz>
40355 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
40356 indication that a function is not leaf.
40357 (sem_function::compare_polymorphic_p): Likewise.
40359 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40361 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
40362 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
40363 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
40364 fold-const.h, tree-check.h.
40366 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
40370 * ipa-inline.c (compute_uninlined_call_time,
40371 compute_inlined_call_time): Use counts for extra precision when
40373 (big_speedup_p): Fix formating.
40374 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
40375 (relative_time_benefit): Remove.
40376 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
40377 merge guessed and read profile paths.
40378 (inline_small_functions): Count only !optimize_size functions into
40379 initial size; be more lax about sanity check when profile is used;
40380 be sure to update inlined function profile when profile is read.
40382 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
40385 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
40386 cost when edge becomes direct.
40387 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
40388 is resolved or when introducing new speculation.
40390 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
40394 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
40395 '||' to fix typo issue.
40397 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
40398 accept and return NULL.
40400 2015-01-12 Martin Liska <mliska@suse.cz>
40402 * cgraph.c (cgraph_edge::remove_callee): Move function to header
40403 file for being inlined.
40404 (cgraph_set_edge_callee): Delete.
40405 (cgraph_edge::redirect_callee): Move function to header file
40407 (cgraph_edge::make_direct): Use new function.
40408 (cgraph_edge::dump_edge_flags): New function created from
40409 static dump_edge_flags function.
40410 (cgraph_node::dump): Use new function.
40411 (cgraph_edge::verify_count_and_frequency): New function created
40412 from verify_edge_count_and_frequency.
40413 (cgraph_edge::verify_corresponds_to_fndecl): New function created
40414 from verify_edge_corresponds_to_fndecl.
40415 (verify_edge_corresponds_to_fndecl): Delete.
40416 (cgraph_node::verify_node): Use new function.
40417 * cgraph.h (cgraph_edge::set_callee): New function.
40418 (cgraph_edge::dump_edge_flags): Likewise.
40419 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
40421 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
40423 * ipa-utils.c (estimate_function_body_sizes): Do not
40424 free node params when called late with early=true.
40426 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
40428 * doc/md.texi (Instruction Patterns): Rewrite text for
40430 (Example): Likewise.
40432 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
40434 * doc/invoke.texi (Option Summary): Break long lines.
40435 [(-fdiagnostics-color)]: Put long literal in @smallexample
40437 [(-fsanitize-recover)]: Likewise.
40438 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
40439 [(-ffast-math)]: Likewise.
40440 [(--param max-inline-insns-recursive)]: Likewise.
40441 [(--param max-inline-recursive-depth)]: Likewise.
40442 [(-mno-text-section-literals)]: Likewise.
40444 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
40446 * doc/install.texi: Update for libgomp being renamed from "GNU
40447 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
40449 * doc/sourcebuild.texi: Likewise.
40451 2015-01-10 Anthony Green <green@moxielogic.com>
40453 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
40454 mul.x availability for moxiebox configuration.
40456 2015-01-09 Anthony Green <green@moxielogic.com>
40458 * config/moxie/moxie.md: Tabify assembly output.
40460 2015-01-09 Anthony Green <green@moxielogic.com>
40462 * config/moxie/moxie.md (CC_REG): Correct register definition.
40464 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
40466 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
40467 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
40470 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40472 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
40474 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
40475 Jakub Jelinek <jakub@redhat.com>
40477 PR middle-end/64412
40478 * lto-streamer.h (lto_stream_offload_p): New declaration.
40479 * lto-streamer.c (lto_stream_offload_p): New variable.
40480 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
40481 at the same time as section_name_prefix.
40482 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
40483 if lto_stream_offload_p.
40484 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
40485 stream TREE_TARGET_OPTION if lto_stream_offload_p.
40486 (write_ts_function_decl_tree_pointers): Don't
40487 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
40488 * tree-streamer-in.c (unpack_value_fields): Don't stream
40489 TREE_TARGET_OPTION in if ACCEL_COMPILER.
40490 (lto_input_ts_function_decl_tree_pointers): Don't stream
40491 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
40492 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
40493 instead of section_name_prefix string comparisons.
40495 2015-01-09 Jakub Jelinek <jakub@redhat.com>
40497 PR rtl-optimization/64536
40498 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
40501 2015-01-09 Michael Collison <michael.collison@linaro.org>
40503 PR tree-optimization/64322
40504 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
40505 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
40507 2015-01-09 Tom de Vries <tom@codesourcery.com>
40509 PR rtl-optimization/64539
40510 * regcprop.c (kill_clobbered_values): Factor out of ...
40511 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
40512 instead of note_stores with kill_clobbered_value.
40514 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40516 * ginclude/unwind-arm-common.h: Revert previous commit.
40518 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40520 * config.gcc (arm*-*-freebsd*): New configuration.
40521 * config/arm/freebsd.h: New file.
40522 * config.host: Add extra components for arm*-*-freebsd*.
40523 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
40524 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
40526 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40528 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
40530 * config/rs6000/t-rtems: Add e6500 multilibs.
40532 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40534 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
40537 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40539 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
40540 MULTILIB_EXCEPTIONS.
40542 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40544 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
40545 MULTILIB_EXCEPTIONS.
40547 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40549 * config/arm/t-rtems-eabi: Rename to...
40550 * config/arm/t-rtems: ...this.
40551 * config/arm/rtems-eabi.h: Rename to...
40552 * config/arm/rtems.h: ...this.
40553 * config.gcc (arm*-*-rtems*): Reflect changes above.
40555 2015-01-09 Richard Biener <rguenther@suse.de>
40557 PR tree-optimization/64410
40558 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
40560 (execute_update_addresses_taken): Deal with that.
40561 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
40562 loads/stores for complex variables.
40564 2015-01-09 Martin Liska <mliska@suse.cz>
40566 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
40568 (func_checker::compare_memory_operand): New function.
40569 (func_checker::compare_operand): Split case to newly
40571 (func_checker::compare_cst_or_decl): New function.
40572 (func_checker::compare_gimple_call): Identify
40574 (func_checker::compare_gimple_assign): Likewise.
40575 * ipa-icf-gimple.h: New function.
40577 2015-01-09 Martin Liska <mliska@suse.cz>
40580 * sreal.c (sreal::dump): Change unsigned format to signed for
40582 (sreal::to_double): Replace exp2 with scalbln.
40584 2015-01-09 Martin Liska <mliska@suse.cz>
40586 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
40587 * ipa-icf.c (sem_function::equals_private): Add support for target and
40588 (sem_item_optimizer::merge_classes): Remove redundant function
40589 optimization flags comparison.
40590 * tree.h (target_opts_for_fn): New function.
40592 2015-01-09 Tom de Vries <tom@codesourcery.com>
40594 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
40596 2015-01-09 Kito Cheng <kito@0xlab.org>
40598 PR rtl-optimization/64348
40599 * lra-constraints.c (split_reg): Fix caller-save store/restore
40600 instruction generation.
40602 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
40604 PR gcov-profile/61790
40605 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
40606 long long. Fallback to int64_t if host doesn't have long long and
40607 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
40609 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40611 PR tree-optimization/63989
40612 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
40613 from 1000 to 10000.
40614 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
40615 (get_stridx): If we don't have a record for certain SSA_NAME,
40616 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
40617 constant offset, call get_stridx_plus_constant.
40618 (get_stridx_plus_constant): New function.
40619 (zero_length_string): Don't use get_stridx here.
40622 PR middle-end/64388
40623 * dse.c (struct insn_info): Mention frame_read set also
40624 before reload for tail calls on some targets.
40625 (scan_insn): Revert 2014-12-22 change. Set frame_read
40626 also before reload for tail calls if
40627 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
40628 instead of add_non_frame_wild_read for non-const/memset
40629 tail calls after reload.
40631 2015-01-08 Jason Merrill <jason@redhat.com>
40633 * ubsan.c (do_ubsan_in_current_function): New.
40634 (pass_ubsan::gate): Use it.
40635 * ubsan.h: Declare it.
40636 * convert.c (convert_to_integer): Use it.
40638 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40641 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
40642 compare_code when it is unconditionally overwritten afterwards.
40643 Use ix86_reverse_condition instead of reverse_condition. Don't
40644 change code if *reverse_condition* returned UNKNOWN and don't
40645 swap ct/cf and negate diff in that case.
40647 2015-01-08 Mike Stump <mikestump@comcast.net>
40649 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
40650 (pass_tsan_O0::gate): Likewise.
40651 * extend.texi (Function Attributes): Add no_sanitize_thread
40654 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
40656 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
40657 for registering builtins.
40658 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
40659 add -fopenmp to the argv_obstack used when invoking
40660 compile_for_target.
40662 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
40663 add "-m32" or "-m64" to argv_obstack.
40664 (generate_host_descr_file): Likewise, when invoking host_compiler.
40665 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
40668 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40670 * config/sh/sh-mem.cc: Use constant as second operand when emitting
40673 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40676 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
40677 constant load if constant operand fits into I08.
40679 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40682 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
40683 and TREE_THIS_VOLATILE for MEM_REFs.
40684 (build5_stat): Fix up initialization of TREE_READONLY and
40685 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
40687 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
40690 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
40691 of r for the second alternative of the destination operand.
40693 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
40696 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
40698 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
40700 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
40702 ([-fivar-visibility], [-fvisibility]): Likewise.
40704 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
40706 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
40707 the file where @code, @command, etc is more appropriate.
40709 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
40711 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
40712 of -mrecip= documentation.
40714 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
40717 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
40718 correct reload handler if -m32 -mpowerpc64 is used.
40720 2015-01-06 Tom de Vries <tom@codesourcery.com>
40722 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
40724 2015-01-08 Christian Bruel <christian.bruel@st.com>
40727 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
40729 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
40731 PR tree-optimization/63259
40732 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
40733 if optab exists for 16bit byteswap.
40735 2015-01-06 Jakub Jelinek <jakub@redhat.com>
40737 * opts.c (common_handle_option): Add support for
40738 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
40739 * doc/invoke.texi: Document -fno-sanitize=all,
40740 -f{,no-}sanitize-recover=all. Document that
40741 -fsanitize=float-cast-overflow is not enabled
40742 by -fsanitize=undefined. Fix up documentation
40743 of -f{,no-}sanitize-recover.
40745 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
40747 * config.gcc: Add Visium support.
40748 * configure.ac: Likewise.
40749 * configure: Regenerate.
40750 * doc/extend.texi (interrupt attribute): Add Visium.
40751 * doc/invoke.texi: Document Visium options.
40752 * doc/install.texi: Document Visium target.
40753 * doc/md.texi: Document Visium constraints.
40754 * common/config/visium: New directory.
40755 * config/visium: Likewise.
40757 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
40759 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
40760 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
40762 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
40764 * combine.c (combine_validate_cost): Do not count the cost of a
40765 split I2 twice. Do not display it twice in the dump, either.
40767 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
40769 Revert parts of r219199.
40770 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
40772 ([-Wtraditional]): Restore markup on <limits.h>.
40774 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
40777 * doc/invoke.texi: Document -Wsuggest-override.
40779 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
40781 PR rtl-optimization/64287
40782 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
40783 (process_options): Disable flag_ipa_ra if profiling.
40785 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
40787 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
40789 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
40791 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
40792 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
40793 put under #if TARGET_LOOPS guard.
40795 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
40797 * config/i386/i386.c (output_387_binary_op): Use std::swap.
40799 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
40801 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
40802 * rtl.h (refers_to_regno_p): Add overload.
40804 * bt-load.c: Likewise.
40805 * combine.c: Likewise.
40806 * df-scan.c: Likewise.
40807 * sched-deps.c: Likewise.
40808 * config/s390/s390.c: Likewise.
40809 * config/m32r/m32r.c: Likewise.
40810 * config/rs6000/spe.md: Likewise.
40811 * config/rs6000/rs6000.c: Likewise.
40812 * config/pa/pa.c: Likewise.
40813 * config/stormy16/stormy16.c: Likewise.
40814 * config/cris/cris.c: Likewise.
40815 * config/arc/arc.md: Likewise.
40816 * config/arc/arc.c: Likewise.
40817 * config/sh/sh.md: Likewise.
40818 * config/sh/sh.c: Likewise.
40819 * config/frv/frv.c: Likewise.
40821 2015-01-05 Jakub Jelinek <jakub@redhat.com>
40824 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
40825 call as cleanup of the whole body.
40826 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
40827 * tsan.c (replace_func_exit): New function.
40828 (instrument_func_exit): Moved earlier.
40829 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
40830 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
40832 (tsan_pass): Don't call instrument_func_exit.
40833 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
40834 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
40838 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
40839 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
40840 it to libubsan handler instead of EXPR. Fold comparisons earlier,
40841 if the result is integer_zerop, return NULL_TREE.
40842 * convert.c (convert_to_integer): Pass expr as ARG.
40844 PR tree-optimization/64465
40845 * tree-inline.c (redirect_all_calls): During inlining
40846 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
40847 changed the stmt to a non-throwing call.
40849 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
40851 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
40852 etc markup throughout the file.
40854 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
40856 Enable experimental TSAN support for Ada.
40857 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
40859 2015-01-05 Jakub Jelinek <jakub@redhat.com>
40861 PR tree-optimization/64494
40862 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
40863 clear SSA_NAME_ANTI_RANGE_P flag.
40865 2015-01-05 Marek Polacek <polacek@redhat.com>
40867 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
40869 2015-01-05 Jakub Jelinek <jakub@redhat.com>
40871 Update copyright years.
40873 * gcc.c (process_command): Update copyright notice dates.
40874 * gcov-dump.c: Ditto.
40876 * doc/cpp.texi: Bump @copying's copyright year.
40877 * doc/cppinternals.texi: Ditto.
40878 * doc/gcc.texi: Ditto.
40879 * doc/gccint.texi: Ditto.
40880 * doc/gcov.texi: Ditto.
40881 * doc/install.texi: Ditto.
40882 * doc/invoke.texi: Ditto.
40884 * auto-profile.c, auto-profile.h: Fix up Copyright line.
40886 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
40888 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
40890 ([-fvtable-verify], [-fvtv-debug]): Likewise.
40891 ([-Wabi]): Likewise.
40892 ([-fmessage-length]): Likewise.
40893 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
40894 ([-Wno-discarded-qualifiers]): Likewise.
40895 ([-Wnodiscarded-array-qualifiers]): Likewise.
40896 ([-Wno-virtual-move-assign]): Likewise.
40897 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
40898 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
40899 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
40900 ([-fsanitize-undefined-trap-on-error]): Likewise.
40901 ([-floop-interchange]): Likewise.
40902 ([-ftree-coalesce-inlined-vars]): Likewise.
40903 ([-fvect-cost-model]): Likewise.
40904 ([-flto]): Likewise.
40905 ([--param]): Likewise.
40906 (Spec Files): Likewise.
40907 ([-mstrict-align]): Likewise.
40908 ([-mfix-cortex-a53-835769]): Likewise.
40909 ([-march], [-mtune]): Likewise.
40910 ([-mpic-register]): Likewise.
40911 ([-munaligned-access]): Likewise.
40912 ([-msp8]): Likewise.
40913 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
40914 (AVR Built-in Macros): Likewise.
40915 ([-mpreferred-stack-boundary]): Likewise.
40916 ([-mtune-crtl]): Likewise.
40917 ([-mashf]): Likewise.
40918 ([-mmcu=]): Likewise.
40919 ([-minrt]): Likewise.
40920 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
40921 ([-mupper-regs]): Likewise.
40922 ([-matomic-model]): Likewise.
40923 ([-mdiv]): Likewise.
40924 ([-mzdcbranch]): Likewise.
40925 ([-mdisable-callt]): Likewise.
40926 ([-msoft-float]): Likewise.
40927 ([-m8byte-align]): Likewise.
40928 ([-fstack-reuse]): Likewise.
40930 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40932 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
40933 Fix markup, light copy-editing.
40934 ([-fauto-profile]): Rewrite to fix formatting and content
40937 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40939 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
40940 Copy-edit description.
40941 ([-fisolate-erroneous-paths-attribute]): Likewise.
40942 * common.opt (fisolate-erroneous-paths-dereference):
40943 Copy-edit description.
40944 (fisolate-erroneous-paths-attribute): Likewise.
40946 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40948 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
40951 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40953 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
40954 ([-fvtv-debug]): Likewise.
40955 ([-Wc++-compat]): Likewise.
40956 ([-Wc++11-compat]): Likewise.
40957 ([-Wc++14-compat]): Likewise.
40958 ([-Wno-sized-deallocation]): Likewise.
40959 ([-femit-class-debug-always]): Likewise.
40960 ([-femit-struct-debug-detailed]): Likewise.
40961 ([-fno-keep-inline-dllexport]): Likewise.
40962 ([-fira-algorithm]): Likewise.
40963 ([-fira-region]): Likewise.
40964 ([-flra-remat]): Likewise.
40965 ([-fipa-ra]): Likewise.
40966 ([-fhoist-adjacent-loads]): Likewise.
40967 ([-fisolate-erroneous-paths-dereference]): Likewise.
40968 ([-fisolate-erroneous-paths-attribute]): Likewise.
40969 ([-ftree-switch-conversion]): Likewise.
40970 ([-ftree-tail-merge]): Likewise.
40971 ([-ftree-loop-if-convert]): Likewise.
40972 ([-ftree-loop-if-convert-stores]): Likewise.
40973 ([-ftree-loop-distribution]): Likewise.
40974 ([-ftree-loop-distribute-patterns]): Likewise.
40975 ([-flto-compression-level]): Likewise.
40976 ([-flto-report]): Likewise.
40977 ([-flto-report-wpa]): Likewise.
40978 ([-fuse-linker-plugin]): Likewise.
40979 ([-mfix-cortex-a53-835769]): Likewise.
40980 ([-mno-fix-cortex-a53-835769]): Likewise.
40981 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
40982 explicit listing; add a note to the discussion indicating they
40983 exist. Reorder table to group similar options. Add missing
40984 @opindex entries. Add @need commands throughout the table to
40985 allow it to be split across multiple pages.
40986 ([-m8bit-idiv]): Fix @opindex.
40987 ([-mavx256-split-unaligned-load]): Likewise.
40988 ([-mavx256-split-unaligned-store]): Likewise.
40989 ([-mstack-protector-guard]): Likewise.
40990 ([-mcpu=]): Likewise.
40991 ([-mcpu]): Likewise.
40992 ([-mpointer-size=]): Likewise.
40994 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
40996 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
40997 instead of `m' constraint. Likewise for unnamed movb comparison
40998 patterns using reg_before_reload_operand predicate.
40999 * config/pa/predicates.md (reg_before_reload_operand): Tighten
41000 predicate to reject register index and LO_SUM DLT memory forms
41003 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
41005 * doc/invoke.texi (Option Summary): Fix spelling of
41006 -fdevirtualize-at-ltrans.
41007 ([-fdevirtualize]): Fix markup.
41008 ([-fdevirtualize-speculatively]): Fix typo.
41009 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
41010 implementor-speaky.
41011 * common.opt (fdevirtualize-at-ltrans): Likewise.
41012 * ipa-devirt.c: Fix typos in comments throughout the file.
41013 (ipa_devirt): Fix typos in format strings for dump output.
41015 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
41017 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
41018 discussion of defaults, light copy-editing.
41020 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
41022 * tsan.c (instrument_expr): corrected previous checkin.
41024 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
41026 Instrument bit field and unaligned accesses for TSAN.
41027 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
41028 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
41029 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
41030 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
41031 unaligned memory regions.
41033 2015-01-01 Anthony Green <green@moxielogic.com>
41035 * config/moxie/predicates.md (moxie_general_movsrc_operand):
41036 Restrict move source register offsets to 16 bits.
41038 Copyright (C) 2015 Free Software Foundation, Inc.
41040 Copying and distribution of this file, with or without modification,
41041 are permitted in any medium without royalty provided the copyright
41042 notice and this notice are preserved.