1 2015-11-27 Martin Liska <mliska@suse.cz>
3 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
5 (struct final_warning_record): Use auto_vec instead
8 2015-11-27 Richard Biener <rguenther@suse.de>
10 PR tree-optimization/68553
11 * tree-vect-slp.c (vect_get_mask_element): Remove.
12 (vect_transform_slp_perm_load): Implement in a simpler way.
14 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
16 PR rtl-optimization/67753
17 PR rtl-optimization/64164
18 * function.c (assign_parm_setup_block): Right-shift
19 upward-padded big-endian args when bypassing the stack slot.
21 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
23 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
24 `-mcompact-branches='.
25 (MIPS Options): Likewise.
27 2015-11-26 Jakub Jelinek <jakub@redhat.com>
29 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
31 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
33 * doc/install.texi (Prerequisites): Increase ISL requirement to
36 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
38 * config/aarch64/arm_neon.h
39 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
40 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
41 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
42 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
43 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
44 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
45 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
46 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
47 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
48 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
49 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
50 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
52 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
54 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
55 (vqrdmlahq_s16, vqrdmlahq_s32): New.
56 (vqrdmlsh_s16, vqrdmlsh_s32): New.
57 (vqrdmlshq_s16, vqrdmlshq_s32): New.
59 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
61 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
64 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
67 * tree-nested.c (finalize_nesting_tree_1): Append a field to
68 hold the frame base address.
69 * dwarf2out.c (gen_subprogram_die): Generate for
70 DW_AT_static_link a location description that computes the value
73 2015-11-26 Tom de Vries <tom@codesourcery.com>
76 2015-11-25 Tom de Vries <tom@codesourcery.com>
78 * cfgloop.c (find_single_latch): New function, factored out of ...
79 (flow_loops_find): ... here.
80 (verify_loop_structure): Improve verification of loop->latch.
81 * cfgloop.h (find_single_latch): Declare.
82 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
84 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
86 * config/aarch64/aarch64-simd-builtins.def:
87 Add missing changes from r230962.
89 2015-11-26 Nathan Sidwell <nathan@acm.org>
91 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
92 arg with name. Don't deal with split regs. Tweak formatting.
93 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
94 (nvptx_output_call_insn): Don't deal with split regs here.
96 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
98 * config/aarch64/aarch64-simd-builtins.def
99 (sqrdmlah, sqrdmlsh): New.
100 (sqrdmlah_lane, sqrdmlsh_lane): New.
101 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
103 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
105 * config/aarch64/aarch64-simd.md
106 (aarch64_sqmovun<mode>): Fix some white-space.
107 (aarch64_<sur>qmovun<mode>): Likewise.
108 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
109 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
110 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
111 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
112 (UNSPEC_SQRDMLSH): New.
116 2015-11-26 Richard Biener <rguenther@suse.de>
118 PR tree-optimization/66721
119 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
120 iteration cost earlier. Re-do analysis without SLP when
121 vectorization using SLP fails and without has a chance to succeed.
123 2015-11-26 Richard Biener <rguenther@suse.de>
125 * genmatch.c (dt_simplify::gen_1): For generic wrap all
126 multi-result-use captures in a SAVE_EXPR.
128 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
130 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
131 (TARGET_SIMD_RDMA): New.
133 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
135 * combine.c (subst): Do not return clobber of zero in widening mult
136 case. Just return x unchanged if it is a no-op substitution.
138 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
141 * config/i386/i386.h (enum reg_class): Add
142 bounds registers to ALL_REGS.
144 2015-11-26 Jakub Jelinek <jakub@redhat.com>
146 PR tree-optimization/68128
147 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
148 * gimplify.c: Include gimple-walk.h.
149 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
150 (omp_notice_variable): Set flags to n->value if n already
151 exists in target region, but we need to jump to do_outer.
152 (omp_shared_to_firstprivate_optimizable_decl_p,
153 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
155 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
156 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
157 not modified in the body. Call omp_mark_stores for outer
158 contexts on OMP_CLAUSE_SHARED clauses if they could be written
159 in the body or on OMP_CLAUSE_LASTPRIVATE.
160 (gimplify_adjust_omp_clauses): Add body argument, call
161 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
162 Set OMP_CLAUSE_SHARED_READONLY
163 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
164 not modified in the body. Call omp_mark_stores for outer
165 contexts on OMP_CLAUSE_SHARED clauses if they could be written
166 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
167 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
168 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
169 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
170 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
171 * tree-nested.c (convert_nonlocal_omp_clauses,
172 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
173 non-local vars or local vars referenced from nested routines.
174 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
175 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
176 TREE_READONLY, don't call use_pointer_for_field with non-NULL
177 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
179 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
181 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
182 about signed left shift stronger and clarify the cases when they're
185 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
186 Bernd Schmidt <bschmidt@redhat.com>
188 PR rtl-optimization/67226
189 * calls.c (store_one_arg): Take into account
190 crtl->args.pretend_args_size when checking for overlap between
191 arg->value and argblock + arg->locate.offset during sibcall
194 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
196 * config/aarch64/aarch64.md (cbranch<mode>4): Use
197 aarch64_fp_compare_operand.
198 (store_pairsf): Use aarch64_reg_or_fp_zero.
199 (store_pairdf): Likewise.
200 (cstore<mode>4): Use aarch64_fp_compare_operand.
201 (cmov<mode>6): Likewise.
202 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
204 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
205 Sebastian Pop <s.pop@samsung.com>
207 PR tree-optimization/68453
208 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
209 not redirect edges already pointing to their destination.
210 (translate_isl_ast_node_for): Split edges after loops to create
211 basic blocks for close phi nodes. Save merge points at the end of
213 (translate_isl_ast_node_if): Save merge points at the end of the
215 (add_close_phis_to_outer_loops): New.
216 (add_close_phis_to_merge_points): New.
217 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
218 (copy_bb_and_scalar_dependences): Do not split basic blocks on
219 loop close phi locations.
221 2015-11-25 Jan Hubicka <jh@suse.cz>
223 * ipa-visibility.c (cgraph_externally_visible_p,
224 varpool_node::externally_visible_p): When doing incremental linking,
225 hidden symbols may be still used later.
226 (update_visibility_by_resolution_info): Do not drop weak during
228 (function_and_variable_visibility): Fix formating.
229 * flag-types.h (lto_linker_output): Declare.
230 * common.opt 9flag_incremental_link): New flag.
232 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
234 * config/rs6000/constraints.md (wb constraint): New constraint for
235 ISA 3.0 d-form scalar addressing.
237 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
238 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
239 Altivec registers. Add wb constraint for Altivec registers with
240 D-form addressing. If we have ISA 3.0 d-form support, undo
241 secondary reload support for using FPR registers if we want to do
243 (rs6000_debug_reg_global): Likewise.
244 (rs6000_setup_reg_addr_masks): Likewise.
245 (rs6000_init_hard_regno_mode_ok): Likewise.
246 (rs6000_secondary_reload): Likewise.
247 (rs6000_preferred_reload_class): Likewise.
248 (rs6000_secondary_reload_class): Likewise.
250 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
253 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
254 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
261 (extendsfdf2_fpr): Likewise.
262 (mov<mode>_hardfloat): Likewise.
263 (mov<mode>_hardfloat32): Likewise.
264 (mov<mode>_hardfloat64): Likewise.
266 * doc/md.texi (RS/6000 constraints): Document wb constraint.
267 Fixup we constraint documentation.
269 2015-11-25 Tom de Vries <tom@codesourcery.com>
271 * omp-low.c (pass_expand_omp_ssa::clone): New function.
272 * passes.def: Add pass_oacc_kernels pass group.
273 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
275 2015-11-25 Tom de Vries <tom@codesourcery.com>
277 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
279 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
280 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
281 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
282 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
284 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
286 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
287 TV_IPA_LTO_OUTPUT): New.
288 * lto-compress.c: Include timevar.h
289 (lto_end_compression, lto_end_uncompression): Add timers.
290 * langhooks.c: Include timevar.h
291 (lhd_append_data): Add timer.
293 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
295 * varasm.c (default_elf_asm_output_limited_string,
296 default_elf_asm_output_ascii): Replace fprintf by putc.
298 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
300 PR rtl-optimization/67954
301 * lra-constraints.c (curr_insn_transform): Add check on scratch
302 pseudo when change class to NO_REGS. Add an assert.
304 2015-11-25 Nathan Sidwell <nathan@acm.org>
306 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
308 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
310 (nvptx_write_function_decl): Number args from 0.
311 (nvptx_declare_function_name): Likewise.
312 (nvptx_function_incoming_arg): Likewise.
313 (nvptx_output_call_insn): Correct formatting.
315 2015-11-25 David Sherwood <david.sherwood@arm.com>
317 * optabs.def: Add new optabs fmax_optab/fmin_optab.
318 * internal-fn.def: Add new fmax/fmin internal functions.
319 * doc/md.texi: Add fmin and fmax patterns.
321 2015-11-25 Jason Merrill <jason@redhat.com>
324 * tree.c (integer_zerop, integer_onep, integer_each_onep)
325 (integer_all_onesp, integer_minus_onep, integer_pow2p)
326 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
327 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
329 2015-11-25 Richard Biener <rguenther@suse.de>
332 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
333 on stripped operands.
335 2015-11-25 Nathan Sidwell <nathan@acm.org>
337 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
338 (nvptx_declare_function_name): Move assignments next to register
339 declarations, and process params here.
341 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
343 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
344 both the symbol and the "dot" symbol for function descriptors. Fix
345 inversion for rename of symbols with dollar sign.
347 2015-11-25 Tom de Vries <tom@codesourcery.com>
349 * cfgloop.c (find_single_latch): New function, factored out of ...
350 (flow_loops_find): ... here.
351 (verify_loop_structure): Improve verification of loop->latch.
352 * cfgloop.h (find_single_latch): Declare.
353 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
355 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
357 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
358 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
359 (STARTFILE_SPEC): Use %(startfile_vtv).
360 (ENDFILE_SPEC): Use %(endfile_vtv).
361 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
364 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
366 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
368 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
369 noce_can_store_speculate): Delete.
370 (noce_process_if_block): Don't try to handle single MEM stores.
371 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
372 * alias.c (memory_must_be_modified_in_insn_p): Delete.
374 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
376 PR rtl-optimization/68435
377 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
378 for conflicts between a, b and the set destinations.
380 2015-11-25 Richard Biener <rguenther@suse.de>
382 PR tree-optimization/68517
383 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
384 Properly handle zero-sized types.
386 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
388 * ipa-inline-analysis.c: Include gimplify.h
389 (set_cond_stmt_execution_predicate,
390 set_switch_stmt_execution_predicate): Be sure to not leak locations
393 2015-11-25 Jakub Jelinek <jakub@redhat.com>
396 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
397 match_uaddsub_overflow): New functions.
398 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
400 2015-11-25 Richard Biener <rguenther@suse.de>
402 PR tree-optimization/68492
403 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
404 op from scalars after operand swapping.
406 2015-11-25 Richard Biener <rguenther@suse.de>
408 PR tree-optimization/68502
409 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
410 check that the step is a multiple of the type size.
412 2015-11-24 Michael Collison <michael.collison@linaro.org>
414 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
415 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
416 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
418 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
420 * frame-header-opt.c (gate): Check for optimize > 0.
421 (has_inlined_assembly): New function.
422 (needs_frame_header_p): Remove is_leaf_function check,
423 add argument type check.
424 (callees_functions_use_frame_header): Add is_leaf_function
425 and has_inlined_assembly calls..
426 (set_callers_may_not_allocate_frame): New function.
427 (frame_header_opt): Add is_leaf_function call, add
428 set_callers_may_not_allocate_frame call.
429 * config/mips/mips.c (mips_compute_frame_info): Add check
430 to see if callee saved regs can be put in frame header.
431 (mips_expand_prologue): Add check to see if step1 is zero,
432 fix cfa restores when using frame header to store regs.
433 (mips_can_use_return_insn): Check to see if registers are
434 stored in frame header.
435 * config/mips/mips.h (machine_function): Add
436 callers_may_not_allocate_frame and
437 use_frame_header_for_callee_saved_regs fields.
439 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
441 PR rtl-optimization/68520
442 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
443 its bit was already set in BB_WITH.
445 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
447 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
448 double check that type is main variant.
449 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
451 (verify_type_variant): Verify that variants have no
452 TYPE_ALIAS_SET_KNOWN_P set
453 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
454 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
455 only for main variants; stream TYPE_ALIAS_SET as a bit.
456 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
459 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
461 * tree.c (make_vector_type): Properly compute canonical type of the
463 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
466 2015-11-24 Nathan Sidwell <nathan@acm.org>
468 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
469 VOIDmode, don't alter incoming mode.
470 (nvptx_split_reg_p): Delete.
471 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
472 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
473 maybe_split_mode calls.
474 (nvptx_print_operand): Use maybe_split_mode.
476 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
478 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
479 only for types where LTO sets them.
480 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
481 (make_vector_type): Likewise.
482 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
483 * tree.h (canonical_type_used_p): New inline.
484 * alias.c (get_alias_set): Handle structural equality for all
485 types that pass canonical_type_used_p.
486 (record_component_aliases): Look through all types with
487 record_component_aliases for possible pointers; sanity check that
488 the alias sets match.
490 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
492 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
494 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
496 * tree.c (free_node): New function.
497 (type_hash_canon): Use it.
498 * tree.h (free_node): Declare.
500 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
501 Michael Meissner <meissner@linux.vnet.ibm.com>
503 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
504 (Fv2): New mode attribute to be used when ISA 2.07 instructions
505 are used on SF values, and ISA 2.06 instructions on DF values.
506 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
507 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
508 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
509 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
510 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
511 (fre<Fs>): Use <Fv2> instead of <Fv>.
512 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
513 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
514 (xsrdpi<mode>): Add support for the lround function.
515 (lround<mode>di2): Likewise.
516 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
517 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
518 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
519 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
521 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
522 Sebastian Pop <s.pop@samsung.com>
524 PR tree-optimization/67984
525 * graphite-isl-ast-to-gimple.c (is_constant): New.
526 (get_rename): Call is_constant.
527 (get_new_name): Same.
529 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
530 Sebastian Pop <s.pop@samsung.com>
532 * graphite-dependences.c: Only include graphite.h.
533 * graphite-isl-ast-to-gimple.c: Same.
534 * graphite-optimize-isl.c: Same.
535 * graphite-poly.c: Same.
536 * graphite-scop-detection.c: Same.
537 * graphite-sese-to-poly.c: Same.
539 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
540 * graphite-poly.h: Same.
541 * graphite-scop-detection.h: Same.
544 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
546 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
547 DW_TAG_namespace for IMPORTED_DECL declarations. Call
548 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
549 function already takes care of checking what it can emit.
551 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
553 * doc/invoke.texi (-fpic): Add the AArch64 limit.
554 (-fPIC): Add AArch64.
556 2015-11-24 Tom de Vries <tom@codesourcery.com>
558 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
559 (pass_lim::execute): Allow to run outside pass_tree_loop.
561 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
563 * config/aarch64/aarch64.md (add<mode>3):
564 Block early expansion into 2 add instructions.
565 (add<mode>3_pluslong): New pattern to combine complex
566 immediates into 2 additions.
568 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
573 * config/rs6000/predicates.md (and_operand): Check that the operand
574 is a const_int before calling rs6000_is_valid_and_mask.
576 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
578 * config/aarch64/aarch64.md (*condjump): Rename to...
579 (condjump): ... This.
580 (*compare_condjump<mode>): New define_insn_and_split.
581 (*compare_cstore<mode>_insn): Likewise.
582 (*cstore<mode>_insn): Rename to...
583 (cstore<mode>_insn): ... This.
584 * config/aarch64/iterators.md (CMP): Handle ne code.
585 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
587 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
590 * config/i386/i386.c (output_387_binary_op): Fix assertion for
593 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
595 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
596 (val_ssa_equiv_hash_traits::remove): Likewise.
597 (pass_uncprop::execute): Adjust.
599 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
601 * hash-map-traits.h (simple_hashmap_traits ::remove): call
602 destructors on values that are being removed.
603 * mem-stats.h (hash_map): Pass type of values to
604 simple_hashmap_traits.
605 * tree-sra.c (sra_deinitialize): Remove work around for hash
606 maps not destructing values.
607 * genmatch.c (sinfo_hashmap_traits): Adjust.
608 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
610 2015-11-24 Richard Biener <rguenther@suse.de>
611 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
614 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
617 2015-11-24 Jakub Jelinek <jakub@redhat.com>
620 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
621 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
623 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
624 whenever first is nelt or above. Don't mask expected with
627 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
630 * gimple-fold.c: Include ipa-chkp.h.
631 (gimple_fold_builtin_memory_op): Don't fold call if we
632 are going to instrument it and it may copy pointers.
634 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
635 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
637 PR rtl-optimization/68194
638 PR rtl-optimization/68328
639 PR rtl-optimization/68185
640 * ree.c (combine_reaching_defs): Reject copy_needed case if
641 copies_list is not empty.
643 2015-11-24 Richard Biener <rguenther@suse.de>
646 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
649 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
651 PR rtl-optimization/68381
652 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
655 2015-11-23 Nick Clifton <nickc@redhat.com>
656 Jeff Law <law@redhat.com>
658 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
659 the source/dest of the target extension require a different number of
661 (combine_set_extension): Remove #if 0 code.
663 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
664 Sebastian Pop <s.pop@samsung.com>
666 PR tree-optimization/68314
667 * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
668 * graphite-poly.c (new_scop): Remove original_schedule.
670 * graphite-poly.h (struct scop): Same.
671 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
672 (build_pbb_scattering_polyhedrons): Add back.
673 (build_scop_minimal_scattering): Remove.
674 (build_scop_scattering): Add back.
675 (build_scop_original_schedule): Remove.
676 (build_poly_scop): Revert to only call build_scop_scattering.
678 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
679 Sebastian Pop <s.pop@samsung.com>
681 PR tree-optimization/68493
682 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
683 missing early return when codegen_error is set.
685 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
686 Sebastian Pop <s.pop@samsung.com>
688 PR tree-optimization/68279
689 * graphite-poly.c (new_scop): Remove poly_scop_p.
690 * graphite-poly.h (struct scop): Same.
691 (build_poly_scop): Declare.
692 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
693 (cleanup_loop_iter_dom): New.
694 (build_loop_iteration_domains): Early return when scev analysis fails.
695 (create_pw_aff_from_tree): Same.
696 (add_condition_to_pbb): Same.
697 (add_conditions_to_domain): Same.
698 (add_conditions_to_constraints): Same.
699 (build_scop_iteration_domain): Same.
700 (build_poly_scop): Same. Do not initialize poly_scop_p.
701 * graphite-sese-to-poly.h: Remove.
702 * graphite.c: Do not include graphite-sese-to-poly.h.
703 (graphite_transform_loops): Stop before code generation when
704 build_poly_scop fails.
705 * sese.c (scalar_evolution_in_region): Add fixme note about scev
708 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
709 Sebastian Pop <s.pop@samsung.com>
711 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
712 Remove call to update_ssa.
713 * sese.c (sese_insert_phis_for_liveouts): Same.
715 2015-11-23 Marek Polacek <polacek@redhat.com>
717 PR tree-optimization/68455
718 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
719 extract_range_from_multiplicative_op_1 on symbolic ranges.
721 2015-11-23 Richard Henderson <rth@redhat.com>
723 * optabs.def (uaddv4_optab, usubv4_optab): New.
724 * internal-fn.c (expand_addsub_overflow): Use them.
725 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
727 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
728 to reversed operands.
729 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
730 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
731 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
732 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
733 (*add<SWI>3_cconly_overflow_2): New.
734 (*add<SWI>3_cc_overflow_2): New.
735 (*addsi3_zext_cc_overflow_2): New.
737 2015-11-23 Richard Biener <rguenther@suse.de>
739 PR tree-optimization/68465
740 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
741 Also record equalities from multiple predecessor blocks if
742 only one non-backedge exists.
744 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
747 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
750 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
752 * config/aarch64/aarch64-builtins.c
753 (aarch64_gimple_fold_builtin): Fold FMULX.
755 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
757 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
758 * graphite-dependences.c: Define USES_ISL. Include ISL header files
759 after GCC header files and before graphite header files.
760 * graphite-dependences.c: Same.
761 * graphite-isl-ast-to-gimple.c: Same.
762 * graphite-optimize-isl.c: Same.
763 * graphite-poly.c: Same.
764 * graphite-scop-detection.c: Same.
765 * graphite-sese-to-poly.c: Same.
768 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
769 Jiong Wang <jiong.wang@arm.com>
771 PR tree-optimization/68317
772 PR tree-optimization/68326
773 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
774 final min and max are not infinity.
776 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
777 Richard Biener <rguenther@suse.de>
779 PR tree-optimization/68327
780 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
781 compute vectype for non-relevant mask producers.
782 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
785 2015-11-23 Tom de Vries <tom@codesourcery.com>
787 PR tree-optimization/68460
788 * tree-parloops.c (gather_scalar_reductions): Also call
789 free_stmt_vec_info_vec if simple_loop_info == NULL.
791 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
793 * opts.c (finish_options): Allow -fsanitize-recover=address for
794 userspace sanitization.
795 * asan.c (asan_expand_check_ifn): Redefine recover_p.
796 * doc/invoke.texi (fsanitize-recover): Update documentation.
798 2015-11-23 Tom de Vries <tom@codesourcery.com>
800 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
802 2015-11-23 Richard Biener <rguenther@suse.de>
804 PR tree-optimization/68445
805 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
806 two different strides.
808 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
810 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
811 * config/s390/s390.c (s390_check_symref_alignment): Use new
812 symref flags, early abort on wrong alignment
813 (s390_secondary_reload): Use new symref flags.
814 (s390_encode_section_info): Likewise.
815 * config/s390/predicates.md: Likewise.
817 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
820 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
821 for indirect function call.
823 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
825 * config/aarch64/aarch64-simd.md
826 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
827 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
828 (*aarch64_mulx_elt_to_64v2df): Likewise.
829 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
830 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
831 (vmulx_lane_f64): Likewise.
832 (vmulxq_lane_f32): Refactored & moved.
833 (vmulxq_lane_f64): Likewise.
834 (vmulx_laneq_f32): New.
835 (vmulx_laneq_f64): Likewise.
836 (vmulxq_laneq_f32): Likewise.
837 (vmulxq_laneq_f64): Likewise.
838 (vmulxs_lane_f32): Likewise.
839 (vmulxs_laneq_f32): Likewise.
840 (vmulxd_lane_f64): Likewise.
841 (vmulxd_laneq_f64): Likewise.
843 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
845 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
846 In LTO we do not compute TYPE_CANONICAL of pointers.
847 (gimple_canonical_types_compatible_p): Improve coments; sanity check
848 that pointers do not have canonical type that would make us believe
850 * alias.c (get_alias_set): Do structural type equality on pointers;
851 enable pointer path for LTO; also glob pointer to vector with pointer
852 to vector element; glob pointers and references for LTO; do more strict
853 sanity checking about build_pointer_type returning the canonical type
854 which is also the main variant.
855 (record_component_aliases): When component type is pointer and we
856 do LTO; record void_type_node alias set.
858 2015-11-21 Nathan Sidwell <nathan@acm.org>
860 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
862 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
864 (write_func_decl_from_insn): Likewise.
865 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
866 (nvptx_file_end): Likewise.
867 (nvptx_function_end): Undent output.
868 (nvptx_expand_call): Fix formatting.
869 (nvptx_output_call_insn): Indent output.
870 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
871 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
873 2015-11-21 Jakub Jelinek <jakub@redhat.com>
876 * tree-inline.c (copy_debug_stmt): If
877 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
878 in decl_debug_args, don't call remap_gimple_op_r on it.
880 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
882 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
883 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
884 Check that all record types are complete.
885 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
886 compare alias sets for types w/o alias sets.
888 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
890 * config/sparc/sparc.md (umulxhi_vis): Move around.
891 (*umulxhi_sp64): Likewise.
892 (umulxhi_v8plus): Likewise.
893 (xmulx_vis): Likewise.
894 (*xmulx_sp64): Likewise.
895 (xmulx_v8plus): Likewise.
896 (xmulxhi_vis): Likewise.
897 (*xmulxhi_sp64): Likewise.
898 (xmulxhi_v8plus): Likewise.
900 2015-11-20 David Malcolm <dmalcolm@redhat.com>
903 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
904 (class layout): Update comment
905 (layout::print_any_fixits): New method.
906 (layout::move_to_column): New method.
907 (diagnostic_show_locus): Add call to layout.print_any_fixits.
909 2015-11-20 Jakub Jelinek <jakub@redhat.com>
912 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
913 has non-zero bias, subtract it in integer type instead of
914 pointer plus of negated bias.
917 * omp-low.c (expand_simd_clones): Call node->get_body () before
918 allocating stuff in GC.
920 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
922 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
924 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
926 * config/aarch64/aarch64.md (predicated): Copy attribute from
928 * config/arm/arm.md (predicated): Added description.
930 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
932 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
933 for unaligned_access.
934 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
935 from matching condition.
936 (unaligned_loadhis): Likewise.
937 (unaligned_loadhiu): Likewise.
938 (unaligned_storesi): Likewise.
939 (unaligned_storehi): Likewise.
941 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
944 * config/arm/arm.md (unaligned_loaddi): Delete.
945 (unaligned_storedi): Likewise.
946 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
947 unaligned DImode memory ops. Instead perform two back-to-back
948 unaligned SImode ops.
950 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
951 James Norris <jnorris@codesourcery.com>
953 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
954 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
956 2015-11-20 Alan Hayward <alan.hayward@arm.com>
958 PR tree-optimization/68413
959 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
961 (vectorizable_reduction): Use cached base
963 2015-11-20 Tom de Vries <tom@codesourcery.com>
965 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
967 (try_create_reduction_list): Same. Fix typo in dump-file string.
969 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
971 * doc/md.texi (Standard Names): Move entry for addptr3 around,
972 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
973 glitch in entries for cbranch4 and jump.
975 2015-11-20 Tom de Vries <tom@codesourcery.com>
977 PR tree-optimization/68373
978 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
980 (scev_const_prop): ... here.
981 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
982 * tree-parloops.c (try_create_reduction_list): Call
983 final_value_replacement_loop.
985 2015-11-20 Bin Cheng <bin.cheng@arm.com>
987 PR tree-optimization/52272
988 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
989 (struct iv_common_cand_hasher): New struct.
990 (iv_common_cand_hasher::hash): New function.
991 (iv_common_cand_hasher::equal): New function.
992 (struct ivopts_data): New fields, iv_common_cand_tab and
994 (tree_ssa_iv_optimize_init): Initialize above fields.
995 (record_common_cand, common_cand_cmp): New functions.
996 (add_iv_candidate_derived_from_uses): New function.
997 (add_iv_candidate_for_use): Record iv_common_cands derived from
998 iv use in hash table, instead of adding candidates directly.
999 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
1000 (record_important_candidates): Add important candidates to iv uses'
1001 related_cands. Always keep related_cands for future use.
1002 (try_add_cand_for): Use iv uses' related_cands.
1003 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
1004 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
1006 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1008 * config/s390/s390.md ("bswaphi2"): New pattern.
1010 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
1012 * config/s390/s390.md (GPR1_REGNUM): New constant.
1013 ("*trunc<BFP:mode><DFP_ALL:mode>2")
1014 ("*trunc<DFP_ALL:mode><BFP:mode>2")
1015 ("trunc<BFP:mode><DFP_ALL:mode>2")
1016 ("trunc<DFP_ALL:mode><BFP:mode>2")
1017 ("*extend<BFP:mode><DFP_ALL:mode>2")
1018 ("*extend<DFP_ALL:mode><BFP:mode>2")
1019 ("extend<BFP:mode><DFP_ALL:mode>2")
1020 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
1022 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1023 Sebastian Pop <s.pop@samsung.com>
1025 PR tree-optimization/68428
1026 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
1027 over basic blocks outside the scop.
1029 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1030 Sebastian Pop <s.pop@samsung.com>
1032 PR tree-optimization/68341
1033 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
1034 gcc_unreachable and safely fail codegen.
1035 (copy_loop_close_phi_args): Do not insert merge phis in a basic
1036 block with loop phi nodes.
1037 (edge_for_new_close_phis): New.
1038 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
1040 2015-11-19 Nathan Sidwell <nathan@acm.org>
1042 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
1043 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
1044 (nvptx_declare_objec_name): Likewise.
1046 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1048 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
1049 (get_false_edge_from_guard_bb): Move...
1050 * sese.c (get_false_edge_from_guard_bb)
1051 (get_true_edge_from_guard_bb): ... here.
1053 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
1056 2015-11-18 Alan Modra <amodra@gmail.com>
1058 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1059 type-limits warning.
1062 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1064 * tree.h (desired_pro_or_demotion_p): New function.
1065 * tree-vrp.c (simplify_cond_using_ranges): Call it.
1067 2015-11-19 Michael Matz <matz@suse.de>
1069 * fwprop.c (update_uses): Use flag_checking instead of
1070 gcc_checking_assert.
1072 2015-11-19 David Malcolm <dmalcolm@redhat.com>
1074 * doc/gty.texi (Support for inheritance): Fix missing
1075 parentheses in example.
1077 2015-11-19 Marek Polacek <polacek@redhat.com>
1079 PR tree-optimization/68431
1080 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
1082 2015-11-19 Nathan Sidwell <nathan@acm.org>
1084 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
1085 atomic_exchange<mode>): Input values can be immediates.
1087 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
1090 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
1092 * configure: Regenerate.
1094 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
1097 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
1098 (DTORS_SECTION_ASM_OP): Likewise.
1100 2015-11-19 Jakub Jelinek <jakub@redhat.com>
1102 PR rtl-optimization/68376
1103 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
1104 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
1106 2015-11-19 Richard Biener <rguenther@suse.de>
1109 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
1110 redirect_edge_var_map_destroy.
1112 2015-11-19 Jakub Jelinek <jakub@redhat.com>
1115 * config/i386/i386.md (simple_return): Disable if
1116 ix86_static_chain_on_stack is true.
1118 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
1121 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
1124 2015-11-18 Jeff Law <law@redhat.com>
1126 PR tree-optimization/68198
1127 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
1128 between threading a multi-way branch and a thread path that contains
1129 a multi-way branch. Disallow the case where a path contains a
1130 multi-way branch and does not thread a multi-way branch.
1131 (thread_through_all_blocks): Update comment.
1133 2015-11-18 Joseph Myers <joseph@codesourcery.com>
1136 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
1137 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
1138 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
1139 functions before defining as macros.
1141 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1143 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
1144 (nvptx_record_offload_symbol): Remove code compensating for lack
1145 of default dimension handling.
1146 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
1148 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
1150 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
1151 type to bool for early exit.
1152 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
1154 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
1155 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
1156 predecessor dominates the other.
1157 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
1158 element is not found it returns -1.
1159 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
1160 out early when codegen fails.
1161 (graphite_regenerate_ast_isl): Remove codegen region when pending
1162 phis could not be generated.
1164 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
1166 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
1168 (class translate_isl_ast_to_gimple): Indentation.
1169 (translate_pending_phi_nodes): Comment.
1170 (add_parameters_to_ivs_params): Moved from sese.c inside class
1171 translate_isl_ast_to_gimple.
1172 (get_max_schedule_dimensions): Same.
1173 (generate_isl_context): Same.
1174 (extend_schedule): Same.
1175 (generate_isl_schedule): Same.
1176 (set_options): Same.
1177 (scop_to_isl_ast): Same.
1178 (is_valid_rename): Same.
1180 (get_rename_from_scev): Same.
1181 (get_def_bb_for_const): Same.
1182 (get_new_name): Same.
1183 (collect_all_ssa_names): Same.
1184 (copy_loop_phi_args): Same.
1185 (copy_loop_phi_nodes): Same.
1186 (copy_loop_close_phi_args): Same.
1187 (copy_loop_close_phi_nodes): Same.
1188 (copy_cond_phi_args): Same.
1189 (copy_cond_phi_nodes): Same.
1190 (graphite_copy_stmts_from_block): Same.
1191 (copy_bb_and_scalar_dependences): Same.
1192 (add_phi_arg_for_new_expr): Same.
1193 (rename_uses): Same.
1195 (set_rename_for_each_def): Same.
1196 (gsi_insert_earliest): Same.
1197 (rename_all_uses): Same.
1198 (codegen_error_p): Same.
1199 (print_isl_ast_node): Same.
1200 (translate_isl_ast_for_loop): Call function codegen_error_p.
1201 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1202 (translate_isl_ast_node_user): Make nb_loops const and release
1204 (get_true_edge_from_guard_bb): Move all free-functions early.
1205 (get_false_edge_from_guard_bb): Same.
1206 (bb_contains_loop_close_phi_nodes): Same.
1207 (bb_contains_loop_phi_nodes): Same.
1208 (is_loop_closed_ssa_use): Same.
1209 (number_of_phi_nodes): Same.
1210 (phi_uses_name): Same.
1211 (later_of_the_two): Same.
1212 (substitute_ssa_name):
1215 (get_loop_init_value): Same.
1216 (find_init_value): Same.
1217 (find_init_value_close_phi): Same.
1218 (ast_build_before_for): Same.
1219 (graphite_regenerate_ast_isl): Formatting changes.
1220 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
1221 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
1223 (gsi_insert_earliest): Same.
1224 (collect_all_ssa_names): Same.
1225 (rename_all_uses): Same.
1226 (rename_uses): Same.
1227 (get_def_bb_for_const): Same.
1228 (copy_loop_phi_nodes): Same.
1229 (copy_loop_close_phi_args): Same.
1230 (copy_loop_close_phi_nodes): Same.
1231 (copy_cond_phi_args): Same.
1232 (copy_cond_phi_nodes): Same.
1233 (set_rename_for_each_def): Same.
1234 (graphite_copy_stmts_from_block): Same.
1235 (copy_bb_and_scalar_dependences): Same.
1236 (if_region_set_false_region): Same.
1237 (scev_analyzable_p): Same.
1238 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
1240 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
1242 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
1243 commit from r125920 for FreeBSD.
1245 2015-11-18 Jason Merrill <jason@redhat.com>
1247 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
1249 (add_finalizer): Split out from ggc_internal_alloc.
1250 (ggc_handle_finalizers): Run finalizers for the current depth.
1251 (init_ggc, ggc_pch_read): Reserve space for finalizers.
1253 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
1256 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
1259 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1261 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
1262 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
1264 * doc/avr-mmcu.texi: Regenerate.
1266 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1268 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
1269 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
1270 (struct bb_sese): New struct.
1271 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
1272 (BB_GET_SESE, BB_SET_SESE): Define.
1273 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
1274 (nvptx_find_sese): New.
1275 (nvptx_neuter_pars): Find SESE regions when optimizing.
1277 2015-11-18 Alan Modra <amodra@gmail.com>
1279 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1280 type-limits warning.
1282 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
1285 * hash-set.h (hash_set::traverse): Expand Key typedef.
1287 2015-11-18 Martin Liska <mliska@suse.cz>
1289 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
1292 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1294 * config/nvptx/nvptx.c (global_lock_var): New.
1295 (nvptx_global_lock_addr): New.
1296 (nvptx_lockless_update): Recomment and adjust for clarity.
1297 (nvptx_lockfull_update): New.
1298 (nvptx_reduction_update): New.
1299 (nvptx_goacc_reduction_fini): Call it.
1301 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
1303 * regrename.h (struct du_head): Add target_data_1 and target_data_2
1305 * regrename.c (create_new_chain): Clear entire struct after allocating.
1307 * config/i386/i386.opt (mmitigate-rop): New option.
1308 * doc/invoke.texi (mmitigate-rop): Document.
1309 * config/i386/i386.c: Include "regrename.h".
1310 (ix86_rop_should_change_byte_p, reg_encoded_number,
1311 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
1313 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
1314 * config/i386/i386.md (attr "modrm_class"): New.
1315 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
1316 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
1317 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
1319 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1322 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
1324 2015-11-18 Jakub Jelinek <jakub@redhat.com>
1326 PR tree-optimization/68157
1327 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
1328 pow_stmt or mul_stmt from stmt's uid.
1329 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
1331 2015-11-18 Martin Liska <mliska@suse.cz>
1333 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
1335 2015-11-18 Martin Liska <mliska@suse.cz>
1337 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1338 Fix GNU coding style.
1339 (find_def_preds): Use auto_vec.
1340 (destroy_predicate_vecs): Change signature of the function.
1341 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
1343 (simplify_preds_4): Use destroy_predicate_vecs instread of
1344 just releasing preds vector.
1345 (normalize_preds): Likewise.
1346 (is_use_properly_guarded): Use new signature of
1347 destroy_predicate_vecs.
1348 (find_uninit_use): Likewise.
1350 2015-11-18 Richard Biener <rguenther@suse.de>
1352 PR tree-optimization/67790
1353 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
1354 IL rewrite for MINUS_EXPR reductions, rename back to ...
1355 (vect_is_simple_reduction): ... this, removing the wrapper.
1356 (vect_force_simple_reduction): Adjust.
1357 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
1358 reductions and make use if reduc_index in all places. For
1359 the final reduction of MINUS_EXPR use PLUS_EXPR.
1361 2015-11-18 Alan Modra <amodra@gmail.com>
1363 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
1365 * configure: Regenerate.
1367 2015-11-17 Tom de Vries <tom@codesourcery.com>
1369 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
1371 2015-11-17 Tom de Vries <tom@codesourcery.com>
1373 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
1374 uses of ssa_name with constant.
1376 2015-11-17 Tom de Vries <tom@codesourcery.com>
1378 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
1381 2015-11-17 Tom de Vries <tom@codesourcery.com>
1383 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
1384 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
1385 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
1387 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
1389 * regrename.c (regrename_find_superclass): New function, code moved
1391 (rename_chains): ... here. Call it.
1392 * regrename.h (regrename_find_superclass): Declare.
1394 * regrename.c (record_out_operands): Terminate earlyclobbered
1398 * regrename.c (record_operand_use): Keep track of failed operands
1399 and stop appending if we see any.
1400 * regrename.h (struct operand_rr_info): Add a failed field and shrink
1403 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
1406 * doc/extend.texi (Common Function Attributes) [visibility]:
1407 Add cross-references to matching variable and type attributes.
1408 (Common Variable Attributes) [visibility]: Add missing entry.
1410 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1412 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
1413 entries that map directly to optabs.
1415 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1417 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
1418 entries that map directly to optabs.
1420 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1422 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
1423 * internal-fn.c (direct_internal_fn_array): Update accordingly.
1424 * tree-vectorizer.h (vectorizable_function): Delete.
1425 * tree-vect-stmts.c: Include internal-fn.h.
1426 (vectorizable_internal_function): New function.
1427 (vectorizable_function): Inline into...
1428 (vectorizable_call): ...here. Explicitly reject calls that read
1429 from or write to memory. Try using an internal function before
1430 falling back on the old vectorizable_function behavior.
1432 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1434 * target.def (builtin_vectorized_function): Take a combined_fn (in
1435 the form of an unsigned int) rather than a function decl.
1436 (builtin_md_vectorized_function): New.
1437 * targhooks.h (default_builtin_vectorized_function): Replace the
1438 fndecl argument with an unsigned int.
1439 (default_builtin_md_vectorized_function): Declare.
1440 * targhooks.c (default_builtin_vectorized_function): Replace the
1441 fndecl argument with an unsigned int.
1442 (default_builtin_md_vectorized_function): New function.
1443 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
1445 * doc/tm.texi: Regenerate.
1446 * tree-vect-stmts.c (vectorizable_function): Update call to
1447 builtin_vectorized_function, also passing internal functions.
1448 Call builtin_md_vectorized_function for target-specific builtins.
1449 * config/aarch64/aarch64-protos.h
1450 (aarch64_builtin_vectorized_function): Replace fndecl argument
1451 with an unsigned int.
1452 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
1453 (aarch64_builtin_vectorized_function): Update after above changes.
1455 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
1456 fndecl argument with an unsigned int.
1457 * config/arm/arm-builtins.c: Include case-cfn-macros.h
1458 (arm_builtin_vectorized_function): Update after above changes.
1460 * config/i386/i386.c: Include case-cfn-macros.h
1461 (ix86_veclib_handler): Take a combined_fn rather than a
1463 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
1464 mathfn_built_in rather than calling builtin_decl_implicit directly.
1465 (ix86_builtin_vectorized_function) Update after above changes.
1467 * config/rs6000/rs6000.c: Include case-cfn-macros.h
1468 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
1469 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
1470 than calling builtin_decl_implicit directly.
1471 (rs6000_builtin_vectorized_function): Update after above changes.
1472 Use CASE_CFN_*. Move BUILT_IN_MD to...
1473 (rs6000_builtin_md_vectorized_function): ...this new function.
1474 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
1476 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1478 * tree-vect-patterns.c: Include internal-fn.h.
1479 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
1481 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1483 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
1484 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
1486 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1488 * builtins.c (expand_errno_check, expand_builtin_mathfn)
1489 (expand_builtin_mathfn_2): Delete.
1490 (expand_builtin): Remove handling of functions with
1491 internal function equivalents.
1492 * internal-fn.def (SET_EDOM): New internal function.
1493 * internal-fn.h (set_edom_supported_p): Declare.
1494 * internal-fn.c (expand_SET_EDOM): New function.
1495 (set_edom_supported_p): Likewise.
1496 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
1497 Rewrite comment at head of file.
1498 (is_call_dce_candidate): Rename to...
1499 (can_test_argument_range): ...this. Don't check gimple_call_lhs
1500 or gimple_call_builtin_p here.
1501 (edom_only_function): New function.
1502 (shrink_wrap_one_built_in_call_with_conds): New function, split out
1504 (shrink_wrap_one_built_in_call): ...here.
1505 (can_use_internal_fn, use_internal_fn): New functions.
1506 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
1507 for calls that have an lhs.
1508 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
1509 (pass_call_cdce::execute): Skip blocks that are optimized for size.
1510 Check gimple_call_builtin_p here. Use can_use_internal_fn for
1512 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
1515 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1517 * builtins.h (called_as_built_in): Declare.
1518 * builtins.c (called_as_built_in): Make external.
1519 * internal-fn.h (expand_internal_call): Define a variant that
1520 specifies the internal function explicitly.
1521 * internal-fn.c (expand_load_lanes_optab_fn)
1522 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
1523 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
1524 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
1525 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
1526 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
1527 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
1528 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
1529 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
1530 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
1531 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
1532 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
1533 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
1534 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
1536 (internal_fn_expanders): Update prototype.
1537 (expand_internal_call): Define a variant that specifies the
1538 internal function explicitly. Use it to implement the previous
1540 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
1541 functions as calls to internal functions.
1543 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1545 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
1546 (generated_files): Likewise.
1547 (s-cfn-operators, cfn-operators.pd): New rules.
1548 (s-match): Depend on cfn-operators.pd.
1549 * gencfn-macros.c: Expand comment to describe -o behavior.
1550 (print_define_operator_list): New function.
1551 (main): Accept -o. Call print_define_operator_list.
1552 * genmatch.c (main): Add the current directory to the include path.
1553 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
1556 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1558 * doc/match-and-simplify.texi: Document the "null" identifier.
1559 * genmatch.c (id_base::NULL_ID): New kind.
1560 (null_id): New variable.
1561 (get_operator): Add a parameter that says whether null identifiers
1563 (contains_id): New function.
1564 (lower_for): Skip substitutions that would have a null_id in
1565 either the match or the result.
1566 (parser::parse_for): Allow the null identifier to be used.
1567 (parser::parse_operator_list): Likewise.
1568 (main): Initialize null_id.
1570 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1572 * match.pd: Use HYPOT and COS rather than hypot and cos.
1573 Use CASE_CFN_* macros. Guard log/exp folds with
1574 SCALAR_FLOAT_TYPE_P.
1575 * genmatch.c (internal_fn): New enum.
1576 (fn_id::fn): Change to an unsigned int.
1577 (fn_id::fn_id): Accept internal_fn too.
1578 (add_builtin): Rename to...
1579 (add_function): ...this and turn into a template.
1580 (get_operator): Only try one variation if the original name fails.
1581 Only add _EXPR if the original name was all lower case.
1582 Try converting internal and built-in function names to their
1584 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
1585 (dt_simplify::gen_1): Likewise.
1586 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
1587 and get_call_combined_fn for generic.
1588 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
1589 (decision_tree::gen): Likewise.
1590 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
1591 Use add_function rather than add_builtin. Register internal
1593 * generic-match-head.c: Include case-cfn-macros.h.
1594 * gimple-fold.c (replace_stmt_with_simplification): Use
1595 gimple_call_combined_fn to test whether we can keep an
1597 * gimple-match.h (code_helper): Replace built_in_function
1599 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
1600 and case-fn-macros.h.
1601 (gimple_resimplify1): Use fold_const_call.
1602 (gimple_resimplify2, gimple_resimplify3): Likewise.
1603 (build_call_internal, build_call): New functions.
1604 (maybe_push_res_to_seq): Use them.
1605 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
1606 rather than a built-in function.
1607 * tree.h (build_call_expr_internal_loc): Declare.
1608 (maybe_build_call_expr_loc): Likewise.
1609 * tree.c (build_call_expr_internal_loc_array): New function.
1610 (maybe_build_call_expr_loc): Likewise.
1612 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1614 * builtins.h (mathfn_built_in): Add a variant that takes
1616 * builtins.c: Include case-cfn-macros.h.
1617 (CASE_MATHFN): Use CASE_CFN_*.
1618 (CASE_MATHFN_REENT): Use CFN_ codes.
1619 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
1620 argument with a combined_fn.
1621 (mathfn_built_in): Add a variant that takes a combined_fn.
1622 (expand_builtin_int_roundingfn_2): Update callers accordingly.
1623 (fold_builtin_sincos, fold_builtin_classify): Likewise.
1625 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1627 * tree-vect-patterns.c: Include case-cfn-macros.h.
1628 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
1630 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1632 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
1633 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
1634 (pass_cse_sincos::execute): Likewise.
1636 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1638 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
1639 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
1640 (decrement_power, acceptable_pow_call): Likewise.
1641 (attempt_builtin_copysign): Likewise.
1643 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1645 * tree-vrp.c: Include case-cfn-macros.h.
1646 (extract_range_basic): Switch on combined_fn rather than handling
1647 built-in functions and internal functions separately.
1649 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1651 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
1652 than a built_in_function.
1653 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1655 (integer_valued_real_call_p): Likewise.
1656 * fold-const.c: Include case-cfn-macros.h
1657 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
1658 (negate_expr_p): Update accordingly.
1659 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1661 (integer_valued_real_call_p): Likewise.
1662 (tree_invalid_nonnegative_warnv_p): Update accordingly.
1663 (integer_valued_real_p): Likewise.
1664 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
1665 to tree_call_nonnegative_warnv_p.
1666 (gimple_call_integer_valued_real_p): Likewise
1667 integer_valued_real_call_p.
1668 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
1669 (backprop::process_builtin_call_use): Extend to combined_fn.
1670 (strip_sign_op_1): Likewise.
1671 (backprop::process_use): Don't check for built-in calls here.
1672 (backprop::execute): Likewise.
1673 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
1675 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1677 * fold-const-call.h (fold_const_call): Replace built_in_function
1678 arguments with combined_fn arguments.
1679 * fold-const-call.c: Include case-cfn-macros.h.
1680 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
1681 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
1682 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
1683 built_in_function arguments with combined_fn arguments.
1684 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
1685 (fold_builtin_3): Update calls to fold_const_call.
1687 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1689 * Makefile.in (HASH_TABLE_H): Add GGC_H.
1690 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
1691 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
1692 (build/gencfn-macros$(build_exeext): New rules.
1693 (genprogerr): Add cfn-macros.
1694 * hash-set.h (hash_set): Use the traits value_type as the key.
1695 * gencfn-macros.c: New file.
1697 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1699 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
1700 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
1701 * builtins.c (associated_internal_fn): Handle them.
1703 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1705 * builtins.h (associated_internal_fn): Declare.
1706 (replacement_internal_fn): Likewise.
1707 * builtins.c: Include internal-fn.h
1708 (associated_internal_fn, replacement_internal_fn): New functions.
1709 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
1710 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
1711 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
1712 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
1713 (LDEXP): New functions.
1714 * internal-fn.c: Include recog.h.
1715 (unary_direct, binary_direct): New macros.
1716 (expand_direct_optab_fn): New function.
1717 (expand_unary_optab_fn): New macro.
1718 (expand_binary_optab_fn): Likewise.
1719 (direct_unary_optab_supported_p): Likewise.
1720 (direct_binary_optab_supported_p): Likewise.
1722 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1724 * coretypes.h (tree_pair): New type.
1725 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
1726 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
1727 * internal-fn.h (direct_internal_fn_info): New structure.
1728 (direct_internal_fn_array): Declare.
1729 (direct_internal_fn_p, direct_internal_fn): New functions.
1730 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
1731 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
1732 (mask_store_direct, store_lanes_direct): New macros.
1733 (direct_internal_fn_array) New array.
1734 (get_multi_vector_move): Return the optab handler without asserting
1735 that it is available.
1736 (expand_LOAD_LANES): Rename to...
1737 (expand_load_lanes_optab_fn): ...this and add an optab argument.
1738 (expand_STORE_LANES): Rename to...
1739 (expand_store_lanes_optab_fn): ...this and add an optab argument.
1740 (expand_MASK_LOAD): Rename to...
1741 (expand_mask_load_optab_fn): ...this and add an optab argument.
1742 (expand_MASK_STORE): Rename to...
1743 (expand_mask_store_optab_fn): ...this and add an optab argument.
1744 (direct_internal_fn_types, direct_optab_supported_p)
1745 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
1746 (direct_internal_fn_supported_p): New functions.
1747 (direct_mask_load_optab_supported_p): New macro.
1748 (direct_load_lanes_optab_supported_p): Likewise.
1749 (direct_mask_store_optab_supported_p): Likewise.
1750 (direct_store_lanes_optab_supported_p): Likewise.
1752 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1754 * tree-core.h (internal_fn): Move immediately after the definition
1755 of built_in_function.
1756 (combined_fn): New enum.
1757 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
1758 (internal_fn_p, as_internal_fn): New functions.
1759 (get_call_combined_fn, combined_fn_name): Declare.
1760 * tree.c (get_call_combined_fn): New function.
1761 (combined_fn_name): Likewise.
1762 * gimple.h (gimple_call_combined_fn): Declare.
1763 * gimple.c (gimple_call_combined_fn): New function.
1765 2015-11-17 Martin Sebor <msebor@redhat.com>
1768 * cp/init.c (build_new_1): Check for expression constness
1771 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
1774 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
1776 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
1777 discussion of the Microsoft structure layout details here from
1778 its former home in extend.texi.
1779 * doc/extend.texi (x86 Variable Attributes): Replace detailed
1780 discussion with pointer to its new location. Add cross-reference
1781 to corresponding type attributes.
1782 (x86 Type Attributes): Add cross-references to command-line options
1783 and variable attributes.
1785 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
1788 * targhooks.c (default_get_mask_mode): Filter out
1789 scalar modes returned by mode_for_vector.
1791 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1794 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
1795 offset from dstbase and use it appropriately in
1796 adjust_automodify_address.
1797 (arm_block_set_aligned_vect): Likewise.
1799 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
1801 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
1802 (MULTILIB_DIRNAMES): Adjust accordingly.
1804 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
1806 * config/aarch64/aarch64-cores.def (cortex-a35): New.
1807 * config/aarch64/aarch64.c (cortexa35_tunings): New.
1808 * config/aarch64/aarch64-tune.md: Regenerate.
1809 * doc/invoke.texi (-mcpu): Add Cortex-A35
1811 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
1814 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
1816 * config/i386/sse.md (*mov<mode>_internal): Always enable
1817 AVX and SSE unaligned moves for IAMCU.
1819 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
1821 * tree-if-conv.c: Include varasm.h
1822 (ref_DR_map): Define.
1823 (baseref_DR_map): Like wise
1824 (struct ifc_dr): Add new tree predicate field.
1825 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
1826 (memrefs_read_or_written_unconditionally): Remove.
1827 (write_memrefs_written_at_least_once): Remove.
1828 (ifcvt_memrefs_wont_trap): Use hash maps to query
1829 unconditional read/written information.
1830 (if_convertible_loop_p_1): Initialize hash maps and predicates
1831 before hashing data references and delete hashmaps at the end.
1833 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
1836 * doc/invoke.texi (Optimize Options): Move @end table to the right
1839 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
1842 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
1845 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
1847 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
1848 128-bit types, just types that fit in a single vector.
1849 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
1851 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
1853 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
1854 in the user documentation.
1855 (define_peephole2, define_split): Similarly.
1857 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
1859 * lto-streamer-out.c (write_global_references): Adjust integer type.
1860 (lto_output_decl_state_refs): Likewise.
1862 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
1864 * config/arm/arm-cores.def (cortex-a35): New.
1865 * config/arm/arm.c (arm_cortex_a35_tune): New.
1866 * config/arm/arm-tables.opt: Regenerate.
1867 * config/arm/arm-tune.md: Regenerate.
1868 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
1869 * config/arm/t-aprofile: Likewise.
1870 * doc/invoke.texi (-mcpu): Likewise.
1872 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
1874 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
1875 and qdf24xx and xgene1 to match -march=armv8-a.
1877 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1879 PR rtl-optimization/68330
1880 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
1881 of LSHIFTRT by a non-zero constant integer.
1883 2015-11-16 Richard Biener <rguenther@suse.de>
1885 PR tree-optimization/68306
1886 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
1887 bogus copying from verify_data_ref_alignment and use continue
1890 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
1891 Kaz Kojima <kkojima@gcc.gnu.org>
1894 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
1896 (*addsi3): Add another insn_and_split variant for reload.
1898 2015-11-16 Richard Biener <rguenther@suse.de>
1901 * cfgexpand.c (pass_expand::execute): Destroy the edge
1902 redirection var map before setting RTL CFG hooks.
1904 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
1906 * config/i386/sse.md (reduc_splus_v8df): Rename to...
1907 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
1909 (reduc_splus_v4df): Rename to...
1910 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
1912 (reduc_splus_v2df): Rename to...
1913 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
1915 (reduc_splus_v16sf): Rename to...
1916 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
1918 (reduc_splus_v8sf): Rename to...
1919 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
1921 (reduc_splus_v4sf): Rename to...
1922 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
1924 (reduc_<code>_<mode>, all 3 variants): Rename each to...
1925 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
1927 (reduc_umin_v8hf): Rename to...
1928 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
1930 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1932 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
1933 without additional conditions.
1934 * doc/extend.texi (@item simd): New.
1936 2015-11-16 Tom de Vries <tom@codesourcery.com>
1938 * passes.c (first_pass_instance): Remove variable.
1939 (execute_todo): Remove setting of first_pass_instance.
1940 * tree-pass.h (first_pass_instance): Remove declaration.
1942 2015-11-16 Tom de Vries <tom@codesourcery.com>
1944 * passes.def: Add arg to pass_ccp pass instantiation.
1945 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
1946 instead of first_pass_instance.
1947 (do_ssa_ccp): Add and handle param nonzero_p.
1948 (pass_ccp::pass_ccp): Initialize nonzero_p.
1949 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
1950 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
1951 (pass_ccp::nonzero_p): New private member.
1953 2015-11-16 Tom de Vries <tom@codesourcery.com>
1955 * passes.def: Add arg to pass_object_sizes pass instantiation.
1956 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
1958 (pass_object_sizes::set_pass_param): New member function. Set
1960 (pass_object_sizes::insert_min_max_p): New private member.
1961 (pass_object_sizes::execute): Use insert_min_max_p instead of
1962 first_pass_instance.
1964 2015-11-16 Tom de Vries <tom@codesourcery.com>
1966 * passes.def: Add arg to pass_dominator pass instantiation.
1967 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
1969 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
1970 may_peel_loop_headers_p.
1971 (pass_dominator::set_pass_param): New member function. Set
1972 may_peel_loop_headers_p.
1973 (pass_dominator::may_peel_loop_headers_p): New private member.
1974 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
1975 first_pass_instance.
1977 2015-11-16 Tom de Vries <tom@codesourcery.com>
1979 * passes.def: Add arg to pass_reassoc pass instantiation.
1980 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
1981 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
1982 of first_pass_instance.
1983 (execute_reassoc): Add and handle insert_powi_p parameter.
1984 (pass_reassoc::insert_powi_p): New private member.
1985 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
1986 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
1987 (pass_reassoc::execute): Call execute_reassoc with extra arg.
1989 2015-11-16 Tom de Vries <tom@codesourcery.com>
1991 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
1992 * gen-pass-instances.awk (handle_line): Same.
1993 * pass_manager.h (class pass_manager): Define and undefine
1995 * passes.c (opt_pass::set_pass_param): New function.
1996 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
1997 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
1998 * tree-pass.h (gimple_opt::set_pass_param): Declare.
1999 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
2000 warn_array_bounds_p parameter.
2001 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
2002 (pass_vrp::set_pass_param): New function.
2003 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
2004 (pass_vrp::warn_array_bounds_p): New private member.
2006 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2008 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
2009 (output_probe_stack_range): Rotate the loop and simplify.
2011 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2013 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
2014 (output_probe_stack_range): Rotate the loop and simplify.
2016 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2018 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
2019 an lea instruction when possible.
2020 (output_adjust_stack_and_probe): Rotate the loop and simplify.
2021 (ix86_emit_probe_stack_range): Adjust.
2022 (output_probe_stack_range): Rotate the loop and simplify.
2024 2015-11-16 Christian Bruel <christian.bruel@st.com>
2026 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
2027 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
2028 with appropriate pragma GCC target.
2030 2015-11-16 Christian Bruel <christian.bruel@st.com>
2033 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
2034 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
2036 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
2038 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
2039 (cortexa57_tunings): Use it.
2041 2015-11-16 Christian Bruel <christian.bruel@st.com>
2044 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
2045 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
2046 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
2048 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
2049 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
2050 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
2051 * doc/extend.texi (-mfpu=): Describe attribute.
2053 2015-11-16 Christian Bruel <christian.bruel@st.com>
2056 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
2057 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
2058 arm_init_neon_builtins.
2059 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
2060 (arm_init_neon_builtins_internal)
2061 (arm_init_crypto_builtins_internal):
2062 Test and set neon_set_p, neon_crypto_set_p.
2063 (neon_set_p, neon_crypto_set_p): New static booleans.
2065 2015-11-16 Christian Bruel <christian.bruel@st.com>
2068 * config/arm/arm.c (arm_fpu_desc): Remove.
2069 (all_fpus): Make global.
2070 (arm_option_override): Use FPU TARGET accessors.
2071 (arm_declare_function_name): Likewise.
2072 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
2073 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
2074 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
2075 (TARGET_NEON): Likewise.
2076 (all_fpus): Declare extern.
2077 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
2078 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
2080 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2083 * sdbout.c: Include emit-rtl.h and function.h.
2085 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
2087 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
2088 Remove support for FreeBSD 5 and earlier.
2090 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2092 * configure: Regenerate.
2093 * configure.ac: Always define ENABLE_OFFLOADING.
2094 * cgraph.c (cgraph_node::create): Adjust.
2095 * gcc.c (process_command): Likewise.
2096 * omp-low.c (create_omp_child_function): Likewise.
2097 (expand_omp_target): Likewise.
2098 * varpool.c (varpool_node::get_create): Likewise.
2100 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2102 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
2103 * df-scan.c (df_get_exit_block_use_set): Adjust.
2104 * except.c (expand_eh_return): Likewise.
2106 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2108 * config/i386/i386.h (TARGET_PECOFF): Remove define.
2109 * defaults.h (TARGET_PECOFF): New default definition.
2110 * varasm.c (handle_vtv_comdat_section): Adjust.
2112 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2114 * defaults.h: New definition of SDB_DEBUGGING_INFO.
2115 * doc/tm.texi: Regenerate.
2116 * doc/tm.texi.in: Adjust.
2117 * final.c (rest_of_clean_state): Remove check if
2118 SDB_DEBUGGING_INFO is defined.
2119 * function.c (number_blocks): Likewise.
2120 * output.h: Likewise.
2121 * sdbout.c: Likewise.
2122 * toplev.c (process_options): Likewise.
2124 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2126 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
2127 (enum sdb_masks): Likewise.
2128 * sdbout.c (plain_type_1): Likewise.
2129 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
2131 2015-11-14 Jakub Jelinek <jakub@redhat.com>
2133 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
2134 internal calls - 0 if ordered simd and 1 for ordered threads simd.
2135 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
2136 argument is 1, replace it with GOMP_ordered_* call instead of removing
2139 2015-11-13 Rich Felker <dalias@libc.org>
2141 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
2142 address loading hack for FDPIC targets.
2144 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
2145 Jeff Law <law@redhat.com>
2147 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
2148 * common.opt (-fsplit-paths): New flag controlling path splitting.
2149 * doc/invoke.texi (fsplit-paths): Document.
2150 * opts.c (default_options_table): Add -fsplit-paths to -O2.
2151 * passes.def: Add split_paths pass.
2152 * timevar.def (TV_SPLIT_PATHS): New timevar.
2153 * tracer.c: Include "tracer.h"
2154 (ignore_bb_p): No longer static.
2155 (transform_duplicate): New function, broken out of tail_duplicate.
2156 (tail_duplicate): Use transform_duplicate.
2157 * tracer.h (ignore_bb_p): Declare
2158 (transform_duplicate): Likewise.
2159 * tree-pass.h (make_pass_split_paths): Declare.
2160 * gimple-ssa-split-paths.c: New file.
2162 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
2163 Marek Polacek <polacek@redhat.com>
2164 Jason Merrill <jason@redhat.com>
2166 * convert.c (maybe_fold_build1_loc): New.
2167 (maybe_fold_build2_loc): New.
2168 (convert_to_pointer_1): Split out from convert_to_pointer.
2169 (convert_to_pointer_nofold): New.
2170 (convert_to_real_1): Split out from convert_to_real.
2171 (convert_to_real_nofold): New.
2172 (convert_to_integer_1): Split out from convert_to_integer.
2173 (convert_to_integer_nofold): New.
2174 (convert_to_complex_1): Split out from convert_to_complex.
2175 (convert_to_complex_nofold): New.
2176 * convert.h: Declare new functions.
2177 * tree-complex.c (create_one_component_var): Break up line to
2178 avoid sequence point issues.
2180 2015-11-13 Jason Merrill <jason@redhat.com>
2182 * fold-const.c (fold_convert_const): Fold changing cv-quals on
2185 * hash-map.h (hash_map::empty): New.
2187 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2189 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
2190 (oacc_loop_fixed_partitions): Correct return type to bool.
2191 (oacc_loop_auto_partitions): New.
2192 (oacc_loop_partition): Take mask argument, call
2193 oacc_loop_auto_partitions.
2194 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
2196 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2198 * config/rs6000/constraints.md (we constraint): New constraint for
2199 64-bit power9 vector support.
2200 (wL constraint): New constraint for the element in a vector that
2201 can be addressed by the MFVSRLD instruction.
2203 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
2205 (convert_int_to_float128): Likewise.
2206 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
2207 hardware support for IEEE 128-bit floating point.
2208 (rs6000_expand_float128_convert): Likewise.
2209 (convert_float128_to_int): Likewise.
2210 (convert_int_to_float128): Likewise.
2212 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
2213 ISA 3.0 hardware IEEE 128-bit floating point.
2214 (UNSPEC_IEEE128_MOVE): Likewise.
2215 (UNSPEC_IEEE128_CONVERT): Likewise.
2216 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
2217 (Ff): Add support for DImode.
2219 (any_fix code iterator): New and updated iterators for IEEE
2220 128-bit floating point hardware support.
2221 (any_float code iterator): Likewise.
2222 (s code attribute): Likewise.
2223 (su code attribute): Likewise.
2224 (az code attribute): Likewise.
2225 (uns code attribute): Likewise.
2226 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
2227 floating point hardware support.
2228 (abs<mode>2, FLOAT128 iterator): Likewise.
2229 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
2230 floating point hardware.
2231 (sub<mode>3, IEEE128 iterator): Likewise.
2232 (mul<mode>3, IEEE128 iterator): Likewise.
2233 (div<mode>3, IEEE128 iterator): Likewise.
2234 (copysign<mode>3, IEEE128 iterator): Likewise.
2235 (sqrt<mode>2, IEEE128 iterator): Likewise.
2236 (neg<mode>2, IEEE128 iterator): Likewise.
2237 (abs<mode>2, IEEE128 iterator): Likewise.
2238 (nabs<mode>2, IEEE128 iterator): Likewise.
2239 (fma<mode>4_hw, IEEE128 iterator): Likewise.
2240 (fms<mode>4_hw, IEEE128 iterator): Likewise.
2241 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
2242 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
2243 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
2244 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
2245 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
2246 (fix_fixuns code attribute): Likewise.
2247 (float_floatuns code attribute): Likewise.
2248 (fix<uns>_<mode>si2_hw): Likewise.
2249 (fix<uns>_<mode>di2_hw): Likewise.
2250 (float<uns>_<mode>si2_hw): Likewise.
2251 (float<uns>_<mode>di2_hw): Likewise.
2252 (xscvqp<su>wz_<mode>): Likewise.
2253 (xscvqp<su>dz_<mode>): Likewise.
2254 (xscv<su>dqp_<mode): Likewise.
2255 (ieee128_mfvsrd): Likewise.
2256 (ieee128_mfvsrwz): Likewise.
2257 (ieee128_mtvsrw): Likewise.
2258 (ieee128_mtvsrd): Likewise.
2259 (trunc<mode>df2_odd): Likewise.
2260 (cmp<mode>_h): Likewise.
2261 (128-bit GPR splitters): Don't split a 128-bit move that is a
2262 direct move between GPR and vector registers using ISA 3.0 direct
2264 (maddld4): Add support for the ISA 3.0 integer multiply-add
2267 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
2269 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
2270 constraint. Disable the VSX<->GPR direct move helpers if we have
2271 the MFVSRLD and MTVSRDD instructions.
2272 (rs6000_secondary_reload_simple_move): Add support for doing
2273 vector direct moves directly without additional scratch registers
2274 if we have ISA 3.0 instructions.
2275 (rs6000_secondary_reload_direct_move): Update comments.
2276 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
2279 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
2280 direct move instructions.
2281 (vsx_movti_64bit): Likewise.
2282 (vsx_extract_<mode>): Likewise.
2284 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
2285 macros for ISA 3.0 direct move instructions.
2286 (TARGET_DIRECT_MOVE_128): Likewise.
2287 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
2290 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
2291 constraints. Update wa documentation to say not to use %x<n> on
2292 instructions that only take Altivec registers.
2294 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2296 * Makefile.in (OBJS): Add gcc-rich-location.o.
2297 * diagnostic.c (diagnostic_append_note): Pass line_table to
2299 (emit_diagnostic): Likewise.
2301 (inform_n): Likewise.
2302 (warning): Likewise.
2303 (warning_at): Likewise.
2304 (warning_n): Likewise.
2305 (pedwarn): Likewise.
2306 (permerror): Likewise.
2308 (error_n): Likewise.
2309 (error_at): Likewise.
2311 (fatal_error): Likewise.
2312 (internal_error): Likewise.
2313 (internal_error_no_backtrace): Likewise.
2314 (source_range::debug): Likewise.
2315 * gcc-rich-location.c: New file.
2316 * gcc-rich-location.h: New file.
2317 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
2318 (warning_at): Likewise.
2319 * gimple.h (gimple_set_block): Use set_block function.
2320 * input.c (dump_line_table_statistics): Dump stats on how many
2321 ranges were optimized vs how many needed ad-hoc table.
2322 (write_digit_row): Add "map" param; use its range_bits
2323 to calculate the per-character offset.
2324 (dump_location_info): Print the range and column bits for each
2325 ordinary map. Use the range bits to calculate the per-character
2326 offset. Pass the map as a new param to the various calls to
2327 write_digit_row. Eliminate uses of
2328 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
2329 * print-tree.c (print_node): Print any source range information.
2330 * rtl-error.c (diagnostic_for_asm): Likewise.
2331 * toplev.c (general_init): Initialize line_table's
2333 * tree-cfg.c (move_block_to_fn): Likewise.
2334 (move_block_to_fn): Likewise.
2335 * tree-inline.c (copy_phis_for_bb): Likewise.
2336 * tree.c (tree_set_block): Likewise.
2337 (get_pure_location): New function.
2338 (set_source_range): New functions.
2339 (set_block): New function.
2340 (set_source_range): New functions.
2341 * tree.h (CAN_HAVE_RANGE_P): New.
2342 (EXPR_LOCATION_RANGE): New.
2343 (EXPR_HAS_RANGE): New.
2344 (get_expr_source_range): New inline function.
2345 (DECL_LOCATION_RANGE): New.
2346 (set_source_range): New decls.
2347 (get_decl_source_range): New inline function.
2349 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
2351 PR tree-optimization/67682
2352 * tree-vect-slp.c (vect_split_slp_store_group): New.
2353 (vect_analyze_slp_instance): During basic block SLP, recurse on
2354 subgroups if vect_build_slp_tree fails after 1st vector.
2356 2015-11-13 Christian Bruel <christian.bruel@st.com>
2359 * config/arm/arm.c (arm_option_override): Move NEON check...
2360 (arm_option_check_internal): here
2361 (arm_file_start): Move .fpu print...
2362 (arm_declare_function_name): here
2363 (arm_option_print): Dump current fpu name.
2364 * config/arm/arm.opt (arm_fpu_index): Mark Save.
2366 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
2367 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2369 * combine.c (subst): Don't substitute or simplify when
2370 handling register-wise widening multiply.
2371 (force_to_mode): Likewise.
2373 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
2375 PR tree-optimization/68264
2376 * tree-call-cdce.c (gen_one_condition): Update commentary.
2377 (gen_conditions_for_pow_int_base): Invert the sense of the tests
2378 passed to gen_one_condition.
2379 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
2380 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
2381 using EDGE_FALSE_VALUE for edges to the call block and
2382 EDGE_TRUE_VALUE for the others.
2384 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2386 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
2389 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2391 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
2393 2015-11-13 Tom de Vries <tom@codesourcery.com>
2395 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
2398 2015-11-13 Tom de Vries <tom@codesourcery.com>
2400 * gen-pass-instances.awk (handle_line): Add args_str variable.
2402 2015-11-13 Martin Liska <mliska@suse.cz>
2404 * graphite-poly.c (free_scop): Release scop->drs vector.
2405 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
2407 (try_generate_gimple_bb): Use vNULL as a default initialization
2410 2015-11-13 Martin Liska <mliska@suse.cz>
2413 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
2414 Replace array initialization (using a variable post-increment)
2415 that possible triggers multiple unsequenced modifications
2416 with a pair of pushes to a vector.
2418 2015-11-13 Richard Biener <rguenther@suse.de>
2420 PR tree-optimization/68306
2421 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
2422 loop related checks ...
2423 (vect_verify_datarefs_alignment): ... here.
2424 (vect_slp_analyze_and_verify_node_alignment): Compute and
2425 verify alignment of the single DR that it matters.
2426 * tree-vect-stmts.c (vectorizable_store): Add an assert.
2427 (vectorizable_load): Add a comment.
2428 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
2429 for determining load cost.
2431 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2433 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
2434 mix of boolean and integer vectors in a single statement.
2435 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
2436 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
2437 determine constant type.
2438 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
2439 for loop invariants.
2441 2015-11-13 Alan Hayward <alan.hayward@arm.com>
2443 PR tree-optimization/66558
2444 * tree-vect-loop.c (is_integer_induction):Add.
2445 (vectorizable_reduction): Add integer induction checks.
2447 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
2449 Revert [ARM] Remove neon-testgen.ml and generated tests.
2451 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2453 [ARM] Remove neon-testgen.ml and generated tests.
2455 * config/arm/neon-testgen.ml: Remove.
2457 2015-11-13 Richard Biener <rguenther@suse.de>
2459 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
2460 Signal fatal failure if early checks fail.
2461 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
2462 do not bother testing further vector sizes.
2464 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
2466 * config/i386/predicates.md (misaligned_operand): Return true if
2467 operand is aligned to less than its natural alignmnet.
2469 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2471 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
2472 (vec_cmpu@var{m}@var{n}): New item.
2473 (vcond@var{m}@var{n}): Specify comparison is signed.
2474 (vcondu@var{m}@var{n}): New item.
2475 (vcond_mask_@var{m}@var{n}): New item.
2476 (maskload@var{m}@var{n}): New item.
2477 (maskstore@var{m}@var{n}): New item.
2479 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2481 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
2482 types of stored value and storage are compatible.
2484 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
2486 * gcc.c (POST_LINK_SPEC): Define if not already defined.
2487 (LINK_COMMAND_SPEC): Use post_link.
2488 (post_link_spec): New, initialize to POST_LINK_SPEC.
2489 (post_link): Initialize new static spec.
2490 * doc/tm.texi.in (POST_LINK_SPEC): Document.
2491 * doc/tm.texi: Regenerated.
2493 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2496 * Makefile.in (GCC_OBJS): Add spellcheck.o.
2497 (OBJS): Add spellcheck-tree.o.
2498 * gcc.c: Include "spellcheck.h".
2499 (suggest_option): New function.
2500 (driver::handle_unrecognized_options): Call suggest_option to
2501 provide a hint about misspelled options.
2502 * spellcheck.c: Update file comment.
2503 (levenshtein_distance): Convert 4-param implementation from static
2504 to extern scope. Remove note about unit tests from leading
2505 comment for const char * implementation. Move tree
2506 implementation to...
2507 * spellcheck-tree.c: New file.
2508 * spellcheck.h (levenshtein_distance): Add 4-param decl.
2510 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2512 * Makefile.in (OBJS): Add spellcheck.o.
2513 * spellcheck.c: New file.
2514 * spellcheck.h: New file.
2516 2015-11-13 James Bowman <james.bowman@ftdichip.com>
2518 * config/ft32/ft32.md (*sne): New insn pattern.
2520 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
2522 * cprop.c (is_too_expensive): Remove.
2524 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
2526 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
2527 * gcse.c (is_too_expensive): Rename to ...
2528 (gcse_or_cprop_is_too_expensive): ... this.
2529 Expand warning to add required size of max-gcse-memory.
2530 (one_pre_gcse_pass): Use it.
2531 (one_code_hoisting_pass): Use it.
2532 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
2534 2015-11-12 James Norris <jnorris@codesourcery.com>
2535 Joseph Myers <joseph@codesourcery.com>
2537 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
2538 GF_OMP_TARGET_KIND_OACC_DECLARE.
2539 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
2540 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2541 * gimplify.c (oacc_declare_returns): New.
2542 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
2543 (device_resident_p): New function.
2544 (oacc_default_clause): Handle device_resident clause.
2545 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
2546 (gimplify_expr): Handle OACC_DECLARE.
2547 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
2548 * omp-low.c (expand_omp_target): Handle
2549 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
2550 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
2551 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
2552 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
2553 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2554 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
2555 GOMP_MAP_DEVICE_RESIDENT.
2557 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2559 [ARM] Remove neon-testgen.ml and generated tests.
2561 * config/arm/neon-testgen.ml: Remove.
2563 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
2565 * config/aarch64/aarch64-cores.def (qdf24xx): New.
2566 * config/aarch64/aarch64-tune.md: Regenerated.
2567 * config/arm/arm-cores.def (qdf24xx): New.
2568 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
2569 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
2570 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
2571 (ARM Options/-mtune): Likewise.
2573 2015-11-12 Martin Liska <mliska@suse.cz>
2575 * config/i386/i386.c (ix86_valid_target_attribute_p):
2576 Finalize options at the of the function.
2577 * gcc.c (driver_get_configure_time_options): Call newly
2578 introduced init_opts_obstack.
2579 * lto-wrapper.c (main): Likewise.
2580 * opts.c (init_opts_obstack): New function.
2581 (init_options_struct): Call newly introduced init_opts_obstack.
2582 * opts.h (init_options_struct): Declare.
2584 2015-11-12 Martin Liska <mliska@suse.cz>
2587 * ipa-icf.c (void sem_item::set_hash): New function.
2588 (sem_function::get_hash): Use renamed m_hash member variable.
2589 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
2590 (sem_item::update_hash_by_local_refs): Likewise.
2591 (sem_variable::get_hash): Use renamed m_hash member variable.
2592 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
2593 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
2594 (sem_item_optimizer::build_graph): As the hash value of an item
2595 is lazy initialized, force the calculation.
2596 * ipa-icf.h (set_hash): Declare new function and rename hash member
2599 2015-11-12 Richard Biener <rguenther@suse.de>
2601 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
2602 Rename to vect_slp_analyze_instance_dependence.
2603 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2604 Remove WAR special-case.
2605 (vect_slp_analyze_node_dependences): Instead add more specific
2606 code here, not relying on other instances being vectorized.
2607 (vect_slp_analyze_instance_dependence): Adjust accordingly.
2608 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
2609 vertical space in dump files.
2610 (vect_print_slp_tree): Likewise.
2611 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
2612 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
2613 not vectorized stmts until after dependence analysis removed
2614 instances. Merge alignment and dependence checks.
2615 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
2618 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
2620 * config/aarch64/aarch64-protos.h (tune_params): Add new members
2621 "max_case_values" and "cache_line_size".
2622 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
2624 (aarch64_override_options_internal): Tune heuristics based on new
2625 members in "tune_params".
2626 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2628 2015-11-12 Richard Biener <rguenther@suse.de>
2630 PR tree-optimization/68306
2631 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
2632 relevant and vectorizable checks here.
2633 (vect_verify_datarefs_alignment): Add relevant check here.
2635 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
2637 * gimplify.c (oacc_default_clause): New.
2638 (omp_notice_variable): Call it.
2640 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2642 PR tree-optimization/68305
2643 * tree-vect-slp.c (vect_get_constant_vectors): Support
2644 COND_EXPR with SSA_NAME as a condition.
2646 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
2648 * config/visium/visium-protos.h (notice_update_cc): Delete.
2649 (print_operand): Likewise.
2650 (print_operand_address): Likewise.
2652 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2654 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
2655 FUNCTION_VALUE_REGNO_P): Remove.
2656 * config/alpha/alpha-protos.h (function_value): Remove.
2657 * config/alpha/alpha.c (function_value): Rename to...
2658 (alpha_function_value_1): ... this. Make static.
2659 (alpha_function_value, alpha_libcall_value,
2660 alpha_function_value_regno_p): New functions.
2661 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2662 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2664 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2666 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2667 * config/alpha/alpha.c (alpha_memory_latency): Make static.
2668 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
2669 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2671 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
2674 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
2675 assertion on the CFA register.
2677 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2679 * expr.c (do_store_flag): Expand vector comparison as
2680 VEC_COND_EXPR if vector comparison is not supported by target.
2682 2015-11-12 Renlin Li <renlin.li@arm.com>
2684 * config/arm/arm.md (addsi3_compare_op2): Make the order of
2685 assembly pattern consistent with constraint order.
2687 2015-11-12 Tom de Vries <tom@codesourcery.com>
2689 * gen-pass-instances.awk (handle_line): Simplify match regexp.
2691 2015-11-12 Tom de Vries <tom@codesourcery.com>
2693 * gen-pass-instances.awk (handle_line): Simplify init of
2696 2015-11-12 Tom de Vries <tom@codesourcery.com>
2698 * gen-pass-instances.awk (handle_line): Rename var where to
2701 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
2703 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
2704 do not expand to rtl.
2706 2015-11-12 Richard Biener <rguenther@suse.de>
2708 PR tree-optimization/58497
2709 * tree-vect-generic.c: Include gimplify.h.
2710 (tree_vec_extract): Lookup constant/constructor DEFs.
2711 (do_cond): Unshare cond.
2713 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2715 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
2716 combined insn if the alignment of vector mode memory operand
2717 is less than ssememalign.
2719 2015-11-12 Tom de Vries <tom@codesourcery.com>
2721 * gen-pass-instances.awk (handle_line): Print parentheses and
2722 pass_name explicitly.
2724 2015-11-12 Tom de Vries <tom@codesourcery.com>
2726 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
2729 2015-11-12 Tom de Vries <tom@codesourcery.com>
2731 * gen-pass-instances.awk (handle_line): Add comments.
2733 2015-11-12 Tom de Vries <tom@codesourcery.com>
2735 * gen-pass-instances.awk (handle_line): Rename len_of_end to
2738 2015-11-12 Tom de Vries <tom@codesourcery.com>
2740 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
2742 2015-11-12 Tom de Vries <tom@codesourcery.com>
2744 * gen-pass-instances.awk (handle_line): Restructure using early-out.
2746 2015-11-12 Tom de Vries <tom@codesourcery.com>
2748 * gen-pass-instances.awk (handle_line): Unify semicolon use.
2750 2015-11-12 Tom de Vries <tom@codesourcery.com>
2752 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
2754 2015-11-12 Tom de Vries <tom@codesourcery.com>
2756 * gen-pass-instances.awk: Add emacs indent setting.
2758 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2760 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
2762 Move Convert A/(B/C) to (A/B)*C to match.pd.
2763 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
2764 Move Optimize (X & (-A)) / A where A is a power of 2, to
2765 X >> log2(A) to match.pd.
2767 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
2768 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
2769 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
2771 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
2773 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
2775 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
2777 (neon_vst2_lane<mode>): Likewise.
2778 (neon_vld3_lane<mode>): Likewise.
2779 (neon_vst3_lane<mode>): Likewise.
2780 (neon_vld4_lane<mode>): Likewise.
2781 (neon_vst4_lane<mode>): Likewise.
2783 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
2784 Sebastian Pop <s.pop@samsung.com>
2786 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2787 New member codegen_error
2788 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
2790 (translate_isl_ast_node_user): Early return in case of error.
2791 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2792 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
2793 (add_parameters_to_ivs_params): Remove macro.
2794 (graphite_regenerate_ast_isl): Add if_region pointer to region.
2795 * graphite-poly.c (new_poly_dr): Remove macro.
2797 (new_gimple_poly_bb): Same.
2798 (free_gimple_poly_bb): Same.
2799 (print_scop_params): Same.
2800 * graphite-poly.h (struct poly_dr): Same.
2801 (struct poly_bb): Add new_bb.
2802 (gbb_from_bb): Remove dead code.
2803 (pbb_from_bb): Same.
2804 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
2805 (parameter_index_in_region): Same.
2806 (find_scop_parameters): Same.
2807 (build_cross_bb_scalars_def): New.
2808 (build_cross_bb_scalars_use): New.
2809 (graphite_find_cross_bb_scalar_vars): New
2810 (try_generate_gimple_bb): Reads and Writes.
2811 (build_alias_set): Move.
2812 (gather_bbs::before_dom_children): Gather bbs visited.
2813 (build_scops): call build_alias_set.
2814 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
2815 (remove_simple_copy_phi): Delete.
2816 (remove_invariant_phi): Delete.
2817 (simple_copy_phi_p): Delete.
2818 (reduction_phi_p): Delete.
2819 (isl_id_for_dr): Remove unused param.
2820 (parameter_index_in_region_1): Remove macro usage.
2821 (set_scop_parameter_dim): Same.
2822 (add_param_constraints): Same.
2823 (add_conditions_to_constraints): Same
2824 (build_scop_iteration_domain): Same.
2825 (pdr_add_alias_set): Comment.
2826 (add_scalar_version_numbers): New.
2827 (build_poly_dr): ISL id.
2828 (build_scop_drs): Move.
2829 (build_poly_sr_1): Same.
2830 (insert_stmts): Remove.
2831 (build_poly_sr): New.
2832 (new_pbb_from_pbb): Delete.
2833 (insert_out_of_ssa_copy_on_edge): Delete.
2834 (create_zero_dim_array): Delete.
2835 (scalar_close_phi_node_p): Delete.
2836 (propagate_expr_outside_region): Delete.
2837 (rewrite_close_phi_out_of_ssa): Delete.
2838 (rewrite_phi_out_of_ssa): Delete.
2839 (rewrite_degenerate_phi): Delete.
2840 (rewrite_reductions_out_of_ssa): Delete.
2841 (rewrite_cross_bb_scalar_dependence): Delete.
2842 (handle_scalar_deps_crossing_scop_limits):
2843 (rewrite_cross_bb_scalar_deps): Delete.
2844 (build_poly_scop): Remove calls to out-of-ssa functions.
2845 * graphite.c (graphite_transform_loops): Early return in case of
2847 * sese.c (debug_rename_map_1): Delete.
2848 (debug_rename_map): Delete.
2849 (sese_record_loop): Remove macro.
2850 (build_sese_loop_nests): Same.
2851 (new_sese_info): Same.
2852 (free_sese_info): Same.
2853 (sese_insert_phis_for_liveouts):
2854 (is_loop_closed_ssa_use): New.
2855 (number_of_phi_nodes): New.
2856 (bb_contains_loop_close_phi_nodes): New.
2857 (bb_contains_loop_phi_nodes): New.
2858 (phi_uses_name): New.
2860 (get_rename): Add old_bb and loop_phi for more precise matching of
2862 (set_rename): Pass region.
2863 (later_of_the_two): New.
2864 (gsi_insert_earliest): New.
2865 (collect_all_ssa_names): New.
2866 (substitute_ssa_name): New.
2867 (rename_all_uses): New.
2868 (get_rename_from_scev): New.
2869 (rename_uses): Pass old_bb for more precise matching of exprs.
2870 (get_def_bb_for_const): New.
2871 (get_new_name): New.
2874 (copy_loop_phi_args): New.
2875 (copy_loop_phi_nodes): New.
2876 (get_loop_init_value): New.
2877 (find_init_value): New.
2878 (find_init_value_close_phi): New.
2879 (copy_loop_close_phi_args): New.
2880 (copy_loop_close_phi_nodes): New.
2881 (add_phi_arg_for_new_expr): New.
2882 (copy_cond_phi_args): New.
2883 (copy_cond_phi_nodes): New.
2884 (copy_phi_nodes): New.
2885 (should_copy_to_new_region): New.
2886 (set_rename_for_each_def): New.
2887 (graphite_copy_stmts_from_block): Early return in case of error.
2888 (copy_bb_and_scalar_dependences): Same.
2889 * sese.h (vec_find): New.
2890 (SESE_PARAMS): Delete.
2891 (SESE_LOOPS): Delete.
2892 (SESE_LOOP_NEST): Delete.
2893 (sese_contains_loop): Remove macro usage.
2894 (sese_nb_params): Same.
2895 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
2897 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
2899 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
2900 isl_union_map_add_map on every pbb->schedule.
2902 2015-11-11 Tom de Vries <tom@codesourcery.com>
2904 * tree-parloops.c (create_parallel_loop): Return void.
2906 2015-11-11 Tom de Vries <tom@codesourcery.com>
2908 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
2909 block only when needed.
2911 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
2913 * config/alpha/alpha-protos.h (print_operand): Remove.
2914 (print_operand_address): Remove.
2915 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
2916 (PRINT_OPERAND_ADDRESS): Remove.
2917 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
2918 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
2919 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
2920 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
2921 (print_operand_address): Rename to...
2922 (alpha_print_operand_address): ...this and make static.
2923 (print_operand): Rename to...
2924 (alpha_print_operand): ...this and make static.
2925 (alpha_print_operand_punct_valid_p): New static function.
2927 2015-11-11 Richard Biener <rguenther@suse.de>
2929 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
2931 (vect_analyze_data_refs_alignment): Make loop vect specific.
2932 (vect_verify_datarefs_alignment): Likewise.
2933 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
2934 Add missing continue.
2935 (vect_compute_data_ref_alignment): Export.
2936 (vect_compute_data_refs_alignment): Merge into...
2937 (vect_analyze_data_refs_alignment): ... this.
2938 (verify_data_ref_alignment): Split out from ...
2939 (vect_verify_datarefs_alignment): ... here.
2940 (vect_slp_analyze_and_verify_node_alignment): New function.
2941 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
2942 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
2943 misplaced checks on alignment.
2944 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
2945 alignment analysis after SLP discovery and do it per instance.
2946 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
2947 bother to re-try using different vector sizes.
2949 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
2950 Cesar Philippidis <cesar@codesourcery.com>
2952 * gimplify.c (enum omp_region_type): Add ORT_ACC,
2953 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
2954 (gimple_add_tmp_var): Add ORT_ACC checks.
2955 (gimplify_var_or_parm_decl): Likewise.
2956 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
2957 (omp_add_variable): Look in outer contexts for openacc and allow
2958 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
2959 (omp_notice_variable, omp_is_private, omp_check_private): Add
2961 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
2962 Permit private openacc reductions.
2963 (gimplify_oacc_cache): Specify ORT_ACC.
2964 (gimplify_omp_workshare): Adjust OpenACC region types.
2965 (gimplify_omp_target_update): Likewise.
2966 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
2967 (lower-rec_input_clauses): Don't handle openacc firstprivate
2969 (lower_omp_target): Emit initializers for openacc firstprivate vars.
2971 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
2974 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
2975 frame pointer for stack checking if non-call exceptions aren't used.
2976 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
2978 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
2980 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
2983 2015-11-11 Martin Liska <mliska@suse.cz>
2984 Richard Biener <rguenther@suse.de>
2986 PR rtl-optimization/68287
2987 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
2990 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
2992 * config/mips/mips.c (mips_breakable_sequence_p): New function.
2993 (mips_break_sequence): New function.
2994 (mips_reorg_process_insns): Use them. Use compact branches in selected
2997 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
2999 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
3001 2015-11-11 Jiong Wang <jiong.wang@arm.com>
3002 Jim Wilson <wilson@gcc.gnu.org>
3005 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
3006 be true and eliminable registers mentioned.
3008 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
3010 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
3012 * config/arc/arc-opts.h: Add ARCv2 CPUs.
3013 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
3014 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
3015 situation, and store instructions with large offsets.
3016 (arc_secondary_reload_conv): New function.
3017 (arc_init): Add ARCv2 options.
3018 (arc_conditional_register_usage): Select the proper register usage
3019 for ARCv2 processors.
3020 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
3022 (arc_compute_function_type): Likewise.
3023 (arc_print_operand): Handle new ARCv2 punctuation characters.
3024 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
3025 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
3027 (arc_reorg, arc_hazard): Use it.
3028 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
3029 (ASM_SPEC): Add ARCv2 options.
3030 (TARGET_NORM): ARC HS has norm instructions by default.
3031 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
3032 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
3033 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
3034 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
3036 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
3037 (TARGET_LP_WR_INTERLOCK): Likewise.
3039 (commutative_binary_mult_comparison_result_used, movsicc_insn)
3040 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
3041 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
3042 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
3044 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
3045 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
3046 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
3047 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
3048 (extzvsi): New pattern.
3049 * config/arc/arc.opt: New ARCv2 options.
3050 * config/arc/arcEM.md: New file.
3051 * config/arc/arcHS.md: Likewise.
3052 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
3054 (Cm2): A signed 9-bit integer constant constraint.
3055 (C62): An unsigned 6-bit integer constant constraint.
3056 (C16): A signed 16-bit integer constant constraint.
3057 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
3058 (short_const_int_operand): New predicate.
3059 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
3060 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
3061 -mcode-density and -mdiv-rem.
3063 2015-11-11 Julia Koval <julia.koval@intel.com>
3065 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
3067 2015-11-11 Julia Koval <julia.koval@intel.com>
3069 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
3071 2015-11-11 Martin Liska <mliska@suse.cz>
3073 * gimple-ssa-strength-reduction.c (create_phi_basis):
3075 * passes.c (release_dump_file_name): New function.
3076 (pass_init_dump_file): Used from this function.
3077 (pass_fini_dump_file): Likewise.
3078 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
3079 * var-tracking.c (vt_initialize): Use pool_allocator.
3081 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
3082 Jiong Wang <jiong.wang@arm.com>
3084 PR tree-optimization/68234
3085 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
3086 node which estimiated to be VR_VARYING initially.
3088 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
3090 * regname.c (scan_rtx_reg): Check the matching number of consecutive
3091 registers when tying chains.
3092 (build_def_use): Move terminated_this_insn earlier in the function.
3094 2015-11-10 Mike Frysinger <vapier@gentoo.org>
3096 * configure.ac: Use = with test and not ==.
3097 * configure: Regenerated.
3099 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
3101 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
3102 machine asserts. Update defines for 64 bit.
3104 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3107 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
3109 (neon_vst1_lane<mode>): Likewise.
3110 (neon_vld2_lane<mode>): Likewise.
3111 (neon_vst2_lane<mode>): Likewise.
3112 (neon_vld3_lane<mode>): Likewise.
3113 (neon_vst3_lane<mode>): Likewise.
3114 (neon_vld4_lane<mode>): Likewise.
3115 (neon_vst4_lane<mode>): Likewise.
3117 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3120 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
3121 qualifier_struct_load_store_lane_index.
3122 (arm_storestruct_lane_qualifiers) Likewise.
3123 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
3125 (neon_vst1_lane<mode>) Likewise.
3126 (neon_vld2_lane<mode>) Likewise.
3127 (neon_vst2_lane<mode>) Likewise.
3128 (neon_vld3_lane<mode>) Likewise.
3129 (neon_vst3_lane<mode>) Likewise.
3130 (neon_vld4_lane<mode>) Likewise.
3131 (neon_vst4_lane<mode>) Likewise.
3133 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3136 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
3137 qualifier_struct_load_store_lane_index.
3138 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3139 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
3140 argument qualifiers.
3141 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
3142 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
3144 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
3146 * config/nvptx/nvptx.opt (moptimize): New flag.
3147 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
3149 (nvptx_optimize_inner): New.
3150 (nvptx_process_pars): Call it when optimizing.
3151 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
3153 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3155 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
3156 Remove redundant code.
3158 2015-11-10 Jeff Law <law@redhat.com>
3160 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
3161 call to output_address.
3162 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
3163 Add unnamed machine_mode argument.
3165 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3167 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
3170 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3172 * config/i386/i386.md (*movabs<mode>_1): Add explicit
3173 size directives for -masm=intel.
3174 (*movabs<mode>_2): Ditto.
3176 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3178 * config/i386/i386.c (ix86_print_operand): Remove dead code that
3179 tried to avoid (%rip) for call operands.
3181 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3183 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
3184 argument. Do not use RIP relative addressing when no_rip is set.
3185 (ix86_print_operand): Update call to ix86_print_operand_address_as.
3186 (ix86_print_operand_address): Ditto.
3187 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
3188 absolute movabs operand 0. Add square braces for -masm=intel.
3189 (*movabs<mode>_2): Ditto for operand 1.
3191 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3193 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
3194 combine_vcvtf2i pattern.
3196 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3198 * config/arm/arm.c (neon_valid_immediate): Remove integer
3199 CONST_DOUBLE handling. It should never occur.
3201 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
3203 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
3204 (ATOMIC_LDOP): Likewise.
3205 (atomic_ldop): Likewise.
3206 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
3207 (ATOMIC_LDOP): Likewise.
3208 (atomic_ldop): Likewise.
3210 2015-11-10 Martin Liska <mliska@suse.cz>
3212 * alloc-pool.h (allocate_raw): New function.
3213 (operator new (size_t, object_allocator<T> &a)): Use the
3214 function instead of object_allocator::allocate).
3216 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3218 * config/i386/sse.md (HALFMASKMODE): New attribute.
3219 (DOUBLEMASKMODE): New attribute.
3220 (vec_pack_trunc_qi): New.
3221 (vec_pack_trunc_<mode>): New.
3222 (vec_unpacks_lo_hi): New.
3223 (vec_unpacks_lo_si): New.
3224 (vec_unpacks_lo_di): New.
3225 (vec_unpacks_hi_hi): New.
3226 (vec_unpacks_hi_<mode>): New.
3228 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3230 * optabs.c (expand_binop_directly): Allow scalar mode for
3231 vec_pack_trunc_optab.
3232 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3233 boolean vector producers from pattern sequence when computing VF.
3234 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
3235 vect_recog_mask_conversion_pattern.
3236 (search_type_for_mask): Choose the smallest
3237 type if different size types are mixed.
3238 (build_mask_conversion): New.
3239 (vect_recog_mask_conversion_pattern): New.
3240 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
3241 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
3243 (vectorizable_conversion): Support boolean vectors.
3244 (free_stmt_vec_info): Allow patterns for statements with no lhs.
3245 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
3247 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3249 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
3250 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
3251 Cast mask to FP mode if required.
3252 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
3253 (vcond_mask_<mode><avx512fmaskmodelower>): New.
3254 (vcond_mask_<mode><sseintvecmodelower>): New.
3255 (vcond_mask_<mode><sseintvecmodelower>): New.
3256 (vcond_mask_v2div2di): New.
3257 (vcond_mask_<mode><sseintvecmodelower>): New.
3258 (vcond_mask_<mode><sseintvecmodelower>): New.
3260 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3262 * optabs-query.h (get_vcond_mask_icode): New.
3263 * optabs-tree.c (expand_vec_cond_expr_p): Use
3264 get_vcond_mask_icode for VEC_COND_EXPR with mask.
3265 * optabs.c (expand_vec_cond_mask_expr): New.
3266 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
3267 * optabs.def (vcond_mask_optab): New.
3268 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
3269 generate redundant comparison for COND_EXPR.
3270 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
3272 (vectorizable_condition): Likewise.
3273 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
3274 cond_exp with no embedded comparison.
3275 (vect_build_slp_tree_1): Likewise.
3277 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3279 * config/i386/sse.md (maskload<mode>): Rename to ...
3280 (maskload<mode><sseintvecmodelower>): ... this.
3281 (maskstore<mode>): Rename to ...
3282 (maskstore<mode><sseintvecmodelower>): ... this.
3283 (maskload<mode><avx512fmaskmodelower>): New.
3284 (maskstore<mode><avx512fmaskmodelower>): New.
3286 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3288 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
3289 (expand_MASK_STORE): Adjust to maskstore optab changes.
3290 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
3291 Adjust to maskload, maskstore optab changes.
3292 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
3293 * optabs.def (maskload_optab): Transform into convert optab.
3294 (maskstore_optab): Likewise.
3295 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
3296 can_vec_mask_load_store_p signature change.
3297 (predicate_mem_writes): Use boolean mask.
3298 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
3299 can_vec_mask_load_store_p signature change. Allow invariant masks.
3300 (vectorizable_operation): Ignore type precision for boolean vectors.
3302 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3304 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
3305 (const_vector_mask_from_tree): New.
3306 (const_vector_from_tree): Use const_vector_mask_from_tree
3307 for boolean vectors.
3308 * optabs-query.h (get_vec_cmp_icode): New.
3309 * optabs-tree.c (expand_vec_cmp_expr_p): New.
3310 * optabs-tree.h (expand_vec_cmp_expr_p): New.
3311 * optabs.c (vector_compare_rtx): Add OPNO arg.
3312 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
3313 (expand_vec_cmp_expr): New.
3314 * optabs.def (vec_cmp_optab): New.
3315 (vec_cmpu_optab): New.
3316 * optabs.h (expand_vec_cmp_expr): New.
3317 * tree-vect-generic.c (expand_vector_comparison): Add vector
3318 comparison optabs check.
3319 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
3320 operations for VF. Add mask type computation.
3321 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
3322 (vectorizable_comparison): New.
3323 (vect_analyze_stmt): Add vectorizable_comparison.
3324 (vect_transform_stmt): Likewise.
3325 (vect_init_vector): Support boolean vector invariants.
3326 (vect_get_vec_def_for_operand): Add VECTYPE arg.
3327 (vectorizable_condition): Directly provide vectype for invariants
3329 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
3330 (enum vect_var_kind): Add vect_mask_var.
3331 (enum stmt_vec_info_type): Add comparison_vec_info_type.
3332 (vectorizable_comparison): New.
3333 (vect_get_vec_def_for_operand): Add VECTYPE arg.
3334 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
3335 (vect_create_destination_var): Likewise.
3336 * tree-vect-patterns.c (check_bool_pattern): Check fails
3337 if we can vectorize comparison directly.
3338 (search_type_for_mask): New.
3339 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
3340 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
3341 comparison statements.
3342 (vect_get_constant_vectors): Support boolean vector constants.
3343 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
3344 (ix86_expand_int_vec_cmp): New.
3345 (ix86_expand_fp_vec_cmp): New.
3346 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
3347 op_true and op_false.
3348 (ix86_int_cmp_code_to_pcmp_immediate): New.
3349 (ix86_fp_cmp_code_to_pcmp_immediate): New.
3350 (ix86_cmp_code_to_pcmp_immediate): New.
3351 (ix86_expand_mask_vec_cmp): New.
3352 (ix86_expand_fp_vec_cmp): New.
3353 (ix86_expand_int_sse_cmp): New.
3354 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
3355 (ix86_expand_int_vec_cmp): New.
3356 (ix86_get_mask_mode): New.
3357 (TARGET_VECTORIZE_GET_MASK_MODE): New.
3358 * config/i386/sse.md (avx512fmaskmodelower): New.
3359 (vec_cmp<mode><avx512fmaskmodelower>): New.
3360 (vec_cmp<mode><sseintvecmodelower>): New.
3361 (vec_cmpv2div2di): New.
3362 (vec_cmpu<mode><avx512fmaskmodelower>): New.
3363 (vec_cmpu<mode><sseintvecmodelower>): New.
3364 (vec_cmpuv2div2di): New.
3366 2015-11-10 Richard Biener <rguenther@suse.de>
3368 PR tree-optimization/68240
3369 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
3371 (visit_phi): For PHIs with just a single executable edge
3372 take its value directly.
3373 (expressions_equal_p): Handle VN_TOP properly.
3375 2015-11-10 Richard Biener <rguenther@suse.de>
3377 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
3378 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
3381 2015-11-10 Richard Biener <rguenther@suse.de>
3383 PR tree-optimization/56118
3384 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
3385 cost favor vectorized version.
3387 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3389 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
3390 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
3391 (neg_not_op): New code attribute.
3393 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3395 * ifcvt.c (noce_try_inverse_constants): New function.
3396 (noce_process_if_block): Call it.
3397 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
3398 * optabs.def (negcc_optab, notcc_optab): Declare.
3399 * optabs.c (emit_conditional_neg_or_complement): New function.
3400 * doc/tm.texi (Standard Names): Document negcc, notcc names.
3402 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3404 PR rtl-optimization/68236
3405 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
3406 if insn_queue doesn't exist.
3407 (haifa_sched_finish): Reset insn_queue to NULL.
3409 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
3411 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
3412 (build_def_use): Initialize terminated_this_insn.
3413 (find_best_rename_reg): Pick and check register from the tied chain.
3414 (regrename_do_replace): Mark head as renamed.
3415 (struct du_head *terminated_this_insn). New static variable.
3416 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
3417 * regrename.h (struct du_head): Add tied_chain, renamed members.
3419 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3422 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
3425 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3428 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
3429 not promote the mode for aggregate types.
3431 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3433 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
3434 * omp-low.c (build_oacc_routine_dims): New.
3436 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3438 * config/rs6000/constraints.md (wF constraint): New constraints
3439 for power9/toc fusion.
3440 (wG constraint): Likewise.
3442 * config/rs6000/predicates.md (u6bit_cint_operand): New
3443 predicate, recognize 0..63.
3444 (upper16_cint_operand): New predicate for power9 and toc fusion.
3445 (fpr_reg_operand): Likewise.
3446 (toc_fusion_or_p9_reg_operand): Likewise.
3447 (toc_fusion_mem_raw): Likewise.
3448 (toc_fusion_mem_wrapped): Likewise.
3449 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
3451 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
3453 (fusion_addis_mem_combo_load): Add support for power9 fusion of
3454 floating point loads, floating point stores, and gpr stores.
3455 (fusion_addis_mem_combo_store): Likewise.
3456 (fusion_offsettable_mem_operand): Likewise.
3458 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
3459 (emit_fusion_load_store): Likewise.
3460 (fusion_p9_p): Likewise.
3461 (expand_fusion_p9_load): Likewise.
3462 (expand_fusion_p9_store): Likewise.
3463 (emit_fusion_p9_load): Likewise.
3464 (emit_fusion_p9_store): Likewise.
3465 (fusion_wrap_memory_address): Likewise.
3467 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
3468 elements for power9 fusion.
3469 (rs6000_debug_print_mode): Rework debug information to print more
3470 information about fusion.
3471 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
3472 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
3473 offsettable memory address.
3474 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
3475 (emit_fusion_gpr_load): Move most of the code from
3476 emit_fusion_gpr_load into emit_fusion-addis that handles both
3477 power8 and power9 fusion.
3478 (emit_fusion_addis): Likewise.
3479 (emit_fusion_load_store): Likewise.
3480 (fusion_wrap_memory_address): Add support for TOC fusion.
3481 (fusion_split_address): Likewise.
3482 (fusion_p9_p): Add support for power9 fusion.
3483 (expand_fusion_p9_load): Likewise.
3484 (expand_fusion_p9_store): Likewise.
3485 (emit_fusion_p9_load): Likewise.
3486 (emit_fusion_p9_store): Likewise.
3488 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
3489 new instructions in ISA 3.0.
3490 (TARGET_CTZ): Likewise.
3491 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
3492 (TARGET_TOC_FUSION_FP): Likewise.
3494 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
3496 (UNSPEC_FUSION_ADDIS): Likewise.
3497 (QHSI mode iterator): New iterator for power9 fusion.
3498 (GPR_FUSION): Likewise.
3499 (FPR_FUSION): Likewise.
3500 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
3501 (umod<mode>3): Likewise.
3502 (divmod peephole): Likewise.
3503 (udivmod peephole): Likewise.
3504 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
3506 (ctz<mode>2_h): Likewise.
3507 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
3508 (ashdi3_extswsli_dot): Likewise.
3509 (ashdi3_extswsli_dot2): Likewise.
3510 (power9 fusion splitter): New power9/toc fusion support.
3511 (toc_fusionload_<mode>): Likewise.
3512 (toc_fusionload_di): Likewise.
3513 (fusion_gpr_load_<mode>): Update predicate function.
3514 (power9 fusion peephole2s): New power9/toc fusion support.
3515 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
3516 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
3517 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3518 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3519 (fusion_p9_<mode>_constant): Likewise.
3521 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
3523 * optabs.c (prepare_libcall_arg): New function.
3524 (expand_fixed_convert): Add call to prepare_libcall_arg.
3526 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
3528 * sched-int.h (dump_rgn_dependencies_dot): Declare
3529 * sched-rgn.c (dump_rgn_dependencies_dot): New function
3530 * print-rtl.h (print_insn): Add prototype
3532 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
3533 * common.opt (-fsched-verbose): Set default value to 1.
3534 * invoke.texi (-fsched-verbose): Update the option's description.
3536 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3538 * config/visium/visium.h (PRINT_OPERAND): Delete.
3539 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3540 (PRINT_OPERAND_ADDRESS): Likewise.
3541 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
3543 (visium_print_operand_punct_valid_p): ...this. New function.
3544 (TARGET_PRINT_OPERAND): Define to...
3545 (print_operand): Rename to...
3546 (visium_print_operand): ...this.
3547 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
3548 (visium_output_address): Rename to...
3549 (visium_print_operand_address): ...this.
3550 (print_operand_address): Delete.
3552 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3555 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
3556 Check that the type of the first operand is an aggregate type.
3558 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3560 * omp-low.c: Fix some OpenACC comment typos.
3561 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
3562 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
3563 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
3565 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
3567 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
3569 2015-11-09 Jeff Law <law@redhat.com>
3571 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
3572 being in gimple/ssa form. Remove redundant check for SSA_NAME.
3575 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3576 Peter Bergner <bergner@vnet.ibm.com>
3578 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
3580 (-mpower9-vector): Likewise.
3581 (-mpower9-dform): Likewise.
3582 (-mpower9-minmax): Likewise.
3583 (-mtoc-fusion): Likewise.
3584 (-mmodulo): Likewise.
3585 (-mfloat128-hardware): Likewise.
3587 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
3588 mask for ISA 3.0 (power9).
3589 (POWERPC_MASKS): Add new ISA 3.0 switches.
3590 (power9 cpu): Add power9 cpu.
3592 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
3593 (ASM_CPU_SPEC): Likewise.
3594 (EXTRA_SPECS): Likewise.
3596 * config/rs6000/rs6000-opts.h (enum processor_type): Add
3599 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
3600 (rs6000_debug_reg_global): Add support for power9 fusion.
3601 (rs6000_setup_reg_addr_masks): Cache mode size.
3602 (rs6000_option_override_internal): Until real power9 tuning is
3603 added, use -mtune=power8 for -mcpu=power9.
3604 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
3605 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
3606 of Altivec registers.
3607 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
3608 (rs6000_loop_align): Add support for power9 cpu.
3609 (rs6000_file_start): Likewise.
3610 (rs6000_adjust_cost): Likewise.
3611 (rs6000_issue_rate): Likewise.
3612 (insn_must_be_first_in_group): Likewise.
3613 (insn_must_be_last_in_group): Likewise.
3614 (force_new_group): Likewise.
3615 (rs6000_register_move_cost): Likewise.
3616 (rs6000_opt_masks): Likewise.
3618 * config/rs6000/rs6000.md (cpu attribute): Add power9.
3619 * config/rs6000/rs6000-tables.opt: Regenerate.
3621 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3622 _ARCH_PWR9 if power9 support is available.
3624 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
3625 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
3627 * configure.ac: Determine if the assembler supports the ISA 3.0
3629 * config.in (HAVE_AS_POWER9): Likewise.
3630 * configure: Regenerate.
3632 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
3635 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3637 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
3638 Remove integer CONST_DOUBLE handling. It should never occur.
3640 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3643 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
3644 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
3645 Delete VOIDmode case. Assert that mode is not VOIDmode.
3646 * config/aarch64/predicates.md (const0_operand): Remove const_double
3649 2015-11-09 Martin Liska <mliska@suse.cz>
3651 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
3652 body_info release function.
3653 * ipa-prop.c (ipa_release_body_info): New function.
3654 (ipa_analyze_node): Call the function.
3655 (ipa_node_params::~ipa_node_params): Release known_csts.
3656 * ipa-prop.h (ipa_release_body_info): Declare.
3658 2015-11-09 Martin Liska <mliska@suse.cz>
3660 * gcc.c (record_temp_file): Release name string.
3661 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
3662 * lra-lives.c (free_live_range_list): Utilize
3663 lra_live_range_pool for allocation and deallocation.
3664 (create_live_range): Likewise.
3665 (copy_live_range): Likewise.
3666 (lra_merge_live_ranges): Likewise.
3667 (remove_some_program_points_and_update_live_ranges): Likewise.
3668 (lra_create_live_ranges_1): Release point_freq_vec that can
3669 be not freed from previous iteration of the function.
3670 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
3671 * tree-sra.c (sra_deinitialize): Release all vectors in
3673 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
3674 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
3675 Release edge_info for a removed edge.
3676 (thread_through_all_blocks): Free region vector.
3677 * tree-ssa.h (free_dom_edge_info): Declare function extern.
3679 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
3681 * optabs.c (expand_vec_cond_expr): Always get sign from type.
3682 * tree.c (wide_int_to_tree): Support negative values for boolean.
3683 (build_nonstandard_boolean_type): Use signed type for booleans.
3685 2015-11-09 Richard Biener <rguenther@suse.de>
3687 PR tree-optimization/68248
3688 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
3690 2015-11-09 Richard Biener <rguenther@suse.de>
3692 PR tree-optimization/56118
3693 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
3694 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
3695 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
3697 (vect_slp_analyze_data_ref_dependences): Instead of computing
3698 all dependences of the region DRs just analyze the code motions
3699 SLP vectorization will perform. Remove SLP instances that
3700 cannot have their store/load motions applied.
3701 (vect_analyze_data_refs): Allow DRs without a vectype
3702 in BB vectorization.
3704 2015-11-09 Julian Brown <julian@codesourcery.com>
3706 * final.c (output_asm_insn): Pass VOIDmode to output_address.
3707 (output_address): Add MODE argument. Pass to print_operand_address
3709 * targhooks.c (default_print_operand_address): Add MODE argument.
3710 * targhooks.h (default_print_operand_address): Update prototype.
3711 * output.h (output_address): Update prototype.
3712 * target.def (print_operand_address): Add MODE argument.
3713 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
3715 (print_operand): Pass access mode to output_address.
3716 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
3718 (mcore_print_operand): Update calls to mcore_print_operand_address.
3719 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
3721 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
3723 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
3725 (tilegx_print_operand): Don't set above global. Update calls to
3727 (tilegx_print_operand_address): Add MODE argument. Use instead of
3728 output_memory_reference_mode global.
3729 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
3730 (frv_print_operand): Pass mode to frv_print_operand_address calls.
3731 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
3733 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
3734 (cris_print_operand): Pass mode to output_address calls.
3735 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
3736 * config/aarch64/aarch64.h (aarch64_print_operand)
3737 (aarch64_print_operand_address): Remove prototypes.
3738 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
3740 (aarch64_print_operand): Make static. Update calls to output_address.
3741 (aarch64_print_operand_address): Add MODE argument. Use instead of
3742 aarch64_memory_reference_mode global.
3743 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
3745 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3746 Delete macro definitions.
3747 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
3748 * config/xtensa/xtensa.c (print_operand): Pass mode in
3749 output_address calls.
3750 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
3752 (h83000_print_operand): Update calls to h8300_print_operand_address
3754 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
3755 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
3757 (tilepro_print_operand): Pass mode to output_address.
3758 (tilepro_print_operand_address): Add MODE argument. Use instead of
3759 output_memory_reference_mode.
3760 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
3761 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
3762 to output_address calls.
3763 (nvptx_print_operand_address): Add MODE argument.
3764 * config/alpha/alpha.c (print_operand): Pass mode argument in
3765 output_address calls.
3766 * config/m68k/m68k.c (print_operand): Pass mode argument in
3767 output_address call.
3768 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
3769 (avr_print_operand): Update calls to avr_print_operand_address.
3770 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
3771 argument. Update calls to output_address.
3772 (sparc_print_operand): Pass mode to output_address.
3773 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
3775 (iq2000_print_operand): Pass mode in output_address calls.
3776 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
3778 (xstormy16_print_operand): Pass mode to
3779 xstormy16_print_operand_address calls.
3780 * config/mips/mips.c (mips_print_operand): Update calls to
3782 (mips_print_operand_address): Add MODE argument.
3783 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
3785 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
3786 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
3788 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
3789 (rx_print_operand): Update calls to output_address,
3790 rx_print_operand_address.
3791 * config/nds32/nds32.c (nds32_print_operand): Update calls to
3793 (nds32_print_operand_address): Add MODE argument.
3794 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
3795 output_address calls.
3796 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
3797 output_address call.
3798 (c6x_print_address_operand): Update calls to output_address.
3799 (c6x_print_operand_address): Pass mode to above.
3800 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
3801 (v850_print_operand): Pass mode to v850_print_operand_address,
3803 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
3804 (mmix_print_operand): Pass mode in output_address calls.
3805 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
3806 (sh_print_operand): Pass mem mode to output_address,
3807 sh_print_operand_address.
3808 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
3809 (cr16_print_operand): Pass mode to output_address,
3810 cr16_print_operand_address.
3811 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
3813 * config/microblaze/microblaze.c (print_operand): Pass mode to
3815 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
3817 (nios2_print_operand_address): Add MODE argument. Update call to
3818 nios2_print_operand_address.
3819 * config/s390/s390.c (print_operand): Pass mode to output_address.
3820 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
3821 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
3823 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
3824 Use instead of output_memory_reference_mode.
3825 (output_memory_reference_mode): Delete global.
3826 (arm_print_operand): Pass mem mode to output_address.
3827 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
3828 (m32r_print_operand): Pass mode to output_address.
3829 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
3831 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
3832 * config/i386/i386.c (ix86_print_operand): Pass mode to
3833 output_address calls.
3834 (ix86_print_operand_address): Add MODE argument.
3836 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3839 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
3840 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
3841 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
3842 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3844 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3846 PR rtl-optimization/67749
3847 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
3848 case before emitting the two blocks. Instead modify the register
3849 in the corresponding final insn of the basic block.
3851 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3853 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
3856 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
3858 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
3859 HAVE_INITFINI_ARRAY_SUPPORT.
3860 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
3862 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
3863 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
3864 Don't check HAVE_AS_SPARC_NOBITS.
3865 Heed SECTION_NOTYPE.
3867 * configure: Regenerate.
3868 * config.in: Regenerate.
3870 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3873 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
3875 2015-11-09 Richard Henderson <rth@redhat.com>
3877 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
3878 __SEG_GS, __SEG_TLS.
3879 (ix86_register_pragmas): Register address spaces __seg_fs,
3880 __seg_gs, __seg_tls.
3881 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
3882 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
3883 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
3884 * config/i386/i386.c (ix86_decompose_address): Likewise.
3885 (ix86_legitimate_address_p): Likewise.
3886 (memory_address_length): Likewise. Check mem address space too.
3887 (ix86_print_operand): Use ix86_print_operand_address_as.
3888 (ix86_print_operand_address_as): Rename from
3889 ix86_print_operand_address, add new addr_space_t parameter.
3890 Validate that either the parameter or the ix86_address segment
3891 is default address space. Handle ADDR_SPACE_SEG_TLS.
3892 (ix86_print_operand_address): New.
3893 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
3894 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
3895 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
3896 (ix86_addr_space_zero_address_valid): New.
3897 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3898 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
3899 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
3900 * config/i386/predicates.md (address_no_seg_operand): Likewise.
3901 (vsib_address_operand): Likewise.
3902 (address_mpx_no_base_operand): Likewise.
3903 (address_mpx_no_index_operand): Likewise.
3904 * doc/extend.texi (x86 Named Address Spaces): New section.
3906 * config/i386/i386.c (ix86_check_no_addr_space): New.
3907 (decide_alg): Add have_as parameter.
3908 (alg_usable_p): Likewise; disable rep algorithms if set.
3909 (ix86_expand_set_or_movmem): Notice if either MEM has a
3910 non-default address space.
3911 (ix86_expand_strlen): Likewise.
3912 * config/i386/i386.md (strmov, strset): Likewise.
3913 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
3914 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
3915 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
3916 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
3917 *cmpstrnqi_1, *strlenqi_1): Likewise.
3919 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
3920 (*movabs<mode>_2): Likewise.
3922 * dwarf2out.c (modified_type_die): Pass the address space number
3923 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
3924 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
3925 * targhooks.c (default_addr_space_debug): New.
3926 * targhooks.h (default_addr_space_debug): Declare.
3927 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
3928 * doc/tm.texi: Rebuild.
3930 * gimple.c (check_loadstore): Return false when 0 is a valid address.
3931 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
3932 null when 0 is valid in the source address space.
3933 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3934 * targhooks.c (default_addr_space_zero_address_valid): New.
3935 * targhooks.h (default_addr_space_zero_address_valid): Declare.
3936 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
3937 * doc/tm.texi: Rebuild.
3939 * cselib.c (add_mem_for_addr): Compare address spaces when
3941 (cselib_lookup_mem): Likewise.
3942 * fold-const.c (operand_equal_p): Check address spaces of
3943 pointer types before checking integer constants.
3946 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
3947 the correct type for the base.
3949 2015-11-09 Jeff Law <law@redhat.com>
3951 * tree-into-ssa.c (names_to_release): No longer static.
3952 * tree-into-ssa.h (names_to_release): Declare.
3953 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
3954 (release_free_names_and_compact_live_names): New function extracted
3955 from pass_release_ssa_names::execute.
3956 (pass_release_ssa_names::execute): Use it.
3958 2015-11-09 Alan Modra <amodra@gmail.com>
3960 * gensupport.c (add_mnemonic_string): Make len param a size_t.
3961 (gen_mnemonic_setattr): Make "size" var a size_t. Use
3962 obstack_blank_fast to shrink obstack. Cast obstack_next_free
3965 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
3967 PR rtl-optimization/68182
3968 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
3969 branch with only one successor just like unconditional branches.
3971 2015-11-08 Jeff Law <law@redhat.com>
3973 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
3974 non-FSM path has no edges marked with EDGE_DFS_BACK.
3975 (ssa_redirect_edges): No longer call mark_loop_for_removal.
3976 (thread_single_edge, def_split_header_continue_p): Remove.
3977 (bb_ends_with_multiway_branch): Likewise.
3978 (thread_through_loop_header): Remove cases of threading from
3979 latch through the header. Simplify knowing we won't thread
3981 (thread_through_all_blocks): Simplify knowing that only the FSM
3982 threader needs to handle backedges.
3984 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
3986 * doc/extend.texi (type attributes): Document scalar_storage_order.
3987 (Structure-Packing Pragmas): Rename into...
3988 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
3989 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
3990 (Warnings): Document -Wno-scalar-storage-order.
3991 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
3992 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
3993 extract_bit_field and store_bit_field.
3994 (initialize_argument_information): Adjust call to store_expr.
3995 (load_register_parameters): Adjust call to extract_bit_field.
3996 * expmed.c (check_reverse_storage_order_support): New function.
3997 (check_reverse_float_storage_order_support): Likewise.
3998 (flip_storage_order): Likewise.
3999 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
4000 of the value if it is true. Pass REVERSE to recursive call after
4001 adjusting the target offset.
4002 Do not use extraction or movstrict instruction if REVERSE is true.
4003 Pass REVERSE to store_fixed_bit_field.
4004 (store_bit_field): Add REVERSE parameter and pass to it to above.
4005 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
4006 store_split_bit_field and store_fixed_bit_field_1.
4007 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
4008 order of the value if it is true and adjust the target offset.
4009 (store_split_bit_field): Add REVERSE parameter and pass it to
4010 store_fixed_bit_field. Adjust the target offset if it is true.
4011 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
4012 of the value if it is true. Pass REVERSE to recursive call after
4013 adjusting the target offset.
4014 Do not use extraction or subreg instruction if REVERSE is true.
4015 Pass REVERSE to extract_fixed_bit_field.
4016 (extract_bit_field): Add REVERSE parameter and pass to it to above.
4017 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
4018 extract_split_bit_field and extract_fixed_bit_field_1.
4019 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
4020 order of the value if it is true and adjust the target offset.
4021 (extract_split_bit_field): Add REVERSE parameter and pass it to
4022 extract_fixed_bit_field. Adjust the target offset if it is true.
4023 * expmed.h (flip_storage_order): Declare.
4024 (store_bit_field): Adjust prototype.
4025 (extract_bit_field): Likewise.
4026 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
4027 (emit_group_store): Adjust call to store_bit_field.
4028 (copy_blkmode_from_reg): Likewise.
4029 (copy_blkmode_to_reg): Likewise.
4030 (write_complex_part): Likewise.
4031 (read_complex_part): Likewise.
4032 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
4033 that it isn't true if the target is a register.
4034 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
4035 and flip the storage order of the value.
4036 <BIT_IOR_EXPR>: Flip the storage order of the value.
4037 (get_bit_range): Adjust call to get_inner_reference.
4038 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
4039 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
4040 with reverse storage order.
4041 (store_expr_with_bounds): Add REVERSE parameter and pass it to
4042 recursive calls and call to store_bit_field. Force the value into a
4043 register if it is true and then flip the storage order of the value.
4044 (store_expr): Add REVERSE parameter and pass it to above.
4045 (categorize_ctor_elements_1): Adjust call to
4046 initializer_constant_valid_p.
4047 (store_constructor_field): Add REVERSE parameter and pass it to
4048 recursive calls and call to store_field.
4049 (store_constructor): Add REVERSE parameter and pass it to calls to
4050 store_constructor_field and store_expr. Set it to true for an
4051 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
4052 (store_field): Add REVERSE parameter and pass it to recursive calls
4053 and calls to store_expr and store_bit_field. Temporarily flip the
4054 storage order of the value with record type and integral mode and
4055 adjust the shift if it is true.
4056 (get_inner_reference): Add PREVERSEP parameter and set it to true
4057 upon encoutering a reference with reverse storage order.
4058 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
4059 (expand_constructor): Adjust call to store_constructor.
4060 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
4061 of the union type to store_expr in the MEM case and assert that it
4062 isn't set in the REG case. Adjust call to store_field.
4063 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
4064 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
4065 get_inner_reference and extract_bit_field. Temporarily flip the
4066 storage order of the value with record type and integral mode and
4067 adjust the shift if it is true. Flip the storage order of the value
4068 at the end if it is true.
4069 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
4070 get_inner_reference. Do not fetch an inner reference if it is true.
4071 * expr.h (store_expr_with_bounds): Ajust prototype.
4072 (store_expr): Likewise.
4073 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
4074 REF_REVERSE_STORAGE_ORDER on the reference according to it.
4075 (optimize_bit_field_compare): Deal with reverse storage order.
4076 Adjust calls to get_inner_reference and make_bit_field_ref.
4077 (decode_field_reference): Add PREVERSEP parameter and adjust call to
4078 get_inner_reference.
4079 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
4080 to decode_field_reference and make_bit_field_ref.
4081 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
4082 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
4083 (fold_comparison): Adjust call to get_inner_reference.
4084 (split_address_to_core_and_offset): Adjust call to
4085 get_inner_reference.
4086 * gimple-expr.c (useless_type_conversion_p): Return false for array
4087 types with different TYPE_REVERSE_STORAGE_ORDER flag.
4088 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
4089 REF_REVERSE_STORAGE_ORDER flag.
4090 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
4091 * output.h (assemble_real): Adjust prototype.
4092 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
4093 * stor-layout.c (finish_record_layout): Propagate the
4094 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
4095 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
4096 (TYPE_SATURATING): Adjust.
4097 (REF_REVERSE_STORAGE_ORDER): Document.
4098 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
4099 set it to true upon encoutering a reference with reverse storage order.
4100 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
4101 * tree-inline.c (remap_gimple_op_r): Propagate the
4102 REF_REVERSE_STORAGE_ORDER flag.
4103 (copy_tree_body_r): Likewise.
4104 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
4106 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
4107 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
4108 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4109 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
4110 REF_REVERSE_STORAGE_ORDER flag.
4111 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
4112 (gimple_canonical_types_compatible_p): Likewise.
4113 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
4114 (TYPE_SATURATING): Adjust.
4115 (REF_REVERSE_STORAGE_ORDER): New flag.
4116 (reverse_storage_order_for_component_p): New inline predicate.
4117 (storage_order_barrier_p): Likewise.
4118 (get_inner_reference): Adjust prototype.
4119 * varasm.c: Include expmed.h.
4120 (assemble_variable_contents): Adjust call to output_constant.
4121 (assemble_real): Add REVERSE parameter. Flip the storage
4122 order of the value if REVERSE is true.
4123 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
4124 (assemble_constant_contents): Adjust call to output_constant.
4125 (output_constant_pool_2): Adjust call to assemble_real.
4126 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
4127 TYPE_REVERSE_STORAGE_ORDER.
4128 (initializer_constant_valid_p): Add REVERSE parameter.
4129 (output_constant): Add REVERSE parameter.
4130 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
4131 <REAL_TYPE>: Adjust call to assemble_real.
4132 <COMPLEX_TYPE>: Pass it to recursive calls.
4133 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
4134 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
4135 (struct oc_local_state): Add REVERSE field.
4136 (output_constructor_array_range): Adjust calls to output_constant.
4137 (output_constructor_regular_field): Likewise.
4138 (output_constructor_bitfield): Adjust call to output_constructor.
4139 Flip the storage order of the value if REVERSE is true.
4140 (output_constructor): Add REVERSE parameter. Set it to true for an
4141 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
4142 output_constructor_bitfield.
4143 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
4144 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
4145 * builtins.c (get_object_alignment_2): Likewise.
4146 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
4147 and get_ref_base_and_extent.
4148 * dbxout.c (dbxout_expand_expr): Likewise.
4149 * dwarf2out.c (add_var_loc_to_decl): Likewise.
4150 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
4151 (loc_list_from_tree): Likewise.
4152 (fortran_common): Likewise.
4153 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
4154 get_ref_base_and_extent.
4155 (get_base_constructor): Likewise.
4156 (fold_const_aggregate_ref_1): Likewise.
4157 * gimple-laddress.c (pass_laddress::execute): Adjust call to
4158 get_inner_reference.
4159 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
4160 get_inner_reference and bail out on reverse storage order.
4161 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
4162 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
4163 build_ref_for_offset.
4164 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
4165 get_ref_base_and_extent.
4166 (ipa_polymorphic_call_context): Likewise.
4167 (extr_type_from_vtbl_ptr_store): Likewise.
4168 (check_stmt_for_type_change): Likewise.
4169 (get_dynamic_type): Likewise.
4170 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
4171 get_ref_base_and_extent.
4172 (compute_complex_assign_jump_func): Likewise.
4173 (get_ancestor_addr_info): Likewise.
4174 (compute_known_type_jump_func): Likewise.
4175 (determine_known_aggregate_parts): Likewise.
4176 (ipa_get_adjustment_candidate): Likewise.
4177 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
4178 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
4179 (build_ref_for_offset): Adjust prototype.
4180 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
4181 get_inner_reference.
4182 * tree-affine.c (tree_to_aff_combination): Adjust call to
4183 get_inner_reference.
4184 (get_inner_reference_aff): Likewise.
4185 * tree-data-ref.c (split_constant_offset_1): Likewise.
4186 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
4187 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
4188 get_inner_reference.
4189 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
4190 (dump_access): Print new fields.
4191 (create_access): Adjust call to get_ref_base_and_extent and set the
4192 REVERSE flag according to the result.
4193 (completely_scalarize_record): Set the REVERSE flag.
4194 (scalarize_elem): Add REVERSE parameter.
4195 (build_access_from_expr_1): Preserve storage order barriers.
4196 (build_accesses_from_assign): Likewise.
4197 (build_ref_for_offset): Add REVERSE parameter and set the
4198 REF_REVERSE_STORAGE_ORDER flag accordingly.
4199 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
4200 the REF_REVERSE_STORAGE_ORDER flag if there are components.
4201 (analyze_access_subtree): Likewise.
4202 (create_artificial_child_access): Set the REVERSE flag.
4203 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
4204 (turn_representatives_into_adjustments): Propagate REVERSE flag.
4205 (ipa_sra_check_caller): Adjust call to get_inner_reference.
4206 * tree-ssa-alias.c (ao_ref_base): Adjust call to
4207 get_ref_base_and_extent.
4208 (aliasing_component_refs_p): Likewise.
4209 (stmt_kills_ref_p_1): Likewise.
4210 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4211 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
4212 Return true if reverse storage order.
4213 <BIT_FIELD_REF>: Likewise.
4214 <COMPONENT_REF>: Likewise.
4215 <ARRAY_REF>: Likewise.
4216 <ARRAY_RANGE_REF>: Likewise.
4217 (split_address_cost): Likewise. Bail out if reverse storage order.
4218 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
4219 get_inner_reference. Bail out if reverse storage order.
4220 (bswap_replace): Adjust call to get_inner_reference.
4221 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
4222 the REF_REVERSE_STORAGE_ORDER flag.
4223 <BIT_FIELD_REF>: Likewise.
4224 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
4226 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
4227 to the REF_REVERSE_STORAGE_ORDER flag.
4228 <BIT_FIELD_REF>: Likewise.
4229 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
4230 (contains_storage_order_barrier_p): New predicate.
4231 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
4232 Punt on storage order barriers if necessary.
4233 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
4234 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
4235 call to get_ref_base_and_extent.
4236 (do_structure_copy): Likewise.
4237 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
4238 get_inner_reference.
4239 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
4240 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
4241 * ubsan.c (instrument_bool_enum_load): Likewise.
4242 (instrument_object_size): Likewise.
4243 * var-tracking.c (track_expr_p): Adjust call to
4244 get_ref_base_and_extent.
4245 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
4246 get_inner_reference.
4247 * config/s390/s390.c (s390_expand_atomic): Adjust call to
4249 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
4251 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
4253 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
4255 * config/sparc/sparc.opt (mfix-at697f): Add final period.
4257 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4259 PR rtl-optimization/67864
4260 * common/config/i386/i386-common.c (ix86_option_optimization_table)
4261 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
4264 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4266 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
4269 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4271 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
4272 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
4274 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4276 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
4277 * internal-fn.c: Don't undef it here.
4278 * tree-core.h: Likewise.
4280 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4282 * builtins.c (fold_builtin_nan): Delete.
4283 (fold_builtin_memcmp): Remove case where both arguments are constant.
4284 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
4285 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
4286 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
4287 * fold-const-call.c: Include fold-const.h.
4288 (host_size_t_cst_p): New function.
4289 (build_cmp_result, fold_const_builtin_nan): Likewise.
4290 (fold_const_call_1): New function, split out from...
4291 (fold_const_call): ...here (for all three interfaces). Handle
4292 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
4294 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4296 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
4297 (fold_builtin_1): Don't call them.
4298 * fold-const-call.c: Include tm.h.
4299 (fold_const_call_ss): New variant for integer-to-integer folds.
4300 (fold_const_call): Call it.
4302 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4304 * builtins.c (fold_builtin_classify): Move constant cases to...
4305 * fold-const-call.c (fold_const_call_ss): ...here.
4307 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4309 * builtins.h (c_getstr): Move to...
4310 * fold-const.h (c_getstr): ...here.
4311 * builtins.c (c_getstr): Move to...
4312 * fold-const.c (c_getstr): ...here.
4314 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4316 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
4317 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
4319 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4321 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
4322 the dominance info; free it if we can't.
4323 (pass_call_cdce::execute): Don't free the dominance info here.
4325 2015-11-06 Jeff Law <law@redhat.com>
4327 * tree-ssa-threadedge.c (dummy_simplify): Remove.
4328 (thread_around_empty_blocks): Remove backedge_seen_p argument.
4329 If we thread to a backedge, then return false. Update recursive
4330 call to eliminate backedge_seen_p argument.
4331 (thread_through_normal_block): Remove backedge_seen_p argument.
4332 Remove backedge_seen_p argument from calls to
4333 thread_around_empty_blocks. Remove checks on backedge_seen_p.
4334 If we thread to a backedge, then return 0.
4335 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
4336 pass it to thread_through_normal_block or thread_through_empty_blocks.
4337 For joiner handling, if we see a backedge, do not try normal
4340 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4342 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
4343 * graphite-poly.c (new_scop): Initialize original_schedule.
4344 (free_scop): Free original_schedule.
4345 * graphite-poly.h (struct scop): Add field original_schedule.
4346 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
4347 (build_poly_scop): Call build_scop_original_schedule.
4349 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4351 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
4352 (build_pbb_minimal_scattering_polyhedrons): New.
4353 (build_scop_scattering): Remove.
4354 (build_scop_minimal_scattering): New.
4355 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
4356 (build_poly_scop): Call build_scop_minimal_scattering.
4358 2015-11-06 Jeff Law <law@redhat.com>
4360 * cfg-flags.def (IGNORE): New edge flag.
4361 * tree-vrp.c (identify_jump_threads): Mark and clear edges
4362 scheduled for removal with EDGE_IGNORE around call into
4363 jump threader. Do no thread across edges with EDGE_IGNORE,
4364 but do allow threading across those with EDGE_DFS_BACK.
4366 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
4368 * doc/md.texi (multi-alternative constraints): Don't document
4369 alternatives inherently tied to reload for the user documentation.
4371 2015-11-06 Michael Collison <michael.collison@linaro.org>
4372 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4375 2015-08-01 Michael Collison <michael.collison@linaro.org
4376 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4378 * config/arm/arm.md (*arm_smin_cmp): New pattern.
4379 (*arm_umin_cmp): Likewise.
4381 2015-11-06 Jakub Jelinek <jakub@redhat.com>
4383 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
4384 * omp-low.c (check_omp_nesting_restrictions): Update for the
4385 various new OpenMP 4.5 nesting restrictions, clarified
4386 nesting glossary, closely nested region relationship clarified
4387 to mean explicit or implicit parallel regions (target/teams),
4388 use %</%> or %qs where appropriate.
4390 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4391 Sebastian Pop <s.pop@samsung.com>
4393 * graphite-scop-detection.c (loop_is_valid_scop): Call
4394 optimize_loop_nest_for_speed_p.
4396 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4397 Sebastian Pop <s.pop@samsung.com>
4399 * graphite-optimize-isl.c (optimize_isl): Call
4400 isl_options_set_schedule_maximize_band_depth.
4402 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4403 Sebastian Pop <s.pop@samsung.com>
4405 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
4406 and exit edges should not be a part of irreducible loop.
4407 (scop_detection::can_represent_loop_1): Loops should not be
4409 (scop_detection::harmful_stmt_in_region): All the basic block
4410 should belong to reducible loops.
4412 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
4414 * config/aarch64/aarch64-simd-builtins.def: Update builtins
4415 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
4416 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
4417 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
4418 (aarch64_tbx4v8qi): Rename to...
4419 aarch64_tbx4<mode>): ... this.
4420 (aarch64_qtbl3<mode>): New pattern.
4421 (aarch64_qtbx3<mode>): New pattern.
4422 (aarch64_qtbl4<mode>): New pattern.
4423 (aarch64_qtbx4<mode>): New pattern.
4424 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
4425 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
4426 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
4427 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
4428 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
4429 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
4430 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
4431 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
4434 2015-11-06 Mike Stump <mikestump@comcast.net>
4437 * dwarf2out.c (get_full_len): Return a value based upon the actual
4438 precision needed for the value.
4439 (add_const_value_attribute): Use a maximal wide-int for
4440 CONST_WIDE_INTs, not VOIDmode.
4441 (output_die): Don't ever output NULL with printf.
4443 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
4444 BLKmode nor VOIDmode values.
4446 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4448 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
4450 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
4451 * diagnostic-core.h (warning_at_rich_loc): New declaration.
4452 (error_at_rich_loc): New declaration.
4453 (permerror_at_rich_loc): New declaration.
4454 (inform_at_rich_loc): New declaration.
4455 * diagnostic-show-locus.c (adjust_line): Delete.
4456 (struct point_state): New struct.
4457 (class colorizer): New class.
4458 (class layout_point): New class.
4459 (class layout_range): New class.
4460 (struct line_bounds): New.
4461 (class layout): New class.
4462 (colorizer::colorizer): New ctor.
4463 (colorizer::~colorizer): New dtor.
4464 (layout::layout): New ctor.
4465 (layout::print_source_line): New method.
4466 (layout::print_annotation_line): New method.
4467 (layout::get_state_at_point): New method.
4468 (layout::get_x_bound_for_row): New method.
4469 (diagnostic_show_locus): Reimplement in terms of class layout.
4470 (diagnostic_print_caret_line): Delete.
4471 * diagnostic.c (diagnostic_initialize): Replace
4472 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
4473 (diagnostic_set_info_translated): Convert param from location_t
4474 to rich_location *. Eliminate calls to set_location on the
4475 message in favor of storing the rich_location ptr there.
4476 (diagnostic_set_info): Convert param from location_t to
4478 (diagnostic_build_prefix): Break out array into...
4479 (diagnostic_kind_color): New variable.
4480 (diagnostic_get_color_for_kind): New function.
4481 (diagnostic_report_diagnostic): Colorize the option_text
4482 using the color for the severity.
4483 (diagnostic_append_note): Update for change in signature of
4484 diagnostic_set_info.
4485 (diagnostic_append_note_at_rich_loc): New function.
4486 (emit_diagnostic): Update for change in signature of
4487 diagnostic_set_info.
4489 (inform_at_rich_loc): New function.
4490 (inform_n): Update for change in signature of diagnostic_set_info.
4491 (warning): Likewise.
4492 (warning_at): Likewise.
4493 (warning_at_rich_loc): New function.
4494 (warning_n): Update for change in signature of diagnostic_set_info.
4495 (pedwarn): Likewise.
4496 (permerror): Likewise.
4497 (permerror_at_rich_loc): New function.
4498 (error): Update for change in signature of diagnostic_set_info.
4499 (error_n): Likewise.
4500 (error_at): Likewise.
4501 (error_at_rich_loc): New function.
4502 (sorry): Update for change in signature of diagnostic_set_info.
4503 (fatal_error): Likewise.
4504 (internal_error): Likewise.
4505 (internal_error_no_backtrace): Likewise.
4506 (source_range::debug): New function.
4507 * diagnostic.h (struct diagnostic_info): Eliminate field
4508 "override_column". Add field "richloc".
4509 (struct diagnostic_context): Add field "colorize_source_p".
4510 (diagnostic_override_column): Delete.
4511 (diagnostic_set_info): Convert param from location_t to
4513 (diagnostic_set_info_translated): Likewise.
4514 (diagnostic_append_note_at_rich_loc): New function.
4515 (diagnostic_num_locations): New function.
4516 (diagnostic_expand_location): Get the location from the
4518 (diagnostic_print_caret_line): Delete.
4519 (diagnostic_get_color_for_kind): New declaration.
4520 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
4521 (error_cb): Update for change in signature of "error" callback.
4522 (fatal_at): Likewise.
4523 (warning_at): Likewise.
4524 * input.c (linemap_client_expand_location_to_spelling_point): New.
4525 * pretty-print.c (text_info::set_range): New method.
4526 (text_info::get_location): New method.
4527 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
4528 (struct text_info): Eliminate "locations" array in favor of
4529 "m_richloc", a rich_location *.
4530 (textinfo::set_location): Add a "caret_p" param, and reimplement
4531 in terms of a call to set_range.
4532 (textinfo::get_location): Eliminate inline implementation in favor of
4533 an out-of-line reimplementation.
4534 (textinfo::set_range): New method.
4535 * rtl-error.c (diagnostic_for_asm): Update for change in signature
4536 of diagnostic_set_info.
4537 * tree-diagnostic.c (default_tree_printer): Update for new
4538 "caret_p" param for textinfo::set_location.
4539 * tree-pretty-print.c (percent_K_format): Likewise.
4541 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4544 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4545 * config/aarch64/aarch64.c
4546 (aarch64_can_use_per_function_literal_pools_p): New.
4547 (aarch64_use_blocks_for_constant_p): Adjust declaration
4548 and use aarch64_can_use_function_literal_pools_p.
4549 (aarch64_select_rtx_section): Update.
4551 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4553 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
4554 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
4555 (arm_output_multireg_pop): Likewise.
4556 (output_move_double): Likewise.
4557 (output_move_quad): Likewise.
4558 (output_return_instruction): Likewise.
4559 (arm_print_operand): Remove support for %( and %. print modifiers.
4560 (arm_output_shift): Make unified asm.
4561 (arm_declare_function_name): Likewise.
4562 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
4563 (ASM_APP_OFF): Adjust.
4564 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
4565 (ASM_OUTPUT_REG_POP): Likewise.
4566 * config/arm/arm.md: Adjust uses of %., %(, %)
4567 * config/arm/sync.md: Likewise.
4568 * config/arm/thumb2.md: Likewise.
4569 * config/arm/ldmstm.md: Regenerate.
4570 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
4571 * doc/invoke.texi (masm-unified-syntax): Update documentation.
4573 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4575 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
4577 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4579 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
4580 add OEP_MATCH_SIDE_EFFECTS.
4581 * fold-const.c (operand_equal_p): Update documentation; handle
4582 OEP_MATCH_SIDE_EFFECTS.
4583 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
4584 OEP_MATCH_SIDE_EFFECTS.
4586 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
4587 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4589 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
4590 * config/aarch64/aarch64-protos.h: Declare.
4591 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
4593 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
4594 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
4595 code when applicable.
4596 * config/aarch64/aarch64.md: Added enum entries.
4597 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
4599 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4603 * ipa-polymorphic-call.c
4604 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
4605 issue when offset is out of range.
4606 (contains_type_p): Fix out of range check, clear dynamic flag.
4608 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
4610 * config.gcc (e6500): Fix cpu_is_64bit typo.
4612 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
4614 * tree-sra.c (completely_scalarize): Properly handle negative array
4615 indices using offset_int.
4617 2015-11-06 Richard Biener <rguenther@suse.de>
4619 * alloc-pool.h (object_allocator::allocate): Default-initialize
4622 2015-11-06 Richard Biener <rguenther@suse.de>
4624 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
4625 * lra.c (init_reg_info): Truncate copy_vec instead of
4626 re-allocating a new one and leaking the old.
4627 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
4629 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
4630 * postreload-gcse.c (free_mem): Free modify_mem_list and
4631 canon_modify_mem_list.
4633 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
4635 PR tree-optimization/68145
4636 * tree-vect-stmts.c (vectorizable_operation): Fix
4637 determination for booleans.
4639 2015-11-06 Tom de Vries <tom@codesourcery.com>
4641 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
4642 cond_jump, instead of split after last nondebug insn before cond_jump.
4643 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
4646 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4649 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
4650 subregs from accumulator and make sure it's a register.
4652 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
4654 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
4656 (reduc_uplus_<mode>): Remove.
4657 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
4658 loongson_extract_lo_<mode>.
4659 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
4660 reduc_smax_<mode>, reduc_smax_<mode>, use vec
4661 loongson_extract_lo_<mode>.
4662 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
4664 2015-11-06 Richard Biener <rguenther@suse.de>
4666 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
4668 (vect_stmt_in_region_p): Declare.
4669 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
4670 (destroy_bb_vec_info): Likewise.
4671 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
4672 (vect_get_and_check_slp_defs): Likewise.
4673 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
4674 (vect_slp_bb): Likewise.
4675 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
4676 in terms of vect_stmt_in_region_p.
4677 (vect_pattern_recog): Iterate over the BB region.
4678 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
4679 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
4680 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
4681 * config/i386/i386.c: Include gimple-iterator.h.
4682 * config/aarch64/aarch64.c: Likewise.
4684 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
4686 PR rtl-optimization/67753
4687 PR rtl-optimization/64164
4688 * function.c (assign_parm_setup_block): Avoid allocating a
4689 stack slot if we don't have an ABI-reserved one. Emit the
4690 copy to target_reg in the conversion seq if the copy from
4691 entry_parm is in it too. Don't use the conversion seq to copy
4692 a PARALLEL to a REG or a CONCAT.
4694 2015-11-06 Richard Biener <rguenther@suse.de>
4696 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
4699 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
4700 Thomas Schwinge <thomas@codesourcery.com>
4701 James Norris <jnorris@codesourcery.com>
4704 * gimplify.c (gimplify_scan_omp_clauses): Add support for
4705 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
4706 (gimplify_adjust_omp_clauses): Likewise.
4707 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
4708 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
4709 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
4710 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
4711 (omp_clause_code_name): Likewise.
4712 (walk_tree_1): Handle OMP_CLAUSE_TILE.
4713 * tree.h (OMP_TILE_LIST): New macro.
4715 2015-11-05 Martin Sebor <msebor@redhat.com>
4718 * doc/invoke.texi (-Wplacement-new): Document new option.
4720 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
4722 PR tree-optimization/65963
4723 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
4724 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
4726 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
4728 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
4729 (noce_convert_multiple_sets): Likewise.
4730 (noce_process_if_block): Call them.
4732 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
4734 * gimple-fold.c: Include omp-low.h.
4735 (fold_internal_goacc_dim): New.
4736 (gimple_fold_call): Call it.
4738 2015-11-05 Jakub Jelinek <jakub@redhat.com>
4739 Ilya Verbin <ilya.verbin@intel.com>
4742 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
4743 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
4744 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
4745 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
4746 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
4747 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
4748 (struct cgraph_simd_clone_arg): Adjust comment.
4749 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
4750 to GOMP_target_ext. Add num_teams and thread_limit arguments.
4751 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
4752 to GOMP_target_data_ext.
4753 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
4754 to GOMP_target_update_ext.
4755 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
4756 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
4757 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
4758 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
4759 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
4760 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
4761 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
4762 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
4763 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
4764 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
4765 * tree-core.h (enum omp_clause_schedule_kind): Add
4766 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
4767 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
4768 OMP_CLAUSE_SCHEDULE_LAST value.
4769 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
4770 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
4771 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
4772 OMP_FOR_CHECK. Remove comment.
4773 * tree-pretty-print.c (dump_omp_clause): Handle
4774 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
4775 Simplify. Print schedule clause modifiers.
4776 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
4777 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
4779 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
4780 (omp_default_clause): Tweak for
4781 private/firstprivate/is_device_ptr variables on target
4782 construct and use_device_ptr on target data.
4783 (omp_check_private): Likewise.
4784 (omp_notice_variable): For references check whether what it refers
4785 to has mappable type, rather than the reference itself.
4786 (omp_is_private): Diagnose linear iteration variables on non-simd
4788 (omp_no_lastprivate): Return true only for Fortran.
4789 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
4790 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
4791 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
4792 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
4793 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
4794 lastprivate and linear when combined with distribute. Gimplify
4795 variable low-bound for array reduction. Look through
4796 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
4798 (gimplify_adjust_omp_clauses_1): For implicit references to
4799 variables with reference type and when not ref to scalar or
4800 ref to pointer, map what they refer to using tofrom and
4801 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
4802 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
4803 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
4804 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
4805 Diagnose the same var on both firstprivate and lastprivate on
4806 distribute construct.
4807 (gimplify_omp_for): Fix up handling of predetermined
4808 lastprivate or linear iter vars when combined with distribute.
4809 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
4811 (gimplify_omp_workshare): Call optimize_target_teams.
4812 * omp-low.c (struct omp_region): Add sched_modifiers field.
4813 (struct omp_for_data): Likewise.
4814 (omp_any_child_fn_dumped): New variable.
4815 (extract_omp_for_data): Fill in sched_modifiers, and mask out
4816 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
4818 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
4819 bits of OMP_CLAUSE_SCHED_KIND.
4820 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
4821 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
4822 for array section reductions.
4823 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
4824 for distribute parallel for, if there are lastprivate clauses on the
4826 (lower_rec_input_clauses): Handle non-zero low-bound on array
4828 (lower_reduction_clauses): Likewise.
4829 (lower_send_clauses): Look through POINTER_PLUS_EXPR
4830 for array section reductions.
4831 (expand_parallel_call): Use nonmonotonic entrypoints for
4832 nonmonotonic: dynamic/guided.
4833 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
4834 child_fn if current_function_decl has assembler name set, but child_fn
4835 does not. Dump the header and IL of the child function when not in SSA
4837 (expand_omp_target): Likewise. Pass num_teams and thread_limit
4838 arguments to BUILT_IN_GOMP_TARGET.
4839 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4840 Initialize the extra _looptemp_ clause to fd->loop.n2.
4841 (expand_omp_for): Use nonmonotonic entrypoints for
4842 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
4843 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
4844 again if we have dumped any child functions.
4845 (lower_omp_for_lastprivate): Determine the right count variable
4846 for distribute simd, or distribute parallel for{, simd}.
4847 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
4848 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
4850 (simd_clone_clauses_extract): Handle variable step
4851 for references and arguments passed by reference.
4852 (simd_clone_mangle): Mangle ref/uval/val variable steps.
4853 (simd_clone_adjust_argument_types): Handle
4854 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
4855 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
4856 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
4857 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
4858 (simd_clone_linear_addend): New function.
4859 (simd_clone_adjust): Handle variable step like similarly
4860 to constant step, use simd_clone_linear_addend to determine
4861 the actual step at runtime.
4863 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
4865 * target.def (goacc.dim_limit): New hook.
4866 * targhooks.h (default_goacc_dim_limit): Declare.
4867 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
4868 * doc/tm.texi: Rebuilt.
4869 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
4870 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
4871 (default_goacc_dim_limit): New.
4872 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4873 (nvptx_goacc_dim_limit) New.
4874 (TARGET_GOACC_DIM_LIMIT): Override.
4875 * tree-vrp.c: Include omp-low.h, target.h.
4876 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
4879 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
4881 * tree-vect-generic.c (do_compare): Use -1 for true
4882 result instead of 1.
4884 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4886 * config/aarch64/aarch64.c
4887 (aarch64_can_use_per_function_literal_pools_p): New.
4888 (aarch64_use_blocks_for_constant_p): Adjust declaration
4889 and use aarch64_can_use_function_literal_pools_p.
4890 (aarch64_select_rtx_section): Update.
4892 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
4894 * targhooks.c (default_get_mask_mode): Use BLKmode in
4895 case target doesn't support required vector mode.
4896 * stor-layout.c (layout_type); Check for BLKmode.
4898 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
4899 Sebastian Pop <s.pop@samsung.com>
4901 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
4902 Remove use of parameter_rename_map.
4904 (copy_internal_parameters): Remove.
4905 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
4906 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
4907 (free_sese_info): Do not free parameter_rename_map.
4908 (set_rename): Do not use parameter_rename_map.
4909 (rename_uses): Update call to set_rename.
4910 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
4911 * sese.h (parameter_rename_map_t): Remove.
4912 (struct sese_info_t): Remove field parameter_rename_map.
4914 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
4915 Sebastian Pop <s.pop@samsung.com>
4917 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
4918 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
4919 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
4920 anonymous namespace.
4921 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
4922 (isl_id_for_pbb): Use a buffer of size 10.
4923 (isl_id_for_ssa_name): Same.
4924 * sese.c (set_rename): Add more dumps.
4926 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4928 * omp-low.c (struct omp_context): Remove reduction_map field.
4929 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
4930 (new_omp_context, delete_omp_context, scan_omp_target): Remove
4931 reduction_map handling.
4932 (lower_omp_target): Remove obsolete openacc reduction handling.
4934 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4936 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
4938 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4939 Cesar Philippidis <cesar@codesourcery.com>
4941 * config/nvptx/nvptx.c: Include gimple headers.
4942 (worker_red_size, worker_red_align, worker_red_name,
4943 worker_red_sym): New.
4944 (nvptx_option_override): Initialize worker reduction buffer.
4945 (nvptx_file_end): Write out worker reduction buffer var.
4946 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
4947 nvptx_expand_cmp_swap): New builtin expanders.
4948 (enum nvptx_builtins): New.
4949 (nvptx_builtin_decls): New.
4950 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
4951 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4952 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
4953 nvptx_lockless_update): New helpers.
4954 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
4955 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
4956 (nvptx_goacc_reduction): New.
4957 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
4958 TARGET_BUILTIN_DECL): Override.
4959 (TARGET_GOACC_REDUCTION): Override.
4961 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4962 Cesar Philippidis <cesar@codesourcery.com>
4964 * internal-fn.def (GOACC_REDUCTION): New.
4965 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
4966 * internal-fn.c (expand_GOACC_REDUCTION): New.
4967 * target.def (goacc.reduction): New OpenACC hook.
4968 * targhooks.h (default_goacc_reduction): Declare.
4969 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
4970 * doc/tm.texi: Rebuilt.
4971 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
4972 scan_sharing_clauses): Remove oacc reduction handling here.
4973 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
4974 (oacc_lower_reduction_var_helper): Delete.
4975 (lower_oacc_reductions): New.
4976 (lower_reduction_clauses): Don't handle OpenACC reductions here.
4977 (lower_oacc_head_tail): Call lower_oacc_reductions.
4978 (oacc_gimple_assign, oacc_init_reduction_array,
4979 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
4980 oacc_process_reduction_data): Delete.
4981 (lower_omp_target): Remove old OpenACC reduction handling. Insert
4982 dummy OpenACC gang reduction for reductions at outer level.
4983 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
4984 (default_goacc_reduction): New.
4985 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
4987 2015-11-04 Martin Liska <mliska@suse.cz>
4989 * cgraphunit.c (cgraph_node::expand_thunk): Call
4990 allocate_struct_function before init_function_start.
4991 (cgraph_node::expand): Use push_cfun and pop_cfun.
4992 * config/i386/i386.c (ix86_code_end): Call
4993 allocate_struct_function before init_function_start.
4994 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
4995 * function.c (init_function_start): Move preamble to all
4997 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
4998 (execute_one_pass): Handle newly added TODO_discard_function.
4999 (execute_pass_list_1): Terminate if cfun equals to NULL.
5000 (execute_pass_list): Do not push and pop cfun, expect that
5002 * tree-pass.h (TODO_discard_function): Define.
5004 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
5006 * cfganal.c (inverted_post_order_compute): Remove conditional
5007 compilation, use flag_checking.
5008 * config.in: Regenerate.
5009 * configure: Regenerate.
5010 * configure.ac: Remove ENABLE_CHECKING.
5011 * genconditions.c: Do not #undef ENABLE_CHECKING.
5012 * sese.h (bb_in_region): Comment out broken check.
5013 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
5014 conditional compilation, use flag_checking.
5016 2015-11-04 Tom de Vries <tom@codesourcery.com>
5018 PR tree-optimization/67742
5019 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
5021 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
5022 (create_variable_info_for_1): Add and handle handle_param parameter.
5023 Add restrict handling.
5024 (create_variable_info_for): Call create_variable_info_for_1 with extra
5026 (make_param_constraints): Drop restrict_name parameter. Ignore
5027 vi->only_restrict_pointers.
5028 (intra_create_variable_infos): Call create_variable_info_for_1 with
5029 extra arg. Remove restrict handling. Call make_param_constraints with
5032 2015-11-04 Tom de Vries <tom@codesourcery.com>
5034 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
5037 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5039 * config/arm/coff.h: Remove.
5041 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
5043 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
5044 check for aggregate types and beef up comment for mode check.
5046 2015-11-03 Richard Biener <rguenther@suse.de>
5048 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
5049 data references here.
5050 * tree-vect-loop.c: Include cgraph.h.
5051 (vect_analyze_loop_2): Collect data references here.
5052 * tree-vect-slp.c (find_bb_location): Inline ...
5053 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
5054 Factor in vect_slp_transform_bb.
5055 (vect_slp_transform_bb): Removed.
5056 (vect_slp_analyze_bb_1): Collect data references here.
5057 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
5059 * tree-vectorizer.h (vect_slp_bb): Declare.
5060 (vect_slp_analyze_bb): Remove.
5061 (vect_slp_transform_bb): Remove.
5062 (find_bb_location): Remove.
5063 (vect_analyze_data_refs): Remove stmt count reference parameter.
5065 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
5067 * multiple_target.c (create_dispatcher_calls): Add target check
5069 (create_target_clone): Change assembler name for versioned declarations.
5071 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
5072 Chung-Lin Tang <cltang@codesourcery.com>
5074 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
5075 * omp-low.c (check_omp_nesting_restrictions): Allow
5076 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
5079 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
5081 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
5082 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
5083 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
5085 (vmulxq_f32): Likewise.
5087 (vmulxq_f64): Rewrite to call fmulx builtin.
5088 (vmulxs_f32): Likewise.
5089 (vmulxd_f64): Likewise.
5090 (vmulx_lane_f32): Remove.
5091 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
5093 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
5095 * config/aarch64/aarch64.md (*movhf_aarch64): Use
5096 aarch64_reg_or_fp_zero for second operand.
5098 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
5100 * gimple-expr.c: Include hash-set.h and rtl.h.
5101 (mark_addressable_queue): New var.
5102 (mark_addressable): Factor actual marking into...
5103 (mark_addressable_1): ... this. Queue it up during expand.
5104 (mark_addressable_2): New.
5105 (flush_mark_addressable_queue): New.
5106 * gimple-expr.h (flush_mark_addressable_queue): Declare.
5107 * cfgexpand.c: Include gimple-expr.h.
5108 (pass_expand::execute): Flush mark_addressable queue.
5110 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
5112 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
5113 bb_no_side_effects_p tests...
5114 (tree_ssa_ifcombine_bb): ... here.
5116 PR tree-optimization/68083
5117 * tree-ssa-ifcombine.c: Include tree-ssa.h.
5118 (bb_no_side_effects_p): Test for undefined uses too.
5119 * tree-ssa.c (gimple_uses_undefined_value_p): New.
5120 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
5122 2015-11-02 Jeff Law <law@redhat.com>
5124 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
5125 cases where the loop latch edge is in the middle of an FSM path.
5127 2015-11-03 Tom de Vries <tom@codesourcery.com>
5129 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
5130 (make_param_constraints): ... this. Add and handle restrict_name
5131 parameter. Handle is_full_var case.
5132 (intra_create_variable_infos): Use make_param_constraints.
5134 2015-11-03 Tom de Vries <tom@codesourcery.com>
5136 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
5137 make_copy_constraint call with make_constraint_from call.
5139 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
5141 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
5144 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
5146 * builtins.h (fold_fma): Move to fold-const-call.h.
5147 * builtins.c: Include fold-const-call.h.
5148 (mathfn_built_in_2): New function, split out from...
5149 (mathfn_built_in_1): ...here.
5150 (do_real_to_int_conversion, fold_const_builtin_pow)
5151 (fold_const_builtin_logb, fold_const_builtin_significand)
5152 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
5153 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
5154 (fold_builtin_sincos): Use fold_const_call to handle constants.
5155 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
5156 checks for ERROR_MARK. Use fold_const_call to handle constant
5157 folds for math functions.
5158 (fold_fma): Move to fold-const-call.c.
5159 * fold-const.c: Include fold-const-call.h.
5160 * Makefile.in (OBJS): Add fold-const-call.o.
5161 (PLUGIN_HEADERS): Add fold-const-call.h.
5162 * realmpfr.h (real_from_mpfr): Allow the format to be specified
5164 * realmpfr.c (real_from_mpfr): Likewise.
5165 * fold-const-call.h, fold-const-call.c: New files.
5167 2015-11-02 Julian Brown <julian@codesourcery.com>
5169 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
5170 brackets and semicolon.
5172 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
5175 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
5177 PR tree-optimization/65963
5178 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
5179 LSHIFT_EXPRs as equivalent MULT_EXPRs.
5181 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
5184 * fold-const.c: Include "md5.h".
5186 2015-11-01 Jeff Law <law@redhat.com>
5188 * vmsdbgout.c: Revert unused header file reduction patch.
5190 * config/mcore/mcore.c: Include regs.h.
5192 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
5194 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
5196 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
5198 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
5199 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
5200 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
5202 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
5204 * ggc-common.c: Restore needed header for checking=release.
5206 2015-10-31 Tom de Vries <tom@codesourcery.com>
5208 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
5210 2015-10-31 Tom de Vries <tom@codesourcery.com>
5212 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
5213 existing varinfo for arguments.
5215 2015-10-31 Tom de Vries <tom@codesourcery.com>
5217 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
5218 create_function_info_for. Dump constraints generated during
5219 create_function_info_for. Move intra_create_variable_infos call and
5220 function-return-values-escape bit to ...
5221 (create_function_info_for): ... here, and merge
5222 intra_create_variable_infos call with argument loop. Add and handle
5223 nonlocal_p parameter.
5225 2015-10-31 Tom de Vries <tom@codesourcery.com>
5227 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
5228 updating is alap, and seperated from preceding code. Make sure
5229 insert_vi_for_tree is seperated from surrounding code.
5231 2015-10-31 Tom de Vries <tom@codesourcery.com>
5233 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
5235 2015-10-30 Jeff Law <law@redhat.com>
5236 Nathan Sidwell <nathan@acm.org>
5238 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
5240 (MOVE_MAX): Set to 8.
5242 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
5244 * cgraph.c: Include context.h for offloading.
5245 * varpool.c: Include context.h and omp-low.h.
5247 2015-10-30 Anatoly Sokolov <aesok@post.ru>
5249 * rtl.h (contains_symbol_ref_p): Declare.
5250 (SYMBOL_REF_P): Define.
5251 * rtlanal.c (contains_symbol_ref_p: New function.
5252 * lra-constraints.c (contains_symbol_ref_p): Remove.
5253 * var-tracking.c (contains_symbol_ref): Remove.
5254 (track_expr_p): Use contains_symbol_ref_p instead of
5255 contains_symbol_ref.
5257 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
5259 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
5260 * fold-const.c (get_array_ctor_element_at_index): New.
5261 (fold): Remove binary-search through CONSTRUCTOR, call previous.
5263 * fold-const.h (get_array_ctor_element_at_index): New.
5265 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
5267 * Makefile.in (OBJS): Add multiple_target.o.
5268 * attrib.c (make_attribute): Moved from config/i386/i386.c
5269 * config/i386/i386.c (make_attribute): Deleted.
5270 * multiple_target.c (create_dispatcher_calls): New.
5271 (get_attr_len): Ditto.
5272 (get_attr_str): Ditto.
5273 (separate_attrs): Ditto.
5274 (is_valid_asm_symbol): Ditto.
5275 (create_new_asm_name): Ditto.
5276 (create_target_clone): Ditto.
5277 (expand_target_clones): Ditto.
5278 (ipa_target_clone): Ditto.
5279 (ipa_dispatcher_calls): Ditto.
5280 * passes.def (pass_target_clone): Two new ipa passes.
5281 * tree-pass.h (make_pass_target_clone): Ditto.
5282 * doc/extend.texi (target_clones): New attribute description.
5284 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
5286 PR rtl-optimization/68106
5287 * lra-remat.c (input_regno_present_p): Process hard regs
5288 explicitly present in machine description insns.
5289 (call_used_input_regno_present_p): Ditto.
5290 (calculate_gen_cands): Ditto.
5293 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
5295 * config/arm/neon-testgen.ml: Fix comment typo.
5297 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5299 * rtlanal.c (reg_set_p): Expand function comment.
5301 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
5303 * alias.c: Remove unused headers.
5305 * attribs.c: Likewise.
5306 * auto-inc-dec.c: Likewise.
5307 * auto-profile.c: Likewise.
5308 * bb-reorder.c: Likewise.
5309 * bitmap.c: Likewise.
5310 * bt-load.c: Likewise.
5311 * builtins.c: Likewise.
5312 * caller-save.c: Likewise.
5313 * calls.c: Likewise.
5316 * cfganal.c: Likewise.
5317 * cfgbuild.c: Likewise.
5318 * cfgcleanup.c: Likewise.
5319 * cfgexpand.c: Likewise.
5320 * cfghooks.c: Likewise.
5321 * cfgloop.c: Likewise.
5322 * cfgloopanal.c: Likewise.
5323 * cfgloopmanip.c: Likewise.
5324 * cfgrtl.c: Likewise.
5325 * cgraph.c: Likewise.
5326 * cgraphbuild.c: Likewise.
5327 * cgraphclones.c: Likewise.
5328 * cgraphunit.c: Likewise.
5329 * cilk-common.c: Likewise.
5330 * combine-stack-adj.c: Likewise.
5331 * combine.c: Likewise.
5332 * compare-elim.c: Likewise.
5333 * convert.c: Likewise.
5334 * coverage.c: Likewise.
5335 * cppbuiltin.c: Likewise.
5336 * cprop.c: Likewise.
5338 * cselib.c: Likewise.
5339 * data-streamer-in.c: Likewise.
5340 * data-streamer-out.c: Likewise.
5341 * data-streamer.c: Likewise.
5342 * dbxout.c: Likewise.
5345 * debug.c: Likewise.
5346 * df-core.c: Likewise.
5347 * df-problems.c: Likewise.
5348 * df-scan.c: Likewise.
5350 * dojump.c: Likewise.
5351 * dominance.c: Likewise.
5352 * domwalk.c: Likewise.
5353 * double-int.c: Likewise.
5355 * dumpfile.c: Likewise.
5356 * dwarf2asm.c: Likewise.
5357 * dwarf2cfi.c: Likewise.
5358 * dwarf2out.c: Likewise.
5359 * emit-rtl.c: Likewise.
5360 * except.c: Likewise.
5361 * explow.c: Likewise.
5362 * expmed.c: Likewise.
5364 * final.c: Likewise.
5365 * fixed-value.c: Likewise.
5366 * fold-const.c: Likewise.
5367 * function.c: Likewise.
5368 * fwprop.c: Likewise.
5370 * generic-match-head.c: Likewise.
5371 * ggc-common.c: Likewise.
5372 * gimple-builder.c: Likewise.
5373 * gimple-expr.c: Likewise.
5374 * gimple-fold.c: Likewise.
5375 * gimple-iterator.c: Likewise.
5376 * gimple-low.c: Likewise.
5377 * gimple-match-head.c: Likewise.
5378 * gimple-pretty-print.c: Likewise.
5379 * gimple-ssa-isolate-paths.c: Likewise.
5380 * gimple-ssa-strength-reduction.c: Likewise.
5381 * gimple-streamer-in.c: Likewise.
5382 * gimple-streamer-out.c: Likewise.
5383 * gimple-walk.c: Likewise.
5384 * gimple.c: Likewise.
5385 * gimplify-me.c: Likewise.
5386 * gimplify.c: Likewise.
5387 * godump.c: Likewise.
5388 * graph.c: Likewise.
5389 * graphds.c: Likewise.
5390 * haifa-sched.c: Likewise.
5391 * hw-doloop.c: Likewise.
5392 * ifcvt.c: Likewise.
5393 * init-regs.c: Likewise.
5394 * internal-fn.c: Likewise.
5395 * ipa-chkp.c: Likewise.
5396 * ipa-comdats.c: Likewise.
5397 * ipa-cp.c: Likewise.
5398 * ipa-devirt.c: Likewise.
5399 * ipa-icf-gimple.c: Likewise.
5400 * ipa-icf.c: Likewise.
5401 * ipa-inline-analysis.c: Likewise.
5402 * ipa-inline-transform.c: Likewise.
5403 * ipa-inline.c: Likewise.
5404 * ipa-polymorphic-call.c: Likewise.
5405 * ipa-profile.c: Likewise.
5406 * ipa-prop.c: Likewise.
5407 * ipa-pure-const.c: Likewise.
5408 * ipa-ref.c: Likewise.
5409 * ipa-reference.c: Likewise.
5410 * ipa-split.c: Likewise.
5411 * ipa-utils.c: Likewise.
5412 * ipa-visibility.c: Likewise.
5414 * ira-build.c: Likewise.
5415 * ira-color.c: Likewise.
5416 * ira-conflicts.c: Likewise.
5417 * ira-costs.c: Likewise.
5418 * ira-emit.c: Likewise.
5419 * ira-lives.c: Likewise.
5422 * langhooks.c: Likewise.
5424 * lists.c: Likewise.
5425 * loop-doloop.c: Likewise.
5426 * loop-init.c: Likewise.
5427 * loop-invariant.c: Likewise.
5428 * loop-iv.c: Likewise.
5429 * loop-unroll.c: Likewise.
5430 * lower-subreg.c: Likewise.
5431 * lra-assigns.c: Likewise.
5432 * lra-coalesce.c: Likewise.
5433 * lra-constraints.c: Likewise.
5434 * lra-eliminations.c: Likewise.
5435 * lra-lives.c: Likewise.
5436 * lra-remat.c: Likewise.
5437 * lra-spills.c: Likewise.
5439 * lto-cgraph.c: Likewise.
5440 * lto-compress.c: Likewise.
5441 * lto-opts.c: Likewise.
5442 * lto-section-in.c: Likewise.
5443 * lto-section-out.c: Likewise.
5444 * lto-streamer-in.c: Likewise.
5445 * lto-streamer-out.c: Likewise.
5446 * lto-streamer.c: Likewise.
5448 * mode-switching.c: Likewise.
5449 * modulo-sched.c: Likewise.
5450 * optabs.c: Likewise.
5451 * opts-global.c: Likewise.
5452 * passes.c: Likewise.
5453 * plugin.c: Likewise.
5454 * postreload-gcse.c: Likewise.
5455 * postreload.c: Likewise.
5456 * predict.c: Likewise.
5457 * print-tree.c: Likewise.
5458 * profile.c: Likewise.
5460 * realmpfr.c: Likewise.
5461 * recog.c: Likewise.
5463 * reg-stack.c: Likewise.
5464 * regcprop.c: Likewise.
5465 * reginfo.c: Likewise.
5466 * regrename.c: Likewise.
5467 * regstat.c: Likewise.
5468 * reload.c: Likewise.
5469 * reload1.c: Likewise.
5470 * reorg.c: Likewise.
5471 * resource.c: Likewise.
5472 * rtl-chkp.c: Likewise.
5473 * rtl-error.c: Likewise.
5474 * rtlanal.c: Likewise.
5475 * rtlhooks.c: Likewise.
5476 * sanopt.c: Likewise.
5477 * sched-deps.c: Likewise.
5478 * sched-ebb.c: Likewise.
5479 * sched-rgn.c: Likewise.
5480 * sdbout.c: Likewise.
5481 * sel-sched-dump.c: Likewise.
5482 * sel-sched-ir.c: Likewise.
5483 * sel-sched.c: Likewise.
5485 * shrink-wrap.c: Likewise.
5486 * simplify-rtx.c: Likewise.
5487 * stack-ptr-mod.c: Likewise.
5488 * statistics.c: Likewise.
5490 * stor-layout.c: Likewise.
5491 * store-motion.c: Likewise.
5492 * stringpool.c: Likewise.
5493 * symtab.c: Likewise.
5494 * target-globals.c: Likewise.
5495 * targhooks.c: Likewise.
5496 * toplev.c: Likewise.
5497 * tracer.c: Likewise.
5498 * trans-mem.c: Likewise.
5499 * tree-affine.c: Likewise.
5500 * tree-call-cdce.c: Likewise.
5501 * tree-cfg.c: Likewise.
5502 * tree-cfgcleanup.c: Likewise.
5503 * tree-chkp-opt.c: Likewise.
5504 * tree-chkp.c: Likewise.
5505 * tree-chrec.c: Likewise.
5506 * tree-complex.c: Likewise.
5507 * tree-data-ref.c: Likewise.
5508 * tree-dfa.c: Likewise.
5509 * tree-diagnostic.c: Likewise.
5510 * tree-dump.c: Likewise.
5511 * tree-eh.c: Likewise.
5512 * tree-emutls.c: Likewise.
5513 * tree-if-conv.c: Likewise.
5514 * tree-inline.c: Likewise.
5515 * tree-into-ssa.c: Likewise.
5516 * tree-iterator.c: Likewise.
5517 * tree-loop-distribution.c: Likewise.
5518 * tree-nested.c: Likewise.
5519 * tree-nrv.c: Likewise.
5520 * tree-object-size.c: Likewise.
5521 * tree-outof-ssa.c: Likewise.
5522 * tree-parloops.c: Likewise.
5523 * tree-phinodes.c: Likewise.
5524 * tree-predcom.c: Likewise.
5525 * tree-pretty-print.c: Likewise.
5526 * tree-profile.c: Likewise.
5527 * tree-scalar-evolution.c: Likewise.
5528 * tree-sra.c: Likewise.
5529 * tree-ssa-address.c: Likewise.
5530 * tree-ssa-alias.c: Likewise.
5531 * tree-ssa-ccp.c: Likewise.
5532 * tree-ssa-coalesce.c: Likewise.
5533 * tree-ssa-copy.c: Likewise.
5534 * tree-ssa-dce.c: Likewise.
5535 * tree-ssa-dse.c: Likewise.
5536 * tree-ssa-forwprop.c: Likewise.
5537 * tree-ssa-ifcombine.c: Likewise.
5538 * tree-ssa-live.c: Likewise.
5539 * tree-ssa-loop-ch.c: Likewise.
5540 * tree-ssa-loop-im.c: Likewise.
5541 * tree-ssa-loop-ivcanon.c: Likewise.
5542 * tree-ssa-loop-ivopts.c: Likewise.
5543 * tree-ssa-loop-manip.c: Likewise.
5544 * tree-ssa-loop-niter.c: Likewise.
5545 * tree-ssa-loop-prefetch.c: Likewise.
5546 * tree-ssa-loop-unswitch.c: Likewise.
5547 * tree-ssa-loop.c: Likewise.
5548 * tree-ssa-math-opts.c: Likewise.
5549 * tree-ssa-operands.c: Likewise.
5550 * tree-ssa-phiopt.c: Likewise.
5551 * tree-ssa-phiprop.c: Likewise.
5552 * tree-ssa-pre.c: Likewise.
5553 * tree-ssa-propagate.c: Likewise.
5554 * tree-ssa-reassoc.c: Likewise.
5555 * tree-ssa-scopedtables.c: Likewise.
5556 * tree-ssa-sink.c: Likewise.
5557 * tree-ssa-strlen.c: Likewise.
5558 * tree-ssa-structalias.c: Likewise.
5559 * tree-ssa-tail-merge.c: Likewise.
5560 * tree-ssa-ter.c: Likewise.
5561 * tree-ssa-threadupdate.c: Likewise.
5562 * tree-ssa-uncprop.c: Likewise.
5563 * tree-ssa-uninit.c: Likewise.
5564 * tree-ssa.c: Likewise.
5565 * tree-ssanames.c: Likewise.
5566 * tree-stdarg.c: Likewise.
5567 * tree-streamer-in.c: Likewise.
5568 * tree-streamer-out.c: Likewise.
5569 * tree-streamer.c: Likewise.
5570 * tree-switch-conversion.c: Likewise.
5571 * tree-tailcall.c: Likewise.
5572 * tree-vect-data-refs.c: Likewise.
5573 * tree-vect-generic.c: Likewise.
5574 * tree-vect-loop-manip.c: Likewise.
5575 * tree-vect-loop.c: Likewise.
5576 * tree-vect-patterns.c: Likewise.
5577 * tree-vect-slp.c: Likewise.
5578 * tree-vect-stmts.c: Likewise.
5579 * tree-vectorizer.c: Likewise.
5580 * tree-vrp.c: Likewise.
5583 * ubsan.c: Likewise.
5584 * value-prof.c: Likewise.
5585 * var-tracking.c: Likewise.
5586 * varasm.c: Likewise.
5587 * varpool.c: Likewise.
5588 * vmsdbgout.c: Likewise.
5589 * vtable-verify.c: Likewise.
5591 * wide-int-print.cc: Likewise.
5592 * wide-int.cc: Likewise.
5593 * xcoffout.c: Likewise.
5595 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
5597 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
5598 between pass numbering and execution order.
5600 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5602 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
5603 check for dependencies.
5605 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5607 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
5610 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5612 * real.h (format_helper): New.
5613 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
5614 (real_from_target, real_nan, real_2expN, real_value_truncate)
5615 (significand_size, real_from_string2, exact_real_inverse)
5616 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
5617 (real_round, real_isinteger, real_from_integer): Replace
5618 machine_mode arguments with format_helper arguments.
5619 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
5620 (real_from_integer, real_nan, real_2expN, real_convert)
5621 (real_value_truncate, exact_real_truncate, real_to_target)
5622 (real_from_target, significand_size, real_powi, real_trunc)
5623 (real_floor, real_ceil, real_round, real_isinteger): Replace
5624 machine_mode arguments with format_helper arguments.
5625 (real_to_target_fmt, real_from_target_fmt): Delete.
5626 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
5627 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
5628 argument with real_format.
5629 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
5631 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5633 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
5634 (fixed_to_decimal, fixed_convert_from_real)
5635 (real_convert_from_fixed): Fix mode arguments to real_2expN.
5637 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5639 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
5640 SCALAR_FLOAT_MODE_P.
5642 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
5644 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
5645 (completely_scalarize): Comment zero-length arrays.
5646 (get_access_replacement): Correct comment re. precondition.
5648 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5650 * config/i386/i386.c (get_builtin_code_for_version): Set priority
5651 for PROCESSOR_ZNVER1.
5652 (enum processor_model): Add M_AMDFAM17H_znver1.
5653 (struct arch_names_table): Likewise.
5654 * doc/extend.texi: ADD znver1.
5656 2015-10-30 Richard Biener <rguenther@suse.de>
5658 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
5659 fold () on single RHSs. Allow CONSTRUCTORS with trailing
5660 zeros to be folded to VECTOR_CSTs.
5661 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
5662 * fold-const.c (fold): Use build_vector_from_ctor.
5664 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
5666 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
5667 "mov %0.h[0], %1.h[0] to "neon_move".
5668 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
5669 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
5671 (*cmovsi_insn_uxtw): Likewise.
5673 2015-10-30 Tom de Vries <tom@codesourcery.com>
5675 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
5676 unsigned, and initialize, and use initial value instead of hardcoded
5677 constant. Add generic constraints dumping section. Don't dump global
5678 initializers constraints dumping section if empty. Don't update
5679 variable from if unused.
5681 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
5683 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
5684 flag_checking and/or CHECKING_P to eliminate conditional compilation
5686 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
5687 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5688 * config/i386/i386.c (ix86_print_operand_address): Likewise.
5689 (output_387_binary_op): Likewise.
5690 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
5691 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
5692 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
5694 * config/rs6000/rs6000.h: Likewise.
5695 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
5697 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
5699 * config/sh/sh.opt (mfdpic): Add missing period.
5701 2015-08-29 Anatoly Sokolov <aesok@post.ru>
5703 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5704 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
5705 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5706 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
5707 mcore_base_register_rtx_p, mcore_legitimate_index_p,
5708 mcore_legitimate_address_p): New functions.
5709 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5711 2015-10-29 Jeff Law <law@redhat.com>
5713 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
5715 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
5716 * tree-ssa-threadedge.c
5717 (record_temporary_equivalences_from_stmts_at_dest): Remove
5718 backedge_seen argument and associated code which invalidated
5719 equivalences based on the value of that argument.
5720 (thread_through_normal_block): Corresponding changes.
5722 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
5724 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
5725 function earlier in the file.
5726 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
5727 df_regs_ever_live_p.
5729 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
5731 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
5734 2015-10-29 Richard Henderson <rth@redhat.com>
5738 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5739 sse check to the exact conditions of PR 67609.
5741 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
5743 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
5744 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
5745 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
5746 of the traditional names that TFmode uses for handling IEEE
5747 extended double. If -mfloat128, add KFmode functions for all of
5748 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
5749 make TFmode use the same emulation functions as KFmode.
5750 (init_float128_ibm): Likewise.
5751 (init_float128_ieee): Likewise.
5752 (rs6000_generate_compare): For IEEE 128-bit floating point
5753 comparisons, call the unordered comparison function instead of the
5754 ordered comparison function.
5755 (rs6000_expand_float128_convert): Deal with operands that are
5756 memory operands. Restructure the code to use a switch statement on
5757 the mode. Add support for TFmode defaulting to either IBM extended
5758 double or IEEE 128-bit floating point. If the underlying types are
5759 the same, use a move instead of a conversion function.
5760 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
5761 use for IEEE 128-bit floating point constants with -mfloat128.
5762 (rs6000_c_mode_for_suffix): Likewise.
5763 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
5764 128-bit floating point with IBM extended double floating point.
5765 (rs6000_invalid_binary_op): Likewise.
5766 (rs6000_gen_le_vsx_permute): On little endian systems generate a
5767 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
5768 types that can go in vector registers.
5769 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
5770 point types that can go in vector registers on little endian
5772 (mark_swaps_for_removal): Likewise.
5773 (rs6000_analyze_swaps): Likewise.
5774 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
5776 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
5777 rework IEEE 128-bit floating point insns to deal with TFmode being
5778 either IBM extended double or IEEE 128-bit floating point.
5780 (IBM128): Update iterator to add condition that the mode is IBM
5782 (IEEE128): New iterator for IEEE 128-bit floating point.
5783 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
5784 (FLOAT128): Likewise.
5785 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
5787 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
5788 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
5789 instead of hard coding TFmode or KFmode.
5790 (negtf2_internal): Likewise.
5791 (neg<mode>2_internal): Likewise.
5792 (abs<mode>2): Likewise.
5793 (abstf2_internal): Likewise.
5794 (abs<mode>2_internal): Likewise.
5795 (ieee_128bit_neg<mode>2): Likewise.
5796 (ieee_128bit_neg<mode>2_internal): Likewise.
5797 (ieee_128bit_abs<mode>2): Likewise.
5798 (ieee_128bit_abs<mode>2_internal): Likewise.
5799 (ieee_128bit_nabs<mode>2): Likewise.
5800 (ieee_128bit_nabs<mode>2_internal): Likewise.
5801 (extendiftf2): Add explicit conversions between 128-bit floating
5802 point types. Drop the old conversions that had become unwieldy.
5803 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
5804 (extendifkf2): Likewise.
5805 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
5806 (extendtfkf2): Likewise.
5807 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
5808 (trunciftf2): Likewise.
5809 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
5810 (truncifkf2): Likewise.
5811 (float<SDI:mode><IFKF:mode>2): Likewise.
5812 (trunckftf2): Likewise.
5813 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
5814 (trunctfif2): Likewise.
5815 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
5816 (extenddftf2): Rework 128-bit floating point conversions to
5817 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
5818 KFmode expanders into one function.
5819 (extenddf<mode>2): Likewise.
5820 (extenddftf2_fprs): Likewise.
5821 (extenddf<mode>2_fprs): Likewise.
5822 (extenddftf2_vsx): Likewise.
5823 (extenddf<mode>2_vsx): Likewise.
5824 (extendsftf2): Likewise.
5825 (extendsf<mode>2): Likewise.
5826 (trunctfdf2): Likewise.
5827 (trunc<mode>df2): Likewise.
5828 (trunctfdf2_internal1): Likewise.
5829 (trunc<mode>df2_internal1): Likewise.
5830 (trunctfdf2_internal2): Likewise.
5831 (trunc<mode>df2_internal2): Likewise.
5832 (trunctfsf2): Likewise.
5833 (trunc<mode>sf2): Likewise.
5834 (trunctfsf2_fprs): Likewise.
5835 (trunc<mode>sf2_fprs): Likewise.
5836 (floatsit2f): Likewise.
5837 (floatsi<mode>2): Likewise.
5838 (fix_trunc_helper): Likewise.
5839 (fix_trunc_helper<mode>): Likewise.
5840 (fix_trunctfsi2): Likewise.
5841 (fix_trunc<mode>si2): Likewise.
5842 (fix_trunctfsi2_fprs): Likewise.
5843 (fix_trunc<mode>si2_fprs): Likewise.
5844 (fix_trunctfsi2_internal): Likewise.
5845 (fix_trunc<mode>si2_internal): Likewise.
5846 (fix_trunctfdi2): Likewise.
5847 (fix_trunc<mode>di2): Likewise.
5848 (fixuns_trunctf<mode>2): Likewise.
5849 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
5850 (floatditf2): Likewise.
5851 (floatdi<mode>2): Likewise.
5852 (floatuns<mode>tf2): Likewise.
5853 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
5854 (cmptf_internal1): Use a mode iterator to add support for both
5855 types (IFmode, TFmode) that support IBM extended double.
5856 (cmp<mode>_internal1): Likewise.
5857 (cmptf_internal2): Likewise.
5858 (cmp<mode>_internal2): Likewise.
5860 * doc/extend.texi (Floating Types): Document __ibm128 and
5861 __float128 on PowerPC.
5863 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5864 -mfloat128 and -mno-float128.
5866 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
5868 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
5869 floating point modes that can go in vector registers.
5870 (MODES_TIEABLE_P): Move tests for vector modes before tests for
5871 scalar floating point, so that IEEE 128-bit floating point that
5872 can go in vector registers bind with vectors and not FP.
5873 (struct rs6000_args): Add libcall field.
5875 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
5876 and -mfloat128-software switches. Replace them with a binary
5878 (-mfloat128): Likewise.
5880 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
5881 128-bit floating point types in GPRs, even if the appropriate
5882 option enabling the type was not used.
5883 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
5885 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
5886 pre-decrement on IEEE 128-bit floating point values.
5887 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
5888 is IEEE 128-bit floating point.
5889 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
5890 128-bit floating point types that can go in vector registers.
5891 (rs6000_option_override_internal): Change -mfloat128-none and
5892 -mfloat128-software to -mfloat128, and move code to be near other
5893 VSX option handling.
5894 (rs6000_option_override_internal): Disable -mfloat128 if we don't
5895 have the Altivec ABI.
5896 (rs6000_init_builtins): Don't make TFmode use either IFmode or
5897 KFmode floating point nodes. Instead, have three separate nodes.
5898 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
5899 eventually moving the long double default to IEEE 128-bit floating
5901 (rs6000_opt_masks): Add -mfloat128.
5902 (struct rs6000_opt_var): Fix typo in comment.
5903 (init_cumulative_args): Initialize libcall field in
5905 (rs6000_function_arg): Treat library functions as if they had
5906 prototypes to prevent IEEE 128-bit support functions from passing
5907 arguments in both GPRs and vector registers.
5908 (rs6000_arg_partial_bytes): Likewise.
5910 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
5911 an option that can be turned on via -mcpu=<xxx>.
5913 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
5916 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5917 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
5918 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
5919 double is IBM extended double.
5921 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
5924 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
5926 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
5927 * genconditions.c: Define CHECKING_P in the generated code.
5928 * genextract.c: Use flag_checking in insn_extract.
5929 * gengtype.c (main): Remove conditional compilation.
5930 * gengtype.h: Likewise.
5932 2015-10-29 Jeff Law <law@redhat.com>
5934 PR tree-optimization/67892
5935 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
5937 (thread_through_normal_block): If we have seen a backedge, then
5938 do nothing. No longer call find_jump_threads_backwards here.
5939 (thread_across_edge): Use find_jump_threads_backwards to find
5940 jump threads if the old style threader was not successful.
5941 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
5942 gsi_last_nondebug_bb. Return NULL if the block does not end
5943 with a control statement.
5944 (find_jump_threads_backwards): Setup code moved here from
5945 tree-ssa-threadedge.c::thread_through_normal_block. Accept
5946 single edge argument instead of name & block.
5947 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
5950 2015-10-29 Tom de Vries <tom@codesourcery.com>
5952 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
5955 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
5957 * omp-low.c (lower_omp_target): Remove unreachable code & merge
5960 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
5962 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
5964 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
5966 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
5967 guard_bb0 and use guard_bb throughout.
5969 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
5971 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
5974 2015-10-29 Richard Biener <rguenther@suse.de>
5977 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
5980 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
5982 * alias.c: Reorder #include statements and remove duplicates.
5984 * attribs.c: Likewise.
5985 * auto-inc-dec.c: Likewise.
5986 * auto-profile.c: Likewise.
5987 * bb-reorder.c: Likewise.
5988 * bt-load.c: Likewise.
5989 * builtins.c: Likewise.
5990 * caller-save.c: Likewise.
5991 * calls.c: Likewise.
5994 * cfganal.c: Likewise.
5995 * cfgbuild.c: Likewise.
5996 * cfgcleanup.c: Likewise.
5997 * cfgexpand.c: Likewise.
5998 * cfghooks.c: Likewise.
5999 * cfgloop.c: Likewise.
6000 * cfgloopanal.c: Likewise.
6001 * cfgloopmanip.c: Likewise.
6002 * cfgrtl.c: Likewise.
6003 * cgraph.c: Likewise.
6004 * cgraphbuild.c: Likewise.
6005 * cgraphclones.c: Likewise.
6006 * cgraphunit.c: Likewise.
6007 * cilk-common.c: Likewise.
6008 * combine-stack-adj.c: Likewise.
6009 * combine.c: Likewise.
6010 * compare-elim.c: Likewise.
6011 * convert.c: Likewise.
6012 * coverage.c: Likewise.
6013 * cppbuiltin.c: Likewise.
6014 * cprop.c: Likewise.
6016 * cselib.c: Likewise.
6017 * data-streamer-in.c: Likewise.
6018 * data-streamer-out.c: Likewise.
6019 * data-streamer.c: Likewise.
6020 * dbxout.c: Likewise.
6023 * debug.c: Likewise.
6024 * df-core.c: Likewise.
6025 * df-problems.c: Likewise.
6026 * df-scan.c: Likewise.
6028 * dojump.c: Likewise.
6029 * dominance.c: Likewise.
6030 * double-int.c: Likewise.
6032 * dumpfile.c: Likewise.
6033 * dwarf2asm.c: Likewise.
6034 * dwarf2cfi.c: Likewise.
6035 * dwarf2out.c: Likewise.
6036 * emit-rtl.c: Likewise.
6037 * except.c: Likewise.
6038 * explow.c: Likewise.
6039 * expmed.c: Likewise.
6041 * final.c: Likewise.
6042 * fixed-value.c: Likewise.
6043 * fold-const.c: Likewise.
6044 * function.c: Likewise.
6045 * fwprop.c: Likewise.
6047 * generic-match-head.c: Likewise.
6048 * ggc-common.c: Likewise.
6049 * gimple-builder.c: Likewise.
6050 * gimple-expr.c: Likewise.
6051 * gimple-fold.c: Likewise.
6052 * gimple-iterator.c: Likewise.
6053 * gimple-low.c: Likewise.
6054 * gimple-match-head.c: Likewise.
6055 * gimple-pretty-print.c: Likewise.
6056 * gimple-ssa-isolate-paths.c: Likewise.
6057 * gimple-ssa-strength-reduction.c: Likewise.
6058 * gimple-streamer-in.c: Likewise.
6059 * gimple-streamer-out.c: Likewise.
6060 * gimple-walk.c: Likewise.
6061 * gimple.c: Likewise.
6062 * gimplify-me.c: Likewise.
6063 * gimplify.c: Likewise.
6064 * godump.c: Likewise.
6065 * graph.c: Likewise.
6066 * graphite-poly.c: Likewise.
6067 * haifa-sched.c: Likewise.
6068 * hw-doloop.c: Likewise.
6069 * ifcvt.c: Likewise.
6070 * incpath.c: Likewise.
6071 * init-regs.c: Likewise.
6072 * internal-fn.c: Likewise.
6073 * ipa-chkp.c: Likewise.
6074 * ipa-comdats.c: Likewise.
6075 * ipa-cp.c: Likewise.
6076 * ipa-devirt.c: Likewise.
6077 * ipa-icf-gimple.c: Likewise.
6078 * ipa-icf.c: Likewise.
6079 * ipa-inline-analysis.c: Likewise.
6080 * ipa-inline-transform.c: Likewise.
6081 * ipa-inline.c: Likewise.
6082 * ipa-polymorphic-call.c: Likewise.
6083 * ipa-profile.c: Likewise.
6084 * ipa-prop.c: Likewise.
6085 * ipa-pure-const.c: Likewise.
6086 * ipa-ref.c: Likewise.
6087 * ipa-reference.c: Likewise.
6088 * ipa-split.c: Likewise.
6089 * ipa-utils.c: Likewise.
6090 * ipa-visibility.c: Likewise.
6092 * ira-build.c: Likewise.
6093 * ira-color.c: Likewise.
6094 * ira-conflicts.c: Likewise.
6095 * ira-costs.c: Likewise.
6096 * ira-emit.c: Likewise.
6097 * ira-lives.c: Likewise.
6100 * langhooks.c: Likewise.
6102 * lists.c: Likewise.
6103 * loop-doloop.c: Likewise.
6104 * loop-init.c: Likewise.
6105 * loop-invariant.c: Likewise.
6106 * loop-iv.c: Likewise.
6107 * loop-unroll.c: Likewise.
6108 * lower-subreg.c: Likewise.
6109 * lra-assigns.c: Likewise.
6110 * lra-coalesce.c: Likewise.
6111 * lra-constraints.c: Likewise.
6112 * lra-eliminations.c: Likewise.
6113 * lra-lives.c: Likewise.
6114 * lra-remat.c: Likewise.
6115 * lra-spills.c: Likewise.
6117 * lto-cgraph.c: Likewise.
6118 * lto-compress.c: Likewise.
6119 * lto-opts.c: Likewise.
6120 * lto-section-in.c: Likewise.
6121 * lto-section-out.c: Likewise.
6122 * lto-streamer-in.c: Likewise.
6123 * lto-streamer-out.c: Likewise.
6124 * lto-streamer.c: Likewise.
6125 * mode-switching.c: Likewise.
6126 * modulo-sched.c: Likewise.
6127 * omp-low.c: Likewise.
6128 * optabs.c: Likewise.
6129 * opts-global.c: Likewise.
6130 * passes.c: Likewise.
6131 * plugin.c: Likewise.
6132 * postreload-gcse.c: Likewise.
6133 * postreload.c: Likewise.
6134 * predict.c: Likewise.
6135 * print-tree.c: Likewise.
6136 * profile.c: Likewise.
6138 * realmpfr.c: Likewise.
6139 * recog.c: Likewise.
6141 * reg-stack.c: Likewise.
6142 * regcprop.c: Likewise.
6143 * reginfo.c: Likewise.
6144 * regrename.c: Likewise.
6145 * regstat.c: Likewise.
6146 * reload.c: Likewise.
6147 * reload1.c: Likewise.
6148 * reorg.c: Likewise.
6149 * resource.c: Likewise.
6150 * rtl-chkp.c: Likewise.
6151 * rtl-error.c: Likewise.
6152 * rtlanal.c: Likewise.
6153 * rtlhooks.c: Likewise.
6154 * sanopt.c: Likewise.
6155 * sched-deps.c: Likewise.
6156 * sched-ebb.c: Likewise.
6157 * sched-rgn.c: Likewise.
6159 * shrink-wrap.c: Likewise.
6160 * simplify-rtx.c: Likewise.
6161 * stack-ptr-mod.c: Likewise.
6162 * statistics.c: Likewise.
6164 * stor-layout.c: Likewise.
6165 * store-motion.c: Likewise.
6166 * stringpool.c: Likewise.
6167 * symtab.c: Likewise.
6168 * target-globals.c: Likewise.
6169 * targhooks.c: Likewise.
6170 * toplev.c: Likewise.
6171 * tracer.c: Likewise.
6172 * trans-mem.c: Likewise.
6173 * tree-affine.c: Likewise.
6174 * tree-call-cdce.c: Likewise.
6175 * tree-cfg.c: Likewise.
6176 * tree-cfgcleanup.c: Likewise.
6177 * tree-chkp-opt.c: Likewise.
6178 * tree-chkp.c: Likewise.
6179 * tree-chrec.c: Likewise.
6180 * tree-complex.c: Likewise.
6181 * tree-data-ref.c: Likewise.
6182 * tree-dfa.c: Likewise.
6183 * tree-diagnostic.c: Likewise.
6184 * tree-dump.c: Likewise.
6185 * tree-eh.c: Likewise.
6186 * tree-emutls.c: Likewise.
6187 * tree-if-conv.c: Likewise.
6188 * tree-inline.c: Likewise.
6189 * tree-into-ssa.c: Likewise.
6190 * tree-iterator.c: Likewise.
6191 * tree-loop-distribution.c: Likewise.
6192 * tree-nested.c: Likewise.
6193 * tree-nrv.c: Likewise.
6194 * tree-object-size.c: Likewise.
6195 * tree-outof-ssa.c: Likewise.
6196 * tree-parloops.c: Likewise.
6197 * tree-phinodes.c: Likewise.
6198 * tree-predcom.c: Likewise.
6199 * tree-pretty-print.c: Likewise.
6200 * tree-profile.c: Likewise.
6201 * tree-scalar-evolution.c: Likewise.
6202 * tree-sra.c: Likewise.
6203 * tree-ssa-address.c: Likewise.
6204 * tree-ssa-alias.c: Likewise.
6205 * tree-ssa-ccp.c: Likewise.
6206 * tree-ssa-coalesce.c: Likewise.
6207 * tree-ssa-copy.c: Likewise.
6208 * tree-ssa-dce.c: Likewise.
6209 * tree-ssa-dom.c: Likewise.
6210 * tree-ssa-dse.c: Likewise.
6211 * tree-ssa-forwprop.c: Likewise.
6212 * tree-ssa-ifcombine.c: Likewise.
6213 * tree-ssa-live.c: Likewise.
6214 * tree-ssa-loop-ch.c: Likewise.
6215 * tree-ssa-loop-im.c: Likewise.
6216 * tree-ssa-loop-ivcanon.c: Likewise.
6217 * tree-ssa-loop-ivopts.c: Likewise.
6218 * tree-ssa-loop-manip.c: Likewise.
6219 * tree-ssa-loop-niter.c: Likewise.
6220 * tree-ssa-loop-prefetch.c: Likewise.
6221 * tree-ssa-loop-unswitch.c: Likewise.
6222 * tree-ssa-loop.c: Likewise.
6223 * tree-ssa-math-opts.c: Likewise.
6224 * tree-ssa-operands.c: Likewise.
6225 * tree-ssa-phiopt.c: Likewise.
6226 * tree-ssa-phiprop.c: Likewise.
6227 * tree-ssa-pre.c: Likewise.
6228 * tree-ssa-propagate.c: Likewise.
6229 * tree-ssa-reassoc.c: Likewise.
6230 * tree-ssa-sccvn.c: Likewise.
6231 * tree-ssa-scopedtables.c: Likewise.
6232 * tree-ssa-sink.c: Likewise.
6233 * tree-ssa-strlen.c: Likewise.
6234 * tree-ssa-structalias.c: Likewise.
6235 * tree-ssa-tail-merge.c: Likewise.
6236 * tree-ssa-ter.c: Likewise.
6237 * tree-ssa-threadedge.c: Likewise.
6238 * tree-ssa-threadupdate.c: Likewise.
6239 * tree-ssa-uncprop.c: Likewise.
6240 * tree-ssa-uninit.c: Likewise.
6241 * tree-ssa.c: Likewise.
6242 * tree-ssanames.c: Likewise.
6243 * tree-stdarg.c: Likewise.
6244 * tree-streamer-in.c: Likewise.
6245 * tree-streamer-out.c: Likewise.
6246 * tree-streamer.c: Likewise.
6247 * tree-switch-conversion.c: Likewise.
6248 * tree-tailcall.c: Likewise.
6249 * tree-vect-data-refs.c: Likewise.
6250 * tree-vect-generic.c: Likewise.
6251 * tree-vect-loop-manip.c: Likewise.
6252 * tree-vect-loop.c: Likewise.
6253 * tree-vect-patterns.c: Likewise.
6254 * tree-vect-slp.c: Likewise.
6255 * tree-vect-stmts.c: Likewise.
6256 * tree-vectorizer.c: Likewise.
6257 * tree-vrp.c: Likewise.
6260 * ubsan.c: Likewise.
6261 * value-prof.c: Likewise.
6262 * var-tracking.c: Likewise.
6263 * varasm.c: Likewise.
6264 * varpool.c: Likewise.
6265 * vtable-verify.c: Likewise.
6267 * wide-int-print.cc: Likewise.
6268 * wide-int.cc: Likewise.
6269 * xcoffout.c: Likewise.
6271 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
6273 * Makefile.in (NO_PIE_CFLAGS): New.
6274 (NO_PIE_FLAG): Likewise.
6275 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6276 (NO_PIE_FLAG_FOR_BUILD): Likewise.
6277 (BUILD_NO_PIE_CFLAGS): Likewise.
6278 (BUILD_NO_PIE_FLAG): Likewise.
6279 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
6280 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
6281 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
6282 $(BUILD_NO_PIE_CFLAGS).
6283 (BUILD_CXXFLAGS): Likewise.
6284 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
6285 $(BUILD_NO_PIE_FLAG).
6286 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
6287 (BUILD_NO_PIE_FLAG): Likewise.
6288 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6289 (NO_PIE_FLAG_FOR_BUILD): Likewise.
6290 * configure: Regenerated.
6292 2015-10-29 Richard Biener <rguenther@suse.de>
6295 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
6296 unsigned conditonal negation to ABS_EXPR.
6298 2015-10-29 Richard Biener <rguenther@suse.de>
6300 * gimple-match-head.c (gimple_simplify): Remove premature checking
6301 of builtin_decl_implicit of function calls we simplify.
6303 2015-10-29 Bin Cheng <bin.cheng@arm.com>
6305 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
6306 (get_computation_cost_at): Ditto.
6307 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
6310 2015-10-28 Tom de Vries <tom@codesourcery.com>
6312 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
6315 2015-10-28 Jason Merrill <jason@redhat.com>
6317 * Makefile.in (TAGS): Include libcpp and libiberty.
6319 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6321 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
6322 (extract_omp_for_data): Remove OpenACC special handling of
6325 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
6326 (struct parallel): Update comment.
6327 (nvptx_reorg): Likewise.
6328 (nvptx_neuter): Cleanup whitespace.
6330 2015-10-28 Richard Henderson <rth@redhat.com>
6332 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
6334 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6337 * config/avr/predicates.md (low_io_address_operand): Don't
6338 consider MODE when computing upper bound.
6339 (io_address_operand): Likewise.
6341 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
6343 * fold-const.c (operand_equal_p): Do not verify that types are
6344 compatible for MEM_REFs.
6346 2015-10-28 Richard Biener <rguenther@suse.de>
6348 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
6349 in simplifying VEC_COND_EXPR conditions.
6351 2015-10-28 Tom de Vries <tom@codesourcery.com>
6353 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
6354 into vi_next of a full_var.
6356 2015-10-28 Tom de Vries <tom@codesourcery.com>
6358 * tree-ssa-structalias.c (new_var_info, make_heapvar)
6359 (make_constraint_from_restrict, make_constraint_from_global_restrict)
6360 (create_function_info_for, create_variable_info_for_1)
6361 (create_variable_info_for): Add and handle add_id parameter.
6362 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
6363 (init_base_vars): Add extra argument to calls to new_var_info.
6364 (get_vi_for_tree): Add extra argument to call to
6365 create_variable_info_for.
6366 (process_constraint, do_deref, process_all_all_constraints): Add extra
6367 argument to calls to new_scalar_tmp_constraint_exp.
6368 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
6369 argument to calls to make_heapvar.
6370 (make_restrict_var_constraints): Add extra argument to call to
6371 make_constraint_from_global_restrict.
6372 (intra_create_variable_infos): Add extra argument to call to
6373 create_variable_info_for_1.
6374 (ipa_pta_execute): Add extra argument to call to
6375 create_function_info_for.
6377 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6379 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
6380 (sibcall_value): Likewise.
6382 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6384 * config/nvptx/nvptx.h (struct machine_function): Add
6386 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
6387 nvptx_expand_oacc_join): Declare.
6388 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
6389 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
6390 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
6391 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
6392 UNSPECV_JOINING, UNSPECV_JOIN): New.
6393 (BITS, BITD): New mode iterators.
6394 (br_true_uni, br_false_uni): New.
6395 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
6396 (oacc_dim_size, oacc_dim_pos): New.
6397 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
6398 (oacc_fork, oacc_join): New.
6399 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
6400 (worker_load<mode>, worker_store<mode>): New.
6401 (nvptx_barsync): New.
6402 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
6403 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
6404 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
6405 worker_bcast_sym): New.
6406 (nvptx_option_override): Initialize worker broadcast buffer.
6407 (nvptx_emit_forking, nvptx_emit_joining): New.
6408 (nvptx_init_axis_predicate): New.
6409 (nvptx_declare_function_name): Init axis predicates.
6410 (nvptx_expand_call): Add fork/join markers around routine call.
6411 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
6412 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
6413 (nvptx_gen_vcast): New.
6414 (struct wcast_data_t): New.
6415 (enum propagate_mask): New.
6416 (nvptx_gen_wcast): New.
6417 (nvptx_print_operand): Add 'S' case.
6418 (struct parallel): New.
6419 (parallel::parallel, parallel::~parallel): New.
6420 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
6421 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
6422 nvptx_find_par, nvptx_discover_pars): New.
6423 (nvptx_propagate): New.
6424 (vprop_gen, nvptx_vpropagate): New.
6425 (wprop_gen, nvptx_wpropagate): New.
6427 (nvptx_single, nvptx_skip_par): New.
6428 (nvptx_process_pars, nvptx_neuter_pars): New.
6429 (ntptx_reorg): Split blocks, generate parallel structure, apply
6431 (nvptx_cannot_copy_insn_p): New.
6432 (nvptx_file_end): Emit worker broadcast decl.
6433 (nvptx_goacc_fork_join): New.
6434 (TARGET_CANNOT_COPY_INSN_P): Override.
6435 (TARGET_GOACC_FORK_JOIN): Override.
6437 2015-10-28 Richard Biener <rguenther@suse.de>
6439 * fold-const.c (negate_expr_p): Adjust the division case to
6440 properly avoid introducing undefined overflow.
6441 (fold_negate_expr): Likewise.
6443 2015-10-28 Richard Biener <rguenther@suse.de>
6445 PR tree-optimization/65962
6446 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6447 Avoid creating loop carried dependences also for outer loops
6448 of the loop a use to replace is in.
6450 2015-10-28 Richard Biener <rguenther@suse.de>
6452 * common.opt (fchecking): New flag controlling flag_checking.
6453 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
6454 * timevar.c (timer::print): Adjust output.
6455 * doc/invoke.texi (fchecking): Document.
6457 2015-10-28 Richard Biener <rguenther@suse.de>
6460 * fold-const.c (negate_expr_p): We cannot negate plus or minus
6461 if overflow is not wrapping. Likewise multiplication unless
6462 one operand is constant and not power of two.
6463 (fold_negate_expr): Adjust accordingly.
6465 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6467 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
6469 (is_oacc_parallel, is_oacc_kernels): New.
6470 (enclosing_target_ctx): May return NULL.
6471 (ctx_in_oacc_kernels_region): New.
6472 (check_oacc_kernel_gwv): New.
6473 (oacc_loop_or_target_p): Delete.
6474 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
6475 operands. Strip reductions fro kernels.
6476 (scan_omp_target): Don't calculate gwv mask.
6477 (lower_oacc_head_mark, lower_oacc_loop_marker,
6478 lower_oacc_head_tail): New.
6479 (struct oacc_collapse): New.
6480 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
6481 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6482 Remove OpenACC handling.
6483 (expand_oacc_for): New.
6484 (expand_omp_for): Call expand_oacc_for.
6485 (lower_omp_for): Call lower_oacc_head_tail.
6487 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
6489 * attribs.c (check_attribute_tables): New function, broken out from...
6490 (init_attributes): Use it.
6491 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
6492 gcc_checking_assert and checking_* functions to eliminate
6493 ENABLE_CHECKING conditionals.
6494 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
6495 (pass_expand::execute): Likewise.
6496 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
6497 * cgraphunit.c (mark_functions_to_output): Likewise.
6498 (cgraph_node::expand_thunk): Likewise.
6499 (symbol_table::compile): Likewise.
6500 * ddg.c (add_cross_iteration_register_deps): Likewise.
6501 (create_ddg_all_sccs): Likewise.
6502 * df-core.c (df_finish_pass, df_analyze): Likewise.
6503 * diagnostic-core.h: Likewise.
6504 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
6505 * dominance.c (calculate_dominance_info): Likewise.
6506 * dwarf2out.c (add_AT_die_ref): Likewise.
6507 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
6508 (loc_list_from_tree, gen_lexical_block_die): Likewise.
6509 gen_type_die_with_usage, gen_type_die): Likewise.
6510 (dwarf2out_decl): Likewise.
6511 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
6512 * except.c (duplicate_eh_regions): Likewise.
6513 * fwprop.c (register_active_defs, update_df_init): Likewise.
6514 (fwprop_init, fwprop_done): Likewise.
6515 (update_uses): Likewise.
6516 * ggc-page.c (ggc_grow): Likewise.
6517 * gimplify.c (gimplify_body): Likewise.
6518 (gimplify_hasher::equal): Likewise.
6519 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
6520 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
6522 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
6523 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
6524 * hash-table.h (::find_empty_slot_for_expand): Likewise.
6525 * ifcvt.c (if_convert): Likewise.
6526 * ipa-cp.c (ipcp_propagate_stage): Likewise.
6527 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
6528 (odr_type_p, odr_types_equivalent_p): Likewise.
6529 (add_type_duplicate, get_odr_type): Likewise.
6530 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
6531 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
6532 (sem_item_optimizer::verify_classes): Likewise.
6533 (sem_item_optimizer::traverse_congruence_split): Likewise.
6534 (sem_item_optimizer::checking_verify_classes): New.
6535 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
6537 * cfgrtl.c (commit_edge_insertions): Likewise.
6538 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
6539 (rtl_flow_call_edges_add): Likewise.
6540 * cgraph.c (symbol_table::create_edge): Likewise.
6541 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
6542 * cgraph.h (symtab_node): Likewise.
6543 (symtab_node::checking_verify_symtab_nodes): Define.
6544 (cgraph_node::checking_verify_cgraph_nodes): Define.
6545 * cfghooks.h (checking_verify_flow_info): Define.
6546 * cfgloop.h (checking_verify_loop_structure): Define.
6547 * dominance.h (checking_verify_dominators): Define.
6548 * et-forest.c: Fix comment.
6549 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
6550 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6551 ENABLE_CHECKING conditionals.
6552 * ipa-inline-transform.c (save_inline_function_body): Likewise.
6553 * ipa-inline.c (inline_small_functions): Likewise.
6554 (early_inliner): Likewise.
6555 * ipa-inline.h (estimate_edge_growth): Likewise.
6556 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6557 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6558 (ipa_single_use): Likewise.
6559 * ira-int.h: Likewise.
6560 * ira.c (ira): Likewise.
6561 * loop-doloop.c (doloop_optimize_loops): Likewise.
6562 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
6563 * loop-invariant.c (move_loop_invariants): Likewise.
6564 * lra-assigns.c (lra_assign): Likewise.
6565 * lra-constraints.c (lra_constraints): Likewise.
6566 * lra-eliminations.c (lra_eliminate): Likewise.
6567 * lra-int.h (struct lra_reg): Likewise.
6568 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
6569 (lra_create_live_ranges_1): Likewise.
6570 * lra-remat.c (create_remat_bb_data): Likewise.
6571 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
6573 (check_rtl): Always define. Remove incorrect guard around
6574 extract_constrain_insn call.
6575 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
6576 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6577 ENABLE_CHECKING conditionals.
6578 * lto-streamer-out.c (DFS::DFS): Likewise.
6579 (lto_output): Likewise.
6580 * lto-streamer.c (lto_streamer_init): Likewise.
6581 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
6582 expand_omp_target, execute_expand_omp): Likewise.
6583 (lower_omp_target): Likewise.
6584 * passes.c (execute_function_todo): Likewise.
6585 (execute_todo, execute_one_pass): Likewise.
6586 (verify_curr_properties): Always define.
6587 * predict.c (tree_estimate_probability: Use flag_checking,
6588 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6589 ENABLE_CHECKING conditionals.
6590 (propagate_freq): Likewise.
6591 * pretty-print.c (pp_format): Likewise.
6592 * real.c (real_to_decimal_for_mode): Likewise.
6593 * recog.c (split_all_insns): Likewise.
6594 * regcprop.c (kill_value_one_regno): Likewise.
6595 (copy_value): Likewise.
6596 (validate_value_data): Define unconditionally.
6597 * reload.c: Fix comment.
6598 * timevar.c: Include options.h
6599 * tree-ssa.h (checking_verify_ssa): Define.
6600 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
6601 * sched-deps.c (CHECK): Remove unused macro.
6602 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
6603 gcc_checking_assert and checking_* functions to eliminate
6604 ENABLE_CHECKING conditionals.
6605 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
6606 * sel-sched.c (struct moveop_static_params): Likewise.
6607 (find_best_reg_for_expr, move_cond_jump): Likewise.
6608 (move_op_orig_expr_not_found): Likewise.
6609 (code_motion_process_successors, move_op): Likewise.
6610 * ssa-iterators.h (first_readonly_imm_use): Likewise.
6611 (next_readonly_imm_use): Likewise.
6612 * store-motion.c (compute_store_table): Likewise.
6613 * symbol-summary.h (function_summary::function_summary): Likewise.
6614 * target.h (cumulative_args_t): Likewise.
6615 (get_cumulative_args, pack_cumulative_args): Likewise.
6616 * timevar.c: (timer::print): Likewise.
6617 * trans-mem.c (ipa_tm_execute): Likewise.
6618 * tree-cfg.c (move_stmt_op): Likewise.
6619 (move_sese_region_to_fn): Likewise.
6620 (gimple_flow_call_edges_add): Likewise.
6621 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
6623 * tree-eh.c (remove_unreachable_handlers): Likewise.
6624 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
6625 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
6626 * tree-into-ssa.c (update_ssa): Likewise.
6627 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
6628 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
6629 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
6630 * tree-predcom.c (suitable_component_p): Likewise.
6631 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
6632 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
6633 * tree-ssa-live.c (verify_live_on_entry): Likewise.
6634 * tree-ssa-live.h (register_ssa_partition): Likewise.
6635 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
6636 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
6637 (tree_transform_and_unroll_loop): Likewise.
6638 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6639 * tree-ssa-operands.c (get_expr_operands): Likewise.
6640 * tree-ssa-propagate.c (replace_exp_1): Likewise.
6641 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
6642 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
6643 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
6644 * tree-ssanames.c (release_ssa_name_fn): Likewise.
6645 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
6646 * tree-vect-loop-manip.c
6647 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
6648 (slpeel_checking_verify_cfg_after_peeling): Likewise.
6649 (vect_do_peeling_for_loop_bound): Likewise.
6650 (vect_do_peeling_for_alignment): Likewise.
6651 * tree-vrp.c (supports_overflow_infinity): Likewise.
6652 (set_value_range): Likewise.
6653 * tree.c (free_lang_data_in_cgraph): Likewise.
6654 * value-prof.c (gimple_remove_histogram_value): Likewise.
6655 (free_hist): Likewise.
6656 * var-tracking.c (canonicalize_values_star): Likewise.
6657 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
6659 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6661 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
6662 IFN_GOACC_LOOP): New.
6663 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
6664 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
6665 IFN_UNIQUE_OACC_TAIL_MARK.
6666 (enum ifn_goacc_loop_kind): New.
6667 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
6668 IFN_UNIQUE_OACC_JOIN cases.
6669 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
6670 (expand_GOACC_LOOP): New.
6671 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
6672 * omp-low.c: Include gimple-pretty-print.h.
6673 (struct oacc_loop): New.
6674 (enum oacc_loop_flags): New.
6675 (oacc_thread_numbers): New.
6676 (oacc_xform_loop): New.
6677 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
6678 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
6679 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
6680 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
6681 oacc_loop_discovery): New.
6682 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
6683 oacc_loop_process): New.
6684 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
6685 (execute_oacc_device_lower): Discover & process loops. Process
6687 * target.def (goacc.fork_join): Change sense of hook, clarify
6689 * doc/tm.texi: Regenerated.
6691 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6693 * target-insns.def (oacc_fork, oacc_join): Define.
6694 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
6695 (goacc.fork_join): New GOACC hook.
6696 * targhooks.h (default_goacc_fork_join): Declare.
6697 * omp-low.c (default_goacc_forkjoin): New.
6698 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
6699 * doc/tm.texi: Regenerate.
6701 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6703 * omp-low.c (oacc_init_rediction_array): New.
6704 (oacc_initialize_reduction_data): Initialize array.
6706 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6708 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
6710 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6712 * internal-fn.c (expand_UNIQUE): New.
6713 * internal-fn.h (enum ifn_unique_kind): New.
6714 * internal-fn.def (IFN_UNIQUE): New.
6715 * target-insns.def (unique): Define.
6716 * gimple.h (gimple_call_internal_unique_p): New.
6717 * gimple.c (gimple_call_same_target_p): Check internal fn
6719 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
6720 * tree-ssa-threadedge.c
6721 (record_temporary_equivalences_from_stmts): Likewise.
6722 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
6724 2015-10-27 Richard Henderson <rth@redhat.com>
6727 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
6728 narrowing subregs on SSE and MMX registers.
6729 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
6730 appear to be sub-words of multi-register pseudos must be rejected.
6731 * doc/tm.texi: Regenerate.
6733 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6736 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
6737 operands[0] is a reg before taking its REGNO in split condition.
6738 (*movdi_aarch64): Likewise.
6740 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6742 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
6743 Handle floating point inner modes properly.
6745 2015-10-27 Alan Hayward <alan.hayward@arm.com>
6748 (vectorizable_live_operation): Change iterator.
6750 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6751 Aditya Kumar <aditya.k7@samsung.com>
6753 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
6754 function to schedule based on isl_schedule_node.
6755 (get_schedule_map_st): New schedule optimizer based on
6757 (scop_get_domains): New. Return the isl_union_set containing the
6758 domains of all the pbbs.
6759 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
6761 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
6764 * calls.c (prepare_call_address): Don't handle -fno-plt here.
6765 * config/i386/i386.c (ix86_expand_call): Generate indirect call
6766 via GOT for -fno-plt. Support indirect call via GOT for x32.
6767 * config/i386/predicates.md (sibcall_memory_operand): Allow
6770 2015-10-27 Richard Biener <rguenther@suse.de>
6772 PR tree-optimization/68104
6773 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
6774 strided access check ...
6775 (vect_compute_data_refs_alignment): ... here.
6777 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
6778 Joseph Myers <joseph@codesourcery.com>
6779 Mark Shinwell <shinwell@codesourcery.com>
6780 Andrew Stubbs <ams@codesourcery.com>
6781 Rich Felker <dalias@libc.org>
6783 * config.gcc: Handle --enable-fdpic.
6784 * config/sh/constraints.md (Ccl): New constraint.
6785 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
6786 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
6788 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
6790 * config/sh/sh-protos.h (function_symbol_result): New struct.
6791 (function_symbol): Return function_symbol_result.
6792 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
6794 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
6796 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
6797 (sh_option_override): Force -fPIC if FDPIC is in effect.
6798 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
6799 UNSPEC_GOTOFFFUNCDESC cases.
6800 (prepare_move_operands): Use FDPIC initial GOT register for
6801 TLS-related GOT access; inhibit cross-section address offset constants
6803 (sh_assemble_integer): New function.
6804 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
6805 PC-relative call sites.
6806 (expand_ashiftrt): Adapt invocation of function_symbol.
6807 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
6808 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
6809 UNSPEC_GOTOFFFUNCDESC.
6810 (legitimize_pic_address): Resolve function symbols to function
6811 descriptors for FDPIC. Do not use GOT-relative addressing for local
6812 data that may be read-only on FDPIC.
6813 (sh_emit_storesi, sh_emit_storehi): New functions.
6814 (sh_trampoline_init): Generate FDPIC trampolines.
6815 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
6816 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
6817 (sh_output_mi_thunk): Generate FDPIC call.
6818 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
6819 FDPIC, generate call site labels to use PC-relative addressing rather
6820 than GOT-relative addressing.
6821 (sh_conditional_register_usage): Make PIC register fixed and call used
6822 when FDPIC is in effect.
6823 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
6824 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
6825 sh_get_fdpic_reg_initial_val): New functions.
6826 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
6828 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
6829 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
6830 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
6831 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
6833 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
6834 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
6835 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
6836 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
6838 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
6839 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
6840 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
6841 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
6842 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
6843 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
6844 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
6845 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
6846 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
6847 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
6848 block_move_real, block_lump_real, block_move_real_i4,
6849 block_lump_real_i4): Add support for FDPIC calls.
6850 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
6851 call_value_pop): Adjust for new function_symbol signature.
6852 * config/sh/sh.opt (-mfdpic): New option.
6853 * doc/install.texi (Options specification): Document --enable-fdpic.
6854 * doc/invoke.texi (SH Options): Document -mfdpic.
6857 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
6859 PR tree-optimization/65963
6860 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6861 LSHIFT_EXPRs as equivalent MULT_EXPRs.
6863 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6866 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
6867 * config/arm/constraints.md (Dp): Update callsite.
6868 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
6870 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6872 * builtins.c (fold_builtin_load_exponent): Rename to...
6873 (fold_const_builtin_load_exponent): ...this and only handle
6875 (fold_builtin_2): Update accordingly.
6876 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
6878 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6880 * builtins.c (fold_builtin_logb): Rename to...
6881 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
6882 (fold_builtin_significand): Rename to...
6883 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
6884 (fold_builtin_1): Update accordingly.
6886 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6888 * builtins.c (fold_builtin_fmin_fmax): Delete.
6889 (fold_builtin_2): Handle constant fmin and fmax arguments here.
6890 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
6892 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
6894 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
6895 for register extension into sign and zero register extension.
6896 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
6897 for sign and zero register extension.
6898 (cortexa57_addrcost_table): Likewise.
6899 (xgene1_addrcost_table): Likewise.
6901 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6903 * fold-const.c (fold_minmax): Delete.
6904 (fold_binary_loc): Don't call it.
6905 * match.pd: Add rules previously handled by fold_minmax.
6907 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6909 * builtins.c (fold_builtin_fma): Remove constant handling.
6910 (fold_builtin_3): Handle constant fma arguments here.
6912 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6914 * builtins.c (fold_builtin_fabs): Remove constant handling.
6915 (fold_builtin_abs): Likewise.
6917 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6919 * builtins.c (fold_builtin_copysign): Delete.
6920 (fold_builtin_2): Handle constant copysign arguments here.
6921 * match.pd: Add rules previously handled by fold_builtin_copysign.
6923 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6925 * builtins.c (fold_builtin_signbit): Delete.
6926 (fold_builtin_2): Handle constant signbit arguments here.
6927 * match.pd: Add rules previously handled by fold_builtin_signbit.
6929 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6931 * match.pd: Handle sqrt(x) cmp 0 specially.
6933 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
6935 * tree-vect-generic.c (expand_vector_operations_1): Check
6936 optab type before using it.
6938 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6940 * config/aarch64/aarch64-protos.h
6941 (struct tune_params): Add autoprefetcher_model field.
6942 * config/aarch64/aarch64.c: Include params.h
6943 (generic_tunings): Specify autoprefetcher_model value.
6944 (cortexa53_tunings): Likewise.
6945 (cortexa57_tunings): Likewise.
6946 (cortexa72_tunings): Likewise.
6947 (thunderx_tunings): Likewise.
6948 (xgene1_tunings): Likewise.
6949 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
6950 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
6951 (aarch64_override_options_internal): Set
6952 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
6954 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6956 * builtins.c (fold_builtin_exponent): Delete.
6957 (fold_builtin_2): Handle constant expN arguments here.
6958 * match.pd: Fold expN(logN(x)) -> x.
6960 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6962 * builtins.c (fold_builtin_powi): Delete.
6963 (fold_builtin_2): Handle constant powi arguments here.
6964 * match.pd: Add rules previously handled by fold_builtin_powi.
6966 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6968 * builtins.c (fold_builtin_pow): Delete in favor of...
6969 (fold_const_builtin_pow): ...this new function. Only handle constant
6971 (fold_builtin_2): Update accordingly.
6972 * match.pd: Add rules previously handled by fold_builtin_pow.
6974 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6976 * builtins.c (fold_builtin_hypot): Delete.
6977 (fold_builtin_2): Handle constant hypot arguments here.
6978 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
6979 hypot(x, x) to fabs(x)*sqrt(2).
6981 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6983 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
6984 instead of make_ssa_name if not yet in SSA form.
6986 2015-10-27 Richard Biener <rguenther@suse.de>
6988 * cfg.c (free_edge): Add function argument and use it instead of cfun.
6989 (clear_edges): Likewise.
6990 * cfg.h (clear_edges): Adjust prototype.
6991 * cfgexpand.c (pass_expand::execute): Adjust.
6992 * cfgloop.c (release_recorded_exits): Add function argument and use
6994 * cfgloop.h (release_recorded_exits): Adjust prototype.
6995 (loops_state_satisfies_p): Add overload with function argument.
6996 (loops_state_set): Likewise.
6997 (loops_state_clear): Likewise.
6998 (struct loop_iterator): Add function argument to constructor
6999 and iterator and use it instead of cfun.
7000 (FOR_EACH_LOOP_FN): New macro.
7001 (loop_optimizer_finalize): Add overload with function argument.
7002 * loop-init.c (loop_optimizer_init): Adjust.
7003 (fix_loop_structure): Likewise.
7004 (loop_optimizer_finaliz): Add function argument and use it
7006 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
7007 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
7008 * cgraph.c (release_function_body): Do not push/pop cfun.
7009 * final.c (rest_of_clean_state): Adjust.
7010 * graphite.c (graphite_finalize): Likewise.
7011 * tree-ssa-copy.c (fini_copy_prop): Likewise.
7012 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7013 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
7014 (tree_unroll_loops_completely): Likewise.
7015 (pass_complete_unrolli::execute): Likewise.
7016 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
7017 Add function argument and use it instead of cfun.
7018 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
7020 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
7021 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
7023 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
7024 * tree-ssanames.c (fini_ssanames): Add function argument and use it
7026 * tree-ssanames.c (fini_ssanames): Adjust prototype.
7027 * tree-vrp.c (execute_vrp): Adjust.
7028 * value-prof.c (free_histograms): Add function argument and use it
7030 * value-prof.h (free_histograms): Adjust prototype.
7032 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
7034 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
7035 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
7036 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
7038 2015-10-27 Tom de Vries <tom@codesourcery.com>
7040 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
7043 2015-10-27 Bin Cheng <bin.cheng@arm.com>
7045 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
7046 (inv_can_prop_to_addr_use): New function.
7047 (record_use): Call can_prop_to_addr_uses, set the new field.
7048 (get_inv_cost): Count cost if inv can't be propagated into its
7051 2015-10-26 Doug Evans <dje@google.com>
7053 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
7055 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
7057 * match.pd (fold_widened_comparison): Apply simplifications to all
7060 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
7062 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
7063 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
7064 * doc/tm.texi: Regenerated.
7065 * reorg.c (dbr_schedule): Use new hook.
7066 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
7068 2015-10-26 Jeff Law <law@redhat.com>
7070 PR tree-optimization/68013
7071 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7072 Make sure the first block in the path is in VISITED_BBs.
7074 2015-10-26 Richard Biener <rguenther@suse.de>
7075 Dominik Vogt <vogt@linux.vnet.ibm.com>
7078 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
7079 Properly prune ref->ref for accesses outside of ref.
7081 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7083 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
7084 new statements to be inserted if inplace. Allow calls to have
7087 2015-10-26 Richard Biener <rguenther@suse.de>
7089 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
7090 (do_valueize): New function.
7091 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
7093 * tree-ssa-threadedge.c: Remove builtins.h include, include
7095 (fold_assignment_stmt): Remove.
7096 (threadedge_valueize): New function.
7097 (record_temporary_equivalences_from_stmts): Use
7098 gimple_fold_stmt_to_constant_1, note additional cleanup
7101 2015-10-26 Richard Biener <rguenther@suse.de>
7103 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
7104 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
7106 2015-10-26 Alan Hayward <alan.hayward@arm.com>
7108 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
7109 VEC_COND_EXPR types.
7111 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7113 * auto-inc-dec.c (insert_move_insn_before): Delete.
7114 (attempt_change): Remember to cost the simple move in the
7115 FORM_PRE_ADD and FORM_POST_ADD cases.
7117 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
7120 * config/sh/sh.c (sh_vector_mode_supported_p): Use
7121 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
7123 2015-10-26 Tom de Vries <tom@codesourcery.com>
7125 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
7127 (intra_create_variable_infos): ... here.
7129 2015-10-26 Tom de Vries <tom@codesourcery.com>
7131 * tree-ssa-structalias.c (intra_create_variable_infos): Add
7132 restrict_pointer_p and recursive_restrict_p variables.
7134 2015-10-26 Tom de Vries <tom@codesourcery.com>
7136 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
7137 get_vi_for_tree call.
7139 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7142 * optabs.c (expand_atomic_compare_and_swap): Handle case when
7143 ptarget_oval or ptarget_bool are const0_rtx.
7145 2015-10-26 Christian Bruel <christian.bruel@st.com>
7147 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
7148 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
7149 * cp/method.c (implicitly_declare_fn): Likewise.
7150 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
7151 * java/class.c (add_method_1): Likewise.
7153 2015-10-26 Richard Biener <rguenther@suse.de>
7155 * alloc-pool.h (base_pool_allocator): Use placement new.
7156 (base_pool_allocator::remove): Likewise. Compute size outside of
7159 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7161 * builtins.c (do_real_to_int_conversion): New function.
7162 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
7163 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
7165 * match.pd: Add rules previously handled by fold_fixed_mathfn
7166 and fold_builtin_int_roundingfn.
7168 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7170 * match.pd: Use macros to define built-in operator lists.
7172 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
7173 Richard Biener <rguenther@suse.de>
7175 * genmatch.c (dt_simplify::gen): Skip captures that are
7177 (parser::parse_expr): Allow captures in results too.
7178 * builtins.c (fold_builtin_cexp): Delete.
7179 (fold_builtin_1): Handle constant cexp arguments here.
7180 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
7182 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
7184 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
7185 conditional compilation.
7186 (base_pool_allocator::remove): Use flag_checking.
7188 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
7190 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
7193 * dojump.c (do_compare_and_jump): Canonicalize both function and
7196 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
7199 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
7202 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7205 * ipa-polymorphic-call.c
7206 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
7207 instance offset with offset of outer type.
7209 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7211 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
7213 2015-10-23 Caroline Tice <cmtice@google.com>
7215 (from Richard Biener
7216 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
7217 call to iterative_hash_host_wide_int.
7219 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
7221 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
7224 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7226 * tree-vect-generic.c (expand_vector_operations_1): Check
7227 optab exists before use it.
7229 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7231 * tree-vect-generic.c (expand_vector_condition): Avoid
7232 uninitialized variable warning.
7234 2015-10-23 Jeff Law <law@redhat.com>
7236 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
7238 (execute_todo): Call it here.
7239 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
7241 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
7243 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
7244 Szabolcs Nagy <szabolcs.nagy@arm.com>
7246 * config.gcc (enable_secureplt): Add *-linux*-musl*.
7248 2015-10-23 Jeff Law <law@redhat.com>
7250 PR tree-optimization/67830
7251 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
7252 Explicitly verify the mask has no bits outside the type of
7253 the innermost operands.
7255 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
7256 Szabolcs Nagy <szabolcs.nagy@arm.com>
7258 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
7259 (MUSL_DYNAMIC_LINKER64): Define.
7260 (GNU_USER_DYNAMIC_LINKER32): Update.
7261 (GNU_USER_DYNAMIC_LINKER64): Update.
7262 (CHOOSE_DYNAMIC_LINKER): Update.
7264 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
7265 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
7266 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7267 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7268 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7269 (CHOOSE_DYNAMIC_LINKER): Update.
7270 (INCLUDE_DEFAULTS): Redefine.
7272 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
7274 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7276 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
7277 comparing addresses.
7279 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7281 * fold-const.c (operand_equal_p): Handle matching of vector
7284 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
7286 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
7288 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
7289 Andrew Pinski <apinski@cavium.com>
7291 PR rtl-optimization/67736
7292 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
7295 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7298 * tree.c (build_truth_vector_type): Support BLK mode
7299 returned for boolean vector.
7301 2015-10-23 Alan Hayward <alan.hayward@arm.com>
7303 PR tree-optimization/65947
7305 (vect_is_simple_reduction_1): Find condition reductions.
7306 (vect_model_reduction_cost): Add condition reduction costs.
7307 (get_initial_def_for_reduction): Add condition reduction initial var.
7308 (vect_create_epilog_for_reduction): Add condition reduction epilog.
7309 (vectorizable_reduction): Condition reduction support.
7310 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
7311 * doc/sourcebuild.texi (Vector-specific attributes): Document
7314 2015-10-23 Richard Biener <rguenther@suse.de>
7316 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
7319 2015-10-23 Richard Biener <rguenther@suse.de>
7320 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7322 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
7323 into (A ^ B) - B to match.pd
7324 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
7326 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
7328 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
7330 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
7332 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
7334 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
7335 INTEGER_CST@1)): New simplifier.
7337 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
7339 * builtins.c (integer_valued_real_p): Move to fold-const.c.
7340 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
7341 (fold_builtin_ceil, fold_builtin_round): Delete.
7342 (fold_builtin_1): Handle constant trunc, floor, ceil and round
7344 * convert.c (convert_to_real): Remove narrowing of rounding
7346 * fold-const.h (integer_valued_real_unary_p)
7347 (integer_valued_real_binary_p, integer_valued_real_call_p)
7348 (integer_valued_real_single_p, integer_valued_real_p): Declare.
7349 * fold-const.c (tree_single_nonnegative_warnv_p): Move
7350 name_registered_for_update_p check to SSA_NAME case statement.
7351 Don't call tree_simple_nonnegative_warnv_p for SSA names.
7352 (integer_valued_real_unary_p, integer_valued_real_binary_p)
7353 (integer_valued_real_call_p, integer_valued_real_single_p)
7354 (integer_valued_real_invalid_p): New functions.
7355 (integer_valued_real_p): Move from fold-const.c and rework
7356 to call the functions above. Handle SSA names.
7357 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
7358 * gimple-fold.c (gimple_assign_integer_valued_real_p)
7359 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
7360 (gimple_stmt_integer_valued_real_p): New functions.
7361 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
7362 Fold f(x)->x for the same f if x is known to be integer-valued.
7363 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
7364 the result. Canonicalize floor(x) as trunc(x) if x is
7367 2015-10-23 Tom de Vries <tom@codesourcery.com>
7369 * tree-ssa-structalias.c (intra_create_variable_infos): Use
7370 make_constraint_from.
7372 2015-10-23 Tom de Vries <tom@codesourcery.com>
7374 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
7375 setting of is_full_var in case of a single field.
7377 2015-10-22 Martin Sebor <msebor@redhat.com>
7380 * config/i386/i386.opt: Add missing periods to the ends of sentences.
7381 * config/msp430/msp430.opt: Same.
7383 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
7385 * doc/extend.exp (Global Register Variables): Rewrite.
7387 2015-10-22 Jeff Law <law@redhat.com>
7389 * genattrtab.c (main): If we do not have any annul-true or annul-false
7390 slots, then write out a dummy eligible_for_annul_true or
7391 eligible_for_annul_false as needed.
7393 2015-10-22 Nick Clifton <nickc@redhat.com>
7395 * config/msp430/msp430.opt: Add -msilicon-errata and
7396 -msilicon-errata-warn.
7397 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
7399 * doc/invoke.texi: Document new options.
7401 2015-10-22 Richard Biener <rguenther@suse.de>
7403 PR tree-optimization/58497
7404 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
7405 (expand_vector_operations_1): Use it. Lower operations on
7406 all uniform vectors to scalar operations if the HW supports it.
7408 2015-10-22 Richard Biener <rguenther@suse.de>
7410 PR tree-optimization/19049
7411 PR tree-optimization/65962
7412 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
7413 to strided accesses if single-element interleaving doesn't work.
7415 2015-10-22 Richard Biener <rguenther@suse.de>
7419 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
7420 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
7421 (expand_unop): Likewise.
7423 2015-10-22 Richard Biener <rguenther@suse.de>
7425 * fold-const.c (fold_addr_of_array_ref_difference): Properly
7426 convert operands before folding a MINUS_EXPR.
7427 (fold_binary_loc): Move simplification of MINUS_EXPR on
7428 converted POINTER_PLUS_EXPRs ...
7429 * match.pd: ... here.
7431 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
7433 * builtins.c (fold_builtin_tan): Delete.
7434 (fold_builtin_1): Handle constant tan arguments here.
7435 * match.pd: Simplify (tan (atan x)) to x.
7437 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
7439 * builtins.c (fold_builtin_cproj): Delete.
7440 (fold_builtin_1): Handle constant arguments here.
7441 (build_complex_cproj): Move and rename to...
7442 * tree.c: (build_complex_inf): ...this.
7443 * tree.h (build_complex_inf): Declare.
7444 * match.pd: Fold cproj(x)->x if x has no infinity.
7445 Use build_complex_inf for existing cproj rules.
7447 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7450 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
7451 already have a comparison result.
7453 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7456 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
7457 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
7458 (aarch64_classify_address): Likewise.
7459 (aarch64_secondary_reload): Likewise.
7460 (aarch64_override_options_after_change_1): Adjust.
7461 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7462 Use aarch64_nopcrelative_literal_loads.
7463 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7464 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
7467 2015-10-21 Martin Sebor <msebor@redhat.com>
7470 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
7471 (print_filtered_help): Reference aliased option's name and encourage
7472 readers to use it in preference to the alias if the former is not
7473 documented. Mention when using an option is diagnosed.
7474 * gcc.c (display_help): End each sentence with a period.
7476 * common.opt: End each sentence that describes an option with
7478 * config/aarch64/aarch64.opt: Same.
7479 * config/alpha/alpha.opt: Same.
7480 * config/arc/arc.opt: Same.
7481 * config/arm/arm.opt: Same.
7482 * config/avr/avr.opt: Same.
7483 * config/bfin/bfin.opt: Same.
7484 * config/c6x/c6x.opt: Same.
7485 * config/cr16/cr16.opt: Same.
7486 * config/cris/cris.opt: Same.
7487 * config/cris/linux.opt: Same.
7488 * config/darwin.opt: Same.
7489 * config/epiphany/epiphany.opt: Same.
7490 * config/fr30/fr30.opt: Same.
7491 * config/frv/frv.opt: Same.
7492 * config/ft32/ft32.opt: Same.
7493 * config/g.opt: Same.
7494 * config/h8300/h8300.opt: Same.
7495 * config/i386/cygming.opt: Same.
7496 * config/i386/djgpp.opt: Same.
7497 * config/i386/i386.opt: Same.
7498 * config/i386/interix.opt: Same.
7499 * config/i386/mingw-w64.opt: Same.
7500 * config/i386/mingw.opt: Same.
7501 * config/ia64/ia64.opt: Same.
7502 * config/ia64/ilp32.opt: Same.
7503 * config/iq2000/iq2000.opt: Same.
7504 * config/linux.opt: Same.
7505 * config/lm32/lm32.opt: Same.
7506 * config/lynx.opt: Same.
7507 * config/m32c/m32c.opt: Same.
7508 * config/m32r/m32r.opt: Same.
7509 * config/m68k/ieee.opt: Same.
7510 * config/m68k/m68k.opt: Same.
7511 * config/mcore/mcore.opt: Same.
7512 * config/mep/mep.opt: Same.
7513 * config/microblaze/microblaze.opt: Same.
7514 * config/mips/mips.opt: Same.
7515 * config/mmix/mmix.opt: Same.
7516 * config/mn10300/mn10300.opt: Same.
7517 * config/moxie/moxie.opt: Same.
7518 * config/msp430/msp430.opt: Same.
7519 * config/nios2/elf.opt: Same.
7520 * config/nios2/nios2.opt: Same.
7521 * config/nvptx/nvptx.opt: Same.
7522 * config/pa/pa-hpux.opt: Same.
7523 * config/pa/pa-hpux1010.opt: Same.
7524 * config/pa/pa-hpux1111.opt: Same.
7525 * config/pa/pa-hpux1131.opt: Same.
7526 * config/pa/pa.opt: Same.
7527 * config/pa/pa64-hpux.opt: Same.
7528 * config/pdp11/pdp11.opt: Same.
7529 * config/rl78/rl78.opt: Same.
7530 * config/rs6000/476.opt: Same.
7531 * config/rs6000/aix64.opt: Same.
7532 * config/rs6000/darwin.opt: Same.
7533 * config/rs6000/linux64.opt: Same.
7534 * config/rs6000/rs6000.opt: Same.
7535 * config/rs6000/sysv4.opt: Same.
7536 * config/s390/s390.opt: Same.
7537 * config/s390/tpf.opt: Same.
7538 * config/sh/sh.opt: Same.
7539 * config/sol2.opt: Same.
7540 * config/sparc/long-double-switch.opt: Same.
7541 * config/sparc/sparc.opt: Same.
7542 * config/spu/spu.opt: Same.
7543 * config/stormy16/stormy16.opt: Same.
7544 * config/tilegx/tilegx.opt: Same.
7545 * config/tilepro/tilepro.opt: Same.
7546 * config/v850/v850.opt: Same.
7547 * config/vax/vax.opt: Same.
7548 * config/visium/visium.opt: Same.
7549 * config/vms/vms.opt: Same.
7550 * config/vxworks.opt: Same.
7551 * config/xtensa/xtensa.opt: Same.
7553 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7554 Sebastian Pop <s.pop@samsung.com>
7556 * graphite-scop-detection.c (parameter_index_in_region): Update call to
7557 invariant_in_sese_p_rec.
7558 * graphite-sese-to-poly.c (extract_affine): Same.
7559 * sese.c (invariant_in_sese_p_rec): Pass in an extra
7560 parameter has_vdefs.
7561 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
7562 variable depends on virtual definitions in the current region.
7563 * sese.h (invariant_in_sese_p_rec): Update declaration.
7565 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7566 Sebastian Pop <s.pop@samsung.com>
7568 * graphite-scop-detection.c (build_scops): Do not handle scops
7569 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
7570 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
7572 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
7574 * config.in: Regenerate.
7575 * configure: Regenerate.
7576 * configure.ac (CHECKING_P): Define.
7577 * system.h: Use CHECKING_P.
7579 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7582 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
7583 is negative we don't know the type.
7584 (check_stmt_for_type_change): Skip constructors of non-polymorphic
7585 types as those won't help devirutalization.
7587 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7589 * fold-const.c (operand_equal_p): Add code matching empty constructors.
7591 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
7593 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
7595 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
7596 Add comments on sign of the result.
7597 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
7598 Recurse on operand #1 instead of operand #0.
7599 <CEIL_MOD_EXPR>: Do not recurse.
7600 <ROUND_MOD_EXPR>: Likewise.
7602 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7604 * cfgrtl.c (pass_free_cfg::execute): Adjust.
7605 * final.c (dbr_sequence_length): Always define.
7606 (shorten_branches): Adjust.
7607 * genattr-common.c (main): Always define DELAY_SLOTS.
7608 * genattr.c (main): Unconditionally declare functions and define
7609 macros related to delay slots.
7610 * genattrtab.c (write_eligible_delay): Adjust.
7611 (main): Always write out delay slot functions.
7612 * opts.c (default_options_table): Adjust.
7613 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
7614 (redirect_with_delay_list_safe_p): Likewise.
7615 (fill_simple_delay_slots): Likewise.
7616 (fill_slots_from_thread): Likewise.
7617 (make_return_insns): Likewise.
7618 (dbr_schedule): Likewise.
7619 (rest_of_handle_delay_slots): Likewise.
7620 (pass_delay_slots::gate): Likewise.
7621 * toplev.c (process_options): Likewise.
7623 2015-10-21 Richard Henderson <rth@redhat.com>
7625 * targhooks.c (default_addr_space_pointer_mode): Remove check
7626 for generic address space.
7627 (default_addr_space_address_mode): Likewise.
7628 (default_addr_space_valid_pointer_mode): Likewise.
7629 (default_addr_space_legitimate_address_p): Likewise.
7630 (default_addr_space_legitimize_address): Likewise.
7631 * target.def (addr_space.pointer_mode): Update documentation
7632 of default behavior.
7633 (addr_space.address_mode): Likewise.
7636 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
7639 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7641 * builtins.c (fold_builtin_cabs): Delete.
7642 (fold_builtin_1): Update accordingly. Handle constant arguments here.
7643 * match.pd: Add rules previously handled by fold_builtin_cabs.
7645 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7647 * fold-const.h (fold_strip_sign_ops): Delete.
7648 * fold-const.c (fold_strip_sign_ops): Likewise.
7649 (fold_unary_loc, fold_binary_loc): Remove calls to it.
7650 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
7651 (fold_builtin_ccos): Delete.
7652 (fold_builtin_pow): Don't call fold_strip_sign_ops.
7653 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
7654 Remove fndecl argument.
7655 (fold_builtin_1): Update calls accordingly. Handle constant
7656 cos, cosh, ccos and ccosh here.
7658 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7660 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
7661 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
7662 * common.opt (fssa-backprop): New option.
7663 * fold-const.h (negate_mathfn_p): Declare.
7664 * fold-const.c (negate_mathfn_p): Make public.
7665 * timevar.def (TV_TREE_BACKPROP): New.
7666 * tree-pass.h (make_pass_backprop): Declare.
7667 * passes.def (pass_backprop): Add.
7668 * gimple-ssa-backprop.c: New file.
7670 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7671 Sebastian Pop <s.pop@samsung.com>
7673 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
7674 Do not call create_empty_if_region_on_edge when cond_expr is true.
7675 (translate_isl_ast_node_for): Check whether a guard has been generated.
7677 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7679 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
7680 (operator=): Removed.
7681 (dr_info): Make alias_set number the last argument with default
7682 value of invalid_alias_set.
7683 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
7685 (rewrite_reductions_out_of_ssa): Iterate only through the
7686 basic blocks which are inside region.
7687 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
7688 * sese.h (struct sese_l): Removed assignment operator.
7689 (split_region_for_bb): Removed dead code.
7691 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7693 * graphite-poly.h (struct dr_info): Removed conversion constructor.
7694 (struct scop): Renamed scop::region to scop::scop_info
7695 (scop_set_region): Same.
7696 (SCOP_REGION): Removed
7697 (SCOP_CONTEXT): Removed.
7698 (POLY_SCOP_P): Removed.
7699 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
7700 Rename scop->region to scop->scop_info.
7701 (add_parameters_to_ivs_params): Same.
7702 (graphite_regenerate_ast_isl): Same.
7703 * graphite-poly.c (new_scop): Same.
7705 (print_scop_params): Same.
7706 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
7707 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
7708 (dot_all_scops_1): Rename scop->region to scop->scop_info.
7709 (scop_detection::nb_pbbs_in_loops): Same.
7710 (find_scop_parameters): Same.
7711 (try_generate_gimple_bb): Same.
7712 (gather_bbs::before_dom_children): Same.
7713 (gather_bbs::after_dom_children): Same.
7714 (build_scops): Same.
7715 * graphite-sese-to-poly.c (build_scop_scattering): Same.
7716 (extract_affine_chrec): Same.
7717 (extract_affine): Same.
7718 (set_scop_parameter_dim): Same.
7719 (build_loop_iteration_domains): Same.
7720 (create_pw_aff_from_tree): Same.
7721 (add_param_constraints): Same.
7722 (build_scop_iteration_domain): Same.
7723 (build_scop_drs): Same.
7724 (analyze_drs_in_stmts): Same.
7725 (insert_out_of_ssa_copy_on_edge): Same.
7726 (rewrite_close_phi_out_of_ssa):Same.
7727 (rewrite_reductions_out_of_ssa):Same.
7728 (handle_scalar_deps_crossing_scop_limits):Same.
7729 (rewrite_cross_bb_scalar_deps):Same.
7730 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
7731 (build_poly_scop):Same.
7732 (build_alias_set): Use pointer to dr_info.
7733 * graphite.c (print_graphite_scop_statistics):
7734 (graphite_transform_loops):
7735 * sese.h (struct sese_l): Remove conversion constructor.
7737 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7740 * tree.c (verify_type): Verify that TYPE_MODE match
7741 between TYPE_CANONICAL and type.
7742 * expr.c (store_expr_with_bounds): Revert my previous change.
7743 * expmed.c (store_bit_field_1): Revert prevoius change.
7744 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
7745 to match for all types.
7747 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
7749 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
7752 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
7754 * doc/tm.texi: Regenerated.
7755 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
7756 * stor-layout.c (layout_type): Use mode to get vector mask size.
7757 * target.def (get_mask_mode): New.
7758 * targhooks.c (default_get_mask_mode): New.
7759 * targhooks.h (default_get_mask_mode): New.
7760 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
7762 * tree.c (MAX_BOOL_CACHED_PREC): New.
7763 (nonstandard_boolean_type_cache): New.
7764 (build_nonstandard_boolean_type): New.
7765 (make_vector_type): Vector mask has no canonical type.
7766 (build_truth_vector_type): New.
7767 (build_same_sized_truth_vector_type): New.
7768 (truth_type_for): Support vector masks.
7769 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
7770 (build_truth_vector_type): New.
7771 (build_same_sized_truth_vector_type): New.
7772 (build_nonstandard_boolean_type): New.
7773 * tree-cfg.c (verify_gimple_comparison) Require boolean
7774 vector type for vector comparison.
7775 (verify_gimple_assign_ternary): Likewise.
7776 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
7778 * tree-vect-stmts.c (vectorizable_condition): Use boolean
7779 vector type for vector comparison.
7780 * tree-vect-generic.c (elem_op_func): Add new operand to hold
7782 (do_unop): Adjust to modified function type.
7783 (do_binop): Likewise.
7784 (do_plus_minus): Likewise.
7785 (do_negate); Likewise.
7786 (expand_vector_piecewise): Likewise.
7787 (do_cond): Likewise.
7788 (do_compare): Use comparison instead of condition.
7789 (expand_vector_divmod): Use boolean vector type for comparison.
7790 (expand_vector_operations_1): Skip scalar mask operations.
7792 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
7794 * omp-low.c (simd_clone_create): Set in_other_partition
7797 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
7799 * doc/extend.exp (Local Register Variables): Rewrite.
7801 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7803 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
7804 and x*x in cases where the operands are sign ops. Extend these
7805 rules to handle copysign as a sign op (including for cos, cosh
7806 and pow, which already treated negate and abs as sign ops).
7808 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
7811 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
7812 for 64-bit MS_ABI targets also when default incoming stack boundary
7815 2015-10-21 Richard Biener <rguenther@suse.de>
7817 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
7818 cond stmts, enhanced and split out from ...
7819 (vn_phi_eq): ... here.
7821 2015-10-21 Richard Biener <rguenther@suse.de>
7824 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
7825 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
7826 (tree_single_nonnegative_warnv_p): ... here. For SSA names
7827 make sure they are not registered for update.
7829 2015-10-21 Richard Biener <rguenther@suse.de>
7831 PR tree-optimization/68026
7832 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
7833 unsigned VARYING values.
7835 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
7837 * asan.c (asan_emit_stack_protection): Don't pass local stack to
7838 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
7839 NULL and use local stack than.
7840 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
7841 in addition to __asan_init.
7842 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
7843 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
7844 * asan.h (asan_intercepted_p): Handle new string builtins.
7845 * ubsan.c (ubsan_use_new_style_p): New function.
7846 (ubsan_instrument_float_cast): If location is unknown, assign
7847 input_location to loc. Propagate loc to ubsan_create_data if
7848 ubsan_use_new_style_p returned true.
7850 2015-10-21 Jeff Law <law@redhat.com>
7852 * Makefile.in (OBJS): Remove sched-vis.c
7853 * sched-vis.c: Removed. Code moved into...
7854 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
7855 * rtl.h: Remove prototypes for functions now living in print-rtl.c
7856 * print-rtl.h Add prototypes for new functions in print-rtl.c.
7857 * auto-inc-dec.c: Include print-rtl.h
7858 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
7859 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
7861 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
7864 2015-10-21 Richard Biener <rguenther@suse.de>
7865 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7867 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
7869 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
7870 about signed left shift stronger and clarify the cases when they're
7872 Move (a * (1 << b)) is (a << b) to match.pd.
7873 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
7874 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
7875 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
7877 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
7879 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
7880 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
7881 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
7883 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
7885 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
7887 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
7888 Szabolcs Nagy <szabolcs.nagy@arm.com>
7889 Alan Modra <amodra@gmail.com>
7891 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
7892 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
7893 (LINK_SPEC): Add %(link_secure_plt).
7894 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
7895 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
7897 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
7898 Szabolcs Nagy <szabolcs.nagy@arm.com>
7900 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
7901 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
7903 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7905 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
7907 (fusion_load_store): Use it.
7908 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
7909 ldp and stp in VD modes.
7910 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
7911 (store_pair<mode>, VD): Likewise.
7913 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
7915 PR rtl-optimization/67609
7916 * lra-splill.c (lra_final_code_change): Don't remove all
7919 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7921 * simplify-rtx.c (simplify_binary_operation): If either operand was
7922 a constant pool reference use them if all other simplifications failed.
7924 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7926 * config/aarch64/aarch64.md
7927 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
7928 * config/aarch64/aarch64-simd.md
7929 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
7930 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
7931 (aarch64_fpconst_pow_of_2): New function.
7932 (aarch64_vec_fpconst_pow_of_2): Likewise.
7933 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
7935 (aarch64_vec_fpconst_pow_of_2): Likewise.
7936 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
7937 (aarch64_fp_vec_pow2): Likewise.
7939 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
7941 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
7942 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
7943 * config/alpha/alpha.c (alpha_function_arg_advance): Update
7944 ALPHA_ARG_SIZE usage.
7945 (alpha_arg_partial_bytes): Ditto.
7947 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
7950 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
7951 error_mark_node decls.
7953 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
7957 * common/config/i386/i386-common.c (ix86_handle_option): Remove
7958 OPT_miamcu handling.
7959 * config/i386/i386.c (PTA_NO_80387): New macro.
7960 (processor_alias_table): Add PTA_NO_80387 to lakemont.
7961 (ix86_option_override_internal): Update MASK_80387 from
7962 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
7963 SSE math only if 80387 is supported. Don't change
7965 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
7967 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
7968 if TARGET_80387 is true and TARGET_IAMCU is false.
7969 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
7970 is true and TARGET_IAMCU_P is false.
7972 2015-10-20 Richard Biener <rguenther@suse.de>
7974 PR tree-optimization/68017
7975 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
7977 2015-10-20 Martin Liska <mliska@suse.cz>
7979 * cgraphclones.c (cgraph_node::create_virtual_clone):
7980 Verify cgraph_node.local.versionable instead of calling
7981 tree_versionable_function_p.
7982 * ipa-cp.c (determine_versionability): Save the information
7983 to ipa_node_params summary.
7984 (ipcp_versionable_function_p): Use it.
7985 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
7986 (ipcp_generate_summary): Do not compute cgraph_node
7988 * ipa-inline-analysis.c (inline_generate_summary): Compute
7989 versionability for all cgraph nodes.
7990 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
7991 ipa_node_params::versionability.
7992 * ipa-prop.h (struct ipa_node_params): Declare it.
7994 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7997 * varasm.c (assemble_variable): Move special vtv handling to..
7998 (handle_vtv_comdat_sections): .. here. New function.
7999 (output_object_block): Handle vtv sections.
8001 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
8004 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
8006 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
8008 * doc/extend.texi: Update documentation WRT inline functions.
8010 2015-10-20 Alan Modra <amodra@gmail.com>
8013 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
8014 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
8015 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8017 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
8019 PR rtl-optimization/66790
8020 * df.h (DF_MIR): New macro.
8021 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
8022 (DF_MIR_INFO_BB): New macro.
8023 (DF_MIR_IN, DF_MIR_OUT): New macros.
8024 (struct df_mir_bb_info): New.
8025 (df_mir): New macro.
8026 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
8028 (df_mir_get_bb_info): New.
8029 * df-problems.c (struct df_mir_problem_data): New.
8030 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
8031 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
8032 df_mir_confluence_0, df_mir_confluence_n,
8033 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
8034 df_mir_bottom_dump, df_mir_verify_solution_start,
8035 df_mir_verify_solution_end): New.
8037 (df_mir_add_problem, df_mir_simulate_one_insn): New.
8038 * timevar.def (TV_DF_MIR): New.
8039 * ree.c: Include bitmap.h
8040 (add_removable_extension): Add an INIT_REGS parameter. Use it
8041 to skip zero-extensions that may get an uninitialized register.
8042 (find_removable_extensions): Compute must-initialized registers
8043 using the MIR dataflow problem. Update the call to
8044 add_removable_extension.
8045 (find_and_remove_re): Call df_mir_add_problem.
8047 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
8049 * common/config/mn10300/mn10300-common.c
8050 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
8051 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
8053 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
8055 * doc/extend.texi (Explicit Register Variables): Simplify and
8056 avoid unnecessary and confusion abbreviations. Update cross
8058 doc/implement-c.tex: Update cross reference.
8060 2015-10-19 Jeff Law <law@redhat.com>
8062 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
8063 that create irreducible loops unless the path elimiantes a multiway
8066 2015-10-19 Richard Biener <rguenther@suse.de>
8068 PR tree-optimization/67975
8069 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
8070 * tree-cfg.c (extract_true_false_controlled_edges): Split out
8071 core worker from ...
8072 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
8073 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
8074 instead of block number for PHIs with two or one args.
8075 (vn_phi_eq): Compare edge predicates of PHIs that are in different
8078 2015-10-19 Richard Biener <rguenther@suse.de>
8080 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
8081 (gimple_stmt_nonnegative_warnv_p): Use it.
8082 * match.pd (CPROJ): New operator list.
8083 (cproj (complex ...)): Move simplifications from ...
8084 * builtins.c (fold_builtin_cproj): ... here.
8086 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8088 * config/i386/i386.c (ix86_expand_vector_move): Use
8089 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
8092 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8094 * doc/invoke.texi: Replace @optindex with @opindex.
8096 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8099 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
8100 arch= is set, clear all bits in x_ix86_isa_flags, except for
8101 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
8103 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
8106 * common.opt (fkeep-static-functions): New option.
8107 * doc/invoke.texi: Document it.
8108 * cgraphunit.c (cgraph_node::finalize_function): Use it.
8110 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8112 * sched-int.h (struct autopref_multipass_data_): Remove offset
8113 field. Add min_offset, max_offset, multi_mem_insn_p fields.
8114 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
8115 (autopref_multipass_init): Use it. Handle PARALLEL sets.
8116 (autopref_rank_data): New function.
8117 (autopref_rank_for_schedule): Use it.
8118 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
8120 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
8123 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
8125 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8127 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
8128 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
8129 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
8130 (STANDARD_STARTFILE_PREFIX_1): New.
8131 (STANDARD_STARTFILE_PREFIX_2): New.
8133 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8135 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
8136 (darwin_driver_init): Note a version-min when provided on the c/l.
8137 * config/darwin.h (%darwin_minversion): Remove.
8138 * config/i386/darwin.h: Likewise.
8139 * config/rs6000/darwin.h: Likewise.
8140 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
8141 rather than an arbitrary constant.
8143 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8145 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
8146 PPC, detect conflicts between -arch and multilib settings. Detect
8147 and warn about conflicts between multiple -arch definitions.
8149 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8151 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
8153 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8155 * lra-constraints.c (add_next_usage_insn): Change argument type
8156 from rtx to rtx_insn *.
8158 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
8160 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
8163 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
8165 * config/tilepro/gen-mul-tables.cc: Adjust include files.
8166 * config/tilegx/mul-tables.c: Regenerate.
8167 * config/tilepro/mul-tables.c: Regenerate.
8169 * config/tilegx/tilegx-c.c: Adjust include files.
8170 * config/tilegx/tilegx.c: Likewise.
8171 * config/tilepro/tilepro-c.c: Likewise.
8172 * config/tilepro/tilepro.c: Likewise.
8173 * config/aarch64/aarch64-builtins.c: Likewise.
8174 * config/aarch64/aarch64.c: Likewise.
8175 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8176 * config/alpha/alpha.c: Likewise.
8177 * config/arc/arc.c: Likewise.
8178 * config/arm/aarch-common.c: Likewise.
8179 * config/arm/arm-builtins.c: Likewise.
8180 * config/arm/arm-c.c: Likewise.
8181 * config/arm/arm.c: Likewise.
8182 * config/avr/avr-c.c: Likewise.
8183 * config/avr/avr-devices.c: Likewise.
8184 * config/avr/avr-log.c: Likewise.
8185 * config/avr/avr.c: Likewise.
8186 * config/bfin/bfin.c: Likewise.
8187 * config/c6x/c6x.c: Likewise.
8188 * config/cr16/cr16.c: Likewise.
8189 * config/cris/cris.c: Likewise.
8190 * config/darwin-c.c: Likewise.
8191 * config/darwin-driver.c: Likewise.
8192 * config/darwin.c: Likewise.
8193 * config/default-c.c: Likewise.
8194 * config/epiphany/epiphany.c: Likewise.
8195 * config/epiphany/mode-switch-use.c: Likewise.
8196 * config/epiphany/resolve-sw-modes.c: Likewise.
8197 * config/fr30/fr30.c: Likewise.
8198 * config/frv/frv.c: Likewise.
8199 * config/ft32/ft32.c: Likewise.
8200 * config/glibc-c.c: Likewise.
8201 * config/h8300/h8300.c: Likewise.
8202 * config/i386/host-cygwin.c: Likewise.
8203 * config/i386/host-mingw32.c: Likewise.
8204 * config/i386/i386-c.c: Likewise.
8205 * config/i386/i386.c: Likewise.
8206 * config/i386/msformat-c.c: Likewise.
8207 * config/i386/winnt-cxx.c: Likewise.
8208 * config/i386/winnt-stubs.c: Likewise.
8209 * config/i386/winnt.c: Likewise.
8210 * config/ia64/ia64-c.c: Likewise.
8211 * config/ia64/ia64.c: Likewise.
8212 * config/iq2000/iq2000.c: Likewise.
8213 * config/lm32/lm32.c: Likewise.
8214 * config/m32c/m32c-pragma.c: Likewise.
8215 * config/m32c/m32c.c: Likewise.
8216 * config/m32r/m32r.c: Likewise.
8217 * config/mcore/mcore.c: Likewise.
8218 * config/mep/mep-pragma.c: Likewise.
8219 * config/mep/mep.c: Likewise.
8220 * config/microblaze/microblaze-c.c: Likewise.
8221 * config/microblaze/microblaze.c: Likewise.
8222 * config/mips/mips-tables.opt
8223 * config/mips/mips.c: Likewise.
8224 * config/mmix/mmix.c: Likewise.
8225 * config/mn10300/mn10300.c: Likewise.
8226 * config/moxie/moxie.c: Likewise.
8227 * config/msp430/msp430-c.c: Likewise.
8228 * config/msp430/msp430.c: Likewise.
8229 * config/nds32/nds32-cost.c: Likewise.
8230 * config/nds32/nds32-fp-as-gp.c: Likewise.
8231 * config/nds32/nds32-intrinsic.c: Likewise.
8232 * config/nds32/nds32-isr.c: Likewise.
8233 * config/nds32/nds32-md-auxiliary.c: Likewise.
8234 * config/nds32/nds32-memory-manipulation.c: Likewise.
8235 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8236 * config/nds32/nds32-predicates.c: Likewise.
8237 * config/nds32/nds32.c: Likewise.
8238 * config/nios2/nios2.c: Likewise.
8239 * config/nvptx/mkoffload.c: Likewise.
8240 * config/nvptx/nvptx.c: Likewise.
8241 * config/pa/pa.c: Likewise.
8242 * config/pdp11/pdp11.c: Likewise.
8243 * config/rl78/rl78-c.c: Likewise.
8244 * config/rl78/rl78.c: Likewise.
8245 * config/rs6000/host-darwin.c: Likewise.
8246 * config/rs6000/rs6000-c.c: Likewise.
8247 * config/rs6000/rs6000-linux.c: Likewise.
8248 * config/rs6000/rs6000.c: Likewise.
8249 * config/rx/rx.c: Likewise.
8250 * config/s390/s390-c.c: Likewise.
8251 * config/s390/s390.c: Likewise.
8252 * config/sh/sh-c.c: Likewise.
8253 * config/sh/sh-mem.cc: Likewise.
8254 * config/sh/sh.c: Likewise.
8255 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8256 * config/sh/sh_treg_combine.cc: Likewise.
8257 * config/sol2-c.c: Likewise.
8258 * config/sol2-cxx.c: Likewise.
8259 * config/sol2-stubs.c: Likewise.
8260 * config/sol2.c: Likewise.
8261 * config/sparc/sparc-c.c: Likewise.
8262 * config/sparc/sparc.c: Likewise.
8263 * config/spu/spu-c.c: Likewise.
8264 * config/spu/spu.c: Likewise.
8265 * config/stormy16/stormy16.c: Likewise.
8266 * config/v850/v850-c.c: Likewise.
8267 * config/v850/v850.c: Likewise.
8268 * config/vax/vax.c: Likewise.
8269 * config/visium/visium.c: Likewise.
8270 * config/vms/vms-c.c: Likewise.
8271 * config/vms/vms.c: Likewise.
8272 * config/vxworks.c: Likewise.
8273 * config/winnt-c.c: Likewise.
8274 * config/xtensa/xtensa.c: Likewise.
8276 2015-10-16 Christian Bruel <christian.bruel@st.com>
8279 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
8280 (FUNCTION_BOUNDARY_P): New macro:
8281 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
8283 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
8284 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
8285 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
8286 * function.c (allocate_struct_function): Call
8287 relayout_function hook.
8288 * passes.c (rest_of_decl_compilation): Likewise.
8290 2015-10-16 Christian Bruel <christian.bruel@st.com>
8293 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
8294 * config/arm/arm.c (arm_option_override_internal): Call
8295 arm_override_options_after_change_1.
8296 (arm_override_options_after_change): New function.
8297 (arm_override_options_after_change_1): Likewise.
8298 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
8300 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8303 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8306 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
8308 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
8309 argument is an ADDR_EXPR.
8311 2015-10-16 Richard Biener <rguenther@suse.de>
8313 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
8314 and get rid of force_gimple_operand_gsi.
8315 (gimple_fold_builtin_memory_chk): Likewise.
8316 (gimple_fold_builtin_stxcpy_chk): Likewise.
8317 (rewrite_to_defined_overflow): Likewise.
8318 (gimple_convert_to_ptrofftype): New function.
8319 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
8321 2015-10-16 Richard Biener <rguenther@suse.de>
8323 * tree-nested.h (build_addr): Adjust prototype.
8324 * tree-nested.c (build_addr): Remove context argument and use
8326 (get_static_chain): Adjust calls to build_addr.
8327 (convert_nl_goto_reference): Likewise.
8328 (convert_tramp_reference_op): Likewise.
8329 (finalize_nesting_tree_1): Likewise.
8330 * value-prof.c (gimple_ic): Likewise.
8331 * gimple-low.c (lower_builtin_setjmp): Likewise.
8332 * tree-parloops.c (take_address_of): Likewise.
8333 (create_call_for_reduction_1): Likewise.
8334 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
8335 (gimple_gen_ic_func_profiler): Likewise.
8337 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8339 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8342 2015-10-16 Michael Collison <michael.collison@linaro.org>
8343 Andrew Pinski <andrew.pinski@caviumnetworks.com>
8345 * match.pd ((x < y) && (x < z) -> x < min (y,z),
8346 (x > y) and (x > z) -> x > max (y,z))
8348 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
8349 Szabolcs Nagy <szabolcs.nagy@arm.com>
8351 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
8352 (DYNAMIC_LINKER): Renamed to ...
8353 (GLIBC_DYNAMIC_LINKER): This.
8354 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
8356 2015-10-15 Marek Polacek <polacek@redhat.com>
8358 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
8359 gimple_call_builtin instead of is_gimple_call.
8361 2015-10-15 Richard Biener <rguenther@suse.de>
8363 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
8365 2015-10-15 Richard Biener <rguenther@suse.de>
8367 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
8368 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
8369 * tree-vect-loop.c (get_initial_def_for_induction): Drop
8370 use of force_gimple_operand in favor of gimple_build.
8371 Use vect_get_new_ssa_name.
8372 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
8373 (vectorizable_mask_load_store): Likewise.
8374 (vectorizable_call): Likewise.
8375 (vectorizable_store): Likewise.
8376 (vectorizable_load): Likewise.
8377 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
8379 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
8381 PR tree-optimization/67945
8382 * tree-pass.h (PROP_gimple_opt_math): New property flag.
8383 * generic-match-head.c (canonicalize_math_p): New function.
8384 * gimple-match-head.c: Include tree-pass.h.
8385 (canonicalize_math_p): New function.
8386 * match.pd: Group math built-in rules into simplifications
8387 and canonicalizations. Guard the latter with canonicalize_math_p.
8388 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
8389 PROP_gimple_opt_math property.
8391 2015-10-15 Marek Polacek <polacek@redhat.com>
8393 PR tree-optimization/67953
8394 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
8396 2015-10-15 Jiong Wang <jiong.wang@arm.com>
8398 * config.gcc: Recognize "." in architecture base name for AArch64.
8400 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
8402 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
8404 * config/mips/mips.c (mips_setup_incoming_varargs): Use
8405 ROUND_DOWN to calculate off.
8406 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
8407 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
8410 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
8412 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
8414 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
8415 Torvald Riegel <triegel@redhat.com>
8418 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
8419 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8420 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
8421 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
8422 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
8423 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8424 trechkpt, treclaim, tsr, ttest): New define_expands.
8425 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
8426 __TM_FENCE__ for htm.
8427 * doc/extend.texi: Update documentation for htm builtins.
8429 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
8432 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
8433 REG_CFA_EXPRESSION to aligned SSE stores.
8435 2015-10-14 Jeff Law <law@redhat.com>
8437 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
8438 num_threaded_edges for successful FSM threads too.
8440 2015-10-14 Richard Biener <rguenther@suse.de>
8442 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
8443 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
8444 (vect_get_vec_def_for_operand): Remove unused parameter.
8445 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
8446 (vect_create_epilog_for_reduction): Likewise.
8447 (vectorizable_reduction): Likewise.
8448 (vectorizable_live_operation): Likewise.
8449 * tree-vect-patterns.c (type_conversion_p): Likewise.
8450 (vect_recog_vector_vector_shift_pattern): Likewise.
8451 (check_bool_pattern): Likewise.
8452 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8453 (vect_analyze_slp_cost_1): Likewise.
8454 * tree-vect-stmts.c (process_use): Likewise.
8455 (vect_get_vec_def_for_operand): Do not handle reductions.
8456 (vect_get_vec_defs): Adjust.
8457 (vectorizable_mask_load_store): Likewise.
8458 (vectorizable_call): Likewise.
8459 (vectorizable_simd_clone_call): Likewise.
8460 (vect_get_loop_based_defs): Likewise.
8461 (vectorizable_conversion): Likewise.
8462 (vectorizable_assignment): Likewise.
8463 (vectorizable_shift): Likewise.
8464 (vectorizable_operation): Likewise.
8465 (vectorizable_store): Likewise.
8466 (vectorizable_load): Likewise.
8467 (vect_is_simple_cond): Likewise.
8468 (vectorizable_condition): Likewise.
8469 (vect_is_simple_use): Remove unused parameters.
8470 (vect_is_simple_use_1): Adjust and rename.
8472 2015-10-14 Richard Biener <rguenther@suse.de>
8474 PR tree-optimization/67915
8475 * match.pd: Handle comparisons of addresses of STRING_CSTs.
8476 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
8477 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
8478 stmt folding in favor of GIMPLE one.
8480 2015-10-14 Marek Polacek <polacek@redhat.com>
8482 PR tree-optimization/67815
8483 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
8484 (reassociate_bb): Call it.
8486 2015-10-14 Richard Biener <rguenther@suse.de>
8488 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8489 Reset info at start.
8490 (vect_analyze_group_access_1): Add debug print.
8491 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
8492 (vect_compute_single_scalar_iteration_cost): ... to this.
8493 (vect_analyze_loop_2): Adjust.
8494 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
8495 * tree-vectorizer.h: ... here.
8496 (add_stmt_info_to_vec): Remove.
8497 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
8499 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
8501 * targhooks.c (default_target_option_pragma_parse): Do not warn if
8502 called on behalf of "#pragma GCC pop_options".
8504 2015-10-14 Tom de Vries <tom@codesourcery.com>
8506 * cfganal.c (verify_no_unreachable_blocks): New function.
8507 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
8508 verify_no_unreachable_blocks.
8509 cfganal.h (verify_no_unreachable_blocks): Declare.
8511 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
8513 * common.opt: Add flag_checking.
8514 * system.h (CHECKING_P): Define.
8516 2015-10-13 Jakub Jelinek <jakub@redhat.com>
8517 Aldy Hernandez <aldyh@redhat.com>
8518 Ilya Verbin <ilya.verbin@intel.com>
8520 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
8521 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
8522 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
8523 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
8524 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
8525 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
8526 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
8527 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
8528 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
8529 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
8530 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
8531 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
8532 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
8533 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
8534 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
8535 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8536 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8537 (struct cgraph_simd_clone_arg): Adjust comment.
8538 * coretypes.h (struct gomp_ordered): New forward decl.
8539 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
8540 set critical clauses to it.
8541 (gimple_build_omp_ordered): Return gomp_ordered * instead of
8542 gimple *. Add CLAUSES argument, set ordered clauses to it.
8543 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
8545 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
8546 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
8547 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
8548 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
8549 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
8550 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
8551 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
8552 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
8554 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
8555 (gomp_critical): Add clauses field.
8556 (gomp_ordered): New struct.
8557 (is_a_helper <gomp_ordered *>::test): New inline.
8558 (gimple_build_omp_critical): Add CLAUSES argument.
8559 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
8560 instead of gimple *.
8561 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
8562 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
8563 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
8564 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
8566 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
8567 (dump_gimple_omp_target): Handle enter data and exit data.
8568 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
8569 (dump_gimple_omp_critical): Print clauses.
8570 (dump_gimple_omp_ordered): New function.
8571 (dump_gimple_omp_task): Handle taskloop.
8572 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
8574 * gimple-walk.c (walk_gimple_op): Walk clauses on
8575 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
8576 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
8577 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
8578 (struct gimplify_omp_ctx): Add loop_iter_var,
8579 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
8580 and target_firstprivatize_array_bases fields.
8581 (delete_omp_context): Release loop_iter_var.
8582 (gimplify_bind_expr): Handle ORT_NONE.
8583 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
8584 ORT_COMBINED_TARGET.
8585 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
8586 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
8587 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
8588 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
8589 ctx->target_map_scalars_firstprivate.
8590 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
8591 data sharing clauses. For data sharing clause with VLA decl
8592 on omp target/target data don't add firstprivate for the pointer.
8593 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
8594 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
8595 the addition of ORT_COMBINED_TARGET.
8596 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
8597 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
8598 pointers as zero length array sections and
8599 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
8601 (omp_check_private): Handle omp_member_access_dummy_var vars.
8602 (find_decl_expr): New function.
8603 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
8604 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
8605 Handle OMP_CLAUSE_GANG separately. Handle
8606 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8607 clauses. Diagnose linear clause on combined
8608 distribute {, parallel for} simd construct, unless it is the loop
8609 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
8610 Handle map clauses with COMPONENT_REF. Initialize
8611 ctx->target_map_scalars_firstprivate,
8612 ctx->target_firstprivatize_array_bases and
8613 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
8614 linear clause even to target region if combined. Remove
8615 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
8616 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
8617 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
8618 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
8619 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
8620 For linear clause on worksharing loop combined with parallel add
8621 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
8622 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
8623 omp_member_access_dummy_var vars. Add lastprivate clause to outer
8625 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
8626 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
8627 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
8629 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
8630 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
8631 in target body. Handle removal of struct mapping if struct is not
8632 seen in target body. Remove GOMP_MAP_STRUCT map clause on
8633 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
8634 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
8635 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
8636 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
8637 clause appear together. Handle
8638 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
8639 clause if it has map-type-modifier always. Handle
8640 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8642 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
8643 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
8645 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
8646 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
8647 iterators in doacross loops.
8648 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
8649 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
8650 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
8651 for the addition of ORT_COMBINED_TARGET.
8652 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
8653 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
8654 and OMP_TARGET_EXIT_DATA.
8655 (gimplify_omp_ordered): New function.
8656 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
8657 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
8658 Gimplify clauses on OMP_CRITICAL.
8659 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
8660 expand_GOMP_SIMD_ORDERED_END): New functions.
8661 * internal-fn.def (GOMP_SIMD_ORDERED_START,
8662 GOMP_SIMD_ORDERED_END): New internal functions.
8663 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
8664 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
8665 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
8666 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
8667 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
8668 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
8669 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
8670 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
8671 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
8672 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
8673 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
8674 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
8675 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
8676 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
8678 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
8679 GOMP_target_data_41, adjust type.
8680 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
8681 GOMP_target_update_41, adjust type.
8682 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
8684 (struct omp_for_data): Add ordered and simd_schedule fields.
8685 (omp_member_access_dummy_var, unshare_and_remap_1,
8686 unshare_and_remap, is_taskloop_ctx): New functions.
8687 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
8688 (extract_omp_for_data): Handle taskloops and doacross loops
8689 and simd schedule modifier.
8690 (omp_adjust_chunk_size): New function.
8691 (get_ws_args_for): Use it.
8692 (lookup_sfield): Change first argument to splay_tree_key,
8693 add overload with first argument tree.
8694 (maybe_lookup_field): Likewise.
8695 (use_pointer_for_field): Handle omp_member_access_dummy_var.
8696 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
8697 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
8698 (build_outer_var_ref): Add LASTPRIVATE argument, handle
8699 taskloops and omp_member_access_dummy_var vars.
8700 (build_sender_ref): Change first argument to splay_tree_key,
8701 add overload with first argument tree.
8702 (install_var_field): For mask & 8 use &DECL_UID as key instead
8704 (fixup_child_record_type): Const qualify *.omp_data_i.
8705 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
8706 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
8707 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
8708 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
8709 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
8710 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
8711 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
8713 (add_taskreg_looptemp_clauses): New function.
8714 (scan_omp_parallel): Use it.
8715 (scan_omp_task): Likewise.
8716 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8717 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
8718 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8719 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
8720 sandwiched taskloop constructs. Type check
8721 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
8722 region. Diagnose depend(source) or depend(sink:...) on
8723 target constructs or task/taskloop.
8724 (handle_simd_reference): Use get_name.
8725 (lower_rec_input_clauses): Likewise. Ignore all
8726 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
8727 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
8728 before passing it to omp_clause_{default,copy}_ctor. Handle
8729 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
8730 lastprivate_firstprivate flag for linear that needs copyin and
8731 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
8732 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
8733 on taskloop lookup decl in outer context. Pass true to
8734 build_outer_var_ref lastprivate argument. Handle
8735 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
8736 outside of outer taskloop for.
8737 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
8739 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
8740 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
8741 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
8742 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
8743 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
8744 abstract origin. Handle omp_member_access_dummy_var vars.
8745 (expand_parallel_call): Use expand_omp_build_assign.
8746 (expand_task_call): Handle taskloop construct expansion. Add
8747 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
8748 integers. Add priority argument to GOMP_task* calls. Or in
8749 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
8751 (expand_omp_build_assign): Add prototype. Add AFTER
8752 argument, if true emit statements after *GSI_P and continue linking.
8753 (expand_omp_taskreg): Adjust expand_task_call caller.
8754 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
8755 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
8756 zero_iter2_bb and first_zero_iter2 arguments, handle computation
8757 of counts even for ordered loops.
8758 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
8759 (expand_omp_ordered_source, expand_omp_ordered_sink,
8760 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
8762 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
8763 clauses on worksharing loop. Handle DOACROSS loop expansion.
8764 (expand_omp_for_static_nochunk): Handle linear clauses on
8765 worksharing loop. Adjust expand_omp_for_init_counts
8767 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
8768 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
8769 expand_omp_for_init_counts callers.
8770 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
8772 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
8773 Handle doacross loops.
8774 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8775 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
8776 GOMP_target_{41,update_41,enter_exit_data} libcalls.
8777 (expand_omp): Don't expand ordered depend constructs here, record
8778 ord_stmt instead for later expand_omp_for_generic.
8779 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8780 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
8781 clause as stand-alone directive.
8782 (lower_omp_ordered_clauses): New function.
8783 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
8784 don't lower anything.
8785 (lower_omp_for_lastprivate): Use last _looptemp_ clause
8786 on taskloop for comparison.
8787 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
8788 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
8789 expansion for linear adjustments.
8790 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8791 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
8792 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
8793 to tree * pointing to the stmt's clauses.
8794 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
8795 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8796 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
8797 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
8798 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
8799 clauses. Always use short kind and 8-bit align shift.
8800 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
8801 (struct lower_omp_regimplify_operands_data): New type.
8802 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
8804 (lower_omp_1): Use lower_omp_regimplify_operands instead of
8805 gimple_regimplify_operands.
8806 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8807 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
8808 clause as stand-alone directive.
8809 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
8810 (simd_clone_mangle): Mangle the various linear kinds
8812 (simd_clone_adjust_argument_types): Handle
8813 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
8814 (simd_clone_init_simd_arrays): Don't do anything for uval.
8815 (simd_clone_adjust): Handle
8816 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
8817 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
8818 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
8819 * omp-low.h (omp_member_access_dummy_var): New prototype.
8820 * passes.def (pass_simduid_cleanup): Schedule another copy of the
8821 pass after all optimizations.
8822 * tree.c (omp_clause_code_name): Add entries for
8823 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8824 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8825 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
8826 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
8827 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
8828 OMP_CLAUSE_REDUCTION 5 arguments. Handle
8829 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8830 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
8832 * tree-core.h (enum omp_clause_linear_kind): New.
8833 (struct tree_omp_clause): Change type of map_kind
8834 from unsigned char to unsigned int. Add subcode.if_modifier
8835 and subcode.linear_kind fields.
8836 (enum omp_clause_code): Add
8837 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8838 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8839 (OMP_CLAUSE_REDUCTION): Document
8840 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8841 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
8842 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
8843 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
8845 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
8847 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
8849 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
8850 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
8852 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
8853 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
8854 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
8855 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
8856 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
8857 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
8858 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
8859 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
8860 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
8861 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
8862 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
8863 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
8864 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
8865 * tree-inline.c (remap_gimple_stmt): Handle clauses on
8866 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
8867 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
8868 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
8869 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8870 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8871 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8872 (convert_local_omp_clauses): Likewise.
8873 * tree-pretty-print.c (dump_omp_clause): Handle
8874 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8875 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8876 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
8877 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
8878 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
8879 GOMP_MAP_FORCE_DEALLOC. Handle
8880 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
8881 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
8882 and clauses on OMP_ORDERED and OMP_CRITICAL.
8883 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
8884 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
8885 (vectorize_loops): Adjust comments.
8886 (pass_simduid_cleanup::execute): Likewise.
8887 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
8888 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
8889 * wide-int.h (wi::gcd): New.
8891 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
8893 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
8894 (ix86_function_arg_advance): Ditto.
8895 (ix86_function_arg): Ditto.
8896 (ix86_gimplify_va_arg): Ditto.
8897 (ix86_class_max_nregs): Ditto.
8898 (inline_memory_move_cost): Ditto.
8899 (ix86_set_reg_reg_cost): Ditto.
8900 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
8902 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
8905 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
8907 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
8909 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
8910 ROUND_UP macro and UNITS_PER_WORD * 2.
8911 * config/sparc/sparc.c (sparc_compute_frame_size):
8912 Use ROUND_UP and ROUND_DOWN macros where applicable.
8913 (function_arg_record_value, function_arg_record_value_1)
8914 (function_arg_record_value_1): Ditto.
8915 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
8916 alignment to double-word.
8917 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
8918 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
8921 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
8923 * rtl.h (print_insn): Fix prototype.
8925 2015-10-13 Tom de Vries <tom@codesourcery.com>
8927 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
8928 -1. Add assert that returned entry matches phi argument.
8929 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
8930 free_stmt_vec_info_vec ...
8931 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
8934 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
8936 PR tree-optimization/67909, 67947
8937 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
8938 really skip the inner loop.
8940 2015-10-13 Jeff Law <law@redhat.com>
8942 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8943 Allow single block jump threading paths.
8945 2015-10-13 Tom de Vries <tom@codesourcery.com>
8947 PR tree-optimization/67476
8948 * doc/invoke.texi (@item parloops-schedule): New item.
8949 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
8950 * tree-parloops.c: Include params-enum.h.
8951 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
8953 2015-10-13 Tom de Vries <tom@codesourcery.com>
8955 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
8956 * params-enum.h: New file.
8957 * opts.c (handle_param): Handle case that param arg is a string.
8958 * params-list.h: Handle DEFPARAMENUM5 in params.def.
8959 * params.c (find_param): New function, factored out of ...
8960 (set_param_value): ... here.
8961 (param_string_value_p): New function.
8962 * params.h (struct param_info): Add value_names field.
8963 (find_param, param_string_value_p): Declare.
8965 2015-10-13 Tom de Vries <tom@codesourcery.com>
8967 PR tree-optimization/67476
8968 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
8970 2015-10-13 Richard Biener <rguenther@suse.de>
8972 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
8973 the data dependence vector.
8974 (vect_peeling_hash_insert): Get the peeling hash table as argument.
8975 (vect_peeling_hash_get_lowest_cost): Likewise.
8976 (vect_enhance_data_refs_alignment): Adjust.
8977 (struct _vect_peel_info, struct _vect_peel_extended_info,
8978 struct peel_info_hasher): Move from ...
8979 * tree-vectorizer.h: ... here.
8980 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
8981 (LOOP_VINFO_PEELING_HTAB): Likewise.
8982 (struct _loop_vec_info): Remove min_profitable_iters and
8983 peeling_htab members.
8984 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
8986 (destroy_loop_vec_info): Adjust.
8987 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
8988 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
8989 to estimate alias versioning cost.
8990 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
8992 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
8994 * real.h (real_isinteger): Declare.
8995 * real.c (real_isinteger): New function.
8996 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
8997 if y is an even integer.
8999 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9002 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9003 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9004 counts when these are more informative.
9006 2015-10-12 Jeff Law <law@redhat.com>
9008 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
9009 (fsm_find_control_stmt_paths): Change name of first argument to
9010 more accurately relfect what it really is. Handle simplification
9011 of GIMPLE_COND after finding a thread path for NAME.
9012 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
9013 nontrivial conditions to be handled by FSM threader.
9014 (thread_through_normal_block): Extract the name to looup via
9015 FSM threader from COND_EXPR.
9017 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
9018 restriction that traced SSA_NAME is a user variable.
9020 2015-10-12 Tom de Vries <tom@codesourcery.com>
9022 PR tree-optimization/67476
9023 * omp-low.c (expand_omp_for_generic): Add missing phis.
9025 2015-10-12 Tom de Vries <tom@codesourcery.com>
9027 PR tree-optimization/67476
9028 * omp-low.c (expand_omp_for_generic): Handle simple latch.
9030 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
9032 * config/aarch64/aarch64-simd-builtins.def: Update builtins
9033 tables: add tbl3 and tbx4.
9034 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
9035 (aarch64_tbx4v8qi): New.
9036 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
9037 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
9038 Rewrite using builtin functions.
9039 * config/aarch64/iterators.md (UNSPEC_TBX): New.
9041 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
9043 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
9045 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
9046 Use ROUND_UP and ROUND_DOWN macros where applicable.
9047 (rs6000_darwin64_record_arg_flush): Ditto.
9048 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
9049 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
9052 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
9054 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
9055 (AARCH64_ROUND_DOWN): Ditto.
9056 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
9058 2015-10-12 Richard Biener <rguenther@suse.de>
9061 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
9062 code that analyzes IVs on each stmt but in a cheaper way avoiding
9065 2015-10-12 Nick Clifton <nickc@redhat.com>
9067 * config/msp430/msp430.c (msp430_mcu_names): Rename to
9068 msp430_mcu_data, add fields for ISA and hardware multiply
9069 support. Import latest data from the devices.csv file.
9070 (msp430_override_option): Use the data from the new array.
9071 (msp430_use_f5_series_hwmult): Likewise.
9072 (use_32bit_hwmult): Likewise.
9073 (msp430_no_hwmult): Likewise.
9074 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
9076 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
9077 not recognised then no hardware multiply support is assumed and
9078 that only the MSP430 ISA is allowed.
9080 2015-10-12 Richard Biener <rguenther@suse.de>
9082 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
9084 (vect_analyze_loop_2): ... here.
9086 2015-10-11 Jason Merrill <jason@redhat.com>
9089 * expr.c (store_field): Call store_constructor directly when
9090 storing a CONSTRUCTOR into a target smaller than its type.
9091 Guard against unsafe bitwise copy.
9093 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9095 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9096 counts when these are more informative.
9098 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9100 * tree-profile.c (tree_profiling): Do not clear
9101 pure/const when not instrumenting.
9102 (pass tree_profile): Add dump of symtab.
9104 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9106 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
9108 (fold_addr_of_array_ref_difference): Likewise.
9110 2015-10-11 Jeff Law <law@redhat.com>
9112 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
9113 tree-ssa-threadbackward.c.
9114 (fsm_find_control_statement_thread_paths): Likewise.
9115 (thread_through_normal_block): Break out FSM bits and move them
9116 into a new function in tree-ssa-threadbackward.c. Call new function
9118 Minimize header file usage.
9119 * tree-ssa-threadbackward.h: New file.
9120 * tree-ssa-threadbackward.c: Likewise.
9121 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
9123 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
9125 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
9127 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
9129 PR rtl-optimization/67864
9130 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
9131 fallthrough edges for conditional jumps. Don't sort candidate
9132 edges if not optimizing for speed.
9134 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9136 * defaults.h (REVERSE_CONDITION): New default definition.
9137 * jump.c (reversed_comparison_code_parts): Adjust.
9139 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9141 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
9142 check HARD_FRAME_POINTER_IS_ARG_POINTER.
9144 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9146 * defaults.h (FRAME_ADDR_RTX): New default definition.
9147 * builtins.c (expand_builtin_return_addr): Adjust.
9149 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9151 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
9152 * builtins.c (expand_builtin_return_addr): Adjust.
9154 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9156 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
9157 * builtins.c (expand_builtin_return_addr): Adjust.
9158 * doc/tm.texi: Likewise.
9159 * doc/tm.texi.in: Likewise.
9160 * except.c (expand_builtin_unwind_init): Likewise.
9162 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9164 * builtins.c (expand_builtin_return_addr): Adjust.
9165 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
9167 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
9169 * tree.c (type_with_interoperable_signedness): New.
9170 (gimple_canonical_types_compatible_p): Use it.
9171 * tree.h (type_with_interoperable_signedness): Declare
9173 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
9175 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
9176 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
9177 when OEP_ADDRESS_OF is se.
9179 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
9180 Sebastian Pop <s.pop@samsung.com>
9182 * graphite-dependences.c (scop_get_dependences): Add dump of the
9183 data dependence graph.
9184 * graphite-poly.c (print_isl_union_map): New.
9185 (debug_isl_union_map): New.
9186 * graphite-poly.h (print_isl_union_map): Declare.
9187 (debug_isl_union_map): Declare.
9189 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
9190 Sebastian Pop <s.pop@samsung.com>
9192 * graphite-poly.c (print_iteration_domain): Remove verbosity.
9193 Remove OpenScop formatting.
9194 (print_iteration_domains): Same.
9195 (debug_iteration_domain): Same.
9196 (debug_iteration_domains): Same.
9199 (dump_gbb_cases): Same.
9200 (dump_gbb_conditions): Same.
9203 (print_pbb_body): Same.
9205 (print_scop_params): Same.
9206 (print_scop_context): Same.
9208 (debug_pbb_domain): Same.
9210 (debug_scop_context): Same.
9212 (debug_scop_params): Same.
9213 * graphite-poly.h: Same.
9214 * graphite.c (graphite_transform_loops): Same.
9216 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9218 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
9219 call that isn't needed.
9221 2015-10-09 Jeff Law <law@redhat.com>
9223 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
9224 rather than moving each name to the freelist individually.
9226 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
9228 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
9229 * frame-header-opt.c: New file.
9230 * config/mips/mips-proto.h (mips_register_frame_header_opt):
9232 * config/mips/mips.c (mips_compute_frame_info): Check
9233 optimize_call_stack flag.
9234 (mips_option_override): Register new frame_header_opt pass.
9235 (mips_frame_info, mips_int_mask, mips_shadow_set,
9236 machine_function): Move these types to...
9237 * config/mips/mips.h: here.
9238 (machine_function): Add does_not_use_frame_header and
9239 optimize_call_stack fields.
9240 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
9241 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
9243 * config/mips/mips.opt (mframe-header-opt): Add new option.
9245 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
9247 * config/i386/i386.c
9248 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
9249 ROUND_DOWN where applicable.
9251 2015-10-09 Jeff Law <law@redhat.com>
9253 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
9256 2015-10-09 Renlin Li <renlin.li@arm.com>
9258 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
9259 operands[0] and operands[2].
9260 (neon_vtrn<mode>_insn): Likewise.
9261 (neon_vzip<mode>_insn): Likewise.
9263 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
9265 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
9266 ((X & C2) << C1): Expand to...
9267 (X {&,^,|} C2 << C1): ...This.
9268 ((X & C2) >> C1): Expand to...
9269 (X {&,^,|} C2 >> C1): ...This.
9271 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
9274 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
9275 Adjust embedded rounding/SAE specifier position.
9276 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
9277 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
9278 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
9279 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
9280 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
9282 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
9284 2015-10-09 Martin Jambor <mjambor@suse.cz>
9286 tree-optimization/67794
9287 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
9288 between types of state,ents but accept original definitions as a
9290 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
9291 iterate over definitions.
9293 2015-10-09 James Norris <jnorris@codesourcery.com>
9295 * config/rs6000/rs6000.c (rs6000_offload_options): New.
9296 (TARGET_OFFLOAD_OPTIONS): New.
9298 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
9301 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
9304 * function.c (expand_function_end): Move return value
9305 promotion past the handling of PARALLELs and CONCATs.
9307 PR rtl-optimization/67828
9308 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
9309 (tree_may_unswitch_on): Don't unswitch on expressions
9310 involving undefined values.
9312 2015-10-09 Richard Biener <rguenther@suse.de>
9314 * genmatch.c (print_operand): Fix formatting.
9315 (dt_node::append_simplify): Warn for multiple simplifiers
9316 that match the same pattern.
9317 * match.pd (log (exp @0)): Remove duplicates.
9319 2015-10-09 Richard Biener <rguenth@suse.de>
9322 * gimple-fold.c (optabs-query.h): Include
9323 (gimple_fold_builtin_memory_op): Allow unaligned stores
9324 when movmisalign_optabs are available.
9326 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9329 * config/arm/arm.md (movmisalign<mode>): New.
9330 * config/arm/iterators.md (HSI): New.
9332 2015-10-09 Richard Biener <rguenther@suse.de>
9334 PR tree-optimization/67891
9335 * gimple-match.h (gimple_simplified_result_is_gimple_val):
9337 (gimple_resimplify1): Declare.
9338 (gimple_resimplify2): Likewise.
9339 (gimple_resimplify3): Likewise.
9340 * gimple-match-head.c (gimple_resimplify1): Export.
9341 (gimple_resimplify2): Likewise.
9342 (gimple_resimplify3): Likewise.
9343 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
9344 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9345 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
9346 to avoid creating stmts without VN info.
9348 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
9350 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
9353 2015-10-08 Jeff Law <law@redhat.com>
9355 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
9356 and release_ssa_name in two places.
9357 (gimple_stringop_fixed_value): Similarly.
9359 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
9362 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
9363 unlink_stmt_vdef and release_ssa_name_fn.
9365 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
9368 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
9370 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
9371 SSE register save area to 16 bytes only if the incoming stack
9372 boundary is no less than 16 bytes.
9374 2015-10-08 Jeff Law <law@redhat.com>
9376 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
9377 release_ssa_name. Fix typo in comment.
9379 2015-10-08 Nathan Sidwell <nathan@acm.org>
9381 * config/nvptx/nvptx.h (struct machine_function): Add comment.
9382 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
9383 may return pointer as well as in memory.
9384 (nvptx_output_return): Likewise.
9386 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
9388 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
9389 (fold_builtin_1): Update accordingly. Handle constant arguments here.
9390 * match.pd: Add rules previously handled by fold_builtin_sqrt
9391 and fold_builtin_cbrt.
9393 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
9395 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
9396 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
9397 * fold-const.h (tree_unary_nonnegative_warnv_p)
9398 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9399 (tree_expr_nonnegative_warnv_p): Add depth parameters.
9400 * fold-const.c: Include gimple-fold.h and params.h.
9401 (tree_ssa_name_nonnegative_warnv_p): New function.
9402 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
9403 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9404 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
9405 Add a depth parameter and increment it for recursive calls to
9406 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
9407 to handle SSA names.
9408 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
9409 (gimple_stmt_nonnegative_warnv_p): Declare.
9410 * tree-vrp.c (remove_range_assertions): Remove assert that condition
9411 cannot be proven false.
9412 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
9413 (gimple_stmt_nonnegative_warnv_p): Move to...
9414 * gimple-fold.c: ...here. Add depth parameters and pass them
9415 down to the tree routines. Accept statements that aren't
9416 assignments or calls but just return false for them.
9417 (gimple_val_nonnegative_real_p): Delete.
9418 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
9419 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
9420 Check HONOR_NANs first.
9422 2015-10-08 Martin Jambor <mjambor@suse.cz>
9424 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
9427 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9429 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
9430 in the tail of outer-loop.
9432 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
9434 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
9437 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9439 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
9440 "cfghooks.h", add prototypes for introduced new functions.
9441 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
9442 checks on ability of loop unswitching to tree_unswitch_single_loop;
9443 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
9444 on innermost loop check.
9445 (tree_unswitch_single_loop): Add all required checks on ability of
9446 loop unswitching under zero recursive level guard.
9447 (tree_unswitch_outer_loop): New function.
9448 (find_loop_guard): Likewise.
9449 (empty_bb_without_guard_p): Likewise.
9450 (used_outside_loop_p): Likewise.
9451 (get_vop_from_header): Likewise.
9452 (hoist_guard): Likewise.
9453 (check_exit_phi): Likewise.
9455 2015-10-08 Marek Polacek <polacek@redhat.com>
9457 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
9460 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9463 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
9464 create_tmp_var_raw instead of create_tmp_var.
9466 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
9468 * expr.c (store_expr_with_bounds): Handle aggregate moves from
9470 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
9471 to define gimple type system; compare aggregates only by size.
9473 2015-10-07 Jeff Law <law@redhat.com>
9475 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
9476 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
9477 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
9480 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9481 Sebastian Pop <s.pop@samsung.com>
9483 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
9484 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
9485 (generate_isl_schedule): Same.
9486 * graphite-optimize-isl.c (scop_get_domains): Same.
9487 (apply_schedule_map_to_scop): Same.
9488 * graphite-poly.c (print_iteration_domains): Same.
9489 (remove_gbbs_in_scop): Same.
9493 * graphite-poly.h (struct scop): Rename bbs to pbbs.
9495 * graphite-scop-detection.c (compare_bb_depths): Remove.
9496 (graphite_sort_dominated_info): Remove.
9497 (try_generate_gimple_bb): Move out of scop_detection.
9498 (all_non_dominated_preds_marked_p): Remove.
9499 (build_scop_bbs_1): Remove.
9500 (build_scop_bbs): Remove.
9501 (nb_pbbs_in_loops): Do not use SCOP_BBS.
9502 (find_scop_parameters): Same.
9503 (sese_dom_walker): Rename gather_bbs.
9504 (before_dom_children): Call try_generate_gimple_bb and collect gbb
9506 (build_scops): Call gather_bbs.
9507 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
9508 (add_conditions_to_constraints): Same.
9509 (build_scop_iteration_domain): Same.
9510 (build_scop_drs): Same.
9511 (new_pbb_from_pbb): Same.
9512 * sese.c (new_sese_info): Create bbs.
9513 * sese.h (struct sese_info_t): Add bbs.
9515 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
9517 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
9518 encoding in 64-bit mode.
9520 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
9523 * config/i386/i386.c (ix86_option_override_internal): Always use
9524 8-byte minimum stack boundary in 64-bit mode.
9525 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
9526 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
9527 Add a REG_CFA_EXPRESSION note if needed.
9528 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
9529 (ix86_handle_force_align_arg_pointer_attribute): New.
9530 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
9531 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
9532 with ix86_handle_force_align_arg_pointer_attribute.
9533 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
9535 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9536 Sebastian Pop <s.pop@samsung.com>
9538 * graphite-scop-detection.c (parameter_index_in_region): Remove
9539 use of SESE_ADD_PARAMS.
9540 (find_scop_parameters): Same.
9541 * sese.c (new_sese_info): Same.
9542 * sese.h (struct sese_info_t): Remove add_params.
9543 (SESE_ADD_PARAMS): Remove.
9545 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9546 Sebastian Pop <s.pop@samsung.com>
9548 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
9551 (copy_internal_parameters): Same.
9552 (translate_isl_ast_to_gimple): Use an sese_l.
9553 (build_iv_mapping): Same.
9554 * graphite-poly.c (new_sese): Rename new_sese_info.
9555 (free_sese): Rename free_sese_info.
9556 * graphite-poly.h (struct scop): Use an sese_info_p.
9557 (scop_set_region): Same.
9558 * graphite-scop-detection.c (struct sese_l): Moved...
9559 (get_entry_bb): Moved...
9560 (get_exit_bb): Moved...
9561 (parameter_index_in_region_1): Use an sese_info_p.
9562 (parameter_index_in_region): Same.
9563 (scan_tree_for_params): Same.
9564 (find_params_in_bb): Same.
9565 (sese_dom_walker): Use an sese_l.
9566 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
9567 (reduction_phi_p): Same.
9568 (parameter_index_in_region_1): Use an sese_info_p.
9569 (propagate_expr_outside_region): Use an sese_l.
9570 * graphite.c: Replace uses of SCOP_REGION.
9571 * sese.c (sese_record_loop): Use an sese_info_p.
9572 (build_sese_loop_nests): Same.
9573 (sese_build_liveouts_use): Same.
9574 (sese_build_liveouts_bb): Same.
9575 (sese_build_liveouts_bb): Same.
9576 (sese_bad_liveouts_use): Same.
9577 (sese_reset_debug_liveouts_bb): Same.
9578 (sese_build_liveouts): Same.
9579 (new_sese): Renamed new_sese_info.
9580 (free_sese): Renamed free_sese_info.
9581 (set_rename): Use an sese_info_p.
9582 (graphite_copy_stmts_from_block): Same.
9583 (copy_bb_and_scalar_dependences): Same.
9584 (outermost_loop_in_sese_1): Use an sese_l.
9585 (outermost_loop_in_sese): Same.
9586 (if_region_set_false_region): Use an sese_info_p.
9587 (move_sese_in_condition): Same.
9588 (scalar_evolution_in_region): Use an sese_l.
9589 * sese.h (struct sese_l): ... here.
9590 (SESE_ENTRY): Remove.
9591 (SESE_ENTRY_BB): Remove.
9592 (SESE_EXIT): Remove.
9593 (SESE_EXIT_BB): Remove.
9594 (sese_contains_loop): Use an sese_info_p.
9595 (sese_nb_params): Same.
9596 (bb_in_sese_p): Use an sese_l.
9597 (stmt_in_sese_p): Same.
9598 (defined_in_sese_p): Same.
9599 (loop_in_sese_p): Same.
9600 (sese_loop_depth): Same.
9601 (struct ifsese_s): Use an sese_info_p.
9602 (gbb_loop_at_index): Use an sese_l.
9603 (nb_common_loops): Same.
9604 (scev_analyzable_p): Same.
9606 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9608 * config/i386/i386.c (ix86_conditional_register_usage): Use
9609 CALL_USED_REGISTERS_MASK.
9610 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
9612 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9615 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
9616 * configure: Regenerated.
9618 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9621 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
9622 (ix86_set_current_function): This.
9623 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
9625 2015-10-07 Richard Biener <rguenther@suse.de>
9627 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
9628 (vinfo_for_stmt): Adjust.
9629 (set_vinfo_for_stmt): Likewise.
9630 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
9631 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
9632 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
9634 (vect_analyze_loop_1): Remove.
9635 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
9636 inner loop when vectorizing an outer loop by splitting out from ...
9637 (vect_analyze_loop_form): ... here.
9639 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9642 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
9643 Use create_tmp_var_raw instead of create_tmp_var.
9645 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
9647 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
9648 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
9649 * real.c (CACHED_FRACTION): New helper macro.
9650 (dconst_third_ptr): Use it.
9651 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
9652 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
9654 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
9656 2015-10-06 Jeff Law <law@redhat.com>
9658 PR tree-optimization/67816
9659 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
9660 from remove_jump_threads_starting_at. Accept an edge rather than
9662 * tree-ssa-threadupdate.c (removed_edges): New hash table.
9663 (remove_jump_threads_including): Note edges that get removed from
9664 the CFG for later pruning of jump threading paths including them.
9665 (thread_through_all_blocks): Remove paths which include edges that
9667 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
9668 on each outgoing edges when optimizing away a control statement.
9670 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9672 * reorg.c (emit_delay_sequence): Store list of delay slot insns
9673 in a vector instead of rtx_insn_list.
9674 (add_to_delay_list): Likewise.
9675 (delete_from_delay_slot): Likewise.
9676 (optimize_skip): Likewise.
9677 (redirect_with_delay_list_safe_p): Likewise.
9678 (check_annul_list_true_false): Likewise.
9679 (steal_delay_list_from_target): Likewise.
9680 (steal_delay_list_from_fallthrough): Likewise.
9681 (redundant_insn): Likewise.
9682 (fill_simple_delay_slots): Likewise.
9683 (fill_slots_from_thread): Likewise.
9684 (fill_eager_delay_slots): Likewise.
9685 (relax_delay_slots): Likewise.
9687 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
9689 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
9690 For -mgpopt=local, also exclude unintialized common symbols.
9691 * doc/invoke.texi (Nios II Options): Document the change.
9693 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
9695 * config/aarch64/iterators.md (vwcore): Add missing cases for
9698 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9699 Sebastian Pop <s.pop@samsung.com>
9701 * graphite-poly.c (new_scop): Initialize drs.
9702 * graphite-poly.h (struct dr_info): New.
9703 (struct scop): Add drs.
9704 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
9705 (pdr_add_memory_accesses): Same.
9706 (build_poly_dr): Same.
9707 (build_alias_set): Same.
9708 (build_scop_drs): Same.
9709 (build_pbb_drs): Remove.
9710 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
9711 * tree-data-ref.h (data_reference): Remove alias_set.
9713 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9714 Sebastian Pop <s.pop@samsung.com>
9716 * graphite-poly.c (free_data_refs_aux): Remove.
9717 (free_gimple_poly_bb): Do not call free_data_refs_aux.
9718 * graphite-poly.h (struct base_alias_pair): Remove.
9719 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
9720 base_alias_pair and dr->aux.
9721 (build_alias_set): Same.
9722 * tree-data-ref.c (create_data_ref): Initialize alias_set.
9723 * tree-data-ref.h (data_reference): Add alias_set.
9725 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9726 Sebastian Pop <s.pop@samsung.com>
9728 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
9729 Do not set PDR_BASE_OBJECT_SET.
9730 * graphite-poly.h (poly_dr): Same.
9731 (PDR_BASE_OBJECT_SET): Remove.
9732 (new_poly_dr): Update decl.
9733 * graphite-sese-to-poly.c (build_poly_dr): Update call to
9735 (write_alias_graph_to_ascii_dimacs): Remove.
9736 (write_alias_graph_to_ascii_dot): Remove.
9737 (write_alias_graph_to_ascii_ecc): Remove.
9738 (dr_same_base_object_p): Remove.
9739 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
9741 (build_base_obj_set_for_drs): Remove.
9742 (dump_alias_graphs): Remove.
9743 (build_scop_drs): Remove dead code.
9745 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9746 Peter Bergner <bergner@vnet.ibm.com>
9749 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
9750 allow registers, but provide insns for the combiner to create for
9751 loads from memory. Separate VSX code from non-VSX code. For
9752 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
9753 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
9754 so that registers come before memory operations. Drop support from
9755 converting DFmode to TFmode, if the DFmode value is in a GPR
9757 (extenddftf2_fprs): Likewise.
9758 (extenddftf2_internal): Likewise.
9759 (extenddftf2_vsx): Likewise.
9760 (extendsftf2): In the expander, only allow registers, but provide
9761 insns for the combiner to create for stores and loads.
9763 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9765 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
9766 from the decl parameter.
9768 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
9771 * gimple-fold.c (gimple_fold_builtin): Add break after
9772 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
9774 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
9776 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
9777 to scop->isl_context.
9779 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
9781 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
9782 (output_probe_stack_range): Rotate the loop and simplify.
9783 (thumb1_expand_prologue): Tweak sorry message.
9784 * config/arm/arm.md (probe_stack): Use bare string.
9786 2015-10-06 Nick Clifton <nickc@redhat.com>
9788 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
9790 2015-10-06 Nick Clifton <nickc@redhat.com>
9792 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
9793 (ATTR_PERSIST): New constant.
9794 (msp430_data_attr): New function - verifies an attribute that only
9795 applies to variables.
9796 (msp430_attributes): Add noinit and persistent attributes.
9797 (noinit_section): New variable.
9798 (presis_section): New variable.
9799 (TARGET_ASM_INIT_SECTIONS): Define.
9800 (msp430_init_sections): New function - initialises the noinit and
9801 persist section variables.
9802 (msp430_select_section): Add support for noinit and persist
9804 (msp430_section_type_flags): Likewise.
9805 * doc/extend.texi: Document the reent, critical, wakeup, noinit
9806 and persistent attributes.
9808 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9809 Sebastian Pop <s.pop@samsung.com>
9811 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
9812 (no_violations): Remove.
9813 (subtract_commutative_associative_deps): Remove.
9814 (compute_deps): Do not call subtract_commutative_associative_deps.
9815 (transform_is_safe): Remove.
9816 (graphite_legal_transform): Remove.
9817 * graphite-poly.h (graphite_legal_transform): Remove.
9819 2015-10-05 Aditya Kumar <hiraditya@msn.com>
9821 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
9822 which are in this region are passed so gcc_assert and remove redundant
9824 * sese.c (sese_build_liveouts): Pass only those bbs which are not
9826 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
9827 gcc_assert on that and remove unnecessary computation.
9828 (sese_build_liveouts_use): Same.
9830 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9832 * graphite-dependences.c (scop_get_reads): Renamed scop->context
9833 to scop->param_context.
9834 (scop_get_must_writes): Same.
9835 (scop_get_may_writes): Same.
9836 (scop_get_original_schedule): Same.
9837 (scop_get_transformed_schedule): Same.
9838 (subtract_commutative_associative_deps): Same.
9839 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
9840 (generate_isl_context): Same.
9841 (generate_isl_schedule): Same.
9842 (scop_to_isl_ast): Same.
9843 (graphite_regenerate_ast_isl): Same.
9844 * graphite-optimize-isl.c (scop_get_domains): Same.
9845 (optimize_isl): Renamed scop->context to scop->param_context.
9846 * graphite-poly.c (new_poly_bb): Change the type of argument to
9848 (new_scop): Renamed scop->context to scop->param_context.
9850 (print_scop_context): Same.
9851 * graphite-poly.h (new_poly_dr): Change the type of argument from
9852 void* to data_reference_p.
9853 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
9854 (new_poly_bb): Change the type of argument from void* to
9856 (pbb_set_black_box): Same.
9857 (struct scop): Rename context to param_context, ctx to isl_context.
9858 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
9859 Move declarations closer to assignment.
9860 (find_params_in_bb): Same.
9861 (find_scop_parameters): Same.
9862 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
9863 Global to be used for statement IDs.
9864 (isl_id_for_pbb): Use ssa_name_version_typesize.
9865 (simple_copy_phi_p): Move declarations closer to assignment.
9866 (build_pbb_scattering_polyhedrons): Same.
9867 (build_scop_scattering): Same.
9868 (isl_id_for_ssa_name): Same.
9869 (extract_affine_name): Same.
9870 (extract_affine_int): Same.
9871 (extract_affine): Same.
9872 (set_scop_parameter_dim): Use renamed member.
9873 (build_loop_iteration_domains): Same.
9874 (add_param_constraints): Same.
9875 (build_scop_iteration_domain): Same.
9876 (pdr_add_data_dimensions): Same.
9877 (build_poly_dr): Same.
9878 (build_scop_drs): Move declarations closer to assignment.
9879 (analyze_drs_in_stmts): Same.
9880 (insert_out_of_ssa_copy): Same.
9881 (insert_out_of_ssa_copy_on_edge): Same.
9882 (propagate_expr_outside_region): Same.
9883 (rewrite_phi_out_of_ssa): Same.
9884 (rewrite_degenerate_phi): Same.
9885 (rewrite_reductions_out_of_ssa): Same.
9886 (rewrite_cross_bb_scalar_dependence): Same.
9887 (handle_scalar_deps_crossing_scop_limits): Same.
9888 (rewrite_cross_bb_scalar_deps): Same.
9889 * graphite.c (graphite_transform_loops): Use renamed member.
9891 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
9894 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
9895 create_tmp_var_raw instead of create_tmp_var.
9897 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9900 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
9901 Use create_tmp_var_raw instead of create_tmp_var.
9903 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
9906 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
9907 split for upper-bank registers when target does not support
9909 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
9910 split when target does not support AVX512VL.
9912 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
9915 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
9916 Adjust to use create_tmp_var_raw instead of create_tmp_var.
9918 2015-10-06 Nick Clifton <nickc@redhat.com>
9920 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
9923 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9925 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
9926 (case ${target}): Add znver1.
9927 * config/i386/cpuid.h(bit_CLZERO): Define.
9928 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
9929 -march=native recognize znver1 processors.
9930 * config/i386/i386-c.c (ix86_target_macros_internal): Add
9931 znver1, clzero def_and_undef.
9932 * config/i386/i386.c (struct processor_costs znver1_cost): New.
9933 (m_znver1): New definition.
9934 (m_AMD_MULTIPLE): Includes m_znver1.
9935 (processor_target_table): Add znver1 entry.
9936 (ix86_target_string) : Add clzero entry.
9937 (static const char *const cpu_names): Add znver1 entry.
9938 (ix86_option_override_internal): Add znver1 instruction sets.
9939 (PTA_CLZERO) : New definition.
9940 (ix86_option_override_internal): Handle new clzerooption.
9941 (ix86_issue_rate): Add znver1.
9942 (ix86_adjust_cost): Add znver1.
9943 (ia32_multipass_dfa_lookahead): Add znver1.
9944 (has_dispatch): Add znver1.
9945 * config/i386/i386.h (TARGET_znver1): New definition.
9946 (TARGET_CLZERO): Define.
9947 (TARGET_CLZERO_P): Define.
9948 (struct ix86_size_cost): Add TARGET_ZNVER1.
9949 (enum processor_type): Add PROCESSOR_znver1.
9950 * config/i386/i386.md (define_attr "cpu"): Add znver1.
9951 (set_attr znver1_decode): New definitions for znver1.
9952 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
9954 * config/i386/mmx.md (set_attr znver1_decode): New definitions
9956 * config/i386/sse.md (set_attr znver1_decode): Likewise.
9957 * config/i386/x86-tune.def: Add znver1 tunings.
9958 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
9959 * doc/invoke.texi: Add details about znver1
9961 2015-10-06 Richard Biener <rguenther@suse.de>
9963 PR tree-optimization/67859
9964 * tree-ssa-pre.c (create_expression_by_pieces): Properly
9965 discard not inserted stmts.
9967 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
9969 * doc/extend.texi (Template Instantiation): Reorder options and
9970 de-emphasize -frepo.
9971 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
9972 example instead of -frepo.
9974 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
9977 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
9978 use create_tmp_var_raw rather than create_tmp_var.
9980 2015-10-06 Richard Biener <rguenther@suse.de>
9982 * tree-vectorizer.h (vec_info): New base class for...
9983 (_loop_vec_info): ... this and ...
9984 (_bb_vec_info): ... this.
9985 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
9986 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
9987 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
9988 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
9989 vect_destroy_datarefs): Adjust interface to take a vec_info *
9990 rather than both a loop_vec_info and a bb_vec_info argument.
9991 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
9992 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
9993 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
9994 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
9996 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
9997 (destroy_loop_vec_info, vect_analyze_loop_2,
9998 vect_is_simple_reduction_1, get_initial_def_for_induction,
9999 vect_create_epilog_for_reduction, vectorizable_reduction,
10000 vectorizable_live_operation, vect_transform_loop): Adjust.
10001 * tree-vect-patterns.c (type_conversion_p,
10002 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
10003 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
10004 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
10005 check_bool_pattern, vect_recog_bool_pattern,
10006 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
10007 * tree-vect-slp.c (vect_get_and_check_slp_defs,
10008 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
10009 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
10010 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
10011 (new_bb_vec_info): Initialize base classs.
10012 * tree-vect-stmts.c (record_stmt_cost, process_use,
10013 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
10014 vectorizable_mask_load_store, vectorizable_call,
10015 vectorizable_simd_clone_call, vectorizable_conversion,
10016 vectorizable_assignment, vectorizable_shift,
10017 vectorizable_operation, vectorizable_store,
10018 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
10019 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
10020 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
10022 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
10025 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
10026 create_tmp_var_raw rather than create_tmp_var.
10028 2015-10-05 Marek Polacek <polacek@redhat.com>
10030 * tree-ssa-loop-im.c
10031 (move_computations_dom_walker::before_dom_children): Don't set
10032 SSA_NAME_ANTI_RANGE_P.
10033 * tree-ssa-phiopt.c (value_replacement): Likewise.
10035 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10036 Sebastian Pop <s.pop@samsung.com>
10038 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
10040 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10041 Sebastian Pop <s.pop@samsung.com>
10043 * graphite-poly.c (new_gimple_poly_bb): ... here.
10044 (free_data_refs_aux): ... here.
10045 (free_gimple_poly_bb): ... here.
10046 (remove_gbbs_in_scop): ... here.
10047 (new_scop): Call new_sese.
10048 (free_scop): Call remove_gbbs_in_scop and free_sese.
10049 * graphite-poly.h (base_alias_pair): ... here.
10050 (new_gimple_poly_bb): Declare.
10051 (free_gimple_poly_bb): Declare.
10052 * graphite-scop-detection.c (parameter_index_in_region_1):
10053 (parameter_index_in_region): ... here.
10054 (scan_tree_for_params): ... here.
10055 (find_params_in_bb): ... here.
10056 (find_scop_parameters): ... here.
10057 (build_scops): Call find_scop_parameters.
10058 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
10059 (free_scops): Move...
10060 (single_pred_cond_non_loop_exit): Move...
10061 (sese_dom_walker::before_dom_children): Move...
10062 (sese_dom_walker::after_dom_children): Move...
10063 (build_poly_scop): Move...
10064 * graphite-sese-to-poly.h (base_alias_pair): Move...
10065 * graphite.c (free_scops): ... here.
10067 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10068 Sebastian Pop <s.pop@samsung.com>
10070 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
10071 (trivially_empty_bb_p): Move...
10072 (same_close_phi_node): Move...
10073 (new_gimple_poly_bb): Move...
10074 (compare_bb_depths): Move...
10075 (graphite_sort_dominated_info): Move...
10076 (remove_duplicate_close_phi): Move...
10077 (make_close_phi_nodes_unique): Move...
10078 (canonicalize_loop_closed_ssa): Move...
10079 (canonicalize_loop_closed_ssa_form): Move...
10080 (loop_ivs_can_be_represented): Move...
10081 (single_pred_cond_non_loop_exit): Move...
10082 (graphite_can_represent_init): Move...
10083 (graphite_can_represent_scev): Move...
10084 (stmt_has_simple_data_refs_p): Move...
10085 (stmt_has_side_effects): Move...
10086 (graphite_can_represent_stmt): Move...
10087 (scop_detection): ... here.
10088 (sese_dom_walker): ... and here.
10089 (build_scops): Call all moved functions.
10090 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
10091 (all_non_dominated_preds_marked_p): Move...
10092 (build_scop_bbs_1): Move...
10093 (build_scop_bbs): Move...
10094 (set_scop_parameter_dim): Move...
10095 (nb_pbbs_in_loops): Move...
10096 (build_poly_scop): Do not call all the moved functions.
10098 2015-10-05 Martin Jambor <mjambor@suse.cz>
10099 Jan Hubicka <hubicka@ucw.cz>
10101 * ipa-cp.c (ipcp_alignment_lattice): New type.
10102 (ipcp_param_lattices): Use the above to represent alignment.
10103 (ipcp_alignment_lattice::print): New function.
10104 (print_all_lattices): Use it to print alignment information.
10105 (ipcp_alignment_lattice::top_p): New function.
10106 (ipcp_alignment_lattice::bottom_p): Likewise.
10107 (ipcp_alignment_lattice::set_to_bottom): Likewise.
10108 (ipcp_alignment_lattice::meet_with_1): Likewise.
10109 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
10110 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
10111 (initialize_node_lattices): Likewise.
10112 (propagate_alignment_accross_jump_function): Work with the new class
10113 for alignment lattices.
10114 (propagate_constants_accross_call): Pass only the alignment lattice to
10115 propagate_alignment_accross_jump_function.
10116 (ipcp_store_alignment_results): Work with the new class for alignment
10119 2015-10-05 Marek Polacek <polacek@redhat.com>
10121 PR tree-optimization/67821
10122 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
10124 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
10127 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
10129 (mkoffload_cleanup): ... this. Adjust all users.
10130 (maybe_unlink): Look at save_temps and verbose flags instead of
10132 (main): Parse "-save-temps" flag.
10133 (generate_target_descr_file, generate_target_offloadend_file)
10134 (generate_host_descr_file, prepare_target_image): Pass it on.
10135 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
10136 (mkoffload_cleanup): New function.
10137 (maybe_unlink): Look at save_temps and verbose flags instead of
10139 (main): Instead of calling utils_cleanup, register atexit handler
10140 for mkoffload_cleanup.
10141 (main): Parse "-save-temps" flag.
10142 (compile_native, main): Pass it on.
10143 * lto-wrapper.c (compile_offload_image): Likewise.
10145 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10147 * gimple.h (gimple_op_ptr): Require a non const gimple *.
10148 (gimple_assign_lhs_ptr): Likewise.
10149 (gimple_assign_rhs1_ptr): Likewise.
10150 (gimple_assign_rhs2_ptr): Likewise.
10151 (gimple_assign_rhs3_ptr): Likewise.
10152 (gimple_call_lhs_ptr): Likewise.
10153 (gimple_call_fn_ptr): Likewise.
10154 (gimple_call_chain_ptr): Likewise.
10155 (gimple_call_arg_ptr): Likewise.
10156 (gimple_cond_lhs_ptr): Likewise.
10157 (gimple_cond_rhs_ptr): Likewise.
10158 (gimple_switch_index_ptr): Likewise.
10159 (gimple_return_retval_ptr): Likewise.
10161 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10163 * gimple.h (gimple_asm_input_op_ptr): Remove.
10164 (gimple_asm_output_op_ptr): Likewise.
10166 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10168 * gimple.h (gimple_location_ptr): Remove.
10169 * tree-vrp.c (check_all_array_refs): Adjust.
10171 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10173 * tree-ssa-operands.c (build_uses): store tree * instead of
10175 (finalize_ssa_uses): Adjust.
10176 (append_use): Likewise.
10177 (verify_ssa_operands): Likewise.
10179 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10181 * real.h (build_real_truncate): Declare.
10182 * tree.c (build_real_truncate): New function.
10183 (strip_float_extensions): Use it.
10184 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
10185 (fold_builtin_hypot, fold_builtin_pow): Likewise.
10186 * match.pd: Likewise.
10188 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
10189 Jiong Wang <jiong.wang@arm.com>
10191 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
10193 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10195 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
10196 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
10197 (aarch64_print_operand, aarch64_float_const_representable_p)
10198 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
10199 instead of REAL_VALUE_FROM_CONST_DOUBLE.
10200 * config/arc/arc.c (arc_print_operand): Likewise.
10201 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
10202 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
10203 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
10205 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
10206 (consttable_16): Likewise.
10207 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
10208 * config/avr/avr.c (avr_print_operand): Likewise.
10209 * config/bfin/bfin.md: Likewise (in a define_split).
10210 * config/c6x/c6x.md: Likewise (in a define_split).
10211 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
10212 (cr16_print_operand): Likewise.
10213 * config/cris/cris.c (cris_print_operand): Likewise.
10214 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
10215 * config/fr30/fr30.c (fr30_print_operand): Likewise.
10216 (fr30_const_double_is_zero): Likewise.
10217 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
10218 * config/frv/frv.md: Likewise (in a define_split).
10219 * config/frv/predicates.md (int_2word_operand): Likewise.
10220 * config/h8300/h8300.c (h8300_print_operand): Likewise.
10221 * config/i386/i386.c (standard_80387_constant_p): Likewise.
10222 (ix86_print_operand, ix86_split_to_parts): Likewise.
10223 * config/i386/i386.md: Likewise (in a define_split).
10224 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
10225 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
10226 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
10227 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
10228 (print_operand): Likewise.
10229 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
10230 * config/mep/mep.md: Likewise (in define_split).
10231 * config/microblaze/microblaze.c (microblaze_const_double_ok)
10232 (print_operand): Likewise.
10233 * config/mips/mips.md (consttable_float): Likewise.
10234 * config/mmix/mmix.c (mmix_intval): Likewise.
10235 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
10236 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
10237 * config/pa/pa.c (pa_singlemove_string): Likewise.
10238 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
10239 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
10240 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
10241 (output_toc): Likewise.
10242 * config/rs6000/rs6000.md: Likewise (in define_splits).
10243 * config/rx/rx.c (rx_print_operand): Likewise.
10244 * config/s390/s390.c (s390_output_pool_entry): Likewise.
10245 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10246 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
10247 (and also in define_splits).
10248 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
10249 (fp_high_losum_p): Likewise.
10250 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
10251 (*movsf_high): Likewise.
10252 * config/spu/spu.c (const_double_to_hwint): Likewise.
10253 * config/v850/v850.c (const_double_split): Likewise.
10254 * config/vax/vax.c (vax_float_literal): Likewise.
10255 * config/visium/visium.c (visium_expand_copysign): Likewise.
10256 * config/visium/visium.md: Likewise (in define_split).
10257 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10258 * config/xtensa/xtensa.c (print_operand): Likewise.
10259 (xtensa_output_literal): Likewise.
10260 * cprop.c (implicit_set_cond_p): Likewise.
10261 * dwarf2out.c (insert_float): Likewise.
10262 * expmed.c (expand_mult, make_tree): Likewise.
10263 * expr.c (compress_float_constant): Likewise.
10264 * rtlanal.c (split_double): Likewise.
10265 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10266 (simplify_const_unary_operation, simplify_binary_operation_1)
10267 (simplify_const_binary_operation): Likewise.
10268 (simplify_const_relational_operation): Likewise.
10269 * varasm.c (output_constant_pool_2): Likewise.
10271 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10273 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
10274 instead of CONST_DOUBLE_FROM_REAL_VALUE.
10275 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
10276 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
10277 instead of CONST_DOUBLE_FROM_REAL_VALUE.
10278 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
10279 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
10280 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
10281 (ix86_emit_swsqrtsf): Likewise.
10282 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
10283 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
10284 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10285 * config/pa/pa.c (pa_expand_builtin): Likewise.
10286 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
10287 (rs6000_scale_v2df): Likewise.
10288 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
10289 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
10290 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
10291 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
10292 (vec_ctul): Likewise.
10293 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
10294 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
10295 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
10296 * cse.c (fold_rtx): Likewise.
10297 * emit-rtl.c (immed_double_const): Likewise (in comments).
10298 (init_emit_once): Likewise.
10299 * expr.c (compress_float_constant, expand_expr_real_1)
10300 (const_vector_from_tree): Likewise.
10301 * optabs.c (expand_float, expand_fix): Likewise.
10302 * reg-stack.c (reg_to_stack): Likewise.
10303 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10304 (simplify_const_unary_operation, simplify_binary_operation_1)
10305 (simplify_const_binary_operation, simplify_relational_operation)
10306 (simplify_immed_subreg): Likewise.
10308 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10310 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
10311 * doc/tm.texi: Regenerate.
10312 * real.h (REAL_ARITHMETIC): Delete.
10313 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
10314 (ix86_expand_round_sse4): Use real_arithmetic instead of
10316 * config/i386/sse.md (round<mode>2): Likewise.
10317 * rtl.h (rtx_to_tree_code): Likewise (in comment).
10318 * explow.c (rtx_to_tree_code): Likewise (in comment).
10319 * match.pd: Likewise.
10320 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10321 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10322 (expand_pow_as_sqrts): Likewise.
10323 * tree-pretty-print.c (dump_generic_node): Remove code that
10324 was conditional on REAL_ARITHMETIC being undefined.
10326 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10328 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
10329 * doc/tm.texi: Regenerate.
10330 * real.h (real_less): Declare.
10331 (REAL_VALUES_LESS): Delete.
10332 * real.c (real_less): New function.
10333 (real_compare): Use it.
10334 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
10335 of REAL_VALUES_LESS.
10336 * config/microblaze/microblaze.c (microblaze_const_double_ok):
10338 * fold-const.c (fold_convert_const_int_from_real): Likewise.
10339 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10340 (simplify_const_relational_operation): Likewise.
10341 * tree-call-cdce.c (check_pow): Likewise.
10342 (gen_conditions_for_pow_cst_base): Likewise.
10344 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10346 * real.h (REAL_VALUES_IDENTICAL): Delete.
10347 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
10348 instead of REAL_VALUES_IDENTICAL.
10349 * fold-const.c (operand_equal_p): Likewise.
10350 * ipa-icf.c (sem_variable::equals): Likewise.
10351 * tree-complex.c (some_nonzerop): Likewise.
10352 (expand_complex_multiplication): Likewise.
10353 * tree.c (simple_cst_equal): Likewise.
10354 * varasm.c (compare_constant): Likewise.
10356 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10358 * real.h (real_equal): Declare.
10359 (REAL_VALUES_EQUAL): Delete.
10360 * real.c (real_equal): New function.
10361 (real_compare): Use it.
10362 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
10363 * doc/tm.texi: Regenerate.
10364 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
10365 real_equal instead of REAL_VALUES_EQUAL.
10366 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
10367 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
10368 (fp_const_from_val): Likewise.
10369 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
10370 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
10371 (floating_exact_log2): Likewise.
10372 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10373 * config/vax/vax.c (vax_float_literal): Likewise.
10374 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10375 * cprop.c (implicit_set_cond_p): Likewise.
10376 * expmed.c (expand_mult): Likewise.
10377 * fold-const.c (const_binop): Likewise.
10378 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10379 (simplify_const_binary_operation): Likewise.
10380 (simplify_const_relational_operation): Likewise.
10381 * tree-call-cdce.c (check_pow): Likewise.
10382 (gen_conditions_for_pow_cst_base): Likewise.
10383 * tree-inline.c (estimate_num_insns): Likewise.
10384 * tree-ssa-dom.c (record_equality): Likewise.
10385 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10386 (gimple_expand_builtin_pow): Likewise.
10387 (pass_optimize_widening_mul::execute): Likewise.
10388 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
10389 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
10390 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
10392 2015-10-05 Richard Biener <rguenther@suse.de>
10395 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
10396 consider loop header PHI defs as IVs.
10398 2015-10-05 Richard Biener <rguenther@suse.de>
10400 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
10402 (create_expression_by_pieces): ... here and build GIMPLE
10403 calls directly. Use gimple_build API and avoid force_gimple_operand.
10404 (insert_into_preds_of_block): Simplify.
10405 (do_regular_insertion): Add comment.
10407 2015-10-04 Jason Merrill <jason@redhat.com>
10409 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
10411 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
10413 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
10414 check for general register.
10415 (ix86_emit_save_regs): Ditto.
10416 (ix86_emit_save_regs_using_mov): Ditto.
10417 (ix86_emit_restore_regs_using_pop): Ditto.
10418 (ix86_emit_restore_regs_using_mov): Ditto.
10420 2015-10-03 Marek Polacek <polacek@redhat.com>
10422 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
10423 (insn-dfatab.o): Likewise.
10425 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
10427 * config.gcc (xtensa*-*-uclinux*): New configuration.
10428 * config/xtensa/uclinux.h: New file.
10429 * config/xtensa/uclinux.opt: New file.
10431 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
10433 * doc/cpp.texi (Standard Predefined Macros): Document value of
10434 __cplusplus for C++14.
10436 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
10438 * gcc.c (process_command): Use spec_machine rather than
10439 spec_host_machine to build tooldir_prefix2.
10441 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10442 Bernd Schmidt <bernds@codesourcery.com>
10444 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
10445 (Token, Stmt): Remove structs.
10446 (decls, vars, fns): Remove variables.
10447 (alloc_comment, append_stmt, is_keyword): Remove macros.
10448 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
10449 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
10450 (parse_init, parse_file): Remove functions.
10451 (read_file): Accept a pointer to a length and store into it.
10452 (process): Don't try to parse the input file, just write it out as
10453 a string, but looking for maps. Also write out the length.
10454 (main): Don't use "-S" to compile PTX code.
10456 2015-10-02 Jeff Law <law@redhat.com>
10458 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
10461 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10464 * config/nvptx/mkoffload.c (main): Scan the argument vector for
10465 -fopenmp, and skip generating an offloading image if specified.
10467 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
10469 * system.h (ROUND_UP): New macro definition.
10470 (ROUND_DOWN): Ditto.
10471 * ggc-page.c (ROUND_UP): Remove local macro definition.
10472 (PAGE_ALIGN): Implement using ROUND_UP macro.
10474 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
10475 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
10477 (ix86_compute_frame_layout): Ditto.
10478 (ix86_expand_prologue): Ditto.
10479 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
10480 to round down values.
10481 (expand_set_or_movmem_via_rep): Ditto.
10483 2015-10-02 Marek Polacek <polacek@redhat.com>
10485 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
10487 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
10489 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
10490 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
10491 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
10492 (free_gimple_bb): Renamed free_gimple_poly_bb.
10493 (try_generate_gimple_bb): Hoist loop invariant code.
10494 (analyze_drs_in_stmts): Same.
10495 (build_scop_drs): Call renamed functions.
10496 (new_pbb_from_pbb): Same.
10497 (scop_ivs_can_be_represented): Delete as functionality now moved to
10498 graphite-scop-detection.c
10499 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
10501 2015-10-02 Aditya Kumar <hiraditya@msn.com>
10503 * graphite-scop-detection.c (stmt_has_side_effects): New function
10504 outlined from stmt_simple_for_scop_p.
10505 (graphite_can_represent_stmt): Same.
10506 (stmt_simple_for_scop_p): Moved code out of this function for better
10509 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10511 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
10513 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
10515 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10517 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
10519 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
10521 PR rtl-optimization/67756
10522 * lra-constraints.c (match_reload): Add a new parameter. Use it
10523 for creating a pseudo with the same value.
10524 (curr_insn_transform): Pass a new argument to match_reload.
10526 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10528 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
10529 (expand_vec_perm_even_odd_1): Handle V64QImode.
10530 (ix86_expand_vec_perm_const_1): Try expansion with
10531 expand_vec_perm_even_odd_trunc as well.
10532 * config/i386/sse.md (VI124_AVX512F): Rename to ...
10533 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
10535 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
10536 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
10537 to V32HI and V16SI.
10538 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
10539 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
10540 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
10541 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
10542 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
10543 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
10545 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10547 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
10548 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
10550 2015-10-02 Jason Merrill <jason@redhat.com>
10553 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
10554 (diagnose_tm_1_op): Also diagnose volatile accesses in
10555 transaction_safe function.
10557 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
10559 * system.h (malloc.h): Don't include obsolete header.
10561 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10563 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
10564 (TLS_SECTION_ASM_FLAG): Delete.
10566 2015-10-02 Marek Polacek <polacek@redhat.com>
10569 * doc/invoke.texi: Document -Wduplicated-cond.
10570 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
10571 (insn-dfatab.o): Likewise.
10572 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
10575 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
10577 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
10580 2015-10-02 Renlin Li <renlin.li@arm.com>
10582 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
10584 2015-10-02 Renlin Li <renlin.li@arm.com>
10587 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
10589 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10591 PR rtl-optimization/67786
10592 PR rtl-optimization/67787
10593 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
10594 it modifies a reg used in the condition calculation.
10596 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
10598 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
10599 alternatives for reads from memory and moves from general-purpose
10601 (*aarch64_combinez_be<mode>): Likewise.
10603 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
10606 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
10607 selectany within this function without need to keep attribute.
10608 (i386_pe_encode_section_info): Remove selectany-code.
10610 2015-10-02 Richard Biener <rguenther@suse.de>
10612 * tree-ssa-sccvn.c (has_VN_INFO): New function.
10613 (free_scc_vn): Use it.
10614 (visit_use): Remove dead code and refactor to use gassign
10615 and use less indentation.
10617 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10621 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
10622 (rs6000_cannot_copy_insn_p): New function.
10623 * config/rs6000/rs6000.md (cannot_copy): New attribute.
10624 (load_toc_v4_PIC_1_normal): Set cannot_copy.
10625 (load_toc_v4_PIC_1_476): Ditto.
10627 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10629 * graphite-scop-detection.c (struct sese_l): New conversion constructor
10630 so that this type can be pushed into a vec.
10631 (class scop_builder): use sese_l to collect scops.
10632 (get_scops): New getter function.
10633 (remove_intersecting_scops): Use sese_l instead of scops_p.
10634 (intersects): Same.
10637 (remove_subscops): Same.
10638 (build_scops): Add scops to vec<scops_p> once all the scops have been
10641 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10643 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
10644 Renamed type from gimple_bb_p to gimple_poly_bb_p.
10645 (translate_isl_ast_node_user): Same.
10646 * graphite-poly.c (new_poly_bb): Same.
10647 * graphite-poly.h (gbb_from_bb): Same.
10649 * graphite-sese-to-poly.c (new_gimple_bb):
10650 gimple_bb_p -> gimple_poly_bb_p
10651 (build_scop_scattering): Same.
10652 (find_params_in_bb): Same.
10653 (add_conditions_to_domain): Same.
10654 (sese_dom_walker::before_dom_children): Same.
10655 (analyze_drs_in_stmts): Same.
10656 (new_pbb_from_pbb): Same.
10657 (free_data_refs_aux): New pointer to type base_alias_pair.
10658 * graphite-sese-to-poly.h: Same.
10659 * sese.c (if_region_set_false_region): Fixed Indentation.
10660 (move_sese_in_condition): Same.
10662 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10663 Aditya Kumar <aditya.k7@samsung.com>
10665 PR tree-optimization/66980
10666 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
10667 when data reference analysis has failed.
10669 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10670 Aditya Kumar <aditya.k7@samsung.com>
10672 PR tree-optimization/67754
10673 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
10674 scev analysis on the same loop nest as analyze_drs_in_stmts.
10675 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
10677 (try_generate_gimple_bb): Call outermost_loop_in_sese.
10678 (analyze_drs_in_stmts): Same.
10679 * sese.c (outermost_loop_in_sese): ...here.
10681 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10682 Aditya Kumar <aditya.k7@samsung.com>
10684 PR tree-optimization/67754
10685 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
10686 recursion on the inner loops.
10688 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10690 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
10691 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
10692 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
10693 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
10694 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
10696 2015-10-01 Marek Polacek <polacek@redhat.com>
10699 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
10700 create_tmp_var_raw rather than create_tmp_var.
10702 2015-10-01 Marek Polacek <polacek@redhat.com>
10704 PR tree-optimization/67769
10705 * tree-ssa-phiopt.c (conditional_replacement): Call
10706 reset_flow_sensitive_info_in_bb.
10707 (minmax_replacement): Likewise.
10708 (abs_replacement): Likewise.
10710 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
10712 * builtins.c: Don't include gomp-constants.h.
10713 (fold_builtin_1): Don't fold acc_on_device here.
10714 * gimple-fold.c: Include gomp-constants.h.
10715 (gimple_fold_builtin_acc_on_device): New.
10716 (gimple_fold_builtin): Call it.
10718 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
10720 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
10721 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
10723 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
10725 * config/arm/aarch-common-protos.h
10726 (aarch_accumulator_forwarding): New.
10727 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10728 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
10729 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10730 * config/arm/cortex-a53.md: Rewrite.
10732 2015-10-01 Richard Biener <rguenther@suse.de>
10734 * gimple-match.h (mprts_hook): Declare.
10735 * gimple-match.head.c (mprts_hook): Define.
10736 (maybe_push_res_to_seq): Use new hook.
10737 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10738 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
10739 (vn_ssa_aux::has_constants): Remove.
10740 * tree-ssa-sccvn.c: Include gimple-match.h.
10741 (VN_INFO_GET): Assert we don't re-use SSA names.
10742 (vn_get_expr_for): Remove.
10743 (expr_has_constants): Likewise.
10744 (stmt_has_constants): Likewise.
10745 (simplify_binary_expression): Likewise.
10746 (simplify_unary_expression): Likewise.
10747 (vn_lookup_simplify_result): New hook.
10748 (visit_copy): Adjust.
10749 (visit_reference_op_call): Likewise.
10750 (visit_phi): Likewise.
10751 (visit_use): Likewise.
10752 (process_scc): Likewise.
10753 (init_scc_vn): Likewise.
10754 (visit_reference_op_load): Likewise. Use match-and-simplify and
10755 a gimple seq for inserted expressions.
10756 (try_to_simplify): Remove GENERIC stmt combining code.
10757 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
10758 * tree-ssa-pre.c (eliminate_insert): Adjust.
10759 (eliminate_dom_walker::before_dom_children): Likewise.
10761 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10763 * doc/invoke.texi (Optimization Options): Add
10764 -freorder-blocks-algorithm=.
10765 (Optimize Options) <-O>: Add -freorder-blocks.
10766 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
10767 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
10768 <-freorder-blocks>: Also enabled at levels -O and -Os.
10769 <-freorder-blocks-algorithm=>: Document new option.
10771 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10773 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
10774 with flag_reorder_blocks_algorithm.
10775 * common.opt (freorder-blocks-algorithm=): New flag.
10776 (reorder_blocks_algorithm): New enum.
10777 * flag-types.h (reorder_blocks_algorithm): New enum.
10778 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
10779 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
10781 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10783 * bb-reorder.c: Add intro comment.
10784 (reorder_basic_blocks_software_trace_cache): Print a header to
10786 (edge_order): New function.
10787 (reorder_basic_blocks_simple): New function.
10788 (reorder_basic_blocks): Choose between the STC and the simple
10789 algorithms (always choose the former).
10791 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10793 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
10794 function, factored out from ...
10795 (reorder_basic_blocks): ... here.
10797 2015-10-01 Tom de Vries <tom@codesourcery.com>
10799 * tree-cfg.c (dump_function_to_file): Dump function attributes using
10800 __attribute__(()) string. Move dumping of function attributes to before
10803 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
10806 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
10807 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
10808 based on gold linker version.
10809 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
10810 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
10811 * configure, config.in: Regenerate.
10813 2015-10-01 Alan Modra <amodra@gmail.com>
10815 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
10816 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
10817 (rs6000_output_mi_thunk): Likewise.
10819 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
10821 * config/nvptx/mkoffload.c (process): Change offload data format.
10823 2015-09-30 Jeff Law <law@redhat.com>
10825 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
10826 with constant conditions.
10827 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
10828 (remove_ctrl_stmt_and_useless_edges): No longer static.
10829 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
10830 (remove_ctrl_stmt_and_useless_edges): Likewise.
10832 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
10833 Cesar Philippidis <cesar@codesourcery.com>
10835 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
10836 (TARGET_GOACC_VALIDATE_DIMS): Override.
10837 * target.def (TARGET_GOACC): New target hook prefix.
10838 (validate_dims): New hook.
10839 * targhooks.h (default_goacc_validate_dims): New.
10840 * omp-low.c (oacc_validate_dims): New.
10841 (execute_oacc_device_lower): New.
10842 (default_goacc_validate_dims): New.
10843 (pass_data_oacc_device_lower): New.
10844 (pass_oacc_device_lower): New pass.
10845 (make_pass_oacc_device_lower): New.
10846 * tree-pass.h (make_pass_oacc_device_lower): Declare.
10847 * passes.def (pass_oacc_device_lower): Add it.
10848 * doc/tm.texi: Rebuilt.
10849 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
10850 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
10852 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
10854 PR rtl-optimization/67037
10855 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
10857 2015-09-30 Bernd Schmidt <bernds@redhat.com>
10859 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
10860 * passes.c: Include tree-ssanames.h.
10861 (execute_function_todo): Flush the pending free SSA_NAMEs after
10862 eliminating unreachable basic blocks.
10863 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
10864 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
10865 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
10866 (flush_ssanames_freelist): New function.
10867 (release_ssaname_fn): Put released names on the queue.
10868 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
10869 * tree-ssanames.h (flush_ssanames_freelist): Declare.
10871 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10873 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
10874 (generate_target_descr_file, generate_target_offloadend_file)
10875 (generate_host_descr_file, prepare_target_image): Pass it on.
10876 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
10877 (compile_native, main): Pass it on.
10878 * lto-wrapper.c (compile_offload_image): Likewise.
10880 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10881 Ilya Verbin <ilya.verbin@intel.com>
10882 Andrey Turetskiy <andrey.turetskiy@intel.com>
10884 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
10885 (prepare_target_image, main): Refactor argv building to use
10888 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10890 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
10891 * config/spu/spu.c (spu_expand_atomic_op): New function.
10892 * config/spu/spu.md (AINT): New mode iterator.
10893 (ATOMIC): New code iterator.
10894 (atomic_name, atomic_pred): New code predicates.
10895 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
10896 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
10897 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
10898 "atomic_<atomic_name>_fetch<mode>"): Likewise.
10900 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
10902 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
10904 (scalar_chain::convert_reg): Likewise.
10906 2015-09-30 Richard Biener <rguenther@suse.de>
10908 * builtins.c: Add comment that no new simplifications should
10911 2015-09-30 Marek Polacek <polacek@redhat.com>
10913 PR tree-optimization/67690
10914 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
10915 reset_flow_sensitive_info_in_bb.
10916 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
10917 * tree-ssanames.c: Include "gimple-iterator.h".
10918 (reset_flow_sensitive_info_in_bb): New function.
10919 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
10921 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10923 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
10924 variable, replacing it with...
10925 (offload_abi): ... this new variable. Adjust all users.
10926 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
10928 2015-09-30 Matthias Klose <doko@ubuntu.com>
10930 * configure.ac: Remove extraneous ;;.
10931 * configure: Regenerate.
10933 2015-09-29 James Bowman <james.bowman@ftdichip.com>
10935 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
10936 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
10937 predicate, disallow register for operand 2.
10939 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
10941 * graphite-dependences.c (scop_get_dependences): Moved in down
10942 in order to be visible to its caller.
10943 * graphite-poly.h: Removed compute_deps, and extend_schedule.
10945 2015-09-29 Sebastian Pop <s.pop@samsung.com>
10946 Aditya Kumar <aditya.k7@samsung.com>
10948 PR tree-optimization/67754
10949 * graphite-optimize-isl.c (optimize_isl): Call
10950 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
10952 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10954 * builtins.c (expand_builtin_acc_on_device): Delete.
10955 (expand_builtin): Don't call it.
10956 (fold_builtin_1): Fold acc_on_device.
10958 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
10960 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
10961 (ix86_nsaved_sseregs): Likewise.
10963 2015-09-29 Jeff Law <law@redhat.com>
10965 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
10966 computation of unused value.
10968 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
10969 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
10970 inline macro expansion.
10972 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
10974 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
10975 (gen_shl_sext): Likewise.
10976 * config/sh/sh.md (divsi3): Likewise.
10977 (imm->ext_dest_operand splitter): Likewise.
10979 2015-09-29 Sebastian Pop <s.pop@samsung.com>
10980 Aditya Kumar <aditya.k7@samsung.com>
10982 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
10983 (nb_data_writes_in_bb): Remove.
10984 (split_pbb): Remove.
10985 (split_reduction_stmt): Remove.
10986 (is_reduction_operation_p): Remove.
10987 (phi_contains_arg): Remove.
10988 (follow_ssa_with_commutative_ops): Remove.
10989 (detect_commutative_reduction_arg): Remove.
10990 (detect_commutative_reduction_assign): Remove.
10991 (follow_inital_value_to_phi): Remove.
10992 (edge_initial_value_for_loop_phi): Remove.
10993 (initial_value_for_loop_phi): Remove.
10994 (used_outside_reduction): Remove.
10995 (detect_commutative_reduction): Remove.
10996 (translate_scalar_reduction_to_array_for_stmt): Remove.
10997 (remove_phi): Remove.
10998 (dr_indices_valid_in_loop): Remove.
10999 (close_phi_written_to_memory): Remove.
11000 (translate_scalar_reduction_to_array): Remove.
11001 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
11002 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
11003 (rewrite_commutative_reductions_out_of_ssa): Remove.
11004 (build_poly_scop): Remove call to
11005 rewrite_commutative_reductions_out_of_ssa.
11007 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
11009 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
11010 Add new insn types for vector load and store pairs.
11011 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
11012 types "neon_ldp{,_q}".
11013 * config/arm/cortex-a57.md (neon_load_c): Add insn types
11015 (neon_store_complex): Add insn types "neon_stp{,_q}".
11016 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
11017 "neon_{ldp,stp}_q".
11019 2015-09-29 Jeff Law <law@redhat.com>
11021 * config/rx/constraints.md (Int08): Fix undefined left shift
11023 (Sint08, Sint16, Sint24): Likewise.
11024 * config/rx/rx.c (rx_get_stack_layout): Likewise.
11026 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
11029 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
11030 left shift behaviour.
11031 * config/msp430/constraints.md ('L' constraint): Similarly.
11032 ('Ys' constraint): Similarly.
11034 2015-09-29 Richard Biener <rguenther@suse.de>
11036 PR tree-optimization/67170
11037 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
11038 the translate function pointer parameter to get the
11039 bool whether to disambiguate only by reference.
11040 (walk_non_aliased_vuses): Likewise.
11041 * tree-ssa-alias.c (maybe_skip_until): Adjust.
11042 (get_continuation_for_phi_1): Likewise.
11043 (get_continuation_for_phi): Likewise.
11044 (walk_non_aliased_vuses): Likewise.
11045 * tree-ssa-sccvn.c (const_parms): New bitmap.
11046 (vn_reference_lookup_3): Adjust for interface change.
11047 Disambiguate parameters pointing to readonly memory.
11048 (free_scc_vn): Free const_parms.
11049 (run_scc_vn): Initialize const_parms from a fn spec attribute.
11051 2015-09-29 Richard Biener <rguenther@suse.de>
11053 PR tree-optimization/67741
11054 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
11055 builtin calls with correct signature.
11057 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
11060 * config/i386/i386.c: Include dbgcnt.h.
11061 (has_non_address_hard_reg): New.
11062 (convertible_comparison_p): New.
11063 (scalar_to_vector_candidate_p): New.
11064 (remove_non_convertible_regs): New.
11065 (scalar_chain): New.
11066 (scalar_chain::scalar_chain): New.
11067 (scalar_chain::~scalar_chain): New.
11068 (scalar_chain::add_to_queue): New.
11069 (scalar_chain::mark_dual_mode_def): New.
11070 (scalar_chain::analyze_register_chain): New.
11071 (scalar_chain::add_insn): New.
11072 (scalar_chain::build): New.
11073 (scalar_chain::compute_convert_gain): New.
11074 (scalar_chain::replace_with_subreg): New.
11075 (scalar_chain::replace_with_subreg_in_insn): New.
11076 (scalar_chain::emit_conversion_insns): New.
11077 (scalar_chain::make_vector_copies): New.
11078 (scalar_chain::convert_reg): New.
11079 (scalar_chain::convert_op): New.
11080 (scalar_chain::convert_insn): New.
11081 (scalar_chain::convert): New.
11082 (convert_scalars_to_vector): New.
11083 (pass_data_stv): New.
11085 (make_pass_stv): New.
11086 (ix86_option_override): Created and register stv pass.
11087 (flag_opts): Add -mstv.
11088 (ix86_option_override_internal): Likewise.
11089 * config/i386/i386.md (SWIM1248x): New.
11090 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
11091 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
11092 (*anddi3_doubleword): New.
11093 (*zext<mode>_doubleword): New.
11094 (*zextsi_doubleword): New.
11095 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
11096 (*<code>di3_doubleword): New.
11097 * config/i386/i386.opt (mstv): New.
11098 * dbgcnt.def (stv_conversion): New.
11100 2015-09-29 Tom de Vries <tom@codesourcery.com>
11102 * tree-cfg.c (dump_function_to_file): Dump function attributes.
11104 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
11107 * config/sh/sh.c (sh_override_options_after_change): New.
11108 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
11109 (sh_option_override): Move align_loops, align_jumps and
11110 align_functions handling into sh_override_options_after_change.
11112 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
11114 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
11115 (nvptx_record_offload_symbol): Record function execution geometry.
11116 * config/nvptx/mkoffload.c (process): Include launch geometry in
11118 * omp-low.c (oacc_launch_pack): New.
11119 (replace_oacc_fn_attrib): New.
11120 (set_oacc_fn_attrib): New.
11121 (get_oacc_fn_attrib): New.
11122 (expand_omp_target): Create keyed varargs for GOACC_parallel call
11124 * omp-low.h (get_oacc_fn_attrib): Declare.
11125 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
11126 (DEF_FUNCTION_TYPE_VAR_11): Delete.
11127 * tree.h (OMP_CLAUSE_EXPR): New.
11128 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
11130 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11131 Sebastian Pop <s.pop@samsung.com>
11133 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
11135 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11136 Sebastian Pop <s.pop@samsung.com>
11138 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
11139 * graphite-scop-detection.c (struct sese_l): New type.
11140 (get_entry_bb): API for getting entry bb of SESE.
11141 (get_exit_bb): API for getting exit bb of SESE.
11142 (class debug_printer): New type. Simple printer in debug mode.
11143 (trivially_empty_bb_p): New. Return true when BB is empty or
11144 contains only debug instructions.
11145 (graphite_can_represent_expr): Call scalar_evoution_in_region
11146 instead of analyze_scalar_evolution. Pass in scop instead of only
11148 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
11150 (stmt_simple_for_scop_p): Same.
11151 (harmful_stmt_in_bb): Same.
11152 (graphite_can_represent_loop): Deleted.
11153 (struct scopdet_info): Deleted.
11154 (scopdet_basic_block_info): Deleted.
11155 (build_scops_1): Deleted.
11156 (bb_in_sd_region): Deleted.
11157 (find_single_entry_edge): Deleted.
11158 (find_single_exit_edge): Deleted.
11159 (create_single_entry_edge): Deleted.
11160 (sd_region_without_exit): Deleted.
11161 (create_single_exit_edge): Deleted.
11162 (unmark_exit_edges): Deleted.
11163 (mark_exit_edges): Deleted.
11164 (create_sese_edges): Deleted.
11165 (build_graphite_scops): Deleted.
11166 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
11167 (build_scops): Use the new scop_builder to build scops.
11168 (dot_all_scops_1): Use the new pretty printer. Print loop father
11170 (loop_body_is_valid_scop): New. Return true if loop body is a
11172 (class scop_builder): New. Builds SCoPs for polyhedral
11174 (scop_builder): New constructor.
11175 (static sese_l invalid_sese): sese_l with invalid edges.
11176 (get_sese): Get an sese (from a loop) if possible, invalid_sese
11178 (get_nearest_dom_with_single_entry): Get nearest dominator of a
11179 basic_block with single entry. Return NULL if we get to the
11180 beginning of a function.
11181 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
11182 a basic_block with single exit. Return NULL if we get to the
11183 beginning of a function.
11184 (print_sese): Pretty-print SESE.
11185 (merge_sese): Merge two SESEs if possible and return the new SESE.
11186 (build_scop_depth): Start building the SCoP within a loop nest.
11187 (build_scop_breadth): Start building the SCoP at a single loop
11188 depth. Merge adjacent SESEs if valid.
11189 (can_represent_loop_1): Returns true if Graphite can represent
11190 loop inside SCoP. Helper for can_represent_loop.
11191 (can_represent_loop): Returns true if Graphite can represent LOOP
11192 and all its nested loops in SCoP.
11193 (loop_is_valid_scop): Returns true if LOOP and all its nests
11194 constitute a valid SCoP.
11195 (region_has_one_loop): Returns true of a region has only one loop.
11196 (add_scop): Add SCoP to the list of valid scops. Removes an
11197 already existing scop if it intersects with or subsumed by this one.
11198 (harmful_stmt_in_region): Returns true if SCoP has any statment
11199 which cannot be represented by Graphite.
11200 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
11201 (remove_subscops): Remove any SCoP from the list of already found
11202 SCoPs, if subsumed by S1.
11203 (intersects): Return true if region bounded by SCoPs S1 and S2
11205 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
11206 * graphite.c (print_graphite_scop_statistics):
11207 (print_graphite_statistics): Print SCoP info while debugging.
11208 (graphite_initialize): Early exit in case number of loops in a
11209 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
11210 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
11211 (graphite_finalize):
11212 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
11213 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
11214 (recompute_all_dominators): Recalculate POST_DOMINATORS.
11215 * tree-cfg.c (print_loops): Print the function name while printing
11218 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11219 Sebastian Pop <s.pop@samsung.com>
11221 PR tree-optimization/67700
11222 * graphite-sese-to-poly.c (parameter_index_in_region): Call
11223 invariant_in_sese_p_rec.
11224 (extract_affine): Same.
11225 (rewrite_cross_bb_scalar_deps): Call update_ssa.
11226 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
11227 * sese.h (invariant_in_sese_p_rec): Declare.
11229 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
11231 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
11233 2015-09-28 Jiong Wang <jiong.wang@arm.com>
11236 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11237 Jiong Wang <jiong.wang@arm.com>
11239 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
11240 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
11241 (REG_CLASS_NAMES): Likewise.
11242 (REG_CLASS_CONTENTS): Likewise.
11243 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
11244 (aarch64_register_move_cost): Likewise.
11245 (aarch64_load_symref_appropriately): Invoke the new added pattern if
11247 * config/aarch64/constraints.md (Uc0): New constraint.
11249 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
11251 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
11253 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
11255 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
11256 SECTION_EXCLUDE in XO mapping class.
11258 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11261 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
11262 and handle ne and eq codes.
11263 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
11264 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
11265 CONST_INT_P. Use reverse_condition.
11266 (sh_split_treg_set_expr): Likewise.
11268 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
11270 * config/arm/types.md (type): Add rotate_imm.
11271 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
11272 ROR immediate case.
11273 (*rorsi3_insn_uxtw): Likewise.
11274 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
11275 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
11276 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
11278 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11280 PR rtl-optimization/67481
11281 * ifcvt.c (contains_ccmode_rtx_p): New function.
11282 (insn_valid_noce_process_p): Use it.
11284 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11286 PR rtl-optimization/67456
11287 PR rtl-optimization/67464
11288 PR rtl-optimization/67465
11289 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
11290 move in the mode of x. Handle combination of complex and simple
11291 block pairs as well as the case when one is empty.
11293 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11295 * doc/gimple.texi: Update references to gimple_statement_base.
11296 * gdbhooks.py: Likewise.
11297 * gimple.h: Likewise.
11299 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11301 * config/sparc/driver-sparc.c: map LEON to leon3
11303 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11305 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
11306 and make it inverse to change default
11307 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
11309 * doc/invoke.texi: Document change of default
11311 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11313 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
11314 true on %f0 for a target without FPU.
11315 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
11317 (untyped_return): Do not load %f0 for a target without FPU.
11319 2015-09-28 Andrew Pinski <apinski@cavium.com>
11321 * config/aarch64/aarch64.md (prefetch):
11322 Change the predicate of operand 0 to register_operand.
11324 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
11326 * config/i386/predicates.md (register_sse4nonimm_operand): New
11328 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
11329 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
11330 Use register_sse4nonimm_operand as operand 0 predicate.
11331 (*vec_extractv8hi_sse2): Remove insn pattern.
11332 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
11333 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
11335 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11336 Kaz Kojima <kkojima@gcc.gnu.org>
11339 * config/sh/sh-protos.h (sh_lra_p): Declare.
11340 * config/sh/sh.c (sh_lra_p): Make non-static.
11341 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
11342 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
11343 Expand into addsi3_scr if operands[2] if needed.
11344 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
11345 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
11346 (addsi3_scr, *addsi3): New insn_and_split patterns.
11348 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
11350 PR rtl-optimization/64164
11351 PR tree-optimization/67312
11352 PR middle-end/67340
11353 PR middle-end/67490
11355 * cfgexpand.c (parm_in_stack_slot_p): Remove.
11356 (ssa_default_def_partition): Remove.
11357 (get_rtl_for_parm_ssa_default_def): Remove.
11358 (set_rtl): Check that RTL assignments match expectations.
11359 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
11360 default def location for params and results. Record SSA names
11361 or types in REG and MEM attrs, respectively.
11362 (set_parm_rtl): New.
11363 (expand_one_ssa_partition): Drop logic that assigned MEMs with
11364 unassigned addresses.
11365 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
11366 deferred stack alloc vars.
11367 (expand_used_vars): Skip partitions holding parm default defs.
11368 Move adjust_one_expanded_partition_var loop...
11369 (pass_expand::execute): ... here. Drop redundant assert.
11370 Adjust comments before the final loop over all ssa names.
11371 Require assigned rtl of parms and results to match exactly.
11372 Reset its attributes to match them, not any other variables in
11373 the same partition.
11374 (expand_debug_expr): Use entry value for PARM's default defs
11375 only iff they have zero nondebug uses.
11376 * cfgexpand.h (parm_in_stack_slot_p): Remove.
11377 (get_rtl_for_parm_ssa_default_def): Remove.
11378 (set_parm_rtl): Declare.
11379 * doc/invoke.texi: Improve wording.
11380 * explow.c (promote_decl_mode): Fix promote_function_mode for
11381 result decls not by reference.
11382 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
11383 bypass TYPE_MODE to get the actual vector mode.
11384 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
11385 2015-08-19's changes as follows. Drop include of
11386 basic-block.h and df.h.
11387 (rtl_for_parm): Remove.
11388 (maybe_reset_rtl_for_parm): Remove.
11389 (parm_in_unassigned_mem_p): Remove.
11390 (use_register_for_decl): Add logic for RESULT_DECLs matching
11391 assign_parms' behavior.
11392 (split_complex_args): Revert.
11393 (assign_parms_augmented_arg_list): Revert. Add comment
11394 referencing the logic above.
11395 (assign_parm_adjust_stack_rtl): Revert.
11396 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
11397 of SET_DECL_RTL. Set up a REG if the parm demands so.
11398 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
11399 calls into a single set_parm_rtl. Set up a temporary RTL
11400 temporarily for expand_assignment.
11401 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
11402 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
11403 (assign_bounds): Revert.
11404 (assign_parms): Revert. Use set_parm_rtl.
11405 (allocate_struct_function): Relayout result and parms of
11406 non-abstruct functions.
11407 (expand_function_start): Revert. Use set_parm_rtl. If the
11408 result is not a hard reg, create a pseudo from the promoted
11409 mode of the default def. Promote static chain mode.
11410 * tree-outof-ssa.c (remove_ssa_form): Drop unused
11411 partition_has_default_def. Set up
11412 partitions_for_parm_default_defs.
11413 (finish_out_of_ssa): Remove partition_has_default_def.
11414 Release partitions_for_parm_default_defs.
11415 * tree-outof-ssa.h (struct ssaexpand): Remove
11416 partition_has_default_def. Add
11417 partitions_for_parm_default_defs.
11418 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
11420 (build_ssa_conflict_graph): Fix conflict-detection of default
11421 defs of even unused default defs of params and results.
11422 (for_all_parms): New.
11423 (create_default_def): New.
11424 (register_default_def): New.
11425 (coalesce_with_default): New.
11426 (create_outofssa_var_map): Create default defs for all parms
11427 and results, and register their partitions. Add GIMPLE_RETURN
11428 operands as coalesce candidates with results. Add default
11429 defs of each parm or result as coalesce candidates with its
11430 other defs. Mark each result def, and each default def of
11431 parms, as used_in_copy.
11432 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
11433 with the ssa names, even anonymous ones. Drop
11434 parm_in_stack_slot_p calls. Require same signedness and
11436 (coalesce_ssa_name): Add coalesce candidates for all defs of
11437 each parm and result, even unused ones.
11438 (parm_default_def_partition_arg): New type.
11439 (set_parm_default_def_partition): New.
11440 (get_parm_default_def_partitions): New.
11441 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
11442 * tree-ssa-live.c (partition_view_init): Regard unused defs of
11443 parms and results as used.
11444 (verify_live_on_entry): Don't error out just because they're
11447 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
11449 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11450 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
11451 (output_fde): Don't output length for debug_frame on AIX.
11452 (output_call_frame_info): Don't output length for debug_frame on AIX.
11453 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
11454 HAVE_XCOFF_DWARF_EXTRAS.
11455 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
11456 HAVE_XCOFF_DWARF_EXTRAS.
11457 (output_compilation_unit_header): Don't output length on AIX.
11458 (output_pubnames): Don't output length on AIX.
11459 (output_aranges): Delete argument. Compute length locally. Don't
11460 output length on AIX.
11461 (output_line_info): Don't output length on AIX.
11462 (dwarf2out_finish): Don't compute aranges_length.
11463 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11464 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
11465 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
11466 symbol decoration for AIX.
11467 (rs6000_xcoff_debug_unwind_info): New.
11468 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
11470 (rs6000_xcoff_declare_function_name): Emit different
11471 .function pseudo-op when DWARF2_DEBUG. Don't call
11472 xcoffout_declare_function for DWARF2_DEBUG.
11473 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
11475 * config/rs6000/aix71.h: New.
11476 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
11478 * configure: Regenerate.
11479 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
11482 2015-09-26 Jeff Law <law@redhat.com>
11484 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
11486 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
11489 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
11492 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
11493 undefined behaviour.
11495 * config/cris/cris.md (asrandb): Fix left shift undefined
11497 (asrandw): Likewise.
11499 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
11502 * lra-constarints.c (match_reload): Check presence of the input pseudo
11503 in the output operand.
11505 2015-09-25 Tobias Burnus <burnus@net-b.de>
11507 * doc/invoke.texi (-fsanitize): Minor wording tweak.
11509 2015-09-25 Tobias Burnus <burnus@net-b.de>
11511 * doc/invoke.texi (-fsanitize): Update URLs.
11513 2015-09-25 Teresa Johnson <tejohnson@google.com>
11515 * opts.c (finish_options): Unset -freorder-blocks-and-partition
11516 if not using profile.
11518 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
11520 PR pretty-print/67567
11521 * pretty-print.c (pp_string): Add gcc_checking_assert.
11522 * pretty-print.h (output_buffer_append_r): Likewise.
11524 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11527 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
11528 addr2 individually. Don't emit logical or insn if one is known to
11529 be aligned approriately.
11530 (sh_expand_cmpnstr): Likewise.
11532 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
11534 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
11535 __builtin_aarch64_fp[sc]r arguments into a register.
11537 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
11539 * config.gcc (x86_archs): Replace lakemount with lakemont.
11540 (with_cpu): Likewise.
11541 (with_arch): Likewise.
11542 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11543 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
11544 __tune_lakemount__ with __tune_lakemont__.
11545 * config/i386/i386.c (lakemount_cost): Renamed to ...
11546 (lakemont_cost): This.
11547 (m_LAKEMOUNT): Renamed to ...
11548 (m_LAKEMONT): This.
11549 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
11550 (processor_target_table): Replace "lakemount" with "lakemont".
11551 (processor_alias_table): Likewise.
11552 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
11553 PROCESSOR_LAKEMONT.
11554 (ix86_adjust_cost): Likewise.
11555 (ia32_multipass_dfa_lookahead): Likewise.
11556 * config/i386/i386.h (processor_type): Likewise.
11557 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
11558 * doc/invoke.texi: Replace lakemount with lakemont. Replace
11559 Lakemount with Lakemont.
11561 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
11563 * config.gcc (x86_archs): Replace iamcu with lakemount.
11564 (with_cpu): Likewise.
11565 (with_arch): Likewise.
11566 * doc/invoke.texi: Likewise.
11567 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11568 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
11569 __tune_iamcu__ with __tune_lakemount__.
11570 * config/i386/i386.c (iamcu_cost): Renamed to ...
11571 (lakemount_cost): This.
11572 (m_IAMCU): Renamed to ...
11573 (m_LAKEMOUNT): This.
11574 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
11575 (processor_target_table): Replace "iamcu" with "lakemount".
11576 (processor_alias_table): Likewise.
11577 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
11578 PROCESSOR_LAKEMOUNT.
11579 (ix86_adjust_cost): Likewise.
11580 (ia32_multipass_dfa_lookahead): Likewise.
11581 * config/i386/i386.h (processor_type): Likewise.
11582 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
11584 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
11586 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
11587 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
11589 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
11590 (pa_expand_compare_and_swap_loop): New.
11591 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
11592 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
11593 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
11594 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
11595 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
11598 2015-09-24 Michael Collison <michael.collison@linaro.org>
11601 * read-md.c (read_name): Allow mode iterators inside angle
11602 brackets in rtl expressions.
11604 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
11607 * ira-color.c (update_allocno_cost): Add parameter.
11608 (update_costs_from_allocno): Decrease conflict cost. Pass the new
11611 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11614 * opts-common.c (prune_options): Discard all -fdiagnostics-color
11615 but the last one, which is moved to the front to be processed
11617 * opts.c (enable_warning_as_error): Reject options that do not
11620 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11622 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
11624 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11626 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
11627 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
11628 (aarch64_cannot_force_const_mem): Likewise.
11629 (aarch64_classify_address): Likewise.
11630 (aarch64_classify_symbolic_expression): Likewise.
11631 (aarch64_print_operand): Likewise.
11632 (aarch64_classify_symbol): Likewise.
11633 (aarch64_mov_operand_p): Likewise.
11634 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
11635 (aarch64_mov_operand): Likewise.
11637 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
11639 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
11640 for info->spe_gp_size.
11642 2015-09-24 Richard Biener <rguenther@suse.de>
11645 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
11648 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
11650 * tree-object-size.c (plus_stmt_object_size)
11651 (cond_expr_object_size): Change the formal parameters from gimple
11653 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
11654 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
11655 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
11657 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11659 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
11660 Check for ld -type pie on Solaris 11.x and 12.
11661 * configure: Regenerate.
11662 * config.in: Regenerate.
11664 * gcc.c (LD_PIE_SPEC): Allow redefinition.
11666 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
11667 (STARTFILE_SPEC): Use it.
11668 (ENDFILE_CRTEND_SPEC): Define.
11669 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
11670 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
11671 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
11672 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
11673 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
11674 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
11675 (ENDFILE_ARCH_SPEC): Define.
11676 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
11678 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11680 * configure.ac (gcc_cv_solaris_crts): New test.
11681 * configure. Regenerate.
11682 * config.in: Regenerate.
11683 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
11684 HAVE_SOLARIS_CRTS variant.
11686 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11688 * tree-inline.h (count_insns_seq): Delete prototype.
11689 (estimate_num_insns_seq): Define prototype.
11690 * tree-inline.c (count_insns_seq): Delete.
11691 (estimate_num_insns_seq): Remove static qualifier.
11692 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
11693 with estimate_num_insns_seq.
11695 2015-09-24 Richard Biener <rguenther@suse.de>
11697 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
11699 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
11700 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
11702 (ao_ref_init_from_vn_reference): Record clique and base in the
11704 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
11706 2015-09-24 Richard Biener <rguenther@suse.de>
11708 PR tree-optimization/48885
11709 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
11710 as not including any restrict tags from other pointers.
11712 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
11714 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
11715 character when appending to offload_targets.
11717 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
11718 offload targets by commas, not colons.
11719 * config.in: Regenerate.
11720 * configure: Likewise.
11721 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
11722 instead of setting up the default offload targets here...
11723 (process_command): ..., do it here.
11725 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
11726 targets are separated by commas.
11727 * config.h.in: Regenerate.
11729 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
11730 Nathan Sidwell <nathan@codesourcery.com>
11732 * omp-low.h (omp_reduction_init_op): Declare.
11733 * omp-low.c (omp_reduction_init_op): New, broken out of ...
11734 (omp_reduction_init): ... here. Call it.
11735 * tree-parloops.c (initialize_reductions): Use
11736 omp_reduction_init_op.
11738 2015-09-23 Richard Biener <rguenther@suse.de>
11740 PR middle-end/67662
11741 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
11742 undefined overflow unless they will cancel out.
11744 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
11746 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
11749 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
11752 * opts.h (write_langs): Declare.
11753 * opts-global.c (write_langs): Make it extern.
11755 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
11758 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
11759 overlapping regs when matching the pattern.
11761 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
11763 * config/aarch64/aarch64-simd.md
11764 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
11765 (aarch64_float_truncate_hi_v4sf_le): New.
11766 (aarch64_float_truncate_hi_v4sf_be): Likewise.
11768 2015-09-23 Richard Biener <rguenther@suse.de>
11770 * tree-ssa-structalias.c (intra_create_variable_infos): Build
11771 representatives for all restrict qualified pointer destinations.
11773 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
11775 * config/i386/i386.md (define_code_attr mshift): New.
11776 (define_mode_iterator SWI1248_AVX512BW): Rename ...
11777 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
11779 (define_insn "*k<logic><mode>"): Use new iterator name.
11780 (define_insn "*<mshift><mode>3"): New.
11782 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
11784 PR middle-end/67649
11785 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
11786 mark the block as accessible.
11788 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
11790 * function.c (thread_prologue_and_epilogue_insns): Delete
11791 orig_entry_edge argument to try_shrink_wrapping.
11792 * shrink-wrap.c (can_get_prologue): New function.
11793 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
11794 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
11795 can_get_prologue where needed. Remove code that finds a single
11796 edge for the prologue. Remove code that tests if any reg clobbered
11797 by the prologue is live on the prologue edge. Remove code that finds
11798 the new prologue edge after duplicating blocks. Make a new prologue
11800 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
11802 2015-09-22 Jeff Law <law@redhat.com>
11804 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
11807 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
11809 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
11810 -Wtemplates, -Wnamespaces): Document.
11812 2015-09-22 Tom de Vries <tom@codesourcery.com>
11814 PR tree-optimization/67671
11815 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
11816 pointer references as restrict.
11818 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
11820 * config/nios2/nios2.c (nios2_legitimize_address): When handling
11821 'reg + reloc' cases, allow first operand to be non-REG, and use
11822 force_reg() to enforce address pattern.
11824 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
11827 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
11828 (define_mode_iterator VI12_AVX_AVX512F): New.
11829 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
11830 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
11831 (define_insn "*<code><mode>3"): ... Into new pattern using
11832 VI12_AVX_AVX512F iterators without masking.
11834 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
11836 * config.gcc: Support "skylake-avx512".
11837 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11838 PROCESSOR_SKYLAKE_AVX512.
11839 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
11840 (processor_target_table): Add "skylake-avx512".
11841 (PTA_SKYLAKE_AVX512): Define.
11842 (ix86_option_override_internal): Add "skylake_avx512".
11843 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
11844 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
11845 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
11846 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
11847 * doc/invoke.texi (skylake-avx512): New.
11849 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
11851 * config/i386/i386.md (define_insn "kunpckhi"): Fix
11852 operand in pattern.
11853 (define_insn "kunpcksi"): Ditto.
11854 (define_insn "kunpckdi"): Ditto.
11856 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
11858 * config/i386/i386.md (define_split not/xor SWI1248x): Use
11859 iterator instead of fixed modes.
11861 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11863 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11864 Adjust declaration.
11865 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
11866 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
11867 out_result. Update to support update-fetch operations.
11868 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
11869 Adjust for change to aarch64_gen_atomic_ldop.
11870 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
11871 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
11872 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
11873 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
11874 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
11876 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11878 * config/aarch64/aarch64-protos.h
11879 (aarch64_atomic_ldop_supported_p): Declare.
11880 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
11881 (enum aarch64_atomic_load_op_code): New.
11882 (aarch64_emit_atomic_load_op): New.
11883 (aarch64_gen_atomic_ldop): Update to support load-operate
11885 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
11887 (aarch64_atomic_<atomic_optab><mode>): New.
11888 (aarch64_atomic_<atomic_optab><mode>_lse): New.
11889 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
11890 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
11891 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
11893 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11895 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
11896 (UNSPECV_ATOMIC_LDOP_OR): New.
11897 (UNSPECV_ATOMIC_LDOP_BIC): New.
11898 (UNSPECV_ATOMIC_LDOP_XOR): New.
11899 (UNSPECV_ATOMIC_LDOP_PLUS): New.
11900 (ATOMIC_LDOP): New.
11901 (atomic_ldop): New.
11902 (aarch64_atomic_load<atomic_ldop><mode>): New.
11904 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11906 * config/aarch64/aarch64.md
11907 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
11910 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11912 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11914 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
11915 (aarch64_gen_atomic_ldop): New.
11916 (aarch64_split_atomic_op): Fix whitespace and add a comment.
11917 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
11918 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
11919 (atomic_exchange<mode>): Replace with an expander.
11920 (aarch64_atomic_exchange<mode>): New.
11921 (aarch64_atomic_exchange<mode>_lse): New.
11922 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
11923 (aarch64_atomic_swp<mode>): New.
11925 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
11927 * tree-inline.c (expand_call_inline): Use inform for extra note.
11928 Do not give a note with UNKNOWN_LOCATION.
11929 Replace input_location with gimple_location (stmt).
11930 Use true/false instead of TRUE/FALSE.
11932 2015-09-22 Tom de Vries <tom@codesourcery.com>
11934 PR tree-optimization/67666
11935 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
11936 with single field non-conservative.
11938 2015-09-21 David S. Miller <davem@davemloft.net>
11942 2015-09-11 David S. Miller <davem@davemloft.net>
11944 * config/sparc/constraints.md: Make "U" constraint a real register
11946 * config/sparc/sparc.c (TARGET_LRA_P): Define.
11947 (D_MODES, DF_MODES): Add missing cast.
11948 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
11949 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
11950 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
11952 * config/sparc/sparc.h (PROMOTE_MODE): Define.
11953 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
11954 provide these insn when flag_pic.
11956 2015-09-17 David S. Miller <davem@davemloft.net>
11958 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
11960 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
11962 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11963 (HARD_REGNO_CALLER_SAVE_MODE): Define.
11964 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
11965 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
11966 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
11967 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
11968 provide when flag_pic.
11970 2015-09-21 Jeff Law <law@redhat.com>
11972 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
11975 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11977 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
11979 2015-09-21 Richard Biener <rguenther@suse.de>
11981 * passes.c (rest_of_decl_compilation): Do not call
11982 dwarf2out_early_global_decl for aliases.
11984 2015-09-21 Richard Biener <rguenther@suse.de>
11987 * dwarf2out.c (add_location_or_const_value_attribute): Remove
11988 attribute parameter. Early exit if either DW_AT_const_value
11989 or DW_AT_location are present already.
11990 (gen_variable_die): Adjust caller.
11991 (dwarf2out_late_global_decl): Likewise.
11993 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
11996 * config/sh/sh.c (sh_remove_overlapping_post_inc,
11997 sh_peephole_emit_move_insn): Add new functions.
11998 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
11999 sh_peephole_emit_move_insn): Declere them.
12000 * config/sh/sh.md: Use them in various peephole2 patterns.
12002 2015-09-21 Richard Biener <rguenther@suse.de>
12004 PR middle-end/67651
12005 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
12006 address with -fno-delete-null-pointer-checks.
12008 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
12010 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
12011 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
12012 (reduc_uplus_v16qi): Remove.
12014 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
12015 (reduc_<VEC_reduc_name>_v2df): Remove.
12016 (reduc_<VEC_reduc_name>_v4sf): Remove.
12017 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
12019 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
12020 gen_ function by removing * prefix.
12021 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
12023 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
12025 PR middle-end/60832
12026 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
12027 Print i_bound without converting it to a tree.
12029 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
12031 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
12032 operands[4] operands[5] swap with std::swap, removed tmp variable.
12033 (arm_evpc_neon_vzip): Replaced in0/in1 and
12034 out0/out1 swaps with std::swap, removed x variable.
12035 (arm_evpc_neon_vtrn): Replaced in0/int1 and
12036 out0/out1 swaos with std::swap, removed x variable.
12037 (arm_expand_vec_perm_const_1): Replaced
12038 d->op0/d->op1 swap with std::swap, removed x variable.
12039 (arm_evpc_neon_vuzp): Replaced in0/in1 and
12040 out0/out1 swaps with std::swap, removed x variable.
12042 2015-09-21 Jonathan Yong <10walls@gmail.com>
12044 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12045 sysroot/usr/lib/32api for additional win32 libraries,
12046 fixes failing Cygwin bootstrapping.
12048 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12050 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
12052 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12055 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
12056 (*mov_t_msb_neg): Rewrite negc pattern.
12058 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12060 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
12061 immediate generation code.
12063 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12065 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
12066 redundant immediate generation code.
12068 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12070 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
12071 (AARCH64_NUM_BITMASKS): Remove.
12072 (aarch64_bitmasks_cmp): Remove.
12073 (aarch64_build_bitmask_table): Remove.
12075 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12077 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
12078 slow immediate matching loops with a faster algorithm.
12080 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12082 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
12085 2015-09-20 Jeff Law <law@redhat.com>
12087 PR tree-optimization/47679
12088 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
12089 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
12090 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
12091 (thread_through_normal_block): Use record_temporary_equivalences.
12093 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
12095 * coretypes.h (gimple): Change typedef to be a forward declaration.
12096 * gimple.h (gimple_statement_base): rename to gimple.
12097 * (all functions and types using gimple): Adjust.
12098 * *.[ch]: Likewise.
12100 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
12101 David Edelsohn <dje.gcc@gmail.com>
12103 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
12104 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12105 (EH_FRAME_THROUGH_COLLECT2): Define.
12106 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12107 (ASM_OUTPUT_DWARF_PCREL): Define.
12108 (ASM_OUTPUT_DWARF_DATAREL): Define.
12110 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
12112 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
12115 2015-09-18 Jeff Law <law@redhat.com>
12117 PR tree-optimization/47679
12118 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
12120 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
12121 object. Update constructor.
12122 (pass_dominator::execute): Corresponding chagnes to declaration
12123 and initialization of avail_exprs_stack. Update constructor call
12124 for dom_opt_dom_walker object.
12125 (lookup_avail_expr, record_cond): Accept additional argument. Pass
12126 it down to children as needed.
12127 (record_equivalences_from_incoming_edge): Likewise.
12128 (eliminate_redundant_computations): Likewise.
12129 (record_equivalences_from_stmt): Likewise.
12130 (simplify_stmt_for_jump_threading): Likewise.
12131 (record_temporary_equivalences): Likewise.
12132 (optimize_stmt): Likewise.
12133 (dom_opt_dom_walker::thread_across_edge): Update access to
12134 avail_exprs_stack object and pass it to children as needed.
12135 (dom_opt_dom_walker::before_dom_children): Similarly.
12136 (dom_opt_dom_walker::after_dom_children): Similarly.
12137 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
12138 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
12139 Add avail_expr_stack argument. Pass it to children as needed.
12140 (dummy_simplify): Likewise.
12141 (simplify_control_stmt_condition): Likewise.
12142 (thread_around_empty_blocks): Likewise.
12143 (thread_through_normal_block): Likewise.
12144 (thread_across_edge): Likewise.
12145 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12146 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
12148 PR tree-optimization/47679
12149 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
12151 (dom_opt_dom_walker): New private member holding the const_and_copies
12152 object. Update constructor.
12153 (pass_dominator::execute): Corresponding changes to declaration
12154 and initialization of const_and_copies. Update constructor call
12155 for the dom_opt_dom_walker object.
12156 (record_temporary_equivalences): Accept const_and_copies argument
12157 pass it down to children as needed.
12158 (record_equality): Likewise.
12159 (record_equivalences_from_incoming_edge): Likewise.
12160 (cprop_into_successor_phis, optimize_stmt): Likewise.
12161 (eliminate_redundant_computations): Likewise.
12162 (dom_opt_dom_walker::thread_across_edge): Update access to
12163 const_and_copies object and pass it to children as needed.
12164 (dom_opt_dom_walker::before_dom_children): Similarly.
12165 (dom_opt_dom_walker::after_dom_children): Similarly.
12167 PR tree-optimization/47679
12168 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
12169 it into the avail_exprs_stack class.
12170 (pass_dominator::execute): Corresponding changes to declaration
12171 and initialization of avail_exprs. Pass avail_exprs to
12172 dump_dominator_optimization_stats.
12173 (record_cond): Extract avail_exprs from avail_exprs_stack.
12174 (lookup_avail_expr): Similarly.
12175 (htab_staticstics): Remove unnecessary prototype. Move to earlier
12177 (dump_dominator_optimization_stats): Make static and prototype.
12178 Add argument for the hash table to dump.
12179 (debug_dominator_optimization_stats): Remove.
12180 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
12182 (debug_dominator_optimization_stats): Similarly.
12183 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
12184 "void" in prototype for pop_to_marker method. Add accessor method
12185 for the underlying avail_exprs table.
12187 * tree-ssa-threadedge.c: Remove trailing whitespace.
12189 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
12191 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
12193 (pa_ldil_cint_p): Likewise.
12194 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
12195 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
12197 * config/pa/pa.md: Likewise.
12199 2015-09-18 David Malcolm <dmalcolm@redhat.com>
12201 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
12202 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
12203 (diagnostic_show_locus): Likewise.
12204 (diagnostic_print_caret_line): Likewise.
12205 * diagnostic-show-locus.c: New file.
12207 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
12209 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
12210 "back" parameter. Declare label in #if block.
12212 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
12214 PR middle-end/67619
12215 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
12216 the address to a register.
12218 2015-09-18 Jeff Law <law@redhat.com>
12220 PR tree-optimization/47679
12221 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
12222 * tree-ssa-dom.c: Remove unnecessary header includes.
12223 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
12224 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
12225 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
12226 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
12227 (pass_phi_only_cprop::execute): Likewise.
12228 (make_pass_phi_only_cprop): Likewise.
12229 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
12230 uses of file scoped statics by passing the required objects
12231 as parameters wherever needed.
12233 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
12234 David Edelsohn <dje.gcc@gmail.com>
12236 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
12237 EH_FRAME_THROUGH_COLLECT2.
12238 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
12240 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
12241 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
12242 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
12243 * except.c (switch_to_exception_section): Use a read-only section
12244 even if EH_FRAME_SECTION_NAME is undefined.
12245 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
12246 * collect2.c (write_c_file_stat): Provide dbase on AIX.
12247 (scan_prog_file): Don't export __dso_handle nor
12248 __gcc_unwind_dbase.
12249 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12250 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12251 (ASM_OUTPUT_DWARF_PCREL): Define.
12252 (ASM_OUTPUT_DWARF_DATAREL): Define.
12253 (EH_FRAME_THROUGH_COLLECT2): Define.
12254 (EH_FRAME_IN_DATA_SECTION): Delete.
12255 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
12256 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
12258 (rs6000_asm_output_dwarf_datarel): Declare.
12259 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
12260 (rs6000_aix_asm_output_dwarf_datarel): New.
12261 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
12262 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
12263 (EH_FRAME_THROUGH_COLLECT2): Define.
12264 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
12265 (EH_FRAME_THROUGH_COLLECT2): Define.
12266 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12267 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
12268 (EH_FRAME_THROUGH_COLLECT2): New.
12269 (ASM_OUTPUT_DWARF_DATAREL): New.
12270 * doc/tm.texi: Regenerate.
12272 2015-09-18 Richard Biener <rguenther@suse.de>
12274 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
12275 we're in early phase.
12276 (schedule_generic_params_dies_gen): Likewise.
12277 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
12278 work as possible, retaining unhandled cases.
12279 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
12280 clear out generic_type_instances at the end.
12281 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
12282 (dwarf2out_early_finish): ... here. Do most of
12283 gen_remaining_tmpl_value_param_die_attribute here.
12285 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
12287 PR tree-optimization/67283
12288 * tree-sra.c (type_consists_of_records_p): Rename to...
12289 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12290 (completely_scalarize_record): Rename to...
12291 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12292 (scalarize_elem): New.
12293 (analyze_all_variable_accesses): Follow renamings.
12295 2015-09-18 Richard Biener <rguenther@suse.de>
12297 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
12300 2015-09-18 Richard Biener <rguenther@suse.de>
12302 PR tree-optimization/66142
12303 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
12304 treat MEM[&x] and x the same.
12305 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
12306 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
12307 when we simplified sth.
12308 (vn_reference_maybe_forwprop_address): Likewise.
12309 (valueize_refs_1): When we simplified through
12310 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
12311 set valueized_anything to true.
12312 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
12313 one ref kills the other instead of just a offset-based test.
12314 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
12315 for the operand_equal_p test to compare bases and also compare
12318 2015-09-17 Christian Bruel <christian.bruel@st.com>
12320 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
12322 2015-09-17 Richard Henderson <rth@redhat.com>
12325 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
12326 pointers that encode the alignment of the object.
12328 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
12330 PR rtl-optimization/66790
12331 * df-problems.c (LIVE): Amend documentation.
12333 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
12335 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
12337 (GTFILES): Replace optabs.c with optabs-libfunc.c.
12338 * genopinit.c (main): Add an include guard to insn-opinit.h.
12339 Protect the rtx_code parts with NUM_RTX_CODE.
12340 * optabs.h: Split parts out to...
12341 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
12342 * optabs.c: Split parts out to...
12343 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
12344 * cilk-common.c: Include optabs-query.h rather than optabs.h.
12345 * fold-const.c: Likewise.
12346 * target-globals.c: Likewise.
12347 * tree-if-conv.c: Likewise.
12348 * tree-ssa-forwprop.c: Likewise.
12349 * tree-ssa-loop-prefetch.c: Likewise.
12350 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
12351 Remove unncessary include files.
12352 * tree-ssa-phiopt.c: Likewise.
12353 * tree-ssa-reassoc.c: Likewise.
12354 * tree-switch-conversion.c: Likewise.
12355 * tree-vect-data-refs.c: Likewise.
12356 * tree-vect-generic.c: Likewise.
12357 * tree-vect-loop.c: Likewise.
12358 * tree-vect-patterns.c: Likewise.
12359 * tree-vect-slp.c: Likewise.
12360 * tree-vect-stmts.c: Likewise.
12361 * tree-vrp.c: Likewise.
12362 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
12363 rather than optabs.h.
12364 * expr.c: Include optabs-tree.h.
12365 * function.c: Likewise.
12367 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
12369 PR middle-end/65958
12370 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
12371 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
12372 * config/arm/arm.c: Include common/common-target.h.
12373 (use_return_insn): Return 0 if the static chain register was saved
12374 above a non-APCS frame.
12375 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
12376 (struct scratch_reg): New.
12377 (get_scratch_register_on_entry): New function.
12378 (release_scratch_register_on_entry): Likewise.
12379 (arm_emit_probe_stack_range): Likewise.
12380 (output_probe_stack_range): Likewise.
12381 (arm_expand_prologue): Factor out code dealing with the IP register
12382 for nested function and adjust it for stack checking.
12383 Invoke arm_emit_probe_stack_range if static builtin stack checking
12385 (thumb1_expand_prologue): Sorry out if static builtin stack checking
12387 (arm_expand_epilogue): Add the saved static chain register, if any, to
12388 the amount of pre-pushed registers to pop.
12389 (arm_frame_pointer_required): Return true if static stack checking is
12390 enabled and we want to catch the exception with the EABI unwinder.
12391 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
12392 (UNSPEC_PROBE_STACK_RANGE): Likewise.
12393 * config/arm/arm.md (probe_stack): New insn.
12394 (probe_stack_range): Likewise.
12396 2015-09-17 Richard Biener <rguenther@suse.de>
12398 * genmatch.c (parser::parse_expr): Improve error message
12399 for mis-placed flags.
12401 2015-09-17 Richard Biener <rguenther@suse.de>
12403 * passes.c (rest_of_decl_compilation): Always call early_global_decl
12404 debug hook when we created a varpool node.
12405 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
12406 dwarf2out_early_global_decl, when not just add location or
12407 value attributes to existing DIEs.
12409 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
12411 * config/aarch64/aarch64.md (copysigndf3): New.
12412 (copysignsf3): Likewise.
12414 2015-09-17 David S. Miller <davem@davemloft.net>
12416 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
12417 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
12418 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12419 (HARD_REGNO_CALLER_SAVE_MODE): Define.
12420 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12421 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12422 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12423 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12424 provide when flag_pic.
12426 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
12428 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
12429 object_allocator change.
12431 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12433 PR tree-optimization/66388
12434 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
12435 (dump_iv): Dump no_overflow information.
12436 (alloc_iv): Initialize new field for struct iv.
12437 (mark_bivs): Count number of no_overflow bivs.
12438 (find_deriving_biv_for_expr, record_biv_for_address_use): New
12440 (idx_find_step): Call new functions above.
12441 (add_candidate_1, add_candidate): New paramter.
12442 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
12443 (get_computation_aff): Simplify convertion of cand for BIV.
12444 (get_computation_cost_at): Step cand's base if necessary.
12446 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12448 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
12450 (tree_simplify_using_condition): Ditto.
12451 (simplify_using_initial_conditions): Ditto.
12452 (loop_exits_before_overflow): Pass new argument to function
12453 simplify_using_initial_conditions. Remove case for type conversions
12455 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
12457 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
12458 in iv base using loop initial conditions.
12460 2015-09-16 Jeff Law <law@redhat.com>
12462 PR tree-optimization/47679
12463 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
12464 (free_all_edge_infos): Use it.
12465 (allocate_edge_info): Free preexisting edge info data.
12466 (pass_dominator::execute): Set up initial edge info structures.
12467 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
12468 thread_across_edge.
12469 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
12470 If non-null, then push/pop markers appropriately.
12471 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12472 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
12473 thread-across_edge.
12475 2015-09-16 James Bowman <james.bowman@ftdichip.com>
12477 * config/ft32/ft32.c: Fix the memory address space predicate.
12479 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
12482 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
12483 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12485 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
12487 * toplev.h (check_global_declaration): Remove declaration.
12488 * toplev.c (check_global_declaration): Move to ...
12489 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
12490 (analyze_functions): Update call.
12492 2015-09-16 David S. Miller <davem@davemloft.net>
12494 * lra-constraints.c (simplify_operand_subreg): Do not assume that
12495 lowpart of a SUBREG has offset zero.
12497 2015-09-16 Jeff Law <law@redhat.com>
12499 PR tree-optimization/47679
12500 * tree-ssa-dom.c (enum expr_kind): Moved from here to
12501 tree-ssa-scopedtables.h.
12502 (struct hashable_expr, class expr_hash_elt): Likewise.
12503 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
12504 Move associated methods into tree-ssa-scopedtables.c.
12505 (avail_expr_hash, initialize_expr_from_cond): Similarly.
12506 (hashable_expr_equal_p, add_expr_commutative): Likewise.
12507 (add_hashable_expr): Likewise.
12508 (record_cond): Delete element directly.
12509 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
12510 private copy ctor and assignment operator methods.
12511 (expr_elt_hasher): Inline trivial methods.
12512 (initialize_expr_from_cond): Prototype.
12513 * tree-ssa-scopedtables.c: Add necessary includes, functions and
12514 methods that were previously in tree-ssa-dom.c. Improve various
12517 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
12519 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
12521 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
12524 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12527 2015-09-16 Richard Biener <rguenther@suse.de>
12529 PR middle-end/67253
12530 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
12531 location of possibly shared trees.
12533 2015-09-16 Richard Biener <rguenther@suse.de>
12535 PR middle-end/67271
12536 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
12538 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
12540 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
12541 offset and size computations instead of HOST_WIDE_INT.
12543 2015-09-16 Richard Biener <rguenther@suse.de>
12545 PR middle-end/67442
12546 * fold-const.c (extract_muldiv_1): Properly extend multiplication
12547 result before builting a tree via wide_int_to_tree.
12549 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
12551 * Makefile.in: Add memory-block.cc
12552 (pool_allocator::initialize): Use fixed block size.
12553 (pool_allocator::release): Use memory_block_pool.
12554 (pool_allocator::allocate): Likewise.
12555 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
12557 * cfg.c (initialize_original_copy_tables): Likewise.
12558 * cselib.c (elt_list_pool, elt_loc_list_pool,
12559 cselib_val_pool): Likewise.
12560 * df-problems.c (df_chain_alloc): Likewise.
12561 * df-scan.c (df_scan_alloc): Likewise.
12562 * dse.c (cse_store_info_pool, rtx_store_info_pool,
12563 read_info_type_pool, insn_info_type_pool, bb_info_pool,
12564 group_info_pool, deferred_change_pool): Likewise.
12565 * et-forest.c (et_nodes, et_occurrences): Likewise.
12566 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
12567 ipcp_agg_lattice_pool): Likewise.
12568 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
12569 * ipa-profile.c (histogram_pool): Likewise.
12570 * ipa-prop.c (ipa_refdesc_pool): Likewise.
12571 * ira-build.c (live_range_pool, allocno_pool, object_pool,
12572 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
12573 * ira-color.c (update_cost_record_pool): Likewise.
12574 * lra-lives.c (lra_live_range_pool): Likewise.
12575 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
12576 * memory-block.cc: New file.
12577 * memory-block.h: New file.
12578 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
12579 * sched-deps.c (sched_deps_init): Likewise.
12580 * sel-sched-ir.c (sched_lists_pool): Likewise.
12581 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
12582 * tree-sra.c (access_pool): Likewise.
12583 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
12584 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
12585 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
12586 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12587 * tree-ssa-strlen.c (strinfo_pool): Likewise.
12588 * tree-ssa-structalias.c (variable_info_pool): Likewise.
12589 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
12590 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
12592 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12594 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
12596 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
12599 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12601 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
12602 to pass TLS call argument, according to current ABI.
12603 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
12604 callx0 for TLS call, according to current ABI.
12606 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12608 * tree-eh.c (lower_try_finally_dup_block): Clear location information
12609 on stack restore statements.
12610 (decide_copy_try_finally): Do not consider a stack restore statement as
12611 coming from sources.
12613 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
12615 * config/alpha/alpha.c (alpha_expand_block_clear): Use
12616 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
12618 2015-09-15 Jeff Law <law@redhat.com>
12620 PR tree-optimization/47679
12621 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
12622 methods and private members.
12623 (avail_exprs_stack): Similarly. Change type of global
12624 from a pair of expr_hash_elt_t to the new class.
12625 (expr_elt_hasher::hash): Corresponding changes.
12626 (expr_elt_hasher::equal): Similarly.
12627 (avail_expr_hash): Similarly.
12628 (pass_dominator::execute): Similarly.
12629 (dom_opt_dom_walker::thread_across_edge): Similarly.
12630 (record_cond): Similarly.
12631 (dom_opt_dom_walker::before_dom_children): Similarly.
12632 (dom_opt_dom_walker::after_dom_children): Similarly.
12633 (lookup_avail_expr): Likewise.
12634 (initialize_hash_element): Now a expr_hash_elt constructor.
12635 (initialize_hash_element_from_expr): Similarly.
12636 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
12637 (free_expr_hash_elt): Call dtor for the element.
12638 (remove_local_expressions_from_table): Now the "pop_to_marker"
12639 method in the available_exprs_stack class.
12640 (avail_expr_stack::record_expr): Method factored out.
12641 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
12643 (hashable_expr_equal_p): Fix formatting.
12645 2015-09-15 David Malcolm <dmalcolm@redhat.com>
12647 * input.h (location_get_source_line): Drop "expanded_location"
12648 param in favor of a file and line number.
12649 * input.c (location_get_source_line): Likewise.
12650 (dump_location_info): Update for change in signature of
12651 location_get_source_line.
12652 * diagnostic.c (diagnostic_print_caret_line): Likewise.
12654 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12656 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
12657 Bump to 4KB for SJLJ exceptions.
12658 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
12659 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
12660 * doc/tm.texi: Regenerate.
12662 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12664 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
12665 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
12668 2015-09-15 Richard Biener <rguenther@suse.de>
12670 PR tree-optimization/67470
12671 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
12672 structure for PHI hoisting by inserting a forwarder block
12675 2015-09-15 Christian Bruel <christian.bruel@st.com>
12677 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
12678 (arm_option_print): New function.
12680 2015-09-15 Christian Bruel <christian.bruel@st.com>
12683 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
12684 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
12685 Remove flags parameter.
12686 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
12687 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
12688 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
12689 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
12690 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
12691 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
12692 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
12693 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
12695 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12697 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
12699 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
12700 AARCH64_VALID_SIMD_DREG_MODE.
12702 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12704 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
12705 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
12706 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
12707 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
12708 aarch64_ld4_lane<mode>): Combine together, making...
12709 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12710 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12711 aarch64_st4_lane<mode>): Combine together, making...
12712 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12713 * config/aarch64/iterators.md (nregs): Add comment.
12715 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12717 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
12718 Change operand mode from <V_TWO_ELEM> to BLK.
12719 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
12720 (aarch64_vec_store_lanesoi_lane<mode): Likewise
12721 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12722 (aarch64_ld2_lane<mode>): Likewise.
12723 (aarch64_st2_lane<VQ:mode>): Likewise.
12724 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
12726 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12728 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
12729 Change operand mode from <V_FOUR_ELEM> to BLK.
12730 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
12731 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
12732 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12733 (aarch64_ld4_lane<mode>): Likewise.
12734 (aarch64_st4_lane<mode>): Likewise.
12735 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
12737 2015-09-15 Richard Biener <rguenther@suse.de>
12739 PR middle-end/67563
12740 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
12741 transfer EH info from old to new stmt.
12742 (replace_call_with_value): Likewise.
12743 (replace_call_with_call_and_fold): Likewise.
12744 (gimple_fold_builtin_memory_op): Likewise.
12745 (gimple_fold_builtin_memset): Likewise.
12746 (gimple_fold_builtin_stpcpy): Likewise.
12747 (gimple_fold_call): Likewise.
12749 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12751 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
12753 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
12754 (aarch64_simd_intEI_type_node): Likewise.
12755 (aarch64_simd_builtin_std_type): Remove EImode case.
12756 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
12757 * config/aarch64/aarch64-modes.def: Remove EImode.
12759 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12761 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
12762 Change operand mode from <V_THREE_ELEM> to BLK.
12763 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
12764 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
12765 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12766 (aarch64_ld3_lane<mode>): Likewise.
12767 (aarch64_st3_lane<mode>): Likewise.
12768 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
12770 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12772 * config/aarch64/aarch64-simd.md
12773 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
12774 Change all TImode operands to BLKmode.
12775 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
12776 Change all EImode operands to BLKmode.
12777 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
12778 Change all OImode operands to BLKmode.
12780 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
12781 and call set_mem_size.
12782 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
12784 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
12786 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12788 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
12790 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
12792 (vec_store_lanesci_lane<mode>): Rename to...
12793 (aarch64_vec_store_lanesci_lane<mode>): ...this.
12795 (vec_store_lanesxi_lane<mode>): Rename to...
12796 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
12798 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12799 aarch64_st4_lane<mode>): Follow renaming.
12801 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12803 * config/s390/s390.c (s390_const_operand_ok): Add missing
12806 2015-09-15 Richard Biener <rguenther@suse.de>
12809 * lto-streamer.h (lto_location_cache::current_sysp): Properly
12811 * lto-streamer-out.c (clear_line_info): Likewise.
12813 2015-09-15 Richard Biener <rguenther@suse.de>
12815 * doc/match-and-simplify.texi: Fix wording.
12817 2015-09-15 Bin Cheng <bin.cheng@arm.com>
12819 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
12820 unnecessary type conversion in op1.
12822 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12824 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
12825 (dup_block_and_redirect): Delete function.
12826 (can_dup_for_shrink_wrapping): New function.
12827 (fix_fake_fallthrough_edge): New function.
12828 (try_shrink_wrapping): Rewrite function.
12829 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
12831 2015-09-14 Rich Felker <dalias@libc.org>
12833 * configure.ac: Change target pattern for sh TLS support
12834 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
12835 * configure: Regenerate.
12837 2015-09-14 Jeff Law <law@redhat.com>
12839 PR tree-optimization/47679
12840 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
12841 type rather than void *.
12843 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
12846 * diagnostic.c (diagnostic_initialize): Do not set
12847 some_warnings_are_errors.
12848 (diagnostic_finish): Use DK_WERROR count instead.
12849 (diagnostic_report_diagnostic): Do not set
12850 some_warnings_are_errors.
12851 * diagnostic.h (struct diagnostic_context): Remove
12852 some_warnings_are_errors.
12854 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
12856 * config/sparc/predicates.md (const_all_ones_operand): Use
12857 CONSTM1_RTX to simplify definition.
12859 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
12862 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
12865 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
12867 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
12868 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
12869 OPT_fshow_column to handled saved option cases.
12870 (append_compiler_options): Do not skip the above added options.
12872 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12875 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
12876 nopcrelative_literal_loads.
12877 (aarch64_classify_address): Likewise.
12878 (aarch64_constant_pool_reload_icode): Define.
12879 (aarch64_secondary_reload): Handle secondary reloads for
12881 (aarch64_override_options): Handle nopcrelative_literal_loads.
12882 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
12883 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
12885 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
12886 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
12887 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
12889 * doc/invoke.texi (mpc-relative-literal-loads): Document.
12891 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
12893 PR middle-end/67401
12894 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
12895 sync_compare_and_swap_optab libcall to target_oval.
12897 2015-09-14 Marek Polacek <polacek@redhat.com>
12899 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
12901 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
12903 2015-09-11 Mark Wielaard <mjw@redhat.com>
12906 * toplev.c (check_global_declaration): Check and use
12907 warn_unused_const_variable.
12908 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
12909 (-Wunused-variable): Remove non-constant. For C implies
12910 -Wunused-const-variable.
12911 (-Wunused-const-variable): New.
12913 2015-09-14 Richard Biener <rguenther@suse.de>
12915 * doc/match-and-simplify.texi: Update for changed syntax
12916 of inner ifs and the new switch expression.
12918 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
12920 * config/i386/haswell.md: New file describing Haswell pipeline.
12921 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
12922 haswell-like processors.
12923 (ix86_reassociation_width): Increase reassociation width for 64-bit
12924 Haswell processor family.
12925 * config/i386/i386.md: Introduce haswell cpu and include new md file.
12927 2015-09-14 Richard Biener <rguenther@suse.de>
12929 * doc/match-and-simplify.texi: Fixup some formatting issues
12930 and document the 's' flag.
12932 2015-09-13 Olivier Hainque <hainque@adacore.com>
12933 Eric Botcazou <ebotcazou@adacore.com>
12935 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
12936 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
12937 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
12938 (TARGET_CPU_gr5): Likewise.
12939 (TARGET_CPU_gr6): Likewise.
12940 (MULTILIB_DEFAULTS): Likewise.
12941 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
12942 for mcpu=gr5 and mcpu=gr6.
12943 (MULTILIB_DIRNAMES): Adjust accordingly.
12945 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12947 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
12948 (mem_ref_p): Likewise.
12949 (outermost_indep_loop): Adjust.
12950 (mem_ref_in_stmt): Likewise.
12951 (determine_max_movement): Likewise.
12952 (mem_ref_alloc): Likewise.
12953 (record_mem_ref_loc): Likewise.
12954 (set_ref_stored_in_loop): Likewise.
12955 (mark_ref_stored): Likewise.
12956 (gather_mem_refs_stmt): Likewise.
12957 (mem_refs_may_alias_p): Likewise.
12958 (for_all_locs_in_loop): Likewise.
12959 (struct rewrite_mem_ref_loc): Likewise.
12960 (rewrite_mem_refs): Likewise.
12961 (struct first_mem_ref_loc_1): Likewise.
12962 (first_mem_ref_loc): Likewise.
12963 (struct sm_set_flag_if_changed): Likewise.
12964 (execute_sm_if_changed_flag_set): Likewise.
12965 (execute_sm): Likewise.
12966 (hoist_memory_references):
12967 (struct ref_always_accessed): Likewise.
12968 (ref_always_accessed_p): Likewise.
12969 (refs_independent_p): Likewise.
12970 (record_dep_loop): Likewise.
12971 (ref_indep_loop_p_1): Likewise.
12972 (ref_indep_loop_p_2): Likewise.
12973 (ref_indep_loop_p): Likewise.
12974 (can_sm_ref_p): Likewise.
12975 (find_refs_for_sm): Likewise.
12976 (tree_ssa_lim_finalize): Likewise.
12978 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12980 * dwarf2out.c (dw_attr_ref): Remove typedef.
12981 (dw_line_info_ref): Likewise.
12982 (pubname_ref): Likewise.
12983 (dw_ranges_ref): Likewise.
12984 (dw_ranges_by_label_ref): Likewise.
12985 (comdat_type_node_ref): Likewise.
12987 (get_AT_low_pc): Likewise.
12988 (get_AT_hi_pc): Likewise.
12989 (get_AT_string): Likewise.
12990 (get_AT_flag): Likewise.
12991 (get_AT_unsigned): Likewise.
12992 (get_AT_ref): Likewise.
12993 (get_AT_file): Likewise.
12994 (remove_AT): Likewise.
12995 (print_die): Likewise.
12996 (check_die): Likewise.
12997 (die_checksum): Likewise.
12998 (attr_checksum_ordered): Likewise.
12999 (struct checksum_attributes): Likewise.
13000 (collect_checksum_attributes): Likewise.
13001 (die_checksum_ordered): Likewise.
13002 (same_die_p): Likewise.
13003 (is_declaration_die): Likewise.
13004 (clone_die): Likewise.
13005 (clone_as_declaration): Likewise.
13006 (copy_declaration_context): Likewise.
13007 (break_out_comdat_types): Likewise.
13008 (copy_decls_walk): Likewise.
13009 (output_location_lists): Likewise.
13010 (external_ref_hasher::hash): Likewise.
13011 (optimize_external_refs_1): Likewise.
13012 (build_abbrev_table): Likewise.
13013 (size_of_die): Likewise.
13014 (unmark_all_dies): Likewise.
13015 (size_of_pubnames): Likewise.
13016 (output_die_abbrevs): Likewise.
13017 (output_die): Likewise.
13018 (output_pubnames): Likewise.
13019 (add_ranges_num): Likewise.
13020 (add_ranges_by_labels): Likewise.
13021 (add_high_low_attributes): Likewise.
13022 (gen_producer_string): Likewise.
13023 (dwarf2out_set_name): Likewise.
13024 (new_line_info_table): Likewise.
13025 (prune_unused_types_walk_attribs): Likewise.
13026 (prune_unused_types_update_strings): Likewise.
13027 (prune_unused_types): Likewise.
13028 (resolve_addr): Likewise.
13029 (optimize_location_lists_1): Likewise.
13030 (index_location_lists): Likewise.
13031 (dwarf2out_finish): Likewise.
13033 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13035 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
13037 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13039 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
13040 (dump_asserts_for): Adjust.
13041 (register_new_assert_for): Likewise.
13042 (process_assert_insertions): Likewise.
13043 (insert_range_assertions): Likewise.
13045 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13047 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
13048 and remove typedef.
13049 (new_temp_expr_table): Adjust.
13050 (free_temp_expr_table): Likewise.
13051 (version_to_be_replaced_p): Likewise.
13052 (make_dependent_on_partition): Likewise.
13053 (add_to_partition_kill_list): Likewise.
13054 (remove_from_partition_kill_list): Likewise.
13055 (add_dependence): Likewise.
13056 (finished_with_expr): Likewise.
13057 (process_replaceable): Likewise.
13058 (kill_expr): Likewise.
13059 (kill_virtual_exprs): Likewise.
13060 (mark_replaceable): Likewise.
13061 (find_replaceable_in_bb): Likewise.
13062 (find_replaceable_exprs): Likewise.
13063 (debug_ter): Likewise.
13065 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13067 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
13068 (struct btr_user): Rename from btr_user_s.
13069 (struct btr_def): Rename from btr_def_s.
13070 (find_btr_def_group): Adjust.
13071 (add_btr_def): Likewise.
13072 (new_btr_user): Likewise.
13073 (note_other_use_this_block): Likewise.
13074 (compute_defs_uses_and_gen): Likewise.
13075 (link_btr_uses): Likewise.
13076 (build_btr_def_use_webs): Likewise.
13077 (block_at_edge_of_live_range_p): Likewise.
13078 (btr_def_live_range): Likewise.
13079 (combine_btr_defs): Likewise.
13080 (move_btr_def): Likewise.
13081 (migrate_btr_def): Likewise.
13082 (migrate_btr_defs): Likewise.
13084 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13086 * var-tracking.c (shared_hash_def): Rename to shared_hash.
13087 (shared_hash): Remove typedef.
13088 (struct dataflow_set): Adjust.
13089 (shared_hash_unshare): Likewise.
13090 (dataflow_set_merge): Likewise.
13091 (vt_initialize): Likewise.
13092 (vt_finalize): Likewise.
13094 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13096 * var-tracking.c (struct location_chain): Rename from
13097 location_chain_def.
13098 (struct variable_part): Adjust.
13099 (variable_htab_free): Likewise.
13100 (unshare_variable): Likewise.
13101 (get_init_value): Likewise.
13102 (get_addr_from_local_cache): Likewise.
13103 (drop_overlapping_mem_locs): Likewise.
13104 (val_reset): Likewise.
13105 (struct variable_union_info): Likewise.
13106 (variable_union): Likewise.
13107 (find_loc_in_1pdv): Likewise.
13108 (insert_into_intersection): Likewise.
13109 (intersect_loc_chains): Likewise.
13110 (canonicalize_loc_order_check): Likewise.
13111 (canonicalize_values_mark): Likewise.
13112 (canonicalize_values_star): Likewise.
13113 (canonicalize_vars_star): Likewise.
13114 (variable_merge_over_cur): Likewise.
13115 (remove_duplicate_values): Likewise.
13116 (variable_post_merge_new_vals): Likewise.
13117 (variable_post_merge_perm_vals): Likewise.
13118 (find_mem_expr_in_1pdv): Likewise.
13119 (dataflow_set_preserve_mem_locs): Likewise.
13120 (dataflow_set_remove_mem_locs): Likewise.
13121 (variable_part_different_p): Likewise.
13122 (onepart_variable_different_p): Likewise.
13123 (find_src_set_src): Likewise.
13124 (dump_var): Likewise.
13125 (set_slot_part): Likewise.
13126 (clobber_slot_part): Likewise.
13127 (delete_slot_part): Likewise.
13128 (vt_expand_var_loc_chain): Likewise.
13129 (emit_note_insn_var_location): Likewise.
13130 (vt_finalize): Likewise.
13132 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13134 * dse.c (store_info_t): Remove typedef.
13135 (group_info_t): Likewise.
13136 (const_group_info_t): Likewise.
13137 (deferred_change_t): Likewise.
13138 (get_group_info): Adjust.
13139 (free_store_info): Likewise.
13140 (canon_address): Likewise.
13141 (clear_rhs_from_active_local_stores): Likewise.
13142 (record_store): Likewise.
13143 (replace_read): Likewise.
13144 (check_mem_read_rtx): Likewise.
13145 (scan_insn): Likewise.
13146 (remove_useless_values): Likewise.
13147 (dse_step1): Likewise.
13148 (dse_step2_init): Likewise.
13149 (dse_step2_nospill): Likewise.
13150 (scan_stores_nospill): Likewise.
13151 (scan_reads_nospill): Likewise.
13152 (dse_step3_exit_block_scan): Likewise.
13153 (dse_step3): Likewise.
13154 (dse_step5_nospill): Likewise.
13155 (dse_step6): Likewise.
13157 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13159 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
13160 (alias_set_entry): Remove typedef.
13161 (alias_set_subset_of): Adjust.
13162 (alias_sets_conflict_p): Likewise.
13163 (init_alias_set_entry): Likewise.
13164 (get_alias_set): Likewise.
13165 (new_alias_set): Likewise.
13166 (record_alias_subset): Likewise.
13168 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
13170 * doc/install.texi (Downloading the source): Mark up
13171 contrib/download_prerequisites properly and drop leading "./".
13173 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13175 * config/arc/arc.h: Remove define of STRUCT_VALUE.
13176 * config/lm32/lm32.h: Likewise.
13177 * config/mep/mep.h: Likewise.
13178 * config/visium/visium.h: Likewise.
13179 * system.h: Poison STRUCT_VALUE macro.
13181 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
13183 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
13184 CONSTANT_P operands.
13186 2015-09-11 David S. Miller <davem@davemloft.net>
13188 * config/sparc/constraints.md: Make "U" constraint a real register
13190 * config/sparc/sparc.c (TARGET_LRA_P): Define.
13191 (D_MODES, DF_MODES): Add missing cast.
13192 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13193 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13194 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13196 * config/sparc/sparc.h (PROMOTE_MODE): Define.
13197 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13198 provide these insn when flag_pic.
13200 2015-09-11 Jeff Law <law@redhat.com>
13202 PR tree-optimization/47679
13203 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
13204 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
13205 member with m_. Update inline member functions as necessary. Add
13207 * tree-ssa-scopedtables.c: Update const_and_copies's member
13208 functions to use m_ prefix to access the stack.
13210 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
13212 * graphite-optimize-isl.c (disable_tiling): Remove.
13213 (get_schedule_for_band): Do not use disable_tiling.
13214 (get_prevector_map): Delete function.
13215 (enable_polly_vector): Remove.
13216 (get_schedule_for_band_list): Remove dead code.
13218 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
13220 * graphite-optimize-isl.c (get_tile_map): Refactor.
13221 (get_schedule_for_band): Same.
13222 (getScheduleForBand): Same.
13223 (get_prevector_map): Same.
13224 (get_schedule_for_band_list): Same.
13225 (get_schedule_map): Same.
13226 (get_single_map): Same.
13227 (apply_schedule_map_to_scop): Same.
13228 (optimize_isl): Same.
13230 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13233 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
13235 * config/aarch64/iterators.md (GPF_TF_F16): New.
13238 2015-09-10 Nathan Sidwell <nathan@acm.org>
13240 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
13241 (nvptx_reorg): Adjust comments.
13243 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
13246 * configure.ac: Check if setenv and unsetenv are declared.
13247 * configure: Rebuild.
13248 * config.in: Rebuild.
13249 * system.h: Declare setenv and unsetenv if not declared.
13251 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13253 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
13254 commentary to simplify permute mask adjustment equation.
13255 (special_handling_values): Add SH_VPERM.
13256 (const_load_sequence_p): New function.
13257 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
13258 the mask loaded from the constant pool.
13259 (adjust_vperm): New function.
13260 (handle_special_swappables): Call adjust_vperm.
13261 (dump_swap_insn_table): Handle SH_VPERM.
13263 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
13265 * shrink-wrap.c (requires_stack_frame_p): Remove static.
13266 * shrink-wrap.h (requires_stack_frame_p): Put back.
13268 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
13270 * reload1.c (elimination_costs_in_insn): Locally turn
13271 -Wmaybe-uninitialized into a warning.
13273 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
13275 * shrink-wrap.c (requires_stack_frame_p): Make static.
13276 (prepare_shrink_wrap): Likewise.
13277 (dup_block_and_redirect): Likewise.
13278 * shrink-wrap.h: Remove declarations of those functions.
13280 2015-09-10 Mark Wielaard <mjw@redhat.com>
13282 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
13284 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
13287 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
13288 missing simplify_gen_subreg.
13290 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13292 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
13293 the vector element is bigger than 64 bit.
13295 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13297 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
13298 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
13300 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13302 * config/s390/s390.c: Add V1TImode to constant pool modes.
13304 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13307 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
13308 predicate. Set predicable_short_it attr to "no".
13310 2015-09-10 Jiong Wang <jiong.wang@arm.com>
13312 PR rtl-optimization/67421
13313 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
13314 left wide shift tranformation.
13316 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
13318 * common/config/arc/arc-common.c: Remove references to A5.
13319 * config/arc/arc-opts.h: Likewise.
13320 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
13321 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
13322 * config/arc/t-arc-newlib: Likewise.
13324 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
13326 * config/arc/arc.md (length): Fix attribute length for conditional
13327 executed instructions with long immediate.
13329 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13331 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
13332 type for second alternative.
13334 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
13336 * doc/invoke.texi (Downloading GCC): Mention
13337 contrib/download_prerequisites script.
13339 2015-09-10 Jakub Jelinek <jakub@redhat.com>
13342 * gimplify.c (gimplify_omp_for): If inner stmt is not found
13343 for combined loop, assert seen_error () and return GS_ERROR.
13345 PR middle-end/67521
13346 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
13347 if decl is already in outer->variables.
13349 PR middle-end/67517
13350 * gimplify.c (gimplify_scan_omp_clauses): Instead of
13351 asserting that decl is not specified in octx->variables,
13352 break out of the loop if it is.
13355 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
13356 iterator is not explicitly determined, but is defined inside
13357 of the combined workshare region, handle it like if it has
13358 DECL_EXPR in OMP_FOR_PRE_BODY.
13360 2015-09-09 Nathan Sidwell <nathan@acm.org>
13362 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
13363 (*cmp<mode>): Add assembler spacing.
13364 (setcc_int<mode>, set_cc_float<mode>): Likewise.
13365 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
13367 (write_func_decl_from_insn): Refactor argument loops & comma emission.
13368 (nvptx_expand_call): Likewise.
13369 (nvptx_output_call_insn): Likewise.
13370 (nvptx_reorg_subreg): Add spacing.
13372 2015-09-09 Marek Polacek <polacek@redhat.com>
13374 PR middle-end/67512
13375 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
13378 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
13381 * doc/invoke.texi ([Wsubobject-linkage]): Document.
13383 2015-09-09 Tom de Vries <tom@codesourcery.com>
13385 * params-list.h: Add missing copyright notice.
13387 2015-09-09 Nathan Sidwell <nathan@acm.org>
13389 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
13390 sel_truesi, not andsi.
13392 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13394 * config/arm/arm.md (*subsi3_compare0): Rename to...
13395 (subsi3_compare0): ... This.
13396 (modsi3): New define_expand.
13397 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
13398 when operand is power of 2.
13400 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13402 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
13403 (*neg<mode>2_compare0): Rename to...
13404 (neg<mode>2_compare0): ... This.
13405 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
13406 Move check for speed inside the if-then-elses. Reflect
13407 CSNEG sequence in MOD by power of 2 case.
13409 2015-09-09 Alan Modra <amodra@gmail.com>
13412 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
13413 reload replacement for PRE_MODIFY address reg.
13415 2015-09-09 Sebastian Pop <s.pop@samsung.com>
13417 PR tree-optimization/53852
13418 * config.in: Regenerate.
13419 * configure: Regenerate.
13420 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
13421 * graphite-optimize-isl.c (optimize_isl): Stop computation when
13422 PARAM_MAX_ISL_OPERATIONS is reached.
13423 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
13424 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
13425 result equal to isl_stat_ok as the status now can be isl_error_quota.
13426 (subtract_commutative_associative_deps): Same.
13427 (compute_deps): Same.
13429 2015-09-08 Aditya Kumar <hiraditya@msn.com>
13430 Sebastian Pop <s.pop@samsung.com>
13432 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
13433 Return the parameter if it was saved in corresponding
13434 parameter_rename_map of the region.
13435 (copy_def): Copy def from sese region to the newly created region.
13436 (copy_internal_parameters): Copy all the internal parameters defined
13437 within a region to the newly created region.
13438 (graphite_regenerate_ast_isl): Copy parameters to the new region before
13439 translating isl to gimple.
13440 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
13441 the loop-nest does not have any data-references.
13442 (build_graphite_scops): Create a scop only when there is at least one
13444 (contains_only_close_phi_nodes): Deleted.
13445 (print_graphite_scop_statistics): Deleted
13446 (print_graphite_statistics): Deleted
13447 (limit_scops): Deleted.
13448 (build_scops): Removed call to limit_scops.
13449 * sese.c (new_sese): Construct.
13450 (free_sese): Destruct.
13451 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
13453 (set_rename): Pass sese region so that parameters inside the region can
13454 be added to its parameter_rename_map.
13455 (rename_uses): Pass sese region.
13456 (graphite_copy_stmts_from_block): Do not copy parameters that have been
13457 generated in the header of the scop. For each SSA_NAME in the
13458 parameter_rename_map rename its usage.
13459 (invariant_in_sese_p_rec): Return false if tree t is defined outside
13461 (scalar_evolution_in_region): If the tree t is invariant just return t.
13462 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
13463 struct sese to keep track of all the parameters which need renaming.
13464 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
13466 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
13468 2015-09-08 Tom de Vries <tom@codesourcery.com>
13470 * Makefile.in (generated_files): Add params.list.
13471 (params.list, s-params.list): Add rule.
13472 * params.h (enum compiler_param): Include params-list.h. Move define
13473 DEFPARAM, include params.def and undef DEFPARAM ...
13474 * params-list.h: ... here. New file.
13476 2015-09-08 David Malcolm <dmalcolm@redhat.com>
13478 * pretty-print.h (printer_fn): Fix typo in comment.
13480 2015-09-07 Jeff Law <law@redhat.com>
13482 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
13484 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13486 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
13487 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
13488 (arm_neon_fp16_hw): New.
13490 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13492 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
13493 UNITS_PER_WORD >= 4.
13495 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13497 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
13498 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
13499 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
13500 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
13501 (aarch64_float_extend_lo_v2df): Rename to...
13502 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
13504 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
13505 (float_extend_lo): Add v4sf.
13507 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
13508 * config/aarch64/iterators.md (VQ_HSF): New iterator.
13509 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
13510 (Vwide): New mode_attr.
13512 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13514 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
13515 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
13516 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
13517 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
13518 V4HF and V8HF variants to iterator.
13520 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
13522 * config/aarch64/iterators.md (VDQF_F16): New.
13523 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
13525 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13527 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
13528 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13529 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
13530 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
13531 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
13532 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13533 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
13534 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
13535 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
13536 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
13537 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
13538 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13539 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
13540 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
13541 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
13542 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
13543 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
13544 vld1q_dup_f16): New.
13546 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13548 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
13549 Reparameterize to...
13550 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
13551 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
13552 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
13554 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
13556 (float_truncate_lo_): Use BUILTIN_VDF iterator.
13558 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
13560 * config/aarch64/iterators.md (VDF, Vdtype): New.
13561 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
13563 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13565 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
13566 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
13567 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
13568 Add __builtin_aarch64_simd_hf.
13569 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
13570 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
13571 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
13572 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
13573 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
13574 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
13575 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
13576 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
13577 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
13579 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
13580 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
13581 (VDC, Vdbl): Add V4HF.
13583 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13585 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
13586 V4HFmode and V8HFmode.
13587 (aarch64_split_simd_move): Add case for V8HFmode.
13588 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
13589 (aarch64_simd_builtin_std_type): Handle HFmode.
13590 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
13592 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
13593 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
13594 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
13596 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
13599 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
13600 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
13602 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
13603 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
13604 vst1q_lane_f16): New.
13605 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
13606 (VALLDI_F16, VALL_F16): New.
13607 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
13608 Add cases for V4HF and V8HF.
13609 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
13611 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13613 * config/arm/arm-builtins.c (VAR11, VAR12): New.
13614 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
13615 vld4_dup): Add v4hf variant.
13616 (vget_high, vget_low): Add v8hf variant.
13617 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
13618 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
13619 v4hf and v8hf variants.
13621 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
13623 (V_DOUBLE): Add case for V4HF.
13625 (V_HALF): Add case for V8HF.
13626 (VDQX): Add V4HF, V8HF.
13627 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
13628 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
13630 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
13631 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
13632 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
13633 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
13634 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
13635 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
13636 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
13637 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
13638 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
13640 (neon_vcreate, neon_vreinterpretv8qi<mode>,
13641 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
13642 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
13643 Change VDX to VD_RE.
13645 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
13646 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
13647 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
13649 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
13650 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
13651 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
13652 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
13653 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
13654 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
13655 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
13656 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
13657 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
13659 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13661 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
13662 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
13663 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
13664 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
13665 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13666 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
13667 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
13668 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
13669 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
13670 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
13673 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13675 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
13677 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
13679 * config/arm/arm-builtins.c (v8hf_UP): New.
13680 (arm_init_simd_builtin_types): Initialise Float16x8_t.
13682 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
13684 * config/arm/arm_neon.h (float16x8_t): New typedef.
13686 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13688 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
13689 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
13690 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
13691 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
13692 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13693 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
13694 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
13695 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
13696 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13697 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
13699 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
13701 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
13702 non-alphanumeric characters in the symbol name.
13704 2015-09-07 Marek Polacek <polacek@redhat.com>
13706 PR inline-asm/67448
13707 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
13710 2015-09-07 Marek Polacek <polacek@redhat.com>
13712 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
13714 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
13716 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
13719 2015-09-04 Jakub Jelinek <jakub@redhat.com>
13721 PR middle-end/67452
13722 * tree-ssa-live.c: Include cfgloop.h.
13723 (remove_unused_locals): Clear loop->simduid if simduid is about
13724 to be removed from cfun->local_decls.
13726 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13729 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
13732 2015-09-04 Tom de Vries <tom@codesourcery.com>
13734 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
13736 2015-09-04 Jeff Law <law@redhat.com>
13738 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
13739 unnecessary constructor. It's now trivial and implemented inside...
13740 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
13741 constructor. Add comments to various methods. Remove unused
13743 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
13744 * tree-vrp.c (identify_jump_threads): Likewise.
13745 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
13746 indentation issues.
13747 (thread_across_edge): Similarly.
13748 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
13749 arguments in constructor call.
13751 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
13753 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
13754 temp path contains a '-'.
13756 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
13757 Petr Murzin <petr.murzin@intel.com>
13758 Kirill Yukhin <kirill.yukhin@intel.com>
13760 * config/i386/i386-builtin-types.def
13761 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
13762 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
13763 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
13764 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
13765 * config/i386/i386.c
13766 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
13767 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13768 IX86_BUILTIN_SCATTERALTDIV16SI.
13769 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
13770 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
13771 __builtin_ia32_scatteraltdiv8si.
13772 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
13773 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13774 IX86_BUILTIN_SCATTERALTDIV16SI.
13775 (ix86_vectorize_builtin_scatter): New.
13776 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
13777 ix86_vectorize_builtin_scatter.
13779 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
13780 Petr Murzin <petr.murzin@intel.com>
13781 Kirill Yukhin <kirill.yukhin@intel.com>
13783 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
13784 * doc/tm.texi: Regenerate.
13785 * target.def: Add scatter builtin.
13786 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
13787 for loads/stores in case of gather/scatter accordingly.
13788 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13789 STMT_VINFO_GATHER_P(S).
13790 (vect_check_gather): Rename to ...
13791 (vect_check_gather_scatter): this.
13792 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
13793 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
13794 (vect_check_gather_scatter): Use it instead of vect_check_gather.
13795 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
13796 variable and new checkings for it accordingly.
13797 * tree-vect-stmts.c
13798 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13799 STMT_VINFO_GATHER_P(S).
13800 (vect_check_gather_scatter): Use it instead of vect_check_gather.
13801 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
13803 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
13805 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
13807 (mulv16qi3): New define_expand.
13809 2015-09-03 Martin Sebor <msebor@redhat.com>
13812 * doc/extend.texi (Other Builtins): Document when the address
13813 of a built-in function can be taken.
13815 2015-09-03 Richard Biener <rguenther@suse.de>
13817 * dwarf2out.c (flush_limbo_die_list): Split out from ...
13818 (dwarf2out_early_finish): ... here.
13819 (dwarf2out_finish): Do not call dwarf2out_early_finish but
13820 flush_limbo_die_list. Assert we have no deferred asm names.
13822 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13824 * optabs.c (expand_binop): Don't create a broadcast vector with a
13825 source element wider than the inner mode.
13827 2015-09-03 Richard Biener <rguenther@suse.de>
13829 * varasm.c (output_constant): Use fold_convert instead of
13832 2015-09-03 Tom de Vries <tom@codesourcery.com>
13834 PR tree-optimization/65637
13835 * omp-low.c (expand_omp_for_static_chunk): Handle case that
13836 fin_bb has 2 predecessors.
13838 2015-09-03 Tom de Vries <tom@codesourcery.com>
13840 PR tree-optimization/65637
13841 * omp-low.c (find_phi_with_arg_on_edge): New function.
13842 (expand_omp_for_static_chunk): Fix inner loop phi.
13844 2015-09-03 Tom de Vries <tom@codesourcery.com>
13846 PR tree-optimization/65637
13847 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
13850 2015-09-03 Tom de Vries <tom@codesourcery.com>
13852 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
13854 2015-09-03 Tom de Vries <tom@codesourcery.com>
13856 * doc/invoke.texi (parloops-chunk-size): Add item.
13857 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
13858 * tree-parloops.c: Include params.h.
13859 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
13860 param parloops-chunk-size is used.
13862 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13864 PR middle-end/67351
13865 * fold-const.c (fold_binary_loc) : Move
13866 Transform (x >> c) << c into x & (-1<<c) or
13867 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
13868 types using simplify and match.
13869 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
13870 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
13872 2015-09-03 Richard Biener <rguenther@suse.de>
13875 * tree-ssa-structalias.c (ctor_for_analysis): New function.
13876 (create_variable_info_for_1): Use ctor_for_analysis instead
13877 of get_constructor.
13878 (create_variable_info_for): Likewise.
13880 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
13883 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
13884 in new callgraph edge.
13886 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
13891 * config/aarch64/aarch64-simd.md
13892 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
13893 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
13894 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
13895 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
13897 2015-09-02 Alan Modra <amodra@gmail.com>
13899 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
13900 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
13901 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
13903 2015-09-02 Alan Modra <amodra@gmail.com>
13906 * config/rs6000/predicates.md (current_file_function_operand): Don't
13907 return true for weak symbols.
13908 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
13910 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
13911 Andrew Bennett <andrew.bennett@imgtec.com>
13913 * config/mips/mips-opts.h (mips_cb_setting): New enum.
13914 * config/mips/mips-protos.h: Add definitions for
13915 mips_output_jump and mips_output_equal_conditional_branch
13916 * config/mips/mips.c (MIPS_JR): Change to support the
13918 (mips_emit_compare): Add support for the MIPS R6 conditional
13920 (mips_process_sync_loop): Likewise.
13921 (mips_output_order_conditional_branch): Likewise.
13922 (mips16_build_call_stub): Change MIPS_CALL to
13924 (mips_print_operand_punctuation): Update 's' case to only
13925 apply to micromips r2.
13926 (mips_adjust_insn_length): Add support for forbidden slot
13928 (mips_avoid_hazard): Likewise.
13929 (mips_reorg_process_insns): Likewise.
13930 (mips_output_jump): New function.
13931 (mips_output_equal_conditional_branch): Likewise.
13932 (mips_output_conditional_branch): Use jrc/bc if compact
13933 branch support is enabled. Ensure the forbidden slots
13934 between the two branch instructions is filled with a nop.
13935 (mips_option_override): Add support to process the compact
13936 branch option and set the correct defaults. Prevent
13937 non-explict relocs being using for MIPS R6.
13938 (mips_trampoline_init): Add compact branch support.
13939 (mips_mult_zero_zero_cost): Allow zero initialisation of
13940 accumulators with TARGET_DSP.
13941 * config/mips/mips.h (TARGET_CB_NEVER): New define.
13942 (TARGET_CB_MAYBE): New define.
13943 (TARGET_CB_ALWAYS): New define.
13944 (ISA_HAS_DELAY_SLOTS): New define.
13945 (ISA_HAS_COMPACT_BRANCHES): New define.
13946 (ISA_HAS_JRC): New define.
13947 (MIPS_BRANCH_C): New define.
13948 (MIPS_CALL): Removed.
13949 (MICROMIPS_J): Removed.
13950 * config/mips/mips.md (compact_form): New attr.
13951 (hazard): Add support for forbidden slots.
13952 (define_delay): Add support for compact branches.
13953 (*branch_order<mode>): Likewise.
13954 (*branch_order<mode>_inverted): Likewise.
13955 (*branch_equality<mode>): Likewise.
13956 (*branch_equality<mode>_inverted): Likewise.
13957 (*jump_absolute): Likewise.
13958 (*jump_pic): Likewise.
13959 (indirect_jump): Use mips_output_jump to produce assembly output.
13960 (tablejump_<mode>"): Likewise.
13961 (*<optab>"): Likewise.
13962 (<optab>_internal): Likewise.
13963 (sibcall_internal): Likewise.
13964 (sibcall_value_internal): Likewise.
13965 (sibcall_value_multiple_internal): Likewise.
13966 (call_internal): Likewise.
13967 (call_split): Likewise.
13968 (call_internal_direct): Likewise.
13969 (call_direct_split): Likewise.
13970 (call_value_internal): Likewise.
13971 (call_value_split): Likewise.
13972 (call_value_internal_direct): Likewise.
13973 (call_value_direct_split): Likewise.
13974 (call_value_multiple_internal): Likewise.
13975 (call_value_multiple_split): Likewise.
13976 (mips_get_fcsr_mips16_<mode>): Likewise.
13977 (mips_set_fcsr_mips16_<mode>): Likewise.
13978 (tls_get_tp_mips16_<mode>): Likewise.
13979 * config/mips/mips.opt: Add -mcompact-branches option.
13980 * config/mips/predicates.md (order_operator): Ensure the
13981 conditional compact branches are only used if the ISA them.
13982 * doc/invoke.texi: Document -mcompact-branches option.
13984 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
13987 * lra-lives.c (process_bb_lives): Process move pseudos with the
13988 same value for copies and preferences
13989 * lra-constraints.c (match_reload): Create match reload pseudo
13990 with the same value from single dying input pseudo.
13992 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
13995 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
13997 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
13999 * trans-mem.c: Add contributed-by.
14000 * trans-mem.h: Same.
14002 2015-09-01 Richard Biener <rguenther@suse.de>
14004 * expr.c (expand_expr_real_1): For expanding TERed defs
14005 set the current location to that of the def if not UNKNOWN.
14007 2015-09-01 David Sherwood <david.sherwood@arm.com>
14009 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
14011 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14013 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
14014 then_cost, else_cost fields. Change branch_cost field to unsigned int.
14015 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
14016 Include rtl-iter.h.
14017 (noce_simple_bbs): New function.
14018 (noce_try_move): Bail if basic blocks are not simple.
14019 (noce_try_store_flag): Likewise.
14020 (noce_try_store_flag_constants): Likewise.
14021 (noce_try_addcc): Likewise.
14022 (noce_try_store_flag_mask): Likewise.
14023 (noce_try_cmove): Likewise.
14024 (noce_try_minmax): Likewise.
14025 (noce_try_abs): Likewise.
14026 (noce_try_sign_mask): Likewise.
14027 (noce_try_bitop): Likewise.
14028 (bbs_ok_for_cmove_arith): New function.
14029 (noce_emit_all_but_last): Likewise.
14030 (noce_emit_insn): Likewise.
14031 (noce_emit_bb): Likewise.
14032 (noce_try_cmove_arith): Handle non-simple basic blocks.
14033 (insn_valid_noce_process_p): New function.
14034 (contains_mem_rtx_p): Likewise.
14035 (bb_valid_for_noce_process_p): Likewise.
14036 (noce_process_if_block): Allow non-simple basic blocks
14039 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
14041 * tree-ssa-dom.c (record_equivalences_from_phis,
14042 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
14043 (lookup_avail_expr): Likewise, and remove comment and unused temp.
14045 2015-09-01 Nick Clifton <nickc@redhat.com>
14047 * config/msp430/msp430.opt (mcpu): Fix typo.
14049 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14051 * config/aarch64/aarch64.c (aarch64_set_current_function):
14052 Re-layout any vector parameters have non-simd layout.
14053 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
14055 (aarch64_simd_expand_args): Delete call to the above.
14057 2015-08-31 Mike Frysinger <vapier@gentoo.org>
14059 * doc/invoke.texi (asan-stack): Add space before option.
14061 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
14063 * tree.h (zerop): New function.
14064 * tree.c (zerop): Likewise.
14065 (element_precision): Handle expressions.
14066 * match.pd (define_predicates): Add zerop.
14067 (x <= +Inf): Fix comment.
14068 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
14069 * fold-const.c (fold_binary_loc): ... here. Remove.
14071 2015-08-31 Richard Biener <rguenther@suse.de>
14073 PR middle-end/67381
14074 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
14076 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
14078 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
14079 (CEXPI): New operator list.
14080 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
14081 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
14083 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
14085 2015-08-31 Tom de Vries <tom@codesourcery.com>
14087 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
14088 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
14090 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
14091 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
14092 (rewrite_into_loop_closed_ssa): ... here.
14093 (replace_uses_in_dominated_bbs): Remove function.
14094 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
14095 rewrite_into_loop_closed_ssa_1.
14097 2015-08-31 Michael Matz <matz@suse.de>
14099 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
14100 enter entry and exit blocks for reverse post order.
14102 2015-08-31 Richard Biener <rguenther@suse.de>
14104 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
14105 (lto_location_cache::current_sysp): Likewise.
14106 (output_block::current_sysp): Likewise.
14107 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
14108 (lto_location_cache::apply_location_cache): Properly record
14109 system header locations.
14110 (lto_location_cache::input_location): Input whether a file
14111 is a system header.
14112 * lto-streamer-out.c (lto_output_location): Stream whether a file
14113 is a system header.
14115 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14118 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
14120 2015-08-31 Tom de Vries <tom@codesourcery.com>
14122 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
14123 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
14124 Improve function header comments.
14126 2015-08-30 Michael Collison <michael.collison@linaro.org>
14129 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
14132 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14134 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
14135 special_handling bitfield.
14136 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
14137 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
14138 that represents a general xxpermdi.
14139 (insn_is_swappable_p): Add handling for vec_concat of two
14140 doublewords, which maps to a specific xxpermdi.
14141 (adjust_xxpermdi): New function.
14142 (adjust_concat): Likewise.
14143 (handle_special_swappables): Call adjust_xxpermdi and
14145 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
14147 2015-08-30 Rich Felker <dalias@libc.org>
14149 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
14150 case instead of sh[123456ble]-*-*.
14152 2015-08-29 Anatoly Sokolov <aesok@post.ru>
14154 * ira.c (print_unform_and_important_classes,
14155 print_translated_classes): Remove reg_class_names static array.
14156 (print_unform_and_important_classes): Rename to ...
14157 (print_uniform_and_important_classes): ... this.
14158 (ira_debug_allocno_classes): Update accordingly.
14160 2015-08-29 Tom de Vries <tom@codesourcery.com>
14162 PR tree-optimization/46193
14163 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
14166 2015-08-28 Jeff Law <law@redhat.com>
14169 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14170 unable to find X NE 0 in the tables, return X as the simplified
14172 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14173 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
14175 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14176 after removing the control flow statement and unnecessary edges.
14178 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
14181 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14183 PR tree-optimization/67283
14184 * tree-sra.c (type_consists_of_records_p): Rename to...
14185 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14187 (completely_scalarize_record): Rename to...
14188 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
14190 (scalarize_elem): New.
14192 2015-08-28 Jiong Wang <jiong.wang@arm.com>
14194 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
14195 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
14196 (aarch64_symbol_type): Likewise.
14197 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14199 (aarch64_expand_mov_immediate): Likewise.
14200 (aarch64_print_operand): Likewise.
14201 (aarch64_classify_tls_symbol): Likewise.
14203 2015-08-28 Richard Biener <rguenther@suse.de>
14205 * cgraphunit.c (symbol_table::compile): Move early debug generation
14207 (symbol_table::finalize_compilation_unit): ... back here and
14208 add a !seen_error () guard.
14210 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14212 * toplev.c (process_options): Do not use flag_loop_block,
14213 flag_loop_interchange, and flag_loop_strip_mine. Add check for
14214 flag_loop_optimize_isl.
14216 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14218 * Makefile.in (OBJS): Remove graphite-blocking.o and
14219 graphite-interchange.o.
14220 * common.opt (floop-strip-mine, floop-interchange, floop-block):
14221 Alias of floop-nest-optimize.
14222 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
14223 Document as alias of -floop-nest-optimize.
14224 * graphite-blocking.c: Remove.
14225 * graphite-interchange.c: Remove.
14226 * graphite-optimize-isl.c: Include dumpfile.h.
14227 (getScheduleForBand): Add dump for tiled loops. Use
14228 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
14229 * graphite-poly.c (scop_max_loop_depth): Remove.
14230 (print_scattering_function_1): Remove.
14231 (print_scattering_function): Remove.
14232 (print_scattering_functions): Remove.
14233 (debug_scattering_function): Remove.
14234 (debug_scattering_functions): Remove.
14235 (apply_poly_transforms): Remove use of flag_loop_block,
14236 flag_loop_strip_mine, and flag_loop_interchange.
14237 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
14239 (print_pdr_access_layout): Remove.
14240 (print_pdr): Print ISL representation.
14241 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
14242 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
14244 (openscop_print_pbb_domain): Remove.
14245 (print_pbb): Remove call to print_scattering_function.
14246 (openscop_print_scop_context): Remove.
14247 (print_scop_context): Do not print matrices anymore.
14248 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
14249 SCOP_TRANSFORMED_SCHEDULE.
14250 (print_isl_set): Add printing of a new line.
14251 (print_isl_map): Same.
14252 (print_isl_aff): Same.
14253 (print_isl_constraint): Same.
14254 (loop_to_lst): Remove.
14255 (scop_to_lst): Remove.
14256 (lst_indent_to): Remove.
14257 (print_lst): Remove.
14258 (debug_lst): Remove.
14259 (dot_lst_1): Remove.
14261 (reverse_loop_at_level): Remove.
14262 (reverse_loop_for_pbbs): Remove.
14263 * graphite-poly.h (pdr_dim_iter_domain): Remove.
14264 (pdr_nb_params): Remove.
14265 (pdr_alias_set_dim): Remove.
14266 (pdr_subscript_dim): Remove.
14267 (pdr_iterator_dim): Remove.
14268 (pdr_parameter_dim): Remove.
14269 (same_pdr_p): Remove.
14270 (struct poly_scattering): Remove.
14271 (struct poly_bb): Remove _original, _transformed, _saved.
14272 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
14273 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
14274 (PBB_NB_LOCAL_VARIABLES): Remove.
14275 (PBB_NB_SCATTERING_TRANSFORM): Remove.
14276 (schedule_to_scattering): Remove.
14277 (number_of_write_pdrs): Remove.
14278 (pbb_dim_iter_domain): Remove.
14279 (pbb_nb_params): Remove.
14280 (pbb_nb_scattering_orig): Remove.
14281 (pbb_nb_scattering_transform): Remove.
14282 (pbb_nb_dynamic_scattering_transform): Remove.
14283 (pbb_nb_local_vars): Remove.
14284 (pbb_iterator_dim): Remove.
14285 (pbb_parameter_dim): Remove.
14286 (psco_scattering_dim): Remove.
14287 (psct_scattering_dim): Remove.
14288 (psct_local_var_dim): Remove.
14289 (psco_iterator_dim): Remove.
14290 (psct_iterator_dim): Remove.
14291 (psco_parameter_dim): Remove.
14292 (psct_parameter_dim): Remove.
14293 (psct_dynamic_dim): Remove.
14294 (psct_static_dim): Remove.
14295 (psct_add_local_variable): Remove.
14296 (new_lst_loop): Remove.
14297 (new_lst_stmt): Remove.
14298 (free_lst): Remove.
14299 (copy_lst): Remove.
14300 (lst_add_loop_under_loop): Remove.
14301 (lst_depth): Remove.
14302 (lst_dewey_number): Remove.
14303 (lst_dewey_number_at_depth): Remove.
14304 (lst_pred): Remove.
14305 (lst_succ): Remove.
14306 (lst_find_pbb): Remove.
14307 (find_lst_loop): Remove.
14308 (lst_find_first_pbb): Remove.
14309 (lst_empty_p): Remove.
14310 (lst_find_last_pbb): Remove.
14311 (lst_contains_p): Remove.
14312 (lst_contains_pbb): Remove.
14313 (lst_create_nest): Remove.
14314 (lst_remove_from_sequence): Remove.
14315 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
14316 (lst_niter_for_loop): Remove.
14317 (pbb_update_scattering): Remove.
14318 (lst_update_scattering_under): Remove.
14319 (lst_update_scattering): Remove.
14320 (lst_insert_in_sequence): Remove.
14321 (lst_replace): Remove.
14322 (lst_substitute_3): Remove.
14323 (lst_distribute_lst): Remove.
14324 (lst_remove_all_before_including_pbb): Remove.
14325 (lst_remove_all_before_excluding_pbb): Remove.
14326 (struct scop): Remove original_schedule, transformed_schedule, and
14328 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
14329 (SCOP_SAVED_SCHEDULE): Remove.
14330 (poly_scattering_new): Remove.
14331 (poly_scattering_free): Remove.
14332 (poly_scattering_copy): Remove.
14333 (store_scattering_pbb): Remove.
14334 (store_lst_schedule): Remove.
14335 (restore_lst_schedule): Remove.
14336 (store_scattering): Remove.
14337 (restore_scattering_pbb): Remove.
14338 (restore_scattering): Remove.
14339 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
14340 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
14341 compute the scattering polyhedron dimension from the dimension of
14343 (build_scop_scattering): Update call to
14344 build_pbb_scattering_polyhedrons.
14345 (build_poly_scop): Remove call to scop_to_lst.
14346 * graphite.c (graphite_transform_loops): Add call to print_scop.
14347 (gate_graphite_transforms): Remove use of flag_loop_block,
14348 flag_loop_interchange, and flag_loop_strip_mine.
14350 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14352 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
14353 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
14354 -floop-nest-optimize.
14355 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
14356 (generate_luj_sepclass): Remove.
14357 (generate_luj_options): Remove.
14358 (set_options): Remove opt_luj.
14359 (scop_to_isl_ast): Remove opt_luj.
14360 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
14361 flag_loop_unroll_jam.
14362 (getPrevectorMap_full): Remove.
14363 (getScheduleForBandList): Remove map_sepcl.
14364 (getScheduleMap): Same.
14365 (apply_schedule_map_to_scop): Remove sepcl.
14366 (optimize_isl): Same.
14367 * graphite-poly.c (apply_poly_transforms): Remove check for
14368 flag_loop_unroll_jam.
14369 (new_poly_bb): Remove map_sepclass.
14370 * graphite-poly.h (struct poly_bb): Same.
14371 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
14372 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
14373 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
14374 * toplev.c (process_options): Remove flag_loop_unroll_jam.
14376 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
14379 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
14380 (addqi3_cc): Ditto.
14381 (UNSPEC_ADD_CARRY): Remove.
14382 (addqi3_cconly_overflow): New expander.
14383 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
14384 Adjust for changed add<mode>3_carry.
14385 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
14386 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
14387 (<plusminus_insn><mode>3_carry): Remove expander.
14388 (*<plusminus_insn><mode>3_carry): Split insn pattern to
14389 add<mode>3_carry and sub<mode>3_carry.
14390 (plusminus_carry_mnemonic): Remove code attribute.
14391 (add<mode>3_carry): Canonicalize insn pattern.
14392 (*addsi3_carry_zext): Ditto.
14393 (sub<mode>3_carry): Ditto.
14394 (*subsi3_carry_zext): Ditto.
14395 (adcx<mode>3): Remove insn pattern.
14396 (addcarry<mode>): New insn pattern.
14397 (subborrow<mode>): Ditto.
14398 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
14399 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
14400 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
14401 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
14402 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
14403 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
14404 Rewrite expander to not clobber carry flag chains.
14406 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
14408 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
14409 instead of a rotate.
14411 2015-08-27 Marek Polacek <polacek@redhat.com>
14413 PR middle-end/67005
14414 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
14415 an entry into an irreducible region.
14417 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14419 * configure: Regenerate.
14421 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14423 PR tree-optimization/67283
14424 * tree-sra.c (type_consists_of_records_p): Rename to...
14425 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14427 (completely_scalarize_record): Rename to...
14428 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14429 (scalarize_elem): New.
14431 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14433 * tree-sra.c (completely_scalarize_var): Rename to...
14434 (create_total_scalarization_access): ... Here. Drop call to
14435 completely_scalarize_record.
14437 (analyze_all_variable_accesses): Replace completely_scalarize_var
14438 with create_total_scalarization_access and completely_scalarize_record.
14440 2015-08-27 Alan Modra <amodra@gmail.com>
14443 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
14446 2015-08-27 Richard Biener <rguenther@suse.de>
14448 * passes.c (rest_of_decl_compilation): Guard early_global_decl
14449 call with !seen_error ().
14450 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
14451 early debug generation and finish...
14452 (symbol_table::compile): ... here to put it after a !seen_error ()
14455 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14457 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
14460 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14461 Andre Vieira <andre.simoesdiasvieira@arm.com>
14463 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
14464 (*cb<optab><mode>1): Likewise.
14465 (*tb<optab><mode>1): Likewise.
14466 (*cb<optab><mode>1): Likewise.
14467 * config/aarch64/iterators.md (inv_cb): New code attribute.
14468 (inv_tb): Likewise.
14469 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
14470 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
14472 2015-08-27 Richard Biener <rguenther@suse.de>
14474 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
14476 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
14478 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
14481 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14483 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
14486 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
14488 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
14489 floating point in VSX registers.
14490 (rs6000_output_move_128bit): Always print out the set insn if we
14491 can't generate an appropriate 128-bit move.
14492 (rs6000_generate_compare): Add support for IEEE 128-bit floating
14493 point in VSX registers comparisons.
14494 (rs6000_expand_float128_convert): Likewise.
14496 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
14497 predicate for only GPR hard registers.
14499 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
14500 modes to iterators. Add new iterators for moving 128-bit values in
14501 scalar FPR registers and VSX registers.
14502 (FMOVE128): Likewise.
14503 (FMOVE128_FPR): Likewise.
14504 (FMOVE128_GPR): Likewise.
14505 (FMOVE128_VSX): Likewise.
14506 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
14509 (IBM128): Likewise.
14510 (TFIFKF): Likewise.
14511 (RELOAD): Add IEEE 128-bit floating point modes.
14512 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
14513 floating point in VSX registers modes.
14514 (signbit<mode>2, IBM128 iterator): Likewise.
14515 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
14516 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14517 (negtf2): Likewise.
14518 (neg<mode>2, TFIFKF iterator): Likewise.
14519 (negtf2_internal): Likewise.
14520 (abstf2): Likewise.
14521 (abs<mode>2, TFIFKF iterator): Likewise.
14522 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
14523 VSX insn support for negate, absolute value, and negative absolute
14525 (ieee_128bit_vsx_neg<mode>2): Likewise.
14526 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
14527 (ieee_128bit_vsx_abs<mode>2): Likewise.
14528 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
14529 (ieee_128bit_vsx_nabs<mode>2): Likewise.
14530 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
14531 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
14532 floating point in VSX registers.
14533 (unpack<mode>_dm): Likewise.
14534 (unpack<mode>_nodm): Likewise.
14535 (pack<mode>): Likewise.
14536 (unpackv1ti): Likewise.
14537 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
14538 (packv1ti): Likewise.
14539 (pack<mode>, FMOVE128_VSX iterator): Likewise.
14540 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
14542 (extenddftf2_internal): Likewise.
14543 (trunctfdf2): Likewise.
14544 (trunctfdf2_internal2): Likewise.
14545 (fix_trunc_helper): Likewise.
14546 (fix_trunctfdi2"): Likewise.
14547 (floatditf2): Likewise.
14548 (floatuns<mode>tf2): Likewise.
14549 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
14550 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
14551 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
14552 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
14553 (float<SDI:mode><IFKF:mode>2): Likewise.
14554 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
14556 2015-08-26 Renlin Li <renlin.li@arm.com>
14558 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
14560 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14561 Jiong Wang <jiong.wang@arm.com>
14563 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
14564 (tlsie_tiny_<mode>): New define_insn.
14565 (tlsie_tiny_sidi): Likewise.
14566 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
14568 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
14569 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14571 (aarch64_expand_mov_immediate): Likewise.
14572 (aarch64_print_operand): Likewise.
14573 (arch64_classify_tls_symbol): Likewise.
14575 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14577 * config/arm/arm-arches.def: Replace single value flags with
14578 an initializer built from ARM_FSET_MAKE_CPU1.
14579 * config/arm/arm-cores.def: Likewise.
14580 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
14581 derivation from the ARM_CORE macro definition, use the given value
14583 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
14584 ARM_ARCH macro definition, use the given value instead.
14586 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14588 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
14590 (struct builtin_description): Replace field mask with field
14592 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
14593 (IWMMXT2_BUILTIN): Likewise.
14594 (IWMMXT2_BUILTIN2): Likewise.
14595 (FP_BUILTIN): Likewise.
14596 (CRC32_BUILTIN): Likewise.
14597 (CRYPTO_BUILTIN): Likewise.
14598 (iwmmx_mbuiltin): Likewise.
14599 (iwmmx2_mbuiltin): Likewise.
14600 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
14601 struct builtin_description.
14603 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14605 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
14606 (struct builtin_description): Change type of mask to unsigned
14608 * config/arm/arm-protos.h (insn_flags): Declare as type
14610 (tune_flags): Likewise.
14611 * config/arm/arm.c (feature_count): New.
14612 (insn_flags): Define as type arm_feature_set.
14613 (tune_flags): Likewise.
14614 (struct processors): Define field flags as type arm_feature_set.
14615 (all_cores): Update for change to struct processors.
14616 (all_architectures): Likewise.
14617 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
14619 (arm_option_override_internal): Likewise.
14620 (arm_option_override): Likewise.
14622 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14623 Jiong Wang <jiong.wang@arm.com>
14625 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
14626 tls size for tiny, small, large memory model.
14627 (aarch64_load_symref_appropriately): Support new symbol types.
14628 (aarch64_expand_mov_immediate): Likewise.
14629 (aarch64_print_operand): Likewise.
14630 (aarch64_classify_tls_symbol): Likewise.
14631 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
14632 (aarch64_symbol_type): Likewise.
14633 * config/aarch64/aarch64.md (tlsle): Deleted.
14634 (tlsle12_<mode>): New define_insn.
14635 (tlsle24_<mode>): Likewise.
14636 (tlsle32_<mode>): Likewise.
14637 (tlsle48_<mode>): Likewise.
14638 * doc/sourcebuild.texi (AArch64-specific attributes): Document
14641 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14643 * config/arm/arm-protos.h (FL_NONE): New.
14645 (arm_feature_set): New.
14646 (ARM_FSET_MAKE): New.
14647 (ARM_FSET_MAKE_CPU1): New.
14648 (ARM_FSET_MAKE_CPU2): New.
14649 (ARM_FSET_CPU1): New.
14650 (ARM_FSET_CPU2): New.
14651 (ARM_FSET_EMPTY): New.
14652 (ARM_FSET_ANY): New.
14653 (ARM_FSET_HAS_CPU1): New.
14654 (ARM_FSET_HAS_CPU2): New.
14655 (ARM_FSET_HAS_CPU): New.
14656 (ARM_FSET_ADD_CPU1): New.
14657 (ARM_FSET_ADD_CPU2): New.
14658 (ARM_FSET_DEL_CPU1): New.
14659 (ARM_FSET_DEL_CPU2): New.
14660 (ARM_FSET_UNION): New.
14661 (ARM_FSET_INTER): New.
14662 (ARM_FSET_XOR): New.
14663 (ARM_FSET_EXCLUDE): New.
14664 (AFM_FSET_IS_EMPTY): New.
14665 (ARM_FSET_CPU_SUBSET): New.
14667 2015-08-26 Jiong Wang <jiong.wang@arm.com>
14669 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14670 SYMBOL_TLSLE to SYMBOL_TLSLE24.
14671 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14673 (aarch64_expand_mov_immediate): Likewise.
14674 (aarch64_print_operand): Likewise.
14675 (aarch64_classify_symbol): Likewise.
14677 2015-08-26 Jiong Wang <jiong.wang@arm.com>
14679 * config/aarch64/aarch64.opt (mtls-size): New entry.
14680 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
14681 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
14682 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
14684 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14686 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
14687 ARM_CORE entry. Fix some white-space.
14688 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
14689 ARM_CORE definition.
14691 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14693 * fold-const.c (fold_binary_loc) : Move Optimize
14694 root(x)*root(y) as root(x*y) to match.pd.
14695 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
14696 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
14697 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
14698 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
14699 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
14700 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
14701 (mult (exps:s @0) (exps:s @1)) : New simplifier.
14702 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
14703 (rdiv @0 (exps:s @1)) : New simplifier.
14705 2015-08-25 Joseph Myers <joseph@codesourcery.com>
14707 * gcc.c (driver::finalize): Only assign to extra_specs if
14710 2015-08-25 Marek Polacek <polacek@redhat.com>
14712 PR middle-end/67330
14713 * varasm.c (declare_weak): Return after giving an error.
14715 2015-08-25 David Malcolm <dmalcolm@redhat.com>
14717 * gcc-main.c (main): Add params to driver ctor.
14718 * gcc.c (class env_manager): New.
14720 (env_manager::init): New.
14721 (env_manager::get): New.
14722 (env_manager::xput): New.
14723 (env_manager::restore): New.
14724 Poison getenv and putenv.
14725 (DEFAULT_TARGET_SYSTEM_ROOT): New.
14726 (target_system_root): Update initialization to use
14727 DEFAULT_TARGET_SYSTEM_ROOT.
14728 (struct spec_list): Add field "default_ptr".
14729 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
14730 (init_spec): Likewise.
14731 (set_spec): Clear field "default_ptr".
14732 (read_specs): Free "spec" and "buffer".
14733 (xputenv): Reimplement in terms of env_manager.
14734 (process_command): Replace ::getenv calls with calls to the
14735 env_manager singleton.
14736 (process_brace_body): Free string in three places.
14737 (driver::driver): New.
14738 (driver::~driver): New.
14739 (used_arg): Convert from a function to...
14740 (class used_arg_t): ...this class, and...
14741 (used_arg): ...this new global instance.
14742 (used_arg_t::finalize): New function.
14743 (getenv_spec_function): Add "const" to local "value". Replace
14744 ::getenv call with call to the env_manager singleton.
14745 (path_prefix_reset): New function.
14746 (driver::finalize): New function.
14747 * gcc.h (driver::driver): New.
14748 (driver::~driver): New.
14749 (driver::finalize): New.
14751 2015-08-25 Nathan Sidwell <nathan@acm.org>
14753 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
14754 target doesn't have one.
14756 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
14759 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
14761 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
14764 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
14765 a define_insn, remove second alternative.
14767 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
14768 Joseph Myers <joseph@codesourcery.com>
14770 * gcc.c (struct switchstr): Expand comment.
14772 2015-08-25 Nathan Sidwell <nathan@acm.org>
14774 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
14775 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
14777 2015-08-25 Richard Biener <rguenther@suse.de>
14779 PR middle-end/67306
14780 * genmatch.c (expr::gen_transform): Verify the result of
14781 builtin_decl_implicit.
14782 (dt_simplify::gen_1): Likewise.
14784 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
14786 * config/arm/constraints.md: Also list Cs and US ARM-specific
14787 constraints as used.
14789 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
14792 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
14794 (nonpic_symbol_mentioned_p): Likewise.
14795 (sh_delegitimize_address): Likewise.
14796 (sh_function_ok_for_sibcall): Take into account weak symbols.
14797 (sh_expand_sym_label2reg): New.
14798 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
14799 * config/sh/sh.md (UNSPEC_PCREL): New enum.
14800 (call_pcrel): Use sh_expand_sym_label2reg.
14801 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14802 (symPCREL_label2reg) New expand.
14804 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
14806 * graphite-poly.c: Change type of region from void* to sese.
14807 * graphite-poly.h (struct scop): Changing the type of scop::region
14808 from void* to sese. Change accessor macro accordingly.
14809 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
14811 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
14813 * graphite-scop-detection.c (stmt_simple_for_scop_p):
14814 Constrain only on INTEGER_TYPE.
14816 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14819 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
14820 -mefficient-unaligned-vsx on ISA 2.7.
14822 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
14823 option to a masked option.
14825 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
14826 logic for -mefficient-unaligned-vsx so that it is set via an arch
14827 ISA option, instead of being set if -mtune=power8 is set. Move
14828 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
14829 near other default option handling.
14831 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14833 * genflags.c (gen_macro): Delete.
14834 (gen_proto): Don't create GEN.*CALL.* macros.
14835 * gensupport.h (get_file_location): Declare.
14836 * gensupport.c (rtx_locs): New variable.
14837 (read_md_rtx): Record rtx locations.
14838 (get_file_location): New function.
14839 * target-insns.def (call, call_pop, call_value, call_value_pop)
14840 (sibcall, sibcall_value): New patterns.
14841 * gentarget-def.c (parse_argument): New function.
14842 (def_target_insn): Use it. Handle optional operands. Raise an
14843 error if an .md pattern has the wrong number of operands for the
14844 pattern name. Remove the names of unused operands from the prototype.
14845 * builtins.c (expand_builtin_apply): Use targetm functions
14846 instead of HAVE_call_value and GEN_CALL_VALUE.
14847 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
14848 and sibcall_value_pop.
14849 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
14851 * config/alpha/alpha.md (untyped_call): Likewise.
14852 * config/iq2000/iq2000.md (untyped_call): Likewise.
14853 * config/m68k/m68k.md (untyped_call): Likewise.
14854 * config/mips/mips.md (untyped_call): Likewise.
14855 * config/pa/pa.md (untyped_call): Likewise.
14856 * config/rs6000/rs6000.md (untyped_call): Likewise.
14857 * config/sparc/sparc.md (untyped_call): Likewise.
14858 * config/tilegx/tilegx.md (untyped_call): Likewise.
14859 * config/tilepro/tilepro.md (untyped_call): Likewise.
14860 * config/visium/visium.md (untyped_call): Likewise.
14861 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
14862 gen_call_value instead of GEN_CALL_VALUE.
14863 * config/arm/arm.md (untyped_call): Likewise.
14864 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
14867 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14869 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
14870 (have_cbranchcc4): New variable.
14871 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
14872 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
14873 (if_convert): Initialize have_cbranchcc4.
14875 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14877 * builtins.c (expand_cmpstrn): Rename to...
14878 (expand_cmpstrn_or_cmpmem): ...this.
14879 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
14880 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
14881 Remove mode argument.
14882 (expand_builtin): Update accordingly.
14884 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14886 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
14887 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
14888 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
14889 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
14890 Add predicates for operands 0 and 3.
14891 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
14893 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
14894 immediate_operand to nonmemory_operand.
14896 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14898 * df-scan.c (df_insn_info_init_fields): New function, split out
14900 (df_insn_create_insn_record): ...here.
14901 (df_insn_info_free_fields): New function, split out from...
14902 (df_insn_info_delete): ...here.
14903 (df_insn_rescan): Use the new functions instead of freeing and
14904 reallocating the df_insn_info.
14906 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14908 * doc/install.texi (Binaries): Remove links no longer valid.
14910 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14912 * config/nvptx/mkoffload.c (process): Replace
14913 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
14915 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
14918 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
14920 2015-08-24 Renlin Li <renlin.li@arm.com>
14922 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
14923 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
14924 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
14925 * config/arm/constraints.md ("j"): Add check for high code.
14927 2015-08-24 Tom de Vries <tom@codesourcery.com>
14929 PR tree-optimization/65468
14930 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
14933 2015-08-24 Nathan Sidwell <nathan@acm.org>
14935 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
14936 change to nvptx_type_from_mode call. Use arg_promotion for both
14937 split and non-split args.
14939 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14941 * target-insns.def (movstr): New pattern.
14942 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
14943 (expand_movstr): Use targetm rather than HAVE_movstr/
14946 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14948 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
14951 2015-08-24 Andrew Pinski <apinski@cavium.com>
14953 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
14954 AARCH64_EXTRA_TUNING_OPTION.
14955 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
14957 (aarch64_extra_tuning_flags): Base the shifted value on the index
14958 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
14959 * config/aarch64/aarch64.c: Remove the last argument to
14960 AARCH64_EXTRA_TUNING_OPTION.
14962 2015-08-23 Nathan Sidwell <nathan@acm.org>
14964 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
14966 (nvptx_declare_function_name): Insert formatting tabs for
14969 2015-08-23 Tom de Vries <tom@codesourcery.com>
14971 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
14972 parm_decl, rather than generating a dummy default def in cfun.
14973 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
14974 ssa_name from cfun and child_fn do not share a stmt as def stmt.
14975 (move_stmt_op): Handle PARM_DECl.
14976 (gather_ssa_name_hash_map_from): New function.
14977 (move_sese_region_to_fn): Add default defs for function params, and add
14978 them to vars_map. Release copied ssa names.
14979 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
14981 2015-08-23 Tom de Vries <tom@codesourcery.com>
14983 * doc/sourcebuild.texi: Rename vect_no_int_max with
14984 vect_no_int_min_max. Update description.
14986 2015-08-22 Andrew Pinski <apinski@cavium.com>
14988 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
14989 * config/aarch64/aarch64-protos.h
14990 (aarch64_fusion_pairs_index): New enum.
14991 (aarch64_fusion_pairs): Base the shifted value on the index instead
14992 Rewrite AARCH64_FUSE_ALL to be based on the end index.
14993 of the argument to AARCH64_FUSION_PAIR.
14994 * config/aarch64/aarch64.c: Remove the last argument to
14995 AARCH64_FUSION_PAIR.
14997 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
14999 * dominance.c (new_zero_array): Define.
15000 (dom_info): Redefine as class with proper encapsulation.
15001 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
15003 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
15004 allocations/deallocations. Pass function as parameter (instead of
15006 (dom_info::get_idom): Define accessor method.
15007 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
15008 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
15009 (calculate_dominance_info): Adjust to use dom_info class.
15010 (verify_dominators): Likewise.
15012 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
15014 * print-rtl.c (print_rtx): Check the correct range for
15015 flag_dump_unnumbered_links to behave as documented.
15017 PR rtl-optimization/67227
15018 PR rtl-optimization/64164
15019 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
15020 (nonoverlapping_memrefs_p): Test offsets and sizes when given
15021 identical gimple_reg exprs.
15023 2015-08-21 Nathan Sidwell <nathan@acm.org>
15025 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
15027 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
15028 crtl->stack_alignment_needed to determine alignment.
15029 (nvptx_get_drap_rtx): New.
15030 (TARGET_GET_DRAP_RTX): Override.
15031 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
15033 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15035 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
15037 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15039 * configure.ac: Remove uwin* cases.
15040 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
15041 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
15042 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
15043 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
15044 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
15045 i[34567]86-*-uwin*, powerpc-*-beos*.
15047 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
15049 * gencodes.c (gencodes): Print the comma for the preceding
15050 enum value rather than the current one. Use aliased enum values
15051 rather than #defines for compiled-out patterns.
15052 (main): Update accordingly. Replace LAST_INSN_CODE with
15054 * lra.c (insn_code_data): Update accordingly.
15055 (finish_insn_code_data_once, get_static_insn_data): Likewise.
15056 * recog.h (target_recog): Likewise.
15057 (preprocess_insn_constraints): Change parameter to unsigned int.
15058 * recog.c (preprocess_insn_constraints): Likewise.
15059 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
15060 * tree-vect-stmts.c (vectorizable_operation): Simplify.
15062 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
15064 PR rtl-optimization/61657
15065 * loop-iv.c (iv_number_of_iterations): Declare up and down as
15066 unsigned. Remove superflous uint64_t cast.
15068 2014-08-21 Felix Yang <felix.yang@huawei.com>
15069 Jiji Jiang <jiangjiji@huawei.com>
15071 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
15072 argument and get builtin function code directly from CALL.
15073 (gimple_stringop_fixed_value): Modified accordingly.
15074 (gimple_stringops_transform, gimple_stringops_values_to_profile):
15075 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
15077 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
15079 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
15081 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15083 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
15085 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
15086 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
15087 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
15088 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
15089 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
15090 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
15091 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
15092 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
15093 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
15094 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
15096 * match.pd (SIN ) : New Operator.
15097 (TAN) : New Operator.
15098 (mult (SQRT@1 @0) @1) : New simplifier.
15099 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
15100 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15101 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15102 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
15103 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
15104 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
15105 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
15106 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
15107 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
15108 (rdiv @0 (POW:s @1 @2)) : New simplifier.
15110 2015-08-21 Bin Cheng <bin.cheng@arm.com>
15112 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
15113 loop if EXPR is simplified to const value.
15115 2015-08-21 Yury Gribov <y.gribov@samsung.com>
15117 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
15118 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
15120 2015-08-21 Richard Biener <rguenther@suse.de>
15122 PR middle-end/67285
15123 * gimple-fold.c (replace_stmt_with_simplification): Assert
15124 seq is empty when replacing a call with itself but different
15126 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
15127 a call require that it is const.
15129 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15131 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
15132 * builtins.c (get_object_alignment_2): Adjust.
15133 * varasm.c (align_variable): Likewise.
15134 (get_variable_align): Likewise.
15135 (build_constant_desc): Likewise.
15136 (force_const_mem): Likewise.
15137 * doc/tm.texi.in: Likewise.
15138 * doc/tm.texi: Regenerate.
15140 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15142 * genconfig.c (main): Always define HAVE_cc0.
15143 * recog.c (rest_of_handle_peephole2): Adjust.
15145 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15147 * reorg.c (relax_delay_slots): Don't use #if to check value of
15150 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15152 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
15153 * targhooks.c (default_have_conditional_execution): Adjust.
15155 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
15157 * rtl.h (rtvec_all_equal_p): Declare.
15158 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
15159 * rtl.c (rtvec_all_equal_p): New function.
15160 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
15161 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
15162 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
15163 * config/arm/arm.c (neon_vdup_constant): Likewise.
15164 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
15165 * config/tilegx/constraints.md (W, Y): Likewise.
15166 * config/tilepro/constraints.md (W, Y): Likewise.
15167 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
15168 (classify_immediate): Use unwrap_const_vec_duplicate.
15169 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
15170 (reg_or_v2s8bit_operand): Likewise.
15171 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
15172 (reg_or_v4s8bit_operand): Likewise.
15174 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15176 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
15177 (vec_shasigma_be): New #define.
15178 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
15179 (VPMSUMH): Likewise.
15180 (VPMSUMW): Likewise.
15181 (VPMSUMD): Likewise.
15182 (VPMSUM): New BU_P8V_OVERLOAD_2.
15183 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
15184 entries for VEC_MADD and VEC_VPMSUM.
15186 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
15188 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
15189 Multiply argument avr_n_flash by 64 to match unit of "KiB".
15190 (avr_pgm_check_var_decl): Same.
15192 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
15194 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
15195 initialization of HFmode scalar type (float16_t) to...
15196 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
15199 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
15201 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
15202 having an -mfp16-format.
15204 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
15206 * config/i386/predicates.md (vector_all_ones_operand): Use
15207 CONSTM1_RTX to simplify definition.
15209 2015-08-20 Richard Biener <rguenther@suse.de>
15211 * toplev.c (compile_file): Remove loop calling late_global_decl
15213 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
15214 on decls we assembled.
15216 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
15218 * common/config/aarch64/aarch64-common.c
15219 (AARCH64_CPU_NAME_LENGTH): Delete.
15220 (aarch64_option_extension): New.
15221 (all_extensions): Likewise.
15222 (processor_name_to_arch): Likewise.
15223 (arch_to_arch_name): Likewise.
15225 (all_architectures): Likewise.
15226 (aarch64_get_extension_string_for_isa_flags): Likewise.
15227 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
15228 architecture names.
15229 * config/aarch64/aarch64-protos.h
15230 (aarch64_get_extension_string_for_isa_flags): New.
15231 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
15232 (aarch64_option_print): Get the string to print from
15233 aarch64_get_extension_string_for_isa_flags.
15234 (aarch64_declare_function_name): Likewise.
15235 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
15236 (MCPU_TO_MARCH_SPEC): This.
15237 (ASM_CPU_SPEC): Use it.
15238 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
15239 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
15240 (EXTRA_SPEC_FUNCTIONS): Use it.
15242 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
15244 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
15245 expansion when !ISA_HAS_LWL_LWR.
15246 (mips_block_move_straight): Update the size of elements copied to
15247 account for alignment when !ISA_HAS_LWL_LWR.
15248 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
15250 2015-08-19 Jiong Wang <jiong.wang@arm.com>
15252 * expr.c (expand_expr_real_2): Check gimple statement during
15253 LSHIFT_EXPR expand.
15255 2015-08-19 Magnus Granberg <zorry@gentoo.org>
15257 * common.opt (fstack-protector): Initialize to -1.
15258 (fstack-protector-all): Likewise.
15259 (fstack-protector-strong): Likewise.
15260 (fstack-protector-explicit): Likewise.
15261 * configure.ac: Add --enable-default-ssp.
15262 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
15263 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
15265 * doc/install.texi: Document --enable-default-ssp.
15266 * config.in: Regenerated.
15267 * configure: Likewise.
15269 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
15271 PR rtl-optimization/64164
15272 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
15273 (parm_in_stack_slot_p): ... this. Disregard mode, what
15274 matters is whether the parm will live in a pseudo or a stack
15276 (expand_one_ssa_partition): Deal with params without a default
15277 def. Disregard mode.
15278 * cfgexpand.h: Renamed function declaration.
15279 * tree-ssa-coalesce.c: Adjust.
15280 * function.c (split_complex_args): Allocate stack slot for
15281 unassigned parms before splitting.
15282 (parm_in_unassigned_mem_p): New. Use it instead of
15283 parm_maybe_byref_p throughout this file.
15284 (assign_parm_setup_block): Use it. Accept pseudos in the
15285 expand-assigned rtl.
15286 (assign_parm_setup_reg): Drop BLKmode requirement.
15287 (assign_parm_setup_stack): Allocate and fill in the address of
15288 unassigned MEM parms.
15290 2015-08-19 David Sherwood <david.sherwood@arm.com>
15292 * genmodes.c (emit_mode_unit_size_inline): New function.
15293 (emit_mode_unit_precision_inline): New function.
15294 (emit_insn_modes_h): Emit new #define. Emit new functions.
15295 (emit_mode_unit_size): New function.
15296 (emit_mode_unit_precision): New function.
15297 (emit_mode_adjustments): Add mode_unit_size adjustments.
15298 (emit_insn_modes_c): Emit new arrays.
15299 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
15300 use new inline methods.
15302 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15304 * config/aarch64/aarch64.c (bit_count): Delete prototype
15306 (aarch64_print_operand): Use popcount_hwi instead of the above.
15308 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15310 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
15313 2015-08-19 Marek Polacek <polacek@redhat.com>
15315 PR middle-end/67133
15316 * gimple-ssa-isolate-paths.c
15317 (insert_trap_and_remove_trailing_statements): Rename to ...
15318 (insert_trap): ... this. Don't remove trailing statements; split
15320 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
15322 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
15325 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
15326 conditionalize the whole on __GNUC__. Add fallback code
15327 depending neither on undefined nor implementation-defined behaviour.
15329 2015-08-19 Jiong Wang <jiong.wang@arm.com>
15331 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
15332 whitespaces with tab.
15334 2015-08-19 Florian Weimer <fweimer@redhat.com>
15336 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
15337 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
15338 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
15339 Move Name_Ids instantiation to the Prj.Proc package, to avoid
15342 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15344 * config/arm/arm.c (bounds_check): Use %wd print format
15345 for HOST_WIDE_INT arguments.
15347 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
15349 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
15350 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
15351 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
15352 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
15353 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
15354 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
15355 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
15356 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
15357 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
15360 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
15362 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
15363 function.c, graphite-scop-detection.c, haifa-sched.c,
15364 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
15365 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
15366 varasm.c: Remove typedefs of structs.
15368 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15370 * config/rs6000/altivec.h (vec_adde): New define.
15371 (vec_addec): Likewise.
15372 (vec_double): Likewise.
15373 (vec_bperm): Likewise.
15374 (vec_gb): Likewise.
15375 * config/rs6000/rs6000-builtin.def (ADDE): New
15376 BU_ALTIVEC_OVERLOAD_3.
15378 (DOUBLE): New BU_VSX_OVERLOAD_1.
15379 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
15380 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
15381 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
15382 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
15383 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
15384 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
15385 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
15386 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
15387 and P8V_BUILTIN_VEC_VBPERMQ.
15389 2015-08-18 Jason Merrill <jason@redhat.com>
15391 * print-tree.c (print_node): Handle TREE_BINFO.
15393 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15395 PR middle-end/36757
15396 * builtins.c (expand_builtin_signbit): Add asserts to make sure
15397 we can expand BUILT_IN_SIGNBIT inline.
15398 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
15399 * doc/extend.texi: Document the type-generic __builtin_signbit.
15401 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
15403 PR rtl-optimization/67218
15404 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
15405 (simplify_unary_operation_1): Use it.
15407 2015-08-18 Marek Polacek <polacek@redhat.com>
15409 PR middle-end/67222
15410 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
15411 if the call isn't valid.
15412 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
15413 gimple_call_builtin_p.
15414 (call_may_clobber_ref_p_1): Likewise.
15415 (stmt_kills_ref_p): Likewise.
15417 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
15419 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
15420 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
15421 (mips_hard_regno_scratch_ok): Likewise.
15422 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
15423 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
15425 2015-08-18 Bin Cheng <bin.cheng@arm.com>
15427 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
15428 (determine_value_range): Call refine_value_range_using_guard for
15429 each loop initial condition to improve value range.
15431 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
15433 * config/i386/i386.c: Remove include of fibheap.h.
15435 2015-08-17 Richard Biener <rguenther@suse.de>
15437 PR tree-optimization/67221
15438 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
15439 (sccvn_dom_walker::before_dom_children): Mark backedges of
15440 non-executable blocks as not executable.
15442 2015-08-17 David Sherwood <david.sherwood@arm.com>
15444 * config/arm/arm.c (neon_element_bits): Replace call to
15445 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
15446 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
15447 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
15448 (neon_vdup_lane<mode>): Likewise.
15449 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
15450 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
15451 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
15452 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
15453 * config/spu/spu.c (arith_immediate_p): Likewise.
15454 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
15455 * expr.c (expand_expr_real_2): Likewise.
15456 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
15457 * simplify-rtx.c (simplify_immed_subreg): Likewise.
15458 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
15459 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
15461 * fold-const.c (fold_binary_loc): Replace call to
15462 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
15463 GET_MODE_UNIT_PRECISION (m).
15465 2015-08-17 Mike Stump <mikestump@comcast.net>
15467 * config/arm/arm.c (arm_block_move_unaligned_straight):
15468 Emit normal move instead of unaligned load when source or destination
15469 are appropriately aligned.
15471 2015-08-17 Richard Biener <rguenther@suse.de>
15472 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15474 PR middle-end/16107
15475 * match.pd (div (coss (op @0) : New simplifier.
15477 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
15479 PR rtl-optimization/64164
15481 PR middle-end/66983
15482 PR rtl-optimization/67000
15483 PR middle-end/67034
15484 PR middle-end/67035
15485 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15486 * tree-ssa-copyrename.c: Removed.
15487 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15488 -ftree-coalesce-vars.
15489 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15490 * common.opt (ftree-copyrename): Ignore.
15491 (ftree-coalesce-inlined-vars): Likewise.
15492 * doc/invoke.texi: Remove the ignored options above.
15493 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15494 * tree-ssa-coalesce.h: ... here.
15495 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15496 headers required by it.
15497 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15498 across variables when flag_tree_coalesce_vars. Check register
15499 use and promoted modes to allow coalescing. Do not coalesce
15500 maybe-byref parms with SSA_NAMEs of other variables, or
15501 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
15502 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15503 with its member functions to tree-ssa-coalesce.c.
15504 (var_map_base_init): Likewise. Renamed to
15505 compute_samebase_partition_bases.
15506 (partition_view_normal): Drop want_bases parameter.
15507 (partition_view_bitmap): Likewise.
15508 * tree-ssa-live.h: Adjust declarations.
15509 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
15510 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15511 default defs at the entry point.
15512 (dump_part_var_map): New.
15513 (compute_optimized_partition_bases): New, called by...
15514 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15515 of compute_samebase_partition_bases. Adjust.
15516 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15517 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
15518 (ssa_default_def_partition): New.
15519 (get_rtl_for_parm_ssa_default_def): New.
15520 (align_local_variable, add_stack_var): Support anonymous SSA
15522 (defer_stack_allocation): Likewise. Declare earlier.
15523 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15524 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15525 Do no record deferred-allocation marker in
15526 SA.partition_to_pseudo.
15527 (expand_stack_vars): Adjust check for the marker in it.
15528 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15529 redundant MEM attr setting.
15530 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15532 (expand_one_stack_var): ... this. New wrapper to check and
15533 skip already expanded SSA partitions.
15534 (record_alignment_for_reg_var): New, factored out of...
15535 (expand_one_var): ... this.
15536 (expand_one_ssa_partition): New.
15537 (adjust_one_expanded_partition_var): New.
15538 (expand_one_register_var): Check and skip already expanded SSA
15540 (expand_used_vars): Don't create DECLs for anonymous SSA
15541 names. Expand all SSA partitions, then adjust all SSA names.
15542 (pass::execute): Replace the loops that set
15543 SA.partition_to_pseudo from partition leaders and cleared
15544 DECL_RTL for multi-location variables, and that which used to
15545 rename vars and set attrs, with one that clears DECL_RTL and
15546 checks that PARMs and RESULTs default_defs match DECL_RTL.
15547 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15548 * emit-rtl.c: Include stor-layout.h.
15549 (set_reg_attrs_for_parm): Handle NULL decl.
15550 (set_reg_attrs_for_decl_rtl): Take mode from expression if
15552 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
15553 rather than its possibly-NULL DECL.
15554 * explow.c (promote_ssa_mode): New.
15555 * explow.h (promote_ssa_mode): Declare.
15556 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15557 (read_complex_part): Export.
15558 * expr.h (read_complex_part): Declare.
15559 * cfgexpand.h (parm_maybe_byref_p): Declare.
15560 * function.c: Include cfgexpand.h.
15561 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15562 (use_register_for_parm_decl): Wrapper for the above to
15563 special-case the result_ptr.
15564 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15565 (split_complex_args): Take assign_parm_data_all argument.
15566 Pass it to rtl_for_parm. Set up rtl and context for split
15567 args. Reset complex parm before fetching its default decl
15569 (assign_parms_unsplit_complex): Use the default-def complex
15570 parm rtl if it matches the components.
15571 (assign_parms_augmented_arg_list): Adjust.
15572 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15573 multiple locations. Recognize split complex args.
15574 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15575 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15576 (assign_parm_setup_block): Prefer SSA-assigned location, and
15577 fill in its address if the memory location of a maybe-byref
15578 parm was not assigned by cfgexpand.
15579 (assign_parm_setup_reg): Likewise. Adjust its mode as
15580 needed. Use entry_parm for equiv if stack_parm is NULL. Make
15581 sure passed_pointer parms don't need conversion. Copy address
15582 or value as needed.
15583 (assign_parm_setup_stack): Prefer SSA-assigned location.
15584 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15585 rtl before testing for pointer bounds. Special-case result_ptr.
15586 (expand_function_start): Maybe reset DECL_RTL of result.
15587 Prefer SSA-assigned location for result and static chain.
15588 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
15589 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
15590 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15591 anonymous SSA names. Use promote_ssa_mode.
15592 (get_temp_reg): Likewise.
15593 (remove_ssa_form): Adjust.
15594 * stor-layout.c (layout_decl): Don't set mem attributes of
15596 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15597 and get its reg_usage for reg invalidation.
15598 (compute_bb_dataflow): Pass it insn.
15599 (emit_notes_in_bb): Likewise.
15601 2015-08-14 Marek Polacek <polacek@redhat.com>
15603 * tree-core.h (tree_base): Fix typo.
15605 2015-08-14 Marek Polacek <polacek@redhat.com>
15607 PR middle-end/67133
15608 * gimple.c (infer_nonnull_range_by_attribute): Check that the
15609 nonnull argument position is not outside function arguments.
15611 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
15614 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
15615 'lconst_atomic' with 'const_atomic'.
15616 (atomic_fetch_<optab><mode>): Likewise.
15617 (atomic_<optab>_fetch<mode>): Likewise.
15618 * config/aarch64/iterators.md (lconst-atomic): Move below
15620 (const_atomic): New.
15622 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
15623 Bernd Schmidt <bernds@codesourcery.com>
15625 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
15627 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
15628 (DWARF2_DEBUGGING_INFO): Don't define.
15629 * debug.h (dwarf2_lineno_debug_hooks): Declare.
15630 * toplev.c (process_options): Add a case for it.
15631 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
15632 (dwarf2out_init): Skip most initializations if
15633 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
15635 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
15636 DWARF2_LINENO_DEBUGGING_INFO.
15637 * opts.c (set_debug_level): Likewise.
15639 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
15641 * config/arm/types.md (is_neon_type): Add missing types.
15643 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
15645 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
15647 * config/i386/i386.c (PTA_SKYLAKE): New macros.
15648 (processor_alias_table): Add skylake description.
15649 (enum processor_model): Add skylake processor.
15650 (arch_names_table): Add skylake record.
15651 * doc/invoke.texi: Add skylake item.
15653 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
15655 * ira-int.h: Include recog.h.
15656 * ira-build.c: Don't include recog.h.
15657 * ira-color.c: Likewise.
15658 * ira-conflicts.c: Likewise.
15659 * ira-costs.c: Likewise.
15660 * ira-emit.c: Likewise.
15661 * ira-lives.c: Likewise.
15663 * sched-deps.c: Likewise.
15664 * sel-sched.c: Likewise.
15665 * target-globals.c: Likewise.
15667 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
15670 * reload1.c (elimination_costs_in_insn): Make it obvious to the
15671 compiler that the n_dups and n_operands loop bounds are invariant.
15673 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15675 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
15676 expressions in A and B.
15678 2015-08-13 Richard Biener <rguenther@suse.de>
15680 * tree.c (nonnull_arg_p): Move from ...
15681 * tree-vrp.c (nonnull_arg_p): ... here.
15682 * tree.h (nonnull_arg_p): Declare.
15683 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
15684 here, register ptr != 0 for nonnull_arg_p pointer arguments.
15685 Properly initialize static chain and by-reference result pointer.
15686 (run_scc_vn): Adjust.
15688 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
15690 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
15693 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
15695 * config/aarch64/aarch64-protos.h
15696 (aarch64_gen_atomic_cas): Declare.
15697 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
15698 Choose appropriate instruction pattern for the target.
15699 (aarch64_gen_atomic_cas): New.
15700 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
15701 (atomic_compare_and_swap<mode>_1): Rename to
15702 aarch64_compare_and_swap<mode>. Fix some indentation.
15703 (aarch64_compare_and_swap<mode>_lse): New.
15704 (aarch64_atomic_cas<mode>): New.
15706 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
15708 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
15711 2015-08-13 Richard Biener <rguenther@suse.de>
15713 PR tree-optimization/67191
15714 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
15715 assert we value-numbered last stmts operand because it can validly
15716 trigger for unreachable code.
15718 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15720 PR rtl-optimization/67103
15721 * ifcvt.c (noce_try_store_flag_constants): Move
15722 x = (-(test != 0) & (b - a)) + a transformation to...
15723 (noce_try_cmove): ... Here. Try it if normal conditional
15726 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
15728 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
15730 * config/mips/mips.md (processor): Remove w32 and w64.
15732 2015-08-13 Richard Biener <rguenther@suse.de>
15734 PR tree-optimization/66502
15735 PR tree-optimization/67167
15736 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
15737 backedge arguments.
15738 (vn_phi_lookup): Adjust.
15739 (vn_phi_insert): Likewise.
15740 (visit_phi): Prefer to value-number to another PHI node
15741 over value-numbering to a PHI argument.
15742 (init_scc_vn): Mark DFS back edges.
15744 2015-08-13 Richard Biener <rguenther@suse.de>
15746 * gimple.h (gcall::code_): New constant static member.
15747 (gcond::code_): Likewise.
15748 * gimple.c (gcall::code_): Define.
15749 (gcond::code_): Likewise.
15750 (is_a_helper <const gcond *>): Add.
15751 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
15752 and forward to a new gcall overload with less checking and a
15753 cheaper way to access the operand.
15754 (gimple_call_lhs_ptr): Likewise.
15755 (gimple_call_set_lhs): Likewise.
15756 (gimple_call_internal_p): Likewise.
15757 (gimple_call_with_bounds_p): Likewise.
15758 (gimple_call_set_with_bounds): Likewise.
15759 (gimple_call_internal_fn): Likewise.
15760 (gimple_call_set_ctrl_altering): Likewise.
15761 (gimple_call_ctrl_altering_p): Likewise.
15762 (gimple_call_fntype): Likewise.
15763 (gimple_call_fn): Likewise.
15764 (gimple_call_fn_ptr): Likewise.
15765 (gimple_call_set_fndecl): Likewise.
15766 (gimple_call_fndecl): Likewise.
15767 (gimple_call_chain): Likewise.
15768 (gimple_call_num_args): Likewise.
15769 (gimple_call_arg): Likewise.
15770 (gimple_call_arg_ptr): Likewise.
15771 (gimple_call_set_arg): Likewise.
15772 (gimple_call_noreturn_p): Likewise.
15773 (gimple_cond_code): Likewise.
15774 (gimple_cond_lhs): Likewise.
15775 (gimple_cond_rhs): Likewise.
15776 (gimple_has_lhs): Reduce checking.
15778 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15780 PR middle-end/25529
15781 * match.pd (div (mult @0 @1) @1) : New simplifier.
15783 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15786 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
15787 predicate to allow construction of vector constants using the
15788 VSLDOI vector shift instruction.
15790 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
15793 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
15794 the number of bytes to be shifted left and filled in with either
15795 all zero or all one bits.
15796 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
15798 (output_vec_const_move): On power8, generate XXLORC to generate
15799 a vector constant with all 1's. Do a split if we need to use a
15800 VSLDOI instruction.
15802 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
15803 properly test for the MSB.
15805 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
15806 vector constants that can be created with VSLDOI.
15808 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
15811 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15812 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15813 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15814 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15815 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15816 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15817 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15818 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15819 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15821 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
15823 * config/xtensa/constraints.md (define_constraint "Y"): New
15825 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
15826 * config/xtensa/linux.h (ASM_SPEC): Likewise.
15827 * config/xtensa/predicates.md (move_operand): Match constants
15828 and symbols in the presence of TARGET_AUTO_LITPOOLS.
15829 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
15830 immediate references to TLS data.
15831 (xtensa_emit_move_sequence): Don't force constants to memory in
15832 the presence of TARGET_AUTO_LITPOOLS.
15833 (print_operand): Add 'y' format, same as default, but capable of
15834 printing SF mode constants as well.
15835 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
15836 (movsf_internal): Add movi pattern that loads literal.
15837 (movsf, movdf): Don't force constants to memory in the presence
15838 of TARGET_AUTO_LITPOOLS.
15839 (movdf_internal): Add 'Y' constraint.
15840 * config/xtensa/xtensa.opt (mauto-litpools): New option.
15841 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
15843 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
15845 * config/arm/arm-fpus.def: Replace booleans with feature flags.
15847 * config/arm/arm.c (ARM_FPU): Update macro.
15848 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
15849 (TARGET_FP16): Likewise.
15850 (TARGET_CRYPTO): Likewise.
15851 (TARGET_NEON): Likewise.
15852 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
15855 2015-08-12 Tom de Vries <tom@codesourcery.com>
15859 * doc/install.texi: Remove --with_host_libstdcxx item. Update
15860 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
15861 accordingly. Mention default for --with-stage1-ldflags.
15863 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
15865 * config/arm/arm.h (arm_fpu_feature_set): New.
15866 (ARM_FPU_FSET_HAS): New.
15867 (FPU_FL_NONE): New.
15868 (FPU_FL_NEON): New.
15869 (FPU_FL_FP16): New.
15870 (FPU_FL_CRYPTO): New.
15872 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15874 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
15875 after -mcmodel=large -fPIC sorry.
15877 2015-08-12 Richard Biener <rguenther@suse.de>
15879 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
15880 comparison operand order and commutative ternary op operand order.
15881 (sccvn_dom_walker::cond_stack): New state to track temporary
15883 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
15885 (sccvn_dom_walker::record_cond): Add a single temporary conditional
15887 (sccvn_dom_walker::record_conds): Add a temporary conditional
15888 expressions and all related expressions also true/false.
15889 (sccvn_dom_walker::before_dom_children): Record temporary
15890 expressions based on the controlling condition of a single
15891 predecessor. When trying to simplify a conditional statement
15892 lookup expressions we might have inserted earlier.
15894 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
15897 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
15898 to ARM core registers.
15900 2015-08-12 Nathan Sidwell <nathan@acm.org>
15902 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
15903 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
15905 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
15907 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
15908 line with comments.
15909 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
15911 2015-08-12 Richard Biener <rguenther@suse.de>
15913 * gimple.h (remove_pointer): New trait.
15914 (GIMPLE_CHECK2): New inline template function.
15915 (gassign::code_): New constant static member.
15916 (is_a_helper<const gassign *>): Add.
15917 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
15918 and forward to a new gassign overload with less checking and a
15919 cheaper way to access the operand.
15920 (gimple_assign_lhs_ptr): Likewise.
15921 (gimple_assign_set_lhs): Likewise.
15922 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
15924 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
15926 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
15928 (gimple_assign_rhs_code): Likewise.
15929 * gimple.c (gassign::code_): Define.
15931 2015-08-12 Richard Biener <rguenther@suse.de>
15933 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15934 Eliminate edges marked as not executable by SCCVN.
15935 * tree-ssa-sccvn.c: Include gimple-iterator.h.
15936 (cond_dom_walker): Rename to sccvn_dom_walker.
15937 (sccvn_dom_walker::before_dom_children): Value-number defs
15939 (run_scc_vn): Remove loop value-numbering all SSA names.
15940 Drop not visited SSA names to varying.
15942 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
15944 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15945 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15946 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15947 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15948 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15949 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15950 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15951 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15952 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15954 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
15957 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
15958 to enum feature_priority and feature_list.
15959 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
15960 and isa_names_table.
15962 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
15964 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
15965 vect_induction_def.
15967 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
15971 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
15972 account when deciding what was the command-line status.
15974 2015-08-11 Nathan Sidwell <nathan@acm.org>
15976 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
15978 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
15979 we're not the only contributor to target phi.
15981 2015-08-11 Jiong Wang <jiong.wang@arm.com>
15983 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
15986 2015-08-11 Tom de Vries <tom@codesourcery.com>
15988 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
15990 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
15992 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
15994 * config/i386/i386.md (cpu): Remove knl.
15996 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15999 PR middle-end/66332
16000 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
16001 open-coded sequence.
16002 * omp-low.c (oacc_process_reduction_data): Remove handline of
16003 GOMP_DEVICE_HOST_NONSHM.
16005 * lto-streamer-in.c (lto_input_mode_table): Adjust to
16006 GET_MODE_INNER changes.
16008 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
16009 Ilya Verbin <ilya.verbin@intel.com>
16011 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
16013 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
16015 * doc/options.texi (EnabledBy): Document that the argument must be
16017 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
16018 Not enabled by -Wall.
16019 * optc-gen.awk: Give nicer error messages. Detect if the argument
16020 of EnabledBy is not a Common option.
16021 * common.opt (Wnull-dereference): Not enabled by -Wall.
16022 * opt-functions.awk (lang_enabled_by): Nicer error messages.
16024 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
16026 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
16027 model == 0x4f as Broadwell.
16029 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16031 PR rtl-optimization/67028
16032 * combine.c (simplify_comparison): Fix comment. Rearrange code.
16033 Add test to see if a const_int fits in the new mode.
16035 2015-08-07 DJ Delorie <dj@redhat.com>
16037 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
16039 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
16041 PR rtl-optimization/67029
16042 * ira-color.c: Include "recog.h" before including "ira-int.h".
16043 * target-globals.c: Likewise.
16044 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
16045 adds an alternative_mask argument and use it instead of
16046 preferred_alternatives.
16047 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
16048 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
16049 * sched-deps.c: Include "ira-int.h" after including "ira.h".
16050 (sched_analyze_insn): Update call to
16051 ira_implicitly_set_insn_hard_regs.
16052 * sel-sched.c: Include "ira-int.h" after including "ira.h".
16053 (implicit_clobber_conflict_p): Update call to
16054 ira_implicitly_set_insn_hard_regs.
16056 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
16058 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
16060 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
16063 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
16064 currently_expanding_to_rtl is set.
16066 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
16068 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
16069 * configure: Regenerate.
16071 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16072 Jiong Wang <jiong.wang@arm.com>
16074 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
16075 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
16076 (REG_CLASS_NAMES): Likewise.
16077 (REG_CLASS_CONTENTS): Likewise.
16078 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
16079 (aarch64_register_move_cost): Likewise.
16080 (aarch64_load_symref_appropriately): Invoke the new added pattern if
16082 * config/aarch64/constraints.md (Uc0): New constraint.
16084 2015-08-06 Jiong Wang <jiong.wang@arm.com>
16086 * config/aarch64/constraints.md (Usf): Add the test of
16087 aarch64_is_noplt_call_p.
16089 2015-08-06 Jiong Wang <jiong.wang@arm.com>
16091 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
16093 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
16094 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
16095 (call_symbol): Likewise.
16097 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
16099 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
16100 for vectorizing multiplication patterns.
16101 * tree-vectorizer.h: Adjust the number of patterns.
16103 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
16105 * config/i386/sse.md (*vec_concatv2df): Declare added
16106 alternatives as sselog type.
16108 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16110 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
16113 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16115 * config/s390/s390.c (s390_expand_tbegin): Expand either
16116 tbegin_1_z13 or tbegin_1 depending on VX flag.
16117 * config/s390/s390.md ("tbegin_1_z13"): New expander.
16119 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16121 * config/s390/s390.opt: Clarify description for -mzvector
16122 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
16125 2015-08-06 Richard Biener <rguenther@suse.de>
16127 * gimple.h (gimple_call_set_fn): Access op member directly.
16128 (gimple_call_chain_ptr): Likewise.
16129 (gimple_call_set_chain): Likewise.
16130 (gimple_cond_lhs_ptr): Likewise.
16131 (gimple_cond_set_lhs): Likewise.
16132 (gimple_cond_rhs_ptr): Likewise.
16133 (gimple_cond_set_rhs): Likewise.
16134 (gimple_cond_true_label): Likewise.
16135 (gimple_cond_set_true_label): Likewise.
16136 (gimple_cond_set_false_label): Likewise.
16137 (gimple_cond_false_label): Likewise.
16138 (gimple_label_label): Likewise.
16139 (gimple_label_set_label): Likewise.
16140 (gimple_goto_set_dest): Likewise.
16141 (gimple_asm_input_op): Likewise.
16142 (gimple_asm_input_op_ptr): Likewise.
16143 (gimple_asm_set_input_op): Likewise.
16144 (gimple_asm_output_op): Likewise.
16145 (gimple_asm_output_op_ptr): Likewise.
16146 (gimple_asm_set_output_op): Likewise.
16147 (gimple_asm_clobber_op): Likewise.
16148 (gimple_asm_set_clobber_op): Likewise.
16149 (gimple_asm_label_op): Likewise.
16150 (gimple_asm_set_label_op): Likewise.
16151 (gimple_switch_index): Likewise.
16152 (gimple_switch_index_ptr): Likewise.
16153 (gimple_return_retval_ptr): Likewise.
16154 (gimple_return_retval): Likewise.
16155 (gimple_return_set_retval): Likewise.
16156 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
16157 (gimple_switch_label): Likewise.
16158 (gimple_switch_set_label): Likewise.
16160 2015-08-06 Richard Biener <rguenther@suse.de>
16162 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
16163 bool comparison canonicalization and restrict to integers.
16165 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
16167 * coretypes.h (enum symbol_visibility): Relocate here.
16168 * flag-types.h (enum symbol_visibility): Remove.
16169 * tree-core.h (enum symbol_visibility): Remove.
16171 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
16174 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
16175 for no_split_stack function attribute along with
16177 (rs6000_expand_split_stack_prologue): Likewise.
16179 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
16180 Jeff Law <law@redhat.com>
16183 * doc/invoke.texi (Wnull-dereference): New.
16184 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
16185 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
16186 Warn for potential NULL dereferences.
16187 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
16188 * ubsan.c (instrument_nonnull_arg): Call
16189 infer_nonnull_range_by_attribute.
16190 (instrument_nonnull_return): Likewise.
16191 * common.opt (Wnull-dereference); New.
16192 * gimple.c (infer_nonnull_range): Remove bool arguments.
16193 (infer_nonnull_range_by_dereference): New.
16194 (infer_nonnull_range_by_attribute): New.
16195 * gimple.h: Update declarations.
16197 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16199 * gensupport.c (sequence_num): Replace with...
16200 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
16201 ...these new variables.
16202 (init_rtx_reader_args_cb): Update accordingly.
16203 (get_num_code_insns): Likewise.
16204 (read_md_rtx): Rework to use a while loop and get_c_test.
16205 Use the new counters. Remove redundant DEFINE_SUBST case.
16206 * genoutput.c (gen_split): Delete.
16207 (main): Don't call it.
16209 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16211 * gensupport.h (get_c_test): Declare.
16212 * gensupport.c (get_c_test): New function.
16213 * genconditions.c (main): Use it.
16214 * genrecog.c (validate_pattern): Likewise.
16215 (match_pattern_1): Likewise. Remove c_test argument.
16216 (match_pattern): Update accordingly and remove c_test argument.
16217 (main): Update accordingly.
16219 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16221 * gensupport.h (get_num_insn_codes): Declare.
16222 * gensupport.c (get_num_insn_codes): New function.
16223 * genattrtab.c (optimize_attrs): Rename max_insn_code to
16225 (main): Likewise. Use get_num_insn_codes.
16226 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
16228 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16230 PR middle-end/66311
16231 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
16232 is zero- rather than sign-extended.
16234 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16236 * target-insns.def (can_extend): Delete.
16238 2015-08-05 Richard Biener <rguenther@suse.de>
16240 PR tree-optimization/67121
16241 * tree-if-conv.c (combine_blocks): Clear range-info produced
16242 by stmts no longer executed conditionally.
16244 2015-08-05 Nick Clifton <nickc@redhat.com>
16246 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
16247 to allow identical far pointers to remain.
16249 2015-08-05 Richard Biener <rguenther@suse.de>
16251 PR middle-end/67120
16252 * match.pd: Compare address bases with == if they are decls
16253 or SSA names, not operand_equal_p. Otherwise fail.
16255 2015-08-05 Richard Biener <rguenther@suse.de>
16257 PR tree-optimization/67055
16258 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
16261 * g++.dg/torture/pr67055.C: New testcase.
16263 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
16265 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
16267 (define_attr "enabled"): Handle avx521vl and noavx512vl.
16268 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
16269 AVX-512 alternative out of SSE.
16270 (define_insn "*vec_concatv2df"): Ditto.
16272 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
16274 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
16275 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
16276 CODE_FOR_avx_ptestv4di.
16277 * config/i386/sse.md (define_mode_iterator V_AVX): New.
16278 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
16279 (define_insn "avx_ptest256"): Merge this ...
16280 (define_insn "sse4_1_ptest"): And this ...
16281 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
16283 2015-08-05 Richard Biener <rguenther@suse.de>
16285 PR tree-optimization/67109
16286 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
16287 against too big groups. Print whether this is a load or store
16288 group. Rename from ...
16289 (vect_analyze_group_access): ... this which is now a wrapper
16290 dissolving an invalid group.
16291 (vect_analyze_data_ref_accesses): Print whether this is a load
16294 2015-08-05 Richard Biener <rguenther@suse.de>
16296 PR middle-end/67107
16297 * match.pd: Guard const_binop result checking against NULL_TREE
16300 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
16302 * cse.c (cse_insn): Restoring old behaviour for src_eqv
16303 when dest and value in the REG_EQUAL are same and dest
16304 is STRICT_LOW_PART.
16306 2015-08-04 Anatoly Sokolov <aesok@post.ru>
16308 * config/moxie/moxie.h (PRINT_OPERAND,
16309 PRINT_OPERAND_ADDRESS): Remove macros.
16310 * config/moxie/moxie-protos.h (moxie_print_operand,
16311 moxie_print_operand_address): Remove declaration.
16312 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
16313 TARGET_PRINT_OPERAND_ADDRESS): Define.
16314 (moxie_print_operand, moxie_print_operand_address): Make static.
16316 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16319 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
16320 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
16322 2015-08-04 Richard Biener <rguenther@suse.de>
16324 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
16326 (dt_operand::gen_gimple_expr): Adjust.
16328 2015-08-04 Richard Biener <rguenther@suse.de>
16330 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
16331 bool compares on RHS.
16332 * match.pd: Add X ==/!= !X is false/true pattern.
16334 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
16336 * config/aarch64/aarch64.c: Change inner loop statement cost
16337 to be consistent with other targets.
16339 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
16341 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
16344 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
16346 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
16347 (machine_function): Remove pseudos field.
16349 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16351 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16352 Exit early and use target_option_current_node if processing current
16355 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16357 * doc/extend.texi (AArch64 Function Attributes): New node.
16358 (AArch64 Pragmas): Likewise.
16360 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16362 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16363 Initialize simd builtins if TARGET_SIMD.
16364 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
16365 Make sure that the builtins are initialized only once no matter how
16366 many times the function is called.
16367 (aarch64_init_builtins): Unconditionally initialize crc builtins.
16368 (aarch64_relayout_simd_param): New function.
16369 (aarch64_simd_expand_args): Use above during argument expansion.
16370 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
16371 simd builtins if TARGET_SIMD.
16372 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
16374 (aarch64_relayout_simd_types): Likewise.
16376 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16378 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
16379 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
16380 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
16381 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16383 (aarch64_reset_previous_fndecl): New function.
16384 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
16386 * config/aarch64/aarch64-c.c: New file.
16387 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
16388 Push and pop options at beginning and end. Remove ifdef
16389 __ARM_FEATURE_CRC32.
16390 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
16391 Add pragma +nothing+simd and +nothing+crypto where appropriate.
16392 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
16393 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
16395 (aarch64_register_pragmas): Likewise.
16396 (aarch64_reset_previous_fndecl): Likewise.
16397 (aarch64_process_target_attr): Likewise.
16398 (aarch64_override_options_internal): Likewise.
16400 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16402 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
16404 (aarch64_can_inline_p): Likewise.
16405 (TARGET_CAN_INLINE_P): Define.
16407 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16409 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
16410 Remove static. Handle OPT_mgeneral_regs_only,
16411 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
16412 OPT_momit_leaf_frame_pointer.
16413 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
16414 (aarch64_attr_opt_type): New enum.
16415 (aarch64_attribute_info): New struct.
16416 (aarch64_handle_attr_arch): New function.
16417 (aarch64_handle_attr_cpu): Likewise.
16418 (aarch64_handle_attr_tune): Likewise.
16419 (aarch64_handle_attr_isa_flags): Likewise.
16420 (aarch64_attributes): New table.
16421 (aarch64_process_one_target_attr): New function.
16422 (num_occurences_in_str): Likewise.
16423 (aarch64_process_target_attr): Likewise.
16424 (aarch64_option_valid_attribute_p): Likewise.
16425 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16426 * config/aarch64/aarch64-protos.h: Include input.h
16427 (aarch64_handle_option): Declare prototype.
16429 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16431 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
16432 * config/aarch64/aarch64.c: Include target-globals.h
16433 (aarch64_previous_fndecl): New variable.
16434 (aarch64_set_current_function): New function.
16435 (TARGET_SET_CURRENT_FUNCTION): Define.
16437 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16439 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
16440 (explicit_arch): Likewise.
16441 (x_aarch64_isa_flags): Likewise.
16442 (mgeneral-regs-only): Mark as Save.
16443 (mfix-cortex-a53-835769): Likewise.
16444 (mcmodel=): Likewise.
16445 (mstrict-align): Likewise.
16446 (momit-leaf-frame-pointer): Likewise.
16447 (mtls-dialect): Likewise.
16448 (master=): Likewise.
16449 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
16450 (aarch64_isa_flags): Remove extern declaration.
16451 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
16452 to indicate success or failure.
16453 (aarch64_validate_march): Likewise.
16454 (aarch64_validate_mtune): Likewise.
16455 (aarch64_isa_flags): Delete.
16456 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
16457 instead of aarch64_isa_flags.
16458 (aarch64_get_tune_cpu): New function.
16459 (aarch64_get_arch): Likewise.
16460 (aarch64_override_options): Use above and set up explicit_tune_core
16462 (aarch64_print_extension): Move earlier in file. Add isa_flags
16463 argument and use that instead of the global aarch64_isa_flags.
16464 (aarch64_option_save): New function.
16465 (aarch64_option_restore): Likewise.
16466 (aarch64_option_print): Likewise.
16467 (aarch64_declare_function_name): Likewise.
16468 (aarch64_start_file): Delete.
16469 (TARGET_ASM_FILE_START): Do not define.
16470 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
16471 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
16474 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16476 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
16477 flag_omit_leaf_frame_pointer to 2.
16479 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16481 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
16483 (TARGET_FIX_ERR_A53_835769): New macro.
16484 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16485 handling of opts->x_aarch64_fix_a53_err835769.
16486 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
16487 than aarch64_fix_a53_err835769.
16488 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
16489 * config/aarch64/aarch64-linux.h: Likewise.
16491 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
16493 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
16494 ix86_expand_int_movcc as boolean.
16496 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16498 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
16499 (aarch64_cpu_string): Likewise.
16500 (aarch64_tune_string): Likewise.
16501 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
16502 (aarch64_parse_extension): Return aarch64_parse_opt_result.
16503 Add extra argument to put result into.
16504 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
16505 (aarch64_parse_cpu): Add arguments to put results into. Return
16506 aarch64_parse_opt_result.
16507 (aarch64_parse_tune): Likewise.
16508 (aarch64_override_options_after_change_1): New function.
16509 (aarch64_override_options_internal): New function.
16510 (aarch64_validate_mcpu): Likewise.
16511 (aarch64_validate_march): Likewise.
16512 (aarch64_validate_mtune): Likewise.
16513 (aarch64_override_options): Update to reflect above changes.
16514 Move some logic into aarch64_override_options_internal.
16515 Initialize target_option_default_node and target_option_current_node.
16516 (aarch64_override_options_after_change): Move logic into
16517 aarch64_override_options_after_change_1 and call it with global_options.
16518 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
16519 flag values from that.
16521 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16523 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16524 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
16525 * config/aarch64/aarch64.c (struct processor): Add arch field.
16526 (all_architectures): Handle above, move above all_cores.
16527 (all_cores): Handle above.
16528 (aarch64_parse_arch): Handle above changes.
16529 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
16530 above. Update comments.
16531 (armv8.1-a): Likewise.
16532 * config/aarch64/aarch64-cores.def: Update according to above.
16533 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
16534 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
16535 aarch64_arch_driver_info.
16537 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16539 * config/aarch64/aarch64.c (struct processor): Add ident field.
16540 Rename core sched_core.
16541 (all_cores): Handle above changes.
16542 (all_architectures): Likewise.
16543 (aarch64_parse_arch): Likewise.
16544 (aarch64_override_options): Likewise.
16546 2015-08-04 Richard Biener <rguenther@suse.de>
16548 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16549 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
16550 comparisons embedded in [VEC_]COND_EXPRs.
16552 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
16554 * tree-if-conv.c: Fix various typos in comments.
16555 * tree-vect-stmts.c: Likewise.
16557 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
16559 PR tree-optimization/67043
16560 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
16561 preheader after hoisting invariant in it.
16562 (find_defs): Force recomputation of all luids.
16564 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
16566 * config/rs6000/htm.md (tabort.): Restrict the source operand to
16567 using a base register.
16569 2015-08-03 David Malcolm <dmalcolm@redhat.com>
16571 * main.c (main): Pass in NULL for toplev's external_timer.
16572 * timevar.c: Include coretypes.h.
16573 (class timer::named_items): New.
16574 (timer::named_items::named_items): New.
16575 (timer::named_items::~named_items): New.
16576 (timer::named_items::push): New.
16577 (timer::named_items::pop): New.
16578 (timer::named_items::print): New.
16579 (timer::timer): Initialize field "m_jit_client_items".
16580 (timer::~timer): New.
16581 (timer::push): Move bulk of implementation to...
16582 (timer::push_internal): ...here. New function.
16583 (timer::pop): Move bulk of implementation to...
16584 (timer::pop_internal): ...here. New function.
16585 (timer::push_client_item): New.
16586 (timer::pop_client_item): New.
16587 (timer::print_row): New function, taken from timer::print.
16588 (timer::print): Print "GCC items" header if we also have client
16589 items. Move row-printing to timer::print_row. Print any client
16591 (timer::get_topmost_item_name): New method.
16592 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
16593 (TV_JIT_CLIENT_CODE): New.
16594 * timevar.h (timer::push_client_item): New declaration.
16595 (timer::pop_client_item): New declaration.
16596 (timer::get_topmost_item_name): New method.
16597 (timer::push_internal): New declaration.
16598 (timer::pop_internal): New declaration.
16599 (timer::print_row): New declaration.
16600 (timer::named_items): New declaration.
16601 (timer::m_jit_client_items): New field.
16602 (timer): Add friend class named_items.
16603 (auto_timevar::auto_timevar): Add timer param.
16604 (auto_timevar::~auto_timevar): Use field "m_timer".
16605 (auto_timevar::m_timer): New field.
16606 * toplev.c (initialize_rtl): Add g_timer as param when
16607 constructing auto_timevar instance.
16608 (toplev::toplev): Add "external_timer" param, and use it to
16609 initialize the "g_timer" global if non-NULL.
16610 (toplev::~toplev): If this created "g_timer", delete it.
16611 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
16612 with "external_timer" timer *.
16614 2015-08-03 Alexander Basov <coohpt@gmail.com>
16616 PR middle-end/64744
16617 PR middle-end/48470
16618 PR middle-end/43404
16619 * cfgexpand.c (expand_one_var): Add check if stack is going to
16620 be used in naked function.
16621 * expr.c (expand_expr_addr_expr_1): Remove excess checking
16622 whether expression should not reside in MEM.
16623 * function.c (use_register_for_decl): Do not use registers for
16624 non-register things (volatile, float, BLKMode) in naked functions.
16626 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
16629 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
16630 Adjust splits to match new pattern.
16632 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16634 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
16637 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
16638 point in VSX registers.
16640 * config/rs6000/constraints.md (wb constraint): Document unused
16642 (we constraint): Likewise.
16643 (wo constraint): Likewise.
16644 (wp constraint): New constraint for IEEE 128-bit floating point in
16646 (wq constraint): Likewise.
16648 * config/rs6000/predicates.md (easy_fp_constant): Add support for
16649 IEEE 128-bit floating point in VSX registers.
16650 (easy_scalar_constant): Likewise.
16652 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
16653 constraints (wp, wq) for IEEE 128-bit floating point in VSX
16655 (rs6000_init_hard_regno_mode_ok): Likewise.
16657 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
16658 floating point in VSX registers.
16661 (VSX_M2): Likewise.
16667 (vsx_le_permute_<mode>): Add support to properly swap bytes for
16668 IEEE 128-bit floating point in VSX registers on little endian.
16669 (vsx_le_undo_permute_<mode>): Likewise.
16670 (vsx_le_perm_load_<mode>): Likewise.
16671 (vsx_le_perm_store_<mode>): Likewise.
16672 (splitters for IEEE 128-bit fp moves): Likewise.
16674 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
16677 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
16678 floating point in VSX registers.
16681 * doc/md.text (Machine Constraints): Document wp and wq
16682 constraints on PowerPC.
16684 2015-08-03 Jeff Law <law@redhat.com>
16686 PR middle-end/66314
16687 PR gcov-profile/66899
16688 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
16689 iterate over the jump threading paths when an element in the
16690 jump threading paths array is eliminated.
16692 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
16694 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
16696 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
16698 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
16699 is_use_properly_guarded the variable def_preds. Free its
16700 contents before returning.
16701 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
16702 (is_use_properly_guarded): Replace local variable def_preds with
16703 a parameter. Adjust accordingly. Only update *def_preds if it's
16706 2015-08-03 Richard Biener <rguenther@suse.de>
16708 * genmatch.c (simplify::for_subst_vec): New member.
16709 (binary_ok): New helper for for lowering.
16710 (lower_for): Delay substituting operators into result expressions
16711 if we can merge the results eventually again.
16712 (capture_info::walk_result): Adjust for user_id appearing as
16713 result expression operator.
16714 (expr::gen_transform): Likewise.
16715 (dt_simplify::gen_1): Likewise.
16716 (dt_simplify::gen): Pass not substituted operators to tail
16717 functions or initialize local variable with it.
16718 (decision_tree::gen): Adjust function signature.
16719 * match.pd: Fix tests against global code and add default
16720 cases to switch stmts.
16722 2015-08-03 Richard Biener <rguenther@suse.de>
16724 * genmatch.c (dt_simplify::gen): Create captures array
16725 with an initializer.
16727 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16729 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
16730 the host compiler is affected by placement new aliasing bug.
16731 * configure: Regenerate.
16732 * Makefile.in (ALIASING_FLAGS): New variable.
16733 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
16735 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16738 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
16739 (negmulsf3_vfp): Likewise.
16740 (muldf3negdf_vfp): Disable for -frounding-math.
16741 (mulsf3negsf_vfp): Likewise.
16742 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
16743 fix MULT cost with -frounding-math.
16745 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16747 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
16748 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
16749 explicit. Prefer to add the flag whenever possible.
16750 (noce_process_if_block): Try noce_try_store_flag_constants before
16753 2015-08-03 Richard Biener <rguenther@suse.de>
16755 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
16756 New hash-map to record equivalent transforms.
16757 (dt_node::analyze): Populate the equivalent transforms hash-map.
16758 (dt_simplify::info): Add reference to hash-map entry.
16759 (dt_simplify::gen): If we have split out a function for the
16760 transform, generate a call to it.
16761 (sinfo_hashmap_traits::hash): New function.
16762 (compare_op): New helper function for ...
16763 (sinfo_hashmap_traits::equal_keys): ... this new function.
16764 (decision_tree::gen): Split out common equivalent transforms
16767 2015-08-03 Richard Biener <rguenther@suse.de>
16769 * gimple-fold.c (fold_gimple_assign): Remove folding of
16770 the comparison in COND_EXPRs.
16772 2015-08-03 Richard Biener <rguenther@suse.de>
16774 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
16775 on the rhs of assignments first simplify the embedded
16778 2015-08-03 Richard Biener <rguenther@suse.de>
16780 PR tree-optimization/66917
16781 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
16783 (DR_VECT_AUX): New macro.
16784 (set_dr_misalignment): Adjust.
16785 (dr_misalignment): Likewise.
16786 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16787 Compute whether the base is at least element aligned.
16788 * tree-vect-stmts.c (ensure_base_align): Adjust.
16789 (vectorizable_store): If the base is not element aligned
16790 preserve alignment of the original access if misalignment is unknown.
16791 (vectorizable_load): Likewise.
16793 2015-08-02 Martin Sebor <msebor@redhat.com>
16795 * c-family/c.opt (-Wframe-address): New warning option.
16796 * doc/invoke.texi (Wframe-address): Document it.
16797 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
16798 Clarify possible effects of calling the functions with non-zero
16799 arguments and mention -Wframe-address.
16800 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
16802 2015-08-01 Michael Collison <michael.collison@linaro.org
16803 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16805 * config/arm/arm.md (*arm_smin_cmp): New pattern.
16806 (*arm_umin_cmp): Likewise.
16808 2015-08-01 Caroline Tice <cmtice@google.com>
16811 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
16813 (vtbl_find_mangled_name): New function.
16814 (vtbl_register_mangled_name): New function.
16815 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
16816 mangled name in mangled name vectors.
16817 (find_or_create_vtbl_map_node): Ditto.
16818 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
16819 update recursion_depth on function entry; pass it to every recursive
16820 call; automatically exit if depth > 25 (give up looking at that point).
16821 (verify_bb_vtables): Initialize recursion_depth and pass it to
16822 var_is_used_for_virtual_call_p.
16823 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
16824 global variable decls.
16825 (vtbl_register_mangled_name): New extern function decl.
16827 2015-08-01 Tom de Vries <tom@codesourcery.com>
16829 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
16831 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
16833 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
16834 operation_no_trapping_overflow. Allow non-overflow operations.
16835 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
16838 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
16841 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
16843 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16845 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
16846 Enable for TARGET_32BIT.
16847 (*if_move_neg): Likewise.
16849 2015-07-31 Nick Clifton <nickc@redhat.com>
16851 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
16852 Returns true for __model__.
16853 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
16855 2015-07-31 Alan Modra <amodra@gmail.com>
16858 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
16859 (rs6000_emit_prologue): Set it.
16860 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
16862 2015-07-31 Richard Biener <rguenther@suse.de>
16864 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
16865 -> X == (C1 ^ C2) which is already implemented in match.pd.
16866 Remove redundant dispatching to fold_relational_const.
16867 Move unordered self and NaN compares ...
16868 * match.pd: ... as patterns here. Remove some stray captures
16871 2015-07-31 Petr Murzin <petr.murzin@intel.com>
16873 * config/i386/i386.c
16874 (bdesc_special_args): Convert mask type from signed to unsigned for
16876 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
16877 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
16878 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
16879 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
16880 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
16881 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
16882 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
16883 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
16884 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
16885 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
16886 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
16887 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
16888 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
16889 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
16890 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
16891 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
16892 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
16893 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
16894 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
16895 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
16896 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
16897 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
16898 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
16899 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
16900 * config/i386/i386-builtin-types.def
16901 (V16QI_FTYPE_V16SI): Remove.
16902 (V8DF_FTYPE_V8SI): Ditto.
16903 (V8HI_FTYPE_V8DI): Ditto.
16904 (V8SI_FTYPE_V8DI): Ditto.
16905 (V8SF_FTYPE_V8DF): Ditto.
16906 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
16907 (V16HI_FTYPE_V16SI): Ditto.
16908 (V16SF_FTYPE_V16HI): Ditto.
16909 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
16910 (V16SF_FTYPE_V16SI): Ditto.
16911 (V4DI_FTYPE_V4DI): Ditto.
16912 (V16SI_FTYPE_V16SF): Ditto.
16913 (V16SF_FTYPE_FLOAT): Ditto.
16914 (V8DF_FTYPE_DOUBLE): Ditto.
16915 (V8DI_FTYPE_INT64): Ditto.
16916 (V8DI_FTYPE_V4DI): Ditto.
16917 (V16QI_FTYPE_V8DI): Ditto.
16918 (UINT_FTYPE_V4SF): Ditto.
16919 (UINT64_FTYPE_V4SF): Ditto.
16920 (UINT_FTYPE_V2DF): Ditto.
16921 (UINT64_FTYPE_V2DF): Ditto.
16922 (V16SI_FTYPE_V16SI): Ditto.
16923 (V8DI_FTYPE_V8DI): Ditto.
16924 (V16SI_FTYPE_PV4SI): Ditto.
16925 (V16SF_FTYPE_PV4SF): Ditto.
16926 (V8DI_FTYPE_PV2DI): Ditto.
16927 (V8DF_FTYPE_PV2DF): Ditto.
16928 (V4DI_FTYPE_PV2DI): Ditto.
16929 (V4DF_FTYPE_PV2DF): Ditto.
16930 (V16SI_FTYPE_PV2SI): Ditto.
16931 (V16SF_FTYPE_PV2SF): Ditto.
16932 (V8DI_FTYPE_PV4DI): Ditto.
16933 (V8DF_FTYPE_PV4DF): Ditto.
16934 (V8SF_FTYPE_FLOAT): Ditto.
16935 (V4SF_FTYPE_FLOAT): Ditto.
16936 (V4DF_FTYPE_DOUBLE): Ditto.
16937 (V8SF_FTYPE_PV4SF): Ditto.
16938 (V8SI_FTYPE_PV4SI): Ditto.
16939 (V4SI_FTYPE_PV2SI): Ditto.
16940 (V8SF_FTYPE_PV2SF): Ditto.
16941 (V8SI_FTYPE_PV2SI): Ditto.
16942 (V16SF_FTYPE_PV8SF): Ditto.
16943 (V16SI_FTYPE_PV8SI): Ditto.
16944 (V8DI_FTYPE_V8SF): Ditto.
16945 (V4DI_FTYPE_V4SF): Ditto.
16946 (V2DI_FTYPE_V4SF): Ditto.
16947 (V64QI_FTYPE_QI): Ditto.
16948 (V32HI_FTYPE_HI): Ditto.
16949 (V8UHI_FTYPE_V8UHI): Ditto.
16950 (V16UHI_FTYPE_V16UHI): Ditto.
16951 (V32UHI_FTYPE_V32UHI): Ditto.
16952 (V2UDI_FTYPE_V2UDI): Ditto.
16953 (V4UDI_FTYPE_V4UDI): Ditto.
16954 (V8UDI_FTYPE_V8UDI): Ditto.
16955 (V4USI_FTYPE_V4USI): Ditto.
16956 (V8USI_FTYPE_V8USI): Ditto.
16957 (V16USI_FTYPE_V16USI): Ditto.
16958 (V2DF_FTYPE_V2DF_UINT64): Ditto.
16959 (V2DI_FTYPE_V2DF_V2DF): Ditto.
16960 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
16961 (V8DF_FTYPE_V8DF_V8DI): Ditto.
16962 (V4SF_FTYPE_V4SF_UINT64): Ditto.
16963 (V4SI_FTYPE_V4SF_V4SF): Ditto.
16964 (V16SF_FTYPE_V16SF_V16SI): Ditto.
16965 (V64QI_FTYPE_V32HI_V32HI): Ditto.
16966 (V32HI_FTYPE_V16SI_V16SI): Ditto.
16967 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
16968 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
16969 (V32HI_FTYPE_V64QI_V64QI): Ditto.
16970 (V32HI_FTYPE_V32HI_V32HI): Ditto.
16971 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
16972 (V16SI_FTYPE_V16SI_V4SI): Ditto.
16973 (V16SI_FTYPE_V16SI_V16SI): Ditto.
16974 (V16SI_FTYPE_V32HI_V32HI): Ditto.
16975 (V16SI_FTYPE_V16SI_SI): Ditto.
16976 (V8DI_FTYPE_V8DI_V8DI): Ditto.
16977 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
16978 (V8DI_FTYPE_V16SI_V16SI): Ditto.
16979 (V8DI_FTYPE_V8DI_V2DI): Ditto.
16980 (QI_FTYPE_QI): Ditto.
16981 (SI_FTYPE_SI): Ditto.
16982 (DI_FTYPE_DI): Ditto.
16983 (QI_FTYPE_QI_QI): Ditto.
16984 (QI_FTYPE_QI_INT): Ditto.
16985 (HI_FTYPE_HI_INT): Ditto.
16986 (SI_FTYPE_SI_INT): Ditto.
16987 (DI_FTYPE_DI_INT): Ditto.
16988 (HI_FTYPE_V16QI_V16QI): Ditto.
16989 (SI_FTYPE_V32QI_V32QI): Ditto.
16990 (DI_FTYPE_V64QI_V64QI): Ditto.
16991 (QI_FTYPE_V8HI_V8HI): Ditto.
16992 (HI_FTYPE_V16HI_V16HI): Ditto.
16993 (SI_FTYPE_V32HI_V32HI): Ditto.
16994 (QI_FTYPE_V4SI_V4SI): Ditto.
16995 (QI_FTYPE_V8SI_V8SI): Ditto.
16996 (QI_FTYPE_V2DI_V2DI): Ditto.
16997 (QI_FTYPE_V4DI_V4DI): Ditto.
16998 (QI_FTYPE_V8DI_V8DI): Ditto.
16999 (HI_FTYPE_V16SI_V16SI): Ditto.
17000 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
17001 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
17002 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
17003 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
17004 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
17005 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
17006 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
17007 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
17008 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
17009 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
17010 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
17011 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
17012 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
17013 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
17014 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
17015 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
17016 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
17017 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
17018 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
17019 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
17020 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
17021 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
17022 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
17023 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
17024 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
17025 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
17026 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
17027 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
17028 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
17029 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
17030 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
17031 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
17032 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
17033 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
17034 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
17035 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
17036 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
17037 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
17038 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
17039 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
17040 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
17041 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
17042 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
17043 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
17044 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
17045 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
17046 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
17047 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
17048 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
17049 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
17050 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
17051 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
17052 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
17053 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
17054 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
17055 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
17056 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
17057 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
17058 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
17059 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
17060 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
17061 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
17062 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
17063 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
17064 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
17065 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
17066 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
17067 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
17068 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
17069 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
17070 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
17071 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
17072 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
17073 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
17074 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
17075 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
17076 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
17077 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
17078 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
17079 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
17080 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
17081 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
17082 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
17083 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
17084 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
17085 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
17086 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
17087 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
17088 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
17089 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
17090 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
17091 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
17092 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
17093 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
17094 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
17095 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
17096 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
17097 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
17098 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
17099 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
17100 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
17101 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
17102 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
17103 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
17104 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
17105 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
17106 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
17107 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
17108 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
17109 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
17110 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
17111 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
17112 (HI_FTYPE_HI): Ditto.
17113 (HI_FTYPE_V16QI): Ditto.
17114 (SI_FTYPE_V32QI): Ditto.
17115 (DI_FTYPE_V64QI): Ditto.
17116 (QI_FTYPE_V8HI): Ditto.
17117 (HI_FTYPE_V16HI): Ditto.
17118 (SI_FTYPE_V32HI): Ditto.
17119 (QI_FTYPE_V4SI): Ditto.
17120 (QI_FTYPE_V8SI): Ditto.
17121 (HI_FTYPE_V16SI): Ditto.
17122 (QI_FTYPE_V2DI): Ditto.
17123 (QI_FTYPE_V4DI): Ditto.
17124 (QI_FTYPE_V8DI): Ditto.
17125 (V16QI_FTYPE_HI): Ditto.
17126 (V32QI_FTYPE_SI): Ditto.
17127 (V64QI_FTYPE_DI): Ditto.
17128 (V8HI_FTYPE_QI): Ditto.
17129 (V16HI_FTYPE_HI): Ditto.
17130 (V32HI_FTYPE_SI): Ditto.
17131 (V4SI_FTYPE_QI): Ditto.
17132 (V4SI_FTYPE_HI): Ditto.
17133 (V8SI_FTYPE_QI): Ditto.
17134 (V8SI_FTYPE_HI): Ditto.
17135 (V2DI_FTYPE_QI): Ditto.
17136 (V4DI_FTYPE_QI): Ditto.
17137 (HI_FTYPE_HI_HI): Ditto.
17138 (SI_FTYPE_SI_SI): Ditto.
17139 (DI_FTYPE_DI_DI): Ditto.
17140 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
17141 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
17142 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
17143 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
17144 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
17145 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
17146 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
17147 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
17148 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
17149 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
17150 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
17151 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
17152 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
17153 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
17154 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
17155 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
17156 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
17157 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
17158 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
17159 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
17160 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
17161 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
17162 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
17163 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
17164 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
17165 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
17166 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
17167 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
17168 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
17169 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
17170 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
17171 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
17172 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
17173 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
17174 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
17175 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
17176 (V16SI_FTYPE_HI): Ditto.
17177 (V8DI_FTYPE_QI): Ditto.
17178 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
17179 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
17180 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
17181 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
17182 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
17183 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
17184 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
17185 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
17186 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
17187 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
17188 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
17189 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
17190 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
17191 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
17192 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
17193 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
17194 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
17195 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
17196 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
17197 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
17198 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
17199 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
17200 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
17201 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
17202 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
17203 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
17204 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
17205 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
17206 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
17207 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
17208 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
17209 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
17210 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
17211 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
17212 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
17213 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
17214 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
17215 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
17216 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
17217 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
17218 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
17219 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
17220 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
17221 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
17222 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
17223 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
17224 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
17225 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
17226 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
17227 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
17228 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
17229 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
17230 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
17231 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
17232 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
17233 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
17234 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
17235 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
17236 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
17237 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
17238 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
17239 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
17240 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
17241 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
17242 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
17243 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
17244 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
17245 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
17246 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
17247 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
17248 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
17249 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
17250 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
17251 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
17252 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
17253 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
17254 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
17255 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
17256 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
17257 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
17258 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
17259 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
17260 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
17261 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
17262 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
17263 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
17264 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
17265 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
17266 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
17267 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
17268 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
17269 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
17270 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
17271 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
17272 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
17273 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
17274 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
17275 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
17276 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
17277 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
17278 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
17279 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
17280 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
17281 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
17282 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
17283 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
17284 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
17285 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
17286 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
17287 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
17288 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
17289 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
17290 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
17291 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
17292 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
17293 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
17294 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
17295 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
17296 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
17297 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
17298 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
17299 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
17300 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
17301 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
17302 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
17303 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
17304 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
17305 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
17306 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
17307 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
17308 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
17309 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
17310 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
17311 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
17312 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
17313 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
17314 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
17315 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
17316 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
17317 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
17318 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
17319 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
17320 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
17321 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
17322 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
17323 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
17324 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
17325 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
17326 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
17327 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
17328 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
17329 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
17330 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
17331 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
17332 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
17333 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
17334 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
17335 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
17336 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
17337 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
17338 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
17339 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
17340 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
17341 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
17342 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
17343 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
17344 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
17345 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
17346 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
17347 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
17348 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
17349 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
17350 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
17351 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
17352 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
17353 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
17354 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
17355 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
17356 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
17357 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
17358 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
17359 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
17360 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
17361 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
17362 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
17363 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
17364 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
17365 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
17366 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
17367 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
17368 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
17369 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
17370 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
17371 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
17372 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
17373 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
17374 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
17375 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
17376 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
17377 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
17378 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
17379 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
17380 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
17381 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
17382 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
17383 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
17384 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
17385 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
17386 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
17387 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
17388 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
17389 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
17390 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
17391 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
17392 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
17393 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
17394 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
17395 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
17396 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
17397 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
17398 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
17399 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
17400 (QI_FTYPE_V8DF_INT_QI): Ditto.
17401 (QI_FTYPE_V4DF_INT_QI): Ditto.
17402 (QI_FTYPE_V2DF_INT_QI): Ditto.
17403 (HI_FTYPE_V16SF_INT_HI): Ditto.
17404 (QI_FTYPE_V8SF_INT_QI): Ditto.
17405 (QI_FTYPE_V4SF_INT_QI): Ditto.
17406 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
17408 2015-07-31 Richard Biener <rguenther@suse.de>
17410 * gimple-fold.c (fold_gimple_assign): Remove folding of
17413 2015-07-31 Tom de Vries <tom@codesourcery.com>
17415 PR tree-optimization/66846
17416 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
17417 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
17418 (expand_omp_target) [ENABLE_CHECKING]: Same.
17419 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
17420 cfun if !LOOPS_NEED_FIXUP.
17421 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
17422 that omp_for already has its own loop struct.
17423 * tree-parloops.c (create_phi_for_local_result)
17424 (create_call_for_reduction): Handle simple latch bb.
17425 (create_parallel_loop): Add simple latch bb to preserve
17426 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
17427 (gen_parallel_loop): Remove call to cancel_loop_tree.
17428 (parallelize_loops): Skip loops that are inner loops of parallelized
17430 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
17431 verify_loop_structure.
17433 2015-07-30 Anatoly Sokolov <aesok@post.ru>
17435 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
17436 * config/v850/v850.md (RV_REGNUM): New constants.
17437 * config/v850/v850.c (v850_libcall_value): New functions.
17438 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
17439 (TARGET_LIBCALL_VALUE): Define.
17441 2015-07-30 Anatoly Sokolov <aesok@post.ru>
17443 * rtl.h (lowpart_subreg): Move in file.
17444 * loop-iv.c (lowpart_subreg): Move to...
17445 * simplify-rtx.c (lowpart_subreg): ...here.
17446 (simplify_binary_operation_1): Use lowpart_subreg instead of
17447 simplify_gen_subreg.
17448 * expr.c (expand_expr_real_2): Ditto.
17449 * emit-rtl.c (gen_lowpart_common): Ditto.
17450 * combine.c (gen_lowpart_for_combine): Ditto.
17451 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
17452 expand_debug_source_expr): Ditto.
17454 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
17456 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
17457 (expand_builtin_atomic_clear): Remove support for atomic_clear
17460 2015-07-30 Richard Biener <rguenther@suse.de>
17462 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
17463 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
17464 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
17465 redundant operand canonicalization.
17467 2015-07-30 David Sherwood <david.sherwood@arm.com>
17469 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
17470 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
17471 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
17472 * config/arm/arm.c (neon_valid_immediate): Likewise.
17473 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
17474 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
17475 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
17476 (expand_vec_perm_vpshufb2_vpermq): Likewise.
17477 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
17478 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
17479 * config/i386/sse.md
17480 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
17481 (*ssse3_palignr<mode>_perm): Likewise.
17482 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
17483 * config/spu/spu.c (arith_immediate_p): Likewise.
17484 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17485 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
17487 2015-07-30 Richard Biener <rguenther@suse.de>
17489 * genmatch.c (decision_tree::gen_gimple): Merge with ...
17490 (decision_tree::gen_generic): ... this into ...
17491 (decision_tree::gen): ... this.
17492 (main): Adjust callers.
17494 2015-07-30 Richard Biener <rguenther@suse.de>
17496 * genmatch.c (verbose): New global.
17497 (warning_at): Add overload with source_location.
17498 (capture_info::capture_info): Add bool whether generating gimple
17499 or generic. Add gimple member.
17500 (capture_info::cinfo): Add capture member.
17501 (capture_info::walk_match): Record capture. Warn on
17502 non-captured leafs.
17503 (capture_info::walk_c_expr): Add more fragments captures cannot
17504 escape through. Warn on escaped captures.
17505 (dt_simplify::gen_1): Warn on operands we force to have no
17507 (main): Initialize verbose.
17508 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
17510 2015-07-30 Richard Biener <rguenther@suse.de>
17512 PR middle-end/67053
17513 * match.pd: Allow both operands to independently have conversion
17514 when simplifying compares of addresses.
17516 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
17520 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
17521 around those cases that need one.
17523 2015-07-29 Aditya Kumar <hiraditya@msn.com>
17525 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
17527 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
17529 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
17530 New. Copied from config/i386/gnu-user.h.
17531 (ASM_COMMENT_START): Likewise.
17532 (DBX_REGISTER_NUMBER): Likewise.
17534 2015-07-29 Richard Biener <rguenther@suse.de>
17536 * gimple-fold.c (fold_gimple_cond): Remove.
17537 (fold_stmt_1): Do not call it.
17539 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
17541 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
17542 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
17544 * config/aarch64/aarch64-modes.def: Add HFmode.
17546 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17547 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
17549 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
17550 aarch64_promoted_type): New.
17552 (aarch64_float_const_representable_p): Disable HFmode.
17553 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
17554 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
17555 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
17557 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
17558 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
17560 * config/aarch64/iterators.md (GPF_F16): New.
17562 2015-07-29 Richard Biener <rguenther@suse.de>
17564 * match.pd: Merge address comparison patterns and make them
17565 handle some more cases.
17567 2015-07-29 Richard Biener <rguenther@suse.de>
17569 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
17570 (parser::parse_capture): Add bool argument on whether to reject
17572 (parser::parse_expr): Adjust.
17573 (parser::parse_op): Likewise.
17574 (parser::parse_pattern): Likewise.
17576 2015-07-29 Richard Biener <rguenther@suse.de>
17578 * gimple-fold.c (has_use_on_stmt): New function.
17579 (replace_stmt_with_simplification): Use it to allow
17580 abnormals originally referenced in the stmt.
17581 (fold_stmt_1): Canonicalize operand order.
17583 2015-07-28 David Sherwood <david.sherwood@arm.com>
17585 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
17586 GET_MODE_INNER unconditionally.
17587 * config/spu/spu.c (arith_immediate_p): Likewise.
17588 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
17589 * expmed.c (synth_mult): Remove check for VOIDmode result from
17591 (expand_mult_const): Likewise.
17592 * fold-const.c (fold_binary_loc): Replace call to element_precision
17593 with call to GET_MODE_PRECISION.
17594 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
17596 (emit_mode_inner): Likewise.
17597 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
17599 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
17600 (GET_MODE_UNIT_PRECISION): Likewise.
17601 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
17602 * simplify-rtx.c (simplify_immed_subreg): Likewise.
17603 * stor-layout.c (bitwise_type_for_mode): Update assert.
17604 (element_precision): Remove.
17606 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17608 * target-insns.def (reload_load_address): New targetm instruction
17610 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
17612 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17614 * target-insns.def (atomic_test_and_set): New targetm instruction
17616 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
17617 HAVE_*/gen_* interface.
17619 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17621 * target-insns.def (can_extend, ptr_extend): New targetm instruction
17623 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
17624 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
17625 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
17626 * rtlanal.c (nonzero_bits1): Likewise.
17627 (num_sign_bit_copies1): Likewise.
17629 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17631 * target-insns.def (eh_return): New targetm instruction pattern.
17632 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
17634 * function.c (thread_prologue_and_epilogue_insns): Remove
17635 preprocessor condition.
17637 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17639 * target-insns.def (indirect_jump): New targetm instruction pattern.
17640 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
17643 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17645 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
17646 instead of nonimmediate_operand. Remove C condiition.
17648 2015-07-28 Richard Biener <rguenther@suse.de>
17650 * match.pd: Add more simplification of address comparisons.
17652 2015-07-28 Richard Biener <rguenther@suse.de>
17654 * match.pd: Re-order two cases in comparison with max/min
17655 value simplification to make it apply for bools.
17657 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17659 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
17660 Handle simple SIGN_EXTEND or ZERO_EXTEND.
17661 (aarch64_rtx_costs): Properly strip extend or extract before
17662 passing down to rtx costs again.
17664 2015-07-28 Nick Clifton <nickc@redhat.com>
17666 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
17667 Optimizes the case where -mes0 is active and a constant symbolic
17669 * config/rl78/rl78-protos.h: Prototype the new function.
17670 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
17672 2015-07-28 Tom de Vries <tom@codesourcery.com>
17674 * tree-parloops.c (reduc_stmt_res): New function.
17675 (initialize_reductions, add_field_for_reduction)
17676 (create_phi_for_local_result, create_loads_for_reductions)
17677 (create_stores_for_reduction, build_new_reduction): Handle case that
17678 reduc_stmt is a phi.
17679 (gather_scalar_reductions): Allow double_reduc reductions.
17681 2015-07-28 Richard Biener <rguenther@suse.de>
17683 * fold-const.c (fold_comparison): Remove equality folding
17684 of decl addresses ...
17685 * match.pd: ... here and merge with existing pattern.
17687 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
17689 PR tree-optimization/66828
17690 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
17691 from int64_t to uint64_t.
17693 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
17695 * opts-common.c (read_cmdline_option): List DriverOnly enum values
17696 as valid only in the error message of the driver, not in the
17697 messages of the language compilers.
17699 2015-07-27 Tom de Vries <tom@codesourcery.com>
17701 * tree-parloops.c (gather_scalar_reductions): Simplify function
17704 2015-07-27 Marek Polacek <polacek@redhat.com>
17706 * ipa-devirt.c (types_same_for_odr): Fix typo.
17708 2015-07-27 Jason Merrill <jason@redhat.com>
17711 * dwarf2out.c (gen_inlined_subroutine_die): Check
17712 cgraph_function_possibly_inlined_p.
17714 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
17716 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
17717 Place integer variant first.
17718 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17720 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
17723 * config/arm/arm-builtins.c (enum arm_builtins):
17724 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
17725 (ARM_BUILTIN_NEON_BASE): Rename macro to....
17726 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
17727 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
17728 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
17730 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
17733 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
17734 Add qualifier_lane_index.
17735 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
17736 (arm_getlane_qualifiers): Use qualifier_lane_index.
17737 (arm_lanemac_qualifiers): Rename to...
17738 (arm_mac_n_qualifiers): ...this.
17739 (LANEMAC_QUALIFIERS): Rename to...
17740 (MAC_N_QUALIFIERS): ...this.
17741 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
17742 (arm_setlane_qualifiers): Use qualifier_lane_index.
17743 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
17744 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
17745 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
17746 (arm_expand_neon_builtin): Handle qualifier_lane_index.
17748 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
17749 * config/arm/arm.c (bounds_check): Likewise, improve error message.
17750 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
17751 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
17752 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
17753 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
17754 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
17755 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
17756 qualifiers to TERNOP_IMM.
17757 (vdup_lane): Change qualifiers to GETLANE.
17758 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
17759 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
17760 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
17761 vqdmlsl_n): Change qualifiers to MAC_N.
17763 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
17764 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
17765 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
17766 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
17767 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
17768 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
17769 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
17770 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
17771 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
17772 Remove call to neon_lane_bounds.
17774 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
17776 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
17777 Place integer variant first.
17779 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
17781 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
17782 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
17783 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
17784 for armv6kz targets.
17785 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
17786 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
17787 (FL_FOR_ARCH6ZK): Remove.
17788 (FL_FOR_ARCH6KZ): New.
17789 (arm_arch6zk): New declaration.
17790 * config/arm/arm-tables.opt: Regenerate.
17791 * config/arm/arm.c (arm_arch6kz): New.
17792 (arm_option_override): Set arm_arch6kz.
17793 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
17794 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
17795 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
17797 2015-07-27 Marek Polacek <polacek@redhat.com>
17801 * doc/invoke.texi: Document -Wtautological-compare.
17803 2015-07-27 Richard Biener <rguenther@suse.de>
17805 * genmatch.c (decision_tree::gen_gimple): Split out large
17806 subtrees into separate functions.
17807 (decision_tree::gen_generic): Likewise.
17809 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
17811 * config/alpha/alpha.c: Use SUBREG_P predicate.
17812 * config/alpha/predicates.md: Ditto.
17814 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
17816 * config.host (s390*-*-*): Include driver-native.c only when
17817 building with s390* as host *and* target.
17819 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
17822 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
17823 T bit register modified_between_p check.
17825 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17827 * config/i386/i386.c: Use SUBREG_P predicate.
17828 * config/i386/i386.md: Ditto.
17829 * config/i386/sse.md: Ditto.
17830 * config/i386/predicates.md: Ditto.
17832 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17835 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
17836 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
17838 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17840 * Makefile.in: Remove use of TREEBROWSER.
17841 * config.in: Regenerated.
17842 * configure: Regenerated.
17843 * configure.ac: Remove definition of TREEBROWSER.
17844 * tree-browser.c: Removed.
17845 * tree-browser.def: Removed.
17847 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17849 * graphite-scop-detection.c: Include gimple-pretty-print.h.
17850 (stmt_simple_for_scop_p): Print when a stmt is not handled in
17852 (scopdet_basic_block_info): Print when a loop or bb cannot be
17853 represented in Graphite.
17855 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17858 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
17859 execution guard when min_size is less than size_needed.
17861 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17863 * doc/install.texi: Document supported versions of ISL.
17865 2015-07-25 Jeff Law <law@redhat.com>
17869 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17870 unable to find X NE 0 in the tables, return X as the simplified
17872 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17873 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17874 to VISISTED_BBS. */
17875 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17876 after removing the control flow statement and unnecessary edges.
17878 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
17881 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
17883 PR rtl-optimization/64164
17884 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17885 * tree-ssa-copyrename.c: Removed.
17886 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17887 -ftree-coalesce-vars.
17888 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17889 * common.opt (ftree-copyrename): Ignore.
17890 (ftree-coalesce-inlined-vars): Likewise.
17891 * doc/invoke.texi: Remove the ignored options above.
17892 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17893 * tree-ssa-coalesce.h: ... here.
17894 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17895 headers required by it.
17896 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17897 across variables when flag_tree_coalesce_vars. Check register
17898 use and promoted modes to allow coalescing. Moved to
17899 tree-ssa-coalesce.c.
17900 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17901 with its member functions to tree-ssa-coalesce.c.
17902 (var_map_base_init): Likewise. Renamed to
17903 compute_samebase_partition_bases.
17904 (partition_view_normal): Drop want_bases parameter.
17905 (partition_view_bitmap): Likewise.
17906 * tree-ssa-live.h: Adjust declarations.
17907 * tree-ssa-coalesce.c: Include explow.h.
17908 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17909 default defs at the entry point.
17910 (dump_part_var_map): New.
17911 (compute_optimized_partition_bases): New, called by...
17912 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17913 of compute_samebase_partition_bases. Adjust.
17914 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17915 * cfgexpand.c (leader_merge): New.
17916 (get_rtl_for_parm_ssa_default_def): New.
17917 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17918 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17919 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17920 redundant MEM attr setting.
17921 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17923 (expand_one_stack_var): ... this. New wrapper to check and
17924 skip already expanded SSA partitions.
17925 (record_alignment_for_reg_var): New, factored out of...
17926 (expand_one_var): ... this.
17927 (expand_one_ssa_partition): New.
17928 (adjust_one_expanded_partition_var): New.
17929 (expand_one_register_var): Check and skip already expanded SSA
17931 (expand_used_vars): Don't create DECLs for anonymous SSA
17932 names. Expand all SSA partitions, then adjust all SSA names.
17933 (pass::execute): Replace the loops that set
17934 SA.partition_to_pseudo from partition leaders and cleared
17935 DECL_RTL for multi-location variables, and that which used to
17936 rename vars and set attrs, with one that clears DECL_RTL and
17937 checks that PARMs and RESULTs default_defs match DECL_RTL.
17938 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17939 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17940 * explow.c (promote_ssa_mode): New.
17941 * explow.h (promote_ssa_mode): Declare.
17942 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17943 * function.c: Include cfgexpand.h.
17944 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17945 (use_register_for_parm_decl): Wrapper for the above to
17946 special-case the result_ptr.
17947 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17948 (split_complex_args): Take assign_parm_data_all argument.
17949 Pass it to rtl_for_parm. Set up rtl and context for split
17951 (assign_parms_augmented_arg_list): Adjust.
17952 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17953 multiple locations. Recognize split complex args.
17954 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17955 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17956 (assign_parm_setup_block): Prefer SSA-assigned location.
17957 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17958 if stack_parm is NULL.
17959 (assign_parm_setup_stack): Prefer SSA-assigned location.
17960 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17961 rtl before testing for pointer bounds. Special-case result_ptr.
17962 (expand_function_start): Maybe reset DECL_RTL of result.
17963 Prefer SSA-assigned location for result and static chain.
17964 Factor out DECL_RESULT and SET_DECL_RTL.
17965 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17966 anonymous SSA names. Use promote_ssa_mode.
17967 (get_temp_reg): Likewise.
17968 (remove_ssa_form): Adjust.
17969 * stor-layout.c (layout_decl): Don't set mem attributes of
17971 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17972 and get its reg_usage for reg invalidation.
17973 (compute_bb_dataflow): Pass it insn.
17974 (emit_notes_in_bb): Likewise.
17976 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17978 * config/i386/i386.c (ix86_va_start): Remove
17979 unneeded !TARGET_64BIT check.
17980 (ix86_gimplify_va_arg): Ditto.
17982 2015-07-24 Tom de Vries <tom@codesourcery.com>
17984 * graphite-sese-to-poly.c (build_poly_scop): Always call
17985 rewrite_commutative_reductions_out_of_ssa.
17987 2015-07-24 Tom de Vries <tom@codesourcery.com>
17989 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
17990 flag_associative_math to FLOAT_TYPE_P. Honour
17991 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
17993 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
17996 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
17997 and "%qD" in warning_at instead of "%q+D" in warning.
17999 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
18001 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
18002 (ix86_function_abi): Cleanup.
18004 2015-07-24 Michael Darling <darlingm@gmail.com>
18007 * acinclude.m4: Reflects renaming of configure.in to configure.ac
18008 * configure: Likewise
18009 * configure.ac: Likewise
18010 * doc/install.texi: Likewise
18011 * doc/tm.texi: Likewise
18012 * doc/tm.texi.in: Likewise
18014 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18016 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
18017 manually swapping values.
18018 * cse.c (fold_rtx): Likewise.
18019 * lra-eliminations.c (form_sum): Likewise.
18021 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
18024 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
18025 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
18026 (*jcc_1, *jcc_2, jump, simple_return_internal)
18027 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
18028 Set length_nobnd attribute instead of length attribute.
18029 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
18030 (length_nobnd): Remove attribute.
18031 (length): Remove length_nobnd processing.
18033 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
18035 * gimplify.c (omp_default_clause): New function. Reorganize flow
18036 for clarity. Broken out of ...
18037 (omp_notice_variable): ... here.
18039 2015-07-24 Gary Funck <gary@intrepid.com>
18041 PR middle-end/66984
18042 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
18043 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
18045 2015-07-24 Tom de Vries <tom@codesourcery.com>
18047 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
18048 exit-first loop transform.
18050 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
18053 * tree-cfg.c (struct replace_decls_d): New struct.
18054 (replace_block_vars_by_duplicates_1): New function.
18055 (replace_block_vars_by_duplicates): Use it to replace the decls
18056 in the value exprs by duplicates.
18058 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18060 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
18061 -shared, -symbolic, -rdynamic.
18063 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18066 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
18067 -dynamic-linker within %{!static %{!shared, and -rdynamic within
18070 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
18073 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
18074 edge summary is available.
18076 2015-07-24 Richard Biener <rguenther@suse.de>
18078 * genmatch.c (struct dt_node): Add statistic fields.
18079 (dt_node::analyze): New method.
18080 (decision_tree::gen_gimple): Call analyze on the root node
18081 and print statistics to stderr.
18082 (decision_tree::gen_generic): Likewise.
18084 2015-07-24 Richard Biener <rguenther@suse.de>
18086 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
18087 against the highest or lowest possible integer ...
18088 * match.pd: ... as patterns here.
18090 2015-07-24 Richard Biener <rguenther@suse.de>
18092 * genmatch.c (struct capture_info): Add same_as field.
18093 (capture_info::capture_info): Initialize same_as.
18094 (capture_info::walk_match): Compute same_as.
18095 (capture_info::walk_result): Compute stuff for the leader.
18096 (capture_info::walk_c_expr): Likewise.
18097 (dt_simplify::gen_1): Only look at leaders when deciding
18098 to force no side-effects or emit side-effects of omitted operands.
18100 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18102 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
18103 reg note to the GPR -> FPR save instructions.
18105 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18107 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
18109 (s390_expand_insv): Don't generate risbg pattern for constant zero
18111 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
18112 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
18115 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18117 * config/s390/s390.c (s390_reorg): Clean up handling of processors
18120 (s390_issue_rate): Likewise.
18121 (s390_sched_reorder): Likewise.
18122 (s390_sched_variable_issue): Likewise.
18123 (s390_loop_unroll_adjust): Likewise.
18124 (s390_option_override): Likewise.
18126 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18128 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
18129 processor capabilities with -march=native.
18130 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
18131 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
18132 (S390_TARGET_BITS_STRING): Macro to simplify specs.
18134 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18136 * config/s390/s390.c (s390_issue_rate): Handle
18137 PROCESSOR_2094_Z9_EC.
18138 (s390_option_override): Likewise.
18139 (s390_adjust_priority): Likewise.
18141 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18143 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
18144 when cross compiling.
18146 2015-07-24 Richard Biener <rguenther@suse.de>
18148 * fold-const.c (maybe_canonicalize_comparison_1): Move
18149 A code CST canonicalization ...
18150 * match.pd: ... to a pattern here.
18152 2015-07-24 Jiong Wang <jiong.wang@arm.com>
18155 2015-07-22 Jiong Wang <jiong.wang@arm.com>
18157 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18158 (HONOR_REG_ALLOC_ORDER): Define.
18160 2015-07-24 Richard Biener <rguenther@suse.de>
18162 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
18163 * fold-const.c (fold_comparison): Move parameter does not
18164 alias &local simplification ...
18165 * match.pd: ... as a pattern here.
18167 2015-07-24 Richard Biener <rguenther@suse.de>
18169 * gimple-fold.c (replace_stmt_with_simplification): Special-case
18170 valueizing call operands.
18171 * gimple-match-head.c (maybe_push_res_to_seq): Take
18172 number of call arguments from ops array.
18173 (do_valueize): New function.
18174 (gimple_simplify): Return true if valueization changed
18175 any operand even if the result didn't simplify further.
18177 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18179 PR middle-end/25530
18180 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
18182 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18184 PR middle-end/25529
18185 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
18187 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18189 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
18192 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18194 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
18197 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
18199 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
18200 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
18202 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
18203 ms_va_list_type_node initialization.
18205 2015-07-23 Jeff Law <law@redhat.com>
18208 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18209 unable to find X NE 0 in the tables, return X as the simplified
18211 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18212 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
18213 to VISISTED_BBS. */
18214 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18215 after removing the control flow statement and unnecessary edges.
18217 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
18219 * tree-pass.h (get_current_pass_name): Removed.
18221 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
18223 PR rtl-optimization/64164
18224 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18225 * tree-ssa-copyrename.c: Removed.
18226 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18227 -ftree-coalesce-vars.
18228 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18229 * common.opt (ftree-copyrename): Ignore.
18230 (ftree-coalesce-inlined-vars): Likewise.
18231 * doc/invoke.texi: Remove the ignored options above.
18232 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18233 * tree-ssa-coalesce.h: ... here.
18234 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18235 headers required by it.
18236 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18237 across variables when flag_tree_coalesce_vars. Check register
18238 use and promoted modes to allow coalescing. Moved to
18239 tree-ssa-coalesce.c.
18240 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18241 with its member functions to tree-ssa-coalesce.c.
18242 (var_map_base_init): Likewise. Renamed to
18243 compute_samebase_partition_bases.
18244 (partition_view_normal): Drop want_bases parameter.
18245 (partition_view_bitmap): Likewise.
18246 * tree-ssa-live.h: Adjust declarations.
18247 * tree-ssa-coalesce.c: Include explow.h.
18248 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18249 default defs at the entry point.
18250 (dump_part_var_map): New.
18251 (compute_optimized_partition_bases): New, called by...
18252 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18253 of compute_samebase_partition_bases. Adjust.
18254 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18255 * cfgexpand.c (leader_merge): New.
18256 (get_rtl_for_parm_ssa_default_def): New.
18257 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18258 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18259 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18260 redundant MEM attr setting.
18261 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18263 (expand_one_stack_var): ... this. New wrapper to check and
18264 skip already expanded SSA partitions.
18265 (record_alignment_for_reg_var): New, factored out of...
18266 (expand_one_var): ... this.
18267 (expand_one_ssa_partition): New.
18268 (adjust_one_expanded_partition_var): New.
18269 (expand_one_register_var): Check and skip already expanded SSA
18271 (expand_used_vars): Don't create DECLs for anonymous SSA
18272 names. Expand all SSA partitions, then adjust all SSA names.
18273 (pass::execute): Replace the loops that set
18274 SA.partition_to_pseudo from partition leaders and cleared
18275 DECL_RTL for multi-location variables, and that which used to
18276 rename vars and set attrs, with one that clears DECL_RTL and
18277 checks that PARMs and RESULTs default_defs match DECL_RTL.
18278 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18279 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18280 * explow.c (promote_ssa_mode): New.
18281 * explow.h (promote_ssa_mode): Declare.
18282 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18283 * function.c: Include cfgexpand.h.
18284 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18285 (use_register_for_parm_decl): Wrapper for the above to
18286 special-case the result_ptr.
18287 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18288 (split_complex_args): Take assign_parm_data_all argument.
18289 Pass it to rtl_for_parm. Set up rtl and context for split
18291 (assign_parms_augmented_arg_list): Adjust.
18292 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18293 multiple locations. Recognize split complex args.
18294 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18295 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18296 (assign_parm_setup_block): Prefer SSA-assigned location.
18297 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18298 if stack_parm is NULL.
18299 (assign_parm_setup_stack): Prefer SSA-assigned location.
18300 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18301 rtl before testing for pointer bounds. Special-case result_ptr.
18302 (expand_function_start): Maybe reset DECL_RTL of result.
18303 Prefer SSA-assigned location for result and static chain.
18304 Factor out DECL_RESULT and SET_DECL_RTL.
18305 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18306 anonymous SSA names. Use promote_ssa_mode.
18307 (get_temp_reg): Likewise.
18308 (remove_ssa_form): Adjust.
18309 * stor-layout.c (layout_decl): Don't set mem attributes of
18311 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18312 and get its reg_usage for reg invalidation.
18313 (compute_bb_dataflow): Pass it insn.
18314 (emit_notes_in_bb): Likewise.
18316 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
18319 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
18321 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
18322 (rs6000_emit_2insn_and): Handle dot forms.
18323 * config/rs6000/rs6000.md (and<mode>3): Adjust.
18324 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
18325 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
18327 2015-07-23 Richard Biener <rguenther@suse.de>
18329 * generic-match-head.c: Include cgraph.h.
18330 * gimple-match-head.c: Likewise.
18331 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
18333 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
18334 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
18337 2015-07-23 Richard Biener <rguenther@suse.de>
18339 * gimple-fold.c (fold_gimple_cond): Do not require folding
18340 results to pass valid_gimple_rhs_p.
18341 * tree-cfg.h (fold_cond_expr_cond): Remove.
18342 * tree-cfg.c (fold_cond_expr_cond): Likewise.
18343 (make_edges): Do not call it.
18344 * tree-inline.c (tree_function_versioning): Likewise.
18346 2015-07-23 Tom de Vries <tom@codesourcery.com>
18348 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
18349 vect_force_simple_reduction.
18350 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
18351 (vect_is_simple_reduction_1): Add and handle
18352 need_wrapping_integral_overflow parameter.
18353 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
18354 need_wrapping_integral_overflow parameter.
18355 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
18356 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
18359 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
18361 PR tree-optimization/66926,66951
18362 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
18363 INNER_LOOP and fix up condition for renaming virtual operands.
18365 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18367 * combine.c (try_combine): Use std::swap instead of manually
18370 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
18372 * config/mips/i6400.md: New file.
18373 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
18374 (mips64r6): Likewise.
18376 * config/mips/mips-tables.opt: Regenerate.
18377 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
18378 (mips_issue_rate): Add support for i6400.
18379 (mips_multipass_dfa_lookahead): Likewise.
18380 * config/mips/mips.h (TUNE_I6400): Define.
18381 * config/mips/mips.md: Include i6400.md.
18382 (processor): Add i6400.
18383 * doc/invoke.texi (-march=@var{arch}): Add i6400.
18385 2015-07-23 Richard Biener <rguenther@suse.de>
18387 PR middle-end/66916
18388 * match.pd: Guard widen and sign-change comparison simplification
18391 2015-07-23 Richard Biener <rguenther@suse.de>
18393 PR tree-optimization/66945
18394 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
18395 ::before_dom_children): Force the propagators idea of
18396 non-executable edges to materialize, not what the folder
18399 2015-07-23 Richard Biener <rguenther@suse.de>
18401 * gimple.h (gimple_cond_make_false): Use 0 != 0.
18402 (gimple_cond_make_true): Use 1 != 0.
18404 2015-07-22 DJ Delorie <dj@redhat.com>
18406 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
18409 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
18410 (ashrhi3): Likewise.
18411 (lshrhi3): Likewise.
18412 (movhi): Take advantage of zero-extend to load small constants.
18413 (movpsi): Likewise.
18414 (and<mode>3): Likewise.
18415 (zero_extendqihi2): Likewise.
18416 (zero_extendqisi2): New.
18417 * config/msp430/constraints.md (N,O): New.
18418 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
18420 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
18423 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
18424 to enum feature_priority and feature_list.
18425 (fold_builtin_cpu): Add F_AES to enum processor_features
18426 and isa_names_table.
18428 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
18431 * config/i386/linux-common.h (MPX_SPEC): Use linker option
18432 for 64bit target only.
18434 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
18436 * config/nvptx/nvptx.c: Expand some comments.
18438 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
18440 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
18441 (cortex_a53_advsimd): ...This.
18443 2015-07-22 Richard Biener <rguenther@suse.de>
18445 * genmatch.c (expr::gen_transform): Clarify error message
18446 and display location.
18448 2015-07-22 Richard Biener <rguenther@suse.de>
18450 * genmatch.c (struct operand): Add location member.
18451 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
18453 (struct simplify): Remove match_location and result_location
18455 (elsehwere): Adjust.
18457 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
18459 * config/mips/m5100.md: New file.
18460 * config/mips/mips-cpus.def (m5100, m5101): Define.
18461 * config/mips/mips-tables.opt: Regenerate.
18462 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
18463 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
18464 -march=m5101 to -mips32r5.
18465 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
18466 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
18468 * config/mips/mips.md: Include m5100.md.
18469 (processor): Add m5100.
18470 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
18472 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
18474 * config/mips/mips-cpus.def (interaptiv): Define.
18475 * config/mips/mips-tables.opt: Regenerate.
18476 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
18478 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
18479 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
18481 2015-07-22 Jiong Wang <jiong.wang@arm.com>
18484 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18485 (HONOR_REG_ALLOC_ORDER): Define.
18487 2015-07-22 Richard Biener <rguenther@suse.de>
18489 PR tree-optimization/66952
18490 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
18491 blocks we end up executing unconditionally reset all SSA
18492 info such as range and alignment.
18493 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
18494 * tree-ssanames.c (reset_flow_sensitive_info): New function.
18496 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
18498 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
18501 2015-07-22 Richard Biener <rguenther@suse.de>
18503 * genmatch.c (parser::parse_result): Properly handle
18504 match with result operands and conditions.
18506 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
18509 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18510 Add qualifier_struct_load_store_lane_index.
18511 (aarch64_types_loadstruct_lane_qualifiers): Use
18512 qualifier_struct_load_store_lane_index for lane index argument for
18514 (aarch64_types_storestruct_lane_qualifiers): Ditto.
18515 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18516 (aarch64_simd_expand_args): Add new argument describing mode of
18517 builtin. Check lane bounds for arguments with
18518 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18519 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
18520 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18521 (aarch64_simd_expand_builtin): Handle arguments with
18522 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
18523 aarch64_simd_expand_args.
18524 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
18525 vst[234]_lane with BUILTIN_VALLDIF.
18526 * config/aarch64/aarch64-simd.md:
18527 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
18528 endianness reversal on lane index.
18529 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
18530 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
18531 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
18532 (vec_store_lanesci_lane<mode>): Ditto.
18533 (vec_store_lanesxi_lane<mode>): Ditto.
18534 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
18535 reversal of lane index.
18536 (aarch64_ld3_lane<mode>): Ditto.
18537 (aarch64_ld4_lane<mode>): Ditto.
18538 (aarch64_st2_lane<mode>): Ditto.
18539 (aarch64_st3_lane<mode>): Ditto.
18540 (aarch64_st4_lane<mode>): Ditto.
18541 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
18542 to qmode. Add new mode parameter. Update uses.
18543 (__LD3_LANE_FUNC): Ditto.
18544 (__LD4_LANE_FUNC): Ditto.
18545 (__ST2_LANE_FUNC): Ditto.
18546 (__ST3_LANE_FUNC): Ditto.
18547 (__ST4_LANE_FUNC): Ditto.
18549 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
18551 * doc/invoke.texi (Language Independent Options): Rename node to
18552 Diagnostic Message Formatting Options.
18554 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
18557 * lra-remat.c (operand_to_remat): Prevent using insns with input
18558 subregs processed separately by IRA.
18560 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
18562 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
18564 (single_imm_use): Check for iterator node.
18565 (num_imm_uses): Likewise.
18566 * tree-ssa-operands.c (has_zero_uses_1): Delete.
18567 (single_imm_use_1): Check for iterator node.
18569 2015-07-21 Mike Frysinger <vapier@gentoo.org>
18570 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18572 * configure.ac: Add check for new options in isl-0.15.
18573 * config.in, configure: Rebuilt.
18574 * graphite-blocking.c: Include <isl/constraint.h>
18575 * graphite-interchange.c, graphite-poly.c: Likewise.
18576 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
18577 * graphite.c: Likewise.
18578 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
18580 * graphite-dependences.c: Include <isl/constraint.h>.
18581 (max_number_of_out_dimensions): Returns isl_stat.
18582 (extend_schedule_1): Likewise
18583 (extend_schedule): Corresponding changes.
18584 * graphite-optimize-isl.c: Include <isl/constraint.h> and
18586 (getSingleMap): Change return type of isl_stat.
18587 (optimize_isl): Conditionally use
18588 isl_options_set_schedule_serialize_sccs.
18589 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
18590 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
18592 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
18595 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
18596 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
18598 2015-07-21 Richard Biener <rguenther@suse.de>
18600 PR tree-optimization/66948
18601 * genmatch.c (capture_info::walk_match): Also recurse to
18602 captures. Properly compute expr state from captures of
18604 * match.pd: Add single-use guards to
18605 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
18607 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
18609 * config/nvptx/mkoffload.c (process): Add static destructor call.
18611 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18613 PR middle-end/66915
18614 * match.pd (A - B -> A + (-B)): Don't allow folding
18615 when type if a fixed-point type.
18617 2015-07-20 DJ Delorie <dj@redhat.com>
18619 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
18620 (iorqi3_real): Likewise for set1.
18622 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
18624 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
18627 2015-07-20 Aditya Kumar <hiraditya@msn.com>
18629 * graphite-isl-ast-to-gimple.c:
18630 Refactor so that each function can access 'region'. This will help
18631 maintain a parameter rename_map within a region.
18633 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18635 * config/rs6000/rs6000.md (*lt0_disi): New.
18637 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18640 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
18641 "available letters" comment.
18642 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
18643 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
18644 and_2rld_operand): Delete.
18645 (and_operand): Adjust.
18646 (rotate_mask_operator): New.
18647 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
18648 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
18649 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
18650 extract_ME): Delete.
18651 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18652 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
18653 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
18654 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18655 rs6000_emit_2insn_and): New.
18656 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
18657 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
18658 includes_rldic_lshift_p, includes_rldicr_lshift_p,
18659 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
18660 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18661 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
18662 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
18663 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18664 rs6000_emit_2insn_and): New.
18665 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
18666 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
18668 <NOT>: Don't fall through to next case.
18669 <AND>: Handle the various rotate-and-mask cases directly.
18670 <IOR>: Always cost as one insn.
18671 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
18672 (and<mode>3): Adjust expander for the new patterns.
18673 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
18674 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
18675 (*and<mode>3_imm_dot_shifted): New.
18676 (*and<mode>3_mask): Delete, rewrite as ...
18677 (and<mode>3_mask): ... New.
18678 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
18679 (andsi3_internal0_nomc): Delete.
18680 (*andsi3_internal6): Delete.
18681 (*and<mode>3_2insn): New.
18682 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18683 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18684 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
18685 *insvdi_internal3): Delete.
18686 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
18687 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
18688 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
18689 *ior<mode>_mask): New.
18690 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
18691 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18692 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18693 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18695 (ashr<mode>3): Delete expander.
18696 (*ashr<mode>3): Rename to ...
18697 (ashr<mode>3): ... This.
18698 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
18699 (*rotldi3_internal4, *rotldi3_internal5 and split,
18700 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
18701 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
18702 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
18703 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
18704 (splitter for loading a mask): Adjust.
18705 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
18707 2015-07-20 Marek Polacek <polacek@redhat.com>
18709 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
18710 output_add_clobbers, output_added_clobbers_hard_reg_p,
18711 gen_rtx_scratch): Remove declarations.
18713 2015-07-20 Marek Polacek <polacek@redhat.com>
18716 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
18718 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18720 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
18721 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
18723 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18725 * combine.c (combine_simplify_rtx): Move simplification step
18726 before various transformations/substitutions.
18728 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
18730 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
18731 (struct int_traits): Likewise.
18733 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18735 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
18736 function to vmsdbgout_function_decl.
18738 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
18741 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
18742 from misaligned positions.
18743 (ix86_expand_pinsr): Reject insertions to misaligned positions.
18745 2015-07-18 Sebastian Pop <s.pop@samsung.com>
18747 PR middle-end/46851
18748 PR middle-end/60340
18749 * Makefile.in: Removed omega.o.
18750 * common.opt: Document flag fcheck-data-deps as deprecated.
18751 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
18752 its associated params: omega-max-vars, omega-max-geqs,
18753 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
18754 omega-max-keys, omega-eliminate-redundant-constraints.
18755 * doc/loop.texi: Remove all the section on Omega.
18756 * graphite-blocking.c: Include missing params.h: it used to be
18757 included through tree-data-ref.h and omega.h.
18758 * graphite-isl-ast-to-gimple.c: Same.
18759 * graphite-optimize-isl.c: Same.
18760 * graphite-sese-to-poly.c: Same.
18761 * graphite.c: Same.
18764 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
18765 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
18766 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
18767 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
18768 * passes.def: Remove pass_check_data_deps.
18769 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
18770 (dump_conflict_function): Same.
18771 (dump_subscript): Same.
18772 (print_direction_vector): Same.
18773 (print_dir_vectors): Same.
18774 (print_lambda_vector): Same.
18775 (print_dist_vectors): Same.
18776 (dump_data_dependence_relation): Same.
18777 (dump_data_dependence_relations): Same.
18778 (dump_dist_dir_vectors): Same.
18780 (init_omega_eq_with_af): Removed.
18781 (omega_extract_distance_vectors): Removed.
18782 (omega_setup_subscript): Removed.
18783 (init_omega_for_ddr_1): Removed.
18784 (init_omega_for_ddr): Removed.
18785 (ddr_consistent_p): Removed.
18786 (compute_affine_dependence): Do not use omega to check data
18788 (compute_data_dependences_for_bb): Removed.
18789 (analyze_all_data_dependences): Removed.
18790 (tree_check_data_deps): Removed.
18791 * tree-data-ref.h: Do not include omega.h.
18792 (compute_data_dependences_for_bb): Removed.
18793 (tree_check_data_deps): Removed.
18794 * tree-ssa-loop.c (pass_check_data_deps): Removed.
18795 (make_pass_check_data_deps): Removed.
18796 * tree-ssa-phiopt.c: Include params.h.
18797 * tree-vect-data-refs.c: Same.
18798 * tree-vect-slp.c: Same.
18800 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
18802 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
18803 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
18804 (mem->fpreg splitters): Ditto.
18805 (general_operand->nonimmediate_operand splitter): Use explicit modes.
18806 Disable DFmode for TARGET_64BIT.
18808 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
18811 * config/i386/i386.c (ix86_expand_prologue): Replicate static
18812 chain on the stack.
18814 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
18816 * config/nvptx/mkoffload.c (process): Constify host data.
18817 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18818 Constify host data.
18819 (generate_host_descr_file): Likewise.
18821 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
18822 Sebastian Pop <s.pop@samsung.com>
18824 PR middle-end/61929
18825 * graphite-dependences.c (add_pdr_constraints): Renamed
18826 pdr->extent to pdr->subscript_sizes.
18827 * graphite-interchange.c (build_linearized_memory_access): Add
18828 back all gcc_assert's that the "isl_int to isl_val conversion"
18829 patch has removed. Refactored.
18830 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
18831 * graphite-poly.c (new_poly_dr): Same.
18832 (free_poly_dr): Same.
18833 * graphite-poly.h (struct poly_dr): Same.
18834 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
18835 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
18836 * graphite-scop-detection.h: Fix space.
18837 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
18838 back all gcc_assert's removed by a previous patch.
18839 (wrap): Remove the_isl_ctx global variable that the same patch has
18841 (build_loop_iteration_domains): Same.
18842 (add_param_constraints): Same.
18843 (pdr_add_data_dimensions): Same. Refactored.
18844 (build_poly_dr): Renamed extent to subscript_sizes.
18846 2015-07-17 Marek Polacek <polacek@redhat.com>
18848 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
18849 * match.pd: ... here.
18851 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
18853 * config/nvptx/mkoffload.c (process): Constify target data.
18854 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18855 Constify target data.
18856 (generate_target_offloadend_file): Likewise.
18858 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
18860 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
18861 to allow renaming of PHI arguments on edges incoming from outer
18862 loop header, add corresponding check before start PHI iterator.
18863 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
18864 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
18865 with true force_vectorize. Set-up dominator for outer loop too.
18866 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
18867 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
18868 was marked with force_vectorize and has restricted cfg.
18869 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
18871 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
18872 do peeling for outer loops.
18874 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
18875 Matthias Klose <doko@ubuntu.com>
18877 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
18878 build-sysroot, sysroot from the `Miscenalleous configure options' to
18879 the `Directories' section and strip trailing `/' from with_sysroot.
18880 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
18881 * configure: Regenerated.
18883 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
18886 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
18887 (TARGET_HARD_DF_REGS): Ditto.
18888 (TARGET_HARD_XF_REGS): Ditto.
18889 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
18890 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
18891 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
18892 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
18893 (*movsf_internal): Add alternatives 16 and 17. Enable
18894 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
18896 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
18898 PR rtl-optimization/66891
18899 * calls.c (expand_call): Wrap precompute_register_parameters with
18900 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
18902 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
18904 * config/nvptx/mkoffload.c (process): Constify mapping variables.
18905 Define target data struct and initialize it.
18907 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
18909 PR rtl-optimization/66626
18910 * ira.h (emit-rtl.h): Include.
18911 (non_spilled_static_chain_regno_p): New.
18912 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
18913 unless it is non spilled static chain pseudo.
18914 (assign_hard_rego): Spill memory profitable allocno unless it is
18915 non spilled static chain pseudo.
18916 (allocno_spill_priority_compare): Put non spilled static chain
18917 pseudo at the end of sorted array.
18918 (improve_allocation): Do nothing if we have static chain and
18920 (allocno__priority_compare_func): Put non spilled static chain
18921 pseudo at the beginning of sorted array.
18922 (move_spill_restore): Ignore non spilled static chain pseudo.
18923 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
18924 to non spilled static chain pseudo.
18925 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
18926 pseudo at the beginning of sorted array.
18927 (spill_for): Spill non spilled static chain pseudo last.
18928 * lra-constraints.c (lra_constraints): Remove static chain pseudo
18929 check for equivalence.
18931 2015-07-16 Martin Liska <mliska@suse.cz>
18934 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
18935 dst_ctx if it does not exist.
18937 2015-07-16 Martin Liska <mliska@suse.cz>
18939 * hash-set.h (remove): New function.
18940 (iterator): New iteration class for hash_set.
18942 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18944 * genattrtab.c (make_canonical): Add a file_location parameter.
18945 Use fatal_at rather than fatal.
18946 (get_attr_value): Likewise. Update call to make_canonical.
18947 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
18948 (make_internal_attr): Update calls accordingly.
18950 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18952 * read-md.h (message_with_line, error_with_line): Delete.
18953 * read-md.c (message_with_line, error_with_line): Delete.
18954 * gensupport.h: Include read-md.h.
18955 (md_rtx_info): New structure.
18956 (read_md_rtx): Use it. Return a bool success value.
18957 * gensupport.c (read_md_rtx): Likewise.
18958 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
18959 (main): Update after interface changes.
18960 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
18961 (main): Update after interface changes.
18962 * genattrtab.c (insn_code_number): Delete.
18963 (optimize_attrs): Add a max_insn_code parameter and use it instead
18964 of insn_code_number.
18965 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
18966 Use *_at rather than *_with_line functions.
18967 (gen_insn): Likewise.
18968 (gen_delay): Likewise.
18969 (gen_insn_reserv): Likewise.
18970 (gen_bypass): Take an md_rtx_info rather than an rtx.
18971 (main): Update after interface changes. Use a local max_insn_code
18972 variable instead of insn_code_number.
18973 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
18974 an rtx. Use fatal_at rather than fatal.
18975 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
18976 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
18977 (gen_absence_set, gen_final_absence_set, gen_automaton)
18978 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
18979 (main): Update after interface changes.
18980 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
18982 (main): Update after interface changes.
18983 * genconditions.c (main): Use new read_md_rtx interface.
18984 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
18985 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
18986 (main): Update after interface changes.
18987 * genemit.c (insn_code_number, insn_index_number): Delete.
18988 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18989 Use fatal_at rather than fatal.
18990 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
18992 (gen_split): Likewise.
18993 (main): Update after interface changes.
18994 * genextract.c (line_no): Delete.
18995 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18996 Update call to walk_rtx.
18997 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
18998 rather than message_with_line.
18999 (walk_rtx): Add an md_rtx_info argument. Update call to
19000 VEC_safe_set_locstr.
19001 (main): Update after interface changes.
19002 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
19003 and lineno. Use error_at rather than separate message_with_line
19004 calls and have_error assignments.
19005 (main): Update after interface changes.
19006 * genmddump.c (main): Use new read_md_rtx interface.
19007 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
19008 (main): Update after interface changes.
19009 * genoutput.c (next_code_number): Delete.
19010 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19011 (gen_peephole, gen_expand, gen_split): Likewise.
19012 (note_constraint): Likewise. Use *_at rather than *_with_line
19014 (main): Update after interface changes.
19015 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
19017 (main): Update after interface changes.
19018 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
19019 than an rtx and lineno.
19020 (process_define_constraint): Likewise.
19021 (process_define_register_constraint): Likewise.
19022 (main): Update after interface changes.
19023 * genrecog.c (next_insn_code, pattern_lineno): Delete.
19024 (validate_pattern): Replace top-level rtx with an md_rtx_info.
19025 Use *_at rather than *_with_line functions.
19026 (match_pattern_2): Likewise.
19027 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
19028 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
19029 Use *_at rather than *_with_line functions.
19030 * gentarget-def.c (add_insn): New function.
19031 (main): Use it. Use new read_md_rtx interface.
19033 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19035 * gensupport.h (compute_test_codes): Take a file_location rather
19036 than a line number.
19037 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
19038 rather than *_with_line functions.
19039 (process_define_predicate): Update call to compute_test_codes.
19040 * genpreds.c (validate_exp): Take a file_location rather than a
19041 line number. Use *_at functions rather than *_with_line functions.
19042 (process_define_predicate): Update call to validate_exp.
19043 (constraint_data): Replace lineno field with a file_location.
19044 (add_constraint): Take a file_location rather than a line number.
19045 Use *_at functions rather than *_with_line functions. Fix error
19046 message for address constraints. Update after changes to
19047 validate_exp, constraint_data and compute_test_codes.
19048 (process_define_constraint): Update accordingly.
19049 (process_define_register_constraint): Likewise.
19051 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19053 * genoutput.c (data): Use a file_location to record the source
19056 (idata, idata_end): Remove initialization.
19057 (constraint_data): Replace lineno with a file_location.
19058 (output_insn_data): Update after changes to data.
19059 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
19060 (scan_operands): Likewise, using *_at rather than *_with_line
19062 (process_template): Likewise.
19063 (validate_insn_alternatives): Likewise.
19064 (validate_insn_operands): Likewise.
19065 (validate_optab_operands): Likewise.
19066 (init_insn_for_nothing): Initialize idata and idata_end.
19067 (note_constraint): Update after changes to constraint_data,
19068 using at rather than with_line functions.
19069 (mdep_constraint_len): Take a file_location rather than a
19070 line number. Use at rather than with_line functions.
19072 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19074 * read-md.h (fatal_at): Declare.
19075 * read-md.c (fatal_at): New function.
19076 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
19077 to record the source position.
19078 (check_attr_test): Take a file_location instead of a line number.
19079 Use fatal_at instead of fatal.
19080 (check_attr_value): Update after above changes, using "at"
19081 rather than "with_line" reporting functions.
19082 (convert_set_attr_alternative): Likewise.
19083 (gen_attr): Likewise.
19084 (check_defs): Likewise. Don't assign to read_md_filename.
19085 (gen_insn): Update initialization after above changes.
19086 (gen_delay): Likewise.
19087 (write_insn_cases): Print the filename for a define_peephole.
19088 (gen_insn_reserv): Take a line number as argument and update
19089 the call to check_attr_test.
19090 (main): Pass a line number to gen_insn_reserv.
19092 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19094 * read-md.h (file_location): New structure.
19095 (directive_handler_t): Take a file_location rather than a line number.
19096 (message_at, error_at): Declare.
19097 (read_skip_construct): Delete.
19098 * read-md.c (message_with_line_1): Replace with...
19099 (message_at_1): ...this new function.
19100 (message_at, error_at): New functions.
19101 (message_with_line, error_with_line): Update to use message_at_1.
19102 (handle_enum): Take a file_location rather than a line number
19103 and use error_at for error reporting.
19104 (handle_include): Likewise.
19105 (read_skip_construct): Likewise. Make static.
19106 (handle_file): Update after above changes. Pass a file_location
19107 rather than a line number to handle_directive.
19108 * gensupport.c (queue_elem): Replace separate filename and lineno
19109 with a file_location.
19110 (queue_pattern): Replace filename and lineno arguments with a
19111 file_location. Update after change to queue_elem.
19112 (process_define_predicate): Replace lineno argument with a
19113 file_location and use error_at for error reporting. Update
19114 after above changes.
19115 (process_rtx): Likewise.
19116 (subst_pattern_match): Likewise.
19117 (get_alternatives_number): Likewise.
19118 (alter_predicate_for_insn): Likewise.
19119 (rtx_handle_directive): Likewise.
19120 (is_predicable): Update after above changes, using error_at rather
19121 than error_with_line.
19122 (has_subst_attribute): Likewise.
19123 (identify_predicable_attribute): Likewise.
19124 (alter_attrs_for_subst_insn): Likewise.
19125 (process_one_cond_exec): Likewise.
19126 (process_substs_on_one_elem): Likewise.
19127 (process_define_subst): Likewise.
19128 (check_define_attr_duplicates): Likewise.
19129 (read_md_rtx): Update after change to queue_elem.
19131 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19133 * genoutput.c (next_index_number): Delete.
19134 (data): Remove index_number.
19135 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
19136 (main): Remove manipulation of next_index_number.
19138 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19140 * genattrtab.c (check_attr_value): Remove handling of null attrs.
19141 (make_canonical): Likewise.
19143 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
19145 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
19146 instead of adjust_address_nv.
19147 (restore_stack_nonlocal): Likewise.
19148 (nonlocal_goto): Likewise.
19150 2015-07-16 Tom de Vries <tom@codesourcery.com>
19152 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
19153 not have a corresponding loop header phi.
19155 2015-07-16 Tom de Vries <tom@codesourcery.com>
19157 * tree-parloops.c (create_loads_for_reductions): Handle case that
19158 reduction is unused.
19160 2015-07-16 Richard Biener <rguenther@suse.de>
19162 PR tree-optimization/66894
19163 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
19164 about deriving NE_EXPR from truncated values.
19166 2015-07-16 Martin Liska <mliska@suse.cz>
19169 (object_allocator): Add new class.
19170 (pool_allocator::initialize): Use the underlying class.
19171 (pool_allocator::allocate): Likewise.
19172 (pool_allocator::remove): Likewise.
19173 (operator new): A new generic allocator.
19174 * asan.c (struct asan_mem_ref): Remove unused members.
19175 (asan_mem_ref_new): Replace new operator with
19176 object_allocator::allocate.
19177 (free_mem_ref_resources): Change deallocation.
19178 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
19179 with object_allocator.
19180 * config/sh/sh.c (add_constant): Replace new operator with
19181 object_allocator::allocate.
19182 (sh_reorg): Change call to a release method.
19183 * cselib.c (struct elt_list): Remove unused members.
19184 (new_elt_list): Replace new operator with
19185 object_allocator::allocate.
19186 (new_elt_loc_list): Likewise.
19187 (new_cselib_val): Likewise.
19188 (unchain_one_elt_list): Change delete operator with remove method.
19189 (unchain_one_elt_loc_list): Likewise.
19190 (unchain_one_value): Likewise.
19191 (cselib_finish): Release newly added static allocators.
19192 * cselib.h (struct cselib_val): Remove unused members.
19193 (struct elt_loc_list): Likewise.
19194 * df-problems.c (df_chain_alloc): Replace pool_allocator with
19196 * df-scan.c (struct df_scan_problem_data): Likewise.
19197 (df_scan_alloc): Likewise.
19198 * df.h (struct dataflow): Likewise.
19199 * dse.c (struct read_info_type): Likewise.
19200 (struct insn_info_type): Likewise.
19201 (struct dse_bb_info_type): Likewise.
19202 (struct group_info): Likewise.
19203 (struct deferred_change): Likewise.
19204 (get_group_info): Likewise.
19205 (delete_dead_store_insn): Likewise.
19206 (free_read_records): Likewise.
19207 (replace_read): Likewise.
19208 (check_mem_read_rtx): Likewise.
19209 (scan_insn): Likewise.
19210 (dse_step1): Likewise.
19211 (dse_step7): Likewise.
19212 * et-forest.c (struct et_occ): Remove unused members.
19213 (et_new_occ): Use allocate instead of new operator.
19214 (et_new_tree): Likewise.
19215 (et_free_tree): Call release method explicitly.
19216 (et_free_tree_force): Likewise.
19217 (et_free_pools): Likewise.
19218 (et_split): Use remove instead of delete operator.
19219 * et-forest.h (struct et_node): Remove unused members.
19220 * ipa-cp.c: Change pool_allocator to object_allocator.
19221 * ipa-inline-analysis.c: Likewise.
19222 * ipa-profile.c: Likewise.
19223 * ipa-prop.c: Likewise.
19224 * ipa-prop.h: Likewise.
19225 * ira-build.c (initiate_cost_vectors): Cast return value.
19226 (ira_allocate_cost_vector): Likewise.
19227 * ira-color.c (struct update_cost_record): Remove unused members.
19228 * lra-int.h (struct lra_live_range): Likewise.
19229 (struct lra_copy): Likewise.
19230 (struct lra_insn_reg): Likewise.
19231 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
19232 * lra.c (new_insn_reg): Replace new operator with allocate method.
19233 (free_insn_regs): Same for operator delete.
19234 (finish_insn_regs): Release new static allocator.
19235 (finish_insn_recog_data): Likewise.
19236 (lra_free_copies): Replace delete operator with remove method.
19237 (lra_create_copy): Replace operator new with allocate method.
19238 (invalidate_insn_data_regno_info): Same for remove method.
19239 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
19240 (free_debug_insn_changes): Replace delete operator with remove method.
19241 (replace_oldest_value_reg): Replace operator new with allocate method.
19242 (pass_cprop_hardreg::execute): Release new static variable.
19243 * sched-deps.c (sched_deps_init): Change pool_allocator to
19245 * sel-sched-ir.c: Likewise.
19246 * sel-sched-ir.h: Likewise.
19247 * stmt.c (expand_case): Likewise.
19248 (expand_sjlj_dispatch_table): Likewise.
19249 * tree-sra.c (struct access): Remove unused members.
19250 (struct assign_link): Likewise.
19251 (sra_deinitialize): Release newly added static pools.
19252 (create_access_1):Replace operator new with allocate method.
19253 (build_accesses_from_assign): Likewise.
19254 (create_artificial_child_access): Likewise.
19255 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
19256 pool_allocator to object_allocator.
19257 * tree-ssa-pre.c: Likewise.
19258 * tree-ssa-reassoc.c: Likewise.
19259 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
19260 * tree-ssa-strlen.c: Likewise.
19261 * tree-ssa-structalias.c: Likewise.
19262 * var-tracking.c (onepart_pool_allocate): New function.
19263 (unshare_variable): Use the newly added function.
19264 (variable_merge_over_cur): Likewise.
19265 (variable_from_dropped): Likewise.
19266 (variable_was_changed): Likewise.
19267 (set_slot_part): Likewise.
19268 (emit_notes_for_differences_1): Likewise.
19269 (vt_finalize): Release newly added static pools.
19271 2015-07-16 Martin Jambor <mjambor@suse.cz>
19273 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
19274 all uses. Fix two typos in its general comment.
19275 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
19277 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
19279 * config/i386/linux-common.h (LINK_MPX): New.
19280 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
19281 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
19282 indicating '-z bndplt' support by linker.
19283 * configure: Regenerate.
19284 * config.in: Regenerate.
19286 2015-07-16 Richard Biener <rguenther@suse.de>
19288 * fold-const.c (fold_widened_comparison): Remove.
19289 (fold_sign_changed_comparison): Likewise.
19290 (fold_comparison): Move widened and sign-changed comparison
19292 * match.pd: ... to patterns here.
19293 * generic-match-head.c: Include target.h.
19294 * gimple-match-head.c: Likewise.
19296 2015-07-16 Richard Biener <rguenther@suse.de>
19298 * tree-ssa-dom.c (dom_valueize): New function.
19299 (record_temporary_equivalences): Also record equivalences
19300 for dominating stmts that have uses of equivalences we are
19303 2015-07-16 Bin Cheng <bin.cheng@arm.com>
19305 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
19306 add_autoinc_candidates.
19307 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
19308 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
19309 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
19310 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
19312 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
19313 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
19314 Remove parameter struct iv*. Call add_autoinc_candidates here.
19315 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
19316 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
19318 (find_iv_candidates): Call new functions.
19320 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
19322 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
19323 uninitialized-variable warning.
19325 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
19328 * config/sh/sh.md (movdi): Split simple reg move to two movsi
19329 when the destination is R0.
19331 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
19334 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
19335 * config/i386/i386.c (ix86_expand_pextr): New function.
19336 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
19337 for non-lowpart subregs.
19338 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
19339 (insv<mode>): Use SWI248 mode iterator.
19340 (insv<mode>_1): Ditto.
19342 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19343 Sebastian Pop <s.pop@samsung.com>
19345 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
19346 iterator to use_stmt.
19348 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19349 Sebastian Pop <s.pop@samsung.com>
19351 * graphite-scop-detection.c (build_scops_1): Discard scops for
19354 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19355 Sebastian Pop <s.pop@samsung.com>
19357 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
19358 case of a return statement in scop.
19360 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19361 Sebastian Pop <s.pop@samsung.com>
19363 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
19364 INTEGER_TYPE parameters.
19365 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
19366 VECTOR_CST in scan_tree_for_params.
19367 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
19369 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
19371 * gimple-pretty-print.h: Don't include pretty-print.h.
19372 * tree-streamer.h: Don't include lto-streamer.h.
19373 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
19374 * gimple-streamer-in.c: Remove redundant includes.
19375 * gimple-streamer-out.c: Likewise.
19376 * ipa-devirt.c: Likewise.
19377 * ipa-icf.c: Likewise.
19378 * ipa-inline-analysis.c: Likewise.
19379 * ipa-polymorphic-call.c: Likewise.
19380 * ipa-profile.c: Likewise.
19381 * ipa-prop.c: Likewise.
19382 * ipa-pure-const.c: Likewise.
19383 * lto-cgraph.c: Likewise.
19384 * lto-streamer-in.c: Likewise.
19385 * lto-streamer-out.c: Likewise.
19386 * lto-streamer.c: Likewise.
19387 * tree-streamer-in.c: Likewise.
19388 * tree-streamer-out.c: Likewise.
19389 * tree-streamer.c: Likewise.
19391 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
19393 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
19395 * opts.c: Remove multiline #include comment.
19397 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
19399 * config/nvptx/mkoffload.c (process): Add C++ protection to
19402 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19405 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
19406 null before IEEE 128-bit floating point support patch.
19408 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19410 * simplify-rtx.c (simplify_ternary_operation): Add simplification
19411 for (!c) != {0,...,0} ? a : b for vector modes.
19413 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
19414 Martin Jambor <mjambor@suse.cz>
19416 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
19417 struct func_body_info* instead of struct ipa_node_params*, expecting
19418 fbi->info to be filled in. Replace throughout. Adjust call to
19419 ipa_load_from_parm_agg.
19420 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
19421 instead of struct ipa_node_params*. Adjust calls to other functions
19422 so that they pass either fbi or fbi->info.
19423 (set_switch_stmt_execution_predicate): Likewise.
19424 (will_be_nonconstant_predicate): Likewise.
19425 (compute_bb_predicates): Likewise.
19426 (estimate_function_body_sizes): Move asserts earlier. Fill in
19427 struct func_body_info, replace parms_info with fbi.info. Adjust
19428 calls to functions that now accept struct func_body_info.
19429 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
19430 (struct func_body_info): Likewise.
19431 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
19432 remove static. Adjust callers.
19433 (ipa_load_from_parm_agg): Remove.
19434 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
19435 (func_body_info): Likewise.
19436 (ipa_load_from_parm_agg): Adjust prototype.
19438 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19440 * gensupport.c (rtx_handle_directive): Adjust.
19441 * read-rtl.c (apply_iterators): Take vector to add rtxs to
19442 instead of expr list rtx.
19443 (add_define_attr_for_define_subst): Likewise.
19444 (add_define_subst_attr): Likewise.
19445 (read_subst_mapping): Likewise.
19446 (read_rtx): Likewise.
19447 * rtl.h (read_rtx): Adjust.
19449 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19451 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
19453 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19456 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
19457 (*tls_local_dynamic_base_64_<mode>): Ditto.
19458 (*tls_local_dynamic_base_64_largepic): Ditto.
19459 (tls_global_dynamic_64_<mode>): Update expander pattern.
19460 (tls_local_dynamic_base_64_<mode>): Ditto.
19462 2015-07-15 Richard Biener <rguenther@suse.de>
19464 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
19465 and bool_var == 1 -> bool_var simplifications ...
19466 * match.pd: ... to patterns here. Factor out negate_expr_p
19467 cases from the A - B -> A + (-B) patterns as negate_expr_p
19468 predicate and add a -(A + B) -> (-B) - A pattern.
19470 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
19472 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
19474 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
19475 Robert Suchanek <robert.suchanek@imgtec.com>
19477 * config/mips/mips.c (mips_int_mask): New enum.
19478 (mips_shadow_set): Likewise.
19479 (int_mask): New variable.
19480 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
19481 (machine_function): Add int_mask and use_shadow_register_set.
19482 (mips_attribute_table): Add attribute handlers for interrupt and
19483 use_shadow_register_set.
19484 (mips_interrupt_mask): New static function.
19485 (mips_handle_interrupt_attr): Likewise.
19486 (mips_handle_use_shadow_register_set_attr): Likewise.
19487 (mips_use_shadow_register_set): Change return type to enum
19488 mips_shadow_set. Add argument handling for use_shadow_register_set
19490 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
19491 compare with mips_shadow_set enum.
19492 (mips_compute_frame_info): Add interrupt mask and
19493 use_shadow_register_set to per-function information structure.
19494 Add a stack slot for EPC unconditionally.
19495 (mips_expand_prologue): Compare use_shadow_register_set value
19496 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
19497 masked interrupt register but in EIC mode use K0 and save Cause in K0.
19498 EPC saved and restored unconditionally. Use PMODE_INSN macro when
19499 copying the stack pointer from the shadow register set.
19500 * config/mips/mips.h (SR_IM0): New define.
19501 * config/mips/mips.md (mips_rdpgpr): Rename to...
19502 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
19503 * doc/extend.texi (Declaring Attributes of Functions): Document
19504 optional arguments for interrupt and use_shadow_register_set
19507 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
19509 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
19510 interrupt attribute.
19511 (mips_expand_prologue): Disable the floating point unit in an ISR.
19512 * config/mips/mips.h (SR_COP1): New define.
19514 2015-07-15 Richard Biener <rguenther@suse.de>
19516 * genmatch.c (parser::peek, parser::peek_ident): Add argument
19517 to tell how many tokens to peek ahead (default 1).
19518 (parser::eat_token, parser::eat_ident): Return token consumed.
19519 (parser::parse_result): Parse new switch statement.
19520 * match.pd: Use case statements where appropriate.
19522 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19524 PR rtl-optimization/58066
19525 * calls.c (expand_call): Precompute register parameters before stack
19526 alignment is performed.
19528 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19530 PR rtl-optimization/66838
19531 * postreload.c (reload_cse_move2add): Also process
19532 CALL_INSN_FUNCTION_USAGE when resetting information of
19533 call-clobbered registers.
19535 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19536 Cesar Philippidis <cesar@codesourcery.com>
19537 Chung-Lin Tang <cltang@codesourcery.com>
19539 * config/nios2/constraints.md (U, v): New constraints.
19540 * config/nios2/predicates.md (rdprs_dcache_operand): New.
19541 (ldstex_memory_operand): New.
19542 * config/nios2/sync.md: New file.
19543 * config/nios2/nios2.md (unspecv): Add new builtin function
19545 (rdprs, flushd, flushda, wrpie, eni): New patterns.
19546 (top-level): Include sync.md.
19547 * config/nios2/nios2.c (N2_FTYPES): Add function types for
19549 (N2_BUILTINS): Add arch field setting, add new builtins.
19550 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
19552 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
19553 Also handle ldex/stex/ldsex/stsex builtins.
19554 (nios2_expand_rdprs_builtin): New function.
19555 (nios2_expand_cache_builtin): New function.
19556 (nios2_expand_wrpie_builtin): New function.
19557 (nios2_expand_eni_builtin): New function.
19558 (nios2_expand_builtin): Add arch field handling and new builtin
19560 * doc/extend.texi (Altera Nios II Built-in Functions): Document
19562 * doc/md.texi (Machine Constraints): Document U and v constraints.
19564 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19565 Cesar Philippidis <cesar@codesourcery.com>
19566 Chung-Lin Tang <cltang@codesourcery.com>
19568 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
19569 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
19570 callee_save_reg_size and uses_anonymous_args fields.
19571 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
19572 (nios2_create_cfa_notes): New function.
19573 (nios2_adjust_stack): New function for adjusting stack.
19574 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
19575 Use nios2_adjust_stack.
19576 (nios2_expand_epilogue): Likewise.
19577 (nios2_expand_return): New function.
19578 (nios2_can_use_return_insn): Update for CDX pop.n usage.
19579 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
19580 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
19581 * config/nios2/nios2.md (return): Use nios2_expand_return.
19583 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19584 Cesar Philippidis <cesar@codesourcery.com>
19585 Chung-Lin Tang <cltang@codesourcery.com>
19587 * config/nios2/predicates.md (pop_operation): New.
19588 (ldwm_operation, stwm_operation): New.
19589 (nios2_hard_register_operand): New.
19590 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
19591 (ldstwm_operation_p): Declare.
19592 (gen_ldstwm_peep): Declare.
19593 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
19594 (base_reg_adjustment_p): New.
19595 (pop_operation_p): New.
19596 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
19597 (nios2_ldstwm_regset_p): New.
19598 (ldstwm_operation_p): New.
19600 (nios2_ldst_parallel): New.
19601 (struct ldswm_operand): Declare.
19602 (compare_ldstwm_operands): New.
19603 (can_use_cdx_ldstw): New.
19604 (gen_ldstwm_peep): New.
19605 * config/nios2/nios2-ldstwm.sml: New.
19606 * config/nios2/nios2.md: Include ldstwm.md.
19607 * config/nios2/ldstwm.md: Generated.
19609 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19610 Cesar Philippidis <cesar@codesourcery.com>
19611 Chung-Lin Tang <cltang@codesourcery.com>
19613 * config/nios2/nios2.h (LABEL_ALIGN): Define.
19614 (REG_ALLOC_ORDER): Define.
19615 (ADJUST_REG_ALLOC_ORDER): Define.
19616 (HONOR_REG_ALLOC_ORDER): Define.
19617 (CDX_REG_P): Define.
19618 (ANDCLEAR_INT): Define.
19619 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
19620 (nios2_label_align): Declare.
19621 (nios2_cdx_narrow_form_p): Declare.
19622 (nios2_adjust_reg_alloc_order): Declare.
19623 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
19625 (nios2_large_unspec_reloc_p): New function, split from...
19626 (nios2_legitimate_pic_operand_p): ...here.
19627 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
19628 (nios2_print_operand_punct_valid_p): New.
19629 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
19630 (split_mem_address): New.
19631 (split_alu_insn): New.
19633 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
19634 (enum nios2_add_insn_kind): New.
19635 (nios2_add_insn_names, nios2_add_insn_narrow): New.
19636 (nios2_add_insn_classify): New.
19637 (nios2_add_insn_asm): New.
19638 (nios2_cdx_narrow_form_p): New.
19639 (label_align, min_labelno, max_labelno): New.
19640 (nios2_reorg): New.
19641 (nios2_label_align): New.
19642 (nios2_adjust_reg_alloc_order): New.
19643 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19644 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19645 * config/nios2/constraints.md (P): New constraint.
19646 * config/nios2/predicates.md (const_and_operand): New.
19647 (and_operand): New.
19648 (stack_memory_operand): New.
19649 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
19650 (length): Update to use nios2_cdx_narrow_form_p().
19651 (type): Add new insn type values.
19652 (control, alu, st, ld, shift): Update insn reservations with
19653 new insn type values.
19654 (*high, *lo_sum): Define new insn patterns for constant generation.
19655 (movqi_internal, movhi_internal, movsi_internal): Reduce
19656 alternatives, update asm template to handle CDX variants, update
19658 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
19659 template, update type attributes.
19660 (extendhisi2, extendqi<mode>2): Likewise.
19661 (addsi3): Change to use function for asm string.
19662 (subsi3): Add CDX notation to asm template, update type attributes.
19663 (negsi3, one_cmplsi3): Likewise.
19664 (andsi3): New pattern, specialized from logical patterns.
19665 (<code>si3): Remove and case, combine alternatives, update asm
19667 (<shift_op>si3): Add CDX notation, update type attributes.
19668 (rotrsi3): Update type attribute.
19669 (*merge, extzv, insv): New insn patterns.
19670 (return): Change to define_expand.
19671 (simple_return): Add CDX notation, update type attributes.
19672 (indirect_jump): Add CDX notation.
19673 (jump): Update asm cases, update length attribute expression.
19674 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
19675 (nios2_cbranch): Update asm cases and length attribute expression
19676 to handle CDX variants.
19677 (nios2_cmp<code>): Update asm template.
19678 (nop): Add CDX notation, update type attributes.
19679 (trap): Add CDX notation.
19680 (ctrapsi4): Update asm cases and length attribute expression to
19681 handle CDX variant.
19682 * doc/md.texi (Machine Constraints): Document P constraint.
19684 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19685 Cesar Philippidis <cesar@codesourcery.com>
19686 Chung-Lin Tang <cltang@codesourcery.com>
19688 * config/nios2/nios2.h (SMALL_INT12): New macro.
19689 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
19690 (nios2_valid_addr_expr_p): Use it.
19691 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
19692 with implicit "io" instructions on R2.
19693 * config/nios2/constraints.md (w): New constraint.
19694 * config/nios2/predicates.md (ldstio_memory_operand): New.
19695 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
19696 operand predicate and constraint.
19697 (ld<bh>io_signed, st<bhw>io>): Likewise.
19698 * doc/md.texi (Machine Constraints): Document w constraint.
19700 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19701 Cesar Philippidis <cesar@codesourcery.com>
19702 Chung-Lin Tang <cltang@codesourcery.com>
19704 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
19705 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
19706 Nios II architecture level.
19707 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
19708 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
19709 (OPTION_DEFAULT_SPECS): Define.
19710 (ASM_SPEC): Add -march= spec strings.
19711 * config/nios2/nios2.c (nios2_option_override): Check for
19712 conflicts involving new options.
19713 * config.gcc (nios2*-*-*): Support --with-arch=.
19714 * doc/invoke.texi (Option Summary, Nios II Options): Document
19715 -march=, -mbmx, and -mcdx.
19717 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
19719 PR rtl-optimization/66626
19720 * lra-constraints.c (lra_constraints): Prevent equivalence
19721 substitution for static chain pseudo in functions with nonlocal
19724 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19726 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
19727 (nios2_emit_stack_limit_check): Add size parameter. Handle
19728 -fstack-limit-symbol as well as -fstack-limit-register.
19729 (nios2_expand_prologue): Emit only a single stack limit check,
19730 even if multiple stack adjustments are required.
19731 (nios2_option_override): Diagnose unsupported combination of -fpic
19732 and -stack-limit-symbol.
19734 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
19736 * Makefile.in (top_srcdir): New.
19737 * configure.ac: Use AM_ZLIB.
19738 * configure: Regeneated.
19740 2015-07-14 Matthias Klose <doko@ubuntu.com>
19743 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
19745 2015-07-14 Richard Biener <rguenther@suse.de>
19747 PR tree-optimization/66863
19748 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
19749 what we record for conversion use stmt lhs inequalities.
19751 2015-07-14 Richard Biener <rguenther@suse.de>
19753 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
19754 (decision_tree::gen_gimple): Likewise.
19756 2015-07-14 Tom de Vries <tom@codesourcery.com>
19758 * gcc.c (greater_than_spec_func): Declare forward.
19759 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
19760 -ftree-parallelize-loops={0,1}.
19761 (static_spec_functions): Add greater_than_spec_func function with name
19763 (greater_than_spec_func): New function.
19765 2015-07-14 Richard Biener <rguenther@suse.de>
19767 * tree-ssa-dom.c (record_temporary_equivalences): Merge
19768 wideing type conversion case from record_equivalences_from_incoming_edge
19769 and use record_equality to record equivalences.
19770 (record_equivalences_from_incoming_edge): Call
19771 record_temporary_equivalences.
19773 2015-07-14 Richard Biener <rguenther@suse.de>
19775 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
19776 (struct if_expr): New.
19777 (struct with_expr): Likewise.
19778 (is_a_helper): Add helpers for if_expr and with_expr.
19779 (struct simplify): Add simplify_kind enum and member. Remove
19781 (simplify::simplify): Adjust.
19782 (lower_commutative): Adjust.
19783 (lower_opt_convert): Likewise.
19784 (lower_cond): Likewise.
19785 (replace_id): Handle with_expr and if_expr.
19786 (lower_for): Adjust.
19787 (dt_simplify::gen_1): New recursive worker, split out from ...
19788 (dt_simplify::gen): ... here. Deal with if and with expansion
19790 (capture_info::capture_info): Take context argument
19791 (capture_info::walk_result): Only analyze specific result.
19792 (parser::parse_result): New function.
19793 (parser::parse_simplify): Adjust to parse ifs with then end
19795 (parser::parse_if): Simplify.
19796 (parser::parse_pattern): Pass down simplify kind.
19797 * match.pd: Convert if structure to new syntax.
19799 2015-07-13 Marek Polacek <polacek@redhat.com>
19801 * rtl.c (rtx_equal_p_cb): Fix typo.
19803 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
19805 * omega.h: Don't include config.h, don't include params.h again if
19806 omega.h has already been included.
19807 * graphite-poly.h: Include sese.h.
19808 * graphite.c: Don't include sese.h, remove needless includes and
19809 minimize includes outside #ifdef HAVE_isl block.
19810 * graphite-blocking.c: Don't include sese.h, remove needless includes,
19811 and wrap entire file in #ifdef HAVE_isl
19812 * graphite-dependences.c: Likewise.
19813 * graphite-interchange.c: Likewise.
19814 * graphite-isl-ast-to-gimple.c: Likewise.
19815 * graphite-optimize-isl.c: Likewise.
19816 * graphite-poly.c: Likewise.
19817 * graphite-scop-detection.c: Likewise.
19818 * graphite-sese-to-poly.c: Likewise.
19820 2015-07-13 Tom de Vries <tom@codesourcery.com>
19822 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
19824 2015-07-13 Renlin Li <renlin.li@arm.com>
19827 * simplify-rtx.c (simplify_const_relational_operation): Add
19828 side_effects_p checks.
19830 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
19832 * bitmap.h: Fix double word typos.
19833 * builtins.c: Same.
19835 * cfgloopmanip.c: Same.
19838 * cgraphclones.c: Same.
19840 * config/aarch64/aarch64-protos.h: Same.
19841 * config/aarch64/aarch64.c: Same.
19842 * config/aarch64/aarch64.md: Same.
19843 * config/arm/arm.md: Same.
19844 * config/arm/arm1020e.md: Same.
19845 * config/arm/arm1026ejs.md: Same.
19846 * config/arm/arm926ejs.md: Same.
19847 * config/arm/fa526.md: Same.
19848 * config/arm/fa606te.md: Same.
19849 * config/arm/fa626te.md: Same.
19850 * config/arm/fa726te.md: Same.
19851 * config/arm/fmp626.md: Same.
19852 * config/darwin.c: Same.
19853 * config/epiphany/epiphany.c: Same.
19854 * config/frv/frv.c: Same.
19855 * config/ft32/ft32.c: Same.
19856 * config/gnu-user.h: Same.
19857 * config/h8300/constraints.md: Same.
19858 * config/i386/i386.c: Same.
19859 * config/i386/i386.md: Same.
19860 * config/iq2000/iq2000.md: Same.
19861 * config/mips/mips.c: Same.
19862 * config/mmix/mmix.md: Same.
19863 * config/moxie/moxie.c: Same.
19864 * config/nds32/nds32.md: Same.
19865 * config/pa/pa.h: Same.
19866 * config/rs6000/aix.h: Same.
19867 * config/rs6000/rs6000.h: Same.
19868 * config/sh/sh.c: Same.
19869 * config/tilegx/tilegx.md: Same.
19870 * config/tilepro/gen-mul-tables.cc: Same.
19873 * doc/invoke.texi: Same.
19875 * dwarf2out.c: Same.
19878 * genmatch.c: Same.
19879 * gimplify.c: Same.
19880 * hash-table.h: Same.
19881 * internal-fn.c: Same.
19883 * ipa-devirt.c: Same.
19886 * ipa-profile.c: Same.
19887 * ipa-prop.c: Same.
19888 * ipa-prop.h: Same.
19891 * reg-stack.c: Same.
19892 * regcprop.c: Same.
19897 * tree-inline.c: Same.
19898 * tree-sra.c: Same.
19899 * tree-ssa-dom.c: Same.
19900 * tree-ssa-loop-ivopts.c: Same.
19901 * tree-ssa-structalias.c: Same.
19902 * tree-ssa-tail-merge.c: Same.
19903 * tree-ssa-ter.c: Same.
19904 * tree-ssa-threadupdate.c: Same.
19905 * tree-ssa-uninit.c: Same.
19906 * tree-ssanames.c: Same.
19907 * tree-vect-loop-manip.c: Same.
19908 * tree-vrp.c: Same.
19910 * valtrack.c: Same.
19913 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
19915 PR middle-end/66726
19916 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
19917 tree_ssa_phiopt_worker): Call it.
19919 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
19921 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
19922 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
19925 2015-07-11 Marek Polacek <polacek@redhat.com>
19927 PR middle-end/66353
19928 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
19929 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
19930 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
19931 rather than bb_has_abnormal_call_pred.
19932 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
19933 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
19934 rather than bb_has_abnormal_call_pred.
19936 2015-07-10 Anatoly Sokolov <aesok@post.ru>
19938 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
19939 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
19940 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19941 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
19942 v850_legitimate_address_p): New functions.
19943 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
19945 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
19948 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
19949 indirect sibcall with register arguments if register available
19950 for argument passing.
19951 (init_cumulative_args): Set cfun->machine->arg_reg_available
19952 to (cum->nregs > 0) or to true if function has a variable
19954 (function_arg_advance_32): Set cfun->machine->arg_reg_available
19955 to false if cum->nregs <= 0.
19956 * config/i386/i386.h (machine_function): Add arg_reg_available.
19958 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
19960 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
19961 and gen_higpart instead of gen_rtx_SUBREG.
19962 * config/i386/i386.md
19963 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
19964 (read-modify peephole2): Use gen_lowpart instead of
19965 gen_rtx_SUBREG for operand 5.
19967 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
19969 * config/tilepro/gen-mul-tables.cc (main): Change include list for
19971 * config/tilepro/mul-tables.c: Regenerate.
19972 * config/tilegx/mul-tables.c: Regenerate.
19974 2015-07-10 Richard Biener <rguenther@suse.de>
19976 * fold-const.c (distribute_bit_expr): Remove.
19977 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
19978 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
19979 to A & (B | C) and simplifying A << C1 << C2 to ...
19980 * match.pd: ... patterns here.
19982 2015-07-10 Jiong Wang <jiong.wang@arm.com>
19984 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19985 Mark mem as READONLY and NOTRAP for PIC symbol.
19987 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
19989 * gimple-predict.h: New file.
19990 (gimple_predict_predictor, gimple_predict_set_predictor,
19991 gimple_predict_outcome, gimple_predict_set_outcome,
19992 gimple_build_predict): Relocate here.
19993 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
19994 gimple_predict_outcome, gimple_predict_set_outcome): Move to
19996 * gimple.c (gimple_build_predict): Move to gimple-predict.h
19997 * basic-block.h: Don't include cfghooks.h.
19998 * backend.h: Don't include predict.h.
19999 * cfghooks.h: Include predict.h.
20000 * gimple-pretty-print.c: Include gimple-predict.h.
20001 * gimplify.c: Likwise.
20002 * predict.c: Adjust includes.
20003 * tree-inline.c: Likewise.
20004 * asan.c: Likewise.
20005 * auto-inc-dec.c: Likewise.
20006 * auto-profile.c: Likewise.
20007 * bb-reorder.c: Likewise.
20008 * builtins.c: Likewise.
20009 * caller-save.c: Likewise.
20010 * calls.c: Likewise.
20011 * cfganal.c: Likewise.
20012 * cfgbuild.c: Likewise.
20014 * cfgcleanup.c: Likewise.
20015 * cfgexpand.c: Likewise.
20016 * cfghooks.c: Likewise.
20017 * cfgloopanal.c: Likewise.
20018 * cfgloop.c: Likewise.
20019 * cfgloopmanip.c: Likewise.
20020 * cfgrtl.c: Likewise.
20021 * cgraph.c: Likewise.
20022 * cgraphunit.c: Likewise.
20023 * combine.c: Likewise.
20024 * cprop.c: Likewise.
20027 * dojump.c: Likewise.
20029 * except.c: Likewise.
20030 * expmed.c: Likewise.
20031 * expr.c: Likewise.
20032 * final.c: Likewise.
20033 * fold-const.c: Likewise.
20034 * function.c: Likewise.
20035 * fwprop.c: Likewise.
20036 * gcc-plugin.h: Likewise.
20037 * gcse.c: Likewise.
20038 * genattrtab.c: Likewise.
20039 * genemit.c: Likewise.
20040 * gengtype.c: Likewise.
20041 * genopinit.c: Likewise.
20042 * genoutput.c: Likewise.
20043 * genpreds.c: Likewise.
20044 * genrecog.c: Likewise.
20045 * gimple-fold.c: Likewise.
20046 * gimple-iterator.c: Likewise.
20047 * gimple-ssa-isolate-paths.c: Likewise.
20048 * gimple-ssa-strength-reduction.c: Likewise.
20049 * graph.c: Likewise.
20050 * graphite-blocking.c: Likewise.
20051 * graphite.c: Likewise.
20052 * graphite-dependences.c: Likewise.
20053 * graphite-interchange.c: Likewise.
20054 * graphite-isl-ast-to-gimple.c: Likewise.
20055 * graphite-optimize-isl.c: Likewise.
20056 * graphite-poly.c: Likewise.
20057 * graphite-scop-detection.c: Likewise.
20058 * graphite-sese-to-poly.c: Likewise.
20059 * haifa-sched.c: Likewise.
20060 * ifcvt.c: Likewise.
20061 * internal-fn.c: Likewise.
20062 * ipa-cp.c: Likewise.
20063 * ipa-profile.c: Likewise.
20064 * ipa-split.c: Likewise.
20065 * ipa-utils.c: Likewise.
20066 * ira-build.c: Likewise.
20067 * ira-color.c: Likewise.
20068 * ira-conflicts.c: Likewise.
20069 * ira-costs.c: Likewise.
20070 * ira-emit.c: Likewise.
20071 * ira-lives.c: Likewise.
20072 * jump.c: Likewise.
20073 * loop-doloop.c: Likewise.
20074 * loop-init.c: Likewise.
20075 * loop-invariant.c: Likewise.
20076 * loop-unroll.c: Likewise.
20077 * lower-subreg.c: Likewise.
20078 * lra-assigns.c: Likewise.
20080 * lra-coalesce.c: Likewise.
20081 * lra-constraints.c: Likewise.
20082 * lra-lives.c: Likewise.
20083 * lto-cgraph.c: Likewise.
20084 * lto-streamer-in.c: Likewise.
20085 * mode-switching.c: Likewise.
20086 * modulo-sched.c: Likewise.
20087 * omp-low.c: Likewise.
20088 * optabs.c: Likewise.
20089 * passes.c: Likewise.
20090 * postreload.c: Likewise.
20091 * postreload-gcse.c: Likewise.
20092 * profile.c: Likewise.
20093 * recog.c: Likewise.
20094 * regstat.c: Likewise.
20095 * reload1.c: Likewise.
20096 * reorg.c: Likewise.
20097 * rtlanal.c: Likewise.
20098 * sched-ebb.c: Likewise.
20099 * sel-sched-ir.c: Likewise.
20100 * sese.c: Likewise.
20101 * shrink-wrap.c: Likewise.
20102 * simplify-rtx.c: Likewise.
20103 * stmt.c: Likewise.
20104 * store-motion.c: Likewise.
20105 * tracer.c: Likewise.
20106 * trans-mem.c: Likewise.
20107 * tree-call-cdce.c: Likewise.
20108 * tree-cfg.c: Likewise.
20109 * tree-cfgcleanup.c: Likewise.
20110 * tree-chkp.c: Likewise.
20111 * tree-complex.c: Likewise.
20112 * tree-eh.c: Likewise.
20113 * tree-if-conv.c: Likewise.
20114 * tree-loop-distribution.c: Likewise.
20115 * tree-outof-ssa.c: Likewise.
20116 * tree-parloops.c: Likewise.
20117 * tree-predcom.c: Likewise.
20118 * tree-pretty-print.c: Likewise.
20119 * tree-profile.c: Likewise.
20120 * tree-sra.c: Likewise.
20121 * tree-ssa.c: Likewise.
20122 * tree-ssa-coalesce.c: Likewise.
20123 * tree-ssa-dce.c: Likewise.
20124 * tree-ssa-dom.c: Likewise.
20125 * tree-ssa-forwprop.c: Likewise.
20126 * tree-ssa-ifcombine.c: Likewise.
20127 * tree-ssa-loop-ch.c: Likewise.
20128 * tree-ssa-loop-im.c: Likewise.
20129 * tree-ssa-loop-ivcanon.c: Likewise.
20130 * tree-ssa-loop-ivopts.c: Likewise.
20131 * tree-ssa-loop-manip.c: Likewise.
20132 * tree-ssa-loop-prefetch.c: Likewise.
20133 * tree-ssa-loop-unswitch.c: Likewise.
20134 * tree-ssa-math-opts.c: Likewise.
20135 * tree-ssa-phiopt.c: Likewise.
20136 * tree-ssa-pre.c: Likewise.
20137 * tree-ssa-reassoc.c: Likewise.
20138 * tree-ssa-sink.c: Likewise.
20139 * tree-ssa-tail-merge.c: Likewise.
20140 * tree-ssa-threadedge.c: Likewise.
20141 * tree-ssa-threadupdate.c: Likewise.
20142 * tree-switch-conversion.c: Likewise.
20143 * tree-tailcall.c: Likewise.
20144 * tree-vect-data-refs.c: Likewise.
20145 * tree-vect-loop.c: Likewise.
20146 * tree-vect-loop-manip.c: Likewise.
20147 * tree-vectorizer.c: Likewise.
20148 * tree-vrp.c: Likewise.
20149 * ubsan.c: Likewise.
20150 * value-prof.c: Likewise.
20151 * varasm.c: Likewise.
20152 * var-tracking.c: Likewise.
20153 * config/aarch64/aarch64-builtins.c: Likewise.
20154 * config/aarch64/aarch64.c: Likewise.
20155 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20156 * config/alpha/alpha.c: Likewise.
20157 * config/arc/arc.c: Likewise.
20158 * config/arm/arm.c: Likewise.
20159 * config/avr/avr.c: Likewise.
20160 * config/bfin/bfin.c: Likewise.
20161 * config/c6x/c6x.c: Likewise.
20162 * config/cr16/cr16.c: Likewise.
20163 * config/cris/cris.c: Likewise.
20164 * config/darwin.c: Likewise.
20165 * config/darwin-c.c: Likewise.
20166 * config/epiphany/epiphany.c: Likewise.
20167 * config/epiphany/mode-switch-use.c: Likewise.
20168 * config/epiphany/resolve-sw-modes.c: Likewise.
20169 * config/fr30/fr30.c: Likewise.
20170 * config/frv/frv.c: Likewise.
20171 * config/ft32/ft32.c: Likewise.
20172 * config/h8300/h8300.c: Likewise.
20173 * config/i386/i386.c: Likewise.
20174 * config/i386/winnt.c: Likewise.
20175 * config/ia64/ia64.c: Likewise.
20176 * config/iq2000/iq2000.c: Likewise.
20177 * config/lm32/lm32.c: Likewise.
20178 * config/m32c/m32c.c: Likewise.
20179 * config/m32r/m32r.c: Likewise.
20180 * config/m68k/m68k.c: Likewise.
20181 * config/mcore/mcore.c: Likewise.
20182 * config/mep/mep.c: Likewise.
20183 * config/microblaze/microblaze.c: Likewise.
20184 * config/mips/mips.c: Likewise.
20185 * config/mmix/mmix.c: Likewise.
20186 * config/mn10300/mn10300.c: Likewise.
20187 * config/moxie/moxie.c: Likewise.
20188 * config/msp430/msp430.c: Likewise.
20189 * config/nds32/nds32.c: Likewise.
20190 * config/nds32/nds32-cost.c: Likewise.
20191 * config/nds32/nds32-fp-as-gp.c: Likewise.
20192 * config/nds32/nds32-intrinsic.c: Likewise.
20193 * config/nds32/nds32-isr.c: Likewise.
20194 * config/nds32/nds32-md-auxiliary.c: Likewise.
20195 * config/nds32/nds32-memory-manipulation.c: Likewise.
20196 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20197 * config/nds32/nds32-predicates.c: Likewise.
20198 * config/nios2/nios2.c: Likewise.
20199 * config/nvptx/nvptx.c: Likewise.
20200 * config/pa/pa.c: Likewise.
20201 * config/pdp11/pdp11.c: Likewise.
20202 * config/rl78/rl78.c: Likewise.
20203 * config/rs6000/rs6000.c: Likewise.
20204 * config/rx/rx.c: Likewise.
20205 * config/s390/s390.c: Likewise.
20206 * config/sh/sh.c: Likewise.
20207 * config/sh/sh-mem.cc: Likewise.
20208 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20209 * config/sh/sh_treg_combine.cc: Likewise.
20210 * config/sparc/sparc.c: Likewise.
20211 * config/spu/spu.c: Likewise.
20212 * config/stormy16/stormy16.c: Likewise.
20213 * config/tilegx/tilegx.c: Likewise.
20214 * config/tilepro/tilepro.c: Likewise.
20215 * config/v850/v850.c: Likewise.
20216 * config/vax/vax.c: Likewise.
20217 * config/visium/visium.c: Likewise.
20218 * config/xtensa/xtensa.c: Likewise.
20220 2015-07-10 Richard Biener <rguenther@suse.de>
20222 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
20223 (decision_tree::gen_gimple): Likewise.
20224 (decision_tree::gen_generic): Likewise.
20226 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
20229 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
20230 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
20232 2015-07-10 Jakub Jelinek <jakub@redhat.com>
20234 PR middle-end/66820
20235 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
20236 or ORT_TASK contexts.
20237 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
20240 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20242 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
20245 2015-07-10 Tom de Vries <tom@codesourcery.com>
20247 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
20248 insert nit + 1 bound.
20250 2015-07-10 Richard Biener <rguenther@suse.de>
20252 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
20253 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
20254 (if_convertible_loop_p_1): For this always compute bb predicates.
20255 (if_convertible_loop_p): And free them.
20257 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20259 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
20262 2015-07-10 Richard Biener <rguenther@suse.de>
20264 PR tree-optimization/66823
20265 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
20266 inverted predicate.
20268 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
20270 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
20271 to handle mips[32|64]r3 and mips[32|64]r5.
20273 2015-07-09 Jakub Jelinek <jakub@redhat.com>
20275 PR middle-end/66633
20276 * tree-nested.c (get_static_chain): Or in a flag into
20277 info->static_chain_added.
20278 (get_frame_field, get_nonlocal_debug_decl): Likewise.
20279 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
20280 2015-07-01 changes.
20281 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
20282 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
20285 PR tree-optimization/66718
20286 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
20288 (vect_simd_lane_linear): New function.
20289 (vectorizable_simd_clone_call): Support using linear arguments for
20290 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
20292 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20295 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
20297 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
20299 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
20300 Use machine mode, not enum machine_mode in the prototype.
20302 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
20303 classify 128-bit floating point support.
20304 (FLOAT128_IBM_P): Likewise.
20305 (FLOAT128_VECTOR_P): Likewise.
20306 (FLOAT128_2REG_P): Likewise.
20307 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
20308 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
20309 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
20310 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
20312 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
20313 tests against TFmode/TDmode, since those modes do not use VSX
20315 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
20317 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
20318 tests against TFmode, etc.
20319 (invalid_e500_subreg): Add tests against IFmode/KFmode.
20320 (reg_offset_addressing_ok_p): Likewise.
20321 (rs6000_legitimate_offset_address_p): Likewise.
20322 (rs6000_legitimize_address): Likewise.
20323 (rs6000_legitimize_reload_address): Likewise.
20324 (rs6000_legitimate_address_p): Clean up tests against TFmode and
20325 TDmode to use the new helper macros, which will include IFmode and
20327 (rs6000_emit_move): Likewise.
20328 (rs6000_darwin64_record_arg_recurse): Likewise.
20329 (print_operand): Likewise.
20330 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
20331 that uses a single vector register as a vector and not as a
20332 floating point register in terms of the calling sequence.
20333 (rs6000_discover_homogeneous_aggregate): Likewise.
20334 (rs6000_return_in_memory): Likewise.
20335 (init_cumulative_args): Likewise.
20336 (rs6000_function_arg_boundary): Likewise.
20337 (rs6000_function_arg_advance_1): Likewise.
20338 (rs6000_function_arg): Likewise.
20339 (rs6000_pass_by_reference): Likewise.
20340 (rs6000_gimplify_va_arg): Likewise.
20341 (rs6000_secondary_reload_memory): Use machine_mode not enum
20343 (rs6000_split_multireg_move): Use new helper macros.
20344 (spe_func_has_64bit_regs_p): Likewise.
20345 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
20346 (output_toc): Use new helper macros.
20347 (rs6000_register_move_cost): Likewise.
20348 (rs6000_function_value): Add IEEE 128-bit floating point calling
20350 (rs6000_libcall_value): Likewise.
20351 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
20352 floating point support.
20353 (rs6000_vector_mode_supported_p): Likewise.
20355 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
20357 PR rtl-optimization/66782
20358 * lra-int.h (struct lra_insn_recog_data): Add comment about
20359 clobbered hard regs for arg_hard_regs.
20360 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
20361 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
20362 Add condition for processing used hard regs.
20363 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
20364 Process clobbered hard regs.
20366 2015-07-09 Michael Matz <matz@suse.de>
20368 * genmatch.c (fprintf_indent): New function.
20369 (operand::gen_transform): Add indent parameter.
20370 (expr::gen_transform, c_expr::gen_transform,
20371 capture::gen_transform): Ditto and use fprintf_indent.
20372 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
20373 (dt_operand::gen, dt_operand::gen_predicate,
20374 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
20375 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
20376 (decision_tree::gen_gimple): Adjust calls and indent generated
20378 (decision_tree::gen_generic): Ditto.
20379 (write_predicate): Ditto.
20381 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20384 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
20385 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
20386 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
20387 {GENERAL,SSE,MMX}_REG_P where appropriate.
20389 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
20391 * lto-streamer.h: Don't include target.h and alloc-pool.h.
20392 * builtins.c: Adjust includes.
20393 * gimple.c: Likewise.
20394 * ipa-icf.c: Likewise.
20395 * lto-opts.c: Likewise.
20396 * ipa-reference.c: Likewise.
20397 * lto-section-out.c: Likewise.
20398 * lto-streamer-in.c: Likewise.
20399 * lto-streamer-out.c: Likewise.
20400 * opts-global.c: Likewise.
20401 * symtab.c: Likewise.
20402 * tree-chkp.c: Likewise.
20403 * tree-ssa-live.c: Likewise.
20404 * tree-streamer-in.c: Likewise.
20405 * tree-streamer-out.c: Likewise.
20406 * config/darwin.c: Likewise.
20407 * config/i386/winnt.c: Likewise.
20409 2015-07-09 Richard Biener <rguenther@suse.de>
20411 * genmatch.c (struct expr): Add force_single_use flag.
20412 (expr::expr): Add copy constructor.
20413 (capture_info::walk_match): Gather force_single_use captures.
20414 (expr::gen_transform): Use possibly NULLified sequence.
20415 (dt_simplify::gen): Apply single-use restrictions by NULLifying
20416 seq if any constrained expr is not single-use.
20417 (parser::parse_expr): Refactor to allow multiple flags. Handle
20418 's' flag to force an expression have a single-use if the pattern
20419 simplifies to more than one statement.
20420 * match.pd: Convert most single_use conditionals to :s flags.
20422 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20424 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
20425 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20426 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
20428 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
20430 * flags.h: Don't include flag-types.h or options.h.
20431 * opts-common.c: Adjust includes.
20432 * opts-global.c: Likewise.
20433 * common/config/epiphany/epiphany-common.c: Likewise.
20435 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20438 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
20441 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20444 * config/i386/i386.c (ix86_return_in_memory): Return true
20445 if int_size_in_bytes returns negative for IA MCU.
20447 2015-07-09 Marek Polacek <polacek@redhat.com>
20449 PR tree-optimization/66718
20450 * Makefile.in (OBJS): Add gimple-laddress.o.
20451 * passes.def: Schedule pass_laddress.
20452 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
20453 * tree-pass.h (make_pass_laddress): Declare.
20454 * gimple-laddress.c: New file.
20456 2015-07-09 Richard Biener <rguenther@suse.de>
20458 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
20460 2015-07-09 Richard Biener <rguenther@suse.de>
20462 PR tree-optimization/66807
20463 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
20465 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
20467 * function.c (stack_protect_epilogue): Use if rather than switch for
20468 check targetm.have_stack_protect_test.
20470 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20472 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
20473 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
20474 * config/arc/arc.h: Likewise.
20475 * config/arm/arm.h: Likewise.
20476 * config/bfin/bfin.h: Likewise.
20477 * config/epiphany/epiphany.h: Likewise.
20478 * config/frv/frv.h: Likewise.
20479 * config/ia64/ia64.h: Likewise.
20480 * config/iq2000/iq2000.h: Likewise.
20481 * config/lm32/lm32.h: Likewise.
20482 * config/m32r/m32r.h: Likewise.
20483 * config/mcore/mcore.h: Likewise.
20484 * config/mep/mep.h: Likewise.
20485 * config/microblaze/microblaze.h: Likewise.
20486 * config/mips/mips.h: Likewise.
20487 * config/mmix/mmix.h: Likewise.
20488 * config/mn10300/mn10300.h: Likewise.
20489 * config/nds32/nds32.h: Likewise.
20490 * config/nios2/nios2.h: Likewise.
20491 * config/pa/pa.h: Likewise.
20492 * config/rl78/rl78.h: Likewise.
20493 * config/sh/sh.h: Likewise.
20494 * config/sparc/sparc.h: Likewise.
20495 * config/stormy16/stormy16.h: Likewise.
20496 * config/tilegx/tilegx.h: Likewise.
20497 * config/tilepro/tilepro.h: Likewise.
20498 * config/v850/v850.h: Likewise.
20499 * config/xtensa/xtensa.h: Likewise.
20500 * doc/tm.texi: Regenerate.
20501 * doc/tm.texi.in: Adjust.
20502 * combine.c (simplify_set): Likewise.
20503 (simplify_comparison): Likewise.
20504 * expr.c (store_constructor): Likewise.
20505 * internal-fn.c (expand_arith_overflow): Likewise.
20506 * reload.c (push_reload): Likewise.
20507 (find_reloads): Likewise.
20508 (find_reloads_subreg_address): Likewise.
20509 * reload1.c (eliminate_regs_1): Likewise.
20510 * rtlanal.c (nonzero_bits1): Likewise.
20511 (num_sign_bit_copies1): Likewise.
20512 * simplify-rtx.c (simplify_truncation): Likewise.
20514 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20516 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
20517 of AUTO_INC_DEC with the preprocessor.
20518 * combine.c (combine_instructions): Likewise.
20519 (can_combine_p): Likewise.
20520 (try_combine): Likewise.
20521 * emit-rtl.c (try_split): Likewise.
20522 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20523 * lower-subreg.c (resolve_simple_move): Likewise.
20524 * lra.c (update_inc_notes): Likewise.
20525 * recog.c (asm_operand_ok): Likewise.
20526 (constrain_operands): Likewise.
20527 * regrename.c (scan_rtx_address): Likewise.
20528 * reload.c (update_auto_inc_notes): Likewise.
20529 (reg_inc_found_and_valid_p): Likewise.
20530 * reload1.c (reload): Likewise.
20531 (emit_input_reload_insns): Likewise.
20532 (delete_output_reload): Likewise.
20533 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20534 * valtrack.c (cleanup_auto_inc_dec): Likewise.
20536 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20538 * rtl.h: Always define AUTO_INC_DEC.
20539 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
20540 * combine.c (combine_instructions): Likewise.
20541 (can_combine_p): Likewise.
20542 (try_combine): Likewise.
20543 * emit-rtl.c (try_split): Likewise.
20544 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20545 * lower-subreg.c (resolve_simple_move): Likewise.
20546 * lra.c (update_inc_notes): Likewise.
20547 * recog.c (asm_operand_ok): Likewise.
20548 (constrain_operands): Likewise.
20549 * regrename.c (scan_rtx_address): Likewise.
20550 * reload.c (update_auto_inc_notes): Likewise.
20551 (find_equiv_reg): Likewise.
20552 * reload1.c (reload): Likewise.
20553 (reload_as_needed): Likewise.
20554 (choose_reload_regs): Likewise.
20555 (emit_input_reload_insns): Likewise.
20556 (delete_output_reload): Likewise.
20557 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20558 * valtrack.c (cleanup_auto_inc_dec): Likewise.
20560 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20562 * combine.c (can_combine_def_p): Don't check the value of
20563 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
20564 (combinable_i3pat): Likewise.
20565 (mark_used_regs_combine): Likewise.
20566 * regrename.c (rename_chains): Likewise.
20567 * reload.c (find_reloads_address): Likewise.
20568 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20570 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20572 * combine.c (update_rsp_from_reg_equal): Don't check if
20573 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
20574 (reg_nonzero_bits_for_combine): Likewise.
20575 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
20577 * config/frv/frv.h: Likewise.
20578 * config/lm32/lm32.h: Likewise.
20579 * config/mep/mep.h: Likewise.
20580 * config/mips/mips.h: Likewise.
20581 * config/rs6000/rs6000.h: Likewise.
20582 * config/sh/sh.h: Likewise.
20583 * config/tilegx/tilegx.h (enum reg_class): Likewise.
20584 * config/tilepro/tilepro.h: Likewise.
20585 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
20586 * doc/tm.texi: Regenerate.
20587 * doc/tm.texi.in: Adjust.
20588 * rtlanal.c (nonzero_bits1): Likewise.
20590 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20592 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
20593 with the preprocessor.
20594 (combine_instructions): Likewise.
20595 (try_combine): Likewise.
20597 (distribute_notes): Likewise.
20599 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20601 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
20603 (simplify_set): Likewise.
20604 * cse.c (cse_insn): Likewise.
20605 * fold-const.c (fold_single_bit_test): Likewise.
20606 (fold_unary_loc): Likewise.
20607 * postreload.c (reload_cse_simplify_set): Likewise.
20608 (reload_cse_simplify_operands): Likewise.
20610 2015-07-08 Jiong Wang <jiong.wang@arm.com>
20612 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
20613 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
20615 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20618 * config/i386/x86intrin.h: Include <adxintrin.h> even if
20619 __iamcu__ is defined.
20621 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20623 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
20625 2015-07-08 Iain Sandoe <iain@codesourcery.com>
20628 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
20629 names from preservation.
20631 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20634 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
20636 (function_arg_advance_32): Don't pass vectors in registers for
20638 (function_arg_32): Likewise.
20639 (ix86_return_in_memory): Don't return vectors in registers for
20642 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
20644 PR middle-end/66334
20645 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
20646 hard regno live at the start of BB with incoming abnormal edges.
20647 * lra-lives.c (process_bb_lives): Ditto.
20649 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
20652 * config/nvptx/mkoffload.c (main): Create an offload image only in
20653 64-bit configurations.
20655 2015-07-08 Martin Liska <mliska@suse.cz>
20658 * tree-sra.c (create_access_1): Call ctor without brackets.
20659 (create_artificial_child_access): Likewise.
20661 2015-07-08 Richard Biener <rguenther@suse.de>
20663 PR tree-optimization/66793
20664 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
20665 Properly split the block after stmts ending it.
20667 2015-07-08 Richard Biener <rguenther@suse.de>
20669 PR tree-optimization/66794
20670 * passes.c (execute_function_todo): Assert that post-dominators
20672 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
20673 Free post-dominators.
20675 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20677 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
20680 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20682 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
20683 more than or equal 8 and less than 32 when optimizing for size.
20685 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20687 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
20688 COSTS_N_INSNS (1) and increment it appropriately throughout the
20691 2015-07-08 Richard Biener <rguenther@suse.de>
20693 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
20695 2015-07-08 Alan Modra <amodra@gmail.com>
20697 * target.def (rtx_costs): Remove "code" param, add "mode".
20698 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
20699 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
20700 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
20701 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
20702 call. Track mode when given in rtx.
20703 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
20704 (default_address_cost): Pass Pmode to rtx_cost.
20705 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
20706 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
20708 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
20709 (notreg_cost): Add mode param. Use it.
20710 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
20711 mode param and pass to set_src_cost. Update all calls.
20712 (hash_scan_set): Formatting.
20713 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
20714 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
20716 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
20717 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
20718 emit_store_flag): Update set_src_cost and rtx_cost calls.
20719 * auto-inc-dec.c (attempt_change): Likewise.
20720 * calls.c (precompute_register_parameters): Likewise.
20721 * combine.c (expand_compound_operation, make_extraction,
20722 force_to_mode, distribute_and_simplify_rtx): Likewise.
20723 * dojump.c (prefer_and_bit_test): Likewise.
20724 * dse.c (find_shift_sequence): Likewise.
20725 * expr.c (compress_float_constant): Likewise.
20726 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
20727 * ifcvt.c (noce_try_sign_mask): Likewise.
20728 * loop-doloop.c (doloop_optimize): Likewise.
20729 * loop-invariant.c (create_new_invariant): Likewise.
20730 * lower-subreg.c (shift_cost, compute_costs): Likewise.
20731 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
20732 lshift_cheap_p): Likewise.
20733 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
20734 try_replace_in_use, reload_cse_move2add): Likewise.
20735 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
20737 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20738 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20739 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
20740 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20741 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
20742 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
20744 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
20745 * config/arc/arc.c (arc_rtx_costs): Likewise.
20746 * config/arm/arm.c (arm_rtx_costs): Likewise.
20747 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
20748 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
20749 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
20750 * config/cris/cris.c (cris_rtx_costs): Likewise.
20751 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
20752 * config/frv/frv.c (frv_rtx_costs): Likewise.
20753 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
20754 * config/i386/i386.c (ix86_rtx_costs): Likewise.
20755 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
20756 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
20757 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
20758 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
20759 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
20760 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
20761 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
20762 * config/mep/mep.c (mep_rtx_cost): Likewise.
20763 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
20764 * config/mips/mips.c (mips_rtx_costs): Likewise.
20765 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
20766 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
20767 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
20768 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
20769 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
20770 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
20771 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
20772 * config/pa/pa.c (hppa_rtx_costs): Likewise.
20773 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
20774 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
20775 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
20776 * config/s390/s390.c (s390_rtx_costs): Likewise.
20777 * config/sh/sh.c (sh_rtx_costs): Likewise.
20778 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
20779 * config/spu/spu.c (spu_rtx_costs): Likewise.
20780 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
20781 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
20782 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
20783 * config/v850/v850.c (v850_rtx_costs): Likewise.
20784 * config/vax/vax.c (vax_rtx_costs): Likewise.
20785 * config/visium/visium.c (visium_rtx_costs): Likewise.
20786 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
20787 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
20788 "code" param, and pass as outer_code to first rtx_cost call. Pass
20789 mode to rtx_cost calls.
20790 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
20792 (aarch64_rtx_costs_wrapper): Update.
20793 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
20794 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
20796 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
20797 and rtx_cost calls.
20798 (avr_operand_rtx_cost): Similarly.
20799 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
20800 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
20801 * config/mips/mips.c (mips_stack_address_p): Comment typo.
20802 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
20803 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
20804 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
20806 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
20807 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
20808 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
20809 * doc/tm.texi: Regenerate.
20811 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
20813 * tree-core.h: Include symtab.h.
20814 * rtl.h: Include hard-reg-set.h but not flags.h.
20815 (HARD_CONST): Remove condition compilation involving HARD_CONST since
20816 hard-reg-set.h is always included.
20817 * regs.h: Don't include hard-reg-set.h or rtl.h.
20818 * cfg.h: Include dominance.h.
20819 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
20820 * backend.h: New. Aggregate commonly used backend header files.
20821 * gimple-ssa.h: Don't include tree-hasher.h.
20822 * ssa.h: New. Aggregate commonly used SSA header files.
20823 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
20824 * sel-sched-ir.h: Flatten includes.
20825 * lra-int.h: Flatten completely.
20826 * sel-sched-dump.h: Flatten includes.
20827 * ira-int.h: Flatten includes.
20828 * gimple-streamer.h: Remove all includes.
20829 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
20830 * resource.h: Flatten hard-reg-set.h and df.h.
20831 * sched-int.h: Flatten insn-arrt.h and df.h.
20832 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
20833 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
20834 * genattrtab.c (write_header): Adjust generated includes.
20835 * genautomata.c (main): Likewise.
20836 * genconditions.c (write-header): Likewise.
20837 * genemit.c (main): Likewise.
20838 * gengtype.c (open_base_files): Likewise.
20839 * genopinit.c (main): Likewise.
20840 * genoutput.c (output_prologue): Likewise.
20841 * genpeep.c (main): Likewise.
20842 * genpreds.c (write_insn_preds_c): Likewise.
20843 * genrecog.c (write_header): Likewise.
20844 * alias.c: Adjust includes.
20845 * asan.c: Likewise.
20846 * attribs.c: Likewise.
20847 * auto-inc-dec.c: Likewise.
20848 * auto-profile.c: Likewise.
20849 * bb-reorder.c: Likewise.
20850 * bt-load.c: Likewise.
20851 * builtins.c: Likewise.
20852 * caller-save.c: Likewise.
20853 * calls.c: Likewise.
20854 * ccmp.c: Likewise.
20856 * cfganal.c: Likewise.
20857 * cfgbuild.c: Likewise.
20858 * cfgcleanup.c: Likewise.
20859 * cfgexpand.c: Likewise.
20860 * cfghooks.c: Likewise.
20861 * cfgloop.c: Likewise.
20862 * cfgloopanal.c: Likewise.
20863 * cfgloopmanip.c: Likewise.
20864 * cfgrtl.c: Likewise.
20865 * cgraph.c: Likewise.
20866 * cgraphbuild.c: Likewise.
20867 * cgraphclones.c: Likewise.
20868 * cgraphunit.c: Likewise.
20869 * cilk-common.c: Likewise.
20870 * combine-stack-adj.c: Likewise.
20871 * combine.c: Likewise.
20872 * compare-elim.c: Likewise.
20873 * convert.c: Likewise.
20874 * coverage.c: Likewise.
20875 * cppbuiltin.c: Likewise.
20876 * cprop.c: Likewise.
20878 * cselib.c: Likewise.
20879 * data-streamer-in.c: Likewise.
20880 * data-streamer-out.c: Likewise.
20881 * data-streamer.c: Likewise.
20882 * dbxout.c: Likewise.
20885 * debug.c: Likewise.
20886 * df-core.c: Likewise.
20887 * df-problems.c: Likewise.
20888 * df-scan.c: Likewise.
20890 * dojump.c: Likewise.
20891 * dominance.c: Likewise.
20892 * domwalk.c: Likewise.
20893 * double-int.c: Likewise.
20895 * dumpfile.c: Likewise.
20896 * dwarf2asm.c: Likewise.
20897 * dwarf2cfi.c: Likewise.
20898 * dwarf2out.c: Likewise.
20899 * emit-rtl.c: Likewise.
20900 * et-forest.c: Likewise.
20901 * except.c: Likewise.
20902 * explow.c: Likewise.
20903 * expmed.c: Likewise.
20904 * expr.c: Likewise.
20905 * final.c: Likewise.
20906 * fixed-value.c: Likewise.
20907 * fold-const.c: Likewise.
20908 * function.c: Likewise.
20909 * fwprop.c: Likewise.
20910 * gcc-plugin.h: Likewise.
20911 * gcse-common.c: Likewise.
20912 * gcse.c: Likewise.
20913 * generic-match-head.c: Likewise.
20914 * ggc-page.c: Likewise.
20915 * gimple-builder.c: Likewise.
20916 * gimple-expr.c: Likewise.
20917 * gimple-fold.c: Likewise.
20918 * gimple-iterator.c: Likewise.
20919 * gimple-low.c: Likewise.
20920 * gimple-match-head.c: Likewise.
20921 * gimple-pretty-print.c: Likewise.
20922 * gimple-ssa-isolate-paths.c: Likewise.
20923 * gimple-ssa-strength-reduction.c: Likewise.
20924 * gimple-streamer-in.c: Likewise.
20925 * gimple-streamer-out.c: Likewise.
20926 * gimple-walk.c: Likewise.
20927 * gimple.c: Likewise.
20928 * gimplify-me.c: Likewise.
20929 * gimplify.c: Likewise.
20930 * godump.c: Likewise.
20931 * graph.c: Likewise.
20932 * graphite-blocking.c: Likewise.
20933 * graphite-dependences.c: Likewise.
20934 * graphite-interchange.c: Likewise.
20935 * graphite-isl-ast-to-gimple.c: Likewise.
20936 * graphite-optimize-isl.c: Likewise.
20937 * graphite-poly.c: Likewise.
20938 * graphite-scop-detection.c: Likewise.
20939 * graphite-sese-to-poly.c: Likewise.
20940 * graphite.c: Likewise.
20941 * haifa-sched.c: Likewise.
20942 * hw-doloop.c: Likewise.
20943 * ifcvt.c: Likewise.
20944 * init-regs.c: Likewise.
20945 * internal-fn.c: Likewise.
20946 * ipa-chkp.c: Likewise.
20947 * ipa-comdats.c: Likewise.
20948 * ipa-cp.c: Likewise.
20949 * ipa-devirt.c: Likewise.
20950 * ipa-icf-gimple.c: Likewise.
20951 * ipa-icf.c: Likewise.
20952 * ipa-inline-analysis.c: Likewise.
20953 * ipa-inline-transform.c: Likewise.
20954 * ipa-inline.c: Likewise.
20955 * ipa-polymorphic-call.c: Likewise.
20956 * ipa-profile.c: Likewise.
20957 * ipa-prop.c: Likewise.
20958 * ipa-pure-const.c: Likewise.
20959 * ipa-ref.c: Likewise.
20960 * ipa-reference.c: Likewise.
20961 * ipa-split.c: Likewise.
20962 * ipa-utils.c: Likewise.
20963 * ipa-visibility.c: Likewise.
20965 * ira-build.c: Likewise.
20966 * ira-color.c: Likewise.
20967 * ira-conflicts.c: Likewise.
20968 * ira-costs.c: Likewise.
20969 * ira-emit.c: Likewise.
20970 * ira-lives.c: Likewise.
20972 * jump.c: Likewise.
20973 * langhooks.c: Likewise.
20975 * loop-doloop.c: Likewise.
20976 * loop-init.c: Likewise.
20977 * loop-invariant.c: Likewise.
20978 * loop-iv.c: Likewise.
20979 * loop-unroll.c: Likewise.
20980 * lower-subreg.c: Likewise.
20981 * lra-assigns.c: Likewise.
20982 * lra-coalesce.c: Likewise.
20983 * lra-constraints.c: Likewise.
20984 * lra-eliminations.c: Likewise.
20985 * lra-lives.c: Likewise.
20986 * lra-remat.c: Likewise.
20987 * lra-spills.c: Likewise.
20989 * lto-cgraph.c: Likewise.
20990 * lto-compress.c: Likewise.
20991 * lto-opts.c: Likewise.
20992 * lto-section-in.c: Likewise.
20993 * lto-section-out.c: Likewise.
20994 * lto-streamer-in.c: Likewise.
20995 * lto-streamer-out.c: Likewise.
20996 * lto-streamer.c: Likewise.
20998 * mode-switching.c: Likewise.
20999 * modulo-sched.c: Likewise.
21000 * omega.c: Likewise.
21001 * omp-low.c: Likewise.
21002 * optabs.c: Likewise.
21003 * opts-global.c: Likewise.
21004 * passes.c: Likewise.
21005 * plugin.c: Likewise.
21006 * postreload-gcse.c: Likewise.
21007 * postreload.c: Likewise.
21008 * predict.c: Likewise.
21009 * print-rtl.c: Likewise.
21010 * print-tree.c: Likewise.
21011 * profile.c: Likewise.
21012 * real.c: Likewise.
21013 * realmpfr.c: Likewise.
21014 * recog.c: Likewise.
21016 * reg-stack.c: Likewise.
21017 * regcprop.c: Likewise.
21018 * reginfo.c: Likewise.
21019 * regrename.c: Likewise.
21020 * regstat.c: Likewise.
21021 * reload.c: Likewise.
21022 * reload1.c: Likewise.
21023 * reorg.c: Likewise.
21024 * resource.c: Likewise.
21025 * rtl-chkp.c: Likewise.
21026 * rtlanal.c: Likewise.
21027 * rtlhooks.c: Likewise.
21028 * sanopt.c: Likewise.
21029 * sched-deps.c: Likewise.
21030 * sched-ebb.c: Likewise.
21031 * sched-rgn.c: Likewise.
21032 * sched-vis.c: Likewise.
21033 * sdbout.c: Likewise.
21034 * sel-sched-dump.c: Likewise.
21035 * sel-sched-ir.c: Likewise.
21036 * sel-sched.c: Likewise.
21037 * sese.c: Likewise.
21038 * shrink-wrap.c: Likewise.
21039 * simplify-rtx.c: Likewise.
21040 * stack-ptr-mod.c: Likewise.
21041 * stmt.c: Likewise.
21042 * stor-layout.c: Likewise.
21043 * store-motion.c: Likewise.
21044 * stringpool.c: Likewise.
21045 * symtab.c: Likewise.
21046 * target-globals.c: Likewise.
21047 * targhooks.c: Likewise.
21048 * toplev.c: Likewise.
21049 * tracer.c: Likewise.
21050 * trans-mem.c: Likewise.
21051 * tree-affine.c: Likewise.
21052 * tree-browser.c: Likewise.
21053 * tree-call-cdce.c: Likewise.
21054 * tree-cfg.c: Likewise.
21055 * tree-cfgcleanup.c: Likewise.
21056 * tree-chkp-opt.c: Likewise.
21057 * tree-chkp.c: Likewise.
21058 * tree-chrec.c: Likewise.
21059 * tree-complex.c: Likewise.
21060 * tree-data-ref.c: Likewise.
21061 * tree-dfa.c: Likewise.
21062 * tree-diagnostic.c: Likewise.
21063 * tree-dump.c: Likewise.
21064 * tree-eh.c: Likewise.
21065 * tree-emutls.c: Likewise.
21066 * tree-if-conv.c: Likewise.
21067 * tree-inline.c: Likewise.
21068 * tree-into-ssa.c: Likewise.
21069 * tree-iterator.c: Likewise.
21070 * tree-loop-distribution.c: Likewise.
21071 * tree-nested.c: Likewise.
21072 * tree-nrv.c: Likewise.
21073 * tree-object-size.c: Likewise.
21074 * tree-outof-ssa.c: Likewise.
21075 * tree-parloops.c: Likewise.
21076 * tree-phinodes.c: Likewise.
21077 * tree-predcom.c: Likewise.
21078 * tree-pretty-print.c: Likewise.
21079 * tree-profile.c: Likewise.
21080 * tree-scalar-evolution.c: Likewise.
21081 * tree-sra.c: Likewise.
21082 * tree-ssa-address.c: Likewise.
21083 * tree-ssa-alias.c: Likewise.
21084 * tree-ssa-ccp.c: Likewise.
21085 * tree-ssa-coalesce.c: Likewise.
21086 * tree-ssa-copy.c: Likewise.
21087 * tree-ssa-copyrename.c: Likewise.
21088 * tree-ssa-dce.c: Likewise.
21089 * tree-ssa-dom.c: Likewise.
21090 * tree-ssa-dse.c: Likewise.
21091 * tree-ssa-forwprop.c: Likewise.
21092 * tree-ssa-ifcombine.c: Likewise.
21093 * tree-ssa-live.c: Likewise.
21094 * tree-ssa-loop-ch.c: Likewise.
21095 * tree-ssa-loop-im.c: Likewise.
21096 * tree-ssa-loop-ivcanon.c: Likewise.
21097 * tree-ssa-loop-ivopts.c: Likewise.
21098 * tree-ssa-loop-manip.c: Likewise.
21099 * tree-ssa-loop-niter.c: Likewise.
21100 * tree-ssa-loop-prefetch.c: Likewise.
21101 * tree-ssa-loop-unswitch.c: Likewise.
21102 * tree-ssa-loop.c: Likewise.
21103 * tree-ssa-math-opts.c: Likewise.
21104 * tree-ssa-operands.c: Likewise.
21105 * tree-ssa-phiopt.c: Likewise.
21106 * tree-ssa-phiprop.c: Likewise.
21107 * tree-ssa-pre.c: Likewise.
21108 * tree-ssa-propagate.c: Likewise.
21109 * tree-ssa-reassoc.c: Likewise.
21110 * tree-ssa-sccvn.c: Likewise.
21111 * tree-ssa-scopedtables.c: Likewise.
21112 * tree-ssa-sink.c: Likewise.
21113 * tree-ssa-strlen.c: Likewise.
21114 * tree-ssa-structalias.c: Likewise.
21115 * tree-ssa-tail-merge.c: Likewise.
21116 * tree-ssa-ter.c: Likewise.
21117 * tree-ssa-threadedge.c: Likewise.
21118 * tree-ssa-threadupdate.c: Likewise.
21119 * tree-ssa-uncprop.c: Likewise.
21120 * tree-ssa-uninit.c: Likewise.
21121 * tree-ssa.c: Likewise.
21122 * tree-ssanames.c: Likewise.
21123 * tree-stdarg.c: Likewise.
21124 * tree-streamer-in.c: Likewise.
21125 * tree-streamer-out.c: Likewise.
21126 * tree-streamer.c: Likewise.
21127 * tree-switch-conversion.c: Likewise.
21128 * tree-tailcall.c: Likewise.
21129 * tree-vect-data-refs.c: Likewise.
21130 * tree-vect-generic.c: Likewise.
21131 * tree-vect-loop-manip.c: Likewise.
21132 * tree-vect-loop.c: Likewise.
21133 * tree-vect-patterns.c: Likewise.
21134 * tree-vect-slp.c: Likewise.
21135 * tree-vect-stmts.c: Likewise.
21136 * tree-vectorizer.c: Likewise.
21137 * tree-vrp.c: Likewise.
21138 * tree.c: Likewise.
21139 * tsan.c: Likewise.
21140 * ubsan.c: Likewise.
21141 * valtrack.c: Likewise.
21142 * value-prof.c: Likewise.
21143 * var-tracking.c: Likewise.
21144 * varasm.c: Likewise.
21145 * varpool.c: Likewise.
21146 * vmsdbgout.c: Likewise.
21147 * vtable-verify.c: Likewise.
21149 * wide-int.cc: Likewise.
21150 * xcoffout.c: Likewise.
21151 * config/aarch64/aarch64-builtins.c: Likewise.
21152 * config/aarch64/aarch64.c: Likewise.
21153 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21154 * config/alpha/alpha.c: Likewise.
21155 * config/arc/arc.c: Likewise.
21156 * config/arm/aarch-common.c: Likewise.
21157 * config/arm/arm-builtins.c: Likewise.
21158 * config/arm/arm-c.c: Likewise.
21159 * config/arm/arm.c: Likewise.
21160 * config/avr/avr-c.c: Likewise.
21161 * config/avr/avr-log.c: Likewise.
21162 * config/avr/avr.c: Likewise.
21163 * config/bfin/bfin.c: Likewise.
21164 * config/c6x/c6x.c: Likewise.
21165 * config/cr16/cr16.c: Likewise.
21166 * config/cris/cris.c: Likewise.
21167 * config/darwin-c.c: Likewise.
21168 * config/darwin.c: Likewise.
21169 * config/epiphany/epiphany.c: Likewise.
21170 * config/epiphany/mode-switch-use.c: Likewise.
21171 * config/epiphany/resolve-sw-modes.c: Likewise.
21172 * config/fr30/fr30.c: Likewise.
21173 * config/frv/frv.c: Likewise.
21174 * config/ft32/ft32.c: Likewise.
21175 * config/h8300/h8300.c: Likewise.
21176 * config/i386/i386-c.c: Likewise.
21177 * config/i386/i386.c: Likewise.
21178 * config/i386/msformat-c.c: Likewise.
21179 * config/i386/winnt-cxx.c: Likewise.
21180 * config/i386/winnt-stubs.c: Likewise.
21181 * config/i386/winnt.c: Likewise.
21182 * config/ia64/ia64-c.c: Likewise.
21183 * config/ia64/ia64.c: Likewise.
21184 * config/iq2000/iq2000.c: Likewise.
21185 * config/lm32/lm32.c: Likewise.
21186 * config/m32c/m32c-pragma.c: Likewise.
21187 * config/m32c/m32c.c: Likewise.
21188 * config/m32r/m32r.c: Likewise.
21189 * config/m68k/m68k.c: Likewise.
21190 * config/mcore/mcore.c: Likewise.
21191 * config/mep/mep-pragma.c: Likewise.
21192 * config/mep/mep.c: Likewise.
21193 * config/microblaze/microblaze-c.c: Likewise.
21194 * config/microblaze/microblaze.c: Likewise.
21195 * config/mips/mips.c: Likewise.
21196 * config/mmix/mmix.c: Likewise.
21197 * config/mn10300/mn10300.c: Likewise.
21198 * config/moxie/moxie.c: Likewise.
21199 * config/msp430/msp430-c.c: Likewise.
21200 * config/msp430/msp430.c: Likewise.
21201 * config/nds32/nds32-cost.c: Likewise.
21202 * config/nds32/nds32-fp-as-gp.c: Likewise.
21203 * config/nds32/nds32-intrinsic.c: Likewise.
21204 * config/nds32/nds32-isr.c: Likewise.
21205 * config/nds32/nds32-md-auxiliary.c: Likewise.
21206 * config/nds32/nds32-memory-manipulation.c: Likewise.
21207 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21208 * config/nds32/nds32-predicates.c: Likewise.
21209 * config/nds32/nds32.c: Likewise.
21210 * config/nios2/nios2.c: Likewise.
21211 * config/nvptx/nvptx.c: Likewise.
21212 * config/pa/pa.c: Likewise.
21213 * config/pdp11/pdp11.c: Likewise.
21214 * config/rl78/rl78-c.c: Likewise.
21215 * config/rl78/rl78.c: Likewise.
21216 * config/rs6000/rs6000-c.c: Likewise.
21217 * config/rs6000/rs6000.c: Likewise.
21218 * config/rx/rx.c: Likewise.
21219 * config/s390/s390-c.c: Likewise.
21220 * config/s390/s390.c: Likewise.
21221 * config/sh/sh-c.c: Likewise.
21222 * config/sh/sh-mem.cc: Likewise.
21223 * config/sh/sh.c: Likewise.
21224 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21225 * config/sh/sh_treg_combine.cc: Likewise.
21226 * config/sol2-c.c: Likewise.
21227 * config/sol2-cxx.c: Likewise.
21228 * config/sol2-stubs.c: Likewise.
21229 * config/sol2.c: Likewise.
21230 * config/sparc/sparc-c.c: Likewise.
21231 * config/sparc/sparc.c: Likewise.
21232 * config/spu/spu-c.c: Likewise.
21233 * config/spu/spu.c: Likewise.
21234 * config/stormy16/stormy16.c: Likewise.
21235 * config/tilegx/mul-tables.c: Likewise.
21236 * config/tilegx/tilegx-c.c: Likewise.
21237 * config/tilegx/tilegx.c: Likewise.
21238 * config/tilepro/mul-tables.c: Likewise.
21239 * config/tilepro/tilepro-c.c: Likewise.
21240 * config/tilepro/tilepro.c: Likewise.
21241 * config/v850/v850-c.c: Likewise.
21242 * config/v850/v850.c: Likewise.
21243 * config/vax/vax.c: Likewise.
21244 * config/visium/visium.c: Likewise.
21245 * config/vms/vms-c.c: Likewise.
21246 * config/vms/vms.c: Likewise.
21247 * config/vxworks.c: Likewise.
21248 * config/xtensa/xtensa.c: Likewise.
21250 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
21252 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
21253 Remove operand constraints. Change operand 2 predicate to
21254 nonmemory operand. Limit const_int values to mode bitsize. Only
21255 allow const_int values less than 32 when optimizing for size.
21256 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
21257 Remove operand constraints.
21258 (*bt<mode>): Use SImode for const_int values less than 32.
21259 (regmode): Remove mode attribute.
21261 2015-07-07 Anatoly Sokolov <aesok@post.ru>
21263 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21264 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
21265 moxie_legitimate_address_p): New functions.
21266 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21268 2015-07-07 Tom de Vries <tom@codesourcery.com>
21270 PR tree-optimization/66642
21271 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
21272 header comment. Rename split_edge variable to edge_at_split. Split
21273 exit edge to create new loop exit bb. Insert loop exit phis in new
21276 2015-07-07 Tom de Vries <tom@codesourcery.com>
21278 * tree-cfg.c (get_virtual_phi): New function.
21279 * tree-cfg.h (get_virtual_phi): Declare.
21280 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
21281 (rewrite_virtuals_into_loop_closed_ssa): New function.
21282 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
21284 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
21285 (transform_to_exit_first_loop_alt): Use
21286 rewrite_virtuals_into_loop_closed_ssa.
21288 2015-07-07 Richard Biener <rguenther@suse.de>
21290 * fold-const.c (fold_binary_loc): Move
21291 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
21292 * match.pd: ... here.
21293 Add (X * C1) % C2 -> 0 simplification pattern derived from
21296 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
21299 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
21300 change for target/65249.
21302 2015-07-07 Paulo Matos <pmatos@broadcom.com>
21304 * symtab.c (address_matters_1): Fix typo in comment above.
21305 (can_increase_alignment_p): Likewise.
21307 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21309 * function.c (free_after_compilation): Clear PROP_cfg in
21310 f->curr_properties.
21312 2015-07-07 Richard Biener <rguenther@suse.de>
21314 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
21316 (add_control_edge): Remove excessive vertical space in dumping.
21317 (process_ssa_edge_worklist): Simulate at most one statement and
21318 return whether we did. Do not simulate PHIs if they are in a
21319 BB not yet simulated.
21320 (ssa_propagate): Adjust to always drain the BB worklist whenever
21321 a BB is available there, likewise the VARYING edges list before
21322 the interesting edge list.
21324 2015-07-07 Christian Bruel <christian.bruel@st.com>
21327 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
21329 2015-07-07 Richard Biener <rguenther@suse.de>
21331 PR middle-end/66739
21332 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
21335 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
21337 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
21338 modes for operands 0 and 3. Use SImode for operands 2 and 3.
21339 Copy operand 0 to a temporary if !ext_register_operand. Remove
21340 ancient extract_bit_field workaround.
21341 (insv<mode>_1): Rename from mov<mode>_insv_1.
21342 (*insvqi): Rename from *movqi_insv_2.
21343 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
21344 for renamed insvsi_1.
21345 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
21347 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
21349 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
21350 call to nvptx_reorg_subreg.
21352 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
21354 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
21355 * graphite-dependencies.c, graphite-interchange.c,
21356 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
21357 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
21360 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
21362 * match.pd: Remove element_mode inside HONOR_*.
21363 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
21364 (~X | X -> -1, ~X ^ X -> -1): Merge.
21365 * tree.c (build_each_one_cst): New function.
21366 * tree.h (build_each_one_cst): Likewise.
21368 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21370 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21373 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
21375 * config.gcc <mips*-*-*>: Add fused-madd.opt.
21376 * config/mips/mips.opt (mfused-madd): Remove.
21377 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
21378 * config/mips/mips.h (TARGET_MIPS8000): New.
21379 (ISA_HAS_FP_MADD4_MSUB4): Remove.
21380 (ISA_HAS_FP_MADDF_MSUBF): Remove.
21381 (ISA_HAS_FP_MADD3_MSUB3): Remove.
21382 (ISA_HAS_NMADD4_NMSUB4): Remove.
21383 (ISA_HAS_NMADD3_NMSUB3): Remove.
21384 (ISA_HAS_FUSED_MADD4): New.
21385 (ISA_HAS_UNFUSED_MADD4): New.
21386 (ISA_HAS_FUSED_MADDF): New.
21387 (ISA_HAS_FUSED_MADD3): New.
21388 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
21389 (*fma<mode>4_madd3) New.
21390 (*fma<mode>4_madd4) New.
21391 (*fma<mode>4_maddf) New.
21393 (*fms<mode>4_msub3) New.
21394 (*fms<mode>4_msub4) New.
21396 (*fnma<mode>4_nmadd3) New.
21397 (*fnma<mode>4_nmadd4) New.
21399 (*fnms<mode>4_nmsub3) New.
21400 (*fnms<mode>4_nmsub4) New.
21401 (*madd4<mode>) Modify to be unfused only.
21402 (*msub4<mode>) Modify to be unfused only.
21403 (*nmadd4<mode>) Modify to be unfused only.
21404 (*nmsub4<mode>) Modify to be unfused only.
21405 (*madd3<mode>) Remove.
21406 (*msub3<mode>) Remove.
21407 (*nmadd3<mode>) Remove.
21408 (*nmsub3<mode>) Remove.
21409 (*nmadd3<mode>_fastmath) Remove.
21410 (*nmsub3<mode>_fastmath) Remove.
21411 (*nmadd4<mode>_fastmath) Update condition.
21412 (*nmsub4<mode>_fastmath) Update condition.
21414 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21417 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
21418 alignment attribute, exploring one level down for records and arrays.
21420 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
21422 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
21423 modes for operands 0 and 1. Use SImode for operands 2 and 3.
21424 Copy operand 1 to a temporary if !ext_register_operand. Remove
21425 ancient extract_bit_field workaround.
21426 (*extv<mode>): Rename from *mov<mode>_extv_1.
21427 (*extvqi): Rename from *movqi_extv_1.
21428 (extzv<mode>): Rename from extzv. Use SWI248 modes for
21429 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
21430 to a temporary if !ext_register_operand. Remove ancient
21431 extract_bit_field workaround.
21432 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
21433 (*extzvqi): Rename from *movqi_extzv_2.
21434 (*testqi_ext_3): Remove modes from const_int_operand predicated
21435 operands. Add "n" constraint.
21436 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
21437 operand. Add "J" constraint.
21438 (*btsq, *btrq, *btcq peephole2s): Remove mode from
21439 const_0_to_63 predicated operand.
21440 (regmode): New insn attribute.
21441 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
21442 to nonmemory_operand. Use regmode insn attribute.
21443 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
21444 (*jcc_bt<mode>_mask): Remove mode from operand 3.
21445 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
21446 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
21447 operands. Use "N" constraint instead of "n".
21449 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21451 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
21453 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21456 * config/i386/i386.c (iamcu_cost): New.
21457 (m_IAMCU): Likewise.
21458 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
21459 (processor_target_table): Add an entry for "iamcu".
21460 (processor_alias_table): Likewise.
21461 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
21462 (ix86_adjust_cost): Likewise.
21463 (ia32_multipass_dfa_lookahead): Likewise.
21464 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
21465 * config/i386/x86-tune.def: Updated for m_IAMCU.
21467 2015-07-06 Richard Biener <rguenther@suse.de>
21469 PR tree-optimization/66772
21470 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
21471 values are available in the PHI node BB when there are
21472 still unexecutable edges.
21474 2015-07-06 Richard Biener <rguenther@suse.de>
21476 PR tree-optimization/66767
21477 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
21478 Make sure to build the alignment test on a SSA name without
21479 final alignment info valid only if the alignment test
21482 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
21485 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
21486 loop start when inserting LSETUP.
21488 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21491 * config/i386/i386.c (ix86_option_override_internal): Allow
21492 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
21494 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21496 * read-md.c (decimal_string): Rename to ...
21497 (md_decimal_string): ... this.
21498 (handle_enum): Reflect this.
21500 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
21503 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
21505 2015-07-06 Richard Biener <rguenther@suse.de>
21507 PR middle-end/66759
21508 * match.pd: Add missing constraint of y to REAL_CST in
21509 REAL_CST - x CMP y to y - CST CMP x simplification.
21511 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
21513 PR tree-optimization/66757
21514 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
21516 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
21517 Sandra Loosemore <sandra@codesourcery.com>
21519 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
21520 Delete extern declaration.
21521 (gprel_constant_p): Add extern declaration.
21522 * config/nios2/constraints.md ("S"): Use gprel_constant_p
21523 instead of nios2_symbol_ref_in_small_data_p.
21524 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
21525 (nios2_symbol_ref_in_small_data_p): Make static.
21526 (gprel_constant_p): Make non-static.
21528 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
21530 * doc/fragments.texi (Target Fragment): Convert debian.org
21532 * doc/install.texi (Configuration): Ditto.
21534 2015-07-05 Jakub Jelinek <jakub@redhat.com>
21536 PR tree-optimization/66718
21537 * tree-vect-stmts.c (vectorizable_call): Replace uses of
21538 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
21540 PR tree-optimization/66718
21541 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
21542 vectorizable_load, vectorizable_condition): Move vectype,
21543 nunits, ncopies computation after checking what kind of statement
21546 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21548 * target-insns.def (extv, extzv, insv): New targetm instruction
21550 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
21552 * recog.c (simplify_while_replacing): Likewise.
21554 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21556 * target-insns.def (doloop_begin, doloop_end): New targetm
21557 instruction patterns.
21558 * loop-init.c: Include target.h.
21559 (pass_loop2::gate): Use the new targetm patterns instead of
21560 HAVE_*/gen_* interface.
21561 (pass_rtl_doloop::gate): Likewise.
21562 (pass_rtl_doloop::execute): Remove preprocessor condition.
21563 * hw-doloop.c: Build unconditionally.
21564 * loop-doloop.c: Likewise.
21565 (doloop_optimize): Use the new targetm patterns instead of
21566 HAVE_*/gen_* interface.
21567 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
21568 * modulo-sched.c (doloop_register_get): Likewise.
21570 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21572 * target-insns.def (clear_cache): New targetm instruction pattern.
21573 * builtins.c (expand_builtin___clear_cache): Use it instead of
21574 HAVE_*/gen_* interface.
21576 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21578 * target-insns.def (allocate_stack, check_stack, probe_stack)
21579 (probe_stack_address, split_stack_prologue, split_stack_space_check):
21580 New targetm instruction patterns.
21581 * explow.c (allocate_dynamic_stack_space): Use them instead of
21582 HAVE_*/gen_* interface.
21583 (emit_stack_probe): Likewise.
21584 (probe_stack_range): Likewise.
21585 * function.c (thread_prologue_and_epilogue_insns): Likewise.
21587 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21589 * target-insns.def (stack_protect_set, stack_protect_test): New
21590 targetm instruction patterns.
21591 * cfgexpand.c (stack_protect_prologue): Use them instead of
21592 HAVE_*/gen_* interface.
21593 * function.c (stack_protect_epilogue): Likewise.
21595 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21597 * expr.h (gen_move_insn_uncast): Delete.
21598 * expr.c (gen_move_insn_uncast): Delete.
21600 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21602 * target-insns.def (restore_stack_block, restore_stack_function)
21603 (restore_stack_nonlocal, save_stack_block, save_stack_function)
21604 (save_stack_nonlocal): New targetm instruction patterns.
21605 * builtins.c (expand_builtin_apply): Use them instead of
21606 HAVE_*/gen_* interface.
21607 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
21609 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21611 * target-insns.def (trap): New targetm instruction pattern.
21612 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
21614 * explow.c (allocate_dynamic_stack_space): Likewise.
21615 * ifcvt.c (find_if_header): Likewise.
21617 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21619 * target-insns.def (prefetch): New targetm instruction pattern.
21620 * tree-ssa-loop-prefetch.c: Include targeth.
21621 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
21622 of HAVE_*/gen_* interface.
21623 * builtins.c (expand_builtin_prefetch): Likewise.
21624 * toplev.c (process_options): Likewise.
21626 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21628 * target-insns.def (untyped_call, untyped_return): New targetm
21629 instruction patterns.
21630 * builtins.c (expand_builtin_apply): Use them instead of
21631 HAVE_*/gen_* interface.
21632 (result_vector): Define unconditionally.
21634 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21636 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
21637 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
21638 (nonlocal_goto_receiver): New targetm instruction patterns.
21639 * builtins.c (expand_builtin_setjmp_setup): Use them instead
21640 of HAVE_*/gen_* interface.
21641 (expand_builtin_setjmp_receiver): Likewise.
21642 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
21643 * except.c (expand_dw2_landing_pad_for_region): Likewise.
21645 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21647 * target.def: Add code_for_* hooks.
21648 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
21649 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
21650 * target-insns.def (casesi, tablejump): New targetm instruction
21652 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
21653 (do_tablejump): Likewise.
21654 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
21655 (expand_sjlj_dispatch_table): Likewise.
21656 * targhooks.c (default_case_values_threshold): Likewise.
21658 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
21660 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
21661 Use rtx_insn * instead of rtx.
21662 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
21663 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
21664 (nios2_call_tls_get_addr): Likewise.
21665 (nios2_emit_expensive_div): Likewise.
21666 (nios2_emit_move_sequence): Change return type to bool.
21667 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
21668 Change return type to bool.
21670 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
21673 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
21675 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
21678 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
21679 of register_operand. Remove constraint.
21681 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
21683 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
21684 the first argument.
21686 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
21688 * attribs.c (decl_attributes): Guard inform with the return value
21689 of the preceding warning.
21691 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
21693 * doc/invoke.texi (moverride): Move to correct section.
21695 2015-07-03 Richard Biener <rguenther@suse.de>
21697 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
21699 (dt_operand::gen_gimple_expr): After valueizing operands
21700 re-canonicalize operand order for commutative tree codes.
21702 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
21705 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
21707 (__crc32w): Likewise.
21708 (__crc32d): Likewise.
21709 (__rdpmc): Likewise.
21710 (__rdtscp): Likewise.
21711 (_rdpmc): Likewise.
21712 (_rdtscp): Likewise.
21713 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
21716 2015-07-03 Richard Biener <rguenther@suse.de>
21718 * fold-const.c (fold_mathfn_compare): Remove.
21719 (fold_inf_compare): Likewise.
21720 (fold_comparison): Move floating point comparison simplifications...
21721 * match.pd: ... to patterns here. Introduce simple_comparisons
21722 operator list and use it for patterns formerly in fold_comparison.
21724 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
21726 PR tree-optimization/66119
21727 * toplev.c (process_options): Don't set up default values for
21728 the sra_max_scalarization_size_{speed,size} parameters.
21729 * tree-sra (analyze_all_variable_accesses): If no values
21730 have been set for the sra_max_scalarization_size_{speed,size}
21731 parameters, call get_move_ratio to get target defaults.
21733 2015-07-03 Richard Biener <rguenther@suse.de>
21735 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
21736 * match.pd: ... here.
21738 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
21741 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
21742 is not actually the default on FreeBSD.
21744 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21746 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
21748 (CMPGE_8HI): Likewise.
21749 (CMPGE_4SI): Likewise.
21750 (CMPGE_2DI): Likewise.
21751 (CMPGE_U16QI): Likewise.
21752 (CMPGE_U8HI): Likewise.
21753 (CMPGE_U4SI): Likewise.
21754 (CMPGE_U2DI): Likewise.
21755 (CMPLE_16QI): Likewise.
21756 (CMPLE_8HI): Likewise.
21757 (CMPLE_4SI): Likewise.
21758 (CMPLE_2DI): Likewise.
21759 (CMPLE_U16QI): Likewise.
21760 (CMPLE_U8HI): Likewise.
21761 (CMPLE_U4SI): Likewise.
21762 (CMPLE_U2DI): Likewise.
21763 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21764 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
21765 ALTIVEC_BUILTIN_VEC_CMPLE.
21766 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
21767 floating-point vector modes.
21768 (vector_nlt<mode>): New define_expand.
21769 (vector_nltu<mode>): Likewise.
21770 (vector_ngt<mode>): Likewise.
21771 (vector_ngtu<mode>): Likewise.
21773 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
21775 PR rtl-optimization/66706
21776 * combine.c (make_compound_operation): If an AND of SUBREG of
21777 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
21779 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
21781 * tree-pass.h (make_pass_ch_vect): New.
21782 * passes.def: Add pass_ch_vect just before pass_if_conversion.
21784 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
21785 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
21786 make_pass_ch_vect): New.
21787 (pass_ch): Extend ch_base.
21789 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
21790 (ch_base::copy_headers): ...here.
21792 2015-07-02 Richard Biener <rguenther@suse.de>
21794 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
21795 * fold-const.c (get_pointer_modulus_and_residue): Remove.
21796 (fold_binary_loc): Implement (T)ptr & CST in terms of
21797 get_pointer_alignment_1.
21798 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
21799 Make sure to build the alignment test on a SSA name without
21800 final alignment info valid only after the prologue.
21802 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
21804 * config/cris/cris.md ("epilogue"): Remove condition.
21805 ("prologue"): Ditto.
21807 2015-07-02 Richard Biener <rguenther@suse.de>
21809 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
21810 parameter to record a condition that is false.
21811 (record_conditions): When recording an extra NE_EXPR that is
21812 true also record a EQ_EXPR that is false.
21814 2015-07-02 Bin Cheng <bin.cheng@arm.com>
21816 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
21817 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
21818 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
21819 (set_iv, find_interesting_uses_address, add_candidate_1): New
21820 argument to alloc_iv.
21821 (find_interesting_uses_op, find_interesting_uses_cond): Don't
21822 duplicate struct iv.
21823 (free_loop_data): Don't free struct iv explicitly.
21824 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
21826 2015-07-01 DJ Delorie <dj@redhat.com>
21828 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
21830 (SUPPORTS_DISCRIMINATOR): Define.
21832 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
21835 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
21836 there are no CALLs in the same pattern.
21838 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
21840 PR rtl-optimization/61047
21841 * rtlanal.c (get_initial_register_offset): New function.
21842 (rtx_addr_can_trap_p_1): Check offsets of stack references.
21844 2015-07-01 Richard Biener <rguenther@suse.de>
21846 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
21847 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
21848 ~X CMP C -> X CMP' ~C to ...
21849 * match.pd: ... patterns here.
21851 2015-07-01 Nick Clifton <nickc@redhat.com>
21853 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
21854 a 16-bit value into a 20-bit memory slot.
21856 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21858 * doc/sourcebuild.texi (AArch64-specific attributes): Document
21859 "aarch64_tiny", "aarch64_small", "aarch64_large",
21860 "aarch64_little_endian", "aarch64_big_endian".
21862 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21864 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
21865 Document "aarch64_small_fpic".
21867 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21869 * configure.ac: Add check for aarch64 assembler -fpic relocation
21871 * configure: Regenerate.
21872 * config.in: Regenerate.
21873 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
21874 to -fPIC if not support of -fpic relocation modifier in assembler.
21876 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
21879 * rtl.c (classify_insn): Handle returns in PARALLELs.
21881 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
21883 PR middle-end/66633
21884 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
21885 to true if the function is nested and if not optimizing.
21886 (convert_local_omp_clauses): Initialize need_frame to true if the
21887 function contains nested functions and if not optimizing.
21889 2015-07-01 Richard Biener <rguenther@suse.de>
21891 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
21892 (X & Y) ^ Y -> ~X & Y transforms to ...
21893 * match.pd: ... here.
21895 2015-07-01 Richard Biener <rguenther@suse.de>
21897 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
21898 of converts to avoid uninteresting noise from the conversion
21899 simplifying patterns.
21901 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
21903 * config/c6x/c6x.c (try_rename_operands): Do not depend on
21904 gcc_assert evaluating its argument for side-effect.
21906 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
21909 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
21912 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
21914 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
21915 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
21916 (hash_scc): Add this_ref_p and ref_p parameters and pass them
21917 to the inner DFS walk.
21919 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21921 * target-insns.def (jump): New targetm instruction pattern.
21922 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
21923 instead of gen_jump.
21924 (fix_up_crossing_landing_pad): Likewise.
21925 (add_labels_and_missing_jumps): Likewise.
21926 (fix_crossing_conditional_branches): Likewise.
21927 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
21928 (force_nonfallthru_and_redirect): Likewise.
21929 * cse.c (cse_insn): Likewise.
21930 * expmed.c (expand_divmod): Likewise.
21931 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
21932 * haifa-sched.c (init_before_recovery): Likewise.
21933 (sched_create_recovery_edges): Likewise.
21934 * ifcvt.c (find_cond_trap): Likewise.
21935 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
21936 (expand_float, expand_fix): Likewise.
21937 * stmt.c (emit_jump): Likewise.
21939 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21941 * defaults.h (HAVE_load_multiple, gen_load_multiple)
21942 (HAVE_store_multiple, gen_store_multiple): Delete.
21943 * target-insns.def (load_multiple, store_multiple): New targetm
21944 instruction patterns.
21945 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
21946 of HAVE_*/gen_* interface.
21948 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21950 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
21951 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
21952 (gen_mem_signal_fence): Delete.
21953 * target-insns.def (mem_signal_fence, mem_thread_fence)
21954 (memory_barrier): New targetm instruction patterns.
21955 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
21957 (expand_mem_signal_fence): Likewise.
21959 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21961 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
21962 * target-insns.def (epilogue, prologue, sibcall_prologue): New
21963 targetm instruction patterns.
21964 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
21966 * calls.c (expand_call): Likewise.
21967 * cfgrtl.c (cfg_layout_finalize): Likewise.
21968 * df-scan.c (df_get_entry_block_def_set): Likewise.
21969 (df_get_exit_block_use_set): Likewise.
21970 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
21971 * final.c (final_start_function): Likewise.
21972 * function.c (thread_prologue_and_epilogue_insns): Likewise.
21973 (reposition_prologue_and_epilogue_notes): Likewise.
21974 * reorg.c (find_end_label): Likewise.
21975 * toplev.c (process_options): Likewise.
21977 2015-06-30 David Malcolm <dmalcolm@redhat.com>
21979 * typed-splay-tree.h: New file.
21981 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
21984 * lra-int.h (lra_substitute_pseudo): Add a parameter.
21985 (lra_substitute_pseudo_within_insn): Ditto.
21986 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
21988 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
21989 to lra_substitute_pseudo.
21990 * lra-lives.c (process_bb_lives): Add an argument to
21991 lra_substitute_pseudo_within_insn call.
21992 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
21993 argument to lra_substitute_pseudo and
21994 lra_substitute_pseudo_within_insn calls.
21995 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
21997 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
21999 * configure: Regenerated.
22001 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
22003 * config.gcc: Support i[34567]86-*-elfiamcu target.
22004 * config/i386/iamcu.h: New.
22005 * config/i386/i386.opt: Add -miamcu.
22006 * doc/invoke.texi: Document -miamcu.
22007 * common/config/i386/i386-common.c (ix86_handle_option): Turn
22008 off x87/MMX/SSE/AVX codegen for -miamcu.
22009 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22010 __iamcu/__iamcu__ for -miamcu.
22011 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
22012 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
22013 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
22014 * config/i386/i386.c (ix86_option_override_internal): Ignore and
22015 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
22016 MCU by default. Default long double to 64-bit for Intel MCU.
22017 Turn on -freg-struct-return for Intel MCU. Issue an error when
22018 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
22020 (function_arg_advance_32): Pass value whose size is no larger
22021 than 8 bytes in registers for Intel MCU.
22022 (function_arg_32): Likewise.
22023 (ix86_return_in_memory): Return value whose size is no larger
22024 than 8 bytes in registers for Intel MCU.
22025 (iamcu_alignment): New function.
22026 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
22028 (ix86_local_alignment): Don't increase alignment for Intel MCU.
22029 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
22032 2015-06-30 Marek Polacek <polacek@redhat.com>
22034 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
22035 both operands of the resulting expression.
22037 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
22038 the final expression with the operand's type and then convert
22039 it to the type of the expression.
22041 2015-06-30 Richard Biener <rguenther@suse.de>
22043 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
22044 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
22045 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
22046 * match.pd: ... to patterns here.
22048 2015-06-30 Richard Biener <rguenther@suse.de>
22050 PR tree-optimization/66704
22051 * tree-vect-data-refs.c (vect_setup_realignment): Use
22052 make_ssa_name for non-SSA name source.
22054 2015-06-30 Jakub Jelinek <jakub@redhat.com>
22056 PR middle-end/66702
22057 * omp-low.c (simd_clone_adjust): Handle addressable linear
22058 or uniform parameters or non-gimple type uniform parameters.
22060 2015-06-30 Richard Biener <rguenther@suse.de>
22062 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
22063 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
22064 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
22065 * match.pd: ... here.
22066 Add a few cases of A - B -> A + (-B) when B "easily" negates.
22067 Move (x & y) | x -> x and friends before
22068 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
22070 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
22072 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
22073 -mfix-ut699 is not specified.
22074 (leon3_load): Rename into...
22075 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
22078 2015-06-30 Marek Polacek <polacek@redhat.com>
22080 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
22081 * match.pd: ... here.
22083 2015-06-30 Richard Biener <rguenther@suse.de>
22085 * target-insns.def (canonicalize_funcptr_for_compare): Add.
22086 * fold-const.c (build_range_check): Replace uses of
22087 HAVE_canonicalize_funcptr_for_compare.
22088 (fold_widened_comparison): Likewise.
22089 (fold_sign_changed_comparison): Likewise.
22090 * dojump.c: Include "target.h".
22091 (do_compare_and_jump): Replace uses of
22092 HAVE_canonicalize_funcptr_for_compare and
22093 gen_canonicalize_funcptr_for_compare.
22094 * expr.c (do_store_flag): Likewise.
22096 2015-06-30 Tom de Vries <tom@codesourcery.com>
22098 PR tree-optimization/66652
22099 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
22100 max_loop_iterations to determine if nit + 1 overflows.
22102 2015-06-30 Richard Biener <rguenther@suse.de>
22104 * tree-vrp.c (register_edge_assert_for_2): Also register
22105 asserts for dominating conversion results.
22107 2015-06-30 Bin Cheng <bin.cheng@arm.com>
22109 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
22110 field in struct iv.
22112 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
22115 * configure.ac: Fix filds and fildq test for 64-bit.
22116 * configure: Regenerated.
22118 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
22120 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
22121 (nvptx_reorg): Here. Keep the non-subreg pieces.
22123 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
22125 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
22126 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22128 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
22130 * config/i386/i386.md (*jcc_1): Use %! in asm template.
22131 Set attribute "length_nobnd" instead of "length".
22134 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
22136 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
22138 * config/nios2/nios2.c (nios2_delegitimize_address): Make
22139 assert less restrictive.
22141 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
22144 * cgraphunit.c (cgraph_node::finalize_function): Do not call
22145 do_warn_unused_parameter.
22146 * function.c (do_warn_unused_parameter): Move from here.
22147 * function.h (do_warn_unused_parameter): Do not declare.
22149 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22152 * gcc.target/arm/armv-sync-comp-swap.c: New.
22153 * gcc.target/arm/armv-sync-op-acquire.c: New.
22154 * gcc.target/arm/armv-sync-op-full.c: New.
22155 * gcc.target/arm/armv-sync-op-release.c: New.
22157 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22160 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
22161 initial acquire barrier with final barrier.
22163 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22166 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
22167 initial acquire barrier with final barrier.
22169 2015-06-29 Richard Henderson <rth@redhat.com>
22171 * config/i386/constraints.md (Bf): New constraint.
22172 * config/i386/i386-c.c (ix86_target_macros): Define
22173 __GCC_ASM_FLAG_OUTPUTS__.
22174 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
22176 * doc/extend.texi (FlagOutputOperands): Document them.
22178 2015-06-29 Jiong Wang <jiong.wang@arm.com>
22180 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
22181 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
22183 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
22184 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
22185 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
22186 (aarch64_symbol_context): Ditto.
22187 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
22188 and use new pattern name.
22189 (aarch64_expand_mov_immediate): Ditto.
22190 (aarch64_print_operand): Ditto.
22191 (aarch64_classify_tls_symbol): Ditto.
22193 2015-06-29 Marek Polacek <polacek@redhat.com>
22194 Marc Glisse <marc.glisse@inria.fr>
22196 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
22197 * match.pd: ... pattern here.
22199 2015-06-29 Tom de Vries <tom@codesourcery.com>
22201 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
22202 function structure.
22204 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22206 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
22207 feature description, split out the native option, add a link to
22208 the feature documentation, rearrange and slightly rewrite text.
22209 (Aarch64 options, -mcpu): Likewise.
22210 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
22211 +rdma implies Adv. SIMD.
22213 2015-06-29 Marek Polacek <polacek@redhat.com>
22216 * function.c (stack_protect_epilogue): Remove a cast to int.
22217 * doc/invoke.texi: Update -Wswitch-bool description.
22219 2015-06-29 Richard Biener <rguenther@suse.de>
22221 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
22222 * fold-const.c (fold_binary_loc): Move &A - &B simplification
22223 via ptr_difference_const ...
22224 * match.pd: ... here.
22225 When matching (X ^ Y) == Y also match with swapped operands.
22227 2015-06-29 Richard Biener <rguenther@suse.de>
22229 * lto-streamer.h (LTO_major_version): Bump to 5.
22231 2015-06-29 Richard Biener <rguenther@suse.de>
22233 PR tree-optimization/66677
22234 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
22235 STMT_VINFO_VEC_STMT clobbering less strict.
22237 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
22239 PR middle-end/64130
22240 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
22241 division, compute max and min when value ranges for dividend and
22242 divisor are available.
22244 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
22245 Sandra Loosemore <sandra@codesourcery.com>
22247 * regrename.h (regrename_do_replace): Change to return bool.
22248 * regrename.c (rename_chains): Check return value of
22249 regname_do_replace.
22250 (regrename_do_replace): Re-validate the modified insns and
22251 return bool status.
22252 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
22253 Update to match rename_chains changes.
22254 * config/c6x/c6x.c (try_rename_operands): Assert that
22255 regrename_do_replace returns true.
22257 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
22259 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
22260 operand 2 here. Use copy_addr_to_reg to copy non-index
22261 register operand 2 to a temporary.
22262 (<mode>_stx): Ditto for operand 1.
22263 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
22264 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
22265 (ix86_store_bounds): Ditto.
22267 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
22269 * print-tree.c (print_node) [TREE_VEC]: Print its length.
22271 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
22273 * gimple.c (gimple_call_set_fndecl): Remove.
22274 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
22275 build1_loc directly instead of build_fold_addr_expr_loc.
22277 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
22279 * hash-map.h (hash_map::traverse): Use the definition of the
22280 Key typedef rather than the typedef itself.
22282 2015-06-26 Martin Jambor <mjambor@suse.cz>
22285 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
22286 NULL instead of calling dump_enabled_p.
22288 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22290 * config/aarch64/aarch64.opt: (override): New.
22291 * doc/invoke.texi (override): Document.
22292 * config/aarch64/aarch64.c (aarch64_flag_desc): New
22293 (aarch64_fusible_pairs): Likewise.
22294 (aarch64_tuning_flags): Likewise.
22295 (aarch64_tuning_override_function): Likewise.
22296 (aarch64_tuning_override_functions): Likewise.
22297 (aarch64_parse_one_option_token): Likewise.
22298 (aarch64_parse_boolean_options): Likewise.
22299 (aarch64_parse_fuse_string): Likewise.
22300 (aarch64_parse_tune_string): Likewise.
22301 (aarch64_parse_one_override_token): Likewise.
22302 (aarch64_parse_override_string): Likewise.
22303 (aarch64_override_options): Parse the -override string if it
22306 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22308 * config/aarch64/aarch64-protos.h (tune_params): Remove
22309 const from members.
22310 (aarch64_tune_params): Remove const, change to no longer be
22312 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
22313 change to no longer be a pointer, initialize to generic_tunings.
22314 (aarch64_min_divisions_for_recip_mul): Change dereference of
22315 aarch64_tune_params to member access.
22316 (aarch64_reassociation_width): Likewise.
22317 (aarch64_rtx_mult_cost): Likewise.
22318 (aarch64_address_cost): Likewise.
22319 (aarch64_branch_cost): Likewise.
22320 (aarch64_rtx_costs): Likewise.
22321 (aarch64_register_move_cost): Likewise.
22322 (aarch64_memory_move_cost): Likewise.
22323 (aarch64_sched_issue_rate): Likewise.
22324 (aarch64_builtin_vectorization_cost): Likewise.
22325 (aarch64_override_options): Take a copy of the selected tuning
22326 struct in to aarch64_tune_params, rather than just setting
22327 a pointer, change dereferences of aarch64_tune_params to member
22329 (aarch64_override_options_after_change): Change dereferences of
22330 aarch64_tune_params to member access.
22331 (aarch64_macro_fusion_p): Likewise.
22332 (aarch_macro_fusion_pair_p): Likewise.
22333 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
22335 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22337 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
22338 (aarch64_tune_flags): Likewise.
22339 (AARCH64_TUNE_FMA_STEERING): Likewise.
22340 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
22341 to AARCH64_FL_USE_FMA_STEERING_PASS.
22342 (cortex-a57.cortex-a53): Likewise.
22343 (cortex-a72): Use cortexa72_tunings.
22344 (cortex-a72.cortex-a53): Likewise.
22345 (exynos-m1): Likewise.
22346 * config/aarch64/aarch64-protos.h (tune_params): Add
22347 a field: extra_tuning_flags.
22348 * config/aarch64/aarch64-tuning-flags.def: New.
22349 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
22350 (aarch64_extra_tuning_flags): Likewise.
22351 (aarch64_tune_params): Declare here.
22352 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
22353 (cortexa53_tunings): Likewise.
22354 (cortexa57_tunings): Likewise.
22355 (thunderx_tunings): Likewise.
22356 (xgene1_tunings): Likewise.
22357 (cortexa72_tunings): New.
22358 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
22359 (gate): Check against aarch64_tune_params.
22360 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
22363 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22365 * config/aarch64/aarch64-fusion-pairs.def: New.
22366 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
22367 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
22368 aarch64_fusion_pairs.
22369 (AARCH64_FUSE_MOV_MOVK): Likewise.
22370 (AARCH64_FUSE_ADRP_ADD): Likewise.
22371 (AARCH64_FUSE_MOVK_MOVK): Likewise.
22372 (AARCH64_FUSE_ADRP_LDR): Likewise.
22373 (AARCH64_FUSE_CMP_BRANCH): Likewise.
22375 2015-06-26 Jiong Wang <jiong.wang@arm.com>
22377 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
22378 SYMBOL_SMALL_GOT_28K.
22379 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
22380 relocation modifiers.
22381 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
22382 (ldr_got_small_28k_<mode>): New.
22383 (ldr_got_small_28k_sidi): New.
22384 * config/aarch64/iterators.md (got_modifier): New mode iterator.
22385 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
22386 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
22387 SYMBOL_SMALL_GOT_28K.
22388 (aarch64_rtx_costs): Add costs for new instruction sequences.
22389 (initialize_aarch64_code_model): Initialize new model.
22390 (aarch64_classify_symbol): Recognize new model and new symbol classification.
22391 (aarch64_asm_preferred_eh_data_format): Support new model.
22392 (aarch64_load_symref_appropriately): Generate new instruction
22393 sequences for -fpic.
22394 (TARGET_USE_PSEUDO_PIC_REG): New definition.
22395 (aarch64_use_pseudo_pic_reg): New function.
22397 2015-06-26 Jiong Wang <jiong.wang@arm.com>
22399 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
22400 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
22401 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
22402 (aarch64_expand_mov_immediate): Ditto.
22403 (aarch64_print_operand): Ditto.
22404 (aarch64_classify_symbol): Ditto.
22406 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
22408 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
22410 2015-06-26 Bin Cheng <bin.cheng@arm.com>
22413 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
22414 assertion failed. Remove assertion itself.
22416 2015-06-26 Richard Biener <rguenther@suse.de>
22418 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
22419 and -A CMP CST -> A CMP -CST which is redundant with a pattern
22421 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
22422 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
22423 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
22424 * match.pd: ... patterns here.
22426 2015-06-26 Marek Polacek <polacek@redhat.com>
22428 * match.pd ((x | y) & ~(x & y) -> x ^ y,
22429 (x | y) & (~x ^ y) -> x & y): New patterns.
22431 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
22433 * rtl.h (emit): Add an optional boolean parameter to control
22434 whether barriers are emitted.
22435 * emit-rtl.c (emit): Likewise.
22436 * gensupport.c (get_emit_function): Return null rather than "emit".
22437 * genemit.c (gen_emit_seq): Handle the null return value.
22438 Don't emit barriers after the final instruction in the sequence.
22439 * gentarget-def.c (main): Don't emit barriers after the instruction.
22441 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22443 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
22444 TARGET_UNIFIED_ASM.
22446 2015-06-26 Richard Biener <rguenther@suse.de>
22448 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
22450 2015-06-26 Richard Biener <rguenther@suse.de>
22452 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
22453 irrespective on whether the inner operation has a single use
22454 of both off are constant.
22456 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
22457 Segher Boessenkool <segher@kernel.crashing.org>
22460 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
22461 before doing PUT_MODE or PUT_CODE on operands to avoid
22462 in-place RTX modification.
22464 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22466 * gentarget-def.c (def_target_insn): Cast return of strtol to
22469 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22471 * gimple.h (gimple_call_set_fn): Move inline function.
22472 * gimple.c (gimple_call_set_fn): Relocate here.
22474 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
22478 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
22479 the replacement insn will work.
22481 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22483 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
22486 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22488 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
22489 * cgraph.h: Include ipa-ref.h and plugin-api.h.
22490 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
22491 (symtab_node::address_can_be_compared_p): Move function.
22492 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
22494 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
22495 * auto-profile.c: Likewise.
22496 * bb-reorder.c: Likewise.
22497 * builtins.c: Likewise.
22498 * calls.c: Likewise.
22499 * cfgexpand.c: Likewise.
22500 * cgraphbuild.c: Likewise.
22501 * cgraphclones.c: Likewise.
22502 * cgraphunit.c: Likewise.
22503 * combine.c: Likewise.
22504 * coverage.c: Likewise.
22505 * data-streamer-in.c: Likewise.
22506 * data-streamer-out.c: Likewise.
22507 * data-streamer.c: Likewise.
22508 * dbxout.c: Likewise.
22509 * dwarf2out.c: Likewise.
22510 * except.c: Likewise.
22511 * expr.c: Likewise.
22512 * final.c: Likewise.
22513 * fold-const.c: Likewise.
22514 * ggc-page.c: Likewise.
22515 * gimple-fold.c: Likewise.
22516 * gimple-iterator.c: Likewise.
22517 * gimple-pretty-print.c: Likewise.
22518 * gimple-streamer-in.c: Likewise.
22519 * gimple-streamer-out.c: Likewise.
22520 * gimple.c: Likewise.
22521 * gimplify.c: Likewise.
22522 * ipa-chkp.c: Likewise.
22523 * ipa-comdats.c: Likewise.
22524 * ipa-cp.c: Likewise.
22525 * ipa-devirt.c: Likewise.
22526 * ipa-icf-gimple.c: Likewise.
22527 * ipa-icf.c: Likewise.
22528 * ipa-inline-analysis.c: Likewise.
22529 * ipa-inline-transform.c: Likewise.
22530 * ipa-inline.c: Likewise.
22531 * ipa-polymorphic-call.c: Likewise.
22532 * ipa-profile.c: Likewise.
22533 * ipa-prop.c: Likewise.
22534 * ipa-pure-const.c: Likewise.
22535 * ipa-ref.c: Likewise.
22536 * ipa-reference.c: Likewise.
22537 * ipa-split.c: Likewise.
22538 * ipa-utils.c: Likewise.
22539 * ipa-visibility.c: Likewise.
22541 * langhooks.c: Likewise.
22542 * lto-cgraph.c: Likewise.
22543 * lto-compress.c: Likewise.
22544 * lto-opts.c: Likewise.
22545 * lto-section-in.c: Likewise.
22546 * lto-section-out.c: Likewise.
22547 * lto-streamer-in.c: Likewise.
22548 * lto-streamer-out.c: Likewise.
22549 * lto-streamer.c: Likewise.
22550 * omp-low.c: Likewise.
22551 * opts-global.c: Likewise.
22552 * passes.c: Likewise.
22553 * predict.c: Likewise.
22554 * print-tree.c: Likewise.
22555 * profile.c: Likewise.
22557 * sanopt.c: Likewise.
22558 * stor-layout.c: Likewise.
22559 * symtab.c: Likewise.
22560 * toplev.c: Likewise.
22561 * trans-mem.c: Likewise.
22562 * tree-cfg.c: Likewise.
22563 * tree-chkp.c: Likewise.
22564 * tree-eh.c: Likewise.
22565 * tree-emutls.c: Likewise.
22566 * tree-inline.c: Likewise.
22567 * tree-nested.c: Likewise.
22568 * tree-parloops.c: Likewise.
22569 * tree-pretty-print.c: Likewise.
22570 * tree-profile.c: Likewise.
22571 * tree-sra.c: Likewise.
22572 * tree-ssa-alias.c: Likewise.
22573 * tree-ssa-live.c: Likewise.
22574 * tree-ssa-loop-ivcanon.c: Likewise.
22575 * tree-ssa-loop-ivopts.c: Likewise.
22576 * tree-ssa-pre.c: Likewise.
22577 * tree-ssa-sccvn.c: Likewise.
22578 * tree-ssa-strlen.c: Likewise.
22579 * tree-ssa-structalias.c: Likewise.
22580 * tree-streamer-in.c: Likewise.
22581 * tree-streamer-out.c: Likewise.
22582 * tree-streamer.c: Likewise.
22583 * tree-switch-conversion.c: Likewise.
22584 * tree-tailcall.c: Likewise.
22585 * tree-vect-data-refs.c: Likewise.
22586 * tree-vect-stmts.c: Likewise.
22587 * tree-vectorizer.c: Likewise.
22588 * tree.c: Likewise.
22589 * tsan.c: Likewise.
22590 * ubsan.c: Likewise.
22591 * value-prof.c: Likewise.
22592 * varasm.c: Likewise.
22593 * varpool.c: Likewise.
22594 * config/arm/arm.c: Likewise.
22595 * config/bfin/bfin.c: Likewise.
22596 * config/c6x/c6x.c: Likewise.
22597 * config/cris/cris.c: Likewise.
22598 * config/darwin-c.c: Likewise.
22599 * config/darwin.c: Likewise.
22600 * config/i386/i386.c: Likewise.
22601 * config/i386/winnt.c: Likewise.
22602 * config/microblaze/microblaze.c: Likewise.
22603 * config/mips/mips.c: Likewise.
22604 * config/rs6000/rs6000.c: Likewise.
22605 * config/rx/rx.c: Likewise.
22606 * config/s390/s390.c: Likewise.
22607 * config/tilegx/mul-tables.c: Likewise.
22609 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22611 * config/aarch64/aarch64.c, config/alpha/alpha.c,
22612 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
22613 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
22614 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
22615 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22616 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22617 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22618 config/microblaze/microblaze.c, config/mips/mips.c,
22619 config/mmix/mmix.c, config/mn10300/mn10300.c,
22620 config/moxie/moxie.c, config/msp430/msp430.c,
22621 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22622 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22623 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22624 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22625 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22626 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22627 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
22628 target-def.h include.
22629 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
22631 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22633 * Makefile.in (TARGET_DEF): Add target-insns.def.
22634 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
22635 (build/gentarget-def.o): New rule.
22636 (genprogrtl): Add target-def.
22637 * target-insns.def, gentarget-def.c: New files.
22638 * target.def: Add targetm.have_* and targetm.gen_* hooks,
22639 based on the contents of target-insns.def.
22640 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
22641 (HAVE_return, gen_return): Delete.
22642 * target-def.h: Include insn-target-def.h.
22643 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
22644 instead of direct calls. Rely on them to do the appropriate assertions.
22645 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
22646 (convert_jumps_to_returns): Use targetm interface instead of
22648 (thread_prologue_and_epilogue_insns): Likewise.
22649 * reorg.c (find_end_label, dbr_schedule): Likewise.
22650 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
22651 * shrink-wrap.c (convert_to_simple_return): Likewise.
22652 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
22654 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22656 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
22657 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22658 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
22659 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
22660 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22661 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22662 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22663 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
22664 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
22665 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22666 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22667 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22668 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22669 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22670 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22671 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
22674 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22676 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
22677 (unbounded_int_hashmap_traits::key_type): Likewise.
22678 * hash-map.h (hash_map): Get the key type from the traits.
22679 * hash-traits.h (default_hash_traits): By default, inherit from the
22680 template parameter.
22681 * alias.c (alias_set_traits): Delete.
22682 (alias_set_entry_d::children): Use alias_set_hash as the first
22683 template parameter.
22684 (record_alias_subset): Update accordingly.
22685 * except.c (tree_hash_traits): Delete.
22686 (type_to_runtime_map): Use tree_hash as the first template parameter.
22687 (init_eh): Update accordingly.
22688 * genmatch.c (capture_id_map_hasher): Delete.
22689 (cid_map_t): Use nofree_string_hash as first template parameter.
22690 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
22691 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
22692 Use symbol_compare_hash as the first template parameter in
22693 subdivide_hash_map.
22694 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
22695 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
22696 template parameter.
22697 * passes.c (pass_registry_hasher): Delete.
22698 (name_to_pass_map): Use nofree_string_hash as the first template
22700 (register_pass_name): Update accordingly.
22701 * sanopt.c (sanopt_tree_map_traits): Delete.
22702 (sanopt_tree_triplet_map_traits): Delete.
22703 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
22704 template parameter.
22705 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
22706 the first template parameter.
22707 * sese.c (rename_map_hasher): Delete.
22708 (rename_map_type): Use tree_ssa_name_hash as the first template
22710 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
22711 (function_summary::m_map): Use map_hash as the first template
22713 (function_summary::release): Update accordingly.
22714 * tree-if-conv.c (phi_args_hash_traits): Delete.
22715 (predicate_scalar_phi): Use tree_operand_hash as the first template
22716 parameter to phi_arg_map.
22717 * tree-inline.h (dependence_hasher): Delete.
22718 (copy_body_data::dependence_map): Use dependence_hash as the first
22719 template parameter.
22720 * tree-inline.c (remap_dependence_clique): Update accordingly.
22721 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
22722 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
22724 (addr_stridxptr): Update accordingly.
22725 * value-prof.c (profile_id_traits): Delete.
22726 (cgraph_node_map): Use profile_id_hash as the first template
22728 (init_node_map): Update accordingly.
22729 * config/alpha/alpha.c (string_traits): Delete.
22730 (machine_function::links): Use nofree_string_hash as the first
22731 template parameter.
22732 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
22733 * config/m32c/m32c.c (pragma_traits): Delete.
22734 (pragma_htab): Use nofree_string_hash as the first template parameter.
22735 (m32c_note_pragma_address): Update accordingly.
22736 * config/mep/mep.c (pragma_traits): Delete.
22737 (pragma_htab): Use nofree_string_hash as the first template parameter.
22738 (mep_note_pragma_flag): Update accordingly.
22739 * config/mips/mips.c (mips16_flip_traits): Delete.
22740 (mflip_mips16_htab): Use nofree_string_hash as the first template
22742 (mflip_mips16_use_mips16_p): Update accordingly.
22743 (local_alias_traits): Delete.
22744 (mips16_local_aliases): Use nofree_string_hash as the first template
22746 (mips16_local_alias): Update accordingly.
22748 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22750 * hash-map-traits.h (default_hashmap_traits): Delete.
22752 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22754 * hash-map-traits.h (unbounded_hashmap_traits): New class.
22755 (unbounded_int_hashmap_traits): Likewise.
22756 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
22758 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22760 * ipa-icf.h (symbol_compare_hash): New class.
22761 (symbol_compare_hashmap_traits): Use it.
22762 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
22763 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
22764 (mem_alloc_description::reverse_mem_map_t): Remove redundant
22765 default_hashmap_traits.
22766 * sanopt.c (sanopt_tree_triplet_hash): New class.
22767 (sanopt_tree_triplet_map_traits): Use it.
22769 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22771 * gengtype-parse.c (require_template_declaration): Allow '+' in
22772 template parameters. Consolidate cases.
22773 * hash-traits.h (int_hash): New class.
22774 * alias.c (alias_set_hash): New structure.
22775 (alias_set_traits): Use it.
22776 * symbol-summary.h (function_summary::map_hash): New class.
22777 (function_summary::summary_hashmap_traits): Use it.
22778 * tree-inline.h (dependence_hash): New class.
22779 (dependence_hasher): Use it.
22780 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
22781 * value-prof.c (profile_id_hash): New class.
22782 (profile_id_traits): Use it.
22784 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22786 * config/mips/mips.c (mips16_flip_traits): Use it.
22787 (local_alias_traits, mips16_local_aliases): Convert from a map of
22788 rtxes to a map of symbol names.
22789 (mips16_local_alias): Update accordingly.
22791 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22793 * hash-traits.h (string_hash, nofree_string_hash): New classes.
22794 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
22795 * passes.c (pass_registry_hasher): Likewise.
22796 * config/alpha/alpha.c (string_traits): Likewise.
22797 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
22798 * config/m32c/m32c.c (pragma_traits): Likewise.
22799 * config/mep/mep.c (pragma_traits): Likewise.
22801 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22803 * tree-hash-traits.h (tree_hash): New class.
22804 * except.c: Include tree-hash-traits.h.
22805 (tree_hash_traits): Use tree_hash.
22807 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22809 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
22810 * sese.c: Include tree-hash-traits.h.
22811 (rename_map_hasher): Use tree_ssa_name_hasher.
22813 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22815 * tree-hash-traits.h (tree_decl_hash): New class.
22816 * tree-ssa-strlen.c: Include tree-hash-traits.h.
22817 (stridxlist_hash_traits): Use tree_decl_hash.
22819 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22821 * tree-hash-traits.h: New file.
22822 (tree_operand_hash): New class.
22823 * sanopt.c: Include tree-hash-traits.h.
22824 (sanopt_tree_map_traits): Use tree_operand_hash.
22825 * tree-if-conv.c: Include tree-hash-traits.h.
22826 (phi_args_hash_traits): Use tree_operand_hash.
22827 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
22828 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
22830 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22832 * hash-map-traits.h: Include hash-traits.h.
22833 (simple_hashmap_traits): New class.
22834 * mem-stats.h (hash_map): Change the default traits to
22835 simple_hashmap_traits<default_hash_traits<Key> >.
22837 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22839 * hash-table.h: Update comments.
22841 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22843 * hash-traits.h (default_hash_traits): New structure.
22844 * hash-set.h (default_hashset_traits): Delete.
22845 (hash_set): Use default_hash_traits<Key> instead of
22846 default_hashset_traits. Delete hash_entry type and use Key directly.
22847 * ipa-devirt.c (pair_traits): Delete.
22848 (default_hash_traits <type_pair>): Override.
22849 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
22850 (odr_types_equivalent_p, add_type_duplicate): Likewise.
22852 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22854 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
22856 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22858 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
22859 (has_is_empty, is_empty_helper): Delete.
22860 (has_mark_deleted, mark_deleted_helper): Delete.
22861 (has_mark_empty, mark_empty_helper): Delete.
22862 (hash_table::is_deleted): Call the Descriptor unconditionally.
22863 (hash_table::is_empty): Likewise.
22864 (hash_table::mark_deleted): Likewise.
22865 (hash_table::mark_empty): Likewise.
22867 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22869 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
22870 redundant typedefs and members.
22871 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
22872 redundant typedefs.
22873 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
22874 * ipa-devirt.c (odr_name_hasher): Likewise.
22875 (polymorphic_call_target_hasher): Likewise.
22876 * ira-costs.c (cost_classes_hasher): Likewise.
22877 * statistics.c (stats_counter_hasher): Likewise.
22878 * trans-mem.c (log_entry_hasher): Likewise.
22879 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
22880 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
22881 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
22882 * var-tracking.c (variable_hasher): Likewise.
22883 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
22884 Remove redundant typedefs and members.
22886 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22888 * hash-traits.h (ggc_cache_hasher): Rename to...
22889 (ggc_cache_remove): ...this and remove typedefs.
22890 (ggc_cache_ptr_hash): New class.
22891 * hash-table.h: Update commentary.
22892 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
22893 rather than ggc_cache_hasher.
22894 (const_wide_int_hasher, reg_attr_hasher): Likewise.
22895 (const_double_hasher, const_fixed_hasher): Likewise.
22896 * function.c (insn_cache_hasher): Likewise.
22897 * trans-mem.c (tm_wrapper_hasher): Likewise.
22898 * tree.h (tree_decl_map_cache_hasher): Likewise.
22899 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
22900 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
22901 * ubsan.c (tree_type_map_cache_hasher): Likewise.
22902 * varasm.c (tm_clone_hasher): Likewise.
22903 * config/i386/i386.c (dllimport_hasher): Likewise.
22904 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
22905 (tree_hasher): Likewise.
22907 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22909 * hash-traits.h (ggc_hasher): Rename to...
22910 (ggc_remover): ...this and remove typedefs.
22911 (ggc_cache_hasher): Update accordingly. Add typedefs.
22912 (ggc_ptr_hash): New class.
22913 * hash-table.h: Update comment.
22914 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
22916 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
22917 (tree_descriptor_hasher): Likewise.
22918 * cgraph.c (function_version_hasher): Likewise.
22919 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
22920 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
22921 (dw_loc_list_hasher, addr_hasher): Likewise.
22922 * function.h (used_type_hasher): Likewise.
22923 * function.c (temp_address_hasher): Likewise.
22924 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
22925 * libfuncs.h (libfunc_hasher): Likewise.
22926 * lto-streamer.h (decl_state_hasher): Likewise.
22927 * optabs.c (libfunc_decl_hasher): Likewise.
22928 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
22929 * varasm.c (section_hasher, object_block_hasher): Likewise.
22930 (const_rtx_desc_hasher): Likewise.
22931 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
22932 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
22934 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22936 * hash-traits.h (free_ptr_hash): New class.
22937 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
22938 rather than typed_free_remove. Remove redudant typedefs.
22939 (external_ref_hasher): Likewise.
22940 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
22941 (ehspec_hasher): Likewise.
22942 * ggc-common.c (saving_hasher): Likewise.
22943 * gimplify.c (gimplify_hasher): Likewise.
22944 * haifa-sched.c (delay_i2_hasher): Likewise.
22945 * loop-invariant.c (invariant_expr_hasher): Likewise.
22946 * loop-iv.c (biv_entry_hasher): Likewise.
22947 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
22948 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
22949 * tree-cfg.c (locus_discrim_hasher): Likewise.
22950 * tree-eh.c (finally_tree_hasher): Likewise.
22951 * tree-into-ssa.c (var_info_hasher): Likewise.
22952 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
22953 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
22954 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
22955 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
22956 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
22957 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
22958 (shared_bitmap_hasher): Likewise.
22959 * tree-ssa-threadupdate.c (redirection_data): Likewise.
22960 * tree-vectorizer.h (peel_info_hasher): Likewise.
22961 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
22962 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
22964 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22966 * hash-table.h: Update comments.
22967 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
22968 (nofree_ptr_hash): New class.
22969 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
22970 than typed_noop_remove. Remove redudant typedefs.
22971 * attribs.c (attribute_hasher): Likewise.
22972 * cfg.c (bb_copy_hasher): Likewise.
22973 * cselib.c (cselib_hasher): Likewise.
22974 * dse.c (invariant_group_base_hasher): Likewise.
22975 * dwarf2cfi.c (trace_info_hasher): Likewise.
22976 * dwarf2out.c (macinfo_entry_hasher): Likewise.
22977 (comdat_type_hasher, loc_list_hasher): Likewise.
22978 * gcse.c (pre_ldst_expr_hasher): Likewise.
22979 * genmatch.c (id_base): Likewise.
22980 * genrecog.c (test_pattern_hasher): Likewise.
22981 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
22982 * haifa-sched.c (delay_i1_hasher): Likewise.
22983 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
22984 * ipa-icf.h (congruence_class_group_hash): Likewise.
22985 * ipa-profile.c (histogram_hash): Likewise.
22986 * ira-color.c (allocno_hard_regs_hasher): Likewise.
22987 * lto-streamer.h (string_slot_hasher): Likewise.
22988 * lto-streamer.c (tree_entry_hasher): Likewise.
22989 * plugin.c (event_hasher): Likewise.
22990 * postreload-gcse.c (expr_hasher): Likewise.
22991 * store-motion.c (st_expr_hasher): Likewise.
22992 * tree-sra.c (uid_decl_hasher): Likewise.
22993 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
22994 (ssa_name_var_hash): Likewise.
22995 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
22996 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
22997 * tree-ssa-pre.c (pre_expr_d): Likewise.
22998 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
22999 * vtable-verify.h (registration_hasher): Likewise.
23000 * vtable-verify.c (vtbl_map_hasher): Likewise.
23001 * config/arm/arm.c (libcall_hasher): Likewise.
23002 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
23003 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
23004 * config/sol2.c (comdat_entry_hasher): Likewise.
23005 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
23006 (print_fold_checksum, fold_checksum_tree): Likewise.
23007 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
23008 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
23009 (fold_build_call_array_loc): Likewise.
23010 * tree-ssa-ccp.c (gimple_htab): Likewise.
23011 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
23012 rather than pointer_type.
23014 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23016 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
23017 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
23019 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23021 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
23022 (ggc_hasher::ggc_mx): Likewise.
23023 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
23024 that duplicate ggc_hasher ones.
23026 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23028 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
23029 (gt_cleare_cache): Check here for deleted and empty entries.
23030 Replace handle_cache_entry with a call to keep_cache_entry.
23031 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
23032 (ggc_cache_hasher::keep_cache_entry): New function.
23033 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
23034 (tm_wrapper_hasher::keep_cache_entry): New function.
23035 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
23036 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23037 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
23038 (type_cache_hasher::keep_cache_entry): New function.
23039 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
23040 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23041 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
23042 (tree_type_map_cache_hasher::keep_cache_entry): New function.
23043 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
23044 (tm_clone_hasher::keep_cache_entry): New function.
23045 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
23046 (dllimport_hasher::keep_cache_entry): New function.
23048 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23050 * hash-table.h: Include hash-traits.h.
23051 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
23052 (ggc_cache_hasher): Move to...
23053 * hash-traits.h: ...this new file.
23055 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23057 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
23058 struct cl_optimization.
23059 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
23060 * tree.c (make_node_stat): Allocate cl_optimization struct.
23061 (copy_node_stat): Allocate and copy cl_optimization struct.
23063 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23065 * function.h (struct incoming_args): Move struct.
23066 (pass_by_reference, reference_callee_copied): Remove prototypes.
23067 * emit-rtl.h (struct incoming_args): Relocate struct here.
23068 * calls.h (pass_by_reference, reference_callee_copied): Relocate
23070 * function.c (pass_by_reference, reference_callee_copied): Move.
23071 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
23072 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
23073 * ipa-chkp.c: Include calls.h.
23075 2015-06-25 Andrew Macleod <amacleod@redhat.com>
23077 * alias.h (alias_set_type): Move typedef.
23078 * coretypes.h (alias_set_type): Relocate typedef here.
23079 * rtl.h: Don't include alias.h.
23081 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23083 * cgraph.h (cgraph_rtl_info): Move to rtl.h
23084 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
23086 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
23087 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
23089 * calls.c: Include hard-reg-set.h before rtl.h.
23092 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23093 Vladimir Makarov <vmakarov@redhat.com>
23095 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
23098 2015-06-25 Richard Biener <rguenther@suse.de>
23100 * fold-const.c (fold_binary_loc): Move simplification of
23101 (X <<>> C1) & C2 ...
23102 * match.pd: ... here.
23104 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
23106 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
23108 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23110 * match.pd: Add patterns for vec_conds between 1 and 0.
23112 2015-06-25 Richard Biener <rguenther@suse.de>
23114 * tree-vect-stmts.c (vectorizable_conversion): Do not set
23115 STMT_VINFO_VEC_STMT for SLP.
23116 (vectorizable_store): Likewise.
23117 (vectorizable_load): Likewise.
23118 (vect_transform_stmt): Catch SLP vectorization clobbering
23119 STMT_VINFO_VEC_STMT.
23121 2015-06-25 Richard Biener <rguenther@suse.de>
23123 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
23125 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
23126 cleanup resulting dead code and parameters.
23127 (vect_transform_slp_perm_load): Adjust.
23129 2015-06-25 Nick Clifton <nickc@redhat.com>
23131 * config/bfin/bfin.c (bfin_expand_prologue): Set
23132 current_function_static_stack_size if flag_stack_usage_info is set.
23133 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
23134 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
23135 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
23136 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
23138 2015-06-25 Tom de Vries <tom@codesourcery.com>
23140 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
23141 comment that the generated IV is unsigned.
23143 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23146 * config/arm/arm.c (arm_dbx_register_number): Return
23147 DWARF_FRAME_REGISTERS by default.
23149 2015-06-25 Tom de Vries <tom@codesourcery.com>
23151 * dominance.c (calculate_dominance_info): Fix verify_dominators call
23152 argument. Call verify_dominator when reusing dominator info.
23154 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
23157 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
23158 an additional element of the unspec vector. Modify indices
23160 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
23161 * config/sh/sh.c (prepare_move_operands): Pass incremented
23162 const_int to gen_GOTaddr2picreg.
23163 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
23165 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23167 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
23168 Condition on TARGET_FLOAT.
23170 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23172 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
23175 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23177 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
23179 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
23180 aarch64_err_no_fpadvsimd.
23182 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
23183 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
23184 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
23185 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
23186 Turn error into assert, test TARGET_FLOAT.
23187 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
23190 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
23193 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
23195 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
23197 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
23199 2015-06-24 Renlin Li <renlin.li@arm.com>
23201 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
23202 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
23204 2015-06-24 Richard Biener <rguenther@suse.de>
23206 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
23208 (lower_opt_convert): Support lowering of conditional view_convert.
23209 (parser::parse_operation): Likewise.
23210 (parser::parse_for): Likewise.
23212 2015-06-24 Renlin Li <renlin.li@arm.com>
23214 * varasm.c (emit_local): Use unsigned int for align variable.
23216 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23219 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
23220 for negative numbers.
23222 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23224 PR rtl-optimization/66306
23225 * reload.c (find_reloads): Swap the match_dup info for
23226 commutative operands.
23228 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23230 * config/s390/vx-builtins.md
23231 ("vec_scatter_element<mode>_<non_vec_int>")
23232 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
23233 attribute with bhfgq.
23235 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23237 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
23239 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23241 * config/s390/s390-builtin-types.def: Add flag to indicate the
23242 options under which the function type is needed.
23243 * config/s390/s390-builtins.def: Add flag to indicate the options
23244 under which the builtin is enabled.
23245 * config/s390/s390-builtins.h: Add flags parameter to macro
23247 (bflags_for_builtin): New function.
23248 (flags_for_builtin): Renamed to ...
23249 (opflags_for_builtin): ... this.
23250 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
23251 flags_for_builtin to bflags_for_builtin and
23252 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
23253 * config/s390/s390.c: Add initialization of bflags_builtin and
23254 opflags_builtin arrays.
23255 Remove code for flags_builtin.
23256 (s390_init_builtins): Only create builtin function types if one of
23257 their flags is active.
23258 Only create builtins if all of their flags are active.
23259 (s390_expand_builtin): Rename flags_for_builtin to
23260 opflags_for_builtin.
23262 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23264 * config/s390/vecintrin.h: Remove internal builtins.
23266 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23268 * config/s390/s390.c (s390_secondary_reload): Fix check for
23269 GENERAL_REGS register class.
23271 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23273 * config/s390/s390.c (s390_support_vector_misalignment): Call
23274 default implementation for !TARGET_VX.
23276 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23278 * config/s390/s390.c (s390_legitimate_constant_p): Add
23281 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23283 * config/s390/s390.c (s390_vector_abi): New variable definition.
23284 (s390_check_type_for_vector_abi): New function.
23285 (TARGET_ASM_FILE_END): New macro definition.
23286 (s390_asm_file_end): New function.
23287 (s390_function_arg): Call s390_check_type_for_vector_abi.
23288 (s390_gimplify_va_arg): Likewise.
23289 * configure: Regenerate.
23290 * configure.ac: Check for .gnu_attribute Binutils feature.
23292 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
23295 * config/bfin/bfin.c (hwloop_optimize): Initialize
23296 JUMP_LABEL for newly created jump.
23298 2015-06-23 Tristan Gingold <gingold@adacore.com>
23300 * collect-utils.c (collect_wait): Unlink the response file here
23302 (do_wait): ...here.
23303 (utils_cleanup): ...and here.
23305 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
23307 * df-scan.c: Don't include target-def.h.
23308 * targhooks.c: Likewise.
23309 * config/arm/arm-c.c: Likewise.
23310 * config/i386/i386-c.c: Likewise.
23311 * config/nds32/nds32-cost.c: Likewise.
23312 * config/nds32/nds32-fp-as-gp.c: Likewise.
23313 * config/nds32/nds32-intrinsic.c: Likewise.
23314 * config/nds32/nds32-isr.c: Likewise.
23315 * config/nds32/nds32-md-auxiliary.c: Likewise.
23316 * config/nds32/nds32-memory-manipulation.c: Likewise.
23317 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23318 * config/nds32/nds32-predicates.c: Likewise.
23320 2015-06-23 Richard Biener <rguenther@suse.de>
23322 PR tree-optimization/66636
23323 * tree-vect-stmts.c (vectorizable_store): Properly compute the
23324 def type for further defs for strided stores.
23326 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
23328 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
23329 conditional selects.
23330 (setcc_int<mode>, setcc_float<mode>): Reformat.
23332 2015-06-23 Marek Polacek <polacek@redhat.com>
23334 * match.pd ((x + y) - (x | y) -> x & y,
23335 (x + y) - (x & y) -> x | y): New patterns.
23337 2015-06-23 Ludovic Courtès <ludo@gnu.org>
23340 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
23341 '-dynamic-linker' within %{!shared: ...}.
23343 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
23346 * config/i386/predicates.md (addsub_vm_operator): New predicate.
23347 (addsub_vs_operator): Ditto.
23348 (addsub_vs_parallel): Ditto.
23349 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
23350 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
23351 Put minus RTX before plus and adjust vec_merge selector.
23352 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
23353 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
23354 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
23355 (addsub vec_merge splitters): New combiner splitters.
23356 (addsub vec_select/vec_concat splitters): Ditto.
23358 2015-06-23 Bin Cheng <bin.cheng@arm.com>
23360 PR tree-optimization/66449
23361 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
23362 POINTER_PLUS_EXPR for pointers.
23364 2015-06-23 Alan Modra <amodra@gmail.com>
23366 * rtlanal.c (commutative_operand_precedence): Correct comments.
23367 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
23368 declaration. Return an int. Distinguish REG,REG return from
23370 (struct simplify_plus_minus_op_data): Make local to function.
23371 (simplify_plus_minus): Don't set canonicalized if merely sorting
23372 registers. Avoid packing ops if nothing changes. White space fixes.
23374 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
23376 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
23377 -fdump-ada-spec is passed but not if -fsyntax-only is.
23379 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
23382 * lra-lives.c (process_bb_lives): Check insn copying the same
23383 reload pseudo and don't create a copy for it.
23385 2015-06-22 Tom de Vries <tom@codesourcery.com>
23387 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
23390 2015-06-22 Tom de Vries <tom@codesourcery.com>
23392 * builtins.def (DEF_GOMP_BUILTIN): Test
23393 'flag_tree_parallelize_loops > 1' instead of
23394 'flag_tree_parallelize_loops'. Test flag_cilkplus.
23396 2015-06-22 Tom de Vries <tom@codesourcery.com>
23398 * dominance.c (calculate_dominance_info): Verify dominators if
23401 2015-06-22 Marek Polacek <polacek@redhat.com>
23403 * match.pd ((x ^ y) ^ (x | y) -> x & y,
23404 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
23405 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
23406 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
23408 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
23411 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
23412 cost of embedded comparison.
23414 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23417 * config/rs6000/predicates.md (altivec_register_operand): Permit
23418 virtual stack registers.
23419 (vsx_register_operand): Likewise.
23420 (vfloat_operand): Likewise.
23421 (vint_operand): Likewise.
23422 (vlogical_operand): Likewise.
23424 2015-06-22 Richard Biener <rguenther@suse.de>
23426 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
23427 and single_scalar_iteration_cost members.
23428 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
23429 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
23430 (vect_get_single_scalar_iteration_cost): Remove.
23431 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
23432 Use LOOP_VINFO_SCALAR_ITERATION_COST.
23433 * tree-vect-loop.c (destroy_loop_vec_info): Free
23435 (vect_get_single_scalar_iteration_cost): Compute result into
23436 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
23437 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
23438 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
23439 (vect_estimate_min_profitable_iters): Use them.
23441 2015-06-22 Christian Bruel <christian.bruel@st.com>
23444 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
23445 (TARGET_INSERT_ATTRIBUTES): Define.
23446 (thumb_flipper): New var.
23447 * config/arm/arm.opt (-mflip-thumb): New switch.
23449 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23450 Martin Liska <mliska@suse.cz>
23453 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
23454 construction of arg_types.
23455 (sem_function::sem_function): Likewise.
23456 (sem_function::~sem_function): Remove destruction of arg_types.
23457 (sem_function::compatible_parm_types_p): New function.
23458 (sem_function::equals_wpa): Reorg matching of return values
23459 and parameter types.
23460 (sem_function::equals_private): Reorg mathcing of argument types.
23461 (sem_function::parse_tree_args): Remove.
23462 * ipa-icf.h (init_wpa): Do not call it.
23463 (parse_tree_args): Remove.
23464 (compatible_parm_types_p): Declare.
23465 (result_type): Remove.
23466 (arg_types): Remove.
23468 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23471 * ipa-polymorphic-call.c
23472 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
23473 initializing alias oracle; fix formating; set base_alias_set if it
23476 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
23478 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
23479 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
23480 (find_inc): Likewise.
23481 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
23483 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
23484 * df-scan.c (df_swap_refs): Remove.
23485 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
23486 * dominance.c (link_roots): Use std::swap instead of manually swapping.
23487 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
23488 * fold-const.c (fold_relational_const): Likewise.
23489 * genattrtab.c (simplify_test_exp): Likewise.
23490 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
23491 gimple_simplify): Likewise.
23492 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
23493 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
23494 * ipa-devirt.c (add_type_duplicate): Likewise.
23495 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
23496 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
23497 * lra.c (lra_create_copy): Likewise.
23498 * lto-streamer-out.c (DFS::DFS): Likewise.
23499 * modulo-sched.c (get_sched_window): Likewise.
23500 * omega.c (omega_pretty_print_problem): Likewise.
23501 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
23502 * reload1.c (reloads_unique_chain_p): Likewise.
23503 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
23504 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
23506 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
23508 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
23509 predicate_mem_writes): Likewise.
23510 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
23511 * tree-predcom.c (combine_chains): Likewise.
23512 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
23513 refs_may_alias_p_1): Likewise.
23514 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
23515 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23516 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
23517 number_of_iterations_cond): Likewise.
23518 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23519 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
23520 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
23521 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
23522 * tree-vrp.c (extract_range_from_binary_expr_1,
23523 extract_range_from_unary_expr_1): Likewise.
23525 2015-06-20 Marek Polacek <polacek@redhat.com>
23527 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
23529 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
23532 * config/sh/sh.c (prepare_move_operands): Replace subreg
23533 index term with R0 for base and index addressing.
23535 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
23537 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
23539 (movsf_aarch64): Change condition from register_operand to
23540 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
23541 load1. Change type for alternative 7 to store1.
23542 (movdf_aarch64): Likewise.
23544 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
23546 * config/vax/vax.md: Adjust sign/zero extend patterns to
23547 handle SUBREGs in operands[1].
23549 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23551 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
23552 of manually swapping.
23553 (expand_vec_perm_interleave2): Likewise.
23555 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
23557 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
23558 reuse bounds created for abnormal ssa names.
23560 2015-06-19 Jakub Jelinek <jakub@redhat.com>
23562 * config/nvptx/nvptx.md (allocate_stack): Rename to...
23563 (allocate_stack_<mode>): ... this, and add :P on both
23564 match_operand and unspec.
23565 (allocate_stack): New expander.
23567 2015-06-19 Christian Bruel <christian.bruel@st.com>
23571 * config/arm/arm.c (arm_set_current_function): Handle
23572 explicit default options.
23574 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
23576 * config/i386/i386.md (*movsicc_noc_zext): New insn.
23577 (zero-extended cmove with mem peephole2): New pattern.
23578 (cmove with mem peephole2): Merge patterns.
23580 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
23582 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
23584 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
23586 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
23587 * config/mips/mips.md (*madd4<mode>): Ditto.
23588 (*nmadd3<mode>) Ditto.
23589 (*nmadd4<mode>_fastmath): Ditto.
23590 (*nmadd3<mode>_fastmath): Ditto.
23591 (*nmsub4<mode>): Ditto.
23592 (*nmsub3<mode>): Ditto.
23593 (*nmsub4<mode>_fastmath): Ditto.
23594 (*nmsub3<mode>_fastmath): Ditto.
23596 2015-06-18 Michael Matz <matz@suse.de>
23598 PR middle-end/66253
23599 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
23600 grouped strided stores.
23601 (vectorizable_load): Don't use the DR from first_stmt in
23602 the non-SLP grouped strided case.
23604 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23607 * function.c (assign_bounds): Add arguments assign_regs,
23608 assign_special, assign_bt.
23609 (assign_parms): For vararg functions handle bounds in BT
23610 and special slots after incoming vararg bounds.
23612 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23614 PR middle-end/66568
23615 * cfgexpand.c (expand_return): Handle missing bounds.
23616 (expand_gimple_stmt_1): Likewise.
23617 * tree-chkp.c (chkp_expand_zero_bounds): New.
23618 * tree-chkp.h (chkp_expand_zero_bounds): New.
23620 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23622 PR middle-end/66567
23623 * ipa-chkp.c (chkp_maybe_create_clone): Require
23624 functions to be instrumentable.
23625 * tree-chkp.c (chkp_replace_function_pointer): Use
23626 chkp_instrumentable_p instead of attribute check.
23628 2015-06-18 Richard Biener <rguenther@suse.de>
23630 PR tree-optimization/66510
23631 * tree-vect-stmts.c (vectorizable_load): Properly compute the
23632 number of vector loads for SLP permuted loads.
23633 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
23634 check the stride for loop vectorization.
23635 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
23636 vectorization factor.
23637 (vect_analyze_group_access): If the group size is not a power
23638 of two require a epilogue loop.
23639 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
23640 compute and optimizing and alias test pruning after final
23641 vectorization factor computation.
23642 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
23644 (vect_transform_slp_perm_load): Properly compute the original
23645 number of vector load stmts.
23647 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
23649 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
23650 "unlikely character , in @var" warning.
23652 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
23654 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
23655 (ix86_function_arg_advance): Ditto.
23656 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
23658 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23660 * function.h (struct rtl_data): Remove struct and accessor macros.
23661 * emit-rtl.h (struct rtl_data): Relocate to here.
23662 * Makefile.in (GTFILES): Add emit-rtl.h.
23663 * df-core.c: Include emit-rtl.h.
23664 * genattrtab.c: Likewise.
23665 * genconditions.c: Likewise.
23666 * genpreds.c: Likewise.
23667 * genrecog.c: Likewise.
23668 * regcprop.c: Likewise.
23669 * resource.c: Likewise.
23670 * sched-rgn.c: Likewise.
23671 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23672 * config/i386/winnt.c: Likewise.
23674 2015-06-17 Jakub Jelinek <jakub@redhat.com>
23676 PR middle-end/66429
23677 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
23678 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
23679 and has_force_vectorize_loops flags from cfun into
23681 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
23682 if simduid is non-NULL.
23683 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
23684 * passes.def (pass_simduid_cleanup): Add new pass after loop
23686 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
23687 indirection from htab argument's type.
23688 (shrink_simd_arrays): New function.
23689 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
23690 Don't call adjust_simduid_builtins if there are no loops.
23691 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
23692 (pass_simduid_cleanup::execute): New method.
23693 (make_pass_simduid_cleanup): New function.
23695 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
23697 * tree-core.h (tree_target_option): Make opts field a pointer to a
23698 cl_target_option instead of an instance of the struct.
23699 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
23701 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
23702 TARGET_OPTION_NODE.
23703 (copy_node_stat): Allocate and copy struct cl_target_option.
23705 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23707 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
23708 Remove conditional exposure of prototypes.
23709 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
23710 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
23711 definitions in tree.h with functions.
23712 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
23714 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
23716 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
23718 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
23719 (*cmp<mode>_signed): ... this.
23720 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
23721 (*cmp<mode>_unsigned): ... this. Remove %b.
23723 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23725 * coretypes.h: Include input.h and as-a.h.
23726 * rtl.h: Include input.h and as-a.h for generator files.
23727 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
23728 * vec.c: Don't include diagnostic-core.h.
23729 * alias.c: Do not include input.h, line-map.h or is-a.h.
23730 * asan.c: Likewise.
23731 * attribs.c: Likewise.
23732 * auto-inc-dec.c: Likewise.
23733 * auto-profile.c: Likewise.
23734 * bb-reorder.c: Likewise.
23735 * bt-load.c: Likewise.
23736 * builtins.c: Likewise.
23737 * caller-save.c: Likewise.
23738 * calls.c: Likewise.
23739 * ccmp.c: Likewise.
23741 * cfganal.c: Likewise.
23742 * cfgbuild.c: Likewise.
23743 * cfgcleanup.c: Likewise.
23744 * cfgexpand.c: Likewise.
23745 * cfghooks.c: Likewise.
23746 * cfgloop.c: Likewise.
23747 * cfgloop.h: Likewise.
23748 * cfgloopanal.c: Likewise.
23749 * cfgloopmanip.c: Likewise.
23750 * cfgrtl.c: Likewise.
23751 * cgraph.c: Likewise.
23752 * cgraphbuild.c: Likewise.
23753 * cgraphclones.c: Likewise.
23754 * cgraphunit.c: Likewise.
23755 * cilk-common.c: Likewise.
23756 * combine-stack-adj.c: Likewise.
23757 * combine.c: Likewise.
23758 * compare-elim.c: Likewise.
23759 * convert.c: Likewise.
23760 * coverage.c: Likewise.
23761 * cppbuiltin.c: Likewise.
23762 * cprop.c: Likewise.
23764 * cselib.c: Likewise.
23765 * data-streamer-in.c: Likewise.
23766 * data-streamer-out.c: Likewise.
23767 * data-streamer.c: Likewise.
23768 * dbxout.c: Likewise.
23771 * debug.c: Likewise.
23772 * df-core.c: Likewise.
23773 * df-problems.c: Likewise.
23774 * df-scan.c: Likewise.
23777 * diagnostic-core.h: Likewise.
23778 * diagnostic.c: Likewise.
23779 * dojump.c: Likewise.
23780 * dominance.c: Likewise.
23781 * domwalk.c: Likewise.
23782 * double-int.c: Likewise.
23784 * dumpfile.c: Likewise.
23785 * dumpfile.h: Likewise.
23786 * dwarf2asm.c: Likewise.
23787 * dwarf2cfi.c: Likewise.
23788 * dwarf2out.c: Likewise.
23789 * emit-rtl.c: Likewise.
23790 * et-forest.c: Likewise.
23791 * except.c: Likewise.
23792 * explow.c: Likewise.
23793 * expmed.c: Likewise.
23794 * expr.c: Likewise.
23795 * final.c: Likewise.
23796 * fixed-value.c: Likewise.
23797 * fold-const.c: Likewise.
23798 * function.c: Likewise.
23799 * fwprop.c: Likewise.
23800 * gcc-plugin.h: Likewise.
23801 * gcse.c: Likewise.
23802 * generic-match-head.c: Likewise.
23803 * ggc-page.c: Likewise.
23804 * gimple-builder.c: Likewise.
23805 * gimple-expr.c: Likewise.
23806 * gimple-fold.c: Likewise.
23807 * gimple-iterator.c: Likewise.
23808 * gimple-low.c: Likewise.
23809 * gimple-match-head.c: Likewise.
23810 * gimple-pretty-print.c: Likewise.
23811 * gimple-ssa-isolate-paths.c: Likewise.
23812 * gimple-ssa-strength-reduction.c: Likewise.
23813 * gimple-streamer-in.c: Likewise.
23814 * gimple-streamer-out.c: Likewise.
23815 * gimple-streamer.h: Likewise.
23816 * gimple-walk.c: Likewise.
23817 * gimple.c: Likewise.
23818 * gimplify-me.c: Likewise.
23819 * gimplify.c: Likewise.
23820 * godump.c: Likewise.
23821 * graph.c: Likewise.
23822 * graphite-blocking.c: Likewise.
23823 * graphite-dependences.c: Likewise.
23824 * graphite-interchange.c: Likewise.
23825 * graphite-isl-ast-to-gimple.c: Likewise.
23826 * graphite-optimize-isl.c: Likewise.
23827 * graphite-poly.c: Likewise.
23828 * graphite-scop-detection.c: Likewise.
23829 * graphite-sese-to-poly.c: Likewise.
23830 * graphite.c: Likewise.
23831 * haifa-sched.c: Likewise.
23832 * hw-doloop.c: Likewise.
23833 * ifcvt.c: Likewise.
23834 * init-regs.c: Likewise.
23835 * input.c: Likewise.
23836 * internal-fn.c: Likewise.
23837 * ipa-chkp.c: Likewise.
23838 * ipa-comdats.c: Likewise.
23839 * ipa-cp.c: Likewise.
23840 * ipa-devirt.c: Likewise.
23841 * ipa-icf-gimple.c: Likewise.
23842 * ipa-icf.c: Likewise.
23843 * ipa-inline-analysis.c: Likewise.
23844 * ipa-inline-transform.c: Likewise.
23845 * ipa-inline.c: Likewise.
23846 * ipa-polymorphic-call.c: Likewise.
23847 * ipa-profile.c: Likewise.
23848 * ipa-prop.c: Likewise.
23849 * ipa-pure-const.c: Likewise.
23850 * ipa-ref.c: Likewise.
23851 * ipa-reference.c: Likewise.
23852 * ipa-split.c: Likewise.
23853 * ipa-utils.c: Likewise.
23854 * ipa-visibility.c: Likewise.
23856 * ira-build.c: Likewise.
23857 * ira-color.c: Likewise.
23858 * ira-conflicts.c: Likewise.
23859 * ira-costs.c: Likewise.
23860 * ira-emit.c: Likewise.
23861 * ira-lives.c: Likewise.
23863 * jump.c: Likewise.
23864 * langhooks.c: Likewise.
23866 * loop-doloop.c: Likewise.
23867 * loop-init.c: Likewise.
23868 * loop-invariant.c: Likewise.
23869 * loop-iv.c: Likewise.
23870 * loop-unroll.c: Likewise.
23871 * lower-subreg.c: Likewise.
23872 * lra-assigns.c: Likewise.
23873 * lra-coalesce.c: Likewise.
23874 * lra-constraints.c: Likewise.
23875 * lra-eliminations.c: Likewise.
23876 * lra-lives.c: Likewise.
23877 * lra-remat.c: Likewise.
23878 * lra-spills.c: Likewise.
23880 * lto-cgraph.c: Likewise.
23881 * lto-compress.c: Likewise.
23882 * lto-opts.c: Likewise.
23883 * lto-section-in.c: Likewise.
23884 * lto-section-out.c: Likewise.
23885 * lto-streamer-in.c: Likewise.
23886 * lto-streamer-out.c: Likewise.
23887 * lto-streamer.c: Likewise.
23889 * mode-switching.c: Likewise.
23890 * modulo-sched.c: Likewise.
23891 * omega.c: Likewise.
23892 * omp-low.c: Likewise.
23893 * optabs.c: Likewise.
23894 * opts-global.c: Likewise.
23895 * opts.h: Likewise.
23896 * passes.c: Likewise.
23897 * plugin.c: Likewise.
23898 * postreload-gcse.c: Likewise.
23899 * postreload.c: Likewise.
23900 * predict.c: Likewise.
23901 * pretty-print.h: Likewise.
23902 * print-rtl.c: Likewise.
23903 * print-tree.c: Likewise.
23904 * profile.c: Likewise.
23905 * real.c: Likewise.
23906 * realmpfr.c: Likewise.
23907 * recog.c: Likewise.
23909 * reg-stack.c: Likewise.
23910 * regcprop.c: Likewise.
23911 * reginfo.c: Likewise.
23912 * regrename.c: Likewise.
23913 * regstat.c: Likewise.
23914 * reload.c: Likewise.
23915 * reload1.c: Likewise.
23916 * reorg.c: Likewise.
23917 * resource.c: Likewise.
23918 * rtl-chkp.c: Likewise.
23919 * rtl-error.c: Likewise.
23920 * rtlanal.c: Likewise.
23921 * rtlhooks.c: Likewise.
23922 * sanopt.c: Likewise.
23923 * sched-deps.c: Likewise.
23924 * sched-ebb.c: Likewise.
23925 * sched-rgn.c: Likewise.
23926 * sched-vis.c: Likewise.
23927 * sdbout.c: Likewise.
23928 * sel-sched-dump.c: Likewise.
23929 * sel-sched-ir.c: Likewise.
23930 * sel-sched.c: Likewise.
23931 * sese.c: Likewise.
23932 * shrink-wrap.c: Likewise.
23933 * simplify-rtx.c: Likewise.
23934 * stack-ptr-mod.c: Likewise.
23935 * statistics.c: Likewise.
23936 * stmt.c: Likewise.
23937 * stor-layout.c: Likewise.
23938 * store-motion.c: Likewise.
23939 * streamer-hooks.c: Likewise.
23940 * stringpool.c: Likewise.
23941 * symtab.c: Likewise.
23942 * target-globals.c: Likewise.
23943 * targhooks.c: Likewise.
23944 * toplev.c: Likewise.
23945 * tracer.c: Likewise.
23946 * trans-mem.c: Likewise.
23947 * tree-affine.c: Likewise.
23948 * tree-browser.c: Likewise.
23949 * tree-call-cdce.c: Likewise.
23950 * tree-cfg.c: Likewise.
23951 * tree-cfgcleanup.c: Likewise.
23952 * tree-chkp-opt.c: Likewise.
23953 * tree-chkp.c: Likewise.
23954 * tree-chrec.c: Likewise.
23955 * tree-complex.c: Likewise.
23956 * tree-data-ref.c: Likewise.
23957 * tree-dfa.c: Likewise.
23958 * tree-diagnostic.c: Likewise.
23959 * tree-dump.c: Likewise.
23960 * tree-eh.c: Likewise.
23961 * tree-emutls.c: Likewise.
23962 * tree-if-conv.c: Likewise.
23963 * tree-inline.c: Likewise.
23964 * tree-into-ssa.c: Likewise.
23965 * tree-iterator.c: Likewise.
23966 * tree-loop-distribution.c: Likewise.
23967 * tree-nested.c: Likewise.
23968 * tree-nrv.c: Likewise.
23969 * tree-object-size.c: Likewise.
23970 * tree-outof-ssa.c: Likewise.
23971 * tree-parloops.c: Likewise.
23972 * tree-phinodes.c: Likewise.
23973 * tree-predcom.c: Likewise.
23974 * tree-pretty-print.c: Likewise.
23975 * tree-profile.c: Likewise.
23976 * tree-scalar-evolution.c: Likewise.
23977 * tree-sra.c: Likewise.
23978 * tree-ssa-address.c: Likewise.
23979 * tree-ssa-alias.c: Likewise.
23980 * tree-ssa-ccp.c: Likewise.
23981 * tree-ssa-coalesce.c: Likewise.
23982 * tree-ssa-copy.c: Likewise.
23983 * tree-ssa-copyrename.c: Likewise.
23984 * tree-ssa-dce.c: Likewise.
23985 * tree-ssa-dom.c: Likewise.
23986 * tree-ssa-dse.c: Likewise.
23987 * tree-ssa-forwprop.c: Likewise.
23988 * tree-ssa-ifcombine.c: Likewise.
23989 * tree-ssa-live.c: Likewise.
23990 * tree-ssa-loop-ch.c: Likewise.
23991 * tree-ssa-loop-im.c: Likewise.
23992 * tree-ssa-loop-ivcanon.c: Likewise.
23993 * tree-ssa-loop-ivopts.c: Likewise.
23994 * tree-ssa-loop-manip.c: Likewise.
23995 * tree-ssa-loop-niter.c: Likewise.
23996 * tree-ssa-loop-prefetch.c: Likewise.
23997 * tree-ssa-loop-unswitch.c: Likewise.
23998 * tree-ssa-loop.c: Likewise.
23999 * tree-ssa-math-opts.c: Likewise.
24000 * tree-ssa-operands.c: Likewise.
24001 * tree-ssa-phiopt.c: Likewise.
24002 * tree-ssa-phiprop.c: Likewise.
24003 * tree-ssa-pre.c: Likewise.
24004 * tree-ssa-propagate.c: Likewise.
24005 * tree-ssa-reassoc.c: Likewise.
24006 * tree-ssa-sccvn.c: Likewise.
24007 * tree-ssa-scopedtables.c: Likewise.
24008 * tree-ssa-sink.c: Likewise.
24009 * tree-ssa-strlen.c: Likewise.
24010 * tree-ssa-structalias.c: Likewise.
24011 * tree-ssa-tail-merge.c: Likewise.
24012 * tree-ssa-ter.c: Likewise.
24013 * tree-ssa-threadedge.c: Likewise.
24014 * tree-ssa-threadupdate.c: Likewise.
24015 * tree-ssa-uncprop.c: Likewise.
24016 * tree-ssa-uninit.c: Likewise.
24017 * tree-ssa.c: Likewise.
24018 * tree-ssanames.c: Likewise.
24019 * tree-stdarg.c: Likewise.
24020 * tree-streamer-in.c: Likewise.
24021 * tree-streamer-out.c: Likewise.
24022 * tree-streamer.c: Likewise.
24023 * tree-switch-conversion.c: Likewise.
24024 * tree-tailcall.c: Likewise.
24025 * tree-vect-data-refs.c: Likewise.
24026 * tree-vect-generic.c: Likewise.
24027 * tree-vect-loop-manip.c: Likewise.
24028 * tree-vect-loop.c: Likewise.
24029 * tree-vect-patterns.c: Likewise.
24030 * tree-vect-slp.c: Likewise.
24031 * tree-vect-stmts.c: Likewise.
24032 * tree-vectorizer.c: Likewise.
24033 * tree-vrp.c: Likewise.
24034 * tree.c: Likewise.
24035 * tsan.c: Likewise.
24036 * ubsan.c: Likewise.
24037 * valtrack.c: Likewise.
24038 * value-prof.c: Likewise.
24039 * var-tracking.c: Likewise.
24040 * varasm.c: Likewise.
24041 * varpool.c: Likewise.
24042 * vmsdbgout.c: Likewise.
24043 * vtable-verify.c: Likewise.
24045 * wide-int.cc: Likewise.
24046 * xcoffout.c: Likewise.
24047 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
24048 * common/common-targhooks.c: Likewise.
24049 * config/aarch64/aarch64-builtins.c: Likewise.
24050 * config/aarch64/aarch64.c: Likewise.
24051 * config/alpha/alpha.c: Likewise.
24052 * config/arc/arc.c: Likewise.
24053 * config/arm/aarch-common.c: Likewise.
24054 * config/arm/arm-builtins.c: Likewise.
24055 * config/arm/arm-c.c: Likewise.
24056 * config/arm/arm.c: Likewise.
24057 * config/avr/avr-c.c: Likewise.
24058 * config/avr/avr-log.c: Likewise.
24059 * config/avr/avr.c: Likewise.
24060 * config/bfin/bfin.c: Likewise.
24061 * config/c6x/c6x.c: Likewise.
24062 * config/cr16/cr16.c: Likewise.
24063 * config/cris/cris.c: Likewise.
24064 * config/darwin-c.c: Likewise.
24065 * config/darwin.c: Likewise.
24066 * config/default-c.c: Likewise.
24067 * config/epiphany/epiphany.c: Likewise.
24068 * config/epiphany/mode-switch-use.c: Likewise.
24069 * config/epiphany/resolve-sw-modes.c: Likewise.
24070 * config/fr30/fr30.c: Likewise.
24071 * config/frv/frv.c: Likewise.
24072 * config/ft32/ft32.c: Likewise.
24073 * config/glibc-c.c: Likewise.
24074 * config/h8300/h8300.c: Likewise.
24075 * config/i386/i386-c.c: Likewise.
24076 * config/i386/i386.c: Likewise.
24077 * config/i386/msformat-c.c: Likewise.
24078 * config/i386/winnt-cxx.c: Likewise.
24079 * config/i386/winnt-stubs.c: Likewise.
24080 * config/i386/winnt.c: Likewise.
24081 * config/ia64/ia64-c.c: Likewise.
24082 * config/ia64/ia64.c: Likewise.
24083 * config/iq2000/iq2000.c: Likewise.
24084 * config/lm32/lm32.c: Likewise.
24085 * config/m32c/m32c-pragma.c: Likewise.
24086 * config/m32c/m32c.c: Likewise.
24087 * config/m32r/m32r.c: Likewise.
24088 * config/m68k/m68k.c: Likewise.
24089 * config/mcore/mcore.c: Likewise.
24090 * config/mep/mep-pragma.c: Likewise.
24091 * config/mep/mep.c: Likewise.
24092 * config/microblaze/microblaze-c.c: Likewise.
24093 * config/microblaze/microblaze.c: Likewise.
24094 * config/mips/mips.c: Likewise.
24095 * config/mmix/mmix.c: Likewise.
24096 * config/mn10300/mn10300.c: Likewise.
24097 * config/moxie/moxie.c: Likewise.
24098 * config/msp430/msp430-c.c: Likewise.
24099 * config/msp430/msp430.c: Likewise.
24100 * config/nds32/nds32-cost.c: Likewise.
24101 * config/nds32/nds32-fp-as-gp.c: Likewise.
24102 * config/nds32/nds32-intrinsic.c: Likewise.
24103 * config/nds32/nds32-isr.c: Likewise.
24104 * config/nds32/nds32-md-auxiliary.c: Likewise.
24105 * config/nds32/nds32-memory-manipulation.c: Likewise.
24106 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24107 * config/nds32/nds32-predicates.c: Likewise.
24108 * config/nds32/nds32.c: Likewise.
24109 * config/nios2/nios2.c: Likewise.
24110 * config/nvptx/nvptx.c: Likewise.
24111 * config/pa/pa.c: Likewise.
24112 * config/pdp11/pdp11.c: Likewise.
24113 * config/rl78/rl78-c.c: Likewise.
24114 * config/rl78/rl78.c: Likewise.
24115 * config/rs6000/rs6000-c.c: Likewise.
24116 * config/rs6000/rs6000.c: Likewise.
24117 * config/rx/rx.c: Likewise.
24118 * config/s390/s390-c.c: Likewise.
24119 * config/s390/s390.c: Likewise.
24120 * config/sh/sh-c.c: Likewise.
24121 * config/sh/sh-mem.cc: Likewise.
24122 * config/sh/sh.c: Likewise.
24123 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24124 * config/sh/sh_treg_combine.cc: Likewise.
24125 * config/sol2-c.c: Likewise.
24126 * config/sol2-cxx.c: Likewise.
24127 * config/sol2-stubs.c: Likewise.
24128 * config/sol2.c: Likewise.
24129 * config/sparc/sparc-c.c: Likewise.
24130 * config/sparc/sparc.c: Likewise.
24131 * config/spu/spu-c.c: Likewise.
24132 * config/spu/spu.c: Likewise.
24133 * config/stormy16/stormy16.c: Likewise.
24134 * config/tilegx/mul-tables.c: Likewise.
24135 * config/tilegx/tilegx-c.c: Likewise.
24136 * config/tilegx/tilegx.c: Likewise.
24137 * config/tilepro/mul-tables.c: Likewise.
24138 * config/tilepro/tilepro-c.c: Likewise.
24139 * config/tilepro/tilepro.c: Likewise.
24140 * config/v850/v850-c.c: Likewise.
24141 * config/v850/v850.c: Likewise.
24142 * config/vax/vax.c: Likewise.
24143 * config/visium/visium.c: Likewise.
24144 * config/vms/vms-c.c: Likewise.
24145 * config/vms/vms.c: Likewise.
24146 * config/vxworks.c: Likewise.
24147 * config/winnt-c.c: Likewise.
24148 * config/xtensa/xtensa.c: Likewise.
24150 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
24152 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
24154 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
24156 2015-06-17 Richard Biener <rguenther@suse.de>
24158 PR tree-optimization/66251
24159 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
24160 stmts for SLP strided stores.
24163 2015-05-22 Richard Biener <rguenther@suse.de>
24165 PR tree-optimization/66251
24166 * tree-vect-stmts.c (vectorizable_conversion): Properly
24167 set STMT_VINFO_VEC_STMT even for the SLP case.
24169 2015-05-26 Michael Matz <matz@suse.de>
24171 PR middle-end/66251
24172 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
24173 STMT_VINFO_VEC_STMT, also with SLP.
24175 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
24178 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
24179 (*avx_addsubv4df3_1s): Ditto.
24180 (*sse3_addsubv2df3_1): Ditto.
24181 (*sse3_addsubv2df3_1s): Ditto.
24182 (*avx_addsubv8sf3_1): Ditto.
24183 (*avx_addsubv8sf3_1s): Ditto.
24184 (*sse3_addsubv4sf3_1): Ditto.
24185 (*sse3_addsubv4sf3_1s): Ditto.
24187 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
24189 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
24190 (SYSROOT_SUFFIX_SPEC): Update.
24191 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
24192 (STARTFILE_PREFIX_SPEC): Update.
24193 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
24194 (MULTILIB_REQUIRED): New.
24195 (MULTILIB_OSDIRNAMES): New.
24196 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
24197 (MULTILIB_REQUIRED): New.
24198 (MULTILIB_OSDIRNAMES): New.
24200 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
24202 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
24203 * config/aarch64/aarch64-options-extensions.def: Update "fP",
24204 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
24205 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
24206 (AARCH64_FL_PAN): New.
24207 (AARCH64_FL_LOR): New.
24208 (AARCH64_FL_RDMA): New.
24209 (AARCH64_FL_FOR_ARCH8_1): New.
24210 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
24211 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
24213 2015-06-16 Martin Liska <mliska@suse.cz>
24215 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
24216 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
24219 2015-06-16 Richard Biener <rguenther@suse.de>
24221 * tree-vect-stmts.c (vectorizable_store): Adjust.
24222 (vectorizable_load): Likewise.
24223 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
24225 (vect_create_data_ref_ptr): Likewise.
24226 (bump_vector_ptr): Adjust.
24228 2015-06-16 Richard Biener <rguenther@suse.de>
24230 * tree-vect-stmts.c (vectorizable_load): Properly start loads
24231 with the first element if this is grouped loads.
24233 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
24235 * config/arm/arm-protos.h (struct tune_params): Rename
24236 log_op_non_sc to log_op_non_short_circuit, and rename enum
24237 values to expand SC to SHORT_CIRCUIT.
24238 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
24239 to LOG_OP_NON_SHORT_CIRCUIT.
24240 (arm_fastmul_tune):Likewise
24241 (arm_strongarm_tune): Likewise.
24242 (arm_xscale_tune): Likewise.
24243 (arm_9e_tune): Likewise.
24244 (arm_marvell_pj4_tune): Likewise.
24245 (arm_v6t2_tune): Likewise.
24246 (arm_cortex_tune): Likewise.
24247 (arm_cortex_a8_tune): Likewise.
24248 (arm_cortex_a7_tune): Likewise.
24249 (arm_cortex_a15_tune): Likewise.
24250 (arm_cortex_a53_tune): Likewise.
24251 (arm_cortex_a57_tune): Likewise.
24252 (arm_xgene1_tune): Likewise.
24253 (arm_cortex_a5_tune): Likewise.
24254 (arm_cortex_a9_tune): Likewise.
24255 (arm_cortex_a12_tune): Likewise.
24256 (arm_v7m_tune): Likewise.
24257 (arm_cortex_m7_tune): Likewise.
24258 (arm_v6m_tune): Likewise.
24259 (arm_fa726te_tune): Likewise.
24261 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
24263 * altivec.md: Delete UNSPEC_VMLADDUHM.
24264 (mulv4si3_p8): New pattern.
24265 (mulv4si3): Use it for POWER8.
24266 (mulv8hi3): Use vmladduhm with zero addend.
24267 (altivec_vmladduhm): Descriptive RTL.
24269 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
24271 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
24272 to use neon_move instead of mov_imm.
24273 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
24274 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
24276 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
24277 aarch64_float_const_zero_rtx_p check before TFmode check.
24278 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
24280 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
24281 code and attributes to match. Change condition from register_operand
24282 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
24283 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
24286 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
24289 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
24290 there is no parent.
24292 2015-06-14 Shiva Chen <shiva0217@gmail.com>
24294 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
24295 HOST_WIDE_INT parameter.
24297 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
24300 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
24301 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
24303 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
24305 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
24307 * rtl.h (classify_insn): Declare.
24308 * emit-rtl.c (classify_insn): Move to...
24309 * rtl.c: ...here and add generator support.
24310 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
24311 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
24312 * genemit.c (gen_emit_seq): New function.
24313 (gen_expand, gen_split): Use it.
24315 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
24317 * tree.c (make_vector_stat): Fix comment to state that the
24318 function returns a VECTOR_CST.
24320 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
24322 * gensupport.h (add_implicit_parallel): Declare.
24323 * genrecog.c (add_implicit_parallel): Move to...
24324 * gensupport.c (add_implicit_parallel): ...here.
24325 (process_one_cond_exec): Use it.
24326 * genemit.c (gen_insn): Likewise.
24328 2015-06-13 Iain Sandoe <iain@codesourcery.com>
24331 * passes.c (rest_of_decl_compilation): Do not register globals for
24332 early debug if they are declared in built-ins.
24334 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
24336 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
24338 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24340 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
24342 (noce_try_cmove_arith): Likewise.
24343 (noce_get_alt_condition): Likewise.
24345 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24347 * common/config/i386/i386-common.c
24348 (OPTION_MASK_ISA_MWAITX_SET): New.
24349 (ix86_handle_option): Handle mwaitx.
24350 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
24351 (x86_64-*-*): Likewise.
24352 * config/i386/mwaitxintrin.h: New header.
24353 * config/i386/cpuid.h (bit_MWAITX): Define.
24354 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24356 * config/i386/i386.opt (mwaitx): New.
24357 * config/i386/i386-builtin-types.def
24358 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
24359 * config/i386/i386-c.c: Define __MWAITX__ if needed.
24360 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
24362 (ix86_option_override_internal): Handle new option.
24363 (processor_alias_table): Added PTA_MWAITX.
24364 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
24365 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
24366 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
24367 IX86_BUILTIN_MONITORX built-ins.
24368 * config/i386/i386.h (TARGET_MWAITX): New.
24369 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
24371 (mwaitx): New pattern.
24372 (monitorx_<mode>): New pattern.
24373 * config/i386/x86intrin.h: Include mwaitxintrin.h.
24374 * doc/extend.texi: Document monitorx and mwaitx builtins.
24375 * doc/invoke.texi: Document -mmwaitx option.
24377 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
24379 * emit-rtl.c (need_atomic_barrier_p): Mask model with
24380 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
24382 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
24384 * dbxout.c (xcoff_debug_hooks): Provide a function for
24385 register_main_translation_unit hook.
24387 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
24389 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
24390 variants cases from switch.
24391 (rs6000_post_atomic_barrier): Same.
24392 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
24393 (rs6000_expand_atomic_exchange): Same.
24394 (rs6000_expand_atomic_op): Same.
24395 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
24396 SYNC variants cases from switch.
24397 (atomic_load): Same.
24398 (atomic_store): Same.
24400 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
24402 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
24403 CONST_INT for goto.
24405 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
24408 * dwarf2out.c (check_die): Check for common duplicate attributes.
24409 (add_location_or_const_value_attribute): Do not add duplicate
24411 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
24413 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
24414 (gen_type_die_with_usage): Call check_die.
24415 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
24417 2015-06-11 Jason Merrill <jason@redhat.com>
24419 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
24422 2015-06-11 Marek Polacek <polacek@redhat.com>
24424 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
24426 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
24429 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
24430 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
24431 (*addx_extend_sp32): Fix pasto.
24432 (*subx_extend): Rename into...
24433 (*subx_extend_sp32): ...this.
24434 (*adddi3_extend_sp32): Add earlyclobber.
24435 (*subdi3_insn_sp32): Likewise.
24436 (*subdi3_extend_sp32): Likewise.
24437 (*and_not_di_sp32): Likewise.
24438 (*or_not_di_sp32): Likewise.
24439 (*xor_not_di_sp32): Likewise.
24440 (*negdi2_sp32): Likewise.
24441 (*one_cmpldi2_sp32): Likewise.
24443 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
24445 * debug.h (struct gcc_debug_hooks): Add a
24446 register_main_translation_unit hook.
24447 * debug.c (do_nothing_debug_hooks): Provide a function for this
24449 * dbxout.c (dbx_debug_hooks): Likewise.
24450 * sdbout.c (sdb_debug_hooks): Likewise.
24451 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24452 * dwarf2out.c (main_translation_unit): New global variable.
24453 (dwarf2out_register_main_translation_unit): New function
24454 implementing the new hook.
24455 (dwarf2_debug_hooks): Assign
24456 dwarf2out_register_main_translation_unit to this new hook.
24457 (dwarf2out_init): Associate any main translation unit to
24460 2015-06-11 Marek Polacek <polacek@redhat.com>
24462 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
24464 2015-06-11 Marek Polacek <polacek@redhat.com>
24466 * match.pd: Use single_use throughout.
24468 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24470 * config/arm/arm.c (arm_option_params_internal): When optimising
24471 for speed set max_insns_skipped when arm_restrict_it.
24473 2015-06-11 Christian Bruel <christian.bruel@st.com>
24476 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
24478 (arm_cpu_builtins): New function.
24479 (arm_pragma_target_parse): Call arm_cpu_builtins.
24480 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
24481 (arm_register_target_pragmas): Likewise.
24482 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
24483 Call arm_register_target_pragmas.
24484 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
24485 (arm_pragma_target_parse): Likewise.
24487 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
24489 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
24490 of the second operand.
24492 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
24495 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
24496 to prepare mask operand for AVX512 modes.
24498 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24501 * doc/md.texi (Machine Constraints): Document that on the PowerPC
24502 if you use a constraint that targets a VSX register, you must use
24503 %x<n> in the template.
24505 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
24507 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
24508 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
24509 (define_insn "trap"): New definition.
24511 2015-06-10 Richard Biener <rguenther@suse.de>
24513 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
24515 (vect_supported_load_permutation_p): ... here. Handle
24516 supportable permutations in reductions.
24517 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
24518 for vectorizing strided group loads.
24520 2015-06-10 Jakub Jelinek <jakub@redhat.com>
24523 * config/i386/i386.c (ix86_split_long_move): For collisions
24524 involving direct tls segment refs, move the UNSPEC_TP possibly
24525 wrapped in ZERO_EXTEND out of the address for lea, to each of
24528 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24530 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
24531 dmb sy. Adjust tabs.
24533 2015-06-10 Tom de Vries <tom@codesourcery.com>
24535 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
24537 2015-06-10 Martin Liska <mliska@suse.cz>
24540 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
24541 all enum values in mem_alloc_origin.
24542 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
24544 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
24545 * bitmap.c (bitmap_register): Likewise.
24546 (dump_bitmap_statistics): Likewise.
24547 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
24548 (ggc_record_overhead): Likewise.
24549 * hash-map.h: Likewise.
24550 * hash-set.h: Likewise.
24551 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
24552 * hash-table.h: Likewise.
24553 * vec.c (vec_prefix::register_overhead): Likewise.
24554 (vec_prefix::release_overhead): Likewise.
24555 (dump_vec_loc_statistics): Likewise.
24557 2015-06-09 Christian Bruel <christian.bruel@st.com>
24560 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
24561 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
24562 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
24563 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
24564 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
24565 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
24566 (arm_valid_target_attribute_p): Likewise.
24567 (arm_set_current_function, arm_can_inline_p): Likewise.
24568 (arm_valid_target_attribute_rec): Likewise.
24569 (arm_previous_fndecl): New variable.
24570 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
24571 (TARGET_CAN_INLINE_P): Define.
24572 (arm_asm_trampoline_template): Emit mode.
24573 (arm_file_start): Don't set unified syntax.
24574 (arm_declare_function_name): Set unified syntax and mode.
24575 (arm_option_override): Init target_option_default_node.
24576 and target_option_current_node.
24577 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
24578 (*call_symbol): Likewise.
24579 * doc/extend.texi: Document ARM/Thumb target attribute.
24580 * doc/invoke.texi: Likewise.
24582 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24585 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24586 PR rtl-optimization/64164
24587 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24588 * tree-ssa-copyrename.c: Removed.
24589 * opts.c (default_options_table): Drop -ftree-copyrename. Add
24590 -ftree-coalesce-vars.
24591 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24592 * common.opt (ftree-copyrename): Ignore.
24593 (ftree-coalesce-inlined-vars): Likewise.
24594 * doc/invoke.texi: Remove the ignored options above.
24595 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24596 * tree-ssa-coalesce.h: ... here.
24597 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24598 headers required by it.
24599 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24600 across variables when flag_tree_coalesce_vars. Check register
24601 use and promoted modes to allow coalescing. Moved to
24602 tree-ssa-coalesce.c.
24603 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24604 with its member functions to tree-ssa-coalesce.c.
24605 (var_map_base_init): Likewise. Renamed to
24606 compute_samebase_partition_bases.
24607 (partition_view_normal): Drop want_bases parameter.
24608 (partition_view_bitmap): Likewise.
24609 * tree-ssa-live.h: Adjust declarations.
24610 * tree-ssa-coalesce.c: Include explow.h.
24611 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24612 default defs at the entry point.
24613 (dump_part_var_map): New.
24614 (compute_optimized_partition_bases): New, called by...
24615 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24616 of compute_samebase_partition_bases. Adjust.
24617 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24618 * cfgexpand.c (leader_merge): New.
24619 (get_rtl_for_parm_ssa_default_def): New.
24620 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24621 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24622 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
24623 redundant MEM attr setting.
24624 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
24626 (expand_one_stack_var): ... this. New wrapper to check and
24627 skip already expanded SSA partitions.
24628 (record_alignment_for_reg_var): New, factored out of...
24629 (expand_one_var): ... this.
24630 (expand_one_ssa_partition): New.
24631 (adjust_one_expanded_partition_var): New.
24632 (expand_one_register_var): Check and skip already expanded SSA
24634 (expand_used_vars): Don't create DECLs for anonymous SSA
24635 names. Expand all SSA partitions, then adjust all SSA names.
24636 (pass::execute): Replace the loops that set
24637 SA.partition_to_pseudo from partition leaders and cleared
24638 DECL_RTL for multi-location variables, and that which used to
24639 rename vars and set attrs, with one that clears DECL_RTL and
24640 checks that PARMs and RESULTs default_defs match DECL_RTL.
24641 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24642 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24643 * explow.c (promote_ssa_mode): New.
24644 * explow.h (promote_ssa_mode): Declare.
24645 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24646 * function.c: Include cfgexpand.h.
24647 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24648 (use_register_for_parm_decl): Wrapper for the above to
24649 special-case the result_ptr.
24650 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24651 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24652 multiple locations.
24653 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24654 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
24655 (assign_parm_setup_block): Prefer SSA-assigned location.
24656 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
24657 if stack_parm is NULL.
24658 (assign_parm_setup_stack): Prefer SSA-assigned location.
24659 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
24660 rtl before testing for pointer bounds. Special-case result_ptr.
24661 (expand_function_start): Maybe reset DECL_RTL of result.
24662 Prefer SSA-assigned location for result and static chain.
24663 Factor out DECL_RESULT and SET_DECL_RTL.
24664 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24665 anonymous SSA names. Use promote_ssa_mode.
24666 (get_temp_reg): Likewise.
24667 (remove_ssa_form): Adjust.
24668 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24669 and get its reg_usage for reg invalidation.
24670 (compute_bb_dataflow): Pass it insn.
24671 (emit_notes_in_bb): Likewise.
24672 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24673 fail assert on conversion between unsigned types.
24675 2015-06-09 Tom de Vries <tom@codesourcery.com>
24677 PR tree-optimization/65460
24678 * omp-low.c (expand_omp_target): Set parallelized_function on
24679 cgraph_node for child_fn.
24681 2015-06-09 Tom de Vries <tom@codesourcery.com>
24683 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
24684 parallelized_function before add_new_function.
24686 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
24688 * gcc-plugin.h: Move decls to plugin.h and include it.
24689 * plugin.h: Relocate decls from gcc-plugin.h
24690 * ggc-page.c: Include required header files.
24691 * passes.c: Likewise.
24692 * cgraphunit.c: Likewise.
24694 2015-06-09 Tom de Vries <tom@codesourcery.com>
24696 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
24698 2015-06-09 Jason Merrill <jason@redhat.com>
24701 * toplev.c (check_global_declaration): Don't warn about a clone.
24703 2015-06-09 Marek Polacek <polacek@redhat.com>
24705 PR tree-optimization/66299
24706 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
24707 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
24710 2015-06-09 Richard Biener <rguenther@suse.de>
24712 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
24713 (vect_analyze_slp_instance): Instead do not falsely drop
24716 2015-06-09 Richard Biener <rguenther@suse.de>
24718 PR middle-end/66423
24719 * match.pd: Handle A % (unsigned)(1 << B).
24721 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
24723 * varasm.c (output_object_block_htab): Remove.
24724 (output_object_block_compare): New.
24725 (output_object_blocks): Sort named object_blocks before outputting
24728 2015-06-09 Richard Biener <rguenther@suse.de>
24730 PR tree-optimization/66419
24731 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
24732 consider GROUP_GAP when detecting a perfect subchain.
24734 2015-06-09 Nick Clifton <nickc@redhat.com>
24736 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
24737 place read only data in the .frodata section.
24739 2015-06-09 Shiva Chen <shiva0217@gmail.com>
24741 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
24742 (atomic_store<mode>): Likewise.
24744 2015-06-09 Richard Biener <rguenther@suse.de>
24746 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
24748 2015-06-09 Richard Biener <rguenther@suse.de>
24750 PR middle-end/66413
24751 * tree-inline.c (insert_init_debug_bind): Unshare value.
24753 2015-06-09 Richard Biener <rguenther@suse.de>
24755 PR tree-optimization/66396
24756 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
24757 Rename virtual operands.
24759 2015-06-09 Tom de Vries <tom@codesourcery.com>
24761 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
24762 always return false.
24764 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24766 PR rtl-optimization/64164
24767 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24768 * tree-ssa-copyrename.c: Removed.
24769 * opts.c (default_options_table): Drop -ftree-copyrename. Add
24770 -ftree-coalesce-vars.
24771 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24772 * common.opt (ftree-copyrename): Ignore.
24773 (ftree-coalesce-inlined-vars): Likewise.
24774 * doc/invoke.texi: Remove the ignored options above.
24775 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24776 * tree-ssa-coalesce.h: ... here.
24777 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24778 headers required by it.
24779 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24780 across variables when flag_tree_coalesce_vars. Check register
24781 use and promoted modes to allow coalescing. Moved to
24782 tree-ssa-coalesce.c.
24783 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24784 with its member functions to tree-ssa-coalesce.c.
24785 (var_map_base_init): Likewise. Renamed to
24786 compute_samebase_partition_bases.
24787 (partition_view_normal): Drop want_bases parameter.
24788 (partition_view_bitmap): Likewise.
24789 * tree-ssa-live.h: Adjust declarations.
24790 * tree-ssa-coalesce.c: Include explow.h.
24791 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24792 default defs at the entry point.
24793 (dump_part_var_map): New.
24794 (compute_optimized_partition_bases): New, called by...
24795 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24796 of compute_samebase_partition_bases. Adjust.
24797 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24798 * cfgexpand.c (leader_merge): New.
24799 (get_rtl_for_parm_ssa_default_def): New.
24800 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24801 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24802 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
24803 redundant MEM attr setting.
24804 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
24806 (expand_one_stack_var): ... this. New wrapper to check and
24807 skip already expanded SSA partitions.
24808 (record_alignment_for_reg_var): New, factored out of...
24809 (expand_one_var): ... this.
24810 (expand_one_ssa_partition): New.
24811 (adjust_one_expanded_partition_var): New.
24812 (expand_one_register_var): Check and skip already expanded SSA
24814 (expand_used_vars): Don't create DECLs for anonymous SSA
24815 names. Expand all SSA partitions, then adjust all SSA names.
24816 (pass::execute): Replace the loops that set
24817 SA.partition_to_pseudo from partition leaders and cleared
24818 DECL_RTL for multi-location variables, and that which used to
24819 rename vars and set attrs, with one that clears DECL_RTL and
24820 checks that PARMs and RESULTs default_defs match DECL_RTL.
24821 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24822 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24823 * explow.c (promote_ssa_mode): New.
24824 * explow.h (promote_ssa_mode): Declare.
24825 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24826 * function.c: Include cfgexpand.h.
24827 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24828 (use_register_for_parm_decl): Wrapper for the above to
24829 special-case the result_ptr.
24830 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24831 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24832 multiple locations.
24833 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24834 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
24835 (assign_parm_setup_block): Prefer SSA-assigned location.
24836 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
24837 if stack_parm is NULL.
24838 (assign_parm_setup_stack): Prefer SSA-assigned location.
24839 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
24840 rtl before testing for pointer bounds. Special-case result_ptr.
24841 (expand_function_start): Maybe reset DECL_RTL of result.
24842 Prefer SSA-assigned location for result and static chain.
24843 Factor out DECL_RESULT and SET_DECL_RTL.
24844 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24845 anonymous SSA names. Use promote_ssa_mode.
24846 (get_temp_reg): Likewise.
24847 (remove_ssa_form): Adjust.
24848 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24849 and get its reg_usage for reg invalidation.
24850 (compute_bb_dataflow): Pass it insn.
24851 (emit_notes_in_bb): Likewise.
24852 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24853 fail assert on conversion between unsigned types.
24855 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24858 * tree-inline.c (reset_debug_binding): New.
24859 (reset_debug_bindings): Likewise.
24860 (expand_call_inline): Call it.
24862 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24864 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
24867 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24869 * lto-streamer-out.c (lto_output_location): Stream
24870 reserved locations correctly.
24871 * lto-streamer-in.c (lto_output_location): Likewise.
24873 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
24875 * coretypes.h: Include hash-table.h and hash-set.h for host files.
24876 * ggc.h: Don't include statistics.h>
24877 * hash-map.h: Remove all includes.
24878 * hash-set.h: Likewise.
24879 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
24880 the include list. Remove <new>.
24881 * inchash.h: Remove all includes.
24882 * mem-stats.h: Likewise.
24883 * vec.h: No special processing for generators or ggc.
24884 * alias.c : Adjust include files.
24885 * alloc-pool.c : Likewise.
24886 * alloc-pool.h : Likewise.
24887 * asan.c : Likewise.
24888 * attribs.c : Likewise.
24889 * auto-inc-dec.c : Likewise.
24890 * auto-profile.c : Likewise.
24891 * bb-reorder.c : Likewise.
24892 * bitmap.c : Likewise.
24893 * bitmap.h : Likewise.
24894 * bt-load.c : Likewise.
24895 * builtins.c : Likewise.
24896 * caller-save.c : Likewise.
24897 * calls.c : Likewise.
24898 * ccmp.c : Likewise.
24899 * cfg.c : Likewise.
24900 * cfganal.c : Likewise.
24901 * cfgbuild.c : Likewise.
24902 * cfgcleanup.c : Likewise.
24903 * cfgexpand.c : Likewise.
24904 * cfghooks.c : Likewise.
24905 * cfgloop.c : Likewise.
24906 * cfgloop.h : Likewise.
24907 * cfgloopanal.c : Likewise.
24908 * cfgloopmanip.c : Likewise.
24909 * cfgrtl.c : Likewise.
24910 * cgraph.c : Likewise.
24911 * cgraphbuild.c : Likewise.
24912 * cgraphclones.c : Likewise.
24913 * cgraphunit.c : Likewise.
24914 * cilk-common.c : Likewise.
24915 * combine-stack-adj.c : Likewise.
24916 * combine.c : Likewise.
24917 * compare-elim.c : Likewise.
24918 * context.c : Likewise.
24919 * convert.c : Likewise.
24920 * coverage.c : Likewise.
24921 * cppbuiltin.c : Likewise.
24922 * cprop.c : Likewise.
24923 * cse.c : Likewise.
24924 * cselib.c : Likewise.
24925 * data-streamer-in.c : Likewise.
24926 * data-streamer-out.c : Likewise.
24927 * data-streamer.c : Likewise.
24928 * data-streamer.h : Likewise.
24929 * dbxout.c : Likewise.
24930 * dce.c : Likewise.
24931 * ddg.c : Likewise.
24932 * debug.c : Likewise.
24933 * df-core.c : Likewise.
24934 * df-problems.c : Likewise.
24935 * df-scan.c : Likewise.
24937 * dfp.c : Likewise.
24938 * dojump.c : Likewise.
24939 * dominance.c : Likewise.
24940 * domwalk.c : Likewise.
24941 * double-int.c : Likewise.
24942 * dse.c : Likewise.
24943 * dumpfile.c : Likewise.
24944 * dwarf2asm.c : Likewise.
24945 * dwarf2cfi.c : Likewise.
24946 * dwarf2out.c : Likewise.
24947 * emit-rtl.c : Likewise.
24948 * et-forest.c : Likewise.
24949 * except.c : Likewise.
24950 * except.h : Likewise.
24951 * explow.c : Likewise.
24952 * expmed.c : Likewise.
24953 * expr.c : Likewise.
24954 * final.c : Likewise.
24955 * fixed-value.c : Likewise.
24956 * fold-const.c : Likewise.
24957 * function.c : Likewise.
24958 * fwprop.c : Likewise.
24959 * gcc-plugin.h : Likewise.
24960 * gcc.c : Likewise.
24961 * gcse-common.c : Likewise.
24962 * gcse.c : Likewise.
24963 * genattrtab.c : Likewise.
24964 * genautomata.c : Likewise.
24965 * genconditions.c : Likewise.
24966 * genemit.c : Likewise.
24967 * generic-match-head.c : Likewise.
24968 * genextract.c : Likewise.
24969 * gengtype-state.c : Likewise.
24970 * gengtype.c : Likewise.
24971 * genhooks.c : Likewise.
24972 * genmatch.c : Likewise.
24973 * genmodes.c : Likewise.
24974 * genrecog.c : Likewise.
24975 * gensupport.c : Likewise.
24976 * ggc-common.c : Likewise.
24977 * ggc-internal.h : Likewise.
24978 * ggc-none.c : Likewise.
24979 * ggc-page.c : Likewise.
24980 * gimple-builder.c : Likewise.
24981 * gimple-expr.c : Likewise.
24982 * gimple-fold.c : Likewise.
24983 * gimple-iterator.c : Likewise.
24984 * gimple-low.c : Likewise.
24985 * gimple-match-head.c : Likewise.
24986 * gimple-pretty-print.c : Likewise.
24987 * gimple-ssa-isolate-paths.c : Likewise.
24988 * gimple-ssa-strength-reduction.c : Likewise.
24989 * gimple-ssa.h : Likewise.
24990 * gimple-streamer-in.c : Likewise.
24991 * gimple-streamer-out.c : Likewise.
24992 * gimple-streamer.h : Likewise.
24993 * gimple-walk.c : Likewise.
24994 * gimple.c : Likewise.
24995 * gimplify-me.c : Likewise.
24996 * gimplify.c : Likewise.
24997 * godump.c : Likewise.
24998 * graph.c : Likewise.
24999 * graphds.c : Likewise.
25000 * graphite-blocking.c : Likewise.
25001 * graphite-dependences.c : Likewise.
25002 * graphite-interchange.c : Likewise.
25003 * graphite-isl-ast-to-gimple.c : Likewise.
25004 * graphite-optimize-isl.c : Likewise.
25005 * graphite-poly.c : Likewise.
25006 * graphite-scop-detection.c : Likewise.
25007 * graphite-sese-to-poly.c : Likewise.
25008 * graphite.c : Likewise.
25009 * haifa-sched.c : Likewise.
25010 * hard-reg-set.h : Likewise.
25011 * hw-doloop.c : Likewise.
25012 * ifcvt.c : Likewise.
25013 * inchash.c : Likewise.
25014 * incpath.c : Likewise.
25015 * init-regs.c : Likewise.
25016 * input.c : Likewise.
25017 * internal-fn.c : Likewise.
25018 * ipa-chkp.c : Likewise.
25019 * ipa-comdats.c : Likewise.
25020 * ipa-cp.c : Likewise.
25021 * ipa-devirt.c : Likewise.
25022 * ipa-icf-gimple.c : Likewise.
25023 * ipa-icf.c : Likewise.
25024 * ipa-inline-analysis.c : Likewise.
25025 * ipa-inline-transform.c : Likewise.
25026 * ipa-inline.c : Likewise.
25027 * ipa-polymorphic-call.c : Likewise.
25028 * ipa-profile.c : Likewise.
25029 * ipa-prop.c : Likewise.
25030 * ipa-pure-const.c : Likewise.
25031 * ipa-ref.c : Likewise.
25032 * ipa-reference.c : Likewise.
25033 * ipa-split.c : Likewise.
25034 * ipa-utils.c : Likewise.
25035 * ipa-visibility.c : Likewise.
25036 * ipa.c : Likewise.
25037 * ira-build.c : Likewise.
25038 * ira-color.c : Likewise.
25039 * ira-conflicts.c : Likewise.
25040 * ira-costs.c : Likewise.
25041 * ira-emit.c : Likewise.
25042 * ira-lives.c : Likewise.
25043 * ira.c : Likewise.
25044 * jump.c : Likewise.
25045 * langhooks.c : Likewise.
25046 * lcm.c : Likewise.
25047 * libfuncs.h : Likewise.
25048 * lists.c : Likewise.
25049 * loop-doloop.c : Likewise.
25050 * loop-init.c : Likewise.
25051 * loop-invariant.c : Likewise.
25052 * loop-iv.c : Likewise.
25053 * loop-unroll.c : Likewise.
25054 * lower-subreg.c : Likewise.
25055 * lra-assigns.c : Likewise.
25056 * lra-coalesce.c : Likewise.
25057 * lra-constraints.c : Likewise.
25058 * lra-eliminations.c : Likewise.
25059 * lra-lives.c : Likewise.
25060 * lra-remat.c : Likewise.
25061 * lra-spills.c : Likewise.
25062 * lra.c : Likewise.
25063 * lto-cgraph.c : Likewise.
25064 * lto-compress.c : Likewise.
25065 * lto-opts.c : Likewise.
25066 * lto-section-in.c : Likewise.
25067 * lto-section-out.c : Likewise.
25068 * lto-streamer-in.c : Likewise.
25069 * lto-streamer-out.c : Likewise.
25070 * lto-streamer.c : Likewise.
25071 * lto-streamer.h : Likewise.
25072 * mcf.c : Likewise.
25073 * mode-switching.c : Likewise.
25074 * modulo-sched.c : Likewise.
25075 * omega.c : Likewise.
25076 * omp-low.c : Likewise.
25077 * optabs.c : Likewise.
25078 * opts-global.c : Likewise.
25079 * opts.h : Likewise.
25080 * passes.c : Likewise.
25081 * plugin.c : Likewise.
25082 * postreload-gcse.c : Likewise.
25083 * postreload.c : Likewise.
25084 * predict.c : Likewise.
25085 * print-rtl.c : Likewise.
25086 * print-tree.c : Likewise.
25087 * profile.c : Likewise.
25088 * read-md.c : Likewise.
25089 * read-md.h : Likewise.
25090 * read-rtl.c : Likewise.
25091 * real.c : Likewise.
25092 * realmpfr.c : Likewise.
25093 * recog.c : Likewise.
25094 * ree.c : Likewise.
25095 * reg-stack.c : Likewise.
25096 * regcprop.c : Likewise.
25097 * reginfo.c : Likewise.
25098 * regrename.c : Likewise.
25099 * regstat.c : Likewise.
25100 * reload.c : Likewise.
25101 * reload1.c : Likewise.
25102 * reorg.c : Likewise.
25103 * resource.c : Likewise.
25104 * rtl-chkp.c : Likewise.
25105 * rtl.c : Likewise.
25106 * rtl.h : Likewise.
25107 * rtlanal.c : Likewise.
25108 * rtlhash.c : Likewise.
25109 * rtlhash.h : Likewise.
25110 * rtlhooks.c : Likewise.
25111 * sanopt.c : Likewise.
25112 * sched-deps.c : Likewise.
25113 * sched-ebb.c : Likewise.
25114 * sched-rgn.c : Likewise.
25115 * sched-vis.c : Likewise.
25116 * sdbout.c : Likewise.
25117 * sel-sched-dump.c : Likewise.
25118 * sel-sched-ir.c : Likewise.
25119 * sel-sched-ir.h : Likewise.
25120 * sel-sched.c : Likewise.
25121 * sese.c : Likewise.
25122 * shrink-wrap.c : Likewise.
25123 * shrink-wrap.h : Likewise.
25124 * simplify-rtx.c : Likewise.
25125 * stack-ptr-mod.c : Likewise.
25126 * statistics.c : Likewise.
25127 * stmt.c : Likewise.
25128 * stor-layout.c : Likewise.
25129 * store-motion.c : Likewise.
25130 * stringpool.c : Likewise.
25131 * symtab.c : Likewise.
25132 * target-globals.c : Likewise.
25133 * targhooks.c : Likewise.
25134 * tlink.c : Likewise.
25135 * toplev.c : Likewise.
25136 * tracer.c : Likewise.
25137 * trans-mem.c : Likewise.
25138 * tree-affine.c : Likewise.
25139 * tree-affine.h : Likewise.
25140 * tree-browser.c : Likewise.
25141 * tree-call-cdce.c : Likewise.
25142 * tree-cfg.c : Likewise.
25143 * tree-cfgcleanup.c : Likewise.
25144 * tree-chkp-opt.c : Likewise.
25145 * tree-chkp.c : Likewise.
25146 * tree-chrec.c : Likewise.
25147 * tree-complex.c : Likewise.
25148 * tree-data-ref.c : Likewise.
25149 * tree-dfa.c : Likewise.
25150 * tree-diagnostic.c : Likewise.
25151 * tree-dump.c : Likewise.
25152 * tree-eh.c : Likewise.
25153 * tree-eh.h : Likewise.
25154 * tree-emutls.c : Likewise.
25155 * tree-hasher.h : Likewise.
25156 * tree-if-conv.c : Likewise.
25157 * tree-inline.c : Likewise.
25158 * tree-inline.h : Likewise.
25159 * tree-into-ssa.c : Likewise.
25160 * tree-iterator.c : Likewise.
25161 * tree-loop-distribution.c : Likewise.
25162 * tree-nested.c : Likewise.
25163 * tree-nrv.c : Likewise.
25164 * tree-object-size.c : Likewise.
25165 * tree-outof-ssa.c : Likewise.
25166 * tree-parloops.c : Likewise.
25167 * tree-phinodes.c : Likewise.
25168 * tree-predcom.c : Likewise.
25169 * tree-pretty-print.c : Likewise.
25170 * tree-profile.c : Likewise.
25171 * tree-scalar-evolution.c : Likewise.
25172 * tree-sra.c : Likewise.
25173 * tree-ssa-address.c : Likewise.
25174 * tree-ssa-alias.c : Likewise.
25175 * tree-ssa-ccp.c : Likewise.
25176 * tree-ssa-coalesce.c : Likewise.
25177 * tree-ssa-copy.c : Likewise.
25178 * tree-ssa-copyrename.c : Likewise.
25179 * tree-ssa-dce.c : Likewise.
25180 * tree-ssa-dom.c : Likewise.
25181 * tree-ssa-dse.c : Likewise.
25182 * tree-ssa-forwprop.c : Likewise.
25183 * tree-ssa-ifcombine.c : Likewise.
25184 * tree-ssa-live.c : Likewise.
25185 * tree-ssa-loop-ch.c : Likewise.
25186 * tree-ssa-loop-im.c : Likewise.
25187 * tree-ssa-loop-ivcanon.c : Likewise.
25188 * tree-ssa-loop-ivopts.c : Likewise.
25189 * tree-ssa-loop-manip.c : Likewise.
25190 * tree-ssa-loop-niter.c : Likewise.
25191 * tree-ssa-loop-prefetch.c : Likewise.
25192 * tree-ssa-loop-unswitch.c : Likewise.
25193 * tree-ssa-loop.c : Likewise.
25194 * tree-ssa-math-opts.c : Likewise.
25195 * tree-ssa-operands.c : Likewise.
25196 * tree-ssa-phiopt.c : Likewise.
25197 * tree-ssa-phiprop.c : Likewise.
25198 * tree-ssa-pre.c : Likewise.
25199 * tree-ssa-propagate.c : Likewise.
25200 * tree-ssa-reassoc.c : Likewise.
25201 * tree-ssa-sccvn.c : Likewise.
25202 * tree-ssa-scopedtables.c : Likewise.
25203 * tree-ssa-sink.c : Likewise.
25204 * tree-ssa-strlen.c : Likewise.
25205 * tree-ssa-structalias.c : Likewise.
25206 * tree-ssa-tail-merge.c : Likewise.
25207 * tree-ssa-ter.c : Likewise.
25208 * tree-ssa-threadedge.c : Likewise.
25209 * tree-ssa-threadupdate.c : Likewise.
25210 * tree-ssa-uncprop.c : Likewise.
25211 * tree-ssa-uninit.c : Likewise.
25212 * tree-ssa.c : Likewise.
25213 * tree-ssanames.c : Likewise.
25214 * tree-stdarg.c : Likewise.
25215 * tree-streamer-in.c : Likewise.
25216 * tree-streamer-out.c : Likewise.
25217 * tree-streamer.c : Likewise.
25218 * tree-streamer.h : Likewise.
25219 * tree-switch-conversion.c : Likewise.
25220 * tree-tailcall.c : Likewise.
25221 * tree-vect-data-refs.c : Likewise.
25222 * tree-vect-generic.c : Likewise.
25223 * tree-vect-loop-manip.c : Likewise.
25224 * tree-vect-loop.c : Likewise.
25225 * tree-vect-patterns.c : Likewise.
25226 * tree-vect-slp.c : Likewise.
25227 * tree-vect-stmts.c : Likewise.
25228 * tree-vectorizer.c : Likewise.
25229 * tree-vectorizer.h : Likewise.
25230 * tree-vrp.c : Likewise.
25231 * tree.c : Likewise.
25232 * tsan.c : Likewise.
25233 * ubsan.c : Likewise.
25234 * valtrack.c : Likewise.
25235 * valtrack.h : Likewise.
25236 * value-prof.c : Likewise.
25237 * var-tracking.c : Likewise.
25238 * varasm.c : Likewise.
25239 * varpool.c : Likewise.
25241 * vmsdbgout.c : Likewise.
25242 * vtable-verify.c : Likewise.
25243 * vtable-verify.h : Likewise.
25244 * web.c : Likewise.
25245 * wide-int.cc : Likewise.
25246 * xcoffout.c : Likewise.
25247 * config/aarch64/aarch64-builtins.c : Likewise.
25248 * config/aarch64/aarch64.c : Likewise.
25249 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
25250 * config/alpha/alpha.c : Likewise.
25251 * config/arc/arc.c : Likewise.
25252 * config/arm/aarch-common.c : Likewise.
25253 * config/arm/arm-builtins.c : Likewise.
25254 * config/arm/arm-c.c : Likewise.
25255 * config/arm/arm.c : Likewise.
25256 * config/avr/avr-c.c : Likewise.
25257 * config/avr/avr-log.c : Likewise.
25258 * config/avr/avr.c : Likewise.
25259 * config/bfin/bfin.c : Likewise.
25260 * config/c6x/c6x.c : Likewise.
25261 * config/cr16/cr16.c : Likewise.
25262 * config/cris/cris.c : Likewise.
25263 * config/darwin-c.c : Likewise.
25264 * config/darwin.c : Likewise.
25265 * config/default-c.c : Likewise.
25266 * config/epiphany/epiphany.c : Likewise.
25267 * config/epiphany/mode-switch-use.c : Likewise.
25268 * config/epiphany/resolve-sw-modes.c : Likewise.
25269 * config/fr30/fr30.c : Likewise.
25270 * config/frv/frv.c : Likewise.
25271 * config/ft32/ft32.c : Likewise.
25272 * config/glibc-c.c : Likewise.
25273 * config/h8300/h8300.c : Likewise.
25274 * config/i386/i386-c.c : Likewise.
25275 * config/i386/i386.c : Likewise.
25276 * config/i386/msformat-c.c : Likewise.
25277 * config/i386/winnt-cxx.c : Likewise.
25278 * config/i386/winnt-stubs.c : Likewise.
25279 * config/i386/winnt.c : Likewise.
25280 * config/ia64/ia64-c.c : Likewise.
25281 * config/ia64/ia64.c : Likewise.
25282 * config/iq2000/iq2000.c : Likewise.
25283 * config/lm32/lm32.c : Likewise.
25284 * config/m32c/m32c-pragma.c : Likewise.
25285 * config/m32c/m32c.c : Likewise.
25286 * config/m32r/m32r.c : Likewise.
25287 * config/m68k/m68k.c : Likewise.
25288 * config/mcore/mcore.c : Likewise.
25289 * config/mep/mep-pragma.c : Likewise.
25290 * config/mep/mep.c : Likewise.
25291 * config/microblaze/microblaze-c.c : Likewise.
25292 * config/microblaze/microblaze.c : Likewise.
25293 * config/mips/mips.c : Likewise.
25294 * config/mmix/mmix.c : Likewise.
25295 * config/mn10300/mn10300.c : Likewise.
25296 * config/moxie/moxie.c : Likewise.
25297 * config/msp430/msp430-c.c : Likewise.
25298 * config/msp430/msp430.c : Likewise.
25299 * config/nds32/nds32-cost.c : Likewise.
25300 * config/nds32/nds32-fp-as-gp.c : Likewise.
25301 * config/nds32/nds32-intrinsic.c : Likewise.
25302 * config/nds32/nds32-isr.c : Likewise.
25303 * config/nds32/nds32-md-auxiliary.c : Likewise.
25304 * config/nds32/nds32-memory-manipulation.c : Likewise.
25305 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
25306 * config/nds32/nds32-predicates.c : Likewise.
25307 * config/nds32/nds32.c : Likewise.
25308 * config/nios2/nios2.c : Likewise.
25309 * config/nvptx/nvptx.c : Likewise.
25310 * config/pa/pa.c : Likewise.
25311 * config/pdp11/pdp11.c : Likewise.
25312 * config/rl78/rl78-c.c : Likewise.
25313 * config/rl78/rl78.c : Likewise.
25314 * config/rs6000/rs6000-c.c : Likewise.
25315 * config/rs6000/rs6000.c : Likewise.
25316 * config/rx/rx.c : Likewise.
25317 * config/s390/s390-c.c : Likewise.
25318 * config/s390/s390.c : Likewise.
25319 * config/sh/sh-c.c : Likewise.
25320 * config/sh/sh-mem.cc : Likewise.
25321 * config/sh/sh.c : Likewise.
25322 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
25323 * config/sh/sh_treg_combine.cc : Likewise.
25324 * config/sol2-c.c : Likewise.
25325 * config/sol2-cxx.c : Likewise.
25326 * config/sol2-stubs.c : Likewise.
25327 * config/sol2.c : Likewise.
25328 * config/sparc/sparc-c.c : Likewise.
25329 * config/sparc/sparc.c : Likewise.
25330 * config/spu/spu-c.c : Likewise.
25331 * config/spu/spu.c : Likewise.
25332 * config/stormy16/stormy16.c : Likewise.
25333 * config/tilegx/mul-tables.c : Likewise.
25334 * config/tilegx/tilegx-c.c : Likewise.
25335 * config/tilegx/tilegx.c : Likewise.
25336 * config/tilepro/mul-tables.c : Likewise.
25337 * config/tilepro/tilepro-c.c : Likewise.
25338 * config/tilepro/tilepro.c : Likewise.
25339 * config/v850/v850-c.c : Likewise.
25340 * config/v850/v850.c : Likewise.
25341 * config/vax/vax.c : Likewise.
25342 * config/visium/visium.c : Likewise.
25343 * config/vms/vms-c.c : Likewise.
25344 * config/vms/vms.c : Likewise.
25345 * config/vxworks.c : Likewise.
25346 * config/winnt-c.c : Likewise.
25347 * config/xtensa/xtensa.c : Likewise.
25349 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25352 * ipa-utils.h (warn_types_mismatch): Update prototype.
25353 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
25355 (type_mismatch_p): New function.
25356 (warn_types_mismatch): Reorg to work better on non-C++ types.
25357 (odr_types_equivalent_p): Add loc1/loc2 parameters.
25358 (add_type_duplicate): Update.
25360 2015-06-08 Tom de Vries <tom@codesourcery.com>
25362 PR rtl-optimization/66444
25363 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
25366 2015-06-08 Richard Biener <rguenther@suse.de>
25368 PR tree-optimization/66422
25369 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
25370 block after inserted gcc_unreachable.
25372 2015-06-08 Nick Clifton <nickc@redhat.com>
25374 * config/rx/rx.c (rx_function_value): Do not promote vector types.
25375 (rx_promote_function_mode): Likewise.
25376 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
25378 2015-06-08 Jakub Jelinek <jakub@redhat.com>
25380 * genattrtab.c (insn_alternatives): Change type from int *
25382 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
25383 (get_attr_value): Change type of num_alt to uint64_t.
25384 (compute_alternative_mask): Change return type from
25385 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
25386 (make_alternative_compare, mk_attr_alt): Change argument type
25387 from int to uint64_t.
25388 (simplify_test_exp): Change type of i from int to uint64_t.
25389 Shift ((uint64_t) 1) instead of 1 up.
25390 (main): Adjust oballocvec first argument from int to uint64_t.
25391 Shift ((uint64_t) 1) instead of 1 up.
25393 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
25396 * gdbhooks.py: Import sys.
25397 (intptr): New function. Replace int(...) by intptr(...).
25399 2015-06-08 Richard Biener <rguenther@suse.de>
25401 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
25402 adjustment for gaps at the end of a SLP load group properly.
25403 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
25404 all permutations we can generate.
25405 (vect_transform_slp_perm_load): Use the correct group-size.
25407 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
25409 * genmatch.c (expr::gen_transform): For conditions, guess the type
25410 from the second operand.
25412 2015-06-08 Tom de Vries <tom@codesourcery.com>
25414 PR tree-optimization/66442
25415 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
25416 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
25417 if the loop latch is not a singleton. Use
25418 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
25420 2015-06-08 Marek Polacek <polacek@redhat.com>
25423 * toplev.c (check_global_declaration): Don't warn about artificial
25426 2015-06-08 Tom de Vries <tom@codesourcery.com>
25428 PR tree-optimization/66436
25429 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
25431 * gimplify.c: Add tree-dump.h include.
25432 (gimplify_function_tree): Dump function to gimple dump file.
25433 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
25436 2015-06-08 Tom de Vries <tom@codesourcery.com>
25438 PR tree-optimization/66435
25439 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
25442 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
25444 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
25445 of ptr_type_node to not be ptr_to_node.
25446 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
25447 TREE_TYPE of pointers.
25448 * gimple-expr.c (useless_type_conversion): Reorder the check for
25449 function pointers and TYPE_CANONICAL.
25451 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
25454 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
25455 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
25456 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
25458 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
25459 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
25460 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
25461 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
25462 and non iso if unix2003.
25464 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
25466 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
25468 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
25470 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
25471 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
25472 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
25473 except.c, final.c, function.c, gcse-common.c, genemit.c,
25474 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
25475 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
25476 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
25477 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
25480 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
25482 * combine.c (combine_split_insns): Remove cast.
25483 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
25484 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
25485 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
25486 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
25487 * genemit.c (gen_split): Change return type of generated functions to
25489 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
25490 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
25491 gen_peephole2_* functions.
25492 (print_subroutine, main): Likewise.
25493 * recog.c (peephole2_optimize): Remove cast.
25494 (peep2_next_insn): Promote return type to rtx_insn.
25495 * recog.h (peep2_next_insn): Fix prototype.
25496 * rtl.h (try_split, split_insns): Likewise.
25498 2015-06-06 DJ Delorie <dj@redhat.com>
25500 * config/msp430/msp430.c (msp430_asm_integer): Support addition
25501 and subtraction too.
25503 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
25506 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
25507 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
25508 instead of Snd. Disparage Sid/z alternative with '^'.
25510 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
25512 * dwarf2out.c: Remove deferred_locations*.
25513 (dwarf2_debug_hooks): Add early_finish hook.
25514 Remove global_decl hook.
25515 Add early_global_decl and late_global_decl hook.
25516 New global early_dwarf.
25517 New structure set_early_dwarf.
25518 (output_die): Indicate whether a DIE was generated early
25519 when generating assembly with -dA.
25520 (struct limbo_die_struct): Document created_for field.
25521 Remove file_table_last_lookup.
25522 (remove_AT): Return TRUE if successful.
25523 (remove_child_TAG): Clear die_parent.
25524 (reparent_child): New function abstracted from...
25525 (splice_child_die): ...here.
25526 (new_die): ICE if a DIE ends up in limbo too late.
25528 (defer_location): Remove.
25529 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
25530 (fill_variable_array_bounds): New.
25531 (decl_start_label): Call fill_variable_array_bounds.
25532 (gen_formal_parameter_die): Rewrite to reuse previously generated
25534 (gen_subprogram_die): Same.
25535 (gen_variable_die): Same.
25536 (gen_const_die): Same.
25537 (gen_label_die): Same.
25538 (gen_lexical_block_die): Same.
25539 (decl_will_get_specification_p): New.
25540 (local_function_static): New.
25541 (gen_struct_or_union_type_die): Fill in variable-length fields.
25542 (gen_typedef_die): Fill in variable-length typedefs.
25543 (gen_tagged_type_die): Gracefully return on error_mark_node.
25544 Handle re-entrancy.
25545 (gen_type_die_with_usage): Handle variable-length types.
25546 Remove duplicate code for ARRAY_TYPE case.
25547 (process_scope_var): Only process imported modules during early
25549 (dwarf2out_early_global_decl): New.
25550 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
25551 (dwarf2out_type_decl): Set early_dwarf while calling
25553 (dwarf2out_decl): Verify that we did not recreate a previously
25555 Do not return on DECL_EXTERNALs in VAR_DECLs.
25556 Abstract some code to local_function_static.
25557 (lookup_filename): Remove use of file_table_last_lookup.
25558 Gracefully exit on missing file_name.
25559 (dwarf2out_finish): Verify limbo list.
25560 Remove deferred_locations_list use.
25561 Move deferred_asm_name and limbo flushing to...
25562 (dwarf2out_early_finish): ...here. New.
25563 (dwarf2out_c_finalize): Remove set of deferred_location_list,
25564 deferred_asm_name, and file_table_last_lookup.
25565 * cgraph.h (referred_to_p): Add default argument.
25566 * cgraphunit.c (referred_to_p): Add and handle include_self
25568 (analyze_functions): Add first_time argument.
25569 Call check_global_declaration for all symbols.
25570 Call late_global_decl for nodes for moribund nodes.
25571 (finalize_compilation_unit): Add new argument to
25573 Call early_global_decl for functions.
25574 Call early_finish debug hook.
25575 * dbxout.c (dbxout_early_global_decl): New.
25576 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
25577 (dbx_debug_hooks): Add new hooks.
25578 (xcoff_debug_hooks): Same.
25579 * debug.c (do_nothing_debug_hooks): Add early_finish field.
25580 Add early and late debug hooks.
25581 Remove global_decl hook.
25582 * debug.h (struct gcc_debug_hooks): Add early_finish,
25583 early_global_decl, and late_global_decl fields.
25584 Remove global_decl field.
25585 Document gcc_debug_hooks.
25586 * gengtype.c (output_typename): Remove.
25587 * godump.c (go_early_global_decl): New.
25588 (go_late_global_decl): New.
25589 (go_global_decl): Remove.
25590 (dump_go_spec_init): Remove global_decl. Add
25591 {early,late}_global_decl.
25592 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
25593 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
25594 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
25595 (write_global_declarations): Remove.
25596 (global_decl_processing): New.
25597 * langhooks.h (struct lang_hooks_for_decls): Remove
25598 final_write_globals field.
25599 Add post_compilation_parsing_cleanups field.
25600 * passes.c (rest_of_decl_compilation): Call early_global_decl.
25601 * sdbout.c: Add early and late_global_decl hooks. Remove
25602 sdbout_global_decl hook.
25603 Add early_finish field for sdb_debug_hooks.
25604 (sdbout_global_decl): Remove.
25605 (sdbout_early_global_decl): New.
25606 (sdbout_late_global_decl): New.
25607 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
25608 * toplev.c (check_global_declaration): Rename from
25609 check_global_declaration_1.
25610 Adapt to use symtab infrastructure.
25611 (check_global_declarations): Remove.
25612 (emit_debug_global_declarations): Remove.
25613 (compile_file): Remove call to final_write_globals langhook.
25614 Run the actual compilation process.
25615 Perform any post compilation parser cleanups.
25616 Generate late debug info.
25617 * toplev.h (check_global_declaration): New.
25618 (check_global_declaration_1): Remove.
25619 (check_global_declarations): Remove.
25620 (write_global_declarations): Remove.
25621 (emit_debug_global_declarations): Remove.
25622 (global_decl_processing): New.
25623 * tree-core.h (struct tree_block): Add DIE field.
25624 * tree.h (BLOCK_DIE): New.
25625 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
25627 (vmsdbgout_early_global_decl): New.
25628 (vmsdbgout_late_global_decl): New.
25629 Add early_finish debug hook field to vmsdbg_debug_hooks.
25630 Remove vmsdbgout_decl to vmsdbgout_function_decl.
25631 Add early and late_global_decl debug hooks.
25633 2015-06-05 Julian Brown <julian@codesourcery.com>
25634 Sandra Loosemore <sandra@codesourcery.com>
25636 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
25637 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
25638 to print-sysroot-suffix.sh script.
25640 2015-06-05 Tom de Vries <tom@codesourcery.com>
25642 merge from gomp4 branch:
25643 2015-05-28 Tom de Vries <tom@codesourcery.com>
25645 PR tree-optimization/65443
25646 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
25647 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
25648 (try_transform_to_exit_first_loop_alt): New function.
25649 (transform_to_exit_first_loop): Use
25650 try_transform_to_exit_first_loop_alt.
25652 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
25654 * builtins.c (expand_builtin_atomic_compare_exchange): Call
25655 emit_cmp_and_jump_insns with the mode of target.
25657 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25659 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
25661 2015-06-04 DJ Delorie <dj@redhat.com>
25663 * config/msp430/msp430.md (movsi_s): New. Special case for
25664 storing a 20-bit symbol into a 32-bit register.
25665 * config/msp430/msp430.c (msp430_subreg): Add support for it.
25666 * config/msp430/predicates.md (msp430_symbol_operand): New.
25668 2015-06-04 Sriraman Tallam <tmsriram@google.com>
25670 * c-family/c-common.c (noplt): New attribute.
25671 (handle_noplt_attribute): New handler.
25672 * calls.c (prepare_call_address): Check for noplt
25674 * config/i386/i386.c (ix86_expand_call): Check
25675 for noplt attribute.
25676 (ix86_nopic_noplt_attribute_p): New function.
25677 (ix86_output_call_insn): Output indirect call for non-pic
25679 * doc/extend.texi (noplt): Document new attribute.
25680 * doc/invoke.texi: Document new attribute.
25682 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
25684 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
25685 real.h, and fixed-value.h when included in host source files.
25686 * double-int.h: Remove redundant #includes listed above.
25687 * fixed-value.h: Likewise.
25688 * real.h: Likewise.
25689 * wide-int.h: Likewise.
25690 * inchash.h: Likewise.
25691 * rtl.h: Add some include files When included from a generator file.
25692 * target.h: Remove wide-int.h and insn-modes.h from the include list.
25693 * internal-fn.h: Don't include coretypes.h.
25694 * alias.c: Adjust includes for restructured coretypes.h.
25695 * asan.c: Likewise.
25696 * attribs.c: Likewise.
25697 * auto-inc-dec.c: Likewise.
25698 * auto-profile.c: Likewise.
25699 * bb-reorder.c: Likewise.
25700 * bt-load.c: Likewise.
25701 * builtins.c: Likewise.
25702 * caller-save.c: Likewise.
25703 * calls.c: Likewise.
25704 * ccmp.c: Likewise.
25706 * cfganal.c: Likewise.
25707 * cfgbuild.c: Likewise.
25708 * cfgcleanup.c: Likewise.
25709 * cfgexpand.c: Likewise.
25710 * cfghooks.c: Likewise.
25711 * cfgloop.c: Likewise.
25712 * cfgloop.h: Likewise.
25713 * cfgloopanal.c: Likewise.
25714 * cfgloopmanip.c: Likewise.
25715 * cfgrtl.c: Likewise.
25716 * cgraph.c: Likewise.
25717 * cgraphbuild.c: Likewise.
25718 * cgraphclones.c: Likewise.
25719 * cgraphunit.c: Likewise.
25720 * cilk-common.c: Likewise.
25721 * combine-stack-adj.c: Likewise.
25722 * combine.c: Likewise.
25723 * compare-elim.c: Likewise.
25724 * convert.c: Likewise.
25725 * coverage.c: Likewise.
25726 * cppbuiltin.c: Likewise.
25727 * cprop.c: Likewise.
25729 * cselib.c: Likewise.
25730 * data-streamer-in.c: Likewise.
25731 * data-streamer-out.c: Likewise.
25732 * data-streamer.c: Likewise.
25733 * dbxout.c: Likewise.
25736 * debug.c: Likewise.
25737 * df-core.c: Likewise.
25738 * df-problems.c: Likewise.
25739 * df-scan.c: Likewise.
25742 * dojump.c: Likewise.
25743 * dominance.c: Likewise.
25744 * domwalk.c: Likewise.
25745 * double-int.c: Likewise.
25747 * dumpfile.c: Likewise.
25748 * dwarf2asm.c: Likewise.
25749 * dwarf2cfi.c: Likewise.
25750 * dwarf2out.c: Likewise.
25751 * dwarf2out.h: Likewise.
25752 * emit-rtl.c: Likewise.
25753 * et-forest.c: Likewise.
25754 * except.c: Likewise.
25755 * explow.c: Likewise.
25756 * expmed.c: Likewise.
25757 * expr.c: Likewise.
25758 * final.c: Likewise.
25759 * fixed-value.c: Likewise.
25760 * fold-const.c: Likewise.
25761 * function.c: Likewise.
25762 * fwprop.c: Likewise.
25763 * gcc-plugin.h: Likewise.
25764 * gcse.c: Likewise.
25765 * generic-match-head.c: Likewise.
25766 * ggc-page.c: Likewise.
25767 * gimple-builder.c: Likewise.
25768 * gimple-expr.c: Likewise.
25769 * gimple-fold.c: Likewise.
25770 * gimple-iterator.c: Likewise.
25771 * gimple-low.c: Likewise.
25772 * gimple-match-head.c: Likewise.
25773 * gimple-pretty-print.c: Likewise.
25774 * gimple-ssa-isolate-paths.c: Likewise.
25775 * gimple-ssa-strength-reduction.c: Likewise.
25776 * gimple-streamer-in.c: Likewise.
25777 * gimple-streamer-out.c: Likewise.
25778 * gimple-streamer.h: Likewise.
25779 * gimple-walk.c: Likewise.
25780 * gimple.c: Likewise.
25781 * gimplify-me.c: Likewise.
25782 * gimplify.c: Likewise.
25783 * godump.c: Likewise.
25784 * graph.c: Likewise.
25785 * graphite-blocking.c: Likewise.
25786 * graphite-dependences.c: Likewise.
25787 * graphite-interchange.c: Likewise.
25788 * graphite-isl-ast-to-gimple.c: Likewise.
25789 * graphite-optimize-isl.c: Likewise.
25790 * graphite-poly.c: Likewise.
25791 * graphite-scop-detection.c: Likewise.
25792 * graphite-sese-to-poly.c: Likewise.
25793 * graphite.c: Likewise.
25794 * haifa-sched.c: Likewise.
25795 * hooks.h: Likewise.
25796 * hw-doloop.c: Likewise.
25797 * ifcvt.c: Likewise.
25798 * incpath.c: Likewise.
25799 * init-regs.c: Likewise.
25800 * internal-fn.c: Likewise.
25801 * ipa-chkp.c: Likewise.
25802 * ipa-comdats.c: Likewise.
25803 * ipa-cp.c: Likewise.
25804 * ipa-devirt.c: Likewise.
25805 * ipa-icf-gimple.c: Likewise.
25806 * ipa-icf.c: Likewise.
25807 * ipa-inline-analysis.c: Likewise.
25808 * ipa-inline-transform.c: Likewise.
25809 * ipa-inline.c: Likewise.
25810 * ipa-polymorphic-call.c: Likewise.
25811 * ipa-profile.c: Likewise.
25812 * ipa-prop.c: Likewise.
25813 * ipa-pure-const.c: Likewise.
25814 * ipa-ref.c: Likewise.
25815 * ipa-reference.c: Likewise.
25816 * ipa-split.c: Likewise.
25817 * ipa-utils.c: Likewise.
25818 * ipa-visibility.c: Likewise.
25820 * ira-build.c: Likewise.
25821 * ira-color.c: Likewise.
25822 * ira-conflicts.c: Likewise.
25823 * ira-costs.c: Likewise.
25824 * ira-emit.c: Likewise.
25825 * ira-lives.c: Likewise.
25827 * jump.c: Likewise.
25828 * langhooks.c: Likewise.
25830 * loop-doloop.c: Likewise.
25831 * loop-init.c: Likewise.
25832 * loop-invariant.c: Likewise.
25833 * loop-iv.c: Likewise.
25834 * loop-unroll.c: Likewise.
25835 * lower-subreg.c: Likewise.
25836 * lra-assigns.c: Likewise.
25837 * lra-coalesce.c: Likewise.
25838 * lra-constraints.c: Likewise.
25839 * lra-eliminations.c: Likewise.
25840 * lra-lives.c: Likewise.
25841 * lra-remat.c: Likewise.
25842 * lra-spills.c: Likewise.
25844 * lto-cgraph.c: Likewise.
25845 * lto-compress.c: Likewise.
25846 * lto-opts.c: Likewise.
25847 * lto-section-in.c: Likewise.
25848 * lto-section-out.c: Likewise.
25849 * lto-streamer-in.c: Likewise.
25850 * lto-streamer-out.c: Likewise.
25851 * lto-streamer.c: Likewise.
25853 * mode-switching.c: Likewise.
25854 * modulo-sched.c: Likewise.
25855 * omega.c: Likewise.
25856 * omp-low.c: Likewise.
25857 * optabs.c: Likewise.
25858 * opts-global.c: Likewise.
25859 * passes.c: Likewise.
25860 * plugin.c: Likewise.
25861 * postreload-gcse.c: Likewise.
25862 * postreload.c: Likewise.
25863 * predict.c: Likewise.
25864 * print-rtl.c: Likewise.
25865 * print-tree.c: Likewise.
25866 * profile.c: Likewise.
25867 * real.c: Likewise.
25868 * realmpfr.c: Likewise.
25869 * realmpfr.h: Likewise.
25870 * recog.c: Likewise.
25872 * reg-stack.c: Likewise.
25873 * regcprop.c: Likewise.
25874 * reginfo.c: Likewise.
25875 * regrename.c: Likewise.
25876 * regs.h: Likewise.
25877 * regstat.c: Likewise.
25878 * reload.c: Likewise.
25879 * reload1.c: Likewise.
25880 * reorg.c: Likewise.
25881 * resource.c: Likewise.
25882 * rtl-chkp.c: Likewise.
25883 * rtlanal.c: Likewise.
25884 * rtlhooks.c: Likewise.
25885 * sanopt.c: Likewise.
25886 * sched-deps.c: Likewise.
25887 * sched-ebb.c: Likewise.
25888 * sched-rgn.c: Likewise.
25889 * sched-vis.c: Likewise.
25890 * sdbout.c: Likewise.
25891 * sel-sched-dump.c: Likewise.
25892 * sel-sched-ir.c: Likewise.
25893 * sel-sched.c: Likewise.
25894 * sese.c: Likewise.
25895 * shrink-wrap.c: Likewise.
25896 * shrink-wrap.h: Likewise.
25897 * simplify-rtx.c: Likewise.
25898 * stack-ptr-mod.c: Likewise.
25899 * statistics.c: Likewise.
25900 * stmt.c: Likewise.
25901 * stor-layout.c: Likewise.
25902 * store-motion.c: Likewise.
25903 * stringpool.c: Likewise.
25904 * symtab.c: Likewise.
25905 * target-globals.c: Likewise.
25906 * targhooks.c: Likewise.
25907 * toplev.c: Likewise.
25908 * tracer.c: Likewise.
25909 * trans-mem.c: Likewise.
25910 * tree-affine.c: Likewise.
25911 * tree-affine.h: Likewise.
25912 * tree-browser.c: Likewise.
25913 * tree-call-cdce.c: Likewise.
25914 * tree-cfg.c: Likewise.
25915 * tree-cfgcleanup.c: Likewise.
25916 * tree-chkp-opt.c: Likewise.
25917 * tree-chkp.c: Likewise.
25918 * tree-chrec.c: Likewise.
25919 * tree-complex.c: Likewise.
25920 * tree-data-ref.c: Likewise.
25921 * tree-dfa.c: Likewise.
25922 * tree-diagnostic.c: Likewise.
25923 * tree-dump.c: Likewise.
25924 * tree-eh.c: Likewise.
25925 * tree-emutls.c: Likewise.
25926 * tree-if-conv.c: Likewise.
25927 * tree-inline.c: Likewise.
25928 * tree-into-ssa.c: Likewise.
25929 * tree-iterator.c: Likewise.
25930 * tree-loop-distribution.c: Likewise.
25931 * tree-nested.c: Likewise.
25932 * tree-nrv.c: Likewise.
25933 * tree-object-size.c: Likewise.
25934 * tree-outof-ssa.c: Likewise.
25935 * tree-parloops.c: Likewise.
25936 * tree-phinodes.c: Likewise.
25937 * tree-predcom.c: Likewise.
25938 * tree-pretty-print.c: Likewise.
25939 * tree-pretty-print.h: Likewise.
25940 * tree-profile.c: Likewise.
25941 * tree-scalar-evolution.c: Likewise.
25942 * tree-sra.c: Likewise.
25943 * tree-ssa-address.c: Likewise.
25944 * tree-ssa-alias.c: Likewise.
25945 * tree-ssa-ccp.c: Likewise.
25946 * tree-ssa-coalesce.c: Likewise.
25947 * tree-ssa-copy.c: Likewise.
25948 * tree-ssa-copyrename.c: Likewise.
25949 * tree-ssa-dce.c: Likewise.
25950 * tree-ssa-dom.c: Likewise.
25951 * tree-ssa-dse.c: Likewise.
25952 * tree-ssa-forwprop.c: Likewise.
25953 * tree-ssa-ifcombine.c: Likewise.
25954 * tree-ssa-live.c: Likewise.
25955 * tree-ssa-loop-ch.c: Likewise.
25956 * tree-ssa-loop-im.c: Likewise.
25957 * tree-ssa-loop-ivcanon.c: Likewise.
25958 * tree-ssa-loop-ivopts.c: Likewise.
25959 * tree-ssa-loop-manip.c: Likewise.
25960 * tree-ssa-loop-niter.c: Likewise.
25961 * tree-ssa-loop-prefetch.c: Likewise.
25962 * tree-ssa-loop-unswitch.c: Likewise.
25963 * tree-ssa-loop.c: Likewise.
25964 * tree-ssa-loop.h: Likewise.
25965 * tree-ssa-math-opts.c: Likewise.
25966 * tree-ssa-operands.c: Likewise.
25967 * tree-ssa-phiopt.c: Likewise.
25968 * tree-ssa-phiprop.c: Likewise.
25969 * tree-ssa-pre.c: Likewise.
25970 * tree-ssa-propagate.c: Likewise.
25971 * tree-ssa-reassoc.c: Likewise.
25972 * tree-ssa-sccvn.c: Likewise.
25973 * tree-ssa-scopedtables.c: Likewise.
25974 * tree-ssa-sink.c: Likewise.
25975 * tree-ssa-strlen.c: Likewise.
25976 * tree-ssa-structalias.c: Likewise.
25977 * tree-ssa-tail-merge.c: Likewise.
25978 * tree-ssa-ter.c: Likewise.
25979 * tree-ssa-threadedge.c: Likewise.
25980 * tree-ssa-threadupdate.c: Likewise.
25981 * tree-ssa-uncprop.c: Likewise.
25982 * tree-ssa-uninit.c: Likewise.
25983 * tree-ssa.c: Likewise.
25984 * tree-ssanames.c: Likewise.
25985 * tree-stdarg.c: Likewise.
25986 * tree-streamer-in.c: Likewise.
25987 * tree-streamer-out.c: Likewise.
25988 * tree-streamer.c: Likewise.
25989 * tree-switch-conversion.c: Likewise.
25990 * tree-tailcall.c: Likewise.
25991 * tree-vect-data-refs.c: Likewise.
25992 * tree-vect-generic.c: Likewise.
25993 * tree-vect-loop-manip.c: Likewise.
25994 * tree-vect-loop.c: Likewise.
25995 * tree-vect-patterns.c: Likewise.
25996 * tree-vect-slp.c: Likewise.
25997 * tree-vect-stmts.c: Likewise.
25998 * tree-vectorizer.c: Likewise.
25999 * tree-vrp.c: Likewise.
26000 * tree.c: Likewise.
26001 * tsan.c: Likewise.
26002 * ubsan.c: Likewise.
26003 * valtrack.c: Likewise.
26004 * value-prof.c: Likewise.
26005 * var-tracking.c: Likewise.
26006 * varasm.c: Likewise.
26007 * varpool.c: Likewise.
26008 * vmsdbgout.c: Likewise.
26009 * vtable-verify.c: Likewise.
26011 * wide-int-print.cc: Likewise.
26012 * wide-int-print.h: Likewise.
26013 * wide-int.cc: Likewise.
26014 * xcoffout.c: Likewise.
26015 * config/aarch64/aarch64-builtins.c: Likewise.
26016 * config/aarch64/aarch64.c: Likewise.
26017 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26018 * config/alpha/alpha.c: Likewise.
26019 * config/arc/arc.c: Likewise.
26020 * config/arm/aarch-common.c: Likewise.
26021 * config/arm/arm-builtins.c: Likewise.
26022 * config/arm/arm-c.c: Likewise.
26023 * config/arm/arm.c: Likewise.
26024 * config/avr/avr-c.c: Likewise.
26025 * config/avr/avr-log.c: Likewise.
26026 * config/avr/avr.c: Likewise.
26027 * config/bfin/bfin.c: Likewise.
26028 * config/c6x/c6x.c: Likewise.
26029 * config/cr16/cr16.c: Likewise.
26030 * config/cris/cris.c: Likewise.
26031 * config/darwin-c.c: Likewise.
26032 * config/darwin.c: Likewise.
26033 * config/default-c.c: Likewise.
26034 * config/epiphany/epiphany.c: Likewise.
26035 * config/epiphany/mode-switch-use.c: Likewise.
26036 * config/epiphany/resolve-sw-modes.c: Likewise.
26037 * config/fr30/fr30.c: Likewise.
26038 * config/frv/frv.c: Likewise.
26039 * config/ft32/ft32.c: Likewise.
26040 * config/glibc-c.c: Likewise.
26041 * config/h8300/h8300.c: Likewise.
26042 * config/i386/i386-c.c: Likewise.
26043 * config/i386/i386.c: Likewise.
26044 * config/i386/msformat-c.c: Likewise.
26045 * config/i386/winnt-cxx.c: Likewise.
26046 * config/i386/winnt-stubs.c: Likewise.
26047 * config/i386/winnt.c: Likewise.
26048 * config/ia64/ia64-c.c: Likewise.
26049 * config/ia64/ia64.c: Likewise.
26050 * config/iq2000/iq2000.c: Likewise.
26051 * config/lm32/lm32.c: Likewise.
26052 * config/m32c/m32c-pragma.c: Likewise.
26053 * config/m32c/m32c.c: Likewise.
26054 * config/m32r/m32r.c: Likewise.
26055 * config/m68k/m68k.c: Likewise.
26056 * config/mcore/mcore.c: Likewise.
26057 * config/mep/mep-pragma.c: Likewise.
26058 * config/mep/mep.c: Likewise.
26059 * config/microblaze/microblaze-c.c: Likewise.
26060 * config/microblaze/microblaze.c: Likewise.
26061 * config/mips/mips.c: Likewise.
26062 * config/mmix/mmix.c: Likewise.
26063 * config/mn10300/mn10300.c: Likewise.
26064 * config/moxie/moxie.c: Likewise.
26065 * config/msp430/msp430-c.c: Likewise.
26066 * config/msp430/msp430.c: Likewise.
26067 * config/nds32/nds32-cost.c: Likewise.
26068 * config/nds32/nds32-fp-as-gp.c: Likewise.
26069 * config/nds32/nds32-intrinsic.c: Likewise.
26070 * config/nds32/nds32-isr.c: Likewise.
26071 * config/nds32/nds32-md-auxiliary.c: Likewise.
26072 * config/nds32/nds32-memory-manipulation.c: Likewise.
26073 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26074 * config/nds32/nds32-predicates.c: Likewise.
26075 * config/nds32/nds32.c: Likewise.
26076 * config/nios2/nios2.c: Likewise.
26077 * config/nvptx/nvptx.c: Likewise.
26078 * config/pa/pa.c: Likewise.
26079 * config/pdp11/pdp11.c: Likewise.
26080 * config/rl78/rl78-c.c: Likewise.
26081 * config/rl78/rl78.c: Likewise.
26082 * config/rs6000/rs6000-c.c: Likewise.
26083 * config/rs6000/rs6000.c: Likewise.
26084 * config/rx/rx.c: Likewise.
26085 * config/s390/s390-c.c: Likewise.
26086 * config/s390/s390.c: Likewise.
26087 * config/sh/sh-c.c: Likewise.
26088 * config/sh/sh-mem.cc: Likewise.
26089 * config/sh/sh.c: Likewise.
26090 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26091 * config/sh/sh_treg_combine.cc: Likewise.
26092 * config/sol2-c.c: Likewise.
26093 * config/sol2-cxx.c: Likewise.
26094 * config/sol2-stubs.c: Likewise.
26095 * config/sol2.c: Likewise.
26096 * config/sparc/sparc-c.c: Likewise.
26097 * config/sparc/sparc.c: Likewise.
26098 * config/spu/spu-c.c: Likewise.
26099 * config/spu/spu.c: Likewise.
26100 * config/stormy16/stormy16.c: Likewise.
26101 * config/tilegx/mul-tables.c: Likewise.
26102 * config/tilegx/tilegx-c.c: Likewise.
26103 * config/tilegx/tilegx.c: Likewise.
26104 * config/tilepro/mul-tables.c: Likewise.
26105 * config/tilepro/tilepro-c.c: Likewise.
26106 * config/tilepro/tilepro.c: Likewise.
26107 * config/v850/v850-c.c: Likewise.
26108 * config/v850/v850.c: Likewise.
26109 * config/vax/vax.c: Likewise.
26110 * config/visium/visium.c: Likewise.
26111 * config/vms/vms-c.c: Likewise.
26112 * config/vms/vms.c: Likewise.
26113 * config/vxworks.c: Likewise.
26114 * config/winnt-c.c: Likewise.
26115 * config/xtensa/xtensa.c: Likewise.
26116 * common/config/bfin/bfin-common.c: Likewise.
26118 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
26120 * tree.h (tree_code_for_canonical_type_merging): New function.
26121 * tree.c (gimple_canonical_types_compatible_p): Use
26122 tree_code_for_canonical_type_merging..
26124 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26128 * doc/tm.texi: Regenerate.
26129 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
26130 * target.def (TARGET_RELAXED_ORDERING): Likewise.
26131 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
26132 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
26133 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
26134 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
26135 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
26136 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
26137 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
26139 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26141 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
26142 register fma steering pass.
26143 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
26144 AARCH64_TUNE_FMA_STEERING.
26146 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
26148 * tree.c (verify_type_variant): Verify that type and variant is
26150 (gimple_canonical_types_compatible_p): Look for main variants.
26152 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
26154 * config.gcc (powerpc*-*-*): Add support for a new configure
26155 option --with-advance-toolchain=<xxx> which overrides using the
26156 default header files, libraries and dynamic linker.
26158 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
26159 specs to support the configure --with-advance-toolchain=<xxx>
26161 (INCLUDE_EXTRA_SPEC): Likewise.
26162 (LINK_OS_EXTRA_SPEC32): Likewise.
26163 (LINK_OK_EXTRA_SPEC64): Likewise.
26164 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
26165 (DYNAMIC_LINKER_PREFIX): Likewise.
26166 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
26168 (GLIBC_DYNAMIC_LINKER32): Likewise.
26169 (GLIBC_DYNAMIC_LINKER64): Likewise.
26170 (LINK_OS_LINUX_SPEC32): Likewise.
26171 (LINK_OS_LINUX_SPEC64): Likewise.
26173 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
26174 configuration option.
26176 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
26179 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
26180 to determine current function ABI.
26181 (ix86_function_value_regno_p): Ditto.
26183 2015-06-03 Martin Liska <mliska@suse.cz>
26185 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
26186 * bitmap.h (struct bitmap_usage): Likewise.
26187 * ggc-common.c (struct ggc_usage): Likewise.
26188 * mem-stats.h (struct mem_location): Likewise.
26189 (struct mem_usage): Likewise.
26190 * vec.c (struct vec_usage): Likewise.
26192 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
26194 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
26197 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
26199 * doc/plugins.texi (enum plugin_event): New event.
26200 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
26201 and PLUGIN_FINISH_FUNCTION.
26202 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
26203 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
26205 2015-06-03 Richard Biener <rguenther@suse.de>
26207 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26208 compute GROUP_GAP for the first element.
26209 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
26212 2015-06-03 Nick Clifton <nickc@redhat.com>
26214 * config/rl78/rl78-real.md: Add peepholes to avoid a register
26215 copy when calling a function.
26216 * config/rl78/rl78.c (need_to_save): Do not push the frame
26217 pointer in an interrupt handler prologue if it is never used.
26219 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26221 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
26223 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
26225 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
26226 reference when cloning alias node.
26228 2015-06-03 Martin Liska <mliska@suse.cz>
26230 * alloc-pool.h (struct pool_usage): Correct space padding.
26231 * ggc-page.c (ggc_print_statistics): Align columns in a report.
26232 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
26233 * tree.c (dump_tree_statistics): Align columns in a report.
26235 2015-06-03 Martin Liska <mliska@suse.cz>
26237 * alloc-pool.c (allocate_pool_descriptor): Remove.
26238 (struct pool_output_info): Likewise.
26239 (print_alloc_pool_statistics): Likewise.
26240 (dump_alloc_pool_statistics): Likewise.
26241 * alloc-pool.h (struct pool_usage): New struct.
26242 (pool_allocator::initialize): Change usage of memory statistics
26243 to a new interface.
26244 (pool_allocator::release): Likewise.
26245 (pool_allocator::allocate): Likewise.
26246 (pool_allocator::remove): Likewise.
26247 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
26248 for a pool allocator.
26249 * mem-stats.h (struct mem_location): Add new ctor.
26250 (struct mem_usage): Add counter for number of
26252 (mem_alloc_description::register_descriptor): New overload of
26253 * mem-stats.h (mem_location::to_string): New function.
26254 * bitmap.h (struct bitmap_usage): Use this new function.
26255 * ggc-common.c (struct ggc_usage): Likewise.
26258 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
26260 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
26261 of GCC_INSN_FLAGS_H block.
26263 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
26265 * explow.c (plus_constant): Update check after force_const_mem call
26266 to see if the value returned is not a NULL_RTX.
26268 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
26270 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
26271 remove instumentation thunks calling reachable functions.
26272 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
26273 * lto/lto-partition.c (privatize_symbol_name_1): New.
26274 (privatize_symbol_name): Privatize both decl and orig_decl
26275 names for instrumented functions.
26276 * cgraph.c (cgraph_node::verify_node): Add transparent
26277 alias chain check for instrumented node.
26279 2015-06-03 Marek Polacek <polacek@redhat.com>
26283 * tree.c (attribute_value_equal): Handle attribute format.
26284 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
26286 2015-06-03 Richard Biener <rguenther@suse.de>
26288 PR tree-optimization/63916
26289 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
26290 Forward-propagate non-invariant addresses by splicing their
26291 reference ops if the result isn't going to be used by PRE.
26292 (vn_reference_lookup_3): Remove pointless assert.
26294 2015-06-03 Richard Biener <rguenther@suse.de>
26296 PR tree-optimization/66375
26297 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
26298 add to the evolution before following SSA edges.
26300 2015-06-03 Bin Cheng <bin.cheng@arm.com>
26302 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
26303 (dump_use, dump_cand, find_induction_variables): Pass new argument
26305 (record_use): Preserve the ssa name information in IV.
26307 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
26309 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
26311 (add_mode_tests): Don't add mode tests if the predicate only
26312 accepts scalar constant integers. Otherwise, allow the mode
26313 of "op" to be VOIDmode if the predicate does accept such integers.
26315 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
26318 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
26319 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
26320 (aarch64_secondary_reload): Likewise
26321 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
26323 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
26326 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
26327 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26330 * cprop.c (try_replace_reg): Check cost of constants before propagating.
26332 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26334 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
26335 provide access to the IBM extended double floating point mode if
26336 long double is IEEE 128-bit floating point.
26337 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
26338 point if long double is the IBM extended double type.
26340 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
26341 enable adding IEEE 128-bit floating point support.
26342 (-mfloat128-software): Likewise.
26343 (-mfloat128-sw): Likewise.
26345 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
26346 128-bit floating point types to occupy any register if
26347 -mlong-double-64. Do not allow use of IFmode/KFmode unless
26348 -mfloat128-software is enabled.
26349 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
26351 (rs6000_option_override_internal): Add -mfloat128-* support.
26352 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
26354 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
26355 and float128 type nodes.
26356 (ieee128_float_type_node): Likewise.
26357 (ibm128_float_type_node): Likewise.
26359 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26362 * config/aarch64/geniterators.sh: Rewrite in awk.
26364 2015-06-02 Martin Liska <mliska@suse.cz>
26366 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
26367 values to avoid -Wmaybe-uninitialized errors.
26369 2015-06-02 Richard Biener <rguenther@suse.de>
26372 * dwarf2out.c (lookup_context_die): New function.
26373 (resolve_addr): Avoid forcing a full DIE for the
26374 target of a DW_TAG_GNU_call_site during late compilation.
26375 Instead create a stub DIE without a type if we have a
26376 context DIE present.
26378 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
26380 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
26382 2015-06-02 Bin Cheng <bin.cheng@arm.com>
26384 PR tree-optimization/48052
26385 * cfgloop.h (struct control_iv): New.
26386 (struct loop): New field control_ivs.
26387 * tree-ssa-loop-niter.c : Include "stor-layout.h".
26388 (number_of_iterations_lt): Set no_overflow information.
26389 (number_of_iterations_exit): Init control iv in niter struct.
26390 (record_control_iv): New.
26391 (estimate_numbers_of_iterations_loop): Call record_control_iv.
26392 (loop_exits_before_overflow): New. Interface factored out of
26393 scev_probably_wraps_p.
26394 (scev_probably_wraps_p): Factor loop niter related code into
26395 loop_exits_before_overflow.
26396 (free_numbers_of_iterations_estimates_loop): Free control ivs.
26397 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
26399 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
26401 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
26402 the target doesn't belong to the current function.
26404 2015-06-02 Marek Polacek <polacek@redhat.com>
26406 PR middle-end/66345
26407 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
26408 get_maxval_strlen does not produce an INTEGER_CST.
26410 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
26412 * config/arc/constraints.md: Use lower-case names in match_code.
26413 * config/mmix/constraints.md: Likewise.
26415 2015-06-02 Richard Biener <rguenther@suse.de>
26417 PR tree-optimization/65961
26418 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
26419 check and clarify dump message.
26420 (vect_build_slp_tree): If all children are built up from scalars
26421 build up the parent from scalars instead.
26422 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
26424 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
26427 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
26428 instead of print ... .
26430 2015-06-02 Alan Modra <amodra@gmail.com>
26432 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
26435 2015-06-02 Bin Cheng <bin.cheng@arm.com>
26437 PR tree-optimization/52563
26438 PR tree-optimization/62173
26439 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
26440 (alloc_iv, set_iv): New parameter.
26441 (determine_biv_step): Delete.
26442 (find_bivs): Inline original determine_biv_step. Pass new
26443 argument to set_iv.
26444 (idx_find_step): Use no_overflow information for conversion.
26445 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
26446 resolve_mixers handle folded_casts.
26447 (instantiate_scev_name): Change bool parameter to bool pointer.
26448 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
26449 (instantiate_array_ref, instantiate_scev_not): Ditto.
26450 (instantiate_scev_3, instantiate_scev_2): Ditto.
26451 (instantiate_scev_1, instantiate_scev_r): Ditto.
26452 (instantiate_scev_convert, ): Change parameter. Pass argument
26453 to chrec_convert_aggressive.
26454 (instantiate_scev): Change argument.
26455 (resolve_mixers): New parameter and set it.
26456 (scev_const_prop): New argument.
26457 * tree-scalar-evolution.h (resolve_mixers): New parameter.
26458 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
26460 (chrec_convert): New parameter. Move definition below.
26461 (chrec_convert_aggressive): New parameter and set it. Call
26462 convert_affine_scev.
26463 * tree-chrec.h (chrec_convert): New parameter.
26464 (chrec_convert_aggressive): Ditto.
26466 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
26468 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
26469 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
26470 the LHS of a no-return call if its type has variable size.
26471 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
26472 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
26474 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
26476 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
26477 * config.in: Regenerate.
26479 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
26481 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
26482 consecutive accesses within outer-loop with force_vectorize
26483 for references with zero step in inner-loop.
26485 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
26487 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
26488 rather than from gcc/build directory.
26490 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
26493 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
26494 for __sync memory models, emit initial loads and final barriers as
26497 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
26500 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
26501 (aarch64_split_atomic_op): Check for __sync memory models, emit
26502 appropriate initial loads and final barriers.
26504 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
26506 * Makefile.in: Fix gcov dependencies that should
26507 not point to a build folder.
26509 2015-06-01 Richard Biener <rguenther@suse.de>
26512 2015-05-29 Richard Biener <rguenther@suse.de>
26514 PR tree-optimization/66314
26515 * tree-ssa-threadupdate.c (create_block_for_threading): Add
26516 parameter that says which loop the new block belongs to.
26517 (ssa_create_duplicates): Blocks duplicated for the threaded
26518 path belong to the loop of the thread destination.
26520 2015-06-01 Martin Liska <mliska@suse.cz>
26522 * sched-deps.c: Include pool-alloc.h before
26523 cselib.h header file is included.
26525 2015-06-01 Richard Biener <rguenther@suse.de>
26527 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
26530 2015-06-01 Martin Liska <mliska@suse.cz>
26532 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
26533 a function local variable.
26535 2015-06-01 Martin Liska <mliska@suse.cz>
26537 * alloc-pool.c (create_alloc_pool): Remove.
26538 (empty_alloc_pool): Likewise.
26539 (free_alloc_pool): Likewise.
26540 (free_alloc_pool_if_empty): Likewise.
26541 (pool_alloc): Likewise.
26542 (pool_free): Likewise.
26543 * alloc-pool.h: Remove old declarations.
26545 2015-06-01 Martin Liska <mliska@suse.cz>
26547 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
26548 (ira_create_object): Likewise.
26549 (ira_create_allocno): Likewise.
26550 (ira_create_live_range): Likewise.
26551 (copy_live_range): Likewise.
26552 (ira_finish_live_range): Likewise.
26553 (ira_free_allocno_costs): Likewise.
26554 (finish_allocno): Likewise.
26555 (finish_allocnos): Likewise.
26556 (initiate_prefs): Likewise.
26557 (ira_create_pref): Likewise.
26558 (finish_pref): Likewise.
26559 (finish_prefs): Likewise.
26560 (initiate_copies): Likewise.
26561 (ira_create_copy): Likewise.
26562 (finish_copy): Likewise.
26563 (finish_copies): Likewise.
26564 (finish_prefs): Likewise.
26566 2015-06-01 Martin Liska <mliska@suse.cz>
26568 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
26569 (allocate_and_init_ipcp_value): Likewise.
26570 (ipcp_lattice::add_value): Likewise.
26571 (merge_agg_lats_step): Likewise.
26572 (ipcp_driver): Likewise.
26573 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
26574 (ipa_free_all_structures_after_iinln): Likewise.
26575 * ipa-prop.h: Likewise.
26577 2015-06-01 Martin Liska <mliska@suse.cz>
26579 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
26581 (set_hint_predicate): Likewise.
26582 (inline_summary_alloc): Likewise.
26583 (reset_inline_edge_summary): Likewise.
26584 (reset_inline_summary): Likewise.
26585 (set_cond_stmt_execution_predicate): Likewise.
26586 (set_switch_stmt_execution_predicate): Likewise.
26587 (compute_bb_predicates): Likewise.
26588 (estimate_function_body_sizes): Likewise.
26589 (inline_free_summary): Likewise.
26591 2015-06-01 Martin Liska <mliska@suse.cz>
26593 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
26594 (ipa_edge_duplication_hook): Likewise.
26595 (ipa_free_all_structures_after_ipa_cp): Likewise.
26596 (ipa_free_all_structures_after_iinln): Likewise.
26598 2015-06-01 Martin Liska <mliska@suse.cz>
26600 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
26601 (ipa_profile_generate_summary): Likewise.
26602 (ipa_profile_read_summary): Likewise.
26603 (ipa_profile): Likewise.
26605 2015-06-01 Martin Liska <mliska@suse.cz>
26607 * tree-ssa-structalias.c (new_var_info): Use new type-based
26609 (new_constraint): Likewise.
26610 (init_alias_vars): Likewise.
26611 (delete_points_to_sets): Likewise.
26613 2015-06-01 Martin Liska <mliska@suse.cz>
26615 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
26616 (free_strinfo): Likewise.
26617 (pass_strlen::execute): Likewise.
26619 2015-06-01 Martin Liska <mliska@suse.cz>
26621 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
26623 (vn_reference_insert_pieces): Likewise.
26624 (vn_phi_insert): Likewise.
26625 (visit_reference_op_call): Likewise.
26626 (copy_phi): Likewise.
26627 (copy_reference): Likewise.
26628 (process_scc): Likewise.
26629 (allocate_vn_table): Likewise.
26630 (free_vn_table): Likewise.
26632 2015-06-01 Martin Liska <mliska@suse.cz>
26634 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
26636 (add_repeat_to_ops_vec): Likewise.
26637 (get_ops): Likewise.
26638 (maybe_optimize_range_tests): Likewise.
26639 (init_reassoc): Likewise.
26640 (fini_reassoc): Likewise.
26642 2015-06-01 Martin Liska <mliska@suse.cz>
26644 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
26646 (bitmap_set_new): Likewise.
26647 (get_or_alloc_expr_for_constant): Likewise.
26648 (get_or_alloc_expr_for): Likewise.
26649 (phi_translate_1): Likewise.
26650 (compute_avail): Likewise.
26651 (init_pre): Likewise.
26652 (fini_pre): Likewise.
26654 2015-06-01 Martin Liska <mliska@suse.cz>
26656 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
26657 (delete_dep_node): Likewise.
26658 (create_deps_list): Likewise.
26659 (free_deps_list): Likewise.
26660 (sched_deps_init): Likewise.
26661 (sched_deps_finish): Likewise.
26663 2015-06-01 Martin Liska <mliska@suse.cz>
26665 * regcprop.c (free_debug_insn_changes): Use new type-based
26667 (replace_oldest_value_reg): Likewise.
26668 (pass_cprop_hardreg::execute): Likewise.
26670 2015-06-01 Martin Liska <mliska@suse.cz>
26672 * ira-build.c (initiate_cost_vectors): Use new type-based
26674 (ira_allocate_cost_vector): Likewise.
26675 (ira_free_cost_vector): Likewise.
26676 (finish_cost_vectors): Likewise.
26678 2015-06-01 Martin Liska <mliska@suse.cz>
26680 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
26682 (free_sched_pools): Likewise.
26683 * sel-sched-ir.h (_list_alloc): Likewise.
26684 (_list_remove): Likewise.
26686 2015-06-01 Martin Liska <mliska@suse.cz>
26688 * stmt.c (add_case_node): Use new type-based pool allocator.
26689 (expand_case): Likewise.
26690 (expand_sjlj_dispatch_table): Likewise.
26692 2015-06-01 Martin Liska <mliska@suse.cz>
26694 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
26695 (free_bb): Likewise.
26696 (pass_cse_reciprocals::execute): Likewise.
26698 2015-06-01 Martin Liska <mliska@suse.cz>
26700 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
26701 (sra_deinitialize) Likewise.
26702 (create_access_1) Likewise.
26703 (build_accesses_from_assign) Likewise.
26704 (create_artificial_child_access) Likewise.
26706 2015-06-01 Martin Liska <mliska@suse.cz>
26708 * dse.c (get_group_info):Use new type-based pool allocator.
26709 (dse_step0) Likewise.
26710 (free_store_info) Likewise.
26711 (delete_dead_store_insn) Likewise.
26712 (free_read_records) Likewise.
26713 (record_store) Likewise.
26714 (replace_read) Likewise.
26715 (check_mem_read_rtx) Likewise.
26716 (scan_insn) Likewise.
26717 (dse_step1) Likewise.
26718 (dse_step7) Likewise.
26720 2015-06-01 Martin Liska <mliska@suse.cz>
26722 * df-scan.c (struct df_scan_problem_data):Use new type-based
26724 (df_scan_free_internal) Likewise.
26725 (df_scan_alloc) Likewise.
26726 (df_grow_reg_info) Likewise.
26727 (df_free_ref) Likewise.
26728 (df_insn_create_insn_record) Likewise.
26729 (df_mw_hardreg_chain_delete) Likewise.
26730 (df_insn_info_delete) Likewise.
26731 (df_free_collection_rec) Likewise.
26732 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
26733 (df_sort_and_compress_mws) Likewise.
26734 (df_ref_create_structure) Likewise.
26735 (df_ref_record) Likewise.
26737 2015-06-01 Martin Liska <mliska@suse.cz>
26739 * df-problems.c (df_chain_create):Use new type-based pool allocator.
26740 (df_chain_unlink_1) Likewise.
26741 (df_chain_unlink) Likewise.
26742 (df_chain_remove_problem) Likewise.
26743 (df_chain_alloc) Likewise.
26744 (df_chain_free) Likewise.
26745 * df.h (struct dataflow) Likewise.
26747 2015-06-01 Martin Liska <mliska@suse.cz>
26749 * cselib.c (new_elt_list):Use new type-based pool allocator.
26750 (new_elt_loc_list) Likewise.
26751 (unchain_one_elt_list) Likewise.
26752 (unchain_one_elt_loc_list) Likewise.
26753 (unchain_one_value) Likewise.
26754 (new_cselib_val) Likewise.
26755 (cselib_init) Likewise.
26756 (cselib_finish) Likewise.
26758 2015-06-01 Martin Liska <mliska@suse.cz>
26760 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
26761 (sh_reorg) Likewise.
26763 2015-06-01 Martin Liska <mliska@suse.cz>
26765 * cfg.c (initialize_original_copy_tables):Use new type-based
26767 (free_original_copy_tables) Likewise.
26768 (copy_original_table_clear) Likewise.
26769 (copy_original_table_set) Likewise.
26771 2015-06-01 Martin Liska <mliska@suse.cz>
26773 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
26775 (asan_mem_ref_new) Likewise.
26776 (free_mem_ref_resources) Likewise.
26778 2015-06-01 Martin Liska <mliska@suse.cz>
26780 * var-tracking.c (variable_htab_free):Use new type-based
26782 (attrs_list_clear) Likewise.
26783 (attrs_list_insert) Likewise.
26784 (attrs_list_copy) Likewise.
26785 (shared_hash_unshare) Likewise.
26786 (shared_hash_destroy) Likewise.
26787 (unshare_variable) Likewise.
26788 (var_reg_delete_and_set) Likewise.
26789 (var_reg_delete) Likewise.
26790 (var_regno_delete) Likewise.
26791 (drop_overlapping_mem_locs) Likewise.
26792 (variable_union) Likewise.
26793 (insert_into_intersection) Likewise.
26794 (canonicalize_values_star) Likewise.
26795 (variable_merge_over_cur) Likewise.
26796 (dataflow_set_merge) Likewise.
26797 (remove_duplicate_values) Likewise.
26798 (variable_post_merge_new_vals) Likewise.
26799 (dataflow_set_preserve_mem_locs) Likewise.
26800 (dataflow_set_remove_mem_locs) Likewise.
26801 (variable_from_dropped) Likewise.
26802 (variable_was_changed) Likewise.
26803 (set_slot_part) Likewise.
26804 (clobber_slot_part) Likewise.
26805 (delete_slot_part) Likewise.
26806 (loc_exp_insert_dep) Likewise.
26807 (notify_dependents_of_changed_value) Likewise.
26808 (emit_notes_for_differences_1) Likewise.
26809 (vt_emit_notes) Likewise.
26810 (vt_initialize) Likewise.
26811 (vt_finalize) Likewise.
26813 2015-06-01 Martin Liska <mliska@suse.cz>
26815 * ira-color.c (init_update_cost_records):Use new type-based
26817 (get_update_cost_record) Likewise.
26818 (free_update_cost_record_list) Likewise.
26819 (finish_update_cost_records) Likewise.
26820 (initiate_cost_update) Likewise.
26822 2015-06-01 Martin Liska <mliska@suse.cz>
26824 * lra.c (init_insn_regs): Use new type-based pool allocator.
26825 (new_insn_reg) Likewise.
26826 (free_insn_reg) Likewise.
26827 (free_insn_regs) Likewise.
26828 (finish_insn_regs) Likewise.
26829 (init_insn_recog_data) Likewise.
26830 (init_reg_info) Likewise.
26831 (finish_reg_info) Likewise.
26832 (lra_free_copies) Likewise.
26833 (lra_create_copy) Likewise.
26834 (invalidate_insn_data_regno_info) Likewise.
26836 2015-06-01 Martin Liska <mliska@suse.cz>
26838 * lra-lives.c (free_live_range): Use new type-based pool allocator.
26839 (free_live_range_list) Likewise.
26840 (create_live_range) Likewise.
26841 (copy_live_range) Likewise.
26842 (lra_merge_live_ranges) Likewise.
26843 (remove_some_program_points_and_update_live_ranges) Likewise.
26844 (lra_live_ranges_init) Likewise.
26845 (lra_live_ranges_finish) Likewise.
26847 2015-06-01 Martin Liska <mliska@suse.cz>
26849 * et-forest.c (et_new_occ): Use new type-based pool allocator.
26850 (et_new_tree): Likewise.
26851 (et_free_tree): Likewise.
26852 (et_free_tree_force): Likewise.
26853 (et_free_pools): Likewise.
26854 (et_split): Likewise.
26856 2015-06-01 Martin Liska <mliska@suse.cz>
26858 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
26860 * alloc-pool.h (pool_allocator::pool_allocator): New function.
26861 (pool_allocator::release): Likewise.
26862 (inline pool_allocator::release_if_empty): Likewise.
26863 (inline pool_allocator::~pool_allocator): Likewise.
26864 (pool_allocator::allocate): Likewise.
26865 (pool_allocator::remove): Likewise.
26867 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26869 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
26872 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26874 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
26876 * config/arm/arm.c (arm_print_tune_info): Likewise.
26877 (arm_macro_fusion_p): Likewise.
26878 (arm_macro_fusion_pair_p): Likewise.
26880 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26882 * config/aarch64/aarch64-protos.h (tune_params): Rename
26883 fuseable_ops to fusible_ops.
26884 * config/aarch64/aarch64.c (generic_tunings): Rename
26885 fuseable_ops to fusible_ops.
26886 (cortexa53_tunings): Likewise.
26887 (cortexa57_tunings): Likewise.
26888 (thunderx_tunings): Likewise.
26889 (xgene1_tunings): Likewise.
26890 (aarch64_macro_fusion_p): Likewise.
26891 (aarch64_macro_fusion_pair_p): Likewise.
26893 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
26895 * config/s390/driver-native.c: New file.
26896 * config/s390/x-native: New file.
26897 * config.host: Add new files for s390.
26898 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
26900 * config.gcc: Likewise.
26901 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
26902 * config/s390/s390-opts.h (enum processor_type): Ditto.
26903 * config/s390/s390.c (s390_option_override): Catch unhandled
26906 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
26909 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
26910 redirection for instrumented calls.
26911 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
26912 (append_compiler_options): Append -fcheck-pointer-bounds.
26913 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
26914 (chkp_redirect_edge): New.
26915 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
26916 (chkp_redirect_edge): New.
26918 2015-06-01 Richard Biener <rguenther@suse.de>
26920 PR tree-optimization/66280
26921 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
26924 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26926 * config/aarch64/aarch64.md
26927 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
26930 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
26932 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
26933 Remove obsolete kludge.
26935 2015-06-01 Richard Biener <rguenther@suse.de>
26937 * tree-ssa-reassoc.c (get_rank): Simplify.
26939 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
26941 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
26942 * configure: Regenerated.
26944 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
26946 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
26947 issue (add space between string literal and macro).
26948 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
26950 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
26952 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
26953 implict or explicit -fPIE or -fpie.
26955 2015-05-30 Mike Frysinger <vapier@gentoo.org>
26957 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
26959 2015-05-28 DJ Delorie <dj@redhat.com>
26961 * expmed.c (extract_bit_field_1): Avoid clobbering a
26962 yet-to-be-used base/index register.
26964 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
26966 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
26967 (alias_stats): Add num_universal.
26968 (alias_set_subset_of): Special case pointers; be ready for NULL
26970 (alias_sets_conflict_p): Special case pointers; be ready for NULL
26972 (init_alias_set_entry): Break out from ...
26973 (record_alias_subset): ... here; propagate new fields;
26974 allocate children only when really needed.
26975 (get_alias_set): Do less generous pointer globbing.
26976 (dump_alias_stats_in_alias_c): Update statistics.
26978 2015-05-30 Alan Modra <amodra@gmail.com>
26980 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
26981 correct block for use of r12.
26982 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
26984 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26987 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
26990 2015-05-29 Jakub Jelinek <jakub@redhat.com>
26992 PR tree-optimization/66142
26993 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
26994 virtual phis that feed themselves.
26996 2015-05-29 Richard Biener <rguenther@suse.de>
26998 PR tree-optimization/66314
26999 * tree-ssa-threadupdate.c (create_block_for_threading): Add
27000 parameter that says which loop the new block belongs to.
27001 (ssa_create_duplicates): Blocks duplicated for the threaded
27002 path belong to the loop of the thread destination.
27004 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27006 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
27007 to cleanup-saved-temps.
27008 * doc/sourcebuild.texi (Clean up generated test files): Expand
27010 (dg-keep-saved-temps): Document new proc.
27011 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
27012 cleanup-saved-temps): Remove.
27014 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
27016 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
27017 gcc_AC_CHECK_DECLS.
27018 * configure: Regenerate.
27020 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27022 * config/nios2/linux.h (CPP_SPEC): Define.
27024 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27026 * config/microblaze/linux.h (CPP_SPEC): Define.
27028 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27030 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
27031 -pthread is specified.
27033 2015-05-28 Richard Biener <rguenther@suse.de>
27035 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
27036 (vect_fixup_scalar_cycles_with_patterns): Likewise.
27037 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
27038 after pattern recog.
27039 (vect_create_epilog_for_reduction): Properly handle reductions
27041 (vectorizable_reduction): Likewise.
27042 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
27044 (vect_get_constant_vectors): Create the correct number of
27045 initial values for reductions.
27046 (vect_schedule_slp_instance): Handle reduction chains that are
27047 type changing properly.
27048 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
27050 2015-05-28 Richard Biener <rguenther@suse.de>
27052 PR tree-optimization/66142
27053 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
27054 values better in memcpy destination handling. Handle non-aliasing
27057 2015-05-28 Lawrence Velázquez <vq@larryv.me>
27060 * config/darwin-c.c (version_components): New global enum.
27061 (parse_version, version_as_legacy_macro)
27062 (version_as_modern_macro, macosx_version_as_macro): New functions.
27063 (version_as_macro): Remove.
27064 (darwin_cpp_builtins): Use new function.
27066 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
27068 * builtins.c (expand_builtin_acc_on_device): Mark parameters
27069 with ATTRIBUTE_UNUSED.
27071 2015-05-28 Julian Brown <julian@codesourcery.com>
27075 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
27076 sequence for !ACCEL_COMPILER.
27078 2015-05-28 Nick Clifton <nickc@redhat.com>
27080 * config/rx/rx.c (push_regs): New function. Extracts code from...
27081 (rx_expand_prologue): ... here. Use push_regs to push even small
27082 spans of registers.
27083 (pop_regs): New function.
27084 (rx_expand_epilogue): Use pop_regs to pop even small spans of
27087 2015-05-28 Richard Biener <rguenther@suse.de>
27089 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
27091 (SLP_INSTANCE_BODY_COST_VEC): Remove.
27092 (vect_update_slp_costs_according_to_vf): Likewise.
27093 (vect_slp_analyze_operations): Update prototype.
27094 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
27095 vect_update_slp_costs_according_to_vf, adjust.
27096 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
27097 (vect_analyze_slp_cost_1): Likewise.
27098 (vect_analyze_slp_cost): Likewise. Properly deal with
27099 widening reduction ops. Commit body costs.
27100 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
27101 cost for loops from here.
27102 (vect_slp_analyze_operations): But do it from here when
27103 the vectorization factor is known and stmts are analyzed.
27104 (vect_bb_vectorization_profitable_p): Simplify.
27105 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
27106 (vect_update_slp_costs_according_to_vf): Remove.
27108 2015-05-27 Magnus Granberg <zorry@gentoo.org>
27109 H.J. Lu <hongjiu.lu@intel.com>
27111 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
27112 (BUILD_CFLAGS): Likewise.
27113 (BUILD_CXXFLAGS): Likewise.
27114 (LINKER): Add @NO_PIE_FLAG@.
27115 (BUILD_LDFLAGS): Likewise.
27116 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
27117 --enable-default-pie.
27118 * common.opt (fPIE): Initialize to -1.
27120 (no-pie): New option.
27121 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
27122 * configure.ac: Add --enable-default-pie.
27123 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
27124 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
27125 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
27126 * gcc.c (NO_PIE_SPEC): New.
27127 (PIE_SPEC): Likewise.
27128 (NO_FPIE1_SPEC): Likewise.
27129 (FPIE1_SPEC): Likewise.
27130 (NO_FPIE2_SPEC): Likewise.
27131 (FPIE2_SPEC): Likewise.
27132 (NO_FPIE2_SPEC): Likewise.
27133 (FPIE_SPEC): Likewise.
27134 (NO_FPIE_SPEC): Likewise.
27135 (NO_FPIC1_SPEC): Likewise.
27136 (FPIC1_SPEC): Likewise.
27137 (NO_FPIC2_SPEC): Likewise.
27138 (FPIC2_SPEC): Likewise.
27139 (NO_FPIC2_SPEC): Likewise.
27140 (FPIC_SPEC): Likewise.
27141 (NO_FPIC_SPEC): Likewise.
27142 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
27143 (FPIE1_OR_FPIC1_SPEC): Likewise.
27144 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
27145 (FPIE2_OR_FPIC2_SPEC): Likewise.
27146 (NO_FPIE_AND_FPIC_SPEC): Likewise.
27147 (FPIE_OR_FPIC_SPEC): Likewise.
27148 (LD_PIE_SPEC): Likewise.
27149 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
27150 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
27151 * config/darwin.h (PIE_SPEC): Renamed to ...
27152 (DARWIN_PIE_SPEC): This.
27153 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
27154 * config/darwin9.h (PIE_SPEC): Renamed to ...
27155 (DARWIN_PIE_SPEC): This.
27156 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
27157 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
27158 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
27159 FPIE2_OR_FPIC2_SPEC.
27160 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
27161 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
27162 * config/sol2.h (ASM_PIC_SPEC): Likewise.
27163 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27164 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27165 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27166 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
27167 * config/m32r/m32r.h (ASM_SPEC): Likewise.
27168 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
27169 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27170 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
27171 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
27172 * config/sparc/linux.h (ASM_SPEC): Likewise.
27173 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27174 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
27175 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
27176 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27177 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27178 * config/sparc/sparc.h (ASM_SPEC): Likewise.
27179 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
27180 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
27181 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
27182 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
27183 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
27184 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
27185 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
27186 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
27187 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
27188 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
27189 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
27190 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
27191 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27192 * config/vax/linux.h (ASM_SPEC): Likewise.
27193 * doc/install.texi: Document --enable-default-pie.
27194 * doc/invoke.texi: Document -no-pie.
27195 * config.in: Regenerated.
27196 * configure: Likewise.
27198 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
27200 PR rtl-optimization/66168
27201 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
27202 can_move_invariant_reg.
27204 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
27207 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
27208 REG_EQUAL note when doing insert.
27210 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
27211 instead of "%d" for 'o' operand.
27213 2015-05-27 Nathan Sidwell <nathan@acm.org>
27216 * tree.c (build_pointer_type_for_mode): Canonical type does not
27217 inherit can_alias_all.
27218 (build_reference_type_for_mode): Likewise.
27220 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
27222 * expr.h (array_at_struct_end_p): Move to...
27223 (array_ref_element_size): Likewise.
27224 (component_ref_field_offset): Likewise.
27225 * tree.h (array_ref_element_size): ...here.
27226 (array_at_struct_end_p): Likewise.
27227 (component_ref_field_offset): Likewise.
27228 * expr.c (array_ref_element_size): Move to...
27229 (array_ref_low_bound): Likewise.
27230 (array_at_struct_end_p): Likewise.
27231 (array_ref_up_bound): Likewise.
27232 (component_ref_field_offset): Likewise.
27233 * tree.c (array_ref_element_size): ...here.
27234 (array_ref_low_bound): Likewise.
27235 (array_ref_up_bound): Likewise.
27236 (array_at_struct_end_p): Likewise.
27237 (component_ref_field_offset): Likewise.
27239 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
27240 Szabolcs Nagy <szabolcs.nagy@arm.com>
27242 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
27244 2015-05-27 Jason Merrill <jason@redhat.com>
27247 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
27248 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
27249 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
27251 2015-05-22 Aditya Kumar <hiraditya@msn.com>
27253 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
27256 * statistics.c (statistics_fini_pass): Print pass name.
27258 2015-05-27 Richard Biener <rguenther@suse.de>
27260 PR tree-optimization/66272
27262 2014-08-15 Richard Biener <rguenther@suse.de>
27264 PR tree-optimization/62031
27265 * tree-data-ref.c (dr_analyze_indices): Do not set
27266 DR_UNCONSTRAINED_BASE.
27267 (dr_may_alias_p): All indirect accesses have to go the
27268 formerly DR_UNCONSTRAINED_BASE path.
27269 * tree-data-ref.h (struct indices): Remove
27270 unconstrained_base member.
27271 (DR_UNCONSTRAINED_BASE): Remove.
27273 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
27275 * dwarf2out.c: Remove block_map.
27276 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
27277 (gen_lexical_block_die): Same.
27278 (dwarf2out_function_decl): Remove block_map use.
27279 (dwarf2out_c_finalize): Same.
27280 * tree-core.h (struct tree_block): Add die field.
27281 * tree.h (BLOCK_DIE): New.
27283 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27286 * expr.c (memory_load_overlap): New function.
27287 (emit_push_insn): When pushing partial args to the stack would
27288 clobber the register part load the overlapping part into a pseudo
27289 and put it into the hard reg after pushing. Change return type
27290 to bool. Add bool argument.
27291 * expr.h (emit_push_insn): Change return type to bool.
27293 * calls.c (expand_call): Cancel sibcall optimization when encountering
27294 partial argument on targets with ARGS_GROW_DOWNWARD and
27295 !STACK_GROWS_DOWNWARD.
27296 (emit_library_call_value_1): Update callsite of emit_push_insn.
27297 (store_one_arg): Likewise.
27299 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
27301 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
27303 2015-05-27 Martin Liska <mliska@suse.cz>
27305 * Makefile.in: Add additional dependencies related to memory report
27307 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
27308 * bitmap.c (struct bitmap_descriptor_d): Remove.
27309 (struct loc): Likewise.
27310 (struct bitmap_desc_hasher): Likewise.
27311 (bitmap_desc_hasher::hash): Likewise.
27312 (bitmap_desc_hasher::equal): Likewise.
27313 (get_bitmap_descriptor): Likewise.
27314 (bitmap_register): User new memory descriptor API.
27315 (register_overhead): Likewise.
27316 (bitmap_find_bit): Register nsearches and search_iter statistics.
27317 (struct bitmap_output_info): Remove.
27318 (print_statistics): Likewise.
27319 (dump_bitmap_statistics): Use new memory descriptor.
27320 * bitmap.h (struct bitmap_usage): New class.
27321 * genmatch.c: Extend header file inclusion.
27322 * genpreds.c: Likewise.
27323 * ggc-common.c (struct ggc_usage): New class.
27324 (struct ggc_loc_desc_hasher): Remove.
27325 (ggc_loc_desc_hasher::hash): Likewise.
27326 (ggc_loc_desc_hasher::equal): Likewise.
27327 (struct ggc_ptr_hash_entry): Likewise.
27328 (struct ptr_hash_hasher): Likewise.
27329 (ptr_hash_hasher::hash): Likewise.
27330 (ptr_hash_hasher::equal): Likewise.
27331 (make_loc_descriptor): Likewise.
27332 (ggc_prune_ptr): Likewise.
27333 (dump_ggc_loc_statistics): Use new memory descriptor.
27334 (ggc_record_overhead): Likewise.
27335 (ggc_free_overhead): Likewise.
27336 (final_cmp_statistic): Remove.
27337 (cmp_statistic): Likewise.
27338 (ggc_add_statistics): Liekwise.
27339 (ggc_prune_overhead_list): Likewise.
27340 * hash-map-traits.h: New file.
27341 * hash-map.h (struct default_hashmap_traits): Move the traits to a
27342 separate header file.
27343 * hash-set.h: Pass memory statistics info to ctor.
27344 * hash-table.c (void dump_hash_table_loc_statistics): New function.
27345 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
27346 (hash_table::~hash_table): Register memory release operation.
27347 (hash_table::alloc_entries): Handle memory allocation operation.
27348 (hash_table::expand): Likewise.
27349 * inchash.c (iterative_hash_hashval_t): Move implementation to header
27351 (iterative_hash_host_wide_int): Likewise.
27352 * inchash.h (class hash): Likewise.
27353 * mem-stats-traits.h: New file.
27354 * mem-stats.h: New file.
27355 (mem_location): Add new class.
27356 (mem_usage): Likewise.
27357 (mem_alloc_description): Likewise.
27358 * sese.c: Add new header file inclusision.
27359 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
27361 * tree-sra.c: Add new header file inclusision.
27362 * vec.c (struct vec_descriptor): Remove.
27363 (hash_descriptor): Likewise.
27364 (struct vec_usage): Likewise.
27365 (struct ptr_hash_entry): Likewise.
27366 (hash_ptr): Likewise.
27367 (eq_ptr): Likewise.
27368 (vec_prefix::register_overhead): Use new memory descriptor API.
27369 (vec_prefix::release_overhead): Likewise.
27370 (add_statistics): Remove.
27371 (dump_vec_loc_statistics): Use new memory descriptor API.
27372 * vec.h (struct vec_prefix): Likewise.
27373 (va_heap::reserve): Likewise.
27374 (va_heap::release): Likewise.
27375 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
27377 2015-05-27 Richard Biener <rguenther@suse.de>
27379 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
27380 earlier and remove ??? comment.
27381 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
27382 and got called from loop analysis bail out. Always pass the SLP
27383 node to the vectorizable_* functions.
27384 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
27385 the premature SLP check here.
27386 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
27387 detected SLP stmts.
27388 (vect_detect_hybrid_slp_1): Likewise.
27390 2015-05-26 Jeff Law <law@redhat.com>
27392 * combine.c (find_split_point): Verify that the shift count is a
27393 constant when choosing (plus (ashift ...)) as a split point.
27395 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
27396 No functional changes.
27398 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
27400 * ipa-polymorphic-call.c
27401 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
27402 case when call target is already known.
27404 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
27407 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
27408 take into account the case that operands[1] and operands[2]
27409 are the same register.
27411 2015-05-26 Michael Matz <matz@suse.de>
27413 PR middle-end/66251
27415 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
27417 (vect_create_vectorized_demotion_stmts): Always set
27418 STMT_VINFO_VEC_STMT, also with SLP.
27419 (vectorizable_store): Handle strided group stores.
27421 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27424 * config/aarch64/aarch64.md
27425 (*adds_shift_imm_<mode>): New pattern.
27426 (*subs_shift_imm_<mode>): Likewise.
27427 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27428 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27429 (*add_uxt<mode>_shift2): Likewise.
27430 (*add_uxtsi_shift2_uxtw): Likewise.
27431 (*sub_uxt<mode>_shift2): Likewise.
27432 (*sub_uxtsi_shift2_uxtw): Likewise.
27434 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
27436 * config/rs6000/constraints.md (Y, U): Use match_test.
27438 2015-05-26 Christian Bruel <christian.bruel@st.com>
27441 * config/arm/arm.c (arm_option_check_internal)
27442 (arm_option_params_internal): Check opts->target_flags to set macros.
27443 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27444 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
27445 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27446 (builtin_define): Replaced with def_or_undef_macro.
27447 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27448 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
27449 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27450 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
27451 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
27452 (TARGET_ARM_FEATURE_LDREX_P)
27453 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
27454 * config/arm/arm-c.c (def_or_undef_macro): New function.
27455 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
27457 2015-05-26 Christian Bruel <christian.bruel@st.com>
27459 * c-common.h (builtin_define_with_int_value)
27460 (builtin_define_type_sizeof): Declare.
27461 * c-cppbuiltin.c (builtin_define_with_int_value)
27462 (builtin_define_type_sizeof): Externalize.
27463 (builtin_define_std): Cleanup declaration.
27464 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
27465 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
27466 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
27467 (builtin_define, builtin_assert): New macros.
27469 2015-05-26 Richard Biener <rguenther@suse.de>
27471 PR tree-optimization/66142
27472 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
27473 MEM_REFs for the same base address.
27475 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27478 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
27480 2015-05-26 Jason Merrill <jason@redhat.com>
27482 * configure.ac: Set CXXFLAGS for ISL test.
27483 * configure: Regenerate.
27485 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
27486 strstr and basename.
27487 * configure: Regenerate.
27489 2015-05-26 Richard Biener <rguenther@suse.de>
27491 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
27492 X % C -> X & (C - 1) for C being a power-of two to ...
27493 * match.pd: ... patterns.
27495 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
27497 * match.pd (swapped_tcc_comparison): New operator list.
27498 (-A CMP -B): New simplification.
27499 * fold-const.c (fold_comparison): Remove corresponding code.
27501 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
27503 * caller-save.c (init_caller_save): Base temporary register numbers
27504 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
27505 * cfgloopanal.c (init_set_costs): Likewise.
27506 * dojump.c (prefer_and_bit_test): Likewise.
27507 * expr.c (init_expr_target): Likewise.
27508 * ira.c (setup_prohibited_mode_move_regs): Likewise.
27509 * lower-subreg.c (init_lower_subreg): Likewise.
27510 * postreload.c (reload_cse_regs_1): Likewise.
27512 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
27514 * gensupport.h (compute_test_codes): Declare.
27515 * gensupport.c (compute_predicate_codes): Rename to...
27516 (compute_test_codes): ...this. Generalize error message.
27517 (process_define_predicate): Update accordingly.
27518 * genpreds.c (compute_maybe_allows): Delete.
27519 (add_constraint): Use compute_test_codes to determine whether
27520 something can accept a SUBREG, REG or MEM.
27522 2015-05-26 Torvald Riegel <triegel@redhat.com>
27524 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
27525 'memory model' to align with C++11; fix description of memory orders;
27528 2015-05-26 Richard Biener <rguenther@suse.de>
27530 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
27531 (vect_analyze_loop_operations): ... here. Remove slp parameter,
27532 detect whether we apply SLP. Remove call to
27533 vect_update_slp_costs_according_to_vf.
27534 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
27535 vect_update_slp_costs_according_to_vf from here. Dispatch
27536 to vect_slp_analyze_operations to analyze SLP stmts.
27537 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
27538 unused bb_vec_info parameter, adjust assert.
27539 (vect_slp_analyze_operations): Pass in the slp instance tree
27540 instead of bb_vec_info.
27541 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
27542 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
27544 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
27546 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
27547 Q_REGS. Expand comment.
27548 (REG_CLASS_NAMES): Ditto.
27549 (REG_CLASS_CONTENTS): Ditto.
27551 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
27554 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
27555 when LEGACY_INT_REGNO_P is processed.
27557 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
27559 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
27561 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
27563 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
27564 register if not marked dead/unused, before return.
27566 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27569 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
27570 is set; check for assembler name at LTO time.
27571 (type_in_anonymous_namespace): Remove hacks, check that all
27572 anonymous types are called "<anon>"
27573 (odr_type_p): Simplify; add check for "<anon>"
27574 (odr_subtypes_equivalent): Add odr_type_p check.
27575 * tree.c (need_assembler_name_p): Even anonymous namespace needs
27578 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27580 * ipa-utils.h (method_class_type): Remove.
27581 * cgraphunit.c (walk_polymorphic_call_targets): Use
27582 TYPE_METHOD_BASETYPE.
27583 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
27584 on main variants only.
27585 (method_class_type): Remove.
27586 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
27587 (build_type_inheritance_graph): Likewise.
27588 * ipa-icf.c (sem_function::equals_wpa): Likewise.
27589 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
27590 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
27592 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27594 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
27595 is_typedef_decl, typedef_variant_p): Constify.
27596 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
27597 is_typedef_decl, typedef_variant_p): Constify.
27599 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27601 * defaults.h (gen_tablejump): New function.
27602 (HAVE_tablejump): Add default value.
27604 * stmt.c: Likewise.
27606 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27608 * defaults.h (gen_store_multiple): New function.
27609 (HAVE_store_multiple): Add default value.
27610 * expr.c (move_block_from_reg): Adjust.
27612 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27614 * defaults.h (gen_load_multiple): New function.
27615 (HAVE_load_multiple): Add default value.
27616 * expr.c (move_block_to_reg): Adjust.
27618 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27620 * defaults.h (gen_mem_signal_fence): New function.
27621 (HAVE_mem_signal_fence): Add default value.
27622 * optabs.c: Adjust.
27624 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27626 * defaults.h (gen_memory_barrier): New function.
27627 (HAVE_memory_barrier): Add default value.
27628 * optabs.c: Adjust.
27630 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27632 * defaults.h (gen_mem_thread_fence): New function.
27633 (HAVE_mem_thread_fence): Add default definition.
27634 * optabs.c: Adjust.
27636 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27638 * combine.c (find_split_point): Check the value of HAVE_lo_sum
27639 instead of if it is defined.
27640 (combine_simplify_rtx): Likewise.
27641 * lra-constraints.c (process_address_1): Likewise.
27642 * config/darwin.c: Adjust.
27643 * genconfig.c (main): Always define HAVE_lo_sum.
27645 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27647 * genmatch.c (parser::parse_operation): Reject expanding
27648 operator-list inside 'for'.
27650 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27652 * genmatch.c (parser::parse_for): Reject iterator if used as
27655 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27657 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
27658 after end of id-list.
27660 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
27662 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
27663 we do not try to compute canonical type for type that does not need
27665 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
27667 * tree.h (type_with_alias_set_p): New.
27669 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
27671 * tree.c (gimple_canonical_types_compatible_p): Do not compare
27672 function attributes.
27673 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
27675 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
27677 * Makefile.in (check_gcc_parallelize): Delete.
27678 (lang_checks_parallelized): Update comment.
27680 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
27682 PR rtl-optimization/66237
27683 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
27684 location of an "as_a" cast.
27686 2015-05-22 Jeff Law <law@redhat.com>
27688 * config/pa/pa.md (non-canonical shift-add insns): Remove.
27689 (peepholes with non-canonical RTL sources): Remove.
27690 (peepholes for indexed stores of FP regs in integer modes): Match and
27691 generate canonical RTL.
27693 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27695 PR tree-optimization/63387
27696 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
27697 ((x ord x) & (y ord y) -> (x ord y),
27698 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
27699 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
27700 vectors like scalars.
27702 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27704 * convert.c (convert_to_integer, convert_to_vector): Include the
27705 types in the error message.
27707 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27709 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
27712 2015-05-22 Jeff Law <law@redhat.com>
27714 * config/pa/pa.md (integer_indexed_store splitters): Use
27715 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
27716 insns -- adjusting the constant 2nd operand accordingly.
27718 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
27719 (plus (ashift X log2) Y) if it is a split point.
27721 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
27722 out of hppa_legitimize_address to handle both forms of a multiply
27724 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
27725 Always generate the ASHIFT variant as the result is not directly
27726 used in a MEM. Update comments and refactor slightly to improve
27729 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27732 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
27733 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
27734 (aarch64_composite_type_p): Return false if given type and mode are
27735 for a short vector.
27737 2015-05-22 Richard Biener <rguenther@suse.de>
27739 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
27741 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
27742 patterns when determining whether SLP is pure.
27743 (vect_is_slp_reduction): Remove check for pattern stmts.
27744 (vect_is_simple_reduction_1): Remove dead code.
27745 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
27746 (vect_get_and_check_slp_defs): Pass in the stmt number.
27747 Allow the first def in a reduction to be not a pattern stmt when
27748 the rest of the stmts def are patterns.
27749 (vect_build_slp_tree_1): Allow tcc_expression codes like
27750 SAD_EXPR and DOT_PROD_EXPR.
27751 (vect_build_slp_tree): Adjust.
27752 (vect_analyze_slp): Refactor and move BB vect error message ...
27753 (vect_slp_analyze_bb_1): ... here.
27755 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
27757 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
27758 for CSWTCH temporary.
27760 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27762 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
27763 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
27766 2015-05-22 Richard Biener <rguenther@suse.de>
27768 PR tree-optimization/66251
27769 * tree-vect-stmts.c (vectorizable_conversion): Properly
27770 set STMT_VINFO_VEC_STMT even for the SLP case.
27772 2015-05-22 Marek Polacek <polacek@redhat.com>
27774 * doc/extend.texi: Use @pxref instead of @xref.
27776 2015-05-22 hiraditya <hiraditya@msn.com>
27778 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
27781 2015-05-22 Richard Biener <rguenther@suse.de>
27783 PR tree-optimization/65701
27784 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27785 Move peeling cost models into one place. Peel for alignment
27786 for single loads only if an aligned load is cheaper than
27789 2015-05-22 Marek Polacek <polacek@redhat.com>
27792 * doc/extend.texi (Enumerator Attributes): New section.
27793 Document syntax of enumerator attributes.
27795 2015-05-22 Richard Biener <rguenther@suse.de>
27797 * tree-vect-loop.c (get_reduction_op): New function.
27798 (vect_model_reduction_cost): Use it, add reduc_index parameter.
27799 Make ready for BB reductions.
27800 (vect_create_epilog_for_reduction): Use get_reduction_op.
27801 (vectorizable_reduction): Init reduc_index to a valid value.
27802 Adjust vect_model_reduction_cost call.
27803 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
27804 operand for reduction defaults. Add SAD_EXPR support.
27805 Assert we have a neutral op for SLP reductions.
27806 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
27807 walking pattern stmt ops only recurse to SSA names.
27809 2015-05-22 Richard Biener <rguenther@suse.de>
27811 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
27812 assert with guard, remove check on detected reduction.
27813 (vect_recog_sad_pattern): Likewise.
27814 (vect_recog_widen_sum_pattern): Likewise.
27816 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27818 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
27819 __always_inline__ attribute.
27820 (vaesdq_u8): Likewise.
27821 (vaesmcq_u8): Likewise.
27822 (vaesimcq_u8): Likewise.
27823 (vsha1cq_u32): Likewise.
27824 (vsha1mq_u32): Likewise.
27825 (vsha1pq_u32): Likewise.
27826 (vsha1h_u32): Likewise.
27827 (vsha1su0q_u32): Likewise.
27828 (vsha1su1q_u32): Likewise.
27829 (vsha256hq_u32): Likewise.
27830 (vsha256h2q_u32): Likewise.
27831 (vsha256su0q_u32): Likewise.
27832 (vsha256su1q_u32): Likewise.
27833 (vmull_p64): Likewise.
27834 (vmull_high_p64): Likewise.
27836 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27838 * final.c (final_scan_insn): Don't check HAVE_peephole with the
27840 * output.h: Likewise.
27841 * genconfig.c (main): Alwways define HAVE_peephole.
27842 * genpeep.c: Don't emit checks of HAVE_peephole.
27844 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27846 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
27847 check HAVE_conditional_move with the preprocessor.
27849 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27851 * genconfig.c (main): Always define HAVE_conditional_move.
27852 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
27853 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
27856 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27858 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
27859 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
27860 and FRAME_POINTER_REGNUM with the preprocessor.
27862 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27864 * defaults.h: Add default for STACK_PUSH_CODE.
27865 * expr.c: Don't redefine STACK_PUSH_CODE.
27866 * recog.c: Likewise.
27868 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27870 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
27871 sched-deps.c: Use if instead of preprocessor checks with
27872 STACK_GROWS_DOWNWARD.
27874 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27876 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
27878 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
27879 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
27880 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
27881 * doc/tm.texi: Regenerate.
27883 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
27886 * config/i386/constraints.md (Bg): New constraint for GOT memory
27888 * config/i386/i386.md (*call_got_x32): New pattern.
27889 (*call_value_got_x32): Likewise.
27890 * config/i386/predicates.md (GOT_memory_operand): New predicate.
27892 2015-05-21 Jakub Jelinek <jakub@redhat.com>
27894 PR tree-optimization/66233
27895 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
27898 2015-05-21 Jeff Law <law@redhat.com>
27900 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
27901 than MULT for shadd sequences.
27903 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
27905 * alias.c (alias_stats): New static var.
27906 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
27907 (dump_alias_stats_in_alias_c): New function.
27908 * alias.h (dump_alias_stats_in_alias_c): Declare.
27909 * tree-ssa-alias.c (dump_alias_stats): Call it.
27911 2015-05-08 Michael Matz <matz@suse.de>
27913 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
27915 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
27916 (STMT_VINFO_STRIDED_P): ... this.
27917 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
27918 (vect_verify_datarefs_alignment): Likewise.
27919 (vect_enhance_data_refs_alignment): Likewise.
27920 (vect_analyze_data_ref_access): Likewise.
27921 (vect_analyze_data_refs): Accept strided stores.
27922 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
27923 (vect_model_load_cost): Adjust for macro rename.
27924 (vectorizable_mask_load_store): Likewise.
27925 (vectorizable_load): Likewise.
27926 (vectorizable_store): Open code strided stores.
27928 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27930 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
27931 Document sqrt_insn.
27933 2015-05-21 Richard Biener <rguenther@suse.de>
27936 * match.pd: Guard pattern optimzing (int)(float)int
27937 conversions to apply only on GIMPLE.
27939 2015-05-21 Jeff Law <law@redhat.com>
27941 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
27942 multiply-accumulate/shift-add insn generation.
27944 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
27947 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
27948 operands[1] are the same.
27950 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
27952 PR middle-end/66221
27953 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
27954 build_distinct_type_copy to copy bounds.
27956 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
27958 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
27959 Change to unsigned int.
27961 2015-05-20 Jeff Law <law@redhat.com>
27963 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
27964 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
27965 (pa_shadd_constant_p): Allow constants for shadd insns rather
27966 than valid scaling constants for memory addresses.
27967 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
27968 * config/pa/predicates.md (mem_shadd_operand): New predicate.
27969 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
27970 (shift-add insns using ASHIFT): New patterns.
27972 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
27974 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
27976 (fix_up_fall_thru_edges): Likewise.
27977 (fix_crossing_conditional_branches): Likewise. Promote jump targets
27978 from to rtx_insn to rtx_code_label where feasible.
27979 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
27980 gen_move_insn (returned type changed to rtx_insn).
27981 * builtins.c (expand_errno_check): Fix arguments of
27982 do_compare_rtx_and_jump (now expects rtx_code_label).
27983 (expand_builtin_acc_on_device): Likewise.
27984 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
27985 invert_jump (now exprects rtx_jump_insn).
27986 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
27987 (construct_init_block): Use rtx_code_label.
27988 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
27989 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
27990 calling redirect_jump.
27991 (patch_jump_insn): Likewise.
27992 (redirect_branch_edge): Likewise.
27993 (force_nonfallthru_and_redirect): Likewise.
27994 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
27996 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
27997 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
27998 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
27999 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
28000 to store the value retured by gen_label_rtx.
28001 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
28003 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
28004 (split_branches): Fix calls of redirect_jump.
28005 * dojump.c (jumpifnot): Promote argument type from rtx to
28007 (jumpifnot_1): Likewise.
28008 (jumpif): Likewise.
28009 (jumpif_1): Likewise.
28010 (do_jump_1): Likewise.
28011 (do_jump): Likewise. Use rtx_code_label when feasible.
28012 (do_jump_by_parts_greater_rtx): Likewise.
28013 (do_jump_by_parts_zero_rtx): Likewise.
28014 (do_jump_by_parts_equality_rtx): Likewise.
28015 (do_compare_rtx_and_jump): Likewise.
28016 * dojump.h: Update function prototypes.
28017 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
28019 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
28021 (emit_label_before): Likewise.
28022 (emit_jump_insn_after_noloc): Likewise.
28023 (emit_jump_insn_after_setloc): Likewise.
28024 (emit_jump_insn_after): Likewise
28025 (emit_jump_insn_before_setloc): Likewise.
28026 (emit_jump_insn_before): Likewise.
28027 (emit_label_before): Promote return type to rtx_code_label.
28028 (emit_label): Likewise.
28029 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
28030 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
28032 (emit_stack_restore): Likewise.
28033 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
28034 (do_cmp_and_jump): Likewise.
28035 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
28036 from rtx to rtx_code_label.
28037 (gen_move_insn_uncast): New function.
28038 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
28039 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
28040 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
28041 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
28042 invert_jump_1 and redirect_jump_1.
28043 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
28044 do_compare_rtx_and_jump.
28045 (expand_addsub_overflow): Likewise.
28046 (expand_neg_overflow): Likewise.
28047 (expand_mul_overflow): Likewise.
28048 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
28049 return value of gen_move_insn.
28050 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
28051 * loop-doloop.c (add_test): Use rtx_code_label.
28052 (doloop_modify): Likewise.
28053 (doloop_optimize): Likewise.
28054 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
28055 * lra-constraints.c (emit_spill_move): Remove cast of value returned
28057 (inherit_reload_reg): Add cast when calling dump_insn_slim.
28058 (split_reg): Likewise.
28059 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
28061 * optabs.c (expand_binop_directly): Remove casts of values returned by
28063 (expand_unop_direct): Likewise.
28064 (expand_abs): Likewise.
28065 (maybe_emit_unop_insn): Likewise.
28066 (maybe_gen_insn): Promote return type to rtx_insn.
28067 * optabs.h: Update prototype of maybe_gen_insn.
28068 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
28070 * recog.c (struct peep2_insn_data): Promote type of insn field to
28072 (peep2_reinit_state): Use NULL instead of NULL_RTX.
28073 (peep2_attempt): Remove casts of insn in peep2_insn_data.
28074 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
28075 * recog.h (struct insn_gen_fn): Promote return types of function
28076 pointers and operator ().from rtx to rtx_insn.
28077 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
28078 (fill_eager_delay_slots): Likewise.
28079 (relax_delay_slots): Likewise.
28080 (make_return_insns): Likewise.
28081 (dbr_schedule): Likewise.
28082 (optimize_skips): Likewise.
28083 (reorg_redirect_jump): Likewise.
28084 (fill_slots_from_thread): Likewise.
28085 * reorg.h: Update prototypes.
28086 * resource.c (find_dead_or_set_registers): Use dyn_cast to
28087 rtx_jump_insn instead of check. Use it's jump_target method.
28088 * rtl.h (rtx_jump_insn::jump_label): Define new method.
28089 (rtx_jump_insn::jump_target): Define new method.
28090 (rtx_jump_insn::set_jump_target): Define new method.
28091 * rtlanal.c (tablejump_p): Promote type of one local variable.
28092 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
28093 (sched_analyze_insn): Likewise.
28094 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
28095 (print_insn): Likewise.
28096 * stmt.c (label_rtx): Promote return type to rtx_insn.
28097 (force_label_rtx): Likewise.
28098 (jump_target_rtx): Define new function.
28099 (expand_label): Use it, get rid of one cast.
28100 (expand_naked_return): Promote rtx to rtx_code_label.
28101 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
28102 (expand_case): Use rtx_code_label instread of rtx where feasible.
28103 (expand_sjlj_dispatch_table): Likewise.
28104 (emit_case_nodes): Likewise.
28105 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
28106 * store-motion.c (insert_store): Make use of new return type of
28107 gen_move_insn and remove a cast.
28108 (replace_store_insn): Likewise.
28110 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
28112 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
28113 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
28115 2015-05-20 Jeff Law <law@redhat.com>
28117 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
28118 dispose of the jump thread path when the jump threading
28119 opportunity is cancelled.
28121 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
28123 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
28124 when printing the caret character.
28126 2015-05-20 Marek Polacek <polacek@redhat.com>
28128 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
28130 2015-05-20 Marek Polacek <polacek@redhat.com>
28132 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
28133 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
28134 * gimple-fold.c (canonicalize_bool): Likewise.
28135 (same_bool_result_p): Likewise.
28136 * tree-if-conv.c (parse_predicate): Likewise.
28138 2015-05-20 Marek Polacek <polacek@redhat.com>
28140 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
28141 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
28143 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28145 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
28146 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
28149 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
28151 * config/mips/mips.h (micromips_globals): Declare.
28153 2015-05-20 David Malcolm <dmalcolm@redhat.com>
28155 * timevar.def (TV_INITIALIZE_RTL): New.
28156 * toplev.c (initialize_rtl): Use an auto_timevar to account this
28157 function's time to TV_INITIALIZE_RTL.
28159 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
28161 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
28162 gimple_build_nop calls.
28163 (chkp_find_bounds_for_elem): Likewise.
28164 (chkp_get_zero_bounds): Likewise.
28165 (chkp_get_none_bounds): Likewise.
28166 (chkp_get_bounds_by_definition): Likewise.
28167 (chkp_generate_extern_var_bounds): Likewise.
28168 (chkp_get_bounds_for_decl_addr): Likewise.
28169 (chkp_get_bounds_for_string_cst): Likewise.
28171 2015-05-20 Bin Cheng <bin.cheng@arm.com>
28173 PR tree-optimization/65447
28174 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
28175 (dump_use, dump_uses): Support to dump sub use.
28176 (record_use): New parameters to support sub use. Remove call to
28178 (record_sub_use, record_group_use): New functions.
28179 (compute_max_addr_offset, split_all_small_groups): New functions.
28180 (group_address_uses, rewrite_use_address): New functions.
28181 (strip_offset): New declaration.
28182 (find_interesting_uses_address): Call record_group_use.
28183 (add_candidate): New assertion.
28184 (infinite_cost_p): Move definition forward.
28185 (add_costs): Check INFTY cost and return immediately.
28186 (get_computation_cost_at): Clear setup cost and dependent bitmap
28188 (determine_use_iv_cost_address): Compute cost for sub uses.
28189 (rewrite_use_address_1): Rename from old rewrite_use_address.
28190 (free_loop_data): Free sub uses.
28191 (tree_ssa_iv_optimize_loop): Call group_address_uses.
28193 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28194 Jim Wilson <jim.wilson@linaro.org>
28196 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
28197 new fields loadv and storev.
28198 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
28199 Initialize loadv and storev.
28200 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
28201 (cortexa53_extra_costs): Likewise.
28202 (cortexa57_extra_costs): Likewise.
28203 (xgene1_extra_costs): Likewise.
28204 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
28207 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28209 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
28211 (cortexa8_extra_costs): Likewise.
28212 (cortexa5_extra_costs): Likewise.
28213 (cortexa7_extra_costs): Likewise.
28214 (cortexa12_extra_costs): Likewise.
28215 (cortexa15_extra_costs): Likewise.
28216 (v7m_extra_costs): Likewise.
28218 2015-05-20 Jeff Law <law@redhat.com>
28220 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
28221 instead of open-coded version. Also delete the jump thread created
28222 within this function.
28224 2015-05-20 Alan Modra <amodra@gmail.com>
28226 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
28227 stack adjusting insn. Formatting.
28228 (rs6000_emit_prologue): Track stack adjusting insn, and use of
28229 r12. If possible, emit first -fsplit-stack arg pointer insn
28230 before stack adjust. Don't use r12 to save cr if split-stack.
28232 2015-05-20 Alan Modra <amodra@gmail.com>
28234 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
28236 (rs6000_supports_split_stack): New function.
28237 * config/rs6000/rs6000.c (machine_function): Add
28238 split_stack_arg_pointer.
28239 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
28240 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
28241 rather than virtual_incoming_args_rtx.
28242 (rs6000_va_start): Likewise.
28243 (split_stack_arg_pointer_used_p): New function.
28244 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
28245 (morestack_ref): New var.
28246 (gen_add3_const, rs6000_expand_split_stack_prologue,
28247 rs6000_internal_arg_pointer, rs6000_live_on_entry,
28248 rs6000_split_stack_space_check): New functions.
28249 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
28250 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
28251 (UNSPECV_SPLIT_STACK_RETURN): Define.
28252 (split_stack_prologue, load_split_stack_limit,
28253 load_split_stack_limit_di, load_split_stack_limit_si,
28254 split_stack_return, split_stack_space_check): New expands and insns.
28255 * config/rs6000/rs6000-protos.h
28256 (rs6000_expand_split_stack_prologue): Declare.
28257 (rs6000_split_stack_space_check): Declare.
28259 2015-05-20 Alan Modra <amodra@gmail.com>
28261 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
28262 (direct_return): Test vrsave_size rather than vrsave_mask.
28263 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
28264 (rs6000_emit_epilogue): Likewise.
28266 2015-05-20 Alan Modra <amodra@gmail.com>
28268 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
28269 when not saving registers.
28270 (debug_stack_info): Adjust to omit printing unused offsets,
28272 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
28275 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28278 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
28279 value_type to const char *.
28281 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
28283 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
28284 to build a biarch toolchain again.
28286 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
28288 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
28289 or implicit declarations.
28290 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
28292 (get_odr_type): Check type has linkage before adding bases.
28293 (register_odr_type): Check that type has linkage before adding it.
28294 (type_known_to_have_no_deriavations_p): Rename to ..
28295 (type_known_to_have_no_derivations_p): This one.
28296 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
28297 (type_known_to_have_no_derivations_p): This one.
28298 * ipa-polymorphic-call.c
28299 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
28302 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
28304 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
28305 (layout_type): Use RECORD_OR_UNION_TYPE_P.
28307 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28309 * config/s390/s390.c (s390_vector_bool_type_p): New function.
28310 (s390_invalid_binary_op): New function.
28311 (TARGET_INVALID_BINARY_OP): Define macro.
28313 2015-05-19 David Sherwood <david.sherwood@arm.com>
28315 * loop-invariant.c (create_new_invariant): Don't calculate address cost
28316 if mode is not a scalar integer.
28317 (get_inv_cost): Increase computational cost for unused invariants.
28319 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28321 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
28322 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
28323 * config/s390/s390-builtin-types.def: New file.
28324 * config/s390/s390-builtins.def: New file.
28325 * config/s390/s390-builtins.h: New file.
28326 * config/s390/s390-c.c: New file.
28327 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
28328 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
28329 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
28330 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
28332 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
28334 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
28335 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
28336 variable definitions.
28337 (s390_const_operand_ok): New function.
28338 (s390_expand_builtin): Rewrite.
28339 (s390_init_builtins): New function.
28340 (s390_handle_vectorbool_attribute): New function.
28341 (s390_attribute_table): Add s390_vector_bool attribute.
28342 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
28343 (s390_branch_condition_mask): Generate masks for new modes.
28344 (s390_expand_vec_compare_cc): New function.
28345 (s390_mangle_type): Add mangling for vector bool types.
28346 (enum s390_builtin): Remove.
28347 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
28349 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
28350 s390_cpu_cpp_builtins.
28351 (REGISTER_TARGET_PRAGMAS): New macro.
28352 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
28353 (insn_cmp mode attribute): Add new CC modes.
28354 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
28355 (lcbb): New pattern definition.
28356 * config/s390/s390intrin.h: Include vecintrin.h.
28357 * config/s390/t-s390: New file.
28358 * config/s390/vecintrin.h: New file.
28359 * config/s390/vector.md: Include vx-builtins.md.
28360 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
28363 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28365 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
28367 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
28368 (s390_select_ccmode): Likewise.
28369 (s390_canonicalize_comparison): Swap operands if necessary.
28370 (s390_expand_vec_compare_scalar): Expand DFmode compare using
28371 single element vector instructions.
28372 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
28373 (s390_branch_condition_mask): Generate CC masks for the new modes.
28374 * config/s390/s390.md (v0, vf, vd): New mode attributes.
28375 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
28376 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
28377 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
28378 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
28379 (*extend<DSF:mode><BFP:mode>2): New insn definition.
28380 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
28381 (extend<DSF:mode><BFP:mode>2): Turn into expander.
28382 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
28383 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
28384 (sqrt<mode>2): Add vector instruction.
28386 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28388 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
28390 * config/s390/predicates.md (const0_operand, constm1_operand)
28391 (constable_operand): Accept vector operands.
28392 * config/s390/s390-modes.def: Add supported vector modes.
28393 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
28394 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
28395 (s390_bytemask_vector_p, s390_expand_vec_strlen)
28396 (s390_expand_vec_compare, s390_expand_vcond)
28397 (s390_expand_vec_init): Add prototypes.
28398 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
28399 (s390_vector_mode_supported_p): New function.
28400 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
28401 (s390_contiguous_bitmask_vector_p): New function.
28402 (s390_bytemask_vector_p): New function.
28403 (s390_split_ok_p): Vector regs don't work either.
28404 (regclass_map): Add VEC_REGS.
28405 (s390_legitimate_constant_p): Handle vector constants.
28406 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
28407 (legitimate_reload_vector_constant_p): New function.
28408 (s390_preferred_reload_class): Handle CONST_VECTOR.
28409 (s390_reload_symref_address): Likewise.
28410 (s390_secondary_reload): Vector memory instructions only support
28411 short displacements. Rename reload*_nonoffmem* to reload*_la*.
28412 (s390_emit_ccraw_jump): New function.
28413 (s390_expand_vec_strlen): New function.
28414 (s390_expand_vec_compare): New function.
28415 (s390_expand_vcond): New function.
28416 (s390_expand_vec_init): New function.
28417 (s390_dwarf_frame_reg_mode): New function.
28418 (print_operand): Handle addresses with 'O' and 'R' constraints.
28419 (NR_C_MODES, constant_modes): Add vector modes.
28420 (s390_output_pool_entry): Handle vector constants.
28421 (s390_hard_regno_mode_ok): Handle vector registers.
28422 (s390_class_max_nregs): Likewise.
28423 (s390_cannot_change_mode_class): New function.
28424 (s390_invalid_arg_for_unprototyped_fn): New function.
28425 (s390_function_arg_vector): New function.
28426 (s390_function_arg_float): Remove size variable.
28427 (s390_pass_by_reference): Handle vector arguments.
28428 (s390_function_arg_advance): Likewise.
28429 (s390_function_arg): Likewise.
28430 (s390_return_in_memory): Vector values are returned in a VR if
28432 (s390_function_and_libcall_value): Handle vector arguments.
28433 (s390_gimplify_va_arg): Likewise.
28434 (s390_call_saved_register_used): Consider the arguments named.
28435 (s390_conditional_register_usage): Disable v16-v31 for non-vec
28437 (s390_preferred_simd_mode): New function.
28438 (s390_support_vector_misalignment): New function.
28439 (s390_vector_alignment): New function.
28440 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
28441 (TARGET_VECTOR_MODE_SUPPORTED_P)
28442 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
28443 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
28444 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
28445 (TARGET_VECTOR_ALIGNMENT): Define target macro.
28446 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
28447 (FIRST_PSEUDO_REGISTER): Increase value.
28448 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
28449 (VECTOR_REG_P): Define macros.
28450 (FIXED_REGISTERS, CALL_USED_REGISTERS)
28451 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
28452 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
28453 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
28454 Add vector registers.
28455 (CANNOT_CHANGE_MODE_CLASS): Call C function.
28456 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
28457 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
28459 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
28460 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
28461 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
28462 (VR*_REGNUM): New constants.
28463 (ALL): New mode iterator.
28464 (INTALL): Remove mode iterator.
28466 (movti): Implement TImode moves for VRs.
28467 Disable TImode splitter for VR targets.
28468 Implement splitting TImode GPR<->VR moves.
28469 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
28470 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
28471 reload<mode>_la_in, reload<mode>_la_out.
28472 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
28473 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
28474 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
28475 (mov<mode> SF SD): Prefer lder, lde for loading.
28476 Add lrl and strl instructions.
28477 Add vector instructions.
28478 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
28479 Call s390_expand_vec_strlen on z13.
28480 (*cc_to_int): Change predicate to nonimmediate_operand.
28481 (addti3): Rename to *addti3. New expander.
28482 (subti3): Rename to *subti3. New expander.
28483 * config/s390/vector.md: New file.
28485 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28487 * common/config/s390/s390-common.c (processor_flags_table): Add
28489 * config.gcc: Add z13.
28490 * config/s390/s390-opts.h (enum processor_type): Add
28491 PROCESSOR_2964_Z13.
28492 * config/s390/s390.c (s390_adjust_priority): Check for
28493 PROCESSOR_2964_Z13.
28494 (s390_reorg): Likewise.
28495 (s390_sched_reorder): Likewise.
28496 (s390_sched_variable_issue): Likewise.
28497 (s390_loop_unroll_adjust): Likewise.
28498 (s390_option_override): Likewise. Default to -mvx when available.
28499 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
28500 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
28501 (TARGET_VX_ABI): Define macros.
28503 (TARGET_DEFAULT): Add MASK_OPT_VX.
28504 * config/s390/s390.md ("cpu" attribute): Add z13.
28505 ("cpu_facility" attribute): Add vec.
28506 * config/s390/s390.opt (processor_type): Add z13.
28507 (mvx): New options.
28508 * doc/invoke.texi: Add z13 option for -march.
28510 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28512 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
28513 mode check to make sure that only scalar integer values are
28516 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
28518 * tree.c (verify_type_variant): Fix #undef.
28519 (gimple_canonical_types_compatible_p): Move here from lto.c
28520 (verify_type): Verify TYPE_CANONICAL compatibility.
28521 * tree.h (gimple_canonical_types_compatible_p): Declare.
28523 2015-05-19 Jakub Jelinek <jakub@redhat.com>
28525 PR middle-end/66199
28526 * tree.h (OMP_TEAMS_COMBINED): Define.
28527 * gimplify.c (enum gimplify_omp_var_data): Add
28528 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
28529 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
28530 (omp_notice_variable): Accept both ORT_TEAMS
28531 and ORT_COMBINED_TEAMS. Don't recurse if
28532 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
28533 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
28535 (omp_no_lastprivate): New function.
28536 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
28537 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
28538 notice_outer and set appropriate bits, otherwise make
28539 sure default(none) combined constructs won't complain.
28540 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
28541 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
28542 omp_no_lastprivate either remove the clause or turn it
28543 into OMP_CLAUSE_PRIVATE.
28544 (gimplify_omp_for): Fix up handling of implicit
28545 lastprivate or linear iterators.
28546 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
28547 ORT_COMBINED_TEAMS.
28548 * omp-low.c (lower_omp_for_lastprivate): For combined
28549 for simd use fd.loop.n2 from the for rather than simd.
28551 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28553 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
28554 instead of gen_rtx_raw_REG.
28555 (cris_expand_epilogue): Likewise.
28556 * config/microblaze/microblaze.c (microblaze_classify_address):
28558 * config/sparc/sparc.md: Likewise.
28560 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
28562 * config/alpha/alpha.c (alpha_legitimize_reload_address)
28563 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
28564 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
28565 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
28566 Use CASE_CONST_SCALAR_INT.
28567 (print_operand) <case 'M'>: Use mode_width_operand to check the
28568 value of the constant.
28569 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
28570 * config/alpha/predicates.md (input_operand): Use general_operand
28571 instead of match_code as operand check.
28572 (symbolic_operand): Use match_code with subexpression digits.
28573 * config/alpha/constraints.md (Q): Ditto.
28575 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28577 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
28579 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28581 * config/s390/s390.c (s390_secondary_reload): Fix check for
28582 load/store relative.
28584 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28586 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
28587 alternative_mask to uint64_t.
28589 2015-05-19 Jakub Jelinek <jakub@redhat.com>
28591 PR tree-optimization/66187
28592 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
28593 Pass TYPE_SIGN to tree_int_cst_min_precision. If
28594 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
28596 2015-05-19 David Malcolm <dmalcolm@redhat.com>
28598 * diagnostic.c (diagnostic_report_current_module): Strengthen
28599 local "new_map" from const line_map * to
28600 const line_map_ordinary *.
28601 * genmatch.c (error_cb): Likewise for local "map".
28602 (output_line_directive): Likewise for local "map".
28603 * input.c (expand_location_1): Likewise for local "map".
28604 Pass NULL rather than &map to
28605 linemap_unwind_to_first_non_reserved_loc, since the value is never
28606 read from there, and the value written back not read from here.
28607 (is_location_from_builtin_token): Strengthen local "map" from
28608 const line_map * to const line_map_ordinary *.
28609 (dump_location_info): Strengthen locals "map" from
28610 line_map *, one to const line_map_ordinary *, the other
28611 to const line_map_macro *.
28612 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
28613 const line_map * to const line_map_macro *.
28614 (maybe_unwind_expanded_macro_loc): Add a call to
28615 linemap_check_macro when writing to the "map" field of the
28617 Introduce local const line_map_ordinary * "ord_map", using it in
28618 place of "map" in the part of the function where we know we have
28619 an ordinary map. Strengthen local "m" from const line_map * to
28620 const line_map_ordinary *.
28622 2015-05-19 Nick Clifton <nickc@redhat.com>
28625 * config/msp430/msp430.md (zero_extendhisi2): Add support for
28626 separate source and destination registers.
28628 2015-05-19 Richard Biener <rguenther@suse.de>
28630 PR tree-optimization/66165
28631 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
28632 for no load permutation.
28634 PR tree-optimization/66185
28635 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
28636 when building the SLP node from scalars.
28638 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
28639 Tristan Gingold <gingold@adacore.com>
28641 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
28642 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
28643 (expand_stack_restore): Call record_new_stack_level.
28644 (expand_stack_save): Do not call do_pending_stack_adjust.
28645 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
28646 * calls.c (expand_call): Call record_new_stack_level for alloca.
28647 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
28648 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
28649 (update_sjlj_context): New global function.
28650 * except.h (update_sjlj_context): Declare.
28651 * explow.c (record_new_stack_level): New global function.
28652 (allocate_dynamic_stack_space): Call record_new_stack_level.
28653 * explow.h (record_new_stack_level): Declare.
28654 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
28655 * cfgrtl.c (duplicate_insn_chain): Likewise.
28657 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28659 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
28660 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
28661 STACK_GROWS_DOWNWARD as normal if.
28662 (expand_call): Likewise.
28664 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
28667 * config/sh/sh.md (*round_int_even): New insn_and_split and
28668 accompanying new unnamed split.
28670 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28672 * bitmap.c (bitmap_set_range): Handle count==1 specially.
28673 (bitmap_clear_range): Likewise.
28674 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
28675 bitmap_set_range unconditionally.
28676 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28677 * df-scan.c (df_mark_reg): Likewise.
28678 * haifa-sched.c (setup_ref_regs): Likewise.
28679 * sched-rgn.c (update_live_1): Likewise.
28681 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28683 * regs.h (END_HARD_REGNO): Delete.
28684 (END_REGNO): Move to...
28686 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
28687 * caller-save.c (mark_set_regs): Likewise.
28688 * combine.c (move_deaths, distribute_notes): Likewise.
28689 * cse.c (invalidate, invalidate_for_call): Likewise.
28690 * df-scan.c (df_ref_record): Likewise.
28691 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
28692 (record_last_reg_set_info): Likewise.
28693 * reg-stack.c (convert_regs_exit): Likewise.
28694 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
28695 * resource.c (update_live_status): Likewise.
28696 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
28698 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28700 * rtl.h (reg_info): Add an nregs field.
28701 (REG_NREGS): Use it.
28702 (SET_REGNO_RAW): Delete.
28703 (set_regno_raw): New function.
28704 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
28705 (END_REGNO): Redefine in terms of REG_NREGS.
28706 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
28708 * emit-rtl.c (set_mode_and_regno): Likewise.
28709 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
28710 instead of SET_REGNO_RAW.
28712 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28714 * rtl.h (PUT_MODE_RAW): New macro.
28715 (PUT_REG_NOTE_KIND): Use it.
28716 (set_mode_and_regno): Declare.
28717 (gen_raw_REG): Change regno to "unsigned int".
28718 (gen_rtx_REG): Change "unsigned" to "unsigned int".
28719 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
28720 use set_mode_and_regno to change the mode of registers.
28721 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
28722 * emit-rtl.c (set_mode_and_regno): New function.
28723 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
28724 * caller-save.c (reg_save_code): Use set_mode_and_regno.
28725 * expr.c (init_expr_target): Likewise.
28726 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28727 * postreload.c (reload_cse_simplify_operands): Likewise.
28729 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28731 * caller-save.c (init_caller_save): Use word_mode and
28732 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
28733 * expr.c (init_expr_target): Likewise.
28734 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28735 * postreload.c (reload_cse_regs_1): Likewise.
28737 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28739 * rtl.def (REG): Change format to "r".
28740 * rtl.h (rtunion): Remove rt_reg.
28741 (reg_info): New structure.
28742 (rtx_def): Add reg field to main union.
28743 (X0REGATTR): Delete.
28744 (REG_CHECK): New macro.
28745 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
28746 * rtl.c (rtx_format): Document "r".
28747 (rtx_code_size): Handle REG specially.
28748 * gengenrtl.c (special_format): Return true for formats
28750 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
28751 Deal with REG_ATTRS after the field loop.
28752 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
28753 * expmed.c (init_expmed): Call gen_raw_REG instead of
28755 * expr.c (init_expr_target): Likewise.
28756 * regcprop.c (maybe_mode_change): Likewise.
28757 * varasm.c (make_decl_rtl): Likewise.
28758 * final.c (leaf_renumber_regs_insn): Return early after
28760 * genemit.c (gen_exp): Handle 'r' fields.
28761 * genpeep.c (match_rtx): Likewise.
28762 * gensupport.c (subst_pattern_match): Likewise.
28763 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
28764 (alter_constraints, subst_dup): Likewise.
28765 * read-rtl.c (read_rtx_code): Likewise.
28766 * print-rtl.c (print_rtx): Likewise.
28767 * genrecog.c (find_operand, find_matching_operand): Likewise.
28768 (validate_pattern, match_pattern_2): Likewise.
28769 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
28770 (rtx_test::regno_field): New function.
28771 (operator ==, safe_to_hoist_p, transition_parameter_type)
28772 (parameter_type_string, print_parameter_value)
28773 (print_nonbool_test, print_test): Handle new enum values.
28774 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
28775 * lra-constraints.c (operands_match_p): Likewise.
28777 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28779 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
28780 Change type of new_regno to unsigned int.
28781 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
28782 new_regno to unsigned int.
28783 (df_ref_change_reg_with_loc): Remove old_regno parameter.
28784 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
28785 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
28786 (SET_REGNO_RAW): Add space after ",".
28788 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28790 * rtl.h (REG_NREGS): New macro
28791 * alias.c (record_set): Use it.
28792 * cfgcleanup.c (mark_effect): Likewise.
28793 * combine.c (likely_spilled_retval_1): Likewise.
28794 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
28795 (move_deaths, distribute_notes): Likewise.
28796 * cselib.c (cselib_record_set): Likewise.
28797 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28798 * df-scan.c (df_mark_reg): Likewise.
28799 * dse.c (look_for_hardregs): Likewise.
28800 * dwarf2out.c (reg_loc_descriptor): Likewise.
28801 (multiple_reg_loc_descriptor): Likewise.
28802 * expr.c (write_complex_part, read_complex_part): Likewise.
28803 (emit_move_complex): Likewise.
28804 * haifa-sched.c (setup_ref_regs): Likewise.
28805 * ira-lives.c (mark_hard_reg_live): Likewise.
28806 * lra.c (lra_set_insn_recog_data): Likewise.
28807 * mode-switching.c (create_pre_exit): Likewise.
28808 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
28809 (reload_combine_recognize_pattern): Likewise.
28810 (reload_combine_note_use, move2add_record_mode): Likewise.
28811 (reload_cse_move2add): Likewise.
28812 * reg-stack.c (subst_stack_regs_pat): Likewise.
28813 * regcprop.c (kill_value, copy_value): Likewise.
28814 (copyprop_hardreg_forward_1): Likewise.
28815 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
28816 (build_def_use): Likewise.
28817 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
28818 (deps_analyze_insn): Likewise.
28819 * sched-rgn.c (check_live_1, update_live_1): Likewise.
28820 * sel-sched.c (count_occurrences_equiv): Likewise.
28821 * valtrack.c (dead_debug_insert_temp): Likewise.
28823 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28825 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
28826 * dse.c (note_add_store): Likewise.
28827 * ira-lives.c (mark_hard_reg_dead): Likewise.
28828 * loop-invariant.c (mark_reg_store): Likewise.
28829 (mark_reg_death): Likewise.
28830 * postreload.c (reload_combine): Likewise.
28831 (reload_combine_note_store): Likewise.
28832 (reload_combine_note_use): Likewise.
28833 * recog.c (peep2_reg_dead_p): Likewise.
28835 2015-05-19 Alan Modra <amodra@gmail.com>
28837 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
28838 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
28839 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
28841 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
28842 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
28843 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
28844 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
28846 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
28848 * config/mips/mips.md (JOIN_MODE): New mode iterator.
28849 (join2_load_Store<JOIN_MODE:mode>): New pattern.
28850 (join2_loadhi): Likewise.
28851 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
28852 load-load and store-stores.
28853 * config/mips/mips.opt (mload-store-pairs): New option.
28854 (TARGET_LOAD_STORE_PAIRS): New macro.
28855 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
28856 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
28857 * config/mips/mips.c (mips_load_store_bonding_p): New function.
28859 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
28861 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
28863 * dojump.c (do_compare_rtx_and_jump): Likewise.
28864 * expmed.c (emit_store_flag_1): Likewise.
28865 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
28866 * final.c (sprint_ul): Use std::reverse for reversing a string.
28867 * fold-const.c (extract_muldiv_1): Use std::swap.
28868 * genmodes.c (emit_mode_int_n): Likewise.
28869 * ifcvt.c (dead_or_predicable): Likewise.
28870 * ira-build.c (ira_merge_live_ranges): Likewise.
28871 (swap_allocno_copy_ends_if_necessary): Likewise.
28872 * ira.c (ira_setup_alts): Likewise.
28873 * loop-iv.c (iv_analyze_expr): Likewise.
28874 (implies_p): Likewise.
28875 (canon_condition): Likewise.
28876 * lra-constraints.c (swap_operands): Likewise.
28877 * lra-lives.c (lra_merge_live_ranges): Likewise.
28878 * omega.c (swap): Remove.
28880 (omega_unprotect_1): Use std::swap.
28881 (omega_solve_geq): Likewise.
28882 * optabs.c (expand_binop_directly): Likewise.
28883 (expand_binop): Likewise.
28884 (emit_conditional_move): Likewise.
28885 (emit_conditional_add): Likewise.
28886 * postreload.c (reload_cse_simplify_operands): Likewise.
28887 * reg-stack.c (emit_swap_insn): Likewise.
28888 (swap_to_top): Likewise.
28889 (compare_for_stack_reg): Likewise.
28890 (subst_asm_stack_regs): Likewise.
28891 * reload.c (find_reloads): Likewise.
28892 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
28893 * sel-sched.c (invoke_reorder_hooks): Likewise.
28894 (create_block_for_bookkeeping): Likewise.
28895 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
28896 (lambda_matrix_right_hermite): Use std::swap.
28897 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
28898 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
28899 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
28900 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
28901 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
28902 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
28903 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
28904 * tree-vrp.c (compare_ranges): Likewise.
28905 * var-tracking.c (add_with_sets): Likewise.
28906 (vt_find_locations): Likewise.
28908 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
28910 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
28912 (FBSD_ENDFILE_SPEC): Likewise.
28913 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
28914 config/freebsd-spec.h.
28915 (ENDFILE_SPEC): Likewise.
28917 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
28918 Richard Henderson <rth@redhat.com>
28921 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
28922 Check for a memory location that is not a reference (using an AND)
28923 to an unaligned location here.
28924 * config/alpha/predicates.md (normal_memory_operand): Remove.
28926 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
28928 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
28929 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
28931 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
28933 * config/mips/mips.c (micromips_globals): New variable.
28934 (mips_set_compression_mode): Save and reinitialize target-dependent
28935 state for microMIPS.
28937 2015-05-18 Martin Liska <mliska@suse.cz>
28939 * dbgcnt.def: Add new counter.
28940 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
28942 2015-05-18 Martin Liska <mliska@suse.cz>
28944 * dbgcnt.def: Sort counters.
28945 * opts.c (common_handle_option): Do not compile if
28946 -fdbg-cnt-list is enabled.
28948 2015-05-18 Tom de Vries <tom@codesourcery.com>
28950 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
28951 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
28952 address operator to va_list operand.
28953 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
28955 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
28957 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
28958 * config/s390/s390.c (s390_gimplify_va_arg): Same.
28959 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
28961 2015-05-18 Tom de Vries <tom@codesourcery.com>
28963 * tree-ssa-tail-merge.c: Fix whitespace.
28965 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
28967 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
28968 cortex-a17, and cortex-a17.cortex-a7.
28970 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
28973 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
28975 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
28978 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
28979 QImode inner modes for TARGET_AVX512BW. Force mask operand
28980 to a register for AVX512F modes.
28982 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
28984 * toplev.c (emit_debug_global_declarations): Do not output debug info
28985 when doing slim LTO objects.
28987 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
28989 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
28990 odr_types_equivalent_p): Declare.
28991 (odr_type_p): Use gcc_checking_assert.
28992 (type_in_anonymous_namespace_p) Declare.
28993 (type_with_linkage_p): Declare.
28994 * common.opt (Wlto-type-mismatch): New warning.
28995 * ipa-devirt.c (compound_type_base): New function.
28996 (odr_or_derived_type_p): New function.
28997 (odr_types_equivalent_p): New function.
28998 (add_type_duplicate): Simplify.
28999 (type_with_linkage_p): Add hack to prevent false positives on C types
29000 (type_in_anonymous_namespace_p): Likewise.
29001 * tree.c (need_assembler_name_p): Use type_with_linkage.
29002 * tree.h (type_in_anonymous_namespace_p): Remove.
29003 * doc/invoke.texi (-Wlto-type-mismatch): Document
29005 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29007 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
29008 (verify_type): Verify STRING_FLAG.
29010 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
29013 * tree-pretty-print.c (percent_K_format): Replace locus pointer
29014 with accessor function.
29015 * tree-diagnostic.c (diagnostic_report_current_function): Use
29016 diagnostic_location function.
29017 (maybe_unwind_expanded_macro_loc): Likewise.
29018 (virt_loc_aware_diagnostic_finalizer): Likewise.
29019 (default_tree_printer): Replace locus pointer with accessor function.
29020 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
29021 (diagnostic_set_info_translated): Initialize second location.
29022 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
29023 (diagnostic_show_locus): Handle two locations. Call
29024 diagnostic_print_caret_line.
29025 (diagnostic_print_caret_line): New.
29026 (default_diagnostic_starter): Use diagnostic_location function.
29027 (diagnostic_report_diagnostic): Use diagnostic_location function.
29028 (verbatim): Do not set text.locus.
29029 * diagnostic.h (struct diagnostic_info): Remove location field.
29030 (struct diagnostic_context): Make caret_chars an array of two.
29031 (diagnostic_location): New inline.
29032 (diagnostic_expand_location): Handle two locations.
29033 (diagnostic_same_line): New inline.
29034 (diagnostic_print_caret_line): Declare.
29035 (CARET_LINE_MARGIN): New constant.
29036 * pretty-print.c (pp_printf): Do not set text.locus.
29037 (pp_verbatim): Do not set text.locus.
29038 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
29039 (struct text_info): Replace locus pointer with locations
29040 array. Add accessor functions.
29042 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
29043 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29046 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
29047 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
29048 large constants in register instead of splitting them.
29050 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
29053 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
29054 replacements in memory addresses.
29055 (get_unaligned_address): Ditto.
29057 2015-05-16 James Bowman <james.bowman@ftdichip.com>
29059 * config/ft32/*: New files for FT32 port.
29060 * doc/install.texi: Add FT32 information.
29061 * doc/invoke.texi: Add FT32 information.
29062 * doc/md.texi: Add FT32 information.
29063 * doc/contrib.texi: Self added.
29065 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
29067 PR tree-optimization/64454
29068 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
29069 (-1 - A -> ~A): Remove unnecessary condition.
29071 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
29073 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
29074 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
29075 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
29077 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
29079 * ipa-chkp.h (chkp_wrap_function): New.
29080 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
29081 (chkp_wrap_function_name): New.
29082 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
29083 to get wrapper name.
29084 * lto-cgraph.c: Include ipa-chkp.h.
29085 (input_cgraph_1): Avoid alias chain for wrappers.
29087 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
29089 PR middle-end/66134
29090 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
29091 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
29093 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29095 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
29096 (AARCH64_FL_SLOWMUL): Delete.
29097 (AARCH64_FL_CRC): Redefine to 1<<3.
29098 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
29100 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29102 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
29105 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
29107 * config/alpha/alpha.md (extendqidi2): Use general_operand
29108 instead of some_operand for operand[1] predicate.
29109 (extendhidi2): Ditto.
29110 (cbranchdi4): Use general_operand instead of some_operand
29111 for operand[1] and operands[2] predicates.
29112 (cstoredi4): Ditto.
29113 * config/alpha/predicates.md (some_operand): Remove unused predicate.
29114 (some_ni_operand): Ditto.
29116 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
29118 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
29119 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
29120 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
29121 low part of the constant using alpha_emit_set_const_1.
29122 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
29124 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
29126 * varasm.c (output_constant_pool_1): Pass down alignment from
29127 constant pool entry's descriptor to output_constant_pool_2.
29128 (output_object_block): Add comment prior to call to
29129 output_constant_pool_1.
29131 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
29133 PR rtl-optimization/65862
29134 * target.def (ira_change_pseudo_allocno_class): New hook.
29135 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
29137 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
29138 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
29140 * ira-costs.c (find_costs_and_classes): Call the hook and change
29141 classes when it is necessary.
29142 * doc/tm.texi: Update.
29144 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
29146 * config/i386/i386.md (sibcall_memory): Check that register with
29147 callee address is not also used as one of the arguments, instead
29148 of checking that it is not live after the sibcall.
29149 (sibcall_pop_memory): Ditto.
29150 (sibcall_value_memory): Ditto.
29151 (sibcall_value_pop_memory): Ditto.
29153 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
29155 * generic-match-head.c (types_match): Handle non-types.
29156 * gimple-match-head.c (types_match): Likewise.
29157 * match.pd: Remove unnecessary TREE_TYPE for types_match.
29159 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
29161 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
29162 (csneg3<mode>_insn): Enable expansion of pattern.
29164 2015-05-14 Nick Clifton <nickc@redhat.com>
29166 * config/rl78/rl78.c (rl78_select_section): Select the correct
29167 default section based upon the category of the decl.
29169 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
29171 PR rtl-optimization/30967
29172 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
29173 destination mode for the cost of scc patterns.
29175 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
29177 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
29178 using SWIM248 mode iterator.
29179 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
29180 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
29181 for operand[2] constraint.
29182 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
29184 2015-05-13 Jakub Jelinek <jakub@redhat.com>
29186 PR middle-end/66133
29187 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
29188 make sure it is never noreturn, even when the task body does not
29190 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
29191 right before GIMPLE_OMP_RETURN.
29192 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
29193 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
29194 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
29196 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29198 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
29199 * tree-ssa-math-opts.c: Include params.h
29200 (pow_synth_sqrt_info): New struct.
29201 (representable_as_half_series_p): New function.
29202 (get_fn_chain): Likewise.
29203 (print_nested_fn): Likewise.
29204 (dump_fractional_sqrt_sequence): Likewise.
29205 (dump_integer_part): Likewise.
29206 (expand_pow_as_sqrts): Likewise.
29207 (gimple_expand_builtin_pow): Use above to attempt to expand
29208 pow as series of square roots. Removed now unused variables.
29210 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
29212 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
29213 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
29214 Remove *p0 and *p1 arguments. Rewrite function.
29215 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
29216 (alpha_split_const_mov): Update calls to alpha_extract_integer and
29217 alpha_emit_set_long_const.
29218 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
29219 (alpha_output_mi_thunk_osf): Ditto.
29220 * config/alpha/alpha.md (movti): Do not check operands[1]
29223 2015-05-13 Richard Biener <rguenther@suse.de>
29225 PR tree-optimization/66129
29226 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
29228 (vect_schedule_slp_instance): Fix typo.
29230 2015-05-13 David Malcolm <dmalcolm@redhat.com>
29232 * common.opt (fdump-internal-locations): New option.
29233 * input.c: Include diagnostic-core.h.
29234 (get_end_location): New function.
29235 (write_digit): New function.
29236 (write_digit_row): New function.
29237 (dump_location_range): New function.
29238 (dump_labelled_location_range): New function.
29239 (dump_location_info): New function.
29240 * input.h (dump_location_info): New prototype.
29241 * toplev.c (compile_file): Handle flag_dump_locations.
29243 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
29245 * gimple-expr.h (is_gimple_constant): Reorder.
29246 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
29248 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
29250 * combine.c (simplify_set): When generating a CC set, if the
29251 source already is in the correct mode, do not wrap it in a
29252 compare. Simplify the rest of that code.
29254 2015-05-13 Richard Biener <rguenther@suse.de>
29256 PR tree-optimization/66123
29257 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
29260 2015-05-13 Richard Biener <rguenther@suse.de>
29262 PR middle-end/66110
29263 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
29265 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
29267 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29269 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
29270 * aclocal.m4: Regenerated with automake-1.11.6.
29272 2015-05-13 Tom de Vries <tom@codesourcery.com>
29274 PR tree-optimization/66010
29275 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
29276 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
29277 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
29278 and rval based on do_deref.
29280 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
29283 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
29284 link time constants into adress expressions and therefore set
29287 2015-05-13 Jakub Jelinek <jakub@redhat.com>
29290 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
29291 Use SWI248 iterator instead of SWI.
29292 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
29293 Use eq_attr "alternative" "0" instead of match_test in
29294 length_immediate attribute computation.
29295 (*mulvhi4, *mulvhi4_1): New define_insns.
29298 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
29299 SIGNED to get precision of non-negative value.
29301 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
29304 * function.c (diddle_return_value_1): Process bounds first.
29305 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
29308 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29310 PR rtl-optimization/64616
29311 * loop-invariant.c (can_move_invariant_reg): New.
29312 (move_invariant_reg): Call above new function to decide whether
29313 instruction can just be moved, skipping creation of temporary
29316 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29318 PR target/pr66047.c
29319 * i386.c (ix86_function_sseregparm): Only return -1 if local function
29320 with implied regparm is called from -mno-sse function.
29321 (init_cumulative_args): Output error if ix86_function_sseregparm
29322 return -1 and SSE register would be needed.
29323 (function_arg_advance_32): Likewise.
29324 (function_arg_32): Likewise.
29325 * i386.h (ix86_args): Add decl field.
29327 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29330 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
29331 inlines across optimization boundary.
29333 2015-05-12 Jason Merrill <jason@redhat.com>
29335 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
29336 string literal and macro name.
29338 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
29340 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
29341 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
29342 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
29344 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29346 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
29347 (-Wmisleading-indentation): New option.
29348 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
29350 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
29352 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
29353 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
29354 (alpha_extract_integer): Ditto.
29355 (alpha_legitimate_constant_p): Ditto.
29356 (alpha_split_tmode_pair): Ditto.
29357 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
29358 (alpha_expand_mov): Ditto.
29359 (print_operand): Remove handling of 'H' modifier.
29360 <case 'm'>: Remove CONST_DOUBLE handling.
29361 (summarize_insn): Handle CONST_WIDE_INT.
29362 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
29364 (movti): Handle CONST_WIDE_INT.
29365 * config/alpha/constraints.md ('H'): Remove constraint definition.
29366 ('G'): Do not match MODE_FLOAT class.
29367 * config/alpha/predicates.md (const0_operand): Also match
29369 (non_add_const_operand): Ditto.
29370 (non_zero_const_operand): Ditto.
29371 (some_operand): Ditto.
29372 (input_operand): Ditto. Handle CONST_WIDE_INT.
29373 (and_operand): Do not match const_double.
29374 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
29376 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
29379 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
29380 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
29381 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
29382 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
29383 is_mm_seq_cst, is_mm_sync): New accessor functions.
29384 * builtins.c (expand_builtin_sync_operation,
29385 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
29386 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
29387 (get_memmodel, expand_builtin_atomic_compare_exchange,
29388 expand_builtin_atomic_load, expand_builtin_atomic_store,
29389 expand_builtin_atomic_clear): Use new accessor routines.
29390 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
29391 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
29392 (maybe_emit_sync_lock_test_and_set): Use new accessors and
29393 MEMMODEL_SYNC_ACQUIRE.
29394 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
29395 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
29396 expand_atomic_store): Use new accessors.
29397 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
29398 * tsan.c (instrument_builtin_call): Update check for memory model beyond
29399 final enum to use MEMMODEL_LAST.
29400 * c-family/c-common.c: Use new accessor for memmodel_base.
29401 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
29403 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
29404 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
29405 mem_thread_fence, *dmb): Likewise.
29406 * config/alpha/alpha.c (alpha_split_compare_and_swap,
29407 alpha_split_compare_and_swap_12): Likewise.
29408 * config/arm/arm.c (arm_expand_compare_and_swap,
29409 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
29410 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
29411 atomic_loaddi): Likewise.
29412 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
29414 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
29415 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
29417 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
29418 atomic_store<mode>, atomic_compare_and_swap<mode>,
29419 atomic_exchange<mode>): Use new accessors.
29420 * config/mips/mips.c (mips_process_sync_loop): Likewise.
29421 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
29422 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
29423 rs6000_post_atomic_barrier): Add new cases.
29424 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
29425 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
29426 (atomic_load<mode>): Add new cases and use new accessors.
29427 (store_quadpti): Add new cases.
29428 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
29430 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
29431 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
29434 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29436 * ipa-devirt.c (type_with_linkage_p): New function.
29437 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
29439 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
29440 (can_be_name_hashed_p): Simplify.
29441 (hash_odr_name): Check that type has linkage before checking if it is
29443 (types_same_for_odr): Likewise.
29444 (odr_name_hasher::equal): Likewise.
29445 (odr_subtypes_equivalent_p): Likewise.
29446 (warn_types_mismatch): Likewise.
29447 (get_odr_type): Likewise.
29448 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
29449 * ipa-utils.h (odr_type_p): Move offline.
29450 * tree.c (need_assembler_name_p): Fix handling of types
29452 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
29454 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29456 * timevar.c (timevar_enable): Delete in favor of...
29457 (g_timer): New global.
29458 (struct timevar_def): Move to timevar.h inside class timer.
29459 (struct timevar_stack_def): Likewise.
29460 (timevars): Delete global in favor of field "m_timevars" within
29461 class timer in timevar.h
29462 (stack): Likewise, in favor of field "m_stack".
29463 (unused_stack_instances): Likewise, in favor of field
29464 "m_unused_stack_instances".
29465 (start_time): Likewise, in favor of field "m_start_time".
29466 (get_time): Eliminate check for timevar_enable.
29467 (timer::timer): New function, built from part of timevar_init.
29468 (timevar_init): Rewrite idempotency test from using
29469 "timevar_enable" bool to using dynamic allocation of "g_timer".
29470 Move rest of implementation into timer's constructor.
29471 (timevar_push_1): Rename to...
29472 (timer::push): ...this, adding "m_" prefixes to variables that
29473 are now fields of timer.
29474 (timevar_pop_1): Likewise, rename to...
29475 (timer::pop): ...this, and add "m_" prefixes.
29476 (timevar_start): Replace test for "timevar_enable" with one for
29477 "g_timer", and move bulk of implementation to...
29478 (timer::start): ...here, adding "m_" prefixes.
29479 (timevar_stop): Likewise, from here...
29480 (timer::stop): ...to here.
29481 (timevar_cond_start): Likewise, from here...
29482 (timer::cond_start): ...to here.
29483 (timevar_cond_stop): Likewise, from here...
29484 (timer::cond_stop): ...to here.
29485 (validate_phases): Rename to...
29486 (timer::validate_phases): ...this, and add "m_" prefixes. Make
29487 locals "total" and "tv" const.
29488 (timevar_print): Rename to...
29489 (timer::print): ...this, and add "m_" prefixes. Make locals
29490 "total" and "tv" const. Eliminate test for timevar_enable.
29491 * timevar.h (timevar_enable): Eliminate.
29492 (g_timer): New declaration.
29493 (timevar_push_1): Eliminate.
29494 (timevar_pop_1): Eliminate.
29495 (timevar_print): Eliminate.
29496 (class timer): New class.
29497 (timevar_push): Rewrite to use g_timer.
29498 (timevar_pop): Likewise.
29499 * toplev.c (toplev::~toplev): Likewise.
29501 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
29503 * arm-protos.h (arm_sched_autopref): Delete.
29504 (tune_params): Re-organize, use enums for flag values.
29505 (FUSE_OPS): New macro.
29506 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
29507 (ARM_PREFETCH_BENEFICIAL): Likewise.
29508 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
29509 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
29510 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
29511 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
29512 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
29513 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
29514 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
29515 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
29517 (arm_option_override, thumb2_reorg, arm_print_tune_info)
29518 (aarch_macro_fusion_pair_p): Update uses of current_tune.
29519 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
29521 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
29523 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
29526 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
29527 Sandra Loosemore <sandra@codesourcery.com>
29529 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
29531 (REG_CLASS_NAMES): Add "IJMP_REGS".
29532 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
29533 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
29534 use new "c" register constraint.
29535 * config/nios2/constraint.md (c): New register constraint
29536 corresponding to IJMP_REGS.
29538 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29540 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
29541 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
29542 define_splits): Delete, revamp, transmogrify into ...
29543 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
29544 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
29545 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
29548 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29550 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
29551 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
29553 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29555 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
29556 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
29557 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
29558 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
29559 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
29560 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
29561 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
29562 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
29563 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
29564 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
29565 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
29566 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
29567 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
29568 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
29569 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
29570 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
29571 and 30 corresponding splitters): Delete.
29573 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29575 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
29578 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29580 * combine.c (recog_for_combine_1): New function, factored out
29581 from recog_for_combine.
29582 (change_zero_ext): New function.
29583 (recog_for_combine): If recog fails, try again with the pattern
29584 modified by change_zero_ext; if that still fails, restore the
29587 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29589 * combine.c (get_undo_marker): New function.
29590 (undo_to_marker): New function, largely factored out from ...
29591 (undo_all): ... this. Adjust.
29593 2015-05-12 Richard Biener <rguenther@suse.de>
29595 PR tree-optimization/66101
29596 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
29597 fixup if we turn a loop exit edge to a fallthru edge.
29599 2015-05-12 Richard Biener <rguenther@suse.de>
29601 PR tree-optimization/37021
29602 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
29603 (SLP_TREE_TWO_OPERATORS): New define.
29604 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
29605 SLP_TREE_TWO_OPERATORS.
29606 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
29608 (vect_build_slp_tree): Adjust.
29609 (vect_analyze_slp_cost_1): Likewise.
29610 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
29611 emitting two vector stmts and mixing the results.
29613 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
29615 * call.c (print_z_candidates): Remove dead code.
29617 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29619 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
29620 and zEC12_simple_fp.
29621 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
29624 2015-05-12 Tom de Vries <tom@codesourcery.com>
29626 PR tree-optimization/66010
29627 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
29629 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
29630 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
29631 va_lists are passed, and remove corresponding handling.
29632 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
29633 do_deref argument to ifn_va_arg.
29634 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
29637 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29640 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
29641 REG before taking its REGNO.
29643 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
29645 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
29646 rsp->sign_bit_copies and rsp->nonzero_bits into ...
29647 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
29648 present to get more accurate information about the number of sign bit
29649 copies and non zero bits.
29651 2015-05-12 Richard Biener <rguenther@suse.de>
29653 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
29654 do not allow unrolling.
29656 2015-05-11 Richard Henderson <rth@redhat.com>
29658 * config/i386/i386-modes.def (CCP): New.
29659 * config/i386/i386.c (put_condition_code): Handle it.
29660 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
29662 2015-05-11 Richard Henderson <rth@redhat.com>
29664 * target.def (md_asm_clobbers): Replace with...
29665 (md_asm_adjust): this.
29666 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
29667 (TARGET_MD_ASM_ADJUST): New.
29668 * tm.texi: Rebuild.
29669 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
29670 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
29671 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
29673 * cfgexpand.c (check_operand_nalternatives): Accept vector of
29674 constraints instead of lists of outputs and inputs.
29675 (expand_asm_stmt): Save and restore input_location around the
29676 body of the function. Move asm data into vectors instead of
29677 building tree lists. Generate cleanup sequences as needed,
29678 rather than waiting til the end. Use new md_asm_adjust hook.
29680 * config/vxworks.c: Include vec.h before target.h.
29681 * gimple.c: Likewise.
29682 * incpath.c: Likewise.
29683 * mode-switching.c: Likewise.
29685 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
29686 (cris_md_asm_adjust): this.
29687 (TARGET_MD_ASM_CLOBBERS): Remove.
29688 (TARGET_MD_ASM_ADJUST): New.
29689 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
29690 (ix86_md_asm_adjust): this.
29691 (TARGET_MD_ASM_CLOBBERS): Remove.
29692 (TARGET_MD_ASM_ADJUST): New.
29693 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
29694 (mn10300_md_asm_adjust): this.
29695 (TARGET_MD_ASM_CLOBBERS): Remove.
29696 (TARGET_MD_ASM_ADJUST): New.
29697 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
29698 (rs6000_md_asm_adjust): this.
29699 (TARGET_MD_ASM_CLOBBERS): Remove.
29700 (TARGET_MD_ASM_ADJUST): New.
29701 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
29702 (visium_md_asm_adjust): this.
29703 (TARGET_MD_ASM_CLOBBERS): Remove.
29704 (TARGET_MD_ASM_ADJUST): New.
29706 2015-05-11 Richard Henderson <rth@redhat.com>
29708 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
29709 if noutputs is zero.
29710 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
29712 * cfgexpand.c (expand_asm_operands): Merge into...
29713 (expand_asm_stmt): ... here.
29715 * cfgexpand.c (expand_asm_operands): Don't call
29716 resolve_asm_operand_names.
29717 * stmt.c (resolve_asm_operand_names): Clarify block comment.
29719 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
29721 * dwarf2out.c (gen_member_die): Sanity check that we access
29722 TYPE_MAIN_VARIANT for TYPE_METHODS.
29723 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
29724 checking TYPE_METHODS.
29725 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
29727 (build_distinct_type_copy): Clear TYPE_METHODS.
29728 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
29729 (verify_type): Allow TYPE_METHODS to be error_mark_node.
29730 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
29732 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
29734 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
29735 (emit_pattern_before_setloc): Likewise.
29737 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
29739 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
29740 for define_peephole2s.
29741 (get_peephole2_pattern): New function.
29742 (main): Use it. Call validate_pattern.
29744 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
29746 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
29747 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
29748 (Last callee saved reg is different for AVR_TINY architecture)
29750 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
29752 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
29753 when looking for memory references.
29755 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
29758 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
29759 via function pointers.
29761 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
29763 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
29764 indirect call by forcing address into a pseudo with -fno-plt.
29765 * common.opt (flag_plt): New option.
29766 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
29767 ([-fno-plt]): Document.
29769 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
29772 * config/rs6000/option-defaults.h: Add space between string literal
29775 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
29777 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
29778 accross ARM targets.
29780 2015-05-11 Christian Bruel <christian.bruel@st.com>
29782 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
29783 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
29785 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
29787 PR rtl-optimization/66076
29788 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
29789 Don't grow the heap array if it is already big enough from a
29790 previous iteration.
29792 2015-05-11 Christian Bruel <christian.bruel@st.com>
29794 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
29795 (is_called_in_ARM_mode): Remove.
29796 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
29797 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
29798 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
29799 arm_declare_function_name.
29801 2015-05-11 Christian Bruel <christian.bruel@st.com>
29803 * config/arm/arm.c (arm_option_override): Reoganized and split into :
29804 (arm_option_params_internal); New function.
29805 (arm_option_check_internal): New function.
29806 (arm_option_override_internal): New function.
29807 (thumb_code, thumb1_code): Remove.
29808 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
29809 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
29810 (thumb_code, thumb1_code): Remove.
29811 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
29813 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
29815 * config/alpha/alpha.c (alpha_emit_set_const_1)
29816 (alpha_emit_set_long_const, alpha_extract_integer)
29817 (alpha_legitimate_constant_p, alpha_split_const_mov)
29818 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
29819 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29820 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
29822 * config/alpha/predicates.md (mode_mask_operand): Do not match
29824 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29825 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
29826 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
29827 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29828 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
29830 2015-05-11 Jakub Jelinek <jakub@redhat.com>
29833 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
29834 default_binds_local_p_2.
29835 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
29836 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
29838 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29840 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
29842 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29844 Patch by Richard Biener
29845 * coverage.c (coverage_obj_init): Delay building of type variant
29846 until the type is finished.
29848 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29850 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
29851 mismatch between C and C++ type; compoare correctly ARG_TYPES
29852 for non-prototypes and output correctly parameter index for METHOD_TYPE.
29853 (odr_types_equivalent_p): Fix wording of warning about attributes;
29854 it is OK to match prototype and non-prototype.
29856 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29858 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
29859 TYPE_ARG_TYPES list.
29860 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
29861 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
29863 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29865 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
29866 * tree.h (is_lang_specific): Constify.
29868 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
29870 PR tree-optimization/64454
29871 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
29874 2015-05-08 Jason Merrill <jason@redhat.com>
29876 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
29877 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
29878 config/darwin.h, config/darwin9.h, config/elfos.h,
29879 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
29880 config/microblaze/microblaze.h, config/mips/mips.h,
29881 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
29882 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
29883 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
29884 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
29885 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
29886 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
29887 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
29888 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
29889 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
29890 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
29891 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
29892 between string literal and macro name.
29894 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29896 * jump.c: Change argument types to rtx_insn *.
29899 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29901 * lra-constraints.c: Change argument type to rtx_insn *.
29903 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29905 * df-problems.c: Change argument type to rtx_insn *.
29907 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29909 * combine.c: Change argument type to rtx_insn *.
29911 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29914 * rtlanal.c: Change argument type to rtx_insn *.
29916 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29918 * sched-deps.c: Change argument types to rtx_insn *.
29919 * sched-int.h: Adjust.
29921 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29923 * dwarf2cfi.c: Change argument type to rtx_insn *.
29925 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29927 * ira.c (decrease_live_ranges_number): Changetype of local
29928 variable to rtx_insn *.
29929 * recog.c: Change argument types to rtx_insn *.
29932 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29934 * reorg.c: Change argument types to rtx_insn *.
29936 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29938 * ira-color.c: Change argument types to rtx_insn *.
29939 * lra-eliminations.c: Likewise.
29942 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29944 * gcse.c: Change argument types to rtx_insn *.
29946 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29948 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
29950 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29952 * emit-rtl.c (emit_debug_insn_before): Change argument type to
29956 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29958 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
29961 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29963 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
29966 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29968 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
29971 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29973 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
29976 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29978 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
29982 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29984 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
29988 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29990 * except.c (can_nonlocal_goto): Change type of argument to
29994 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29996 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
29999 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30001 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
30002 * cfgrtl.c (can_delete_label_p): Adjust.
30005 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30007 * reorg.c (stop_search_p): Change argument to rtx_insn *.
30009 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30011 * except.c (make_reg_eh_region_note): Change argument to
30013 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
30014 * except.h: Adjust.
30016 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30018 * mode-switching.c (commit_mode_sets): Change type of local
30019 variable from rtx to rtx_insn *.
30021 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
30023 * doc/install.texi (--enable-languages): Add missing jit and lto info.
30024 Add ^ to grep command.
30025 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
30026 arg to last gimple_simplify declaration. Add missing gimple_build
30027 declaration for built-in function case with four tree args.
30029 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
30030 Szabolcs Nagy <szabolcs.nagy@arm.com>
30032 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
30033 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
30034 (GNU_USER_DYNAMIC_LINKERN32): Update.
30036 2015-05-08 Richard Biener <rguenther@suse.de>
30038 PR tree-optimization/66036
30039 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
30040 Handle strided group loads.
30041 (vect_verify_datarefs_alignment): Likewise.
30042 (vect_enhance_data_refs_alignment): Likewise.
30043 (vect_analyze_group_access): Likewise.
30044 (vect_analyze_data_ref_access): Likewise.
30045 (vect_analyze_data_ref_accesses): Likewise.
30046 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
30047 (vectorizable_load): Likewise.
30049 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
30051 * config/rs6000/rs6000.md: Require operand inequality in one
30054 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
30055 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
30057 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
30059 * config/rx/rx.md (movdi, movdf): Likewise.
30060 Likewise for define_peephole2s.
30062 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30064 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
30065 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
30066 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
30067 vtst_u64): Rewrite using gcc vector extensions.
30069 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30071 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
30072 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
30074 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30076 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
30078 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
30080 * config/glibc-stdint.h (OPTION_MUSL): Define.
30081 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
30082 Change the definition based on OPTION_MUSL for 64 bit targets.
30083 * config/linux.h (OPTION_MUSL): Redefine.
30084 * config/alpha/linux.h (OPTION_MUSL): Redefine.
30085 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
30086 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
30088 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
30089 Szabolcs Nagy <szabolcs.nagy@arm.com>
30091 * config.gcc (LIBC_MUSL): New tm_defines macro.
30092 * config/linux.h (OPTION_MUSL): Define.
30093 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
30094 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
30095 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30096 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30097 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30098 * config/linux.opt (mmusl): New option.
30099 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
30100 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30101 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30102 * configure: Regenerate.
30104 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
30105 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30108 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
30109 * config/i386/knetbsd-gnu64.h: New file.
30111 2015-05-08 Marek Polacek <polacek@redhat.com>
30114 * doc/invoke.texi: Document -Woverride-init-side-effects.
30116 2015-05-07 Marek Polacek <polacek@redhat.com>
30119 * doc/invoke.texi: Document -Wshift-negative-value.
30121 2015-05-06 Aditya Kumar <hiraditya@msn.com>
30123 * gcov-tool.c (do_merge): Refactore to remove int ret.
30124 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
30125 !type == FUNC to type != FUNC.
30126 * reload.h (struct target_reload): Changee to type of
30127 x_spill_indirect_levels from bool to unsigned char.
30129 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
30131 * rtl.h (always_void_p): New function.
30132 * gengenrtl.c (always_void_p): Likewise.
30133 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
30134 with code foo are always VOIDmode.
30135 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
30136 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
30137 compare-elim.c, config/aarch64/aarch64.c,
30138 config/aarch64/aarch64.md, config/alpha/alpha.c,
30139 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
30140 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
30141 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
30142 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
30143 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
30144 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
30145 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
30146 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
30147 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
30148 config/ia64/vect.md, config/iq2000/iq2000.c,
30149 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
30150 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
30151 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
30152 config/mep/mep.c, config/microblaze/microblaze.c,
30153 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
30154 config/mn10300/mn10300.c, config/msp430/msp430.c,
30155 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
30156 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
30157 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
30158 config/rs6000/altivec.md, config/rs6000/rs6000.c,
30159 config/rs6000/rs6000.md, config/rs6000/vector.md,
30160 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
30161 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
30162 config/sh/sh.md, config/sh/sh_treg_combine.cc,
30163 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
30164 config/spu/spu.md, config/stormy16/stormy16.c,
30165 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
30166 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
30167 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
30168 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
30169 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
30170 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
30171 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
30172 var-tracking.c: Update calls accordingly.
30174 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
30177 PR middle-end/54303
30178 * varasm.c (function_mergeable_rodata_prefix): New function.
30179 (mergeable_string_section): Use it.
30180 (mergeable_constant_section): Use it.
30182 2015-05-07 Jeff Law <law@redhat.com>
30185 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30186 simplifier to narrow arithmetic.
30187 * generic-match-head.c: (types_match, single_use): New functions.
30188 * gimple-match-head.c: (types_match, single_use): New functions.
30190 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30192 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
30195 2015-05-07 Richard Biener <rguenther@suse.de>
30197 PR tree-optimization/66002
30198 * passes.def: Schedule another pass_merge_phi after ifcombine, right
30201 2015-05-07 Marek Polacek <polacek@redhat.com>
30202 Martin Uecker <uecker@eecs.berkeley.edu>
30204 * doc/invoke.texi: Document -fsanitize=bounds-strict.
30205 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
30206 into SANITIZE_NONDEFAULT.
30207 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
30209 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
30212 * config/alpha/alpha.c (alpha_override_options_after_change): New.
30213 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
30214 (alpha_override_options): Move align_loops, align_jumps and
30215 align_functions handling into alpha_override_options_after_change.
30217 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
30218 Chris Jones <chrisj@nvidia.com>
30219 Joshua Conner <jconner@nvidia.com>
30221 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
30222 linking of crtfastmath.o.
30223 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
30225 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
30227 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
30228 (cstore<mode>4_unsigned_imm): New expander.
30229 (cstore<mode>4): Remove empty constraint strings. Use the new
30232 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
30235 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
30238 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
30240 * config/aarch64/geniterators.sh: Use standard BRE in sed.
30242 2015-05-06 Alan Modra <amodra@gmail.com>
30245 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
30246 (UNSPEC_NOP): Define.
30247 (reload_vsx_from_gpr<mode>): Add missing DONE.
30248 (reload_gpr_from_vsx<mode>): Likewise.
30249 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
30250 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
30252 2015-05-06 Christian Bruel <christian.bruel@st.com>
30255 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
30256 align_jumps, align_functions into aarch64_override_options_after_change.
30258 2015-05-06 Richard Biener <rguenther@suse.de>
30260 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
30261 vect_transform_slp_perm_load to check if we support a permutation
30262 for basic-block vectorization.
30264 2015-05-06 Nick Clifton <nickc@redhat.com>
30266 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
30267 used, even if it is not being used as a frame pointer.
30269 2015-05-05 Jason Merrill <jason@redhat.com>
30271 * dwarf2out.c (gen_member_die): Don't emit anything for an
30272 anonymous class constructor.
30274 2015-05-05 David Malcolm <dmalcolm@redhat.com>
30276 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
30277 that it reflects the block structure.
30278 (afdo_propagate_edge): Likewise.
30279 (afdo_calculate_branch_prob): Likewise.
30280 (afdo_annotate_cfg): Likewise.
30281 * cfgcleanup.c (equal_different_set_p): Likewise.
30282 (try_crossjump_to_edge): Likewise.
30283 * cgraph.c (cgraph_node::verify_node): Likewise.
30284 * cgraphunit.c (expand_all_functions): Likewise.
30285 * config/i386/i386.c (ix86_expand_copysign): Likewise.
30286 (exact_dependency_1): Likewise.
30287 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
30288 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
30289 * gensupport.c (process_define_subst): Likewise.
30290 * lto-wrapper.c (merge_and_complain): Likewise.
30291 * tree-if-conv.c (if_convertible_bb_p): Likewise.
30292 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
30293 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
30294 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
30295 * tree-vect-loop.c (vectorizable_reduction): Likewise.
30296 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
30297 * tree-vect-stmts.c (vectorizable_shift): Likewise.
30298 * tree-vrp.c (vrp_finalize): Likewise.
30299 * tree.c (variably_modified_type_p): Likewise.
30301 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
30303 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
30304 on darwin12 and later.
30305 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
30306 file to pass -rdynamic on darwin12 and later.
30307 * config/darwin.opt (rdynamic): Add.
30309 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30311 * doc/extend.texi (C Extensions): Update menu for moved Variable
30312 Attributes and Type Attributes sections.
30314 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30317 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
30318 if rep_8byte stringop strategy was specified for 32-bit target.
30320 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
30323 * config/i386/i386.md (vector convert to float spltiter): Check for
30324 xmm16+, when splitting scalar float conversion.
30325 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
30327 2015-05-05 Nick Clifton <nickc@redhat.com>
30329 * config/msp430/msp430-opts.h (enum msp430_regions): New.
30330 * config/msp430/msp430.c (msp430_override_options): Complain if
30331 -mcode-region or -mdata-region is used on a non MSP430X.
30332 (msp430_section_attr): New function. Checks lower, upper and
30334 (msp430_attribute_table): Add lower, upper and either.
30335 (gen_prefix): New function. Generates a prefix for a section
30337 (msp430_select_section): New function - handles the choice of
30338 section for an object. Takes into account memory region
30339 attributes and options.
30340 (msp430_function_section): Use gen_prefix.
30341 (TARGET_SECTION_TYPE_FLAGS): Define.
30342 (msp430_section_type_flags): New function.
30343 (TARGET_ASM_UNIQUE_SECTION): Define.
30344 (msp430_unique_section): New function.
30345 (msp430_output_aligned_decl_common): New function.
30346 (msp430_do_not_relax_short_jumps): New function.
30347 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
30349 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
30350 * config/msp430/msp430-protos.h
30351 (msp430_do_not_relax_short_jumps): New prototype.
30352 (msp430_output_aligned_decl_common): New prototype.
30353 * config/msp430/msp430.md (length): New attribute.
30354 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
30355 then use a long code sequence for short jumps.
30356 * config/msp430/msp430.opt (mcode-region): New.
30357 (mdata-region): New.
30358 * doc/invoke.texi: Document new options.
30359 * doc/extend.texi: Document new attributes.
30361 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
30363 * config/aarch64-protos.h (struct cpu_branch_cost): New.
30364 (tune_params): Add field branch_costs.
30365 (aarch64_branch_cost): Declare.
30366 * config/aarch64.c (generic_branch_cost): New.
30367 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
30368 (cortexa53_tunings): Likewise.
30369 (cortexa57_tunings): Likewise.
30370 (thunderx_tunings): Likewise.
30371 (xgene1_tunings): Likewise.
30372 (aarch64_branch_cost): Define.
30373 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
30375 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30377 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
30378 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
30379 * config/i386/i386.md: Ditto.
30380 * config/i386/winnt.c: Ditto.
30382 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
30384 * doc/extend.texi (__atomic Builtins): Move implementation details
30385 to the end of the description, rewrite opening paragraphs, state
30386 difference with __sync builtins, state C11/C++11 assumptions,
30387 weaken itemized descriptions, add explanation of memory model
30388 behaviour, expand description of compare-exchange, simplify text.
30390 2015-05-05 Renlin Li <renlin.li@arm.com>
30392 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
30394 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
30396 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
30397 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30398 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
30399 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30400 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
30401 * configure: Regenerate.
30402 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
30403 * doc/install.texi (aarch64*-*-*): Document new
30404 --enable-fix-cortex-a53-843419 option.
30405 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
30406 and -mno-fix-cortex-a53-843419 options.
30408 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30411 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
30413 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
30415 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
30416 fix overactive TYPE_MIN_VALUE check and add FIXME for type
30417 compatibility problems.
30419 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
30421 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
30423 (cbranchsi4_reg): New.
30424 * config/microblaze/microblaze.c
30425 (microblaze_expand_conditional_branch_reg): New.
30426 * config/microblaze/microblaze-protos.h
30427 (microblaze_expand_conditional_branch_reg): New prototype.
30429 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
30431 * config/microblaze/microblaze.md (peephole2): New.
30433 2015-05-04 Jeff Law <law@redhat.com>
30436 2015-05-04 Jeff Law <law@redhat.com>
30438 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30439 simplifier to narrow arithmetic.
30440 * generic-match-head.c: (types_match, single_use): New functions.
30441 * gimple-match-head.c: (types_match, single_use): New functions.
30443 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
30446 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
30447 (split_branches): Likewise.
30449 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
30451 * common.opt (fdelete-null-pointer-checks): Init to -1.
30452 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
30453 override flag_delete_null_pointer_checks default.
30454 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
30455 behavior re address zero. Better document target-specific behavior.
30456 (-fisolate-errneous-paths-dereference): Mention relationship to
30457 -fdelete-null-pointer-checks.
30459 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30461 PR tree-optimization/65984
30462 * ubsan.c: Include tree-cfg.h.
30463 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
30464 stmt_could_throw_p test, rename can_throw variable to ends_bb.
30466 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
30468 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
30469 to CONST_DOUBLE_P predicate.
30470 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
30471 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
30472 allow only operands that satisfy standard_sse_constant_p predicate.
30473 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
30474 to CONST_DOUBLE_P predicate.
30476 2015-05-04 Jeff Law <law@redhat.com>
30478 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30479 simplifier to narrow arithmetic.
30480 * generic-match-head.c: (types_match, single_use): New functions.
30481 * gimple-match-head.c: (types_match, single_use): New functions.
30483 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
30485 * config/arm/arm.c: Restore bootstrap.
30487 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
30489 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
30490 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
30491 as CONST_WIDE_INT, not CONST_DOUBLE.
30492 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
30493 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
30494 (ix86_find_base_term): Do not check for CONST_DOUBLE.
30495 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
30496 (ix86_build_signbit_mask): Rewrite using wide ints.
30497 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
30498 (ix86_rtx_costs): Handle CONST_WIDE_INT.
30499 (find_constant): Ditto.
30500 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
30501 using gen_int_mode.
30502 * config/i386/predicates.md (x86_64_immediate_operand)
30503 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30504 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
30505 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30506 (const0_operand): Also match const_wide_int.
30507 (constm1_operand): Ditto.
30508 (const1_operand): Ditto.
30510 2015-05-04 Richard Biener <rguenther@suse.de>
30512 PR tree-optimization/65965
30513 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
30514 store groups at gaps.
30516 2015-05-04 Richard Biener <rguenther@suse.de>
30518 PR tree-optimization/65935
30519 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
30520 then make sure to apply that swapping to the IL.
30522 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30524 * Makefile.in (PATCHLEVEL_c): New variable.
30525 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
30526 expand the same way as if DEVPHASE_c was non-empty.
30528 2015-05-04 Kai Tietz <ktietz@redhat.com>
30531 * lto-wrapper.c (run_gcc): Open filename
30534 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
30536 * doc/extend.texi (Variable Attributes, Type Attributes): Move
30537 sections up in file, to immediately after the Function Attributes
30540 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
30542 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
30544 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30546 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
30547 (insert_partition_copy_on_edge): Adjust.
30548 (insert_rtx_to_part_on_edge): Likewise.
30549 (insert_part_to_rtx_on_edge): Likewise.
30551 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30553 * function.c (set_return_jump_label): Change type of argument to
30555 * function.h (set_return_jump_label): Adjust.
30557 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30559 * reload.h (struct reg_equivs_t): Change type of init to
30561 * ira.c (fix_reg_equiv_init): Adjust.
30562 * reload1.c (eliminate_regs_1): Likewise.
30563 (init_eliminable_invariants): Likewise.
30565 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30567 * cselib.c (fp_setter_insn): Take a rtx_insn *.
30568 * cselib.h (fp_setter_insn): Adjust.
30570 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30572 * recog.c (struct validate_replace_src_data): Change type of
30573 insn field to rtx_insn *.
30574 (validate_replace_src_group): Change type of argument to rtx_insn *.
30575 * recog.h (validate_replace_src_group): Adjust.
30577 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30579 * haifa-sched.c: Change the type of some variables to rtx_insn *.
30580 * sched-deps.c: Likewise.
30581 * sched-int.h: Likewise.
30582 * sched-rgn.c: Likewise.
30583 * sel-sched.c: Likewise.
30585 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30588 * config/i386/i386.c: Change the type of some arguments to
30590 * config/arm/arm.c: Likewise.
30592 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30594 * lra-constraints.c: Change type of some arguments to rtx_insn *.
30596 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30598 * regcprop.c (kill_autoinc_value): Change type of argument to
30601 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30603 * genrecog.c (print_subroutine): Adjust.
30604 * recog.c (get_bool_attr_mask_uncached): Likewise.
30605 * recog.h (struct recog_data_d): Change the type of insn to
30608 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30610 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
30612 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30614 * df-problems.c (df_set_note): Change type of argument to
30617 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30619 * builtins.c (expand_builtin_trap): Change type of local
30620 variable to rtx_insn *.
30621 (add_sched_insns_for_speculation): Likewise.
30622 (ix86_emit_save_regs): Likewise.
30623 (get_scratch_register_on_entry): Likewise.
30624 (ix86_emit_restore_reg_using_pop): Likewise.
30625 (ix86_emit_leave): Likewise.
30626 (ix86_emit_restore_regs_using_mov): Likewise.
30627 (ix86_expand_epilogue): Likewise.
30629 (rl78_alloc_physical_registers_umul): Likewise.
30630 * cselib.c (discard_useless_locs): Likewise.
30631 (cselib_invalidate_regno): Likewise.
30632 (cselib_invalidate_mem): Likewise.
30633 * function.c (expand_function_start): Likewise.
30634 (emit_use_return_register_into_block): Likewise.
30635 * gcse.c: Likewise.
30636 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
30637 * ifcvt.c (noce_get_alt_condition): Likewise.
30638 * loop-doloop.c (doloop_condition_get): Likewise.
30639 * lra-constraints.c (inherit_in_ebb): Likewise.
30640 * modulo-sched.c (sms_schedule_by_order): Likewise.
30641 * recog.c (next_insn_tests_no_inequality): Likewise.
30642 * reorg.c (emit_delay_sequence): Likewise.
30643 (update_reg_dead_notes): Likewise.
30644 (fix_reg_dead_note): Likewise.
30645 (fill_slots_from_thread): Likewise.
30646 (delete_computation): Likewise.
30648 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
30650 * doc/extend.texi (Variable Attributes): Add menu and proper
30651 @nodes to subsections. Move Microsoft Windows attributes to
30652 their own subsection.
30653 (Type Attributes): Reorganize introduction to remove duplicate
30654 list of attributes. Add menu and proper @nodes to subsections.
30655 Alphabetize the main table of common attributes.
30657 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
30659 * match.pd: New simplification patterns.
30660 (x + (x & 1)) -> ((x + 1) & ~1)
30661 (x & ~(x & y)) -> ((x & ~y))
30662 (x | ~(x | y)) -> ((x | ~y))
30664 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30666 * target.def (attribute_table): Mention that struct attribute_spec
30667 is defined in tree-core.h rather than tree.h
30668 * doc/tm.texi: Regenerate.
30670 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
30672 * genrecog.c (test): Rename to rtx_test. Update rest of file
30675 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
30677 PR translation/65959
30678 * params.h (DEFPARAM): Rename msgid to nocmsgid.
30680 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30682 * config/aarch64/aarch64-protos.h (tune_params):
30683 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
30684 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
30685 Return value depending on target.
30686 (generic_tunings): Initialize new target settings.
30687 (cortexa53_tunings): Likewise.
30688 (cortexa57_tunings): Likewise.
30689 (thunderx_tunings): Likewise.
30690 (xgene1_tunings): Likewise.
30692 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30694 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
30695 Make Cortex-A53 shift costs more accurate.
30697 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30699 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
30702 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30704 * config/aarch64/aarch64.c (aarch64_rtx_costs):
30705 Calculate cost of op0 and op1 in PLUS and MINUS cases.
30707 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30709 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
30710 Add cost of op0 in the compare-with-fpzero case.
30712 2015-04-30 David Malcolm <dmalcolm@redhat.com>
30714 * builtins.c (fold_builtin_1): Remove spurious second
30716 * cgraph.h (symtab_node::get_availability): Likewise.
30717 * opts.c (common_handle_option): Remove spurious second semicolon.
30718 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
30719 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
30721 2015-04-30 Caroline Tice <cmtice@google.com>
30723 PR gcov-profile/65929
30724 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
30725 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
30726 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
30727 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
30728 * doc/tm.texi: Regenerate.
30729 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
30730 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
30731 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
30732 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
30734 2015-04-30 Marek Polacek <polacek@redhat.com>
30736 * varasm.c (handle_cache_entry): Fix logic.
30738 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30740 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
30741 (*extrsi5_insn_uxtw_alt): Likewise.
30742 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
30743 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
30746 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30748 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
30751 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30753 * config/aarch64/aarch64.md
30754 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
30755 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
30756 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
30757 appropriately. Handle alternative EON form.
30759 2015-04-30 Renlin Li <renlin.li@arm.com>
30761 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
30762 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
30764 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
30767 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
30768 -fstrict-aliasing boundaries.
30770 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30772 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
30773 and [SU]MNEGL patterns.
30775 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30777 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
30778 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
30779 combined arithmetic-shift ops. Properly handle all shift and extend
30780 operations that can occur in combination with PLUS/MINUS.
30781 Rename maybe_fma to compound_p.
30782 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
30783 arithmetic and shift operations.
30785 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30787 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
30788 rather than arith_shift cost when costing ADD/MINUS of an
30791 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
30794 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
30797 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
30799 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
30800 are for the same position.
30802 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
30804 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
30806 (vectorize_loops): Use it.
30808 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
30810 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
30811 for aggregate types.
30812 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
30813 type to be non_ODR.
30814 * tree.c (need_assembler_name_p): Compute mangled name for
30815 non-fundamental types and integer types.
30817 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
30819 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
30821 * expr.c (expand_expr_real_2): Likewise.
30823 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
30825 * tree.c (build_common_builtin_nodes): Do not build
30826 __builtin_alloca_with_align as equivalent of library alloca.
30828 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
30830 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
30831 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
30833 * tree.c: Include print-tree.h and ipa-utils.h
30834 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
30835 (free_lang_data_in_cgraph): Call verify_type.
30836 (verify_type_variant): New function.
30837 (verify_type): New function.
30838 * tree.h (verify_type): Declare.
30840 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
30842 * config/mips/mips-cpus.def: (mips4): Change default processor
30843 from PROCESSOR_R8000 to PROCESSOR_R10000.
30845 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
30847 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
30848 la/jalr instead of jal.
30850 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
30853 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
30854 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
30855 (setcc+movzbl peephole2): Check also clobbered reg.
30856 (setcc+andl peephole2): Ditto.
30858 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
30861 * config/nvptx/mkoffload.c (target_ilp32): New variable.
30862 (main): Set it depending on "-foffload-abi=[...]".
30863 (compile_native, main): Use it to pass "-m32" or "-m64" to the
30866 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
30869 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
30870 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
30871 Flip lane index back at assembly time for bigendian.
30873 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
30875 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
30876 * gimplify.c (gimplify_omp_workshare): Use it.
30878 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30880 * Makefile.in (build/genrecog.o): Depend on inchash.h.
30881 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
30883 * genrecog.c: Rewrite most of the code except for the third page.
30885 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30887 * inchash.h, inchash.c: Include bconfig.h for build objects.
30888 * Makefile.in (build/inchash.o): New rule.
30890 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
30893 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
30894 number in type attribute expression.
30896 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30898 * loop-iv.c (canon_condition): Generalize to all types of integer
30901 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
30903 * gimple-walk.c: Prune duplicate or unneeded includes.
30904 (walk_gimple_asm): Only call parse_input_constraint or
30905 parse_output_constraint if their findings are used.
30906 Honour parse_input_constraint and parse_output_constraint
30909 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
30911 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
30913 2015-04-29 Tom de Vries <tom@codesourcery.com>
30915 PR tree-optimization/65893
30916 * passes.def (pass_all_optimizations): Move pass_stdarg to after
30919 2015-04-29 Richard Biener <rguenther@suse.de>
30921 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
30922 compute GROUP_SIZE for basic-block SLP.
30923 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
30924 take into account gaps.
30925 (vect_get_mask_element): Properly reject references to previous
30927 (vect_transform_slp_perm_load): Likewise.
30929 2015-04-29 Christian Bruel <christian.bruel@st.com>
30932 * config/i386/i386.c (ix86_default_align): New function.
30933 (ix86_override_options_after_change): Call ix86_default_align.
30934 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
30935 (ix86_override_options_after_change): New function.
30937 2015-04-28 Jeff Law <law@redhat.com>
30939 * tree-ssa-dom.c (record_equality); Fix comment typos.
30941 2015-04-28 Tom de Vries <tom@codesourcery.com>
30943 PR tree-optimization/65887
30944 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
30946 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
30948 * doc/extend.texi (Declaring Attributes of Functions): Split into
30949 subsections by target. Alphabetize the table of common attributes.
30950 Rewrite some of the introductory text to reflect the new structure.
30951 Update some cross-references to point to the new subsections.
30952 (Attribute Syntax): Put paragraph about "__" naming here. Remove
30953 duplicate copies in the discussion of function, label, and type
30956 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
30959 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
30961 2015-04-28 Jason Merrill <jason@redhat.com>
30964 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
30965 (finalize_type_size): Respect TYPE_USER_ALIGN.
30966 (layout_type) [ARRAY_TYPE]: Likewise.
30968 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
30970 * config/arm/arm.md (*arm_movt): Fix type attribute.
30971 (*cmpsi_shiftsi): Likewise.
30972 (*cmpsi_shiftsi_swp): Likewise.
30973 (*movsicc_insn): Likewise.
30974 (*cond_move): Likewise.
30975 (*if_plus_move): Likewise.
30976 (*if_move_plus): Likewise.
30977 (*if_arith_move): Likewise.
30978 (*if_move_arith): Likewise.
30979 (*if_shift_move): Likewise.
30980 (*if_move_shift): Likewise.
30981 (*arm_movtas_ze): Likewise.
30982 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
30983 redundancy and type attribute.
30984 (*thumb2_movsi_insn): Fix type attribute.
30985 (*thumb2_addsi_short): Likewise.
30986 (thumb2_addsi3_compare0): Likewise.
30987 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
30988 attributes accordingly.
30990 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
30993 * function.c (pad_to_arg_alignment): Add parentheses.
30995 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
30997 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
30998 libgcc/config/frv/elf-lib.h.
31000 2015-04-28 Tom de Vries <tom@codesourcery.com>
31002 * tree-call-cdce.c: Fix example in header comment.
31004 2015-04-28 Richard Biener <rguenther@suse.de>
31006 PR tree-optimization/62283
31007 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
31008 fails fatally and we are vectorizing a basic-block simply
31009 cause the child to be constructed piecewise.
31010 (vect_analyze_slp_cost_1): Adjust.
31011 (vect_detect_hybrid_slp_stmts): Likewise.
31012 (vect_bb_slp_scalar_cost): Likewise.
31013 (vect_get_constant_vectors): For piecewise constructed
31014 constants place them after the last def.
31015 (vect_get_slp_defs): Adjust.
31016 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
31017 externals for basic-block vectorization.
31019 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
31022 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
31024 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
31025 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
31026 (AARCH64_TUNE_FMA_STEERING): Likewise.
31027 * config/aarch64/aarch64-cores.def: Set
31028 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
31029 FMUL/FMADD instructions.
31030 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
31031 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
31032 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
31033 * config/aarch64/cortex-a57-fma-steering.h: New file.
31034 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
31036 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
31038 * gensupport.c (std_preds): Add missing codes to address_operand entry.
31040 2015-04-28 Richard Biener <rguenther@suse.de>
31042 PR tree-optimization/65851
31043 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
31044 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
31045 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
31046 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
31047 (ccp_visit_phi_node): Adjust.
31048 (evaluate_stmt): For simplifications to SSA names return its
31049 lattice value if that isn't VARYING. Return immediately when
31050 simplified to a constant.
31051 (visit_assignment): Adjust.
31052 (ccp_visit_stmt): Likewise.
31054 2015-04-28 Tom de Vries <tom@codesourcery.com>
31056 PR tree-optimization/65818
31057 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
31060 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31062 * calls.c (save_fixed_argument_area): Don't check
31063 ARGS_GROW_DOWNWARD with the preprocessor.
31064 (restore_fixed_argument_area): Likewise.
31065 (mem_overlaps_already_clobbered_arg_p): Likewise.
31066 (check_sibcall_argument_overlap): Likewise.
31067 (expand_call): Likewise.
31068 (emit_library_call_value_1): Likewise.
31069 (store_one_arg): Likewise.
31070 * function.c (assign_parms): Likewise.
31071 (locate_and_pad_parm): Likewise.
31072 (pad_to_arg_alignment): Likewise.
31073 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31075 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31077 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
31078 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
31079 * calls.c (save_fixed_argument_area): Don't chekc if
31080 ARGS_GROW_DOWNWARD is defined.
31081 (restore_fixed_argument_area): Likewise.
31082 (mem_overlaps_already_clobbered_arg_p): Likewise.
31083 (check_sibcall_argument_overlap): Likewise.
31084 (expand_call): Likewise.
31085 (emit_library_call_value_1): Likewise.
31086 (store_one_arg): Likewise.
31087 * function.c (assign_parms): Likewise.
31088 (locate_and_pad_parm): Likewise.
31089 (pad_to_arg_alignment): Likewise.
31090 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31092 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31094 * defaults.h (gen_epilogue): New function.
31095 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
31097 * cfgrtl.c (cfg_layout_finalize): Likewise.
31098 * df-scan.c: Likewise.
31099 * function.c (thread_prologue_and_epilogue_insns): Likewise.
31100 (reposition_prologue_and_epilogue_notes): Likewise.
31101 * reorg.c (find_end_label): Likewise.
31102 * toplev.c: Likewise.
31104 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31106 * bb-reorder.c (HAVE_return): Don't check if its undefined.
31107 * defaults.h (gen_simple_return): New function.
31108 (gen_simple_return): Likewise.
31109 (HAVE_return): Add default definition to false.
31110 (HAVE_simple_return): Likewise.
31111 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
31112 HAVE_return and HAVE_simple_return are defined.
31113 * function.c (gen_return_pattern): Likewise.
31114 (convert_jumps_to_returns): Likewise.
31115 (thread_prologue_and_epilogue_insns): Likewise.
31116 * reorg.c (find_end_label): Likewise.
31117 (dbr_schedule): Likewise.
31118 * shrink-wrap.c: Likewise.
31119 * shrink-wrap.h: Likewise.
31121 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31123 * defaults.h (EPILOGUE_USES): Add default definition of false.
31124 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
31125 * resource.c (init_resource_info): Likewise.
31127 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31129 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
31131 * dwarf2out.c (field_byte_offset): REmove check if
31132 PCC_BITFIELD_TYPE_MATTERS is defined.
31133 * stor-layout.c (layout_decl): Likewise.
31134 (update_alignment_for_field): Likewise.
31135 (place_field): Likewise.
31137 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31139 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
31141 * regrename.c (check_new_reg_p): Remove check if
31142 HARD_REGNO_RENAME_OK is defined.
31143 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
31145 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31147 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
31148 * cse.c (fold_rtx): Likewise.
31149 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
31150 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
31151 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
31152 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
31153 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
31154 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
31155 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
31156 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
31157 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
31158 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
31160 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
31161 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
31162 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
31163 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
31164 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
31165 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
31166 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
31167 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
31168 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
31169 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
31170 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
31171 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
31172 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
31173 * doc/tm.texi: Regenerate.
31174 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
31175 either true or false.
31177 2015-04-27 Jeff Law <law@redhat.com>
31179 PR tree-optimization/65217
31180 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
31181 of them has a single use, make sure it is the LHS of the implied
31184 2015-04-28 Alan Modra <amodra@gmail.com>
31187 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
31188 (offsettable_ok_by_alignment): Use minimum of decl and toc
31189 pointer alignment. Replace dead code with assertion.
31190 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
31191 case if size exceeds toc pointer alignment.
31192 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
31193 (rs6000_emit_move): Likewise.
31194 * configure.ac: Add linker toc pointer alignment check.
31195 * configure: Regenerate.
31196 * config.in: Regenerate.
31198 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
31200 * config.gcc: Add h8300-*-linux.
31201 * config/h8300/linux.h: New.
31202 * config/h8300/t-linux: New.
31203 * config/h8300/h8300.c (h8300_option_override): Normal mode
31204 is not supported for h8300-*-linux.
31205 (h8300_file_start): Target priority change.
31206 (get_shift_alg): Likewise.
31207 (h8300_shift_need_scratch_p): Likewise.
31208 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
31209 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
31211 2015-04-27 Caroline Tice <cmtice@google.com>
31213 * final.c (final_scan_insn): Output cold_function_name as function
31215 * varasm.c (cold_function_name): Make global.
31216 (assemble_start_function): Re-set cold_function_name.
31217 (assemble_end_function): Output cold partition size.
31218 * varasm.h (cold_function_name): Declare global.
31220 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
31222 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
31223 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
31225 (*movxi_internal_avx512f): Ditto.
31226 (define_split): Check for xmm16+, when splitting scalar float_extend.
31227 (*extendsfdf2_mixed): Use "v" constraint.
31228 (define_split): Check for xmm16+, when splitting scalar float_truncate.
31229 (*truncdfsf_fast_sse): Use "v" constraint.
31230 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
31231 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
31232 (define_peephole2): Check for xmm16+, when converting scalar
31234 (define_peephole2): Check for xmm16+, when converting scalar
31236 (*fop_<mode>_comm_mixed): Use "v" constraint.
31237 (*fop_<mode>_comm_sse): Ditto.
31238 (*fop_<mode>_1_mixed): Ditto.
31239 (*sqrt<mode>2_sse): Ditto.
31240 (*ieee_s<ieee_maxmin><mode>3): Ditto.
31242 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31244 * combine.c (simplify_if_then_else): Use std::swap instead
31245 of manually swapping.
31246 (known_cond): Likewise.
31247 (simplify_comparison): Likewise.
31249 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
31252 * config/rs6000/htm.md: Remove all define_expands.
31253 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
31254 UNSPECV_HTM_TABORTWCI): Remove.
31255 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
31256 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
31257 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
31258 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
31259 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
31260 tabortwci_internal): Remove define_insns.
31261 (tabort<wd>c, tabort<wd>ci): New define_insns.
31262 (tabort): Use gpc_reg_operand.
31263 (tcheck): Remove operand.
31264 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
31265 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
31267 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
31268 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
31269 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
31270 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
31271 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
31272 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
31273 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
31274 (tcheck): Remove builtin argument.
31275 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
31277 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
31278 tabortdc and tabortdci builtins when not in 64-bit mode.
31279 Modify code to handle the loss of the HTM define_expands.
31280 Emit code to copy the CR register to TARGET.
31281 (htm_init_builtins): Modify code to handle the loss of the HTM
31283 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
31284 (RS6000_BTC_64BIT): Likewise.
31285 (RS6000_BTC_CR): New macro.
31286 * doc/extend.texi: Update documentation for htm builtins.
31288 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31290 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
31291 of manually swapping.
31292 (simplify_associative_operation): Likewise.
31293 (simplify_binary_operation): Likewise.
31294 (simplify_plus_minus): Likewise.
31295 (simplify_relational_operation): Likewise.
31296 (simplify_ternary_operation): Likewise.
31298 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
31300 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
31301 (xs_hi_nonmemory_operand): Remove error.
31302 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
31303 general_operand rather than xs_hi_general_operand.
31305 2015-04-27 Richard Biener <rguenther@suse.de>
31307 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
31308 (record_equivalences_from_stmt): Valueize rhs.
31309 (record_equality): Canonicalize x and y order via
31310 tree_swap_operands_p. Do not swap operands for same loop depth.
31312 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
31316 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
31317 Add hint how to use own spec file.
31319 2015-04-27 Jakub Jelinek <jakub@redhat.com>
31321 PR tree-optimization/65875
31322 * tree-vrp.c (update_value_range): If in is_new case setting
31323 old_vr to VR_VARYING, also set new_vr to it. Remove
31324 old_vr->type == VR_VARYING test.
31325 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
31326 SSA_PROP_INTERESTING if update_value_range returned true,
31327 but new range is VR_VARYING.
31329 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
31331 * combine.c (sign_extend_short_imm): New.
31332 (set_nonzero_bits_and_sign_copies): Use above new function for sign
31333 extension of src short immediate.
31334 (reg_nonzero_bits_for_combine): Likewise for tem.
31336 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
31338 * stor-layout.c (self_referential_component_ref_p): New predicate.
31339 (copy_self_referential_tree_r): Use it.
31340 (self_referential_size): Punt for simple operations directly involving
31341 self-referential component references.
31342 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
31344 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
31346 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
31348 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
31350 * vec.h (vec): Make splice arguments const. Update definitions
31353 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
31355 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
31358 2015-04-26 Tom de Vries <tom@codesourcery.com>
31360 PR tree-optimization/65826
31361 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
31363 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
31365 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
31366 (*madd3<mode>): Ditto.
31367 (*msub4<mode>): Ditto.
31368 (*msub3<mode>): Ditto.
31369 (*nmadd4<mode>): Ditto.
31370 (*nmadd3<mode>): Ditto.
31371 (*nmadd4<mode>_fastmath): Ditto.
31372 (*nmadd3<mode>_fastmath): Ditto.
31373 (*nmsub4<mode>): Ditto.
31374 (*nmsub3<mode>): Ditto.
31375 (*nmsub4<mode>_fastmath): Ditto.
31376 (*nmsub3<mode>_fastmath): Ditto.
31378 2015-04-24 Jason Merrill <jason@redhat.com>
31381 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
31382 down when building TYPE_CANONICAL.
31383 (build_pointer_type_for_mode): Likewise.
31385 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
31387 * genrecog.c (validate_pattern): Check matching constraint refers
31388 to a lower numbered operand.
31390 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
31393 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
31394 save to independent variables use the Save attribute. This will
31395 allow these options to be modified with the #pragma/attribute
31397 (-mallow-movmisalign): Likewise.
31398 (-mallow-df-permute): Likewise.
31399 (-msched-groups): Likewise.
31400 (-malways-hint): Likewise.
31401 (-malign-branch-targets): Likewise.
31402 (-mvectorize-builtins): Likewise.
31403 (-msave-toc-indirect): Likewise.
31405 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
31406 can be set via the #pragma/attribute target support.
31407 (rs6000_opt_vars): Likewise.
31408 (rs6000_inner_target_options): If VSX was set, also set
31409 -mno-avoid-indexed-addresses.
31411 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31413 * config/arm/iterators.md (shiftable_ops): Rename to...
31414 (SHIFTABLE_OPS): ... This. Update use in comments.
31415 (ior_xor): Rename to...
31416 (IOR_XOR): ... This.
31417 (vqh_ops): Rename to...
31418 (VQH_OPS): ... This.
31419 (vqhs_ops): Rename to...
31420 (VQHS_OPS): ... This.
31421 (rshifts): Rename to...
31422 (RSHIFTS): ... This.
31423 (returns): Rename to...
31424 (RETURNS): ... This.
31425 * config/arm/arm.md: Update uses of the above.
31426 * config/arm/neon.md: Likewise.
31428 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31430 * config.host (case ${host}): Add aarch64*-*-linux case.
31431 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
31432 fields to all the cores.
31433 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
31434 Add MCPU_MTUNE_NATIVE_SPECS.
31435 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
31436 field to all extensions.
31437 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
31438 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
31439 Adjust definition of AARCH64_OPT_EXTENSION.
31440 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
31441 (MCPU_MTUNE_NATIVE_SPECS): Define.
31442 * config/aarch64/driver-aarch64.c: New file.
31443 * config/aarch64/x-arch64: New file.
31444 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
31447 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31448 Wei Mi <wmi@google.com>
31450 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
31451 * config/i386/i386.c (extract_base_offset_in_addr): New function.
31452 (ix86_operands_ok_for_move_multiple): Ditto.
31453 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
31454 (movlpd/movhpd to movupd peephole2): Ditto.
31456 2015-04-24 Marek Polacek <polacek@redhat.com>
31459 * input.h (from_macro_expansion_at): Define.
31462 * doc/invoke.texi: Update description of -Wlogical-op.
31464 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31466 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
31467 ternary operator in fprintf and harmonize spacing.
31469 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31471 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
31472 Mark operand1 commutative.
31474 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31476 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
31477 input operands in memory.
31478 (*vec_concatv2si_sse4_1): Ditto.
31479 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
31480 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
31482 (vec_extract_hi_v32hi): Ditto.
31483 (vec_extract_hi_v64hi): Ditto.
31484 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
31486 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31487 Steven Bosscher <steven@gcc.gnu.org>
31489 PR rtl-optimization/34503
31490 * cprop.c (cprop_reg_p): New.
31491 (hash_scan_set): Use above function to check if register can be
31493 (find_avail_set): Return up to two sets, one whose source is a
31494 register and one whose source is a constant. Sets are returned in an
31495 array passed as parameter rather than as a return value.
31496 (cprop_insn): Use a do while loop rather than a goto. Try each of the
31497 sets returned by find_avail_set, starting with the one whose source is
31498 a constant. Use cprop_reg_p to check if register can be propagated.
31499 (do_local_cprop): Use cprop_reg_p to check if register can be
31501 (implicit_set_cond_p): Likewise.
31503 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31505 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
31506 (sem_function::equals): IGNORED_NODES parameter is now unused;
31507 update call of equals_private.
31508 (sem_function::equals_private): Do not call equals_wpa; skip
31509 gimple body matching if there is no body.
31510 (sem_function::init): Add logic to hash tthunk info.
31511 (sem_function::parse): Also parse thunks.
31512 * ipa-icf.h (equals_private): Update declaration.
31514 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31516 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
31517 asterisk from name so this can be generated directly.
31518 (*altivec_stvx_<mode>_internal): Likewise.
31519 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
31520 that this is never called during or after reload/lra.
31521 (rs6000_frame_related): Remove split_reg
31522 argument and logic that references it.
31523 (emit_frame_save): Remove last parameter from call to
31524 rs6000_frame_related.
31525 (rs6000_emit_prologue): Remove last parameter from eight calls to
31526 rs6000_frame_related. Force generation of stvx instruction for
31527 Altivec register saves. Remove split_reg handling, which is no
31529 (rs6000_emit_epilogue): Force generation of lvx instruction for
31530 Altivec register restores.
31532 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31534 * config/rs6000/rs6000.opt (mcrypto): Change option description to
31535 match category changes in ISA 2.07B.
31537 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31539 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
31541 (cmp_op, cmp_type): New code attributes.
31542 (NEON_VCMP, NEON_VACMP): New int iterators.
31543 (cmp_op_unsp): New int attribute.
31544 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
31545 (neon_vceq<mode>): Delete.
31546 (neon_vc<cmp_op><mode>_insn): New pattern.
31547 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
31548 (neon_vcgeu<mode>): Delete.
31549 (neon_vcle<mode>): Likewise.
31550 (neon_vclt<mode>: Likewise.
31551 (neon_vcage<mode>): Likewise.
31552 (neon_vcagt<mode>): Likewise.
31553 (neon_vca<cmp_op><mode>): New define_expand.
31554 (neon_vca<cmp_op><mode>_insn): New pattern.
31555 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
31557 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31559 * tree.h (attribute_value_equal): Declare.
31560 * tree.c (attribute_value_equal): Export.
31562 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31564 * ipa-icf.c (sem_item::compare_attributes): New function.
31565 (sem_item::compare_referenced_symbol_properties): Compare variable
31567 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
31568 (sem_function::param_used_p): New function.
31569 (sem_function::equals_wpa): Fix attribute comparsion; match
31570 parameter type codes; do not compare paremter flags when
31571 they are not used; compare edge flags; compare indirect calls.
31572 (sem_item::update_hash_by_addr_refs): Hash reference type.
31573 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
31574 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
31575 reference use type.
31576 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
31577 * ipa-icf.h (compare_attributes, param_used_p): Declare.
31579 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31581 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
31583 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
31584 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
31585 (sem_item::compare_referenced_symbol_properties): New.
31586 (sem_item::hash_referenced_symbol_properties): New.
31587 (sem_item::compare_cgraph_references): Rename to ...
31588 (sem_item::compare_symbol_references): ... this one; use
31589 compare_referenced_symbol_properties.
31590 (sem_function::equals_wpa): Do not compare
31591 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
31592 DECL_IS_OPERATOR_NEW; compare pointer sizes.
31593 (sem_item::update_hash_by_addr_refs): Call
31594 hash_referenced_symbol_properties.
31595 (sem_item::update_hash_by_local_refs): Cleanup.
31596 (sem_function::merge): Do not mix up symbol properties.
31597 (sem_variable::equals_wpa): Use compare_symbol_references.
31598 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
31599 (sem_item::hash_referenced_symbol_properties): New.
31600 (sem_item::compare_symbol_references): New.
31601 (sem_item::compare_cgraph_references): Remove.
31603 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
31606 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
31607 Emit size of local.
31609 2015-04-23 Nick Clifton <nickc@redhat.com>
31611 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
31612 ATTRIBUTE_UNUSED to x parameter.
31613 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
31615 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31617 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
31618 TARGET_CRYPTO to TARGET_P8_VECTOR>
31619 (crypto_vpermxor_<mode>): Likewise.
31620 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
31621 (BU_CRYPTO_3A): Likewise.
31622 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
31623 (BU_CRYPTO_OVERLOAD_3A): New #define.
31624 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
31625 (VPMSUMH): Likewise.
31626 (VPMSUMW): Likewise.
31627 (VPMSUMD): Likewise.
31628 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
31629 (VPERMXOR_V4SI): Likewise.
31630 (VPERMXOR_V8HI): Likewise.
31631 (VPERMXOR_V16QI): Likewise.
31632 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
31633 BU_CRYPTO_OVERLOAD_2A.
31634 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
31635 BU_CRYPTO_OVERLOAD_3A.
31636 * config/rs6000/rs6000.opt (mcrypto): Change description of
31639 2015-04-23 Richard Biener <rguenther@suse.de>
31641 * passes.def: Remove copy propagation passes run directly after CCP.
31642 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
31644 (ccp_visit_phi_node): Rework to handle first executable edge
31647 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
31649 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31650 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31651 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31652 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
31653 (thumb_legimitimize_reload_address): Remove.
31654 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
31656 (thumb_legimitimize_reload_address): Remove.
31658 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31660 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
31662 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31664 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
31666 (store_multiple): Likewise.
31668 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31670 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
31671 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
31672 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
31673 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
31674 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
31675 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
31676 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
31677 Specify issue_rate value.
31678 (arm_issue_rate): Look up issue rate from tuning structs. Remove
31679 large switch statement.
31680 (arm_marvell_pj4_tune): New struct.
31681 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
31684 2015-04-23 Richard Biener <rguenther@suse.de>
31686 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
31687 (vect_find_last_store_in_slp_instance): Rename to ...
31688 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
31689 (vect_analyze_slp_cost_1): Use vector_load for constant defs
31690 and vec_construct for external defs when estimating prologue cost.
31691 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
31692 Compute costs here only when vectorizing loops.
31693 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
31694 have been determined.
31695 (vect_schedule_slp_instance): Simplify vectorized code placement
31696 and prepare for in-BB external defs.
31697 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
31698 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
31699 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
31701 (vect_model_load_cost): Likewise.
31702 (vectorizable_store): Instead add it here.
31703 (vectorizable_load): Likewise.
31704 (vect_is_simple_use): Dump def type textually.
31706 2015-04-23 Richard Biener <rguenther@suse.de>
31708 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
31709 * cfgloop.c (verify_loop_structure): Verify the root loop node.
31710 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
31711 instead of get_eh_region_from_lp_number.
31712 * loop-init.c (fix_loop_structure): If we removed a loop, reset
31715 2015-04-23 Anton Blanchard <anton@samba.org>
31717 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
31718 need for -mprofile-kernel to save LR to stack.
31720 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31722 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
31724 (insn_is_swappable_p): Return 1 for a convert from double to
31725 single precision when all of its uses are splats of BE element
31728 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
31730 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
31732 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31735 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
31736 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
31737 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
31739 (rs6000_builtin_mask_for_load): Return 0 for targets with
31740 efficient unaligned VSX accesses so that the vectorizer will use
31741 direct unaligned loads.
31742 (rs6000_builtin_support_vector_misalignment): Always return true
31743 for targets with efficient unaligned VSX accesses.
31744 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
31745 stores on targets with efficient unaligned VSX accesses is almost
31746 always the same as the cost of an aligned load or store, so model
31748 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
31749 unaligned vectors if we have efficient unaligned VSX accesses.
31750 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
31751 undocumented option.
31753 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31756 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
31758 * config.gcc (LIBC_MUSL): New tm_defines macro.
31759 * config/linux.h (OPTION_MUSL): Define.
31760 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31761 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31762 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31764 * config/linux.opt (mmusl): New option.
31765 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31766 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31768 * configure: Regenerate.
31770 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
31772 * config.gcc (LIBC_MUSL): New tm_defines macro.
31773 * config/linux.h (OPTION_MUSL): Define.
31774 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31775 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31776 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31778 * config/linux.opt (mmusl): New option.
31779 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31780 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31782 * configure: Regenerate.
31784 2015-04-22 Yury Gribov <y.gribov@samsung.com>
31786 * doc/invoke.texi (-fsanitize-sections): Update description.
31787 * asan.c (set_sanitized_sections): Parse incoming arg.
31788 (section_sanitized_p): Support wildcards.
31790 2015-04-22 Tom de Vries <tom@codesourcery.com>
31792 PR tree-optimization/65823
31793 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
31794 equality between ap_copy and ap.
31796 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31799 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
31801 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31804 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
31806 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31809 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
31810 remove already contained t-files.
31812 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31814 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
31815 Remove unneeded forward declarations.
31816 (suitable_for_tail_call_opt_p): Commentary typo fix.
31818 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31820 * varasm.c (emit_bss): Remove redundant guard.
31822 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31824 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
31826 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31828 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
31830 2015-04-22 Hale Wang <hale.wang@arm.com>
31831 Terry Guo <terry.guo@arm.com>
31833 PR rtl-optimization/64818
31834 * combine.c (can_combine_p): Don't combine user-specified
31835 register if it is in an asm input.
31837 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
31840 * passes.def (early_optimizations): Add pass_dse.
31842 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31844 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
31845 * reorg.c (redundant_insn): Remove ifdef
31846 INSN_REFERENCES_ARE_DELAYED.
31847 * resource.c (mark_referenced_resources): Likewise.
31849 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31851 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
31852 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
31853 * resource.c (mark_set_resources): Likewise.
31855 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31857 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
31858 * cfgcleanup.c (flow_find_cross_jump): Likewise.
31859 (flow_find_head_matching_sequence): Likewise.
31860 (try_head_merge_bb): Likewise.
31861 * combine.c (can_combine_p): Likewise.
31862 (try_combine): Likewise.
31863 (distribute_notes): Likewise.
31864 * df-problems.c (can_move_insns_across): Likewise.
31865 * final.c (final): Likewise.
31866 * gcse.c (insert_insn_end_basic_block): Likewise.
31867 * ira.c (find_moveable_pseudos): Likewise.
31868 * reorg.c (try_merge_delay_insns): Likewise.
31869 (fill_simple_delay_slots): Likewise.
31870 (fill_slots_from_thread): Likewise.
31871 * sched-deps.c (sched_analyze_2): Likewise.
31873 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31875 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
31876 PIC_OFFSET_TABLE_REGNUM.
31878 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31880 * alias.c (init_alias_target): Remove ifdef
31881 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
31882 * df-scan.c (df_insn_refs_collect): Likewise.
31883 (df_get_regular_block_artificial_uses): Likewise.
31884 (df_get_eh_block_artificial_uses): Likewise.
31885 (df_get_entry_block_def_set): Likewise.
31886 (df_get_exit_block_use_set): Likewise.
31887 * emit-rtl.c (gen_rtx_REG): Likewise.
31888 * ira.c (ira_setup_eliminable_regset): Likewise.
31889 * reginfo.c (init_reg_sets_1): Likewise.
31890 * regrename.c (rename_chains): Likewise.
31891 * reload1.c (reload): Likewise.
31892 (eliminate_regs_in_insn): Likewise.
31893 * resource.c (mark_referenced_resources): Likewise.
31894 (init_resource_info): Likewise.
31896 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31898 * defaults.h (MASK_RETURN_ADDR): New definition.
31899 * except.c (expand_builtin_extract_return_addr): Remove ifdef
31902 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31904 * defaults.h (RETURN_ADDR_OFFSET): New definition.
31905 * except.c (expand_builtin_extract_return_addr): Remove ifdef
31906 RETURN_ADDR_OFFSET.
31907 (expand_builtin_frob_return_addr): Likewise.
31909 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31911 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
31912 (try_redirect_by_replacing_jump): Likewise.
31913 (rtl_tidy_fallthru_edge): Likewise.
31914 * combine.c (insn_a_feeds_b): Likewise.
31915 (find_split_point): Likewise.
31916 (simplify_set): Likewise.
31917 * cprop.c (cprop_jump): Likewise.
31918 * cse.c (cse_extended_basic_block): Likewise.
31919 * df-problems.c (can_move_insns_across): Likewise.
31920 * function.c (emit_use_return_register_into_block): Likewise.
31921 * haifa-sched.c (sched_init): Likewise.
31922 * ira.c (find_moveable_pseudos): Likewise.
31923 * loop-invariant.c (find_invariant_insn): Likewise.
31924 * lra-constraints.c (curr_insn_transform): Likewise.
31925 * postreload.c (reload_combine_recognize_const_pattern):
31927 * reload.c (find_reloads): Likewise.
31928 * reorg.c (delete_scheduled_jump): Likewise.
31929 (steal_delay_list_from_target): Likewise.
31930 (steal_delay_list_from_fallthrough): Likewise.
31931 (redundant_insn): Likewise.
31932 (fill_simple_delay_slots): Likewise.
31933 (fill_slots_from_thread): Likewise.
31934 (delete_computation): Likewise.
31935 * sched-rgn.c (add_branch_dependences): Likewise.
31937 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31939 * genconfig.c (main): Always define HAVE_cc0.
31940 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
31942 * cfgcleanup.c (flow_find_cross_jump): Likewise.
31943 (flow_find_head_matching_sequence): Likewise.
31944 (try_head_merge_bb): Likewise.
31945 * cfgrtl.c (rtl_merge_blocks): Likewise.
31946 (try_redirect_by_replacing_jump): Likewise.
31947 (rtl_tidy_fallthru_edge): Likewise.
31948 * combine.c (do_SUBST_MODE): Likewise.
31949 (insn_a_feeds_b): Likewise.
31950 (combine_instructions): Likewise.
31951 (can_combine_p): Likewise.
31952 (try_combine): Likewise.
31953 (find_split_point): Likewise.
31955 (simplify_set): Likewise.
31956 (distribute_notes): Likewise.
31957 * cprop.c (cprop_jump): Likewise.
31958 * cse.c (cse_extended_basic_block): Likewise.
31959 * df-problems.c (can_move_insns_across): Likewise.
31960 * final.c (final): Likewise.
31961 (final_scan_insn): Likewise.
31962 * function.c (emit_use_return_register_into_block): Likewise.
31963 * gcse.c (insert_insn_end_basic_block): Likewise.
31964 * haifa-sched.c (sched_init): Likewise.
31965 * ira.c (find_moveable_pseudos): Likewise.
31966 * loop-invariant.c (find_invariant_insn): Likewise.
31967 * lra-constraints.c (curr_insn_transform): Likewise.
31968 * optabs.c (prepare_cmp_insn): Likewise.
31969 * postreload.c (reload_combine_recognize_const_pattern):
31971 * reload.c (find_reloads): Likewise.
31972 (find_reloads_address_1): Likewise.
31973 * reorg.c (delete_scheduled_jump): Likewise.
31974 (steal_delay_list_from_target): Likewise.
31975 (steal_delay_list_from_fallthrough): Likewise.
31976 (try_merge_delay_insns): Likewise.
31977 (redundant_insn): Likewise.
31978 (fill_simple_delay_slots): Likewise.
31979 (fill_slots_from_thread): Likewise.
31980 (delete_computation): Likewise.
31981 (relax_delay_slots): Likewise.
31982 * sched-deps.c (sched_analyze_2): Likewise.
31983 * sched-rgn.c (add_branch_dependences): Likewise.
31985 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31987 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
31988 that is trivially ded on non cc0 targets.
31989 (simplify_set): Likewise.
31990 (mark_used_regs_combine): Likewise.
31991 * cse.c (new_basic_block): Likewise.
31992 (fold_rtx): Likewise.
31993 (cse_insn): Likewise.
31994 (cse_extended_basic_block): Likewise.
31995 (set_live_p): Likewise.
31996 * rtlanal.c (canonicalize_condition): Likewise.
31997 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
31999 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32001 * conditions.h: Define macros even if HAVE_cc0 is undefined.
32002 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
32003 * final.c: Likewise.
32004 * jump.c: Likewise.
32005 * recog.c: Likewise.
32006 * recog.h: Declare functions even when HAVE_cc0 is undefined.
32007 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
32009 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32011 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
32012 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
32013 * builtins.c (expand_builtin): Remove check if
32014 EH_RETURN_DATA_REGNO is defined.
32015 * df-scan.c (df_bb_refs_collect): Likewise.
32016 (df_get_exit_block_use_set): Likewise.
32017 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
32018 * ira-lives.c (process_bb_node_lives): Likewise.
32019 * lra-lives.c (process_bb_lives): Likewise.
32021 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
32023 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
32024 FIRST_PSEUDO_REG): New.
32025 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
32026 (ARG_POINTER_REGNUM): Define to ARGP_REG.
32027 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
32028 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
32029 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
32030 (FIRST_INT_REG): New.
32031 (LAST_INT_REG): New.
32032 (FIRST_*_REG): Define using *_REG.
32033 (LAST_*_REG): Ditto.
32034 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
32035 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
32036 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
32038 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32040 * expmed.c: (synth_mult): Only assume overlapping
32041 shift with previous steps in alg_sub_t_m2 case.
32043 2015-04-21 Richard Biener <rguenther@suse.de>
32045 PR tree-optimization/65650
32046 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
32047 transitions involving copies.
32048 (set_lattice_value): Adjust for copy lattice state.
32049 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
32050 if that doesn't dominate the merge point.
32051 (bit_value_unop): Adjust what we treat as varying mask.
32052 (bit_value_binop): Likewise.
32053 (bit_value_assume_aligned): Likewise.
32054 (evaluate_stmt): When we simplified to a SSA name record a copy
32055 instead of dropping to varying.
32056 (visit_assignment): Simplify.
32058 * gimple-match.h (gimple_simplify): Add another callback.
32059 * gimple-fold.c (fold_stmt_1): Adjust caller.
32060 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
32061 for the 2nd callback.
32062 * gimple-match-head.c (gimple_simplify): Add a callback that is
32063 used to valueize the stmt operands and use it that way.
32065 2015-04-21 Richard Biener <rguenther@suse.de>
32067 PR tree-optimization/65788
32068 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
32070 2015-04-21 Richard Biener <rguenther@suse.de>
32072 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
32073 vec_construct cost by vec_stmt_cost.
32075 2015-04-21 Richard Biener <rguenther@suse.de>
32077 * cfghooks.h (create_basic_block): Replace with two overloads
32078 for RTL and GIMPLE.
32079 (split_block): Likewise.
32080 * cfghooks.c (split_block): Rename to ...
32081 (split_block_1): ... this.
32082 (split_block): Add two type-safe overloads for RTL and GIMPLE.
32083 (split_block_after_labels): Call split_block_1.
32084 (create_basic_block): Rename to ...
32085 (create_basic_block_1): ... this.
32086 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
32087 (create_empty_bb): Call create_basic_block_1.
32088 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
32089 split_block_after_labels.
32090 * omp-low.c (expand_parallel_call): Likewise.
32091 (expand_omp_target): Likewise.
32092 (simd_clone_adjust): Likewise.
32093 * tree-chkp.c (chkp_get_entry_block): Likewise.
32094 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
32095 create_basic_block overload.
32096 (cgraph_node::expand_thunk): Likewise.
32097 * tree-cfg.c (make_blocks): Likewise.
32098 (handle_abnormal_edges): Likewise.
32099 * tree-inline.c (copy_bb): Likewise.
32101 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32103 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
32105 (*xor_one_cmplsidi3_ze): Likewise.
32107 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
32109 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
32110 use df_remove_problem rather than manually removing problems, leaving
32111 holes in df->problems_in_order[].
32113 2015-04-21 Tom de Vries <tom@codesourcery.com>
32115 PR tree-optimization/65802
32116 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
32118 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32120 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
32122 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
32123 at '.'. Assert that there's enough space for everything.
32125 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
32127 PR tree-optimization/64950
32129 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
32132 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
32135 2015-04-20 Shiva Chen <shiva0217@gmail.com>
32137 PR rtl-optimization/64916
32138 * cfgcleanup.c (values_equal_p): New function.
32139 (can_replace_by): Use it.
32141 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
32144 * doc/invoke.texi ([-Wnarrowing]): Update.
32146 2015-04-20 Jeff Law <law@redhat.com>
32148 PR tree-optimization/65658
32149 * tree-ssa-threadupdate.c (redirection_block_p): Remove
32150 redundant test for GIMPLE_ASSIGN in last change.
32152 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
32154 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
32155 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
32156 (legitimize_tls_address): Ditto.
32157 (ix86_expand_move): Ditto.
32158 (ix86_expand_binary_operator): Remove reload_in_progress checks.
32159 (ix86_expand_unary_operator): Ditto.
32160 * config/i386/predicates.md (index_register_operand): Ditto.
32162 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
32164 * reorg.c (try_merge_delay_insns): Improve correctness checking
32165 for targets with multiple delay slots.
32167 2015-04-20 Jeff Law <law@redhat.com>
32169 PR tree-optimization/65658
32170 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
32173 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
32175 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
32176 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
32179 2015-04-20 Jakub Jelinek <jakub@redhat.com>
32182 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
32184 2015-04-20 Richard Biener <rguenther@suse.de>
32186 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
32187 * gimple-fold.c (gimple_build_valueize): New function.
32188 (gimple_build): Always use gimple_build_valueize as valueize hook.
32190 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
32193 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
32194 and overwrite variable parts if <= 1/2 the elements are variable.
32196 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
32198 PR rtl-optimization/65805
32199 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
32200 Don't use difference of offset and previous offset if
32201 update_sp_offset is non-zero.
32202 (eliminate_regs_in_insn): Ditto.
32203 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
32204 lra_eliminate_regs_1 call.
32205 * lra-constraints.c (get_equiv_with_elimination): Ditto.
32207 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
32209 * hash-table.h: Remove version of hash_table that stored value_type *.
32210 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
32211 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
32212 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
32213 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
32214 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
32215 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
32216 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
32217 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
32218 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
32219 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
32220 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
32221 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
32222 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
32223 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
32224 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
32225 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
32227 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32228 Jakub Jelinek <jakub@redhat.com>
32231 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
32232 subsequent SH_NONE operand does not overwrite an existing *special
32234 (adjust_extract): Handle case where a vec_extract operation is
32235 wrapped in a PARALLEL.
32237 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
32240 * config/i386/i386.c (ix86_binds_local_p): Define only if
32241 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
32243 2015-04-17 Jeff Law <law@redhat.com>
32245 PR tree-optimization/47679
32246 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
32247 * tree-ssa-scopedtables.c: New file.
32248 * tree-ssa-scopedtables.h: New file.
32249 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
32250 (const_and_copies): Change name/type.
32251 (record_const_or_copy): Move into tree-ssa-scopedtables.c
32252 (record_const_or_copy_1): Similarly.
32253 (restore_vars_to_original_value): Similarly.
32254 (pass_dominator::execute): Create and destroy const_and_copies table.
32255 (thread_across_edge): Update passing of const_and_copies.
32256 (record_temporary_equivalence): Use method calls rather than
32257 manipulating const_and_copies directly.
32258 (record_equality, cprop_into_successor_phis): Similarly.
32259 (dom_opt_dom_walker::before_dom_children): Similarly.
32260 (dom_opt_dom_walker::after_dom_children): Similarly.
32261 (eliminate_redundant_computations): Similarly.
32262 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
32263 (record_temporary_equivalence): Likewise.
32264 (invalidate_equivalences): Likewise.
32265 (record_temporary_equivalences_from_phis): Update due to type
32266 change of const_and_copies. Use method calls rather than
32267 manipulating the stack directly.
32268 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
32269 (thread_through_normal_block, thread_across_edge): Likewise.
32270 (thread_across_edge): Likewise.
32271 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
32272 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
32274 (identify_jump_threads): Update due to type change of equiv_stack.
32275 (finalize_jump_threads): Delete the equiv_stack when complete.
32277 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
32279 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32280 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
32281 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
32283 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
32286 * config.gcc: Exit with a comment when we do not have a major version
32287 number for the FreeBSD target.
32289 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32292 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
32293 maybe_allows_mem bitfields.
32294 (maybe_allows_none_start, maybe_allows_none_end,
32295 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
32296 maybe_allows_mem_end): New variables.
32297 (compute_maybe_allows): New function.
32298 (add_constraint): Use it to initialize maybe_allows_reg and
32299 maybe_allows_mem fields.
32300 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
32301 is_address constraints such that those that allow neither mem nor
32302 reg come first, then those that only allow reg but not mem, then
32303 those that only allow mem but not reg, then the rest.
32304 (write_allows_reg_mem_function): New function.
32305 (write_tm_preds_h): Call it.
32306 * stmt.c (parse_output_constraint, parse_input_constraint): Use
32307 the generated insn_extra_constraint_allows_reg_mem function
32308 instead of always setting *allows_reg = true; *allows_mem = true;
32309 for unknown extra constraints.
32311 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
32314 * output.h (default_binds_local_p_3): New.
32315 * varasm.c (default_binds_local_p_3): Make it public. Take an
32316 argument to indicate if common symbol may be local. If common
32317 symbol may be local, treat non-external variable as defined
32319 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
32320 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
32321 * config/i386/i386.c (ix86_binds_local_p): New.
32322 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
32323 ix86_binds_local_p.
32325 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32328 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
32329 trying mem_loc_descriptor on XEXP (rtl, 0).
32331 2015-04-17 Martin Liska <mliska@suse.cz>
32333 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
32334 Release symbol_compare_collection.
32335 * ipa-reference.c: Add TODO that a vector should be released.
32337 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
32340 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
32341 to new AVR-LibC file layout (bug #44574).
32342 (*avrlibc_devicelib): Same.
32343 * config/avr/avr-mcus.def: Adjust comments.
32344 * config/avr/avr.opt (nodevicelib): Adjust help.
32346 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
32348 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
32350 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
32353 * gimplify.c (gimplify_init_constructor): Always emit a
32354 side-effecting constructor.
32356 2015-04-17 Tom de Vries <tom@codesourcery.com>
32358 PR tree-optimization/64950
32359 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
32360 in cfun->curr_properties.
32361 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
32362 if we generate an IFN_VA_ARG.
32363 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
32364 function if PROP_gimple_lva is not set in src function.
32366 2015-04-17 Tom de Vries <tom@codesourcery.com>
32367 Michael Matz <matz@suse.de>
32369 PR tree-optimization/64950
32370 * gimple-iterator.c (update_modified_stmts): Remove static.
32371 * gimple-iterator.h (update_modified_stmts): Declare.
32372 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
32373 (gimplify_va_arg_internal): New function.
32374 (gimplify_va_arg_expr): Use IFN_VA_ARG.
32375 * gimplify.h (gimplify_va_arg_internal): Declare.
32376 * internal-fn.c (expand_VA_ARG): New unreachable function.
32377 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
32378 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
32379 (expand_ifn_va_arg): New function.
32380 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
32381 (pass_stdarg::execute): Call expand_ifn_va_arg.
32382 (pass_data_lower_vaarg): New pass_data.
32383 (pass_lower_vaarg): New gimple_opt_pass.
32384 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
32385 (make_pass_lower_vaarg): New function.
32386 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
32387 properties_required field.
32388 * passes.def (all_passes): Add pass_lower_vaarg.
32389 * tree-pass.h (PROP_gimple_lva): Add define.
32390 (make_pass_lower_vaarg): Declare.
32392 2015-04-17 Tom de Vries <tom@codesourcery.com>
32394 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
32395 * calls.c (call_expr_flags): Same.
32397 2015-04-17 Tom de Vries <tom@codesourcery.com>
32399 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
32400 (pass_stdarg::execute): ... here.
32402 2015-04-17 Tom de Vries <tom@codesourcery.com>
32403 Michael Matz <matz@suse.de>
32405 * tree-cfg.c (make_blocks_1): Factor out of ...
32406 (make_blocks): ... here.
32407 (make_edges_bb): Factor out of ...
32408 (make_edges): ... here.
32409 (gimple_find_sub_bbs): New function.
32410 * tree-cfg.h (gimple_find_sub_bbs): Declare.
32412 2015-04-17 Tom de Vries <tom@codesourcery.com>
32414 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
32416 2015-04-17 Yury Gribov <y.gribov@samsung.com>
32418 * asan.c (set_sanitized_sections): New function.
32419 (section_sanitized_p): Ditto.
32420 (asan_protect_global): Optionally sanitize user-defined
32422 * asan.h (set_sanitized_sections): Declare new function.
32423 * common.opt (fsanitize-sections): New option.
32424 * doc/invoke.texi (-fsanitize-sections): Document new option.
32425 * opts-global.c (handle_common_deferred_options): Handle new
32428 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32431 * dwarf2out.c (loc_list_from_tree): Return NULL
32432 for DEBUG_EXPR_DECL.
32434 2015-04-17 Christian Bruel <christian.bruel@st.com>
32436 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
32439 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32441 * ira-color.c (setup_left_conflict_sizes_p): Do not process
32442 node itself when computing left conflict subnode size.
32444 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
32446 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
32447 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
32448 *fop_<mode>_1_sse using enabled attribute. Use
32449 register_mixssei387nonimm_operand operand 1 predicate. Change
32450 alternative 3 constraints from "x" to "v".
32452 2015-04-16 Richard Biener <rguenther@suse.de>
32454 PR tree-optimization/65774
32455 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
32456 bit-value tracking on.
32458 2015-04-16 Richard Biener <rguenther@suse.de>
32460 PR tree-optimization/64277
32461 * tree-vrp.c (check_array_ref): Fix anti-range handling,
32462 simplify upper bound handling.
32463 (search_for_addr_array): Simplify.
32464 (check_array_bounds): Handle ADDR_EXPRs here.
32465 (check_all_array_refs): Simplify.
32467 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
32469 * config/i386/i386.c (print_reg): Rewrite function.
32471 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32473 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
32474 Invert the condition.
32476 2015-04-16 Renlin Li <renlin.li@arm.com>
32478 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
32479 simplifications for UNSIGNED_FLOAT.
32481 2015-04-16 Nick Clifton <nickc@redhat.com>
32483 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
32485 (enum rl78_cpu_type): New.
32486 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
32487 (umulhi3_shift_virt): Remove m constraint from operand 1.
32488 (umulqihi3_virt): Likewise.
32489 * config/rl78/rl78.c (rl78_option_override): Add code to process
32490 -mcpu and -mmul options.
32491 (rl78_alloc_physical_registers): Add code to handle divhi and
32492 divsi valloc attributes.
32493 (set_origin): Likewise.
32494 * config/rl78/rl78.h (RL78_MUL_G14): Define.
32495 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
32496 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
32498 (ASM_SPEC): Pass -mcpu on to assembler.
32499 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
32500 (mulqi3_rl78): Likewise.
32501 (mulhi3_g13): Likewise.
32502 (mulhi3): Generate the G13 or G14 versions of the insn directly.
32503 (mulsi3): Likewise.
32504 (mulhi3_g14): Add clobbers of AX and BC.
32505 (mulsi3_g14): Likewise.
32506 (mulsi3_g13): Likewise.
32507 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
32508 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
32509 * config/rl78/rl78.opt (mmul): Initialise value to
32511 (mcpu): New option.
32512 (m13, m14, mrl78): New option aliases.
32513 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
32514 (MULTILIB_DIRNAMES): Add g13 and g14.
32515 * doc/invoke.texi: Document -mcpu and -mmul options.
32517 2015-04-16 Richard Biener <rguenther@suse.de>
32519 * tree-ssa-ccp.c (likely_value): See if we have operands that
32520 are marked as never simulate again and return CONSTANT in this
32522 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
32523 not have any operands that will be simulated again as
32524 not being simulated again.
32526 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
32528 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
32529 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
32530 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
32532 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
32534 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
32535 *float<SWI48:mode><MODEF:mode>2_sse.
32536 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
32538 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
32541 2015-04-15 Tom de Vries <tom@codesourcery.com>
32544 * function.c (push_dummy_function): New function.
32545 (init_dummy_function_start): Use push_dummy_function.
32546 (pop_dummy_function): New function. Factored out of ...
32547 (expand_dummy_function_end): ... here.
32548 * function.h (push_dummy_function, pop_dummy_function): Declare.
32549 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
32550 pop_dummy_function.
32551 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
32553 2015-04-15 Jeff Law <law@redhat.com>
32555 PR tree-optimization/47679
32556 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
32557 need for forward declaration in upcoming changes.
32558 (record_conditions, record_edge_info): Likewise.
32560 PR rtl-optimization/42522
32561 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
32562 SIGN_EXTRACT as a whole object rather than simplifying
32565 2015-04-15 Jakub Jelinek <jakub@redhat.com>
32568 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
32569 and GIMPLE_PREDICT use break instead of return true. For
32570 GIMPLE_EH_DISPATCH, compare dispatch region.
32572 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
32574 * doc/extend.texi (__sync Builtins): Simplify some text. Update
32575 details about the implementation. Make clear preference for
32576 __atomic builtins. Reduce possibility of future change.
32578 2015-04-15 Nick Clifton <nickc@redhat.com>
32580 * config/rx/rx.opt (mallow-string-insns): New option.
32581 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
32582 builtin if string instructions are denied.
32583 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
32584 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
32586 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
32587 * config/rx/rx.md (movstr): Enable pattern only if string
32588 instructions are allowed.
32589 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
32590 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
32591 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
32592 (MULTILIB_DIRNAMES): Add no-strings.
32593 * doc/invoke.texi: Document -mno-allow-string-insns.
32595 2015-04-15 Alan Modra <amodra@gmail.com>
32599 PR middle-end/36043
32600 * calls.c (load_register_parameters): Don't load past end of
32601 mem unless suitably aligned.
32603 2015-04-15 Nick Clifton <nickc@redhat.com>
32605 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
32606 decrement instruction as being frame related.
32607 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
32609 If zero extending a function address enclose the operation in
32611 (rl78_preferred_reload_class): New function.
32612 (TARGET_PREFERRED_RELOAD_CLASS): Define.
32613 * config/rl78/rl78.md: Remove useless constraints in expanders.
32614 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
32615 (mulhi3_rl78): Likewise.
32616 (mulhi3_g13): Likewise.
32617 (mulsi3_rl78): Likewise.
32618 (es_addr): Move to before the multiply patterns.
32620 2015-04-15 Alan Modra <amodra@gmail.com>
32622 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
32623 and sequence_stack. Add seq.
32624 (seq_stack): Delete.
32625 * function.c (prepare_function_start): Don't access x_last_insn.
32626 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
32627 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
32628 * emit_rtl.c (start_sequence, push_topmost_sequence,
32629 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
32630 sequence accessors.
32631 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
32632 remove_insn): Likewise. Simplify.
32633 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
32634 and pop_topmost_sequence.
32635 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
32637 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
32639 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
32642 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
32645 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
32647 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
32648 (LEGACY_INT_REGNO_P): Ditto.
32649 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
32650 (ANY_MASK_REG_P): Remove.
32651 (BND_REG_P): Rename from ANY_BND_REG_P.
32652 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
32653 legacy integer registers. Do not handle MMX_REG_P in a special way.
32654 Merge 64byte and 32byte SSE handling.
32656 2015-04-14 Nick Clifton <nickc@redhat.com>
32658 * expr.c (expand_assignment): Force an address offset computation
32659 into a register before changing its mode.
32660 (expand_expr_real_1): Likewise.
32662 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
32664 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
32665 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
32666 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
32667 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
32668 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
32669 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
32670 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
32671 and __aarch64_vget_lane_any.
32673 2015-04-14 Jakub Jelinek <jakub@redhat.com>
32675 PR rtl-optimization/65761
32676 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
32677 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
32679 2015-04-14 Richard Biener <rguenther@suse.de>
32681 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
32682 (graphite_can_represent_scev): Use POINTER_TYPE_P.
32684 2015-04-14 Richard Biener <rguenther@suse.de>
32686 PR tree-optimization/65758
32687 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
32689 (ccp_lattice_meet): Likewise.
32690 (bit_value_unop): Likewise.
32691 (bit_value_binop): Likewise.
32692 (bit_value_assume_aligned): Likewise.
32694 2015-04-14 Christian Bruel <christian.bruel@st.com>
32696 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
32699 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
32701 PR tree-optimization/63387
32702 * match.pd ((x unord x) | (y unord y) -> (x unord y),
32703 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
32705 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
32707 * config/i386/predicates.md (any_QIreg_operand): Rename from
32708 q_regs_operand. Do not process subregs.
32709 (QIreg_operand): Use QI_REGNO_P predicate.
32710 (ext_QIreg_operand): Ditto.
32711 (ext_register_operand): Ditto.
32712 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
32713 (AND splitters): Ditto.
32714 (AND with -65536 splitter): Add SWI48 mode for operand 0.
32715 (AND with -256 splitter): Use any_QIreg_operand predicate and
32716 SWI248 mode for operand 0.
32717 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
32718 mode for operand 0.
32719 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
32721 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
32723 * doc/plugins.texi: Rewrite first introductory paragraph.
32725 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32727 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
32728 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
32730 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32732 * ipa-profie.c (ipa_profile): Check number of parameters
32733 and possible polymorphic call targets before
32736 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
32738 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
32739 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
32741 2015-04-13 Richard Biener <rguenther@suse.de>
32743 PR tree-optimization/65204
32744 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
32745 takens for bit-CCP.
32747 2015-04-13 Richard Biener <rguenther@suse.de>
32750 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
32751 and cond_not_taken_branch_cost to 4 and 2.
32752 (bdver2_cost): Likewise.
32753 (bdver3_cost): Likewise.
32754 (bdver4_cost): Likewise.
32756 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32758 * hash-table.h (hash_table constructor): Add mem stats.
32759 (alloc_entries): Likewise.
32761 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32763 * ipa-cp.c (ipcp_driver): Relase prev_edge.
32764 * passes.c (execute_one_pass): Only add transform if pass has one.
32766 2015-04-12 Joseph Myers <joseph@codesourcery.com>
32768 * config/i386/i386.c (ix86_option_override_internal): Don't set
32769 -fprefetch-loop-arrays if optimizing for size.
32771 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32772 Gerald Pfeifer <gerald@pfeifer.com>
32774 * doc/contrib.texi (Contributors): Add Martin Jambor and
32777 2015-04-12 Jakub Jelinek <jakub@redhat.com>
32779 * BASE-VER: Set to 6.0.0.
32781 PR tree-optimization/65747
32782 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
32783 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
32785 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
32787 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
32788 sentence. Improve grammar.
32790 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
32792 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
32794 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
32797 * ipa-inline-transform.c (speculation_removed): Remove static var.
32798 (check_speculations): New function.
32799 (clone_inlined_nodes): Do not check spculations.
32800 (inline_call): Call check_speculations.
32801 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
32802 consider non-invariants.
32804 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
32805 Martin Liska <mliska@suse.cz>
32808 * ipa-icf.c (sem_item::compare_cgraph_references): function and
32809 variable can not match.
32810 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
32811 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
32813 2015-04-11 Jakub Jelinek <jakub@redhat.com>
32815 PR tree-optimization/65735
32816 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
32817 Remove visited_phis argument, add visited_bbs, avoid recursing into the
32818 same bb rather than just into the same phi node.
32819 (thread_through_normal_block): Adjust caller.
32821 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
32823 * doc/contrib.texi (Contributors): Add Ira Rosen.
32825 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
32827 * gcov.c (find_source): Fix miswording in error message.
32828 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
32829 (ix86_expand_sse_comi_round): Fix typo in error message.
32831 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
32833 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
32835 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
32837 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
32839 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
32842 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
32843 Print bad_spills_num and insn_pseudos_num.
32845 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32848 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
32849 when creating +1 values for SImode.
32851 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
32854 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
32857 2015-04-10 Jakub Jelinek <jakub@redhat.com>
32858 Iain Sandoe <iain@codesourcery.com>
32861 * configure: Regenerate.
32863 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
32866 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
32868 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
32870 * doc/contrib.texi (Contributors): Add John Marino.
32872 2015-04-09 Jakub Jelinek <jakub@redhat.com>
32874 PR tree-optimization/65709
32875 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
32876 TREE_TYPE (TREE_TYPE (t)).
32878 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
32881 * lra-int.h (lra_bad_spill_regno_start): New.
32882 * lra.c (lra_bad_spill_regno_start): New.
32883 (lra): Set up lra_bad_spill_regno_start. Set up
32884 lra_constraint_new_regno_start unconditionally.
32885 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
32888 2015-04-09 Marek Polacek <polacek@redhat.com>
32889 Jakub Jelinek <jakub@redhat.com>
32891 PR middle-end/65554
32892 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
32893 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
32896 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
32898 PR rtl-optimization/65693
32899 * combine.c (is_parallel_of_n_reg_sets): Move outside of
32902 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
32905 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
32906 device specs file if "device-specs%s" didn't resolve to a path.
32908 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
32911 * config/i386/i386.c (fixup_modeless_constant): New.
32912 (ix86_expand_args_builtin): Fixup modeless constant operand.
32913 (ix86_expand_round_builtin): Ditto.
32914 (ix86_expand_special_args_builtin): Ditto.
32915 (ix86_expand_builtin): Ditto.
32917 2015-04-09 Jakub Jelinek <jakub@redhat.com>
32920 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
32921 any pow2 integer in between 2 and 0x80000000U inclusive.
32923 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
32925 PR rtl-optimization/65693
32926 * combine.c (is_parallel_of_n_reg_sets): Change first argument
32927 from an rtx_insn * to an rtx.
32928 (try_combine): Adjust both callers. Use it once more.
32930 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32932 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
32933 (chkp_make_static_const_bounds): Search existing
32934 symbol by assembler name. Use make_decl_one_only.
32935 (chkp_get_zero_bounds_var): Remove node search which
32936 is now performed in chkp_make_static_const_bounds.
32937 (chkp_get_none_bounds_var): Likewise.
32939 2015-04-08 Michael Witten <mfwitten@gmail.com>
32941 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
32944 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32946 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
32948 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
32950 * doc/extend.texi (__sync Builtins): Fix grammar.
32952 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32954 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
32956 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32958 * varasm.c (emit_local): Move definition of align.
32960 2015-04-08 Julian Brown <julian@codesourcery.com>
32962 * config/nvptx/mkoffload.c (process): Support variable mapping.
32964 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
32966 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
32968 (alpha_write_one_linkage): Correct typo.
32970 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32972 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
32974 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
32976 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
32978 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32980 * tree-chkp.h (chkp_insert_retbnd_call): New.
32981 * tree-chkp.c (chkp_insert_retbnd_call): New.
32982 * ipa-split.c (insert_bndret_call_after): Remove.
32983 (split_function): Use chkp_insert_retbnd_call.
32984 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
32985 bounds for instrumented functions.
32987 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
32990 * calls.c (initialize_argument_information): When producing tail
32991 call also turn SSA_NAMES passed by references to original PARM_DECLs
32993 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
32996 * lra-remat.c (do_remat): Process input and non-input insn
32997 registers separately.
32999 2015-04-07 Jakub Jelinek <jakub@redhat.com>
33002 * valtrack.c (debug_lowpart_subreg): New function.
33003 (dead_debug_insert_temp): Use it.
33005 PR middle-end/65680
33006 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
33007 into signed HOST_WIDE_INT the same as negative bit_offset.
33009 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
33011 * ipa-comdats.c (ipa_comdats): Visit all thunks
33012 to set proper comdat group.
33014 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33017 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
33018 on constants for NEON VSTRUCT modes.
33020 2015-04-07 Jakub Jelinek <jakub@redhat.com>
33021 Iain Sandoe <iain@codesourcery.com>
33024 * configure: Regenerate.
33026 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
33029 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
33030 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
33031 that LFD is used to load double constants instead of LFS. Add
33032 defaults for all costs structures. Add comments for missing
33033 initialization fields.
33034 (size32_cost): Likewise.
33035 (size64_cost): Likewise.
33036 (rs64a_cost): Likewise.
33037 (mpccore_cost): Likewise.
33038 (ppc403_cost): Likewise.
33039 (ppc405_cost): Likewise.
33040 (ppc440_cost): Likewise.
33041 (ppc476_cost): Likewise.
33042 (ppc601_cost): Likewise.
33043 (ppc603_cost): Likewise.
33044 (ppc604_cost): Likewise.
33045 (ppc604e_cost): Likewise.
33046 (ppc620_cost): Likewise.
33047 (ppc630_cost): Likewise.
33048 (ppccell_cost): Likewise.
33049 (ppc750_cost): Likewise.
33050 (ppc7450_cost): Likewise.
33051 (ppc8540_cost): Likewise.
33052 (ppce300c2c3_cost): Likewise.
33053 (ppce500mc_cost): Likewise.
33054 (ppce500mc64_cost): Likewise.
33055 (ppce5500_cost): Likewise.
33056 (ppce6500_cost): Likewise.
33057 (titan_cost): Likewise.
33058 (power4_cost): Likewise.
33059 (power6_cost): Likewise.
33060 (power7_cost): Likewise.
33061 (power8_cost): Likewise.
33062 (ppca2_cost): Likewise.
33063 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
33065 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
33066 instead of XXLOR to copy SFmode to clear out dirty bits created
33067 when SFmode denormals are generated.
33068 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
33069 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
33071 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
33073 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
33074 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
33075 * config/aarch64/aarch64-tune.md: Regenerate.
33077 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
33079 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
33080 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
33081 * config/arm/arm-cores.def (exynos-m1): New core.
33082 * config/arm/arm-tune.md: Regenerate.
33083 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
33084 * config/arm/bpabi.h: Likewise.
33086 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
33088 * ipa-cp (set_single_call_flag): Remove too
33089 restrictive assert.
33091 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
33093 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
33094 GOMP_offload_unregister from the destructor.
33096 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
33098 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
33099 flags for instrumentation thunk.
33100 (chkp_produce_thunks): Likewise.
33102 2015-04-05 Martin Liska <mliska@suse.cz>
33105 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
33106 has computed data structure.
33107 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33109 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
33111 * invoke.texi (inline-unit-growth): Increase growth to 20%
33112 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
33114 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
33117 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
33119 (lra_rematerialization_iter): New.
33120 * lra.c (lra): Initialize lra_rematerialization_iter.
33121 Stop updating lra_constraint_new_regno_start after switching of
33122 inheritance and rematerialization.
33123 * lra-remat.c (lra_rematerialization_iter): New.
33124 (lra_remat): Add printing pass iteration. Do rematerialization
33125 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
33127 2015-04-04 Richard Biener <rguenther@suse.de>
33129 PR tree-optimization/64909
33130 PR tree-optimization/65660
33131 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
33132 to take a cost vector for scalar iteration cost.
33133 (vect_get_single_scalar_iteration_cost): Likewise.
33134 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
33135 Compute the scalar iteration cost into a cost vector.
33136 (vect_get_known_peeling_cost): Use the scalar cost vector to
33137 account for the cost of the peeled iterations.
33138 (vect_estimate_min_profitable_iters): Likewise.
33139 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
33142 2015-04-04 Alan Modra <amodra@gmail.com>
33146 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
33147 0.0 constant unless TARGET_VSX.
33148 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
33151 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33154 * ipa-inline-transform.c (inline_call): Skip sanity check to work
33157 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33160 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
33161 speculative indirect edges to avoid ordering issue.
33163 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33166 * ipa-inline.c (edge_badness): Add combined size to the denominator.
33168 2015-04-03 Jakub Jelinek <jakub@redhat.com>
33170 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
33171 TYPE_ARTIFICIAL on the .omp_data* types.
33173 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33175 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
33176 instrumentation thunks.
33178 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33180 * config/i386/i386.c (ix86_expand_call): Avoid nested
33181 PARALLEL in returned call value.
33183 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33185 * lto-cgraph.c (input_cgraph_1): Always link instrumented
33186 assembler name with original one.
33188 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33190 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
33192 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33194 Revert parts of r216820.
33195 * config/i386/i386.md (movqi_internal): Correct type calculation
33196 for alternatives 3 and 5.
33198 2015-04-02 Jakub Jelinek <jakub@redhat.com>
33200 PR preprocessor/61977
33201 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
33202 predefine __vector/__bool/__pixel macros nor context sensitive
33203 macros for CLK_ASM.
33204 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
33206 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
33208 * config/pa/pa.c (pa_output_move_double): Directly handle register
33209 indexed memory operand. Simplify handling of scaled register indexed
33212 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33215 * config/i386/linux-common.h (MPX_SPEC): New.
33216 (CHKP_SPEC): Add MPX_SPEC.
33217 * doc/invoke.texi (-fcheck-pointer-boudns): Document
33218 possible issues with '-z bndplt' support in linker.
33220 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33222 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
33223 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
33224 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
33225 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
33226 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
33228 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
33230 * config/i386/sync.md (UNSPEC_MOVA): Remove.
33231 (atomic_load<mode>): Change operand 0 predicate to
33232 nonimmediate_operand and fix up the destination when needed.
33234 (atomic_loaddi_fpu): Use UNSPEC_LDA.
33235 (atomic_store<mode>): Change operand 1 predicate to
33236 nonimmendate_operand and move the source to register when needed.
33238 (atomic_store<mode>_1): Use UNSPEC_STA.
33239 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
33240 Fix moves from memory operand. Use UNSPEC_STA.
33242 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
33244 * expmed.c (strict_volatile_bitfield_p): Check that the access will
33245 not cross a MODESIZE boundary.
33246 (store_bit_field, extract_bit_field): Added assertions in the
33247 strict volatile bitfields code path.
33249 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
33252 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
33253 Increase args array size by one to avoid buffer overflow.
33255 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
33257 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
33259 * ipa-inline.c (edge_badness): Add wrapper penalty.
33260 (sum_callers): Move up.
33261 (inline_small_functions): Set single_caller.
33262 * ipa-inline.h (inline_summary): Add single_caller.
33263 * ipa-split.c (split_function): Set split_part.
33264 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
33265 * cgraph.h (cgraph_node): Add split_part.
33267 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
33270 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
33271 Do not split operands 0 and operands 2 to halfmode.
33272 (atomic_compare_and_swap<mode>): Update for
33273 atomic_compare_and_swap<dwi>_doubleword changes.
33275 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
33277 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
33278 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
33279 no caching is done.
33281 2015-03-31 Martin Liska <mliska@suse.cz>
33284 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
33285 has already filled up function summary.
33286 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33288 2015-03-31 Richard Biener <rguenther@suse.de>
33290 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
33293 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
33295 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
33297 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
33298 (s390_asm_output_function_label): Adapt to new signature of
33299 s390_function_num_hotpatch_hw
33300 Optimise the code generating assembler output.
33301 Add comments to assembler file.
33303 2015-03-31 Richard Biener <rguenther@suse.de>
33305 PR middle-end/65626
33306 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
33307 of the noreturn call so it is last and cleanup_control_flow_bb
33308 can do the CFG part.
33310 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
33313 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
33314 same_comdat_group for external symbols.
33315 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
33316 infinite same_comdat_group traversal loop.
33318 2015-03-31 Jakub Jelinek <jakub@redhat.com>
33321 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
33322 automatically to $headers.
33324 2015-03-30 Jakub Jelinek <jakub@redhat.com>
33327 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
33328 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
33330 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
33332 * ipa-prop.c (param_type_may_change_p): Likewise.
33333 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
33334 (remove_unused_scope_block_p): Add in_ctor_dtor_block
33335 argument. Before inlining, preserve
33336 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
33337 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
33339 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
33341 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33344 * ipa-inline.c (edge_badness): Base denominator on callee's
33347 2015-03-27 Martin Jambor <mjambor@suse.cz>
33350 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
33351 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
33352 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
33353 node_calling_single_call.
33354 * ipa-cp.c (count_callers): New function.
33355 (set_single_call_flag): Likewise.
33356 (initialize_node_lattices): Count callers and set single_flag_call if
33358 (incorporate_penalties): New function.
33359 (good_cloning_opportunity_p): Use it, dump new flags.
33360 (propagate_constants_topo): Set node_within_scc flag if appropriate.
33361 * doc/invoke.texi (ipa-cp-recursion-penalty,
33362 ipa-cp-single-call-pentalty): Document.
33364 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33367 * symtab.c (symtab_node::get_partitioning_class): Register vars
33369 * varpool.c (symbol_table::output_variables) Do not assemble unefined
33370 decls for non-symbols.
33372 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
33375 * output.h (default_binds_local_p_2): New.
33376 * varasm.c (default_binds_local_p_2): Renamed to ...
33377 (default_binds_local_p_3): This. Don't return true on protected
33378 data symbol if protected data may be external.
33379 (default_binds_local_p): Use default_binds_local_p_3.
33380 (default_binds_local_p_1): Likewise.
33381 (default_binds_local_p_2): New.
33382 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
33383 default_binds_local_p_2 if TARGET_MACHO is undefined.
33385 2015-03-27 Jakub Jelinek <jakub@redhat.com>
33388 * config/i386/i386.c (legitimize_pic_address): If base
33389 is SYMBOL_REF or LABEL_REF using %rip addressing, force
33390 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
33392 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33395 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
33398 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33401 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
33402 of optimized out indirect call.
33403 (redirect_to_unreachable): Always build symbol table node for
33404 BUILT_IN_UNREACHABLE
33406 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
33409 * ira-costs.c (record_reg_classes): Process all constraint string
33412 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
33414 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
33418 * config/c6x/constraints.md (S3): New constraint.
33419 * config/c6x/c6x.md (real_jump): Use it.
33421 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33423 PR middle-end/65595
33424 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
33425 do redirection if the call is not optimized out.
33427 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
33430 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
33431 (fchkp-check-incomplete-type): Add LTO.
33432 (fchkp-zero-input-bounds-for-main): Likewise.
33433 (fchkp-first-field-has-own-bounds): Likewise.
33434 (fchkp-narrow-bounds): Likewise.
33435 (fchkp-narrow-to-innermost-array): Likewise.
33436 (fchkp-use-static-bounds): Likewise.
33437 (fchkp-use-static-const-bounds): Likewise.
33438 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33440 2015-03-27 Marek Polacek <polacek@redhat.com>
33442 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
33444 2015-03-27 Marek Polacek <polacek@redhat.com>
33447 * ubsan.c (ubsan_create_edge): New function.
33448 (instrument_bool_enum_load): Call it.
33449 (instrument_nonnull_arg): Likewise.
33450 (instrument_nonnull_return): Likewise.
33451 (instrument_object_size): Likewise.
33453 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33455 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
33458 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33461 * lto-streamer.h (class lto_location_cache): New.
33462 (struct data_in): Add location_cache.
33463 (lto_input_location): Update prototype.
33464 (stream_input_location_now): New.
33465 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
33466 pointer to location.
33467 (stream_input_location): Update.
33468 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
33469 (warn_odr): Apply location cache before warning.
33470 (lto_input_location): Update prototype.
33471 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
33472 Use stream_input_location_now.
33473 * lto-streamer-in.c (lto_location_cache::current_cache): New static
33475 (lto_location_cache::cmp_loc): New function.
33476 (lto_location_cache::apply_location_cache): New function.
33477 (lto_location_cache::accept_location_cache): New function.
33478 (lto_location_cache::revert_location_cache): New function.
33479 (lto_location_cache::input_location): New function.
33480 (lto_input_location): Do location caching.
33481 (stream_input_location_now): New function.
33482 (input_eh_region, input_struct_function_base): Use
33483 stream_input_location_now.
33484 (lto_data_in_create): use new.
33485 (lto_data_in_delete): Use delete.
33486 * tree-streamer-in.c (unpack_ts_block_value_fields,
33487 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
33488 lto_input_ts_exp_tree_pointers): Update for cached location api.
33490 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33493 * passes.def: Add pass_nothrow.
33494 * ipa-pure-const.c: (pass_data_nothrow): New.
33495 (pass_nothrow): New.
33496 (pass_nothrow::execute): New.
33497 (make_pass_nothrow): New.
33498 * tree-pass.h (make_pass_nothrow): Declare.
33500 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33502 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
33503 edge to change by speculation resolution or redirection.
33504 (edge_set_predicate): Likewise.
33505 (inline_summary_t::duplicate): Likewise.
33506 (remap_edge_summaries): Likewise.
33508 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33510 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
33512 (can_inline_edge_p): Relax option matching for always inline functions.
33514 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
33517 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
33518 Check operand 4 and operand 0 for equality.
33519 (avx512f_vextract<shuffletype>32x4_1_maskm):
33520 Check operand 6 and operand 0 for equality.
33521 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
33523 (vec_extract_hi_<mode>_maskm): Ditto.
33525 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33527 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
33528 dead calls back to live.
33529 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
33531 (cgraph_node::verify_node): ... here; verify only callee edges,
33533 * cif-code.def (CILK_SPAWN): New code.
33535 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33537 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
33538 (edge_set_predicate): Use it to mark unreachable edges.
33539 (inline_summary_t::duplicate): Remove unnecesary code.
33540 (remap_edge_summaries): Likewise.
33541 (dump_inline_summary): Report contains_cilk_spawn.
33542 (compute_inline_parameters): Compute contains_cilk_spawn.
33543 (inline_read_section, inline_write_summary): Stream
33544 contains_cilk_spawn.
33545 * ipa-inline.c (can_inline_edge_p): Do not touch
33546 DECL_STRUCT_FUNCTION that may not be available;
33547 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
33548 remove check for callee_fun->can_throw_non_call_exceptions and
33549 replace it by optimization attribute check; check for flag_exceptions.
33550 * ipa-inline-transform.c (inline_call): Maintain
33551 DECL_FUNCTION_PERSONALITY
33552 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
33554 2015-03-26 Jakub Jelinek <jakub@redhat.com>
33556 PR tree-optimization/65551
33557 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
33558 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
33560 2015-03-26 Richard Biener <rguenther@suse.de>
33562 PR middle-end/65555
33563 * tree-cfg.c (verify_gimple_call): Do not require a call to
33564 have no LHS if it wasn't recognized as control altering yet.
33566 2015-03-26 Jakub Jelinek <jakub@redhat.com>
33568 PR tree-optimization/64715
33569 * passes.def: Add another instance of pass_object_sizes before ccp1.
33570 * tree-object-size.c (pass_object_sizes::execute): In
33571 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
33572 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
33573 __bos result and the computed constant. Remove redundant
33574 checks, obsoleted by gimple_call_builtin_p test.
33576 * var-tracking.c (variable_tracking_main_1): Don't track
33577 variables for targetm.no_register_allocation targets.
33579 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
33581 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
33582 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
33584 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
33587 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
33588 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
33589 0.0 is correctly setup.
33590 (extenddftf2_internal): Likewise.
33592 2015-03-25 Sebastian Pop <s.pop@samsung.com>
33594 PR tree-optimization/65177
33595 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
33597 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
33598 edges not adjacent on the path to the original code.
33600 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
33603 * doc/install.texi (Building a native compiler): Document new
33604 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
33605 configuration assumes that the host supports the linker plugin.
33607 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
33610 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
33611 chain for generated call.
33613 2015-03-25 Richard Biener <rguenther@suse.de>
33615 * passes.c (pass_manager::execute_early_local_passes): Guard
33616 execution of pass_chkp_instrumentation_passes with
33617 flag_check_pointer_bounds.
33618 (pass_chkp_instrumentation_passes::gate): Likewise.
33620 2015-03-25 Martin Liska <mliska@suse.cz>
33622 PR tree-optimization/65538
33623 * symbol-summary.h (function_summary::~function_summary):
33624 Relese memory for allocated summaries.
33625 (function_summary::release): New function.
33627 2015-03-25 Jakub Jelinek <jakub@redhat.com>
33630 * lto-streamer-out.c (DFS::worklist): New struct.
33631 (DFS::worklist_vec): New data member.
33632 (DFS::next_dfs_num): Remove.
33633 (DFS::DFS): Rewritten using worklist instead of recursion,
33634 using most of code from DFS::DFS_write_tree.
33635 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
33636 pass it to DFS_write_tree calls.
33637 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
33638 quick initial checks push it into worklist_vec and return.
33640 2015-03-25 Richard Biener <rguenther@suse.de>
33642 PR middle-end/65519
33643 * genmatch.c (expr::gen_transform): Re-write to avoid
33644 using gimple_build.
33646 2015-03-25 Bin Cheng <bin.cheng@arm.com>
33648 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
33650 2015-03-25 Bin Cheng <bin.cheng@arm.com>
33652 * config/arm/arm.opt (print_tune_info): New option.
33653 * config/arm/arm.c (arm_print_tune_info): New function.
33654 (arm_file_start): Call arm_print_tune_info.
33655 * config/arm/arm-protos.h (struct tune_params): Add comment.
33656 * doc/invoke.texi (@item -mprint-tune-info): New item.
33657 (-mtune): mention it in ARM Option Summary.
33659 2015-03-25 DJ Delorie <dj@redhat.com>
33661 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
33664 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
33665 Martin Liska <mliska@suse.cz>
33667 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
33668 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
33669 (sem_item::add_type): New function.
33670 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
33671 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
33672 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
33673 (sem_function::equals_wpa): Fix typo.
33674 * ipa-icf.h (sem_item::add_type): New function.
33675 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
33678 2015-03-24 Jakub Jelinek <jakub@redhat.com>
33680 PR tree-optimization/65533
33681 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
33682 with swapped operands, call vect_free_slp_tree on
33683 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
33686 2015-03-24 Richard Biener <rguenther@suse.de>
33688 PR middle-end/65517
33689 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
33690 for fixup if necessary.
33692 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
33694 * doc/extend.texi (Function Attributes): Add @cindex entries
33695 for all attributes and regularize their format. Delete text
33696 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
33697 information about "eightbit_data", "tiny_data", and "model"
33698 variable attributes to the Variable Attributes section. Fix
33699 some obvious typos and copy-editing issues.
33700 (Variable Attributes, Type Attributes): Likewise add/fix
33701 @cindex entries for all attributes.
33703 2015-03-23 Jakub Jelinek <jakub@redhat.com>
33706 * tree-chkp.c (chkp_build_returned_bound): Ignore
33707 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
33709 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
33712 * config/sh/predicates.md (simple_mem_operand,
33713 displacement_mem_operand): Add test for reg.
33714 (short_displacement_mem_operand): Test for displacement_mem_operand
33715 before invoking sh_disp_addr_displacement.
33716 * config/sh/constraints.md (Sdd, Sra): Simplify.
33717 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
33718 Remove redundant displacement_mem_operand tests.
33720 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
33723 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
33724 the same -mmcu=MCU more than once.
33726 2015-03-23 Jakub Jelinek <jakub@redhat.com>
33729 * ipa-devirt.c: Remove duplicate demangle.h include.
33732 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
33734 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
33735 REG_POINTER on *destptr after adjusting it for prologue size.
33738 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
33739 ultimate_alias_target ()->order ints instead of
33740 ultimate_alias_target () pointers.
33742 2015-03-23 Richard Biener <rguenther@suse.de>
33744 PR tree-optimization/65518
33745 * tree-vect-stmts.c (vectorizable_load): Reject single-element
33746 interleaving cases we generate absymal code for.
33748 2015-03-23 Richard Biener <rguenther@suse.de>
33750 PR tree-optimization/65494
33751 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
33753 (vect_analyze_slp_instance): But do that here, always and once.
33755 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33757 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
33758 adding T or multiplying by T+1 and subracting T.
33760 2015-03-22 Jeff Law <law@redhat.com>
33762 PR rtl-optimization/64317
33763 * Makefile.in (OBJS): Add gcse-common.c
33764 * gcse.c: Include gcse-common.h
33765 (struct modify_pair_s): Move structure definition to gcse-common.h
33766 (compute_transp): Move function to gcse-common.c.
33767 (canon_list_insert): Similarly.
33768 (record_last_mem_set_info): Break out some code and put it into
33769 gcse-common.c. Call into the new common code.
33770 (compute_local_properties): Pass additional arguments to compute_transp.
33771 * postreload-gcse.c: Include gcse-common.h and df.h
33772 (modify_mem_list_set, blocks_with_calls): New variables.
33773 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
33774 (get_bb_avail_insn): Pass in the expression index too.
33775 (alloc_mem): Allocate memory for the new bitmaps and lists.
33776 (free_mem): Free memory for the new bitmaps and lists.
33777 (insert_expr_in_table): Record a bitmap index for each entry we
33779 (record_last_mem_set_info): Call into common code in gcse-common.c.
33780 (get_bb_avail_insn): If no available insn was found in the requested
33781 BB. If BB has a single predecessor, see if the expression is
33782 transparent in BB and available in that single predecessor.
33783 (compute_expr_transp): New wrapper for compute_transp.
33784 (eliminate_partially_redundant_load): Pass expression's bitmap_index
33785 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
33786 (gcse_after_reload_main): If there are elements in the hash table,
33787 then compute transparency for all the elements in the hash table.
33788 * gcse-common.h: New file.
33789 * gcse-common.c: New file.
33791 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
33793 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
33795 (System Headers): Likewise.
33797 (Traditional macros): Likewise.
33798 (Invocation): Likewise.
33799 (Option Index): Likewise.
33800 * doc/cppopts.texi (-M): Likewise.
33801 (-finput-charset): Likewise.
33802 (--help): Likewise.
33803 * doc.invoke.texi (AVR Options): Likewise.
33804 (V850 Options): Likewise.
33806 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
33809 * ipa-devirt.c: Include demangle.h
33810 (odr_type_d): Add field rtti_broken.
33811 (odr_subtypes_equivalent_p): Do not require name to match.
33812 (compare_virtual_tables): Fix typo; if type already has ODR violation,
33813 bypass the tests; be ready for function referneces in vtables that are
33814 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
33815 (warn_odr): Give up for nameless types.
33816 (warn_types_mismatch): Report mismatch in mangled names;
33817 report mismatch in anonymous namespaces; look into component types to
33818 give useful error; report when mismatch is dragged in from other ODR
33820 (odr_types_equivalent_p): Match types for being polymorphic; avoid
33821 duplicated diagnostics.
33822 (add_type_duplicate): Reorder checks so more informative ones come
33823 first; fix typo; do not output "the extra base is defined here" when
33825 (BINFO_N_BASE_BINFOS): Relax sanity check.
33827 2015-03-22 Martin Liska <mliska@suse.cz>
33828 Jakub Jelinek <jakub@redhat.com>
33830 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
33831 masks that can potentially include a builtin.
33832 (ix86_add_new_builtins): Introduce fast filter for isa values
33833 that cannot trigger builtin inclusion.
33835 2015-03-22 Martin Liska <mliska@suse.cz>
33837 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
33838 (sem_item::update_hash_by_local_refs): Likewise.
33839 (sem_variable::get_hash): Empty line is fixed.
33840 (sem_item_optimizer::execute): Include adding of hash references.
33841 (sem_item_optimizer::update_hash_by_addr_refs): New function.
33842 (sem_item_optimizer::build_hash_based_classes): Use local hash.
33843 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
33844 (sem_item::update_hash_by_local_refs): Likewise.
33846 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
33849 * ipa-comdats.c (enqueue_references): Walk through thunks.
33850 (ipa_comdats): Likewise.
33851 (set_comdat_group_1): New function.
33853 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
33856 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
33859 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
33860 Gerald Pfeifer <gerald@pfeifer.com>
33862 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
33864 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
33865 Sandra Loosemore <sandra@codesourcery.com>
33867 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
33868 function parameter declaration.
33869 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
33870 Update arguments to nios2_adjust_call_address().
33871 (sibcall_internal): Rename from *sibcall.
33872 (sibcall_value_internal): Rename from *sibcall_value.
33873 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
33874 (nios2_large_got_address): Add target temp reg parameter.
33875 (nios2_got_address): Adjust call to nios2_large_got_address, add
33876 force_reg around it.
33877 (nios2_load_pic_address): Add target temp reg parameter, replace call
33878 to nios2_got_address with corresponding code.
33879 (nios2_legitimize_constant_address): Update call to
33880 nios2_load_pic_address.
33881 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
33882 to use temp reg for PIC loading purposes.
33883 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
33884 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
33885 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
33887 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33889 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
33890 usage of "the @option{...}".
33891 (-Wopenmp-simd): Likewise.
33892 (-fsanitize-recover): Likewise.
33893 (-fsanitize-undefined-trap-on-error): Likewise.
33895 (tracer-dynamic-coverage-feedback): Likewise.
33896 (reorder-block-duplicate-feedback): Likewise.
33897 (loop-unroll-jam-size): Likewise.
33900 (-mabs=legacy): Likewise.
33901 (-mupper-regs-df): Likewise.
33902 (-mupper-regs-sf): Likewise.
33903 (-mpointers-to-nested-functions): Likewise.
33905 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33907 * doc/extend.texi (Cilk Plus Builtins): Add markup.
33909 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33911 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
33912 additional index entries and cross-references.
33913 (-fchkp-check-incomplete-type): Likewise.
33914 (-fchkp-first-field-has-own-bounds): Likewise.
33915 (-fchkp-narrow-to-innermost-array): Likewise.
33916 (-fchkp-use-fast-string-functions): Likewise.
33917 (-fchkp-use-nochk-string-functions): Likewise.
33918 (-fchkp-use-static-const-bounds): Likewise.
33919 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33920 (-fchkp-instrument-marked-only): Likewise.
33921 (-fchkp-use-wrappers): Likewise.
33922 (-static-libmpx): Likewise.
33923 (-static-libmpxwrappers): Likewise.
33924 * doc/extend.texi (bnd_legacy): Likewise.
33925 (bnd_instrument): Likewise.
33926 (bnd_variable_size): Likewise.
33927 (Pointer Bounds Checker builtins): Likewise.
33929 2015-03-21 Tom de Vries <tom@codesourcery.com>
33931 PR tree-optimization/65458
33932 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
33933 * cgraph.h (cgraph_node): Add parallelized_function field.
33934 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
33935 (input_overwrite_node): Read parallelized_function field.
33936 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
33937 parallelized_function on cgraph_node for child_fn.
33938 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
33939 Remove include of gt-tree-parloops.h.
33940 (parallelized_functions): Remove static variable.
33941 (parallelized_function_p): Rewrite using parallelized_function field of
33943 (create_loop_fn): Remove adding to parallelized_functions.
33944 * Makefile.in (GTFILES): Remove tree-parloops.c
33946 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
33948 PR rtl-optimization/64366
33949 * lra.c (lra_update_insn_regno_info): Consider regs in
33950 CALL_INSN_FUNCTION_USAGE memory.
33952 2015-03-20 Richard Biener <rguenther@suse.de>
33954 PR middle-end/64715
33955 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
33956 for type comparison and gcc_checking_assert.
33957 (chrec_fold_plus_poly_poly): Likewise.
33958 (chrec_fold_multiply_poly_poly): Likewise.
33959 (chrec_convert_1): Likewise.
33960 * gimplify.c (gimplify_expr): Remove premature folding of
33961 &X + CST to &MEM[&X, CST].
33963 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
33965 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
33967 (ipa_inline): Recompute inline_failed codes.
33968 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
33969 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
33972 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
33974 PR rtl-optimization/60851
33975 * recog.c (constrain_operands): Accept a pseudo register before reload
33976 for LRA enabled targets.
33978 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
33981 * config/rs6000/predicates.md (easy_fp_constant): Remove special
33982 -ffast-math handling that kept non-0 constants live in the RTL
33983 until reload. Remove logic testing the number of instructions it
33984 took to create a constant in a GPR that was never used, due to a
33985 test for soft-float earlier.
33986 (memory_fp_constant): Delete, no longer used.
33988 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
33989 alternatives for loading non-0 constants into GPRs for hard
33990 floating point that is no longer needed due to changes in
33991 easy_fp_constant. Add support for loading 0.0 into GPRs.
33992 (mov<mode>_hardfloat32): Likewise.
33993 (mov<mode>_hardfloat64): Likewise.
33994 (mov<mode>_64bit_dm): Likewise.
33995 (movtd_64bit_nodm): Likewise.
33996 (pre-reload move FP constant define_split): Delete define_split,
33997 since it is no longer used.
33998 (extenddftf2_internal): Remove GHF constraints that are not valid
34001 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
34003 PR rtl-optimization/63491
34004 * lra-constraints.c (check_and_process_move): Use src instead of
34005 sreg. Remove some dead code.
34007 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
34010 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
34011 (sem_variable::merge): Likewise.
34013 2015-03-19 Martin Liska <mliska@suse.cz>
34016 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
34017 all fields of cgraph_thunk_info.
34019 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
34021 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
34022 clone instrumented thunks.
34024 2015-03-19 Richard Biener <rguenther@suse.de>
34027 2015-03-10 Richard Biener <rguenther@suse.de>
34029 PR middle-end/63155
34030 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34031 * tree-ssa-coalesce.c: Include timevar.h.
34032 (attempt_coalesce): Handle graph being NULL.
34033 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34034 Split out abnormal coalescing to ...
34035 (perform_abnormal_coalescing): ... this function.
34036 (coalesce_ssa_name): Perform abnormal coalescing without computing
34038 (verify_ssa_coalescing_worker): New function.
34039 (verify_ssa_coalescing): Likewise.
34041 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
34042 Jakub Jelinek <jakub@redhat.com>
34045 * tsan.c (instrument_gimple): Clear tail call flag on
34048 2015-03-19 Jakub Jelinek <jakub@redhat.com>
34051 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
34052 call in the return bb.
34053 (find_split_points): Add RETURN_BB argument, don't call
34055 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
34056 if true append TSAN_FUNC_EXIT internal call after the call to
34057 the split off function.
34058 (execute_split_functions): Call find_return_bb here.
34059 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
34060 Adjust find_split_points and split_function calls.
34062 2015-03-18 DJ Delorie <dj@redhat.com>
34064 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
34065 (iorqi3_virt): Likewise.
34067 2015-03-18 Tom de Vries <tom@codesourcery.com>
34069 * tree-parloops.c (parallelize_loops): Make static.
34070 * tree-parloops.h (parallelize_loops): Remove extern declaration.
34072 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
34074 PR middle-end/64491
34076 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
34078 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
34079 condition would be removed due to undefined behaviour.
34081 2015-03-18 Martin Liska <mliska@suse.cz>
34084 * cgraph.c (cgraph_node::get_create): Remove unnecessary
34085 xstrdup_for_dump wrapper.
34086 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
34088 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
34089 with xstrdup_for_dump.
34090 (sem_variable::equals): Likewise.
34091 (sem_item_optimizer::read_section): Use symtab_node::name instead of
34093 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
34094 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
34095 symtab_node::asm_name with xstrdup_for_dump.
34096 (congruence_class::dump): Use symtab_node::name instead of
34098 * ipa-icf.h (symtab_node::name): Remove.
34099 (symtab_node::asm_name): Likewise.
34101 2015-03-18 Jakub Jelinek <jakub@redhat.com>
34103 PR tree-optimization/65450
34104 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
34106 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
34107 it instead of duplicate_ssa_name_ptr_info.
34110 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
34112 2015-03-18 Richard Biener <rguenther@suse.de>
34114 * tree-data-ref.h (struct access_matrix): Remove.
34115 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
34116 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
34117 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
34118 (am_vector_index_for_loop): Likewise.
34119 (struct data_reference): Remove access_matrix member.
34120 (DR_ACCESS_MATRIX): Remove.
34121 (lambda_vector_new): Add comment.
34122 (lambda_matrix_new): Use XOBNEWVEC.
34124 2015-03-18 Richard Biener <rguenther@suse.de>
34126 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
34127 (pass_ch::execute): Cleanup the CFG only if we did sth.
34128 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
34130 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34132 * expmed.c (synth_mult): Use std::swap instead of manually
34133 swapping algorithms.
34135 2015-03-18 Jakub Jelinek <jakub@redhat.com>
34138 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
34140 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
34143 * config/avr/avr.opt (-nodevicelib): New option.
34144 * doc/invoke.texi (AVR Options): Document it.
34145 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
34146 libgcc.a, libc.a, libm.a.
34147 * config/avr/specs.h: Same.
34148 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
34149 which don't (directly) depend on the device. Print more help.
34150 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
34151 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
34152 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
34154 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
34155 for specs file name.
34156 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
34157 * config/avr/avr-mcus.def: Adjust initializers and comments.
34159 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
34161 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
34162 DECL_ONE_ONLY to check if decl is one only.
34163 * ipa-split.c (consider_split): Limit splitt of one only functions.
34165 2015-03-16 Jakub Jelinek <jakub@redhat.com>
34167 PR tree-optimization/65427
34168 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
34170 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
34172 2015-03-16 Marek Polacek <polacek@redhat.com>
34174 * cgraph.h (add_new_static_var): Remove declaration.
34175 * varpool.c (add_new_static_var): Remove function.
34177 2015-03-16 Jakub Jelinek <jakub@redhat.com>
34179 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
34180 instead of vec<tree> * with vec_alloc and release for args.
34183 PR middle-end/65431
34184 * omp-low.c (delete_omp_context): Only splay_tree_delete
34185 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
34186 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
34188 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
34191 * cfgexpand.c (align_base): New function.
34192 (alloc_stack_frame_space): Call it.
34193 (expand_stack_vars): Align prev_frame to be sure
34194 data->asan_vec elements aligned properly.
34196 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
34198 PR middle-end/65409
34199 * expr.c (store_field): Do not do a direct block copy if the source is
34200 a PARALLEL with BLKmode.
34202 2015-03-16 Tom de Vries <tom@codesourcery.com>
34204 PR middle-end/65414
34206 2015-03-12 Tom de Vries <tom@codesourcery.com>
34208 PR rtl-optimization/64895
34209 * lra-lives.c (check_pseudos_live_through_calls): Use
34210 actual_call_used_reg_set instead of call_used_reg_set, if available.
34212 2015-03-16 Alan Modra <amodra@gmail.com>
34215 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
34216 Modify Z->r bswapdi splitter to use dest in place of scratch.
34217 In r->Z and Z->r bswapdi splitter rename word_high, word_low
34218 to word1, word2 and rearrange logic to suit.
34219 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
34220 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
34221 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
34222 Add one '?' on r->r. Modify Z->r splitter to avoid need for
34225 2015-03-14 Jakub Jelinek <jakub@redhat.com>
34227 PR tree-optimization/65369
34228 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
34229 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
34230 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
34232 PR tree-optimization/65418
34233 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
34234 are casts in the first PLUS_EXPR operand, ensure tbias and
34235 *totallowp are in the inner type.
34237 PR rtl-optimization/65401
34238 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
34239 argument. If true, adjust_address_nv of x with big-endian
34240 correction for the mode widening to GET_MODE (y).
34241 (make_field_assignment): Don't do MEM mode widening here.
34242 Use MEM_P instead of GET_CODE == MEM.
34244 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
34246 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
34247 the external decls.
34249 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34252 * config/arm/arm.c (arm_gen_constant, AND case): Use
34253 ARM_SIGN_EXTEND when constructing AND mask.
34255 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34257 * graph.c (print_graph_cfg): Make function names visible and append
34258 parenthesis to it. Also make groups of basic blocks belonging to the
34259 same function visible.
34261 2015-03-12 Richard Biener <rguenther@suse.de>
34263 PR middle-end/44563
34264 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
34265 to avoid quadratic behavior with inline expansion splitting blocks.
34266 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
34267 with the successor if the predecessor will be merged with it.
34268 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
34269 entry block with its successor.
34271 2015-03-13 Richard Biener <rguenther@suse.de>
34273 PR middle-end/44563
34274 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
34275 (cleanup_tree_cfg_1): Do not call it.
34276 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
34277 (fixup_noreturn_call): Mark the stmt as control altering.
34278 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
34280 (pass_data_fixup_cfg): Produce a dump file.
34281 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
34282 (need_noreturn_fixup): New global.
34283 (pass_dominator::execute): Fixup queued noreturn calls.
34284 (optimize_stmt): Queue calls that became noreturn for fixup.
34285 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
34286 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
34287 (el_to_fixup): New global.
34288 (eliminate_dom_walker::before_dom_childre): Queue calls that
34289 became noreturn for fixup.
34290 (eliminate): Fixup queued noreturn calls.
34291 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
34292 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
34293 (substitute_and_fold_dom_walker::before_dom_children): Queue
34294 alls that became noreturn for fixup.
34295 (substitute_and_fold): Fixup queued noreturn calls.
34297 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
34299 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
34300 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
34301 are building; for methods check ODR type of class they belong to if
34302 they may lead to a polymorphic call.
34303 (sem_function::compare_polymorphic_p): Be bit smarter about testing
34304 when function may lead to a polymorphic call.
34305 (sem_function::compare_type_list): Remove.
34306 (sem_variable::equals): Update use of compatible_types_p.
34307 (sem_variable::parse_tree_refs): Remove.
34308 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
34310 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
34312 (func_checker::compatible_polymorphic_types_p): Break out from ...
34313 (unc_checker::compatible_types_p): ... here.
34314 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
34316 (unc_checker::compatible_types_p): Update.
34317 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
34320 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34322 PR rtl-optimization/65235
34323 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
34324 When first element of vec_concat is const_int, calculate its size
34325 using second element.
34327 2015-03-12 Richard Biener <rguenther@suse.de>
34329 PR middle-end/65270
34330 * fold-const.c (operand_equal_p): Fix ordering of resetting
34331 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
34333 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
34335 * config/s390/s390.c (s390_reorg): Move code to output nops after label
34337 (s390_asm_output_function_label): Likewise.
34338 * config/s390/s390.c (s390_asm_output_function_label):
34339 Fix function label alignment with -mhtopatch.
34340 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
34341 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
34342 ("nop_2_byte"): New define_insn.
34343 ("nop_4_byte"): Likewise.
34344 ("nop_6_byte"): Likewise.
34345 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
34346 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
34348 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
34351 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
34354 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
34357 * toplev.c (process_options): Restrict Pointer Bounds Checker
34358 usage with Address Sanitizer.
34360 2015-03-12 Richard Biener <rguenther@suse.de>
34362 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
34364 * omp-low.c (expand_omp_taskreg): Split block before removing
34366 (expand_omp_target): Likewise.
34367 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
34368 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
34369 stmt to split_block.
34371 2015-03-12 Tom de Vries <tom@codesourcery.com>
34373 PR rtl-optimization/64895
34374 * lra-lives.c (check_pseudos_live_through_calls): Use
34375 actual_call_used_reg_set instead of call_used_reg_set, if available.
34377 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34379 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
34380 (cgraph_node::remove): Likewise.
34381 (cgraph_node::get_untransformed_body): Likewise.
34382 * varpool.c (varpool_node::remove): Likewise.
34383 (varpool_node::get_constructor): Add sanity check.
34385 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
34387 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
34389 (-fabi-compat-version): Likewise.
34390 (-ffriend-injection): Likewise.
34391 (-Wdeclaration-after-statement): Likewise.
34392 (-fomit-frame-pointer): Likewise.
34393 (-ftree-coalesce-inlined-vars): Likewise.
34394 (-fvisibility=): Likewise.
34395 * doc/extend.texi (Typeof): Likewise.
34396 (Zero Length): Likewise.
34397 (Escaped Newlines): Likewise.
34398 (Compound Literals): Likewise.
34399 (Function Attributes): Likewise.
34400 (Label Attributes): Likewise.
34401 (Type Attributes): Likewise.
34402 (Function Names): Likewise.
34403 (Other Builtins): Likewise.
34404 (Function Specific Option Pragmas): Likewise.
34405 (C++ Interface): Likewise.
34407 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
34409 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
34411 2015-03-11 Marek Polacek <polacek@redhat.com>
34413 PR tree-optimization/65388
34414 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
34416 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
34419 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
34420 * configure: Regenerate.
34421 * config.in: Regenerate.
34422 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
34423 [-mn-flash]: Document it.
34424 [__AVR_ARCH__]: Document avrtiny.
34426 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
34427 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
34428 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
34430 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34432 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
34434 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
34437 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
34438 allow reloads of PLUS in floating point/VSX registers.
34440 2015-03-11 Junmo Park <junmoz.park@samsung.com>
34442 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
34443 crypto_sha256_fast.
34444 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
34446 2015-03-11 Richard Biener <rguenther@suse.de>
34448 PR tree-optimization/65310
34449 * tree-sra.c (build_ref_for_offset): Also preserve larger
34452 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
34454 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
34456 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34459 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
34461 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
34463 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34465 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
34466 (sem_function::equals_wpa): ... here.
34468 2015-03-10 Marek Polacek <polacek@redhat.com>
34469 Jakub Jelinek <jakub@redhat.com>
34472 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
34473 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
34476 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34479 * config/rs6000/t-linux: For powerpc64* target set
34480 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
34482 2015-03-10 Richard Biener <rguenther@suse.de>
34484 PR middle-end/44563
34485 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
34486 for redirect_all_calls.
34488 2015-03-10 Marek Polacek <polacek@redhat.com>
34490 * gdbinit.in (pcfun): Define and document.
34492 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
34494 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
34495 of libgomp-plugin.h.
34496 (find_target_compiler): Support a case when the path to gcc is
34497 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
34498 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
34499 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
34501 (main): Use GCC_INSTALL_NAME as target_driver_name.
34502 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
34504 (mkoffload.o): Remove obsolete include path and defines.
34505 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
34507 2015-03-10 Richard Biener <rguenther@suse.de>
34509 PR middle-end/63155
34510 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34511 * tree-ssa-coalesce.c: Include timevar.h.
34512 (attempt_coalesce): Handle graph being NULL.
34513 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34514 Split out abnormal coalescing to ...
34515 (perform_abnormal_coalescing): ... this function.
34516 (coalesce_ssa_name): Perform abnormal coalescing without computing
34518 (verify_ssa_coalescing_worker): New function.
34519 (verify_ssa_coalescing): Likewise.
34521 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
34524 * config.gcc (extra_options) [avr]: Remove.
34525 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
34526 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
34527 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
34529 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
34530 (-mmcu=): Add Var and MissingArgError properties.
34532 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
34533 * config/avr/t-multilib: Regenerate.
34534 * config/avr/specs.h: New file.
34535 * config/avr/driver-avr.c: New file.
34536 * config/avr/genopt.sh: Remove file.
34537 * config/avr/avr-tables.opt: Remove file.
34538 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
34539 * config/avr/avr-c.c: Same.
34540 * avr-arch.h: Same.
34541 (avr_current_device): Remove proto.
34542 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
34543 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
34544 (EXTRA_SPEC_FUNCTIONS): Define.
34545 (avr_devicespecs_file): New specs function proto.
34546 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
34547 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
34548 (avr_current_device): Remove definition and usage.
34549 (avr_set_core_architecture): New static function.
34550 (avr_option_override): Use it.
34551 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
34552 (mcu_name): New static array.
34553 (comparator, avr_archs_str, avr_mcus_str): New static functions.
34554 (avr_inform_devices, avr_inform_core_architectures): New functions.
34555 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
34556 (avrlibc.h) [WITH_AVRLIBC]: Include.
34557 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
34558 (print_mcu): Rewrite from scratch.
34559 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
34560 Forward to avr-specific specs defined in device-specs file.
34561 * config/avr/t-avr (driver-avr.o): New rule.
34562 (avr-devices.o): Depend on avr-arch.h.
34563 (avr-mcus): No more depend on avr-tables.opt.
34564 (avr-tables.opt): Remove rule.
34565 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
34567 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34569 * c-family/c.opt (fchkp-use-wrappers): New.
34570 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
34571 (chkp_wrap_function): New.
34572 (chkp_build_instrumented_fndecl): Support wrapped
34574 * doc/invoke.texi (-fcheck-pointer-bounds): New.
34575 (-fchkp-check-incomplete-type): New.
34576 (-fchkp-first-field-has-own-bounds): New.
34577 (-fchkp-narrow-bounds): New.
34578 (-fchkp-narrow-to-innermost-array): New.
34579 (-fchkp-optimize): New.
34580 (-fchkp-use-fast-string-functions): New.
34581 (-fchkp-use-nochk-string-functions): New.
34582 (-fchkp-use-static-bounds): New.
34583 (-fchkp-use-static-const-bounds): New.
34584 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
34585 (-fchkp-check-read): New.
34586 (-fchkp-check-write): New.
34587 (-fchkp-store-bounds): New.
34588 (-fchkp-instrument-calls): New.
34589 (-fchkp-instrument-marked-only): New.
34590 (-fchkp-use-wrappers): New.
34591 (-static-libmpx): New.
34592 (-static-libmpxwrappers): New.
34594 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34596 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
34597 (CHKP_SPEC): Add wrappers library.
34598 * c-family/c.opt (static-libmpxwrappers): New.
34600 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34602 * config/i386/linux-common.h (LIBMPX_LIBS): New.
34603 (LIBMPX_SPEC): New.
34605 * gcc.c (CHKP_SPEC): New.
34606 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
34607 * c-family/c.opt (static-libmpx): New.
34609 2015-03-10 Richard Biener <rguenther@suse.de>
34611 PR middle-end/44563
34612 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
34614 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
34615 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
34616 (cgraph_add_edge_to_call_site_hash): Likewise.
34617 (cgraph_node::get_edge): Likewise.
34618 (cgraph_edge::set_call_stmt): Likewise.
34619 (cgraph_edge::remove_caller): Likewise.
34621 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
34623 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
34624 (callee_saved_gpr_regs_size): ... this.
34625 (callee_saved_regs_first_regno): Rename to ...
34626 (callee_saved_first_gpr_regno): ... this.
34627 (callee_saved_regs_last_regno) Rename to ...
34628 (callee_saved_last_gpr_regno): ... this.
34629 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
34631 (nds32_initial_elimination_offset): Likewise.
34632 (nds32_expand_prologue): Likewise.
34633 (nds32_expand_epilogue): Likewise.
34634 (nds32_expand_prologue_v3push): Likewise.
34635 (nds32_expand_epilogue_v3pop): Likewise.
34636 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
34637 Adjust renamed variables.
34638 (nds32_output_stack_pop): Likewise.
34640 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
34642 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
34645 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34647 PR rtl-optimization/65321
34648 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
34650 * var-tracking.c (use_narrower_mode): Likewise.
34652 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34654 PR tree-optimization/65355
34655 * varasm.c (notice_global_symbol): Do not produce RTL.
34656 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
34658 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
34659 check for section anchors.
34661 2015-03-10 Alan Modra <amodra@gmail.com>
34664 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
34665 to be single-arch by default. Set cpu_is_64bit for powerpc64
34666 given --with-cpu=native.
34667 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
34668 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
34670 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
34671 rs6000_isa_flags rather than TARGET_64BIT.
34673 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
34674 Kaz Kojima <kkojima@gcc.gnu.org>
34676 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
34678 2015-03-09 Jakub Jelinek <jakub@redhat.com>
34681 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
34682 on a TREE_BINFO, instead use BINFO_TYPE.
34684 2015-03-09 Richard Biener <rguenther@suse.de>
34686 PR middle-end/65270
34687 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
34688 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
34689 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
34690 of that. When comparing dereferences compare alignment.
34691 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
34693 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
34695 * ipa-inline-analysis.c (check_callers): Check
34696 node->can_remove_if_no_direct_calls_and_refs_p.
34697 (growth_likely_positive): Reorganize to call
34698 can_remove_if_no_direct_calls_p later.
34699 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
34700 will_be_removed_from_program_if_no_direct_calls_p): Add
34701 will_inline parameter.
34702 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
34703 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34704 Handle inliner case correctly.
34706 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
34708 PR tree-optimization/63743
34709 * cfgexpand.c (reorder_operands): Also reorder if only second operand
34710 had its definition forwarded by TER.
34712 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
34715 * ipa-utils.h (types_odr_comparable): Add strict argument.
34716 * ipa-devirt.c: Fix whitespace;
34717 (odr_hasher): Remove.
34718 (odr_name_hasher, odr_vtable_hasher): New hashers.
34719 (can_be_name_hashed_p): New predicate.
34720 (hash_type_name): remove.
34721 (hash_odr_name): New.
34722 (odr_name_hasher::hash): new.
34723 (can_be_vtable_hashed_p): New.
34724 (hash_odr_vtable): New.
34725 (odr_vtable_hasher::hash): New.
34726 (types_same_for_odr): Add strict parameter.
34727 (types_odr_comparable): Likewise.
34728 (odr_name_hasher::equal): New.
34729 (odr_vtable_hasher::equal): New.
34730 (odr_name_hasher::remove): New.
34731 (odr_hash_type): Change to hash_table<odr_name_hasher>.
34732 (odr_vtable_hash_type): New.
34733 (odr_vtable_hash): New.
34734 (odr_subtypes_equivalent_p): Do strict comparsion.
34735 (add_type_duplicate): Merge type names; cleanup; avoid type
34737 (register_odr_type): Initialize vtable hash.
34738 (build_type_inheritance_graph): Likewise
34739 (get_odr_type): Reorg to use two hashes.
34740 (dump_possible_polymorphic_call_targets): Move sanity check after debug
34742 (ipa_devirt): Dump type_inheritance_graph.
34743 (types_same_for_odr): Add strict mode.
34745 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34748 * cgraph.h (symtab_node): Add definition_alignment,
34749 can_increase_alignment_p and increase_alignment.
34750 * symtab.c (symtab_node::can_increase_alignment_p,
34751 increase_alignment_1, symtab_node::increase_alignment,
34752 symtab_node::definition_alignment): New.
34753 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
34754 can_increase_alignment_p.
34755 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
34756 * tree-vect-stmts.c (ensure_base_align): Likewise.
34757 * varasm.c (function_section_1): Use definition_alignment.
34758 (assemble_start_function): Likewise.
34759 (emit_local): likewise.
34760 (build_constant_desc): Likewsie.
34761 (output_constant_def_contents): Likewise.
34762 (place_block_symbol): Likewise.
34763 (output_object_block): Likewise.
34765 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34768 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
34769 when outputting debug.
34771 2015-03-07 Marek Polacek <polacek@redhat.com>
34772 Martin Uecker <uecker@eecs.berkeley.edu>
34775 * doc/invoke.texi: Update description of -fsanitize=bounds.
34777 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
34779 * tree-ssa-phiopt.c (neg_replacement): Remove.
34780 (tree_ssa_phiopt_worker): Remove negate optimization.
34782 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34785 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
34787 2015-03-06 Richard Biener <rguenther@suse.de>
34789 PR middle-end/64928
34790 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
34791 and liveout_obstack members.
34792 (calculate_live_on_exit): Remove.
34793 (calculate_live_ranges): Change declaration.
34794 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
34795 (new_tree_live_info): Adjust.
34796 (calculate_live_ranges): Delete livein when not wanted.
34797 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
34798 Deal with partly deleted live info.
34799 (loe_visit_block): Remove temporary bitmap by using
34800 bitmap_ior_and_compl_into.
34801 (live_worklist): Adjust accordingly.
34802 (calculate_live_on_exit): Make static.
34803 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
34804 we do not need livein.
34806 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
34808 * real.c (real_from_string): Fix typo in assertion.
34810 2015-03-06 Alex Velenko <alex.velenko@arm.com>
34812 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
34815 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34817 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
34819 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
34822 * lra-assigns.c (find_hard_regno_for): Rename to
34823 find_hard_regno_for_1. Add a new parameter.
34824 (find_hard_regno_for): New function using find_hard_regno_for_1.
34826 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
34828 PR rtl-optimization/65067
34829 * expmed.c (store_bit_field, extract_bit_field): Reworked the
34830 strict volatile bitfield handling.
34832 2015-03-05 Martin Liska <mliska@suse.cz>
34835 * ipa-icf.c (sem_variable::equals): Compare variables types.
34837 2015-03-05 Richard Henderson <rth@redhat.com>
34840 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
34841 correctly check weak symbol binding.
34843 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
34845 PR middle-end/65315
34846 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
34849 2015-03-05 Martin Liska <mliska@suse.cz>
34851 * ipa-inline.c (inline_small_functions): Set default value to
34852 prevent warning during bootstrap.
34853 * tree.h: Add pragma guard that ignores false positives during
34856 2015-03-05 Richard Biener <rguenther@suse.de>
34858 PR tree-optimization/65310
34859 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
34860 Properly preserve alignment of the base of the access.
34862 2015-03-05 Richard Biener <rguenther@suse.de>
34865 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
34866 Compare dependence info.
34868 2015-03-05 Richard Biener <rguenther@suse.de>
34870 PR middle-end/65233
34871 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
34873 (walk_ssa_copies): Revert last chage. Instead do not walk
34874 SSA names registered for SSA update.
34876 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34879 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
34880 vtable references for their containing type.
34881 (sem_function::equals_wpa): Compare TYPE_RESTRICT
34882 and type attributes.
34884 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
34886 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
34887 before negating it.
34888 * stor-layout.c (finalize_record_size): Revert latest change.
34890 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
34892 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
34894 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34896 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
34897 for correct comdat handling.
34898 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34900 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
34901 (used_from_object_file_p_worker): Remove.
34902 (cgraph_node::only_called_directly_or_alised): Add
34903 used_from_object_file_p.
34904 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
34905 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
34906 can_remove_if_no_direct_calls_and_refs_p.
34908 2015-03-04 Nick Clifton <nickc@redhat.com>
34910 * config/rl78/rl78.h (enum reg_class): Remove real registers from
34911 General register class.
34912 * config/rl78/rl78-real.md: Replace general register constraints
34913 with real+virtual register constraints.
34915 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34917 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
34918 from checking for -mhtm option.
34920 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34922 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
34923 (struct ipa_sra_check_caller_data): Add has_thunk field.
34924 (ipa_sra_check_caller): Check for thunk.
34925 (ipa_sra_preliminary_function_checks): Give up on function with
34927 (ipa_early_sra): Use call_for_symbol_and_aliases.
34929 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
34932 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
34933 called for __stack_chk_guard symbol.
34935 2015-03-03 DJ Delorie <dj@redhat.com>
34937 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
34939 (*addhi3_real): Likewise.
34940 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
34941 pattern to match incrementing memory.
34942 * config/rl78/predicates.md (rl78_1_2_operand): New.
34943 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
34944 it's the same and only mem.
34945 (rl78_alloc_physical_registers_op2): If there's effectively only
34946 one MEM, transcode it into HL.
34947 (rl78_far_p): Reject addresses that aren't legitimate.
34949 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
34951 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
34954 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
34956 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
34958 Implement call0 ABI for xtensa
34959 * config/xtensa/constraints.md ("a" constraint): Include stack
34960 pointer in case of call0 ABI.
34961 ("q" constraint): Make empty in case of call0 ABI.
34962 ("D" constraint): Include stack pointer in case of call0 ABI.
34963 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
34964 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
34966 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
34968 (xtensa_regno_to_class): Make it a local variable in the
34969 function xtensa_regno_to_class.
34970 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
34971 macro, function prototype and implementation.
34972 (reg_nonleaf_alloc_order): Make it a local variable in the
34973 function order_regs_for_local_alloc.
34974 (xtensa_conditional_register_usage): New function.
34975 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
34976 (xtensa_valid_move): Allow direct moves to stack pointer
34977 register in call0 ABI.
34978 (xtensa_setup_frame_addresses): Only spill register windows in
34980 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
34981 call0 ABI respectively.
34982 (xtensa_function_arg_1): Only mark a7 register for copying in
34984 (xtensa_call_save_reg): New function.
34985 (compute_frame_size): Add space for callee saved register
34986 storage to the frame size in call0 ABI.
34987 (xtensa_expand_prologue): Generate code to set up stack frame
34988 and save callee-saved registers in call0 ABI.
34989 (xtensa_expand_epilogue): New function.
34990 (xtensa_set_return_address): New function.
34991 (xtensa_return_addr): Calculate return address in call0 ABI.
34992 (xtensa_builtin_saveregs): Only mark a7 register for copying and
34993 emit copying code in windowed ABI.
34994 (order_regs_for_local_alloc): Add preferred register allocation
34995 order for non-leaf function in call0 ABI.
34996 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
34997 (xtensa_asm_trampoline_template): Add trampoline generation for
34999 (xtensa_trampoline_init): Add trampoline initialization for
35001 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
35003 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
35004 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
35005 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
35006 ABI call-used registers.
35007 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
35008 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
35010 (REG_CLASS_CONTENTS): Include all registers into the preferred
35011 reload registers set, adjust the set in the
35012 xtensa_conditional_register_usage.
35013 (xtensa_regno_to_class): Drop variable declaration.
35014 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
35016 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
35018 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
35019 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
35020 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
35021 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
35022 location in call0 ABI.
35023 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
35024 stack adjustment size when handling exception.
35025 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
35026 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
35028 ("return" pattern): Generate ret.n/ret in call0 ABI.
35029 ("epilogue" pattern): Expand epilogue.
35030 ("nonlocal_goto" pattern): Use default in call0 ABI.
35031 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
35032 emit eh_set_a0_* depending on ABI.
35033 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
35034 ("eh_set_a0_call0", "blockage"): New patterns.
35036 2015-03-03 Martin Liska <mliska@suse.cz>
35039 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
35041 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
35044 * config/rs6000/rs6000-tables.opt: Regenerate table.
35046 2015-03-03 Renlin Li <renlin.li@arm.com>
35048 * doc/md.texi (@item ^): Change ? into ^.
35050 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
35052 * doc/tm.texi: Regenerated.
35054 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
35056 * builtins.c (expand_builtin_return_addr): Add
35057 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
35058 surrounding #ifdef.
35059 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
35061 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
35063 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
35065 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
35068 2015-03-03 Martin Jambor <mjambor@suse.cz>
35069 Eric Botcazou <ebotcazou@adacore.com>
35071 * tree-sra.c (ipa_sra_check_caller_data): New type.
35072 (has_caller_p): Removed.
35073 (ipa_sra_check_caller): New function.
35074 (ipa_sra_preliminary_function_checks): Use it.
35076 2015-03-03 Martin Liska <mliska@suse.cz>
35078 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
35079 instead of if branch.
35081 2015-03-03 Martin Liska <mliska@suse.cz>
35084 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
35086 2015-03-23 Jeff Law <law@redhat.com>
35088 PR tree-optimization/65241
35089 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
35090 hash table if INSERT is true.
35092 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35095 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
35097 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35100 * config/avr/avr.c (context.h, tree-pass.h): Include them.
35101 (avr_pass_data_recompute_notes): New static variable.
35102 (avr_pass_recompute_notes): New class.
35103 (avr_register_passes): New static function.
35104 (avr_option_override): Call it.
35106 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35108 Fix various problems with specs file generation.
35111 * config.gcc (extra_gcc_objs) [avr]: Remove.
35112 * config/avr/driver-avr.c: Remove file.
35113 * config/avr/t-avr (driver-avr.o): Remove rule.
35114 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
35115 INCLUDES to build. Depend on TM_H.
35116 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
35117 build warnings. Fix non-matching types and non-existing %-codes.
35119 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
35120 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
35121 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
35122 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
35123 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
35124 (LIBGCC_SPEC): Remove definitions.
35126 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
35128 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
35129 to create a register in testing mode.
35131 2015-03-03 Martin Liska <mliska@suse.cz>
35132 Jan Hubicka <hubicka@ucw.cz>
35135 * cgraph.c (cgraph_node::has_thunk_p): New function.
35136 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
35137 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
35138 (sem_function::merge): Assert is changed.
35140 2015-03-03 Martin Liska <mliska@suse.cz>
35141 Martin Jambor <mjambor@suse.cz>
35144 * ipa-icf.c (sem_item_optimizer::execute): Change function
35145 return value to boolean.
35146 (sem_item_optimizer::merge_classes): Likewise.
35147 (ipa_icf_driver): Return TODO_remove_functions in case there's
35148 a merge operation processed.
35149 * ipa-icf.h: Change function return value to boolean.
35151 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
35154 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
35155 processor type for 64-bit little endian PowerPC.
35157 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
35158 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
35159 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
35160 printing built-in mask so it does not pass NULL pointers.
35162 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
35165 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
35168 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
35169 !ISA_HAS_FP_CONDMOVE.
35171 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
35173 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
35176 2015-03-02 Ulrich Drepper <drepper@gmail.com>
35178 * doc/invoke.texi (Options for Code Generation Conventions):
35179 Fix URL of DSO paper.
35181 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35184 * ipa-inline.c (check_callers): Looks for recursion.
35185 (inline_to_all_callers): Give up on uninlinable or recursive edges.
35186 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
35187 summary of inline clones.
35188 (do_estimate_growth_1): Fix recursion check.
35190 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35193 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
35196 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35197 Aldy Hernandez <aldyh@redhat.com>
35200 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
35201 when checking TYPE_BINFO.
35203 2015-03-02 Richard Biener <rguenther@suse.de>
35206 * ipa-icf-gimple.c: Include builtins.h.
35207 (func_checker::compare_memory_operand): Compare base alignment.
35209 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
35212 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
35213 passed by reference.
35215 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
35218 * tree-chkp.c (chkp_check_lower): Don't check against
35219 zero bounds for already instrumented functions.
35220 (chkp_check_upper): Likewise.
35221 (chkp_fini): Clean pass local data to avoid wrong reusage.
35223 2015-02-28 Martin Liska <mliska@suse.cz>
35224 Jan Hubicka <hubicka@ucw.cz>
35226 * ipa-icf.c (sem_variable::equals): Improve debug output;
35227 get variable constructor.
35228 (sem_variable::parse): Do not filter out too early; give up on
35229 volatile and register vars.
35230 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
35232 * ipa-icf.h (sem_variable::init): Do not set ctor.
35233 (sem_variable::ctor): Remove.
35235 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
35237 PR middle-end/65233
35238 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
35240 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35242 * ipa-icf.c: Include stor-layout.h
35243 (sem_function::compare_cgraph_references): Rename to ...
35244 (sem_item::compare_cgraph_references): ... this one.
35245 (sem_variable::equals_wpa): New function
35246 (sem_variable::equals): Do not check stuff already verified by
35248 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
35249 * ipa-icf.h (sem_item): Add compare_cgraph_references.
35250 (sem_function): Remove compare_cgraph_references.
35251 (sem_variable): Turns equals_wpa into non-inline.
35253 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35255 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
35256 (sem_item::add_expr): New function.
35257 (sem_function::hash_stmt): Handle operands of most statements.
35258 (sem_variable::get_hash): Hash the actual constructor.
35259 * ipa-icf.h (sem_item): Add add_expr.
35260 (sem_function): Update prototype of hash_stmt
35262 2015-02-28 Martin Liska <mliska@suse.cz>
35263 Jan Hubicka <hubicka@ucw.cz>
35266 * ipa-icf-gimple.c (func_checker::compare_function_decl):
35268 (func_checker::compare_variable_decl): Skip symtab vars.
35269 (func_checker::compare_cst_or_decl): Update.
35270 * ipa-icf.c (sem_function::parse): Do not consider aliases.
35271 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
35272 use correct symtab predicates.
35273 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
35274 (sem_variable::parse): Update comment.
35275 (sem_item_optimizer::build_graph): Consider ultimate aliases
35278 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35280 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
35283 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35285 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
35286 (sem_variable::merge) Likewise.
35288 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35290 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
35291 target; also match flag_ipa_devirt.
35293 2015-03-01 Martin Liska <mliska@suse.cz>
35294 Jan Hubicka <hubicka@ucw.cz>
35296 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
35297 Validate variable alignment.
35298 * ipa-icf.c (sem_function::equals_private): Be more precise
35299 about non-common function attributes.
35300 (sem_variable::equals): Likewise.
35302 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35305 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
35306 across COMDAT group boundary.
35308 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35311 * ipa-icf.c (clear_decl_rtl): New function.
35312 (sem_function::merge): Clear RTL before forming alias.
35313 (sem_variable::merge): Clear RTL before forming alias.
35315 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35318 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
35320 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
35322 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
35325 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35327 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
35328 a typo in the description.
35330 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35333 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35334 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35335 * lra-constraints.c: Include "params.h".
35336 (EBB_PROBABILITY_CUTOFF): Use
35337 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
35338 (lra_inheritance): Use '<' instead of '<=' for
35339 EBB_PROBABILITY_CUTOFF.
35340 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
35343 2015-02-27 Martin Liska <mliska@suse.cz>
35345 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
35346 vector length condition.
35348 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
35350 * doc/extend.texi (x86 transactional memory intrinsics):
35351 Reorganize discussion of _xbegin. Clarify that the return
35352 value is a bit mask. Expand example and move to end of section.
35354 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35355 Aldy Hernandez <aldyh@redhat.com>
35357 PR rtl-optimization/65220
35358 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
35360 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35363 * lra-remat.c (update_scratch_ops): New.
35364 (do_remat): Call it.
35365 * lra.c (lra_register_new_scratch_op): New. Take code from ...
35366 (remove_scratches): ... here.
35367 * lra-int.h (lra_register_new_scratch_op): New prototype.
35369 2015-02-27 Marek Polacek <polacek@redhat.com>
35372 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
35373 -Wformat-signedness anymore.
35375 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35377 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
35379 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
35381 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35383 * config/s390/s390.c (enum s390_builtin):
35384 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
35385 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
35386 (s390_init_builtins): Generate new builtin functions.
35387 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
35388 (s390_sfpc, s390_efpc): New pattern definitions.
35390 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35392 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
35393 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
35394 (s390_builtin_decls): New array.
35395 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
35396 (s390_builtin_decl): New function.
35397 (TARGET_BUILTIN_DECL): Define macro.
35399 2015-02-27 Richard Biener <rguenther@suse.de>
35401 PR middle-end/63175
35402 * builtins.c (get_object_alignment_2): Make sure to re-apply
35403 the ANDed mask after recursing to its operand gets us a new
35404 misalignment bit position.
35406 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
35407 Martin Liska <mliska@suse.cz>
35410 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
35411 Use address_matters_p.
35412 (redirect_all_callers, set_addressable): New functions.
35413 (sem_function::merge): Reorganize and fix merging issues.
35414 (sem_variable::merge): Likewise.
35415 (sem_variable::compare_sections): Remove.
35416 * common.opt (fmerge-all-constants, fmerge-constants): Remove
35418 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
35420 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
35422 (address_matters_1): New function.
35423 (symtab_node::address_matters_p): New function.
35424 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
35425 check for merged flag.
35426 * cgraph.h (address_matters_p): Declare.
35427 (symtab_node::address_taken_from_non_vtable_p): Remove.
35428 (symtab_node::address_can_be_compared_p): New method.
35429 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
35430 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
35432 (comdat_can_be_unshared_p_1) Use address_matters_p.
35433 (update_vtable_references): Fix formating.
35434 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
35435 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
35436 * cgraphclones.c: Preserve merged and icf_merged flags.
35438 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
35440 * doc/extend.texi (Function Attributes): Fix spelling and typos.
35441 (Label Attributes): Likewise.
35442 (Cilk Plus Builtins): Likewise.
35443 (ARC SIMD Built-in Functions): Likewise.
35444 (ARM C Language Extensions (ACLE)): Likewise.
35445 (PowerPC Built-in Functions): Likewise.
35446 (PowerPC Hardware Transactional Memory Built-in Functions):
35449 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35451 PR tree-optimization/65216
35452 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
35453 new stmt and new SSA_NAME for lhs whenever the arguments have
35454 changed and weren't just swapped. Fix comment typo.
35456 PR tree-optimization/65215
35457 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
35458 for PDP endian targets.
35459 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
35460 Fix up formatting issues.
35461 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
35462 size is smaller than the original, adjust MEM_REF offset by the
35463 difference of sizes. Use is_gimple_mem_ref_addr instead of
35464 is_gimple_min_invariant test to avoid adding address temporaries.
35466 2015-02-26 Martin Liska <mliska@suse.cz>
35467 Jan Hubicka <hubicka@ucw.cz>
35470 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
35471 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
35472 (sem_item_optimizer::process_cong_reduction): Include division by
35473 sensitive references.
35474 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
35475 * ipa-ref.c (ipa_ref::address_matters_p): New function.
35476 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
35478 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
35481 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
35483 * config/avr/avr.c: Same.
35484 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
35485 Refuse any constant address not in 0..0xbf.
35486 * config/avr/avr.md (*mov<mode>, *movsf): Remove
35487 tiny_valid_direct_memory_access_range from insn conditions.
35488 (mov<mode>): Don't special-case expansion of avrtiny addresses.
35490 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
35493 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
35494 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
35495 * config/sh/predicates.md (const_logical_operand): New predicate.
35496 * config/sh/sh.md: Add new peephole2 patterns.
35498 2015-02-26 Marek Polacek <polacek@redhat.com>
35501 * ipa-inline.c (early_inliner): Recompute inline parameters.
35503 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35506 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
35507 instructions with TImode operands are included in the analysis.
35509 2015-02-26 Sebastian Pop <s.pop@samsung.com>
35511 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
35512 of an EDGE_FSM_THREAD.
35514 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
35516 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
35518 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
35521 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
35523 2015-02-26 Sebastian Pop <s.pop@samsung.com>
35525 PR tree-optimization/65048
35526 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
35527 (thread_through_all_blocks): Call valid_jump_thread_path.
35528 Remove invalid FSM jump-thread paths.
35530 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35532 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
35533 (ipa_write_optimization_summaries): Likewise.
35534 * tree-streamer.h: Include data-streamer.h.
35535 (streamer_mode_table): Declare extern variable.
35536 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
35537 * lto-streamer-out.c (lto_output_init_mode_table,
35538 lto_write_mode_table): New functions.
35539 (produce_asm_for_decls): Call lto_write_mode_table when streaming
35541 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
35542 (lto_create_simple_input_block): Add mode_table argument to the
35543 lto_input_block constructors.
35544 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
35546 * data-streamer-in.c (string_for_index): Likewise.
35547 * ipa-inline-analysis.c (inline_read_section): Likewise.
35548 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
35549 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
35550 * lto-streamer-in.c (lto_read_body_or_constructor,
35551 lto_input_toplevel_asms): Likewise.
35552 (lto_input_mode_table): New function.
35553 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
35554 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
35555 Use bp_pack_machine_mode.
35556 * real.h (struct real_format): Add name field.
35557 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
35558 (class lto_input_block): Add mode_table member.
35559 (lto_input_block::lto_input_block): Add mode_table_ argument,
35560 initialize mode_table.
35561 (struct lto_file_decl_data): Add mode_table field.
35562 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
35563 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
35564 unpack_ts_decl_common_value_fields,
35565 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
35566 * tree-streamer.c (streamer_mode_table): New variable.
35567 * real.c (ieee_single_format, mips_single_format,
35568 motorola_single_format, spu_single_format, ieee_double_format,
35569 mips_double_format, motorola_double_format,
35570 ieee_extended_motorola_format, ieee_extended_intel_96_format,
35571 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
35572 ibm_extended_format, mips_extended_format, ieee_quad_format,
35573 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
35574 decimal_single_format, decimal_double_format, decimal_quad_format,
35575 ieee_half_format, arm_half_format, real_internal_format): Add name
35577 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
35579 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
35582 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
35583 reordering for selective scheduling.
35585 2015-02-26 Terry Guo <terry.guo@arm.com>
35587 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
35588 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
35589 (arm_arch_no_volatile_ce): Declare new global variable.
35590 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
35591 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
35592 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
35593 (TARGET_NO_VOLATILE_CE): New macro.
35594 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
35595 volatile memory access in IT block
35597 2015-02-25 Kai Tietz <ktietz@redhat.com>
35599 PR tree-optimization/61917
35600 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
35601 that reduc_def_stmt is null.
35603 2015-02-25 Martin Liska <mliska@suse.cz>
35605 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
35606 hard register variables.
35608 2015-02-25 Kai Tietz <ktietz@redhat.com>
35611 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
35612 (symtab::noninterposable_alias): Likewise.
35614 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
35617 * config/i386/i386.c (ix86_function_arg_regno_p): Support
35619 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
35621 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
35624 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
35625 as split condition; force split via '#' in output pattern.
35627 2015-02-25 Richard Biener <rguenther@suse.de>
35628 Kai Tietz <ktietz@redhat.com>
35630 PR tree-optimization/61917
35631 * tree-vect-loop.c (vectorizable_reduction): Allow
35632 vect_internal_def without reduction to exit graceful.
35634 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35637 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
35638 only with NONDEBUG_INSN_P.
35640 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35642 Use variadic macros with avr-log.c.
35644 * config/avr/avr-protos.h (avr_vdump): New prototype.
35645 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
35646 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
35647 * config/avr/avr-log.c: Adjust comments.
35648 (avr_vdump): New function.
35649 (avr_vadump): Pass caller as 2nd argument instead of format string.
35650 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
35651 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
35653 2015-02-25 Jakub Jelinek <jakub@redhat.com>
35656 * target.def (target_option_stream_in): New target hook.
35657 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
35658 targetm.target_option.post_stream_in if non-NULL.
35659 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
35660 * doc/tm.texi: Updated.
35661 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
35663 (TARGET_OPTION_POST_STREAM_IN): Redefine.
35665 2015-02-24 Jeff Law <law@redhat.com>
35668 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
35669 of operand 0 and operand 2.
35670 (zero_cost_loop_end, loop_end): Similarly.
35672 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
35674 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
35677 2015-02-24 DJ Delorie <dj@redhat.com>
35679 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
35680 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
35681 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
35682 instead of hardcoding SImode.
35684 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
35686 * omp-low.c (create_omp_child_function): Tag entrypoint
35687 functions with a special attribute.
35689 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35692 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
35694 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
35696 PR rtl-optimization/65123
35697 * lra-remat.c (operand_to_remat): Check hard regs in insn
35700 2015-02-24 Nick Clifton <nickc@redhat.com>
35702 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
35705 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
35708 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
35709 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
35710 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
35711 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
35712 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
35713 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
35714 (BUILT_IN_GOACC_PARALLEL): Specify as
35715 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
35716 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
35717 * builtin-types.def
35718 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35719 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35720 Remove function types.
35721 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
35722 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35723 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35724 New function types.
35726 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
35728 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
35730 2015-02-24 Jakub Jelinek <jakub@redhat.com>
35732 PR tree-optimization/65170
35733 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
35734 if val[1] < 0, clear also val[2] and return 3.
35736 2015-02-24 Alan Modra <amodra@gmail.com>
35739 * config/rs6000/rs6000.c (get_memref_parts): Only return true
35740 when *base is a reg. Handle nested plus addresses. Simplify
35743 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
35745 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
35746 use natural alignment when optimizing for size.
35748 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
35751 * config/sh/sh.md (movsicc_true+3): Remove peephole.
35752 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
35753 * config/sh/sh.c (replace_n_hard_rtx): Remove.
35755 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
35758 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
35759 too big for a wide_int. Implement missing wrapping operation.
35761 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
35764 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
35765 instead of const_int 4294901760.
35767 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
35769 * config/avr/t-avr: Fix typo in comment.
35771 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
35773 * doc/rtl.texi (fma): Clarify documentation.
35775 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
35778 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
35779 over input_location.
35781 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
35783 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
35784 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
35785 restrict alignments to absolute_biggest_alignment.
35786 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
35788 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
35789 * doc/tm.texi: Regenerate.
35790 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
35792 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
35795 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
35797 2015-02-20 Richard Biener <rguenther@suse.de>
35799 PR tree-optimization/65136
35800 * tree-ssa-propagate.c: Include cfgloop.h.
35801 (replace_phi_args_in): Avoid replacing loop latch edge PHI
35802 arguments with constants.
35804 2015-02-20 Jakub Jelinek <jakub@redhat.com>
35805 Martin Liska <mliska@suse.cz>
35808 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
35809 don't try to create_thunk if stdarg_p. If
35810 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
35811 redirect_callers if possible.
35812 (sem_item_optimizer::execute): Call unregister_hooks here...
35813 (ipa_icf_driver): ... instead of here.
35815 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35817 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
35818 Mark operand 0 as earlyclobber in 2nd alternative.
35819 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
35820 Write negated shift amount into QI lowpart operand 0 and use it
35822 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
35824 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
35826 * cgraph.h (clone_function_name_1): Declare.
35827 * cgraphclones.c (clone_function_name_1): New function.
35828 (clone_function_name): Use it.
35829 * lto-partition.c: Include "stringpool.h".
35830 (must_not_rename, maybe_rewrite_identifier)
35831 (validize_symbol_for_target): New static functions.
35832 (privatize_symbol_name): Use must_not_rename.
35833 (promote_symbol): Call validize_symbol_for_target.
35834 (lto_promote_cross_file_statics): Likewise.
35835 (lto_promote_statics_nonwpa): Likewise.
35837 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
35840 * config/avr/avr.md (pushhi_insn): New insn.
35841 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
35843 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
35844 Jakub Jelinek <jakub@redhat.com>
35846 * tree-streamer.c (preload_common_nodes): Don't preload
35847 TI_VA_LIST* for offloading.
35848 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
35851 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
35853 * config/pa/pa.c (pa_emit_move_sequence): Always force
35854 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
35857 * config/pa/pa.c (pa_reloc_rw_mask): New function.
35858 (TARGET_ASM_RELOC_RW_MASK): Define.
35859 (pa_cannot_force_const_mem): Revert previous change.
35861 2015-02-19 Martin Jambor <mjmabor@suse.cz>
35862 Jan Hubicka <hubicka@ucw.cz>
35865 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
35866 across jump functions.
35868 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
35870 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
35872 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
35874 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
35876 2015-02-19 Richard Henderson <rth@redhat.com>
35878 PR middle-end/65074
35879 * varasm.c (default_binds_local_p_2): Don't test node->definition;
35880 test DECL_EXTERNAL independent of symtab_node.
35882 2015-02-19 Jakub Jelinek <jakub@redhat.com>
35885 * varpool.c (varpool_node::get_constructor): Return early
35886 if this->lto_file_data is NULL.
35888 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35890 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
35891 (rank_for_schedule_debug): Update.
35892 (ready_sort): Make static. Move sorting logic to ...
35893 (ready_sort_debug, ready_sort_real): New static functions.
35894 (schedule_block): Sort both debug insns and real insns in preparation
35895 for ready list trimming. Improve debug output.
35896 * sched-int.h (ready_sort): Remove global declaration.
35898 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
35900 * ipa-icf.c (sem_function::equals_private): Adjust.
35901 (sem_function::bb_dict_test): Take a vec<int> * instead of
35903 * ipa-icf.h (bb_dict_test): Likewise.
35905 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35907 PR gcov-profile/64634
35908 * tree-eh.c (frob_into_branch_around): Fix up typos
35909 in function comment.
35910 (lower_catch): Put eh_seq resulting from EH lowering of
35911 the cleanup sequence after the cleanup rather than before it.
35913 2015-02-18 Tom de Vries <tom@codesourcery.com>
35915 * common.opt (fstdarg-opt): New option.
35916 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
35917 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
35918 (@item -fstdarg-opt): New item.
35920 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
35923 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
35924 for common symbols.
35926 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35928 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
35930 (ALL_HOST_OBJS): Add mkoffload.o.
35931 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
35933 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
35935 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
35936 (compare_virtual_tables): Be smarter about skipping typeinfos;
35937 do sane output on virtual table table mismatch.
35938 (warn_odr): Be ready for forward declarations of enums;
35939 output sane info on base mismatch and virtual table mismatch.
35940 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
35941 when only one type is polymorphic.
35942 (get_odr_type): Fix hashtable corruption.
35943 (dump_odr_type): Dump mangled names.
35945 2015-02-18 Richard Biener <rguenther@suse.de>
35947 PR tree-optimization/65063
35948 * tree-predcom.c (determine_unroll_factor): Return 1 if we
35949 have replaced looparound PHIs.
35951 2015-02-18 Martin Liska <mliska@suse.cz>
35953 * lto-streamer.c (lto_streamer_init): Encapsulate
35954 streamer_check_handled_ts_structures with checking macro.
35956 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35959 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
35960 section if !implicit_section.
35961 (cgraph_node::create_version_clone_with_body): Likewise.
35962 * trans-mem.c (ipa_tm_create_version): Likewise.
35964 2015-02-18 Richard Biener <rguenther@suse.de>
35966 PR tree-optimization/62217
35967 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
35970 2015-02-18 Marek Polacek <polacek@redhat.com>
35973 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
35974 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
35975 is in range [-16K, -1]. Don't issue run-time error if
35976 (ptr > ptr + offset).
35978 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
35980 * doc/install.texi (nvptx-*-none): New section.
35981 * doc/invoke.texi (Nvidia PTX Options): Likewise.
35982 * config/nvptx/nvptx.opt: Update.
35984 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
35985 (access_check): New functions, copied from
35986 config/i386/intelmic-mkoffload.c.
35987 (main): For non-installed testing, look in all COMPILER_PATHs for
35990 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
35992 2015-02-18 Andrew Pinski <apinski@cavium.com>
35993 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35995 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
35996 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
35998 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
36000 * ipa-visibility.c (function_and_variable_visibility): Only
36001 check locality if node is not already local.
36002 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36003 call_for_symbol_and_aliases instead of
36004 call_for_symbol_thunks_and_aliases.
36005 (ipa_inline): Likewise.
36006 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36007 first walk aliases.
36008 * ipa.c (symbol_table::remove_unreachable_nodes): Use
36009 call_for_symbol_and_aliases.
36010 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36011 (ipa_propagate_frequency_1): Use it; use opt_for_fn
36012 (ipa_propagate_frequency): Update.
36013 (ipa_profile): Add opt_for_fn gueards.
36015 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
36017 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
36018 * doc/invoke.texi (SH options): Document it.
36019 * config/sh/sh.c (sh_insn_length_adjustment): Check
36020 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
36022 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
36024 * common.opt (fipa-cp-alignment): New.
36025 * ipa-cp.c (ipcp_store_alignment_results): Check
36026 flag_ipa_cp_alignment.
36027 * opts.c (default_options_table): Enable -fipa-cp-alignment for
36029 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
36030 * doc/invoke.texi: Document -fipa-cp-alignment.
36032 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
36035 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
36036 to nil. Adjust comments.
36038 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
36040 * ipa-visibility.c (function_and_variable_visibility): Only
36041 check locality if node is not already local.
36042 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36043 call_for_symbol_and_aliases instead of
36044 call_for_symbol_thunks_and_aliases.
36045 (ipa_inline): Likewise.
36046 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36047 first walk aliases.
36048 * ipa.c (symbol_table::remove_unreachable_nodes): Use
36049 call_for_symbol_and_aliases.
36050 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36051 (ipa_propagate_frequency_1): Use it; use opt_for_fn
36052 (ipa_propagate_frequency): Update.
36053 (ipa_profile): Add opt_for_fn guards.
36055 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
36057 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
36058 skipping of "strange" tokens.
36060 2015-02-17 Jeff Law <law@redhat.com>
36062 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
36065 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
36067 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
36068 as forcing a HARD_DEP between instructions, thereby
36069 disallowing rewriting to break dependencies.
36071 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
36073 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
36074 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
36075 variables in boundary that have no inlitalizer encoded and are
36077 * varasm.c (default_binds_local_p_2): External definitions do not
36078 count as definitions here.
36080 2015-02-16 Jeff Law <law@redhat.com>
36082 PR tree-optimization/64823
36083 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
36085 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36086 threading through blocks with PHIs, but no statements.
36087 (thread_through_normal_block): Distinguish between blocks where
36088 we did not process all the statements and blocks with no statements.
36090 2015-02-16 Jakub Jelinek <jakub@redhat.com>
36091 James Greenhalgh <james.greenhalgh@arm.com>
36094 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
36095 section if not linkonce. Fix up formatting.
36096 (cgraph_node::create_version_clone_with_body): Copy section.
36097 * trans-mem.c (ipa_tm_create_version): Likewise.
36099 2015-02-16 Richard Biener <rguenther@suse.de>
36101 PR tree-optimization/65077
36102 * tree-ssa-structalias.c (get_constraint_for_1): Handle
36103 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
36104 (find_func_aliases): Allow float values to carry pointers again.
36106 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
36108 * doc/install.texi (Specific): Reorder targets list to put
36109 aarch64 in alphabetical order. Add a link to aarch64*-*-*
36112 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36113 David Edelsohn <dje.gcc@gmail.com>
36116 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
36117 mapping class to external variable or function reference.
36118 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
36121 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
36124 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
36125 ASM_WEAKEN_DECL if defined.
36127 2015-02-16 Richard Biener <rguenther@suse.de>
36130 * varasm.c (default_file_start): For LTO produced units
36131 emit <artificial> as file directive.
36133 2015-02-16 Richard Biener <rguenther@suse.de>
36135 PR tree-optimization/63593
36136 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
36137 stmts and releasing SSA names until...
36138 (execute_pred_commoning): ... after processing all chains.
36140 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
36143 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
36144 external functions.
36146 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
36148 * doc/bugreport.texi: Adjust section titles throughout the file
36149 to use "Title Case".
36150 * doc/extend.texi: Likewise.
36151 * doc/gcov.texi: Likewise.
36152 * doc/implement-c.texi: Likewise.
36153 * doc/implement-cxx.texi: Likewise.
36154 * doc/invoke.texi: Likewise.
36155 * doc/objc.texi: Likewise.
36156 * doc/standards.texi: Likewise.
36157 * doc/trouble.texi: Likewise.
36159 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
36161 * cgraph.h (symtab_node::has_aliases_p): Simplify.
36162 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
36163 * tree.c (lookup_binfo_at_offset): Make static.
36164 (get_binfo_at_offset): Do not shadow offset; add explanatory
36167 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
36169 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
36170 for all floading point loads and stores except those using a register
36172 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
36175 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
36177 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
36178 (do_estimate_growth_1): Record if any uninlinable edge was seen.
36179 (estimate_growth): Handle uninlinable edges correctly.
36180 (check_callers): New.
36181 (growth_likely_positive): Handle aliases correctly.
36183 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
36185 * ipa-chkp.c: Use iterate_direct_aliases.
36186 * symtab.c (resolution_used_from_other_file_p): Move inline.
36187 (symtab_node::create_reference): Fix formating.
36188 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36189 (symtab_node::iterate_reference): Move inline.
36190 (symtab_node::iterate_referring): Move inline.
36191 (symtab_node::iterate_direct_aliases): Move inline.
36192 (symtab_node::used_from_object_file_p_worker): Inline into ...
36193 (symtab_node::used_from_object_file_p): ... this one; move inline.
36194 (symtab_node::call_for_symbol_and_aliases): Move inline;
36195 use iterate_direct_aliases.
36196 (symtab_node::call_for_symbol_and_aliases_1): New method.
36197 (cgraph_node::call_for_symbol_and_aliases): Move inline;
36198 use iterate_direct_aliases.
36199 (cgraph_node::call_for_symbol_and_aliases_1): New method.
36200 (varpool_node::call_for_node_and_aliases): Rename to ...
36201 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
36202 use iterate_direct_aliases.
36203 (varpool_node::call_for_symbol_and_aliases_1): New method.
36204 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
36205 (ipa_discover_readonly_nonaddressable_var): Update.
36206 * ipa-devirt.c: Fix formating.
36207 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
36209 (cgraph_node::call_for_symbol_and_aliases): Move inline.
36210 (cgraph_node::call_for_symbol_and_aliases_1): New function..
36211 * cgraph.h (used_from_object_file_p_worker): Remove.
36212 (resolution_used_from_other_file_p): Move inline.
36213 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36214 (symtab_node::iterate_reference): Move inline.
36215 (symtab_node::iterate_referring): Move inline.
36216 (symtab_node::iterate_direct_aliases): Move inline.
36217 (symtab_node::used_from_object_file_p_worker): Inline into ...
36218 (symtab_node::used_from_object_file_p): Move inline.
36219 * tree-emutls.c (ipa_lower_emutls): Update.
36220 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
36221 (varpool_node::call_for_node_and_aliases): Remove.
36223 2015-02-14 Jakub Jelinek <jakub@redhat.com>
36225 PR tree-optimization/62209
36226 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
36227 op == range->exp, insert seq and gimplified code after labels
36228 instead of after the phi.
36230 2015-02-13 Jeff Law <law@redhat.com>
36233 Revert my change for tree-optimization/64823.
36235 2015-02-13 Jakub Jelinek <jakub@redhat.com>
36237 PR tree-optimization/65053
36238 * tree-ssa-phiopt.c (value_replacement): When moving assign before
36239 cond, either reset VR on lhs or set it to phi result VR.
36241 2015-02-13 Jeff Law <law@redhat.com>
36243 PR tree-optimization/64823
36244 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
36245 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36246 threading through blocks with PHIs, but no statements.
36247 (thread_through_normal_block): Distinguish between blocks where
36248 we did not process all the statements and blocks with no statements.
36250 PR rtl-optimization/47477
36251 * match.pd (convert (plus/minus (convert @0) (convert @1): New
36252 simplifier to narrow arithmetic.
36254 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
36257 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
36258 polymorphic call info when type is not known to be preserved.
36260 2015-02-13 Maritn Jambor <mjambor@suse.cz>
36263 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
36264 (inline_call): Use it.
36266 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
36268 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
36269 GOMP_DEVICE_NVIDIA_PTX.
36271 2015-02-13 Jakub Jelinek <jakub@redhat.com>
36274 * stmt.c (emit_case_nodes): Use void_type_node instead of
36275 NULL_TREE as LABEL_DECL type.
36277 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
36279 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
36281 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
36282 symbolic references to data to be forced to constant memory on the
36285 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
36287 PR tree-optimization/65002
36288 * tree-cfg.c (pass_data_fixup_cfg): Don't update
36290 * tree-sra.c (some_callers_have_no_vuse_p): New.
36291 (ipa_early_sra): Reject functions whose callers
36292 assume function is read only.
36294 2015-02-13 Richard Biener <rguenther@suse.de>
36297 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
36298 for LTO produced CUs.
36300 2015-02-13 Bin Cheng <bin.cheng@arm.com>
36302 PR tree-optimization/64705
36303 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
36304 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
36305 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
36306 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
36307 expand_simple_operations.
36309 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
36310 Richard Henderson <rth@redhat.com>
36313 * cgraphunit.c (cgraph_node::finalize_function): Set definition
36314 before notice_global_symbol.
36315 (varpool_node::finalize_decl): Likewise.
36316 * varasm.c (default_binds_local_p_2): Rename from
36317 default_binds_local_p_1, add weak_dominate argument. Use direct
36318 returns instead of assigning to local variable. Unify varpool and
36319 cgraph paths via symtab_node. Reject undef weak variables before
36320 testing visibility. Reorder tests for simplicity.
36321 (default_binds_local_p): Use default_binds_local_p_2.
36322 (default_binds_local_p_1): Likewise.
36323 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
36325 (default_elf_asm_output_external): Emit visibility when specified.
36327 2015-02-13 Alan Modra <amodra@gmail.com>
36329 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
36330 code setting up r11 for out-of-line fp restore.
36332 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
36334 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
36335 (muser-mode): Likewise.
36337 2015-02-13 Alan Modra <amodra@gmail.com>
36339 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
36340 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
36342 2015-02-12 David Howells <dhowells@redhat.com>
36344 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
36346 * tree-ssa-uninit.c (dump_predicates): Likewise.
36347 * opts.c (print_filtered_help): Likewise.
36349 2015-02-12 Jakub Jelinek <jakub@redhat.com>
36351 * dwarf2out.c (output_die): Use "%s", name instead of name to
36352 avoid -Wformat-security warning.
36354 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
36355 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36356 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
36357 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36359 2015-02-12 Jason Merrill <jason@redhat.com>
36361 * common.opt (-flifetime-dse): New.
36363 2015-02-12 Jakub Jelinek <jakub@redhat.com>
36366 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
36368 PR tree-optimization/65014
36369 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
36370 use original second operand of arg0 or arg1 instead of
36371 that adjusted by STRIP_NOPS.
36373 2015-02-11 Jeff Law <law@redhat.com>
36376 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
36377 that needs to be queued, just queue it for a single cycle.
36379 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
36381 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
36382 bodies of thunks; comment on why.
36383 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
36384 symbols are extern.
36386 2015-02-11 Richard Henderson <rth@redhat.com>
36389 * tree-eh.c (mark_reachable_handlers): Mark source and destination
36390 regions of __builtin_eh_copy_values.
36392 2015-02-11 Jakub Jelinek <jakub@redhat.com>
36394 PR middle-end/65003
36395 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
36396 ultimate alias is MEM with SYMBOL_REF satisfying
36397 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
36398 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
36400 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
36402 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
36403 "diagnostic-core.h".
36404 (main): Initialize progname, and call diagnostic_initialize.
36406 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
36407 instead of __OPENMP_TARGET__.
36409 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
36410 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
36411 hard-coding PTX_ID.
36413 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
36415 * doc/sourcebuild.texi (pie_enabled): Document.
36417 2015-02-11 Martin Liska <mliska@suse.cz>
36420 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
36421 a return value for call to a function that is noreturn.
36423 2015-02-11 Richard Biener <rguenther@suse.de>
36426 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
36429 2015-02-11 Andrew Pinski <apinski@cavium.com>
36432 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
36433 Change the first argument type to size_type_node and add another
36435 (aarch64_simd_expand_builtin): Handle the new argument to
36436 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
36437 print an out when the first two arguments are not
36438 nonzero integer constants.
36439 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
36440 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
36442 2015-02-11 Jakub Jelinek <jakub@redhat.com>
36445 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
36446 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
36447 (ix86_set_current_function): Rewritten.
36448 (ix86_add_new_builtins): Temporarily clear current_target_pragma
36449 when creating builtin fndecls.
36451 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36454 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
36456 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
36457 have no comdat group.
36458 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
36459 (lto_output_varpool_node): Always output alias info.
36460 (output_refs): Output refs of boundary aliases, too.
36461 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
36462 (output_symtab): Output call eges in thunks in boundary.
36463 (get_alias_symbol): Remove.
36464 (input_node, input_varpool_node): Do not special case weakrefs.
36465 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
36466 alias and thunks targets in the boundary; do not take removed symbols
36467 from their comdat groups.
36468 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
36469 (cgraph_node::global_info): Remove.
36470 (cgraph_node::rtl_info): Look through aliases and thunks.
36471 * cgrpah.h (global_info): Remove.
36472 (non_local_p): Remove.
36474 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36475 Sandra Loosemore <sandra@codesourcery.com>
36477 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
36478 to inline asm. List dialects in proper order.
36480 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36481 Sandra Loosemore <sandra@codesourcery.com>
36483 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
36485 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36487 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
36488 modified) reference to Solaris.
36490 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
36492 * doc/extend.texi (Extended Asm): Fix typos.
36494 2015-02-10 Jakub Jelinek <jakub@redhat.com>
36497 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
36499 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
36502 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
36503 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
36504 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
36505 * config/sh/constraints.md (Ara, Add): New constraints.
36506 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
36508 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
36509 atomic_mem_operand_0. Don't use force_reg on the memory address.
36510 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
36511 Sra constraint. Convert to insn_and_split. Add workaround for
36513 (atomic_compare_and_swap<mode>_hard): Copy to
36514 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
36515 Use atomic_mem_operand_0 predicate.
36516 (atomic_compare_and_swap<mode>_soft_gusa,
36517 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
36518 AraAdd constraints.
36519 (atomic_compare_and_swap<mode>_soft_tcb,
36520 atomic_compare_and_swap<mode>_soft_imask,
36521 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
36522 atomic_mem_operand_0 predicate and SraSdd constraints.
36523 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
36525 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
36526 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
36527 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
36528 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
36529 force_reg on the memory address.
36530 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
36531 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
36532 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
36533 atomic_mem_operand_1 predicate and Sra constraint.
36534 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
36535 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
36536 Use atomic_mem_operand_1 predicate.
36537 (atomic_<fetchop_name><mode>_hard): Copy to
36538 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
36539 Use atomic_mem_operand_1 predicate.
36540 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
36541 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
36542 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
36543 insn_and_split. Use atomic_mem_operand_1 predicate.
36544 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
36545 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
36546 Use atomic_mem_operand_1 predicate.
36547 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
36548 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
36549 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
36550 in generated insn with original mem operand before emitting the insn.
36551 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
36552 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
36553 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
36554 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
36555 Use atomic_mem_operand_1 predicate and AraAdd constraints.
36556 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
36557 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
36558 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
36559 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
36560 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
36561 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
36562 atomic_not_fetch<mode>_soft_tcb,
36563 atomic_<fetchop_name>_fetch<mode>_soft_imask,
36564 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
36565 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
36566 Use atomic_mem_operand_1 predicate and SraSdd constraints.
36568 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
36570 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
36571 and 3 earlyclobber operands.
36573 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36575 * common.opt (fstack-reuse): Mark as optimization.
36577 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36580 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
36582 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
36584 PR tree-optimization/64326
36585 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
36587 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
36589 PR gcov-profile/61889
36590 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
36592 2015-02-10 Richard Biener <rguenther@suse.de>
36594 PR tree-optimization/64995
36595 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
36596 value we use is final.
36597 (visit_reference_op_store): Always valueize op.
36598 (visit_use): Properly valueize vuses.
36600 2015-02-10 Richard Biener <rguenther@suse.de>
36602 PR tree-optimization/64909
36603 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
36604 pass a scalar-stmt count estimate to the cost model.
36605 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
36607 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
36609 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
36610 enabled by default together with var-tracking.
36612 2015-02-10 Nick Clifton <nickc@redhat.com>
36614 * config/rl78/rl78.c: Remove DIV attribute code accidentally
36615 included in previous rl78 commit.
36617 2015-02-10 Richard Biener <rguenther@suse.de>
36619 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
36620 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
36621 return the bitpack.
36623 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36625 PR gcov-profile/61889
36626 * config.in: regenerate.
36627 * configure.in: Likewise.
36628 * configure.ac: Check for ftw.h.
36629 * gcov-tool.c: Check for ftw.h before using nftw.
36631 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36634 * ipa-visibility.c (update_visibility_by_resolution_info): Only
36635 assert when not in lto mode.
36637 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
36639 * ira-color.c (setup_left_conflict_sizes_p): Simplify
36640 initialization/assignment of conflict_size.
36642 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
36645 * ipa-cp.c (gather_caller_stats): Skip thunks.
36646 (propagate_constants_topo): Skip aliases.
36648 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
36651 * config/sh/sh.c (sh_option_override): Don't change
36652 -freorder-blocks-and-partition to -freorder-blocks even when
36653 unwinding is enabled.
36654 (sh_can_follow_jump): Return false if the followee jump is
36655 a crossing jump when -freorder-blocks-and-partition is specified.
36656 * config/sh/sh.md (*jump_compact_crossing): New insn.
36658 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
36659 Kaz Kojima <kkojima@gcc.gnu.org>
36662 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
36663 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
36664 (sh_can_redirect_branch): Rename to ...
36665 (sh_can_follow_jump): ... this. Constify argument types.
36666 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
36667 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
36668 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
36669 * doc/tm.texi: Regenerate.
36671 2015-02-09 Jakub Jelinek <jakub@redhat.com>
36674 * builtins.c (expand_builtin): Call targetm.expand_builtin
36675 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
36677 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36680 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
36682 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36685 * ipa-icf.c (set_local): New function.
36686 (sem_function::merge): Use it.
36688 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36690 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
36691 (add_type_duplicate): Fix comparison of BINFOs.
36693 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36695 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
36696 on getting VOID pointer.
36698 2015-02-09 Jakub Jelinek <jakub@redhat.com>
36701 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
36704 2015-02-09 Richard Biener <rguenther@suse.de>
36706 * genmatch.c (replace_id): Copy expr_type.
36708 2015-02-09 Richard Biener <rguenther@suse.de>
36710 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
36711 (streamer_write_tree_bitfields): Declare.
36712 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
36713 properly unpack padding.
36714 (unpack_value_fields): Inline ...
36715 (streamer_read_tree_bitfields): ... here.
36716 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
36717 and properly add padding bits.
36718 (streamer_pack_tree_bitfields): Fold into ...
36719 (streamer_write_tree_bitfields): ... this new function,
36720 exposing the bitpack object.
36721 * lto-streamer-out.c (lto_write_tree_1): Call
36722 streamer_write_tree_bitfields.
36724 2015-02-09 Richard Biener <rguenther@suse.de>
36726 PR tree-optimization/54000
36727 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
36728 (struct ivopts_data): Add loop_loc member.
36729 (tree_ssa_iv_optimize_loop): Dump loop location.
36730 (create_new_ivs): Likewise, also dump number of IVs generated.
36732 2015-02-09 Martin Liska <mliska@suse.cz>
36734 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
36735 just if not yet registered.
36736 (ipa_icf_generate_summary): Register callgraph hooks.
36738 2015-02-08 Andrew Pinski <apinski@cavium.com>
36740 * config/aarch64/aarch64.c (gty_dummy): Delete.
36742 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36745 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
36746 (cgraph_node::local_p): Remove thunk related FIXME.
36748 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36751 * i386.c (ix86_function_regparm): Look through aliases to see if callee
36752 is local and optimized.
36753 (ix86_function_sseregparm): Likewise; also use target's SSE math
36754 settings; error out instead of silently generating wrong code
36756 (init_cumulative_args): Look through aliases.
36758 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36761 * ipa-split.c (execute_split_functions): Split if function has aliases.
36763 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36766 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
36767 aliases before trying to expand it.
36768 (cgraph_node::expand_thunk): Fix formating.
36770 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
36772 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
36773 (Using Assembly Language with C): Expand introduction.
36774 (Basic Asm): Copy-edit. Add more information about uses of
36776 (Extended Asm): Copy-edit. Document new escape syntax and
36778 (Global Reg Vars): Copy-edit.
36779 (Local Reg Vars): Likewise.
36781 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
36785 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
36786 (DBX_CONTIN_CHAR): Define.
36788 2015-02-06 Sebastian Pop <s.pop@samsung.com>
36789 Brian Rzycki <b.rzycki@samsung.com>
36791 PR tree-optimization/64878
36792 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
36793 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
36794 Stop recursion at loop phi nodes after having visited a loop phi node.
36796 2015-02-06 Jakub Jelinek <jakub@redhat.com>
36798 * toplev.c (process_options): Change flag_ipa_ra before creating
36799 optimization_{default,current}_node.
36802 * cgraphunit.c (cgraph_node::expand_thunk): If
36803 restype is not is_gimple_reg_type nor the thunk_fndecl
36804 returns aggregate_value_p, set restmp to a temporary variable
36805 instead of resdecl.
36807 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
36809 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
36811 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
36814 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
36815 add a general secondary reload handler for SDmode, unless we have
36816 both read/write support for SDmode.
36818 2015-02-06 Jakub Jelinek <jakub@redhat.com>
36820 PR middle-end/64937
36821 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
36822 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
36823 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
36824 1 before, push it to abstract_vec.
36825 (dwarf2out_abstract_function): Adjust caller. Don't call
36826 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
36827 DECL_ABSTRACT_P flags for all abstract_vec elts.
36829 2015-02-06 Renlin Li <renlin.li@arm.com>
36831 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
36833 * tree-ssa.c (execute_update_addresses_taken): Likewise.
36835 2015-02-06 Jeff Law <law@redhat.com>
36838 * config/h8300/h8300.c (push): New argument "in_prologue".
36839 Pass "in_prologue" along to "F".
36840 (h8300_push_pop): Corresponding changes.
36841 (h8300_expand_prologue): Likewise.
36842 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
36844 2015-02-06 Jakub Jelinek <jakub@redhat.com>
36846 PR rtl-optimization/64957
36848 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
36849 IOR rather than for AND.
36851 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
36854 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
36855 of shift-add and (add + shift) operations. Rename local variable.
36857 2015-02-05 Jeff Law <law@redhat.com>
36860 * config/h8300/constraints.md (U): Correctly dectect
36861 "eightbit_data" memory addresses.
36862 * config/h8300/h8300.c (eightbit_constant_address_p): Also
36863 handle (const (plus (symbol_ref (x)))) where x is declared
36864 as an 8-bit data memory address.
36865 * config/h8300/h8300.md (call, call_value): Correctly detect
36866 "funcvec" functions.
36869 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
36870 24 to 28 bits for the H8/300.
36872 2015-02-06 Alan Modra <amodra@gmail.com>
36875 * config/rs6000/rs6000.c (chain_already_loaded): New function.
36876 (rs6000_call_aix): Use it.
36878 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
36880 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
36883 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
36885 * config/h8300/constraints.md ("U" constraint): Use strict
36886 variant of REG_OK_FOR_BASE_P after reload has started.
36888 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
36890 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
36891 define to zero if !TARGET_NEON.
36892 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
36894 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36895 Trevor Saunders <tsaunders@mozilla.com>
36898 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
36900 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36903 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
36904 when removing varpool nodes.
36906 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36909 * varpool.c (varpool_node::remove): Fix order of variables.
36911 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36914 * ipa-inline.c (inline_small_functions): Fix ordering issue between
36915 speculation resolution and key updates.
36917 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36919 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
36920 about not letting any speculative edges unupdated.
36922 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36925 * gcov-io.c (gcov_var): Export.
36927 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36929 PR middle-end/64922
36930 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
36931 edges that become speculative.
36933 2015-02-04 Jakub Jelinek <jakub@redhat.com>
36935 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
36936 or DW_LANG_Fortran08.
36937 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
36939 (gen_compile_unit_die): Handle "GNU Fortran2003" and
36940 "GNU Fortran2008" language strings.
36941 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
36942 * langhooks.h (lang_GNU_Fortran): New prototype.
36943 * langhooks.c (lang_GNU_Fortran): New function.
36944 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
36947 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
36949 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
36950 (RTX_OK_FOR_OLO10_P): Likewise.
36952 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
36954 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
36956 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36958 PR middle-end/64922
36959 * gimple.c: Include gimple-ssa.h.
36960 (maybe_remove_unused_call_args): New function.
36961 * gimple.h (maybe_remove_unused_call_args): Declare.
36962 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
36963 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
36964 * gimple-fold.c (gimple_fold_call): Likewise.
36966 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
36968 PR rtl-optimization/64905
36969 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
36970 pointer alignment if it isn't needed.
36972 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
36974 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
36975 cortex-a72.cortex-a53.
36976 * config/aarch64/aarch64-tune.md: Regenerate.
36977 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
36979 2015-02-04 Nick Clifton <nickc@redhat.com>
36981 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
36984 2015-02-04 Jakub Jelinek <jakub@redhat.com>
36986 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
36987 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
36988 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
36990 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
36991 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
36992 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
36993 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
36994 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
36995 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
36996 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
36997 * tree-core.h (enum built_in_function): In between
36998 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
36999 for builtins that use DEF_BUILTIN_CHKP macro.
37001 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
37004 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
37005 operands for tcc_comparison exprs. Fix typos.
37008 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
37009 of two XORs that have an intervening AND or IOR.
37012 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
37013 simplification of XOR of AND to not allocate new rtx before
37014 committing to a simplification.
37016 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37018 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
37019 manual swaps in all peepholes.
37021 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37023 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
37024 of manual swapping implementation.
37025 (aarch64_expand_vec_perm_const_1): Likewise.
37027 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
37029 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
37030 (generic_addrcost_table): Remove NAMED_PARAM.
37031 (cortexa57_addrcost_table): Likewise.
37032 (xgene1_addrcost_table): Likewise.
37033 (generic_regmove_table): Likewise.
37034 (cortexa53_regmove_table): Likewise.
37035 (xgene1_regmove_table): Likewise.
37036 (generic_vector_table): Likewise.
37037 (cortexa57_vector_table): Likewise.
37038 (xgene1_vector_table): Likewise.
37039 (generic_tunings): Likewise.
37040 (cortexa53_tunings): Likewise.
37041 (cortexa57_tunings): Likewise.
37042 (xgene1_tunings): Likewise.
37044 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
37046 * config/arm/arm-cores.def: Add cortex-a72 and
37047 cortex-a72.cortex-a53.
37048 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
37049 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
37050 * config/arm/arm-tune.md: Regenerate.
37051 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
37052 "cortex-a72.cortex-a53".
37053 * doc/invoke.texi (ARM Options/-mtune): Likewise.
37055 2015-02-04 Nick Clifton <nickc@redhat.com>
37058 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
37060 (nonimmediate_di_operand): Likewise.
37062 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
37063 prefixes of known F5 using MSP430 MCUs.
37065 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37067 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
37068 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
37069 instead of __builtin_sqrt.
37071 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
37073 * varasm.c (do_assemble_alias): Follow transparent alias
37075 (default_assemble_visibility): Follow transparent alias
37076 chain for decl name.
37078 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
37080 PR middle-end/62103
37081 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
37082 to compute size of referenced value in the constant case.
37084 2015-02-03 Jakub Jelinek <jakub@redhat.com>
37086 PR rtl-optimization/64756
37087 * cse.c (invalidate_dest): New function.
37088 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
37089 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
37090 invalidate and do not record it.
37092 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37095 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
37096 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
37097 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
37098 atomic_nand<mode>_soft_tcb): New insns.
37099 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
37100 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
37101 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
37102 Split into atomic_not_fetchsi_hard if operands[0] is unused.
37103 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
37104 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37105 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
37106 atomic_not<mode>_hard if operands[0] is unused.
37107 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
37108 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
37109 if operands[0] is unused.
37110 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
37111 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
37112 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
37113 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37115 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
37116 into atomic_not<mode>_soft_tcb if operands[0] is unused.
37117 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
37118 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
37119 if operands[0] is unused.
37120 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
37121 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
37122 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
37123 atomic_nand_fetchsi_hard if operands[0] is unused.
37124 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
37125 atomic_nand<mode>_hard if operands[0] is unused.
37126 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
37127 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
37128 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
37129 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37130 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
37131 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
37132 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
37133 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37134 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
37135 atomic_not<mode>_hard if operands[0] is unused.
37136 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
37137 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37139 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
37140 into atomic_not<mode>_soft_tcb if operands[0] is unused.
37141 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
37142 atomic_nand<mode>_hard if operands[0] is unused.
37143 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
37144 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37146 2015-02-03 David Malcolm <dmalcolm@redhat.com>
37149 * Makefile.in (GCC_OBJS): Add gcc-main.o.
37150 * gcc-main.c: New file, containing "main" taken from gcc.c.
37151 * gcc.c (do_self_spec): Free decoded_options.
37152 (class driver): Move declaration to gcc.h.
37153 (main): Move declaration and implementation to new file
37155 (driver_get_configure_time_options): New function.
37156 * gcc.h (class driver): Move this declaration here, from
37158 (driver_get_configure_time_options): New declaration.
37160 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
37162 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
37163 cross-module inlining.
37164 * cgraph.h (cgraph_node): Add flag merged.
37165 * ipa-icf.c (sem_function::merge): Maintain it.
37167 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
37169 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
37170 instead of OBJECT_P.
37172 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
37175 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
37176 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
37177 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
37178 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
37180 2015-02-03 Jakub Jelinek <jakub@redhat.com>
37183 * combine.c (reg_n_sets_max): New variable.
37184 (can_change_dest_mode, reg_nonzero_bits_for_combine,
37185 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
37186 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
37187 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
37188 (rest_of_handle_combine): Initialize reg_n_sets_max.
37190 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
37192 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
37193 if some always_inline was inlined, apply changes before inlining
37196 2015-02-02 David Malcolm <dmalcolm@redhat.com>
37199 * config/arm/arm.c (arm_option_override): Set
37200 arm_selected_arch/cpu/tune to NULL on entry.
37202 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
37203 Andrew Pinski <pinskia@gcc.gnu.org>
37204 Jakub Jelinek <jakub@gcc.gnu.org>
37207 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
37208 integer typing for small model. Use IN_RANGE.
37210 2015-02-02 Richard Biener <rguenther@suse.de>
37212 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
37213 * tree-vrp.c (vrp_valueize_1): Likewise.
37215 2015-02-02 Alan Modra <amodra@gmail.com>
37217 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
37218 than mem for toc_restore.
37219 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
37220 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
37221 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
37223 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
37226 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
37227 explicit default options.
37229 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
37232 * ipa-utils.c (ipa_merge_profiles): Add release argument.
37233 * ipa-icf.c (sem_function::merge): Do not release body when merging.
37234 * ipa-utils.h (ipa_merge_profiles): Update prototype.
37236 2015-02-01 Jakub Jelinek <jakub@redhat.com>
37239 * cfgexpand.c (deep_ter_debug_map): New variable.
37240 (avoid_deep_ter_for_debug): New function.
37241 (expand_debug_expr): If TERed SSA_NAME is in
37242 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
37243 instead of trying to expand SSA_NAME's def stmt.
37244 (expand_debug_locations): When expanding debug bind
37245 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
37246 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
37248 (pass_expand::execute): Call avoid_deep_ter_for_debug on
37249 all debug bind stmts. Delete deep_ter_debug_map after
37250 expand_debug_location if non-NULL and clear it.
37252 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
37255 * config/sh/sync.md (atomic_fetch_notsi_hard,
37256 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
37257 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
37258 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
37259 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
37260 atomic_not_fetch<mode>_soft_imask): New insns.
37262 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37264 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
37265 (rank_for_schedule_debug): Split from ...
37266 (rank_for_schedule): ... this.
37267 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
37268 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
37270 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
37272 * doc/md.texi (Machine Constraints): Alphabetize table by target.
37273 * doc/extend.texi (x86 Variable Attributes): Move section to
37274 correct alphabetization after renaming.
37275 (x86 Type Attributes): Likewise.
37276 (Target Builtins): Re-alphabetize menu.
37277 (x86 Built-in Functions): Move section to correct alphabetization
37279 (x86 transactional memory intrinsics): Likewise.
37280 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
37281 and x86 Windows Options in table and menu.
37282 (x86 Options): Move section to correct alphabetization after
37284 (x86 Windows Options): Likewise.
37286 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
37288 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
37289 preferred names of the architecture and its 32- and 64-bit
37291 * doc/invoke.texi: Likewise.
37292 * doc/md.texi: Likewise.
37294 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
37297 * config/i386/predicates.md (address_no_seg_operand): Reject
37298 non-CONST_INT_P operands in invalid mode.
37300 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
37302 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
37303 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
37304 * config/i386/predicates.md (address_no_seg_operand): Call
37305 address_operand with VOIDmode.
37306 (vsib_address_operand): Ditto.
37307 (address_mpx_no_base_operand): Ditto.
37308 (address_mpx_no_index_operand): Ditto.
37310 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
37313 * lra-constraints.c (original_subreg_reg_mode): New.
37314 (simplify_operand_subreg): Try to simplify subreg of const. Use
37315 original_subreg_reg_mode for it.
37316 (swap_operands): Update original_subreg_reg_mode.
37317 (curr_insn_transform): Set up original_subreg_reg_mode.
37319 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
37322 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
37324 (process_alt_operands): Use it.
37325 (curr_insn_transform): Check the optional reload pseudo class is
37328 2015-01-30 Joseph Myers <joseph@codesourcery.com>
37330 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
37331 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
37333 * toplev.h (init_asm_output): Update comment on use of
37334 UNKNOWN_LOCATION with fatal_error.
37335 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
37336 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
37337 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
37338 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
37339 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
37340 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
37341 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
37342 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
37343 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
37344 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
37345 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
37346 fatal_error changed to pass input_location as first argument.
37348 2015-01-30 Martin Liska <mliska@suse.cz>
37350 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
37351 in #pragma GCC diagnostic guards.
37353 2015-01-30 Richard Biener <rguenther@suse.de>
37355 PR tree-optimization/64829
37356 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
37357 not add a widening conversion pattern but hand off extra
37358 widenings to callers.
37359 (vect_recog_widen_mult_pattern): Handle extra widening produced
37360 by vect_handle_widen_op_by_const.
37361 (vect_recog_widen_shift_pattern): Likewise.
37362 (vect_pattern_recog_1): Remove excess vertical space in dumping.
37363 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
37364 (vect_init_vector_1): Likewise.
37365 (vect_get_vec_def_for_operand): Likewise.
37366 (vect_finish_stmt_generation): Likewise.
37367 (vectorizable_load): Likewise.
37368 (vect_analyze_stmt): Likewise.
37369 (vect_is_simple_use): Likewise.
37371 2015-01-29 Jeff Law <law@redhat.com>
37373 * combine.c (try_combine): Fix typo in comment.
37375 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
37378 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
37379 (rs6000_stack_info): Add assert.
37380 (rs6000_output_savres_externs): New function, split off from...
37381 (rs6000_output_function_prologue): ... here. Do not call it for
37384 2015-01-29 Jeff Law <law@redhat.com>
37387 * combine.c (try_combine): If I0 is a memory load and I3 a store
37388 to a related address, increase the "goodness" of doing a 4-insn
37389 combination with I0-I3.
37390 (make_field_assignment): Handle SUBREGs in the ior+and case.
37392 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
37394 PR tree-optimization/64746
37395 * tree-if-conv.c (mask_exists): New function.
37396 (predicate_mem_writes): Save created mask with given size for further
37398 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
37399 (ifcvt_repair_bool_pattern): Collect all statements that are root
37400 of bool pattern and use iterative algorithm to remove multiple uses
37401 of predicates, display number of required iterations.
37403 2015-01-29 Richard Biener <rguenther@suse.de>
37405 PR tree-optimization/64853
37406 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
37407 stmt will get simulated again.
37408 * tree-ssa-ccp.c (valueize_op_1): Likewise.
37410 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37412 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
37413 return_in_pc. Remove redundant assignments.
37414 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
37415 (arm_expand_epilogue): Don't compare boolean with true in if condition.
37417 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
37419 * config/i386/i386.c (ix86_mode_after): Make static.
37421 2015-01-29 Richard Biener <rguenther@suse.de>
37423 PR tree-optimization/64844
37424 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
37425 dump cost model analysis.
37426 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
37427 Do not register adjusted load/store costs here.
37429 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
37430 Uros Bizjak <ubizjak@gmail.com>
37432 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
37433 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
37434 using x86_use_pseudo_pic_reg.
37435 * config/i386/i386.c (ix86_conditional_register_usage): Remove
37436 support for fixed PIC register.
37437 (ix86_use_pseudo_pic_reg): Not static any more.
37439 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
37441 PR middle-end/64805
37442 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
37443 to avoid error in cgraph node verification.
37445 2015-01-29 Marek Polacek <polacek@redhat.com>
37447 * doc/standards.texi: Reflect that the default for C is gnu11.
37449 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
37452 * reorg.c (switch_text_sections_between_p): New function.
37453 (relax_delay_slots): Call it when testing if the jump insn
37454 is removable. Use targetm.can_follow_jump when testing if
37455 the conditional branch can follow an unconditional jump.
37457 2015-01-27 Caroline Tice <cmtice@google.com>
37459 Committing VTV Cywin/Ming patch for Patrick Wollgast
37460 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
37461 if -fvtable-verify=preinit/std is used.
37462 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
37463 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
37464 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
37465 if -fvtable-verify=preinit/std is used.
37466 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
37467 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
37468 if -fvtable-verify=preinit/std is used.
37469 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
37470 * config/i386/mingw32.h (LIB_SPEC): Likewise.
37471 * varasm.c (assemble_variable): Add code to properly set the comdat
37472 section and name for the .vtable_map_vars section in case the
37473 target is PE or COFF.
37475 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
37478 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
37479 make sane BB profile.
37480 (cgraph_node::expand_thunk): Make sane BB profile.
37481 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
37482 * cgraph.h (init_lowered_empty_function): Update prototype.
37483 * config/i386/i386.c (make_resolver_func): Update call.
37484 * predict.c (gate): Disable branch prediction pass if
37485 profile is already there.
37487 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
37489 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
37490 * opth-gen.awk: Likewise.
37491 * common.opt: Mark flag_fp_contract_mode as Optimization.
37493 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
37495 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
37496 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
37498 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
37501 * config/sh/predicates.md (atomic_arith_operand,
37502 atomic_logical_operand): Remove.
37503 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
37504 (atomic_arith_operand_0): New predicate.
37505 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
37506 Use atomic_arith_operand_0 for input values.
37507 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
37508 atomic_compare_and_swap<mode>_soft_gusa,
37509 atomic_compare_and_swap<mode>_soft_tcb,
37510 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
37511 arith_reg_operand instead of register_operand.
37512 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
37513 atomic_arith_operand_0 for newval input.
37514 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
37515 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
37516 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
37517 arith_reg_operand instead of register_operand.
37518 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
37519 fetchop_predicate_1, fetchop_constraint_1_llcs,
37520 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
37521 fetchop_constraint_1_imask): New code iterator attributes.
37522 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
37523 register_operand. Use fetchop_predicate_1.
37524 (atomic_fetch_<fetchop_name>si_hard,
37525 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
37526 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
37527 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
37528 and arith_reg_operand instead of register_operand. Use
37529 fetchop_predicate_1, fetchop_constraint_1_gusa.
37530 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
37531 and arith_reg_operand instead of register_operand. Use
37532 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
37534 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
37535 and arith_reg_operand instead of register_operand. Use
37536 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
37538 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
37539 register_operand. Use atomic_logical_operand_1.
37540 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
37541 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
37542 arith_reg_operand instead of register_operand.
37543 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
37544 Use arith_reg_dest and arith_reg_operand instead of register_operand.
37545 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
37546 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
37547 register_operand. Use fetchop_predicate_1.
37548 (atomic_<fetchop_name>_fetchsi_hard,
37549 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
37550 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37551 fetchop_constraint_1_llcs.
37552 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
37553 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37554 fetchop_constraint_1_gusa.
37555 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
37556 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37557 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
37558 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
37559 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37560 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
37561 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
37562 register_operand. Use atomic_logical_operand_1.
37563 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
37564 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
37565 arith_reg_operand instead of register_operand.
37566 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
37567 arith_reg_operand instead of register_operand. Use logical_operand
37568 and K08. Adjust asm sequence to allow R0 usage.
37569 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
37570 arith_reg_operand instead of register_operand. Use logical_operand
37573 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37576 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
37577 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
37578 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
37579 only get_full_len HOST_WIDE_INTs from get_val () array rather than
37580 all bits in *val_wide.
37582 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
37584 * varpool.c (tls_model_names): Fix names.
37585 (varpool_node::dump): Dump tls- prefix for tls models.
37587 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
37588 Bernd Schmidt <bernds@codesourcery.com>
37589 Nathan Sidwell <nathan@codesourcery.com>
37591 * config/nvptx/mkoffload.c: New file.
37592 * config/nvptx/t-nvptx: Add build rules for it.
37593 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
37594 (extra_programs): Add mkoffload.
37595 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
37597 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
37599 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
37601 PR middle-end/64809
37602 * cfgexpand.c (reorder_operands): Skip debug gimples.
37604 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
37606 PR tree-optimization/64277
37607 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
37608 range info when possible to refine estimation.
37610 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
37612 PR tree-optimization/64718
37613 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
37614 be a 16bit unsigned integer when n->range is 16.
37615 (bswap_replace): Convert src to that type if necessary for all bswap
37616 sizes. Fix rotation right notation in nearby comment. Use bswap_type
37617 set in pass_optimize_bswap::execute ().
37619 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
37621 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
37622 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
37623 integer and floating point variants.
37624 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
37626 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
37628 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
37629 for all vector modes.
37631 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37634 * doc/sourcebuild.texi (comdat_group): Document.
37636 2015-01-28 Terry Guo <terry.guo@arm.com>
37638 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
37640 2015-01-27 David Malcolm <dmalcolm@redhat.com>
37642 * toplev.c (print_version): Add param "show_global_state", and
37643 only print GGC and plugin information if it is true.
37644 (init_asm_output): Pass in "true" for the new param when calling
37646 (process_options): Likewise.
37647 (toplev::main): Likewise.
37648 * toplev.h (print_version): Add new param to decl.
37650 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
37654 * tree.c (lookup_binfo_at_offset): New function.
37655 (get_binfo_at_offset): Use it.
37657 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
37660 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
37661 on vtable being vtable.
37663 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
37665 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
37666 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
37667 -mhotpatch= option.
37668 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
37669 -mno-hotpatch options. Change syntax of -mhotpatch= option.
37670 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
37672 (s390_hotpatch_trampoline_halfwords_max): Renamed.
37673 (s390_hotpatch_hw_max): New name.
37674 (s390_hotpatch_trampoline_halfwords): Renamed.
37675 (s390_hotpatch_hw_before_label): New name.
37676 (get_hotpatch_attribute): Removed.
37677 (s390_hotpatch_hw_after_label): New name.
37678 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
37680 (s390_attribute_table): Ditto.
37681 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
37682 (s390_function_num_hotpatch_hw): New name.
37683 Remove special handling of inline functions and hotpatching.
37684 Return number of nops before and after the function label.
37685 (s390_can_inline_p): Removed.
37686 (s390_asm_output_function_label): Emit a configurable number of nops
37687 after the function label.
37688 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
37689 (TARGET_CAN_INLINE_P) Removed.
37690 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
37692 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37693 Jiong Wang <jiong.wang@arm.com>
37695 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
37697 (cb<optab><mode>1): Likewise.
37698 * config/aarch64/iterators.md (bcond): New define_code_attr.
37700 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37702 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
37705 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37707 * config/s390/s390.c (s390_register_move_cost): Increase costs for
37710 2015-01-27 Richard Biener <rguenther@suse.de>
37712 * tree-vrp.c (update_value_range): Intersect the range with
37713 old recorded SSA name range information.
37715 2015-01-27 Nick Clifton <nickc@redhat.com>
37717 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
37718 BC, DE and HL registers directly, not via AX.
37719 When decrementing the stack pointer by a large amount, transfer SP
37720 into AX and perform the subtraction there.
37721 (rl78_expand_epilogue): Perform the inverse of the above
37724 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37726 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
37728 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37729 Yury Gribov <y.gribov@samsung.com>
37732 * ubsan.c (ubsan_source_location): Refactor code.
37733 (ubsan_type_descriptor): Update type size. Refactor code.
37735 2015-01-27 Richard Biener <rguenther@suse.de>
37737 PR tree-optimization/56273
37738 PR tree-optimization/59124
37739 PR tree-optimization/64277
37740 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
37741 from the first VRP pass.
37743 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37746 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
37747 handle the first argument in the same loop as all the other arguments.
37749 PR rtl-optimization/61058
37750 * jump.c (cleanup_barriers): Update basic block boundaries
37751 if BLOCK_FOR_INSN is non-NULL on PREV.
37753 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
37755 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
37756 bounds narrowing, already instrumented calls and calls to
37757 not instrumentable functions.
37759 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37761 PR tree-optimization/64807
37762 * wide-int.cc (wi::divmod_internal): Clear
37763 b_dividend[dividend_blocks_needed].
37765 2015-01-26 DJ Delorie <dj@redhat.com>
37767 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
37768 volatile memory references.
37770 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
37773 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
37775 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
37776 shifts if it already fits into K08.
37778 2015-01-26 Jakub Jelinek <jakub@redhat.com>
37781 * ipa-inline.c (inline_small_functions): Print "unknown" even
37782 if edge->call_stmt is non-NULL, but has builtins or unknown
37785 PR middle-end/64421
37786 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
37787 with asterisk, skip the first character.
37789 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
37792 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
37795 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
37798 * config/i386/i386.md (*movdi_internal): Also check operand 0
37799 to determine TYPE_LEA operand.
37800 (*movsi_internal): Ditto.
37802 2015-01-26 Jakub Jelinek <jakub@redhat.com>
37804 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
37805 OPTION_MASK_QUAD_MEMORY_ATOMIC.
37807 2015-01-26 Renlin Li <renlin.li@arm.com>
37809 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
37811 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
37814 2015-01-26 Richard Biener <rguenther@suse.de>
37816 PR middle-end/64764
37817 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
37818 combining two BIT_AND_EXPR predicates.
37820 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
37823 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
37825 2015-01-26 Terry Guo <terry.guo@arm.com>
37827 * config/arm/arm.c (arm_file_start): Update the assignment of
37828 Tag_ABI_HardFP_use.
37830 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
37832 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
37834 config/arm/arm.md: Include the new Cortex-A57 model.
37835 (generic_sched): Don't use generic_sched when tuning for
37838 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
37839 Uros Bizjak <ubizjak@gmail.com>
37841 * config/i386/i386.c (get_builtin_code_for_version): Add
37842 support for BMI and BMI2 multiversion functions.
37844 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37846 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
37847 (extract_bit_field): Likewise.
37848 (extract_low_bits): Likewise.
37849 (expand_mult): Likewise.
37850 (expand_mult_highpart_adjust): Likewise.
37852 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
37854 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
37855 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
37856 * config/i386/i386.c (processor_model): Add
37857 M_INTEL_COREI7_BROADWELL.
37858 (arch_names_table): Add "broadwell".
37860 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
37869 * config/sh/sh-protos.h
37870 (sh_extending_set_of_reg::can_use_as_unextended_reg,
37871 sh_extending_set_of_reg::use_as_unextended_reg,
37872 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
37873 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
37874 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
37875 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
37876 (sh_treg_insns): New class.
37877 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
37878 (scope_counter): New class.
37879 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
37880 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
37881 sh_extending_set_of_reg::can_use_as_unextended_reg,
37882 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
37883 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
37884 sh_split_treg_set_expr): New functions.
37885 (addsubcosts): Handle treg_set_expr.
37886 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
37887 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
37888 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
37889 (sh_insn_operands_modified_between_p): Make non-static.
37890 * config/sh/predicates.md (zero_extend_movu_operand): Allow
37891 simple_mem_operand in addition to displacement_mem_operand.
37892 (zero_extend_operand): Don't allow zero_extend_movu_operand.
37893 (treg_set_expr, treg_set_expr_not_const01,
37894 arith_reg_or_treg_set_expr): New predicates.
37895 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
37896 arith_or_int_operand instead of logical_operand. Convert to
37897 insn_and_split. Try to optimize constant operand in splitter.
37898 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
37899 (*tstqi_t_zero): Delete.
37900 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
37901 (tstsi_t_and_not): Delete.
37902 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
37903 Convert to insn_and_split.
37904 (unnamed split, tstsi_t_zero_extract_xor,
37905 tstsi_t_zero_extract_subreg_xor_little,
37906 tstsi_t_zero_extract_subreg_xor_big): Delete.
37907 (*tstsi_t_shift_mask): New insn_and_split.
37908 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
37909 to recombine with surrounding insns when splitting.
37910 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
37911 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
37912 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
37913 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
37914 (*cbranch_div0s: Delete.
37915 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
37916 Try to recombine with surrounding insns when splitting. Add operand
37918 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
37919 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
37920 *addc_r_r_msb, *addc_2r_msb): Delete.
37921 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
37923 (*addc_negreg_t): New insn_and_split.
37924 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
37925 Try to recombine with surrounding insns when splitting.
37926 Add operand order variants.
37927 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
37928 insn_and_split patterns.
37929 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
37930 surrounding insns when splitting.
37931 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
37932 (*rotcl): Likewise. Add zero_extract variant.
37933 (*ashrsi2_31): New insn_and_split.
37934 (*negc): Convert to insn_and_split. Use treg_set_expr.
37935 (*zero_extend<mode>si2_disp_mem): Update comment.
37936 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
37938 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
37939 with surrounding insns when splitting.
37940 (any_treg_expr_to_reg): New insn_and_split.
37941 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
37942 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
37943 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
37944 *zero_extract_2): New single bit zero extract patterns.
37945 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
37946 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
37947 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
37948 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
37950 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
37951 register_operand for set source.
37953 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
37955 * i386.opt (prefetch_sse): New targetsave.
37956 * i386.c (ix86_function_specific_save): Save prefetch_sse.
37957 (ix86_function_specific_restore): Restore prefetch_sse and initialize
37958 ix86_cost/ix86_tune_cost.
37960 2015-01-23 David Malcolm <dmalcolm@redhat.com>
37962 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
37963 Support the JIT by using 0 as the language type.
37965 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
37968 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
37969 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
37970 (mark_regno_live, process_bb_lives): Pass new parameter value to
37971 make_hard_regno_born.
37973 2015-01-23 Jakub Jelinek <jakub@redhat.com>
37975 PR rtl-optimization/63637
37976 PR rtl-optimization/60663
37977 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
37978 if elt->cost is MAX_COST for ASM_OPERANDS.
37979 (find_sets_in_insn): Fix up comment typo.
37980 (cse_insn): Don't set src_volatile for all non-volatile
37981 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
37982 or with "memory" clobber. Set elt->cost to MAX_COST
37983 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
37984 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
37986 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
37988 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
37991 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
37993 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
37994 libgcc/config/i386/elf-lib.h.
37996 2015-01-23 Jakub Jelinek <jakub@redhat.com>
37999 * gcc.c (print_configuration): Don't print a blank line at the end
38001 (run_attempt): ... but here unstead.
38003 PR middle-end/64734
38004 * omp-low.c (scan_sharing_clauses): Don't ignore
38005 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
38006 on target data/update constructs.
38008 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
38011 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
38012 (DEBUG_RELOAD): Removed define.
38013 (m32c_limit_reload_class): Enable traces with if DEBUG0.
38014 (m32c_function_arg): Added a type cast.
38015 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
38016 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
38017 * config/m32c/bitops.md (andqi3_16): Likewise.
38018 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
38019 (push_a01_l): Likewise.
38021 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38024 * main.c (main): Construct toplev instances with init_signals=true.
38025 * toplev.c (general_init): Add param "init_signals", and use it to
38026 conditionalize the calls to signal and host_hooks.extra_signals.
38027 (toplev::toplev): Add param "init_signals".
38028 (toplev::main): When invoking general_init, pass m_init_signals
38029 to control whether signal-handlers are installed.
38030 * toplev.h (toplev::toplev): Add param "init_signals".
38031 (toplev::m_init_signals): New field.
38033 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38036 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
38037 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
38038 latter may be affected by the former (e.g. on i686).
38040 2015-01-23 Martin Liska <mliska@suse.cz>
38042 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
38043 false positive during profiledbootstrap.
38045 2015-01-23 Tom de Vries <tom@codesourcery.com>
38048 * lto-opts.c (lto_write_options): Output non-explicit conservative
38050 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
38051 (append_compiler_options): Pass -fopenacc through.
38053 2015-01-23 Tom de Vries <tom@codesourcery.com>
38056 * lto-opts.c (lto_write_options): Output non-explicit conservative
38058 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
38059 (append_compiler_options): Pass -fopenmp through.
38061 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38064 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
38067 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
38068 * diagnostic.def (DK_ICE_NOBT): New kind.
38069 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
38070 like DK_ICE, but never print backtrace.
38071 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
38072 (internal_error_no_backtrace): New function.
38073 * gcc.c (execute): Use internal_error_no_backtrace instead of
38076 2015-01-22 Jeff Law <law@redhat.com>
38079 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
38080 improve code density for small immediate to memory case.
38081 (insv): Better handle bitfield assignments when the field is
38082 being set to all ones.
38083 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
38086 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38087 Jakub Jelinek <jakub@redhat.com>
38089 PR middle-end/64729
38090 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
38091 for !TARGET_LIBC_PROVIDES_SSP version and
38092 -fstack-protector-{all,strong,explicit} otherwise.
38093 * config/freebsd.h (LINK_SSP_SPEC): Handle
38094 -fstack-protector-{strong,explicit}.
38096 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
38097 H.J. Lu <hongjiu.lu@intel.com>
38100 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
38103 2015-01-22 Wei Mi <wmi@google.com>
38105 PR rtl-optimization/64557
38106 * dse.c (record_store): Call get_addr for mem_addr.
38107 (check_mem_read_rtx): Likewise.
38109 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
38111 * fold-const.c (const_binop): Add early return for non-tcc_binary.
38113 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
38115 * toplev.c (init_local_tick): Process the failure when read
38116 fails for random_seed.
38118 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
38119 'pretty_name' to avoid memory overflow.
38121 2015-01-22 Richard Biener <rguenther@suse.de>
38123 PR middle-end/64728
38124 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
38125 abnormal coalescing on undefined SSA names.
38127 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
38131 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
38133 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
38135 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
38137 PR middle-end/63325
38138 * fold-const.c (fold_checksum_tree): Don't include value of
38139 expr->decl_with_vis.symtab_node in the checksum.
38141 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38143 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
38145 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
38148 * gcc.c (insert_comments): New function.
38149 (try_generate_repro): Call it.
38150 (append_text): Removed.
38152 2015-01-22 Richard Biener <rguenther@suse.de>
38154 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
38155 with IL incompatible options. Properly honor user optimize
38158 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
38160 PR rtl-optimization/64682
38161 * combine.c (distribute_notes): When moving a death note for
38162 a register that is set in the new I2, make sure to put it
38163 before that new I2.
38165 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
38167 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
38168 not TARGET_DEFAULT.
38170 2015-01-21 Jakub Jelinek <jakub@redhat.com>
38173 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
38174 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
38175 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
38178 * doc/invoke.texi (-fsanitize=vptr): Document.
38180 PR rtl-optimization/62078
38181 * dse.c: Include cfgcleanup.h.
38182 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
38183 anything call purge_all_dead_edges and cleanup_cfg at the end
38186 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
38188 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
38191 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
38193 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
38196 2015-01-21 David Sherwood <david.sherwood@arm.com>
38197 Tejas Belagod <Tejas.Belagod@arm.com>
38199 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
38200 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
38201 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
38204 2015-01-21 David Sherwood <david.sherwood@arm.com>
38205 Tejas Belagod <Tejas.Belagod@arm.com>
38207 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
38208 (aarch64_reverse_mask): New decls.
38209 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
38210 (insn_count): New mode_attr.
38211 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
38212 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
38213 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
38214 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
38215 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
38216 (aarch64_simd_st4): New patterns.
38217 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
38218 (aarch64_reverse_mask): New functions.
38220 2015-01-21 Alan Hayward <alan.hayward@arm.com>
38222 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
38224 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
38225 addressing modes for BE.
38226 (aarch64_print_operand): Add 'R' specifier.
38227 (aarch64_simd_disambiguate_copy): Delete.
38228 (aarch64_simd_emit_reg_reg_move): New function.
38229 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
38230 in define_splits for structural moves.
38231 (mov<mode>): Use less restrictive predicates.
38232 (*aarch64_mov<mode>): Simplify and only allow for LE.
38233 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
38235 2015-01-21 Alan Hayward <alan.hayward@arm.com>
38237 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
38239 2015-01-21 Richard Henderson <rth@redhat.com>
38242 * ccmp.c (used_in_cond_stmt_p): Remove.
38243 (expand_ccmp_expr): Don't use it.
38245 2015-01-21 Nick Clifton <nickc@redhat.com>
38247 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
38250 2015-01-21 Richard Biener <rguenther@suse.de>
38252 PR middle-end/64313
38253 * tree-core.h (builtin_info, builtin_info_type): Turn from
38254 an object with two arrays into an array of an object with
38255 decl and two flags, implicit_p and declared_p.
38256 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
38257 set_builtin_decl, set_builtin_decl_implicit_p,
38258 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
38259 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
38260 * builtins.c (builtin_info): Adjust.
38261 * gimplify.c (gimplify_addr_expr): References to builtins
38262 that have been declared by the user makes them eligible for
38263 use by the compiler. Call set_builtin_decl_implicit_p on them.
38265 2015-01-20 Jeff Law <law@redhat.com>
38268 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
38269 allow pc-relative addresses in operand predicates or constraints.
38271 2015-01-21 Bin Cheng <bin.cheng@arm.com>
38273 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
38274 neon on aarch32 processors for stringops.
38276 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38279 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
38281 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38284 * ipa-inline.c: Include lto-streamer.h
38285 (report_inline_failed_reason): Output source file differences and
38286 flags on optimization/target node mismatch.
38287 (can_inline_edge_p): Consider caller to be the outer inline function;
38288 be less restrictive about matching opimize and optimize_size attributes.
38289 (inline_account_function_p): Break out from ...
38290 (inline_small_functions): ... here.
38291 * ipa-inline-transform.c (clone_inlined_nodes): Use
38292 inline_account_function_p.
38293 (inline_call): Use optimize attribution; use inline_account_function_p.
38294 (inline_transform): Use opt_for_fn.
38295 * ipa-inline.h (inline_account_function_p): Declare.
38297 2015-01-20 Jakub Jelinek <jakub@redhat.com>
38300 * dwarf2out.c (decl_piece_node): Don't put bitsize into
38301 mode if bitsize <= 0.
38302 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
38303 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
38304 sizes and positions.
38306 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
38308 * config/nios2/nios2.c (nios2_asm_file_end): Implement
38309 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
38311 (TARGET_ASM_FILE_END): Define.
38313 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38315 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
38316 (struct tune_params): Use the enum.
38317 * arm.c (arm_*_tune): Update.
38318 (arm_option_override): Update.
38320 2015-01-20 Richard Biener <rguenther@suse.de>
38323 * ipa-reference.c (add_static_var): Inline ...
38324 (analyze_function): ... here after splitting out from ...
38325 (is_proper_for_analysis): ... this.
38327 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
38330 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
38331 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
38332 replace the conditional with it's true branch.
38333 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
38334 (arm_lra_p): Remove.
38336 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
38338 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
38340 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38342 * config/tilegx/mul-tables.c: Move symtab.h include after
38343 coretypes.h include.
38344 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
38345 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
38346 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
38347 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
38348 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38350 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
38354 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
38356 PR rtl-optimization/64081
38357 * loop-iv.c (def_pred_latch_p): New function.
38358 (latch_dominating_def): Allow specific cases with non-single
38360 (iv_get_reaching_def): Likewise.
38361 (check_complex_exit_p): New function.
38362 (check_simple_exit): Use check_complex_exit_p to allow certain cases
38363 with exits not executing on any iteration.
38365 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38368 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
38369 to set branch cost.
38371 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38374 * i386.c (gate): Check flag_expensive_optimizations and
38376 (ix86_option_override_internal): Drop optimize_size condition
38377 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
38378 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
38379 MASK_PREFER_AVX128.
38380 (ix86_avx256_split_vector_move_misalign,
38381 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
38382 * sse.md (all uses of TARGET_PREFER_AVX128): Add
38383 optimize_insn_for_speed_p check.
38385 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
38387 * config/mips/mips.h (FP_ASM_SPEC): New define.
38388 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
38391 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
38394 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
38395 nullptr for insn when reaching the first insn.
38396 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
38397 (sh_insn_operands_modified_between_p): Add nullptr check.
38398 (sh_find_extending_set_of_reg): Fix log message. Don't accept
38399 sign extending mem load if the insn contains any UNSPEC or
38402 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38404 * params.def (inline-unit-growth): Drop to 15%.
38405 * invoke.texi (inline-unit-growth): Document change.
38407 2015-01-19 Martin Liska <mliska@suse.cz>
38410 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
38411 function for second argument of OBJ_TYPE_REF.
38413 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38416 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
38417 whether function is an alias.
38419 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38421 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
38424 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
38426 PR rtl-optimization/64671
38427 * lra-remat.c (operand_to_remat): Don't consider jump and call
38430 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
38433 * config/rs6000/default64.h: Include rs6000-cpus.def.
38434 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
38435 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
38436 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
38438 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
38440 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
38441 pseudo-op to specify assembler dialect.
38443 2015-01-19 Martin Liska <mliska@suse.cz>
38446 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
38447 Handle safe potentially removed nodes during filtering.
38449 2015-01-19 Martin Liska <mliska@suse.cz>
38451 * doc/extend.texi (no_icf): Add new attribute description.
38452 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
38453 where the pass attempts to merge a function with no_icf attribute.
38455 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38458 * doc/md.texi (ARM Options): Document register constraints.
38460 2015-01-19 Jiong Wang <jiong.wang@arm.com>
38461 Andrew Pinski <apinski@cavium.com>
38464 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
38465 (ashl<mode>3): Don't expand if operands[2] is not constant.
38467 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38470 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
38471 Match xor-and-xor RTL pattern.
38473 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
38475 PR rtl-optimization/64081
38476 * loop-iv.c (def_pred_latch_p): New function.
38477 (latch_dominating_def): Allow specific cases with non-single
38479 (iv_get_reaching_def): Likewise.
38480 (check_complex_exit_p): New function.
38481 (check_simple_exit): Use check_complex_exit_p to allow certain cases
38482 with exits not executing on any iteration.
38484 2015-01-19 Jakub Jelinek <jakub@redhat.com>
38486 * common.opt (fgraphite): Fix a typo.
38488 2015-01-19 Felix Yang <felix.yang@huawei.com>
38490 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
38492 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
38493 uminp, smax_nanp, smin_nanp): New builtins.
38494 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
38495 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
38496 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
38497 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
38498 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
38499 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
38500 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
38501 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
38502 vpminnms_f32): Rewrite using builtin functions.
38504 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
38507 * omp-low.c (offload_symbol_decl): Remove variable.
38508 (get_offload_symbol_decl): Remove function.
38509 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
38510 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
38511 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
38512 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
38513 BUILT_IN_GOACC_UPDATE don't pass it at all.
38515 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
38517 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
38520 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
38522 * ipa-chkp.c (chkp_produce_thunks): Add early param
38523 to split thunks production into two passes. Keep
38524 'always_inline' function bodies after the first pass.
38525 (pass_data_ipa_chkp_early_produce_thunks): New.
38526 (pass_ipa_chkp_early_produce_thunks): New.
38527 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
38528 chkp_produce_thunks signature.
38529 (make_pass_ipa_chkp_early_produce_thunks): New.
38530 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
38531 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
38532 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
38534 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38536 * cgraph.c (cgraph_node::dump): Dump profile flags.
38538 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
38541 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
38542 reg appear first in the parallel.
38544 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38546 * ipa-reference.c (set_reference_optimization_summary,
38547 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
38549 (ignore_module_statics): New static var.
38550 (propagate_bits): If ipa-reference is disabled, do not look into local
38552 (analyze_function): Disable analysis when ipa_reference is disabled.
38553 (generate_summary): Do not dump when reference is disabled;
38554 collect vars accessed from functions with ipa-reference disabled.
38555 (get_read_write_all_from_node): When ipa-reference is disabled, use the
38557 (gate): Enable for LTO.
38558 (ignore_edge_p): New function.
38559 (propagate): Skip functions w/o ipa-reference analysis.
38560 * optc-save-gen.awk: Handle optimize_debug correctly.
38561 * opth-gen.awk: Likewise.
38562 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
38563 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
38564 fira-share-save-slots, fira-share-spill-slots,
38565 fmodulo-sched-allow-regmoves, fpartial-inlining,
38566 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
38567 ftracer, ftree-parallelize-loops, fassociative-math,
38568 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
38570 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
38571 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
38573 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
38576 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38579 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
38581 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
38583 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
38585 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
38586 Remove duplicate option listings.
38588 2015-01-18 Felix Yang <felix.yang@huawei.com>
38590 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
38591 (autofdo_source_profile::get_callsite_total_count,
38592 function_instance::get_function_instance_by_decl,
38593 string_table::get_index, string_table::get_index_by_decl,
38594 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
38595 Fix comment typos. Reformatting and minor code rearrangement.
38597 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38599 * config/rs6000/rs6000.md (probe_stack): Delete.
38600 (probe_stack_address): New.
38602 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38604 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
38605 to test for 32-bit ABIs, not !TARGET_POWERPC64.
38607 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38609 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
38610 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
38611 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
38613 (rs6000_libcall_value): Use the new function.
38615 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
38617 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
38619 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
38621 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
38622 implement a more precise life analysis for it during backward scan.
38624 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
38626 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
38628 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
38630 PR rtl-optimization/52773
38631 * calls.c (emit_library_call_value): When pushing arguments use
38632 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
38633 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
38634 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
38636 2015-01-17 Jeff Law <law@redhat.com>
38638 PR rtl-optimization/32790
38639 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
38640 not ZERO_EXTEND in SET_DESTs.
38642 2015-01-17 Alan Modra <amodra@gmail.com>
38644 * cprop.c (do_local_cprop): Revert last change.
38646 2015-01-16 DJ Delorie <dj@redhat.com>
38647 Nick Clifton <nickc@redhat.com>
38649 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
38650 (addhi3_real): Likewise. Fix [HL+0] syntax.
38651 (subqi3_real): Likewise.
38652 (subhi3_real): Likewise.
38653 (cbranchqi4_real): Likewise. Allow saddr,#imm.
38654 (cbranchhi4_real): Likewise.
38655 (cbranchhi4_real_inverted): Likewise.
38656 (cbranchsi4_real_lt): Likewise.
38657 (cbranchsi4_real_ge): Likewise.
38658 (cbranchsi4_real_ge): Likewise.
38659 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
38660 (sub<mode>3_virt): Likewise.
38661 (cbranchqi4_virt): Likewise.
38662 (cbranchhi4_virt): Likewise.
38663 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
38664 always use '[reg+imm]' even when imm is zero.
38665 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
38666 (rl78_general_operand): New.
38667 (rl78_nonimmediate_operand): New.
38668 (rl78_nonfar_operand): Use them.
38669 (rl78_nonfar_nonimm_operand): Likewise.
38670 (rl78_stack_based_mem): Fix.
38671 * config/rl78/constraints.md (Ibqi): New.
38676 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
38677 (iorqi3): Likewise.
38678 (xorqi3): Likewise.
38679 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
38681 * config/rl78/constrains (Qs8): New constraint.
38682 * config/rl78/rl78.c (rl78_flags_already_set): New function.
38683 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
38684 * config/rl78/rl78-real.md (update_Z): New attribute.
38685 Update patterns to set it.
38686 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
38687 shorter compare and branch sequence can be used.
38688 (cbranchhi4_real): Likewise.
38689 (cbranchhi4_real_inverted): Likewise.
38691 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
38692 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
38694 * config/rl78/rl78.c (rl78_get_name_encoding): New.
38695 (rl78_option_override): Allow -mes0 only if C.
38696 (characterize_address): Support subregs of symbol_refs.
38697 (rl78_addr_space_address_mode): Move. Add __near.
38698 (rl78_far_p): Likewise.
38699 (rl78_addr_space_pointer_mode): Likewise.
38700 (rl78_as_legitimate_address): Likewise.
38701 (rl78_addr_space_subset_p): Likewise.
38702 (rl78_addr_space_convert): Likewise.
38703 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
38704 symbols with -mes0.
38705 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
38707 (rl78_alloc_physical_registers_op1): Change logic to prefer
38708 symbol[BC] addressing.
38709 (frodata_section): New.
38710 (rl78_asm_init_sections): Initialize it.
38711 (rl78_select_section): Put __far readonly symbols in .frodata.
38712 (rl78_make_type_far): New.
38713 (rl78_insert_attributes): Force all readonly symbols to be
38715 (rl78_asm_out_integer): New.
38716 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
38717 * config/rl78/rl78.opt (-mes0): New.
38719 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
38720 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
38721 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
38722 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
38723 (rl78_saddr_p): New.
38724 (rl78_output_aligned_common): New.
38725 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
38726 (rl78_handle_saddr_attribute): New.
38727 (rl78_handle_naked_attribute): New.
38728 (rl78_attribute_table): Add saddr.
38729 (rl78_print_operand_1): Don't print '!' on saddr operands.
38730 (rl78_print_operand_1): Strip encodings.
38732 (rl78_strip_name_encoding): New.
38733 (rl78_attrlist_to_encoding): New.
38734 (rl78_encode_section_info): New.
38735 (rl78_asm_init_sections): New.
38736 (rl78_select_section): New.
38737 (rl78_output_labelref): New.
38738 (rl78_output_aligned_common): New.
38739 (rl78_asm_out_integer): New.
38740 (rl78_asm_ctor_dtor): New.
38741 (rl78_asm_constructor): New.
38742 (rl78_asm_destructor): New.
38744 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
38745 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
38746 (transcode_memory_rtx): Update.
38747 (rl78_expand_epilogue): Use A_REG instead of 0.
38749 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38751 * config/arm/arm-protos.h (struct tune_params): New field
38752 sched_autopref_queue_depth.
38753 * config/arm/arm.c (sched-int.h): Include header.
38754 (arm_first_cycle_multipass_dfa_lookahead_guard,)
38755 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
38756 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
38757 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
38758 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
38759 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
38760 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
38761 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
38762 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
38763 * config/arm/t-arm (arm.o): Update.
38764 * haifa-sched.c (update_insn_after_change): Update.
38765 (rank_for_schedule): Use auto-prefetcher model, if requested.
38766 (autopref_multipass_init): New static function.
38767 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
38768 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
38769 variable for debug dumps.
38770 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
38771 (autopref_multipass_dfa_lookahead_guard): New global function that
38772 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
38773 (init_h_i_d): Update.
38774 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
38775 * sched-int.h (enum autopref_multipass_data_status): New const enum.
38776 (autopref_multipass_data_): Structure for auto-prefetcher data.
38777 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
38778 (struct _haifa_insn_data:autopref_multipass_data): New field.
38779 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
38780 (autopref_multipass_dfa_lookahead_guard): Declare.
38782 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38784 * rtlanal.c (get_base_term): Handle SCRATCH.
38786 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38788 * config/aarch64/aarch64.c
38789 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
38790 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38792 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
38793 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38795 2015-01-17 Alan Modra <amodra@gmail.com>
38797 * cprop.c (do_local_cprop): Disallow replacement of fixed
38800 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38803 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
38806 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
38808 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
38809 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
38811 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38813 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
38814 * config/arm/thumb1.md: ... Here.
38816 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38818 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
38819 TImode for TARGET_32BIT.
38821 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38823 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
38824 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
38826 (rs6000_abi_word_mode): New function.
38828 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38830 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
38831 instead of UNITS_PER_WORD to describe the size of stack slots.
38833 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38835 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
38836 as rs6000_promote_function_mode. Move comment to there.
38837 (rs6000_promote_function_mode): New function.
38839 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38841 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
38842 -mpowerpc64 is active.
38844 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
38846 PR middle-end/64353
38847 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
38850 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
38852 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
38853 introduced in revision 219724.
38855 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38856 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38859 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
38860 destination is not a GP reg.
38861 (*movdi_aarch64): Likewise.
38863 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
38866 * config/rs6000/default64.h: Revert ISA change.
38868 2015-01-16 Richard Biener <rguenther@suse.de>
38870 PR middle-end/64614
38871 * tree-ssa-uninit.c: Include tree-cfg.h.
38872 (MAX_SWITCH_CASES): New define.
38873 (convert_control_dep_chain_into_preds): Handle switch statements.
38874 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
38875 (normalize_one_pred_1): Do not split bit-manipulations.
38878 2015-01-16 Richard Biener <rguenther@suse.de>
38880 PR tree-optimization/64568
38881 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
38882 complex load rewriting for TARGET_MEM_REFs.
38884 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
38886 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
38888 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
38891 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
38893 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
38894 (aarch64_lra_p): Remove.
38896 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
38899 * ipa-chkp.h (chkp_instrumentable_p): New.
38900 * ipa-chkp.c: Include tree-inline.h.
38901 (chkp_instrumentable_p): New.
38902 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
38903 Fix processing of not instrumentable functions.
38904 (chkp_versioning): Use chkp_instrumentable_p. Warn about
38905 not instrumentable functions.
38906 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
38907 chkp_instrumentable_p.
38908 * tree-inline.h (copy_forbidden): New.
38909 * tree-inline.c (copy_forbidden): Not static anymore.
38911 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38913 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
38916 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
38918 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
38919 type OP_OUT to OP_INOUT.
38921 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
38923 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
38924 (high x) y) to y if x and y have the same base.
38926 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
38928 * config/arm/cortex-a57.md: New.
38929 * config/aarch64/aarch64.md: Include it.
38930 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
38931 * config/aarch64/aarch64-tune.md: Regenerate.
38933 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
38936 * ccmp.c (expand_ccmp_next): New function.
38937 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
38938 and compare insn sequence.
38939 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
38940 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
38941 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
38942 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
38943 (*ccmp_ior): Changed to ccmp_ior<mode>.
38944 (cmp<mode>): New pattern.
38945 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
38947 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
38949 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
38951 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
38952 _mm256_bsrli_epi128): New.
38953 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
38955 2015-01-15 Jiong Wang <jiong.wang@arm.com>
38957 * expmed.c (store_bit_field_using_insv): Improve warning message.
38958 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
38960 2015-01-15 Jiong Wang <jiong.wang@arm.com>
38962 PR rtl-optimization/64011
38963 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
38964 there is partial overflow.
38966 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38968 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
38970 (nds32_expand_epilogue_v3pop): Likewise.
38971 * config/nds32/nds32.md (sibcall): Define this for sibling call
38973 (sibcall_register): Likewise.
38974 (sibcall_immediate): Likewise.
38975 (sibcall_value): Likewise.
38976 (sibcall_value_register): Likewise.
38977 (sibcall_value_immediate): Likewise.
38978 (sibcall_epilogue): Likewise.
38979 (epilogue): Pass false to indicate this is not a sibcall epilogue.
38980 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
38981 (nds32_expand_epilogue_v3pop): Likewise.
38983 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38985 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
38986 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
38987 (return_internal): New.
38988 (return): Define this named pattern.
38989 (simple_return): Define this named pattern.
38990 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
38991 pattern instead of unspec_volatile_func_return.
38992 (nds32_expand_epilogue_v3pop): Likewise.
38993 (nds32_can_use_return_insn): New function.
38995 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
38997 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
38998 * config/nds32/nds32.md (pop25return): New.
38999 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
39000 pop25return pattern.
39002 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39004 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
39005 -mforbid-fp-as-gp, and -mex9 options.
39007 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39009 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
39010 remove -mgp-direct option.
39012 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39014 * doc/invoke.texi (--param early-inlining-insns): Update default value.
39015 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
39017 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39019 * ipa-inline.c (inline_small_functions): Work around hints
39022 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
39025 * doc/invoke.texi (Option Summary): Document new Nios II
39027 (Nios II Options): Likewise.
39028 * config/nios2/nios2.opt: Add -mgpopt= option support.
39029 Modify existing -mgpopt and -mno-gpopt options to be aliases.
39030 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
39031 * config/nios2/nios2.c (nios2_option_override): Adjust
39032 -mgpopt defaulting.
39033 (nios2_in_small_data_p): Return true for explicit small data
39034 sections even with -G0.
39035 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
39038 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39041 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
39043 (inline_call): Fix removal of aliases.
39045 2015-01-15 Jakub Jelinek <jakub@redhat.com>
39047 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
39048 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
39049 * opts.c (common_handle_option): Add -fsanitize=vptr.
39050 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
39051 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
39052 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
39053 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
39054 (ubsan_expand_vptr_ifn): New prototype.
39055 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
39056 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
39057 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
39058 expand_LOOP_VECTORIZED): Make argument nameless, remove
39060 (expand_UBSAN_VPTR): New function.
39061 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
39063 (UBSAN_VPTR): New internal function.
39064 * sanopt.c (tree_map_traits): Renamed to ...
39065 (sanopt_tree_map_traits): ... this.
39066 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
39067 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
39068 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
39069 (maybe_optimize_ubsan_vptr_ifn): New function.
39070 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
39071 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
39073 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
39074 internal calls like pure functions for aliasing, even when they
39075 have other side-effects that prevent making them ECF_PURE.
39076 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
39077 (ubsan_expand_vptr_ifn): New function.
39079 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
39081 PR rtl-optimization/64110
39082 * stmt.c (parse_output_constraint): Process '^' and '$'.
39083 (parse_input_constraint): Ditto.
39084 * lra-constraints.c (process_alt_operands): Process the new
39086 * ira-costs.c (record_reg_classes): Process the new constraint
39088 * genoutput.c (indep_constraints): Add '^' and '$'.
39089 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
39090 * doc/md.texi: Add description of the new constraints.
39092 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
39093 Bernd Schmidt <bernds@codesourcery.com>
39094 Cesar Philippidis <cesar@codesourcery.com>
39095 James Norris <jnorris@codesourcery.com>
39096 Tom de Vries <tom@codesourcery.com>
39097 Ilmir Usmanov <i.usmanov@samsung.com>
39098 Dmitry Bocharnikov <dmitry.b@samsung.com>
39099 Evgeny Gavrin <e.gavrin@samsung.com>
39100 Jakub Jelinek <jakub@redhat.com>
39102 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
39103 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39104 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39105 New function types.
39106 * builtins.c: Include "gomp-constants.h".
39107 (expand_builtin_acc_on_device): New function.
39108 (expand_builtin, is_inexpensive_builtin): Handle
39109 BUILT_IN_ACC_ON_DEVICE.
39110 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
39112 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
39114 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
39115 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
39116 i386/intelmic-offload.h.
39117 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
39118 to libgomp and its dependencies.
39119 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
39120 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
39121 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
39122 * config/ia64/hpux.h (LIB_SPEC): Likewise.
39123 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
39124 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
39125 * doc/generic.texi: Update for OpenACC changes.
39126 * doc/gimple.texi: Likewise.
39127 * doc/invoke.texi: Likewise.
39128 * doc/sourcebuild.texi: Likewise.
39129 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
39130 GF_OMP_FOR_KIND_OACC_LOOP.
39131 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
39132 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
39133 GF_OMP_TARGET_KIND_OACC_UPDATE,
39134 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39136 * gimple.c: Update comments for OpenACC changes.
39137 * gimple.def: Likewise.
39138 * gimple.h: Likewise.
39139 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
39140 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39141 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
39142 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39143 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
39145 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
39146 * gimplify.c: Include "gomp-constants.h".
39147 Update comments for OpenACC changes.
39148 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
39149 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
39150 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39151 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
39152 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39153 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39154 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
39155 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39156 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
39158 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
39159 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
39160 OMP_CLAUSE_SET_MAP_KIND.
39161 (gimplify_oacc_cache): New function.
39162 (gimplify_omp_for): Handle OACC_LOOP.
39163 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
39165 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
39166 OACC_EXIT_DATA, OACC_UPDATE.
39167 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
39168 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
39169 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
39170 (gimplify_body): Consider flag_openacc next to flag_openmp.
39171 * lto-streamer-out.c: Include "gomp-constants.h".
39172 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
39173 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
39174 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
39175 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
39176 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
39177 (BUILT_IN_ACC_ON_DEVICE): New builtins.
39178 * omp-low.c: Include "gomp-constants.h".
39179 Update comments for OpenACC changes.
39180 (struct omp_context): Add reduction_map, gwv_below, gwv_this
39182 (extract_omp_for_data, use_pointer_for_field, install_var_field)
39183 (new_omp_context, delete_omp_context, scan_sharing_clauses)
39184 (create_omp_child_function, scan_omp_for, scan_omp_target)
39185 (check_omp_nesting_restrictions, lower_reduction_clauses)
39186 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
39187 Update for OpenACC changes.
39188 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
39189 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
39190 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
39191 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39192 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
39193 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
39195 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
39196 Handle GF_OMP_FOR_KIND_OACC_LOOP.
39197 (expand_omp_target, lower_omp_target): Handle
39198 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39199 GF_OMP_TARGET_KIND_OACC_UPDATE,
39200 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
39201 GF_OMP_TARGET_KIND_OACC_DATA.
39202 (pass_expand_omp::execute, execute_lower_omp)
39203 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
39205 (offload_symbol_decl): New variable.
39206 (oacc_get_reduction_array_id, oacc_max_threads)
39207 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
39208 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
39209 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
39210 (oacc_gimple_assign, oacc_initialize_reduction_data)
39211 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
39213 (is_targetreg_ctx): Remove function.
39214 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
39215 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
39216 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39217 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
39218 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
39219 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
39220 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
39221 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
39222 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
39223 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
39224 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
39225 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
39226 * tree-core.h: Update comments for OpenACC changes.
39227 (enum omp_clause_map_kind): Remove.
39228 (struct tree_omp_clause): Change type of map_kind member from enum
39229 omp_clause_map_kind to unsigned char.
39230 * tree-inline.c: Update comments for OpenACC changes.
39231 * tree-nested.c: Likewise. Include "gomp-constants.h".
39232 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
39233 (convert_tramp_reference_stmt, convert_gimple_call): Update for
39234 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
39235 OMP_CLAUSE_SET_MAP_KIND.
39236 * tree-pretty-print.c: Include "gomp-constants.h".
39237 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
39238 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
39239 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
39240 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
39241 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39242 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
39243 instead of OMP_CLAUSE_MAP_*.
39244 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
39245 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
39246 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39247 * tree-streamer-in.c: Include "gomp-constants.h".
39248 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
39249 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
39250 * tree-streamer-out.c: Include "gomp-constants.h".
39251 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
39253 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
39254 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
39255 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
39256 * tree.c (omp_clause_num_ops): Update accordingly.
39257 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
39259 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
39260 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
39261 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
39262 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
39263 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
39264 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
39265 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
39266 (OMP_CLAUSE_SET_MAP_KIND): New macro.
39267 * varpool.c (varpool_node::get_create): Consider flag_openacc next
39269 * config/i386/intelmic-offload.h: New file.
39270 * config/nvptx/offload.h: Likewise.
39272 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39274 * explow.h: Remove duplicate contents.
39275 * dojump.h: Likewise.
39277 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
39279 * arm.c (arm_xgene_tune): Add default initializer for instruction
39282 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39286 * ipa.c (symbol_table::remove_unreachable_nodes):
39287 Do not put abstract origins into boundary.
39289 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
39291 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
39292 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
39294 2015-01-15 Steve Ellcey <sellcey@mips.com>
39296 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
39297 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
39298 builtins.def, and chkp-builtins.def.
39300 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
39302 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
39305 2015-01-15 Richard Biener <rguenther@suse.de>
39307 PR tree-optimization/61743
39308 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
39309 information on PHIs for some simple cases.
39311 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39313 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
39315 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
39316 * config/arm/arm-cores.def (xgene1): New entry.
39317 * config/arm/arm-tables.opt: Regenerate.
39318 * config/arm/arm-tune.md: Regenerate.
39319 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
39321 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
39323 * tree-if-conv.c: Include hash-map.h.
39324 (aggressive_if_conv): New variable.
39325 (fold_build_cond_expr): Add simplification of non-zero condition.
39326 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
39327 destination block is not always executed.
39328 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
39329 than two predecessors if AGGRESSIVE_IF_CONV is true.
39330 (if_convertible_stmt_p): Fix commentary.
39331 (all_preds_critical_p): New function.
39332 (has_pred_critical_p): New function.
39333 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
39334 BB can have more than two predecessors and all incoming edges can be
39336 (predicate_bbs): Skip predication for loop exit block, use build2_loc
39337 to compute predicate for true edge.
39338 (find_phi_replacement_condition): Delete this function.
39339 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
39340 Allow interchange PHI arguments if EXTENDED is false.
39341 Change check that block containing reduction statement candidate
39342 is predecessor of phi-block since phi may have more than two arguments.
39343 (phi_args_hash_traits): New helper structure.
39344 (struct phi_args_hash_traits): New type.
39345 (phi_args_hash_traits::hash): New function.
39346 (phi_args_hash_traits::equal_keys): New function.
39347 (gen_phi_arg_condition): New function.
39348 (predicate_scalar_phi): Add handling of phi nodes with more than two
39349 arguments, delete COND and TRUE_BB arguments, insert body of
39350 find_phi_replacement_condition to predicate ordinary phi nodes.
39351 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
39352 delete call of find_phi_replacement_condition and invoke
39353 predicate_scalar_phi with two arguments.
39354 (insert_gimplified_predicates): Add assert that non-predicated block
39355 don't have statements to insert.
39356 (ifcvt_split_critical_edges): New function.
39357 (ifcvt_split_def_stmt): Likewise.
39358 (ifcvt_walk_pattern_tree): Likewise.
39359 (stmt_is_root_of_bool_pattern): Likewise.
39360 (ifcvt_repair_bool_pattern): Likewise.
39361 (ifcvt_local_dce): Likewise.
39362 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
39363 is copy of inner or outer loop force_vectorize field, invoke
39364 ifcvt_split_critical_edges, ifcvt_local_dce and
39365 ifcvt_repair_bool_pattern for aggressive if-conversion.
39367 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
39369 * config/aarch64/aarch64.md: Include xgene1.md.
39370 * config/aarch64/xgene1.md: New file.
39372 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39374 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
39375 xgene1 (APM XGene-1) core definition.
39376 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
39377 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
39378 * doc/invoke.texi: Document -mcpu=xgene1.
39380 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39382 * dojump.h: New header file.
39383 * explow.h: Likewise.
39384 * expr.h: Remove includes.
39385 Move expmed.c prototypes to expmed.h.
39386 Move dojump.c prototypes to dojump.h.
39387 Move alias.c prototypes to alias.h.
39388 Move explow.c prototypes to explow.h.
39389 Move calls.c prototypes to calls.h.
39390 Move emit-rtl.c prototypes to emit-rtl.h.
39391 Move varasm.c prototypes to varasm.h.
39392 Move stmt.c prototypes to stmt.h.
39393 (saved_pending_stack_adjust): Move to dojump.h.
39394 (adjust_address): Move to explow.h.
39395 (adjust_address_nv): Move to emit-rtl.h.
39396 (adjust_bitfield_address): Likewise.
39397 (adjust_bitfield_address_size): Likewise.
39398 (adjust_bitfield_address_nv): Likewise.
39399 (adjust_automodify_address_nv): Likewise.
39400 * explow.c (expr_size): Move to expr.c.
39401 (int_expr_size): Likewise.
39402 (tree_expr_size): Likewise.
39403 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39404 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39405 * genemit.c (main): Generate includes statistics.h, real.h,
39406 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
39408 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
39409 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
39410 explow.h, emit-rtl.h, stmt.h.
39411 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
39412 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
39413 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
39414 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
39415 emit-rtl.h, varasm.h, stmt.h.
39416 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
39417 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
39418 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
39419 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
39420 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39421 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
39422 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
39423 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
39424 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
39425 tm.h tree.h varasm.h vec.h wide-int.h.
39426 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39427 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39428 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
39429 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
39430 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
39431 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
39432 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
39433 * loop-iv.c: Likewise.
39434 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
39435 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
39436 statistics.h stmt.h tree.h varasm.h wide-int.h.
39437 * lra-constraints.c: Likewise.
39438 * lra-eliminations.c: Likewise.
39439 * lra-lives.c: Likewise.
39440 * lra-remat.c: Likewise.
39441 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39442 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
39443 statistics.h stmt.h tree.h varasm.h wide-int.h.
39444 * hw-doloop.c: Likewise.
39445 * ira-color.c: Likewise.
39446 * ira-emit.c: Likewise.
39447 * loop-doloop.c: Likewise.
39448 * loop-invariant.c: Likewise.
39449 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39450 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
39451 statistics.h stmt.h tree.h varasm.h wide-int.h.
39452 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
39453 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
39454 statistics.h stmt.h tree.h varasm.h wide-int.h.
39455 * combine-stack-adj.c: Likewise.
39458 * ifcvt.c: Likewise.
39459 * ira-costs.c: Likewise.
39460 * jump.c: Likewise.
39461 * lra-coalesce.c: Likewise.
39462 * lra-spills.c: Likewise.
39463 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39464 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
39465 stmt.h varasm.h wide-int.h.
39466 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39467 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39469 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
39470 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
39471 statistics.h stmt.h varasm.h wide-int.h.
39472 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
39473 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
39474 varasm.h wide-int.h.
39475 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
39476 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39477 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
39478 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
39479 statistics.h stmt.h.
39480 * config/tilepro/tilepro.c: Likewise.
39481 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
39482 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
39483 * config/pdp11/pdp11.c: Likewise.
39484 * config/xtensa/xtensa.c: Likewise.
39485 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
39486 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39488 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39489 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39490 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
39491 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39492 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39493 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
39494 * rtl-chkp.c: Likewise.
39495 * tree-chkp-opt.c: Likewise.
39496 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
39497 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39498 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
39499 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39500 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39501 statistics.h stmt.h.
39502 * tree-vect-data-refs.c: Likewise.
39503 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
39504 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39505 rtl.h statistics.h stmt.h varasm.h.
39506 * internal-fn.c: Likewise.
39507 * ipa-icf-gimple.c: Likewise.
39508 * lto-section-out.c: Likewise.
39509 * tree-data-ref.c: Likewise.
39510 * tree-nested.c: Likewise.
39511 * tree-outof-ssa.c: Likewise.
39512 * tree-predcom.c: Likewise.
39513 * tree-pretty-print.c: Likewise.
39514 * tree-scalar-evolution.c: Likewise.
39515 * tree-ssa-strlen.c: Likewise.
39516 * tree-vect-loop.c: Likewise.
39517 * tree-vect-patterns.c: Likewise.
39518 * tree-vect-slp.c: Likewise.
39519 * tree-vect-stmts.c: Likewise.
39520 * tsan.c: Likewise.
39521 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39522 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
39524 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
39525 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39526 statistics.h stmt.h varasm.h.
39527 * loop-unroll.c: Likewise.
39528 * ubsan.c: Likewise.
39529 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
39530 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
39532 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39533 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
39534 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
39535 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39536 statistics.h stmt.h.
39537 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
39538 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39539 statistics.h stmt.h varasm.h.
39540 * gimple-match-head.c: Likewise.
39541 * lto-cgraph.c: Likewise.
39542 * lto-section-in.c: Likewise.
39543 * lto-streamer-in.c: Likewise.
39544 * lto-streamer-out.c: Likewise.
39545 * tree-affine.c: Likewise.
39546 * tree-cfg.c: Likewise.
39547 * tree-cfgcleanup.c: Likewise.
39548 * tree-if-conv.c: Likewise.
39549 * tree-into-ssa.c: Likewise.
39550 * tree-ssa-alias.c: Likewise.
39551 * tree-ssa-copyrename.c: Likewise.
39552 * tree-ssa-dse.c: Likewise.
39553 * tree-ssa-forwprop.c: Likewise.
39554 * tree-ssa-live.c: Likewise.
39555 * tree-ssa-math-opts.c: Likewise.
39556 * tree-ssa-pre.c: Likewise.
39557 * tree-ssa-sccvn.c: Likewise.
39558 * tree-tailcall.c: Likewise.
39559 * tree-vect-generic.c: Likewise.
39560 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39561 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
39562 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39563 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
39564 * varasm.c: Likewise.
39565 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39566 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
39568 * init-regs.c: Likewise.
39570 * omp-low.c: Likewise.
39571 * stack-ptr-mod.c: Likewise.
39572 * tree-ssa-reassoc.c: Likewise.
39573 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39574 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
39576 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39577 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
39578 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39579 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
39580 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39581 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
39582 * tree-ssa-phiopt.c: Likewise.
39583 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39584 fixed-value.h hashtab.h real.h statistics.h stmt.h.
39585 * config/fr30/fr30.c: Likewise.
39586 * config/frv/frv.c: Likewise.
39587 * expr.c: Likewise.
39588 * final.c: Likewise.
39589 * optabs.c: Likewise.
39590 * passes.c: Likewise.
39591 * simplify-rtx.c: Likewise.
39592 * stmt.c: Likewise.
39593 * toplev.c: Likewise.
39594 * var-tracking.c: Likewise.
39595 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39596 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39597 * lower-subreg.c: Likewise.
39598 * postreload-gcse.c: Likewise.
39600 * reginfo.c: Likewise.
39601 * store-motion.c: Likewise.
39602 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39603 fixed-value.h hashtab.h real.h stmt.h varasm.h.
39604 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39605 fixed-value.h hashtab.h statistics.h stmt.h.
39606 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39607 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39608 * except.c: Likewise.
39609 * explow.c: Likewise.
39610 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39611 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
39613 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39614 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
39615 * tree-ssa-structalias.c: Likewise.
39616 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39617 fixed-value.h insn-config.h real.h statistics.h.
39618 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39619 fixed-value.h insn-config.h real.h statistics.h stmt.h.
39620 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39621 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39622 * cfgbuild.c: Likewise.
39623 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39624 fixed-value.h real.h rtl.h statistics.h stmt.h.
39625 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39626 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39627 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39628 fixed-value.h real.h statistics.h stmt.h.
39629 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39630 fixed-value.h real.h statistics.h stmt.h varasm.h.
39631 * cprop.c: Likewise.
39632 * modulo-sched.c: Likewise.
39633 * postreload.c: Likewise.
39634 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39635 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
39636 statistics.h stmt.h varasm.h.
39637 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
39638 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39639 rtl.h statistics.h stmt.h varasm.h.
39640 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
39641 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
39643 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39644 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
39646 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
39647 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
39649 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
39650 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39651 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39652 function.h real.h statistics.h stmt.h varasm.h.
39653 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39654 insn-config.h real.h statistics.h stmt.h.
39655 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39656 statistics.h stmt.h.
39657 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
39658 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
39659 statistics.h stmt.h varasm.h.
39660 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
39661 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
39662 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39663 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
39664 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
39665 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39666 statistics.h stmt.h varasm.h.
39667 * ipa-polymorphic-call.c: Likewise.
39668 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
39669 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39670 statistics.h stmt.h.
39671 * config/c6x/c6x.c: Likewise.
39672 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
39673 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39674 statistics.h stmt.h varasm.h.
39675 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
39676 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
39678 * ipa-split.c: Likewise.
39679 * tree-eh.c: Likewise.
39680 * tree-ssa-dce.c: Likewise.
39681 * tree-ssa-loop-niter.c: Likewise.
39682 * tree-vrp.c: Likewise.
39683 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
39684 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
39686 * config/nds32/nds32-fp-as-gp.c: Likewise.
39687 * config/nds32/nds32-intrinsic.c: Likewise.
39688 * config/nds32/nds32-isr.c: Likewise.
39689 * config/nds32/nds32-md-auxiliary.c: Likewise.
39690 * config/nds32/nds32-memory-manipulation.c: Likewise.
39691 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
39692 * config/nds32/nds32-predicates.c: Likewise.
39693 * config/nds32/nds32.c: Likewise.
39694 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
39695 fixed-value.h hashtab.h real.h statistics.h.
39696 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
39697 fixed-value.h hashtab.h real.h statistics.h stmt.h.
39698 * config/arm/arm.c: Likewise.
39699 * config/avr/avr.c: Likewise.
39700 * config/bfin/bfin.c: Likewise.
39701 * config/h8300/h8300.c: Likewise.
39702 * config/i386/i386.c: Likewise.
39703 * config/ia64/ia64.c: Likewise.
39704 * config/iq2000/iq2000.c: Likewise.
39705 * config/m32c/m32c.c: Likewise.
39706 * config/m32r/m32r.c: Likewise.
39707 * config/m68k/m68k.c: Likewise.
39708 * config/mcore/mcore.c: Likewise.
39709 * config/mep/mep.c: Likewise.
39710 * config/mips/mips.c: Likewise.
39711 * config/mn10300/mn10300.c: Likewise.
39712 * config/moxie/moxie.c: Likewise.
39713 * config/pa/pa.c: Likewise.
39714 * config/rl78/rl78.c: Likewise.
39715 * config/rx/rx.c: Likewise.
39716 * config/s390/s390.c: Likewise.
39717 * config/sh/sh.c: Likewise.
39718 * config/sparc/sparc.c: Likewise.
39719 * config/spu/spu.c: Likewise.
39720 * config/stormy16/stormy16.c: Likewise.
39721 * config/v850/v850.c: Likewise.
39722 * config/vax/vax.c: Likewise.
39723 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
39724 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39725 * config/msp430/msp430.c: Likewise.
39726 * predict.c: Likewise.
39727 * value-prof.c: Likewise.
39728 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
39729 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
39730 * config/microblaze/microblaze.c: Likewise.
39731 * config/nios2/nios2.c: Likewise.
39732 * config/rs6000/rs6000.c: Likewise.
39733 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39734 insn-config.h real.h rtl.h statistics.h stmt.h.
39735 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39736 insn-config.h real.h statistics.h stmt.h.
39737 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
39738 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39739 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
39740 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39741 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
39742 fixed-value.h real.h statistics.h stmt.h.
39743 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
39744 fixed-value.h statistics.h stmt.h.
39745 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
39748 2015-01-15 Jakub Jelinek <jakub@redhat.com>
39750 * gengtype.c (create_user_defined_type): Workaround
39751 -Wmaybe-uninitialized false positives.
39752 * cse.c (fold_rtx): Likewise.
39753 * loop-invariant.c (gain_for_invariant): Likewise.
39755 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
39757 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
39758 set the memory attributes in all cases but clear MEM_EXPR if need be.
39760 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
39762 PR tree-optimization/64434
39763 * cfgexpand.c (reorder_operands): New function.
39764 (expand_gimple_basic_block): Insert call of reorder_operands if
39767 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
39769 * config/mips/micromips.md (*swp): Remove explicit parallel.
39770 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
39771 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
39772 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
39773 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
39774 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
39775 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
39776 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
39777 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
39778 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
39779 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
39780 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
39781 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
39782 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
39783 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
39784 (mips_wrdsp): Likewise.
39785 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
39787 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
39788 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
39789 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
39790 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
39791 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
39792 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
39793 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
39794 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
39795 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
39797 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
39799 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
39800 (mips_print_operand): Support 'y' to print exact log2 in decimal
39802 * config/mips/mips.h (ISA_HAS_LSA): New define.
39803 (ISA_HAS_DLSA): Likewise.
39804 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
39805 * config/mips/predicates.md (const_immlsa_operand): New predicate.
39807 2015-01-15 Martin Liska <mliska@suse.cz>
39810 * optc-save-gen.awk: Add support for array types.
39812 2015-01-15 Richard Biener <rguenther@suse.de>
39814 PR middle-end/64365
39815 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
39816 for MEM_REF access functions with the same base can never partially
39819 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
39821 * common.opt: New option -fstack-protector-explicit.
39822 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
39823 (stack_protect_decl_phase): Handle stack_protect attribute for
39824 explicit stack protection requests.
39825 (expand_used_vars): Similarly.
39826 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
39827 * doc/extend.texi: Add documentation for "stack_protect" attribute.
39828 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
39830 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
39833 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
39835 (sh_extending_set_of_reg): New struct.
39836 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
39837 sh_remove_reg_dead_or_unused_notes): New Declarations.
39838 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
39839 sh_find_extending_set_of_reg, sh_split_tst_subregs,
39840 sh_extending_set_of_reg::use_as_extended_reg): New functions.
39841 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
39842 convert to insn_and_split and use new function sh_split_tst_subregs.
39844 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
39846 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
39848 (Optimization Options): Move -fuse-ld documentation to...
39849 (Link Options): ...here.
39851 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
39853 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
39855 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
39856 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
39857 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
39858 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
39859 instead of ZR for the memory operand of LL/SC.
39860 (compare_and_swap_12, sync_add<mode>): Likewise.
39861 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
39862 (sync_new_<optab>_12, sync_nand_12): Likewise.
39863 (sync_old_nand_12, sync_new_nand_12): Likewise.
39864 (sync_sub<mode>, sync_old_add<mode>): Likewise.
39865 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
39866 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
39867 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
39868 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
39869 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
39870 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
39871 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
39872 * doc/md.texi (ZC): Update description.
39874 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
39876 * builtins.c (expand_builtin_atomic_exchange): Remove error when
39877 memory model is CONSUME.
39878 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
39879 expand_builtin_atomic_store): Change invalid memory model errors to
39881 (expand_builtin_atomic_clear): Change invalid model errors to warnings
39882 and issue warning for CONSUME.
39884 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
39886 * lto-cgraph: Update function comments for
39887 lto_symtab_encoder_encode_*.
39889 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
39891 * Makefile.in (site.exp): Do not set ENABLE_LTO.
39893 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
39895 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
39896 * lto-cgraph.c (select_what_to_stream): Remove argument, use
39897 lto_stream_offload_p instead.
39898 * lto-streamer.h (select_what_to_stream): Remove argument.
39899 * passes.c (ipa_write_summaries): Likewise.
39900 * tree-pass.h (ipa_write_summaries): Likewise.
39902 2015-01-14 Richard Biener <rguenther@suse.de>
39904 PR tree-optimization/59354
39905 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
39906 groups larger than the slp group size as having gaps.
39908 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
39910 PR middle-end/59448
39911 * builtins.c (get_memmodel): Promote consume to acquire always.
39913 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39916 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
39919 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39922 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
39924 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
39925 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
39926 AVX512VBMI, as it implies AVX512BW.
39928 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39931 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
39932 (vec_unpacks_hi_v16sf): Ditto.
39934 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39936 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
39939 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39941 * doc/invoke.texi (mapcs): Mention deprecation.
39942 (mapcs-frame): Likewise.
39944 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
39947 * config/arm/arm.c (callee_saved_reg_p): Define.
39948 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
39949 register is callee saved instead of !call_used_regs[reg].
39950 (thumb1_compute_save_reg_mask): Likewise.
39952 2015-01-14 Hale Wang <hale.wang@arm.com>
39954 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
39957 2015-01-14 Richard Biener <rguenther@suse.de>
39960 * tree-inline.c (insert_debug_decl_map): Check destination
39961 function MAY_HAVE_DEBUG_STMTS.
39962 (insert_init_debug_bind): Likewise.
39963 (insert_init_stmt): Remove redundant check.
39964 (remap_gimple_stmt): Drop debug stmts if the destination
39965 function has var-tracking assignments disabled.
39967 2015-01-14 Martin Liska <mliska@suse.cz>
39969 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
39970 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
39972 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39975 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
39976 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
39978 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
39980 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
39981 level from an ARCH; do not inject the default.
39982 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
39983 MIPS_ISA_LEVEL_SPEC.
39984 (MIPS_ISA_NAN2008_SPEC): Update comment.
39985 (BASE_DRIVER_SELF_SPECS): Likewise.
39986 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
39987 MIPS_DEFAULT_ISA_LEVEL_SPEC.
39988 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
39989 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
39990 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
39992 2015-01-14 Richard Biener <rguenther@suse.de>
39994 PR tree-optimization/64493
39995 PR tree-optimization/64495
39996 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
39997 assign the proper vectorized PHI to the inner loop exit PHIs.
39999 2015-01-14 Joey Ye <joey.ye@arm.com>
40001 * config/arm/arm.c (arm_compute_save_reg_mask):
40002 Do not save lr in case of tail call.
40003 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
40005 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
40007 * tree-vrp.c (check_array_ref): Emit more warnings
40008 for warn_array_bounds >= 2.
40009 * common.opt: New option -Warray-bounds=.
40010 * doc/invoke.texi: Document -Warray-bounds=.
40012 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
40014 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
40015 (mforbid-fp-as-gp): Remove.
40017 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
40018 (nds32_symbol_load_store_p): Remove.
40019 (nds32_fp_as_gp_check_available): Clean up implementation.
40020 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
40022 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
40023 fp-as-gp and ex9 cases.
40025 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40027 * tree-profile.c (init_ic_make_global_vars): Drop workaround
40028 for bintuils bug 14342.
40029 (init_ic_make_global_vars): Likewise.
40030 (gimple_init_edge_profiler): Likewise.
40031 (gimple_gen_ic_func_profiler): Likewise.
40033 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
40035 * ipa-inline.c (inline_small_functions): Swap the operands in
40038 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40041 * ipa-inline-analysis.c (node_growth_cache): Remove.
40042 (initialize_growth_caches): Do not initialize it.
40043 (free_growth_caches): Do not free it.
40044 (do_estimate_growth): Rename to ...
40045 (estimate_growth): ... this one; drop growth cache code.
40046 (growth_likely_positive): Always go the heuristics way.
40047 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
40048 (reset_edge_caches): Do not reset node growth.
40049 (heap_edge_removal_hook): Do not maintain cache.
40050 (inline_small_functions): Likewise; strenghten sanity check.
40051 (ipa_inline): Do not maintain caches.
40052 * ipa-inline.h (node_growth_cache): Remove.
40053 (do_estimate_growth): Remove to ...
40054 (estimate_growth): this one; remove inline version.
40055 (reset_node_growth_cache): Remove.
40057 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40060 * ipa-inline.c (inline_small_functions): Update callee keys after
40061 resolving speculation
40062 (inline_small_functions): Always check monotonicity of the queue.
40064 2015-01-13 Marek Polacek <polacek@redhat.com>
40066 PR middle-end/64391
40067 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
40069 2015-01-13 Jakub Jelinek <jakub@redhat.com>
40071 PR rtl-optimization/64286
40072 * ree.c (combine_reaching_defs): Move part of comment earlier,
40073 remove !SCALAR_INT_MODE_P check.
40074 (add_removable_extension): Don't add vector mode
40075 extensions if all uses of the source register aren't the same
40078 2015-01-13 Renlin Li <renlin.li@arm.com>
40080 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
40081 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
40083 2015-01-13 Martin Liska <mliska@suse.cz>
40085 * ipa-icf.c (sem_function::equals_private): Call new functions
40086 cl_target_option_print_diff and cl_optimization_print_diff.
40087 * optc-save-gen.awk (cl_target_option_print_diff): New function.
40088 (cl_optimization_print_diff): Likewise.
40089 * opth-gen.awk: Likewise.
40091 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
40093 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
40094 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
40095 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
40096 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
40097 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
40098 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
40100 2015-01-13 Andrew Pinski <apinski@cavium.com>
40102 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
40103 instead of src mode.
40105 2015-01-13 Richard Biener <rguenther@suse.de>
40108 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
40111 2015-01-13 Andrew Pinski <apinski@cavium.com>
40113 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
40115 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
40117 2015-01-13 Jakub Jelinek <jakub@redhat.com>
40119 PR middle-end/63974
40120 * cfgexpand.c (expand_computed_goto): Don't call
40121 convert_memory_address here.
40123 2015-01-13 Richard Biener <rguenther@suse.de>
40125 PR tree-optimization/64406
40126 * tree-loop-distibution.c (pass_loop_distribution::execute):
40127 Reset the SCEV hashtable if we distributed anything.
40129 2015-01-13 Richard Biener <rguenther@suse.de>
40131 PR tree-optimization/64404
40132 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
40133 SLP types for CSEd loads.
40135 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
40137 PR tree-optimization/64436
40138 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
40139 merge of two symbolic numbers for a bitwise OR to ...
40140 (perform_symbolic_merge): This. Also fix computation of the range and
40141 end of the symbolic number corresponding to the result of a bitwise OR.
40143 2015-01-13 Richard Biener <rguenther@suse.de>
40145 PR tree-optimization/64568
40146 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
40147 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
40149 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40151 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
40152 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
40154 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40156 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
40157 target-specific symbol_ref flag.
40158 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
40159 resides in rodata section.
40160 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
40161 (nds32_encode_section_info): New function.
40163 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40165 * config/nds32/nds32.md (call): Use pseudo instruction bal which
40166 clobbers TA_REGNUM if large code model is specified.
40167 (call_register): Likewise.
40168 (call_immediate): Likewise.
40169 (call_value): Likewise.
40170 (call_value_register): Likewise.
40171 (call_value_immediate): Likewise.
40173 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40175 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
40176 (TARGET_CMODEL_MEDIUM): New macro.
40177 (TARGET_CMODEL_LARGE): New macro.
40178 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
40179 code model setting in assembly code.
40181 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40183 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
40184 Remove MASK_GP_DIRECT flag.
40185 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
40186 one of the multilib default options.
40187 * config/nds32/nds32.opt (mgp-direct): Remove.
40188 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
40189 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
40191 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40193 * config/nds32/nds32.opt (mcmodel): Add new option.
40194 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
40195 to describe code model.
40197 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
40200 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
40202 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
40204 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
40205 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
40206 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
40207 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
40208 __builtin_sh_set_fpscr.
40210 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
40212 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
40213 after a funtion name just to indicate it is a function.
40214 ([-fsanitize-undefined-trap-on-error]): Likewise.
40215 ([-fdbg-cnt=]): Likewise.
40216 ([-mmemcpy]): Likewise.
40217 ([-mflush-func]): Likewise.
40218 ([-msynci]): Likewise.
40220 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
40222 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
40225 2015-01-12 Jakub Jelinek <jakub@redhat.com>
40227 PR tree-optimization/64563
40228 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
40229 instead of != VR_VARYING.
40232 * config/i386/i386.c (ix86_expand_prologue): Add
40233 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
40235 PR tree-optimization/64454
40236 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
40237 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
40238 for signed or [0, op1 - 1] for unsigned modulo.
40239 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
40240 even if op1 does not satisfy integer_pow2p.
40243 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
40245 2015-01-12 Jeff Law <law@redhat.com>
40248 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
40249 (trunchiqi2, truncsihi2): Similarly.
40251 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
40252 rather than calling F.
40254 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
40256 * tsan.c (instrument_expr): Use force_gimple_operand.
40257 Use may_be_nonaddressable_p instead of is_gimple_addressable.
40259 2015-01-12 Richard Biener <rguenther@suse.de>
40261 PR tree-optimization/64530
40262 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
40265 2015-01-12 Richard Biener <rguenther@suse.de>
40267 PR middle-end/64357
40268 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
40271 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40273 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
40274 Cortex-A17 tuning parameters.
40275 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
40277 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40279 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
40280 * config/arm/arm.c (arm_macro_fusion_p): New function.
40281 (arm_macro_fusion_pair_p): Likewise.
40282 (TARGET_SCHED_MACRO_FUSION_P): Define.
40283 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
40284 (ARM_FUSE_NOTHING): Likewise.
40285 (ARM_FUSE_MOVW_MOVT): Likewise.
40286 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
40287 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
40288 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
40289 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
40290 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
40291 arm_cortex_a5_tune): Specify fuseable_ops value.
40293 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
40296 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
40297 test for PIE with copy reloc.
40298 * configure: Regenerated.
40300 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40302 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
40304 (arm_tls_descseq_addr): Likewise.
40305 (arm_gen_movmemqi): Likewise.
40306 (arm_expand_epilogue_apcs_frame): Likewise.
40307 (arm_expand_epilogue): Likewise.
40308 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
40311 2015-01-12 Martin Liska <mliska@suse.cz>
40314 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
40315 volatility for correct operands.
40317 2015-01-12 Martin Liska <mliska@suse.cz>
40319 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
40320 indication that a function is not leaf.
40321 (sem_function::compare_polymorphic_p): Likewise.
40323 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40325 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
40326 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
40327 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
40328 fold-const.h, tree-check.h.
40330 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
40334 * ipa-inline.c (compute_uninlined_call_time,
40335 compute_inlined_call_time): Use counts for extra precision when
40337 (big_speedup_p): Fix formating.
40338 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
40339 (relative_time_benefit): Remove.
40340 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
40341 merge guessed and read profile paths.
40342 (inline_small_functions): Count only !optimize_size functions into
40343 initial size; be more lax about sanity check when profile is used;
40344 be sure to update inlined function profile when profile is read.
40346 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
40349 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
40350 cost when edge becomes direct.
40351 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
40352 is resolved or when introducing new speculation.
40354 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
40358 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
40359 '||' to fix typo issue.
40361 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
40362 accept and return NULL.
40364 2015-01-12 Martin Liska <mliska@suse.cz>
40366 * cgraph.c (cgraph_edge::remove_callee): Move function to header
40367 file for being inlined.
40368 (cgraph_set_edge_callee): Delete.
40369 (cgraph_edge::redirect_callee): Move function to header file
40371 (cgraph_edge::make_direct): Use new function.
40372 (cgraph_edge::dump_edge_flags): New function created from
40373 static dump_edge_flags function.
40374 (cgraph_node::dump): Use new function.
40375 (cgraph_edge::verify_count_and_frequency): New function created
40376 from verify_edge_count_and_frequency.
40377 (cgraph_edge::verify_corresponds_to_fndecl): New function created
40378 from verify_edge_corresponds_to_fndecl.
40379 (verify_edge_corresponds_to_fndecl): Delete.
40380 (cgraph_node::verify_node): Use new function.
40381 * cgraph.h (cgraph_edge::set_callee): New function.
40382 (cgraph_edge::dump_edge_flags): Likewise.
40383 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
40385 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
40387 * ipa-utils.c (estimate_function_body_sizes): Do not
40388 free node params when called late with early=true.
40390 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
40392 * doc/md.texi (Instruction Patterns): Rewrite text for
40394 (Example): Likewise.
40396 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
40398 * doc/invoke.texi (Option Summary): Break long lines.
40399 [(-fdiagnostics-color)]: Put long literal in @smallexample
40401 [(-fsanitize-recover)]: Likewise.
40402 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
40403 [(-ffast-math)]: Likewise.
40404 [(--param max-inline-insns-recursive)]: Likewise.
40405 [(--param max-inline-recursive-depth)]: Likewise.
40406 [(-mno-text-section-literals)]: Likewise.
40408 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
40410 * doc/install.texi: Update for libgomp being renamed from "GNU
40411 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
40413 * doc/sourcebuild.texi: Likewise.
40415 2015-01-10 Anthony Green <green@moxielogic.com>
40417 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
40418 mul.x availability for moxiebox configuration.
40420 2015-01-09 Anthony Green <green@moxielogic.com>
40422 * config/moxie/moxie.md: Tabify assembly output.
40424 2015-01-09 Anthony Green <green@moxielogic.com>
40426 * config/moxie/moxie.md (CC_REG): Correct register definition.
40428 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
40430 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
40431 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
40434 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40436 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
40438 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
40439 Jakub Jelinek <jakub@redhat.com>
40441 PR middle-end/64412
40442 * lto-streamer.h (lto_stream_offload_p): New declaration.
40443 * lto-streamer.c (lto_stream_offload_p): New variable.
40444 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
40445 at the same time as section_name_prefix.
40446 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
40447 if lto_stream_offload_p.
40448 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
40449 stream TREE_TARGET_OPTION if lto_stream_offload_p.
40450 (write_ts_function_decl_tree_pointers): Don't
40451 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
40452 * tree-streamer-in.c (unpack_value_fields): Don't stream
40453 TREE_TARGET_OPTION in if ACCEL_COMPILER.
40454 (lto_input_ts_function_decl_tree_pointers): Don't stream
40455 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
40456 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
40457 instead of section_name_prefix string comparisons.
40459 2015-01-09 Jakub Jelinek <jakub@redhat.com>
40461 PR rtl-optimization/64536
40462 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
40465 2015-01-09 Michael Collison <michael.collison@linaro.org>
40467 PR tree-optimization/64322
40468 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
40469 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
40471 2015-01-09 Tom de Vries <tom@codesourcery.com>
40473 PR rtl-optimization/64539
40474 * regcprop.c (kill_clobbered_values): Factor out of ...
40475 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
40476 instead of note_stores with kill_clobbered_value.
40478 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40480 * ginclude/unwind-arm-common.h: Revert previous commit.
40482 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40484 * config.gcc (arm*-*-freebsd*): New configuration.
40485 * config/arm/freebsd.h: New file.
40486 * config.host: Add extra components for arm*-*-freebsd*.
40487 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
40488 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
40490 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40492 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
40494 * config/rs6000/t-rtems: Add e6500 multilibs.
40496 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40498 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
40501 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40503 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
40504 MULTILIB_EXCEPTIONS.
40506 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40508 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
40509 MULTILIB_EXCEPTIONS.
40511 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40513 * config/arm/t-rtems-eabi: Rename to...
40514 * config/arm/t-rtems: ...this.
40515 * config/arm/rtems-eabi.h: Rename to...
40516 * config/arm/rtems.h: ...this.
40517 * config.gcc (arm*-*-rtems*): Reflect changes above.
40519 2015-01-09 Richard Biener <rguenther@suse.de>
40521 PR tree-optimization/64410
40522 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
40524 (execute_update_addresses_taken): Deal with that.
40525 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
40526 loads/stores for complex variables.
40528 2015-01-09 Martin Liska <mliska@suse.cz>
40530 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
40532 (func_checker::compare_memory_operand): New function.
40533 (func_checker::compare_operand): Split case to newly
40535 (func_checker::compare_cst_or_decl): New function.
40536 (func_checker::compare_gimple_call): Identify
40538 (func_checker::compare_gimple_assign): Likewise.
40539 * ipa-icf-gimple.h: New function.
40541 2015-01-09 Martin Liska <mliska@suse.cz>
40544 * sreal.c (sreal::dump): Change unsigned format to signed for
40546 (sreal::to_double): Replace exp2 with scalbln.
40548 2015-01-09 Martin Liska <mliska@suse.cz>
40550 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
40551 * ipa-icf.c (sem_function::equals_private): Add support for target and
40552 (sem_item_optimizer::merge_classes): Remove redundant function
40553 optimization flags comparison.
40554 * tree.h (target_opts_for_fn): New function.
40556 2015-01-09 Tom de Vries <tom@codesourcery.com>
40558 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
40560 2015-01-09 Kito Cheng <kito@0xlab.org>
40562 PR rtl-optimization/64348
40563 * lra-constraints.c (split_reg): Fix caller-save store/restore
40564 instruction generation.
40566 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
40568 PR gcov-profile/61790
40569 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
40570 long long. Fallback to int64_t if host doesn't have long long and
40571 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
40573 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40575 PR tree-optimization/63989
40576 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
40577 from 1000 to 10000.
40578 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
40579 (get_stridx): If we don't have a record for certain SSA_NAME,
40580 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
40581 constant offset, call get_stridx_plus_constant.
40582 (get_stridx_plus_constant): New function.
40583 (zero_length_string): Don't use get_stridx here.
40586 PR middle-end/64388
40587 * dse.c (struct insn_info): Mention frame_read set also
40588 before reload for tail calls on some targets.
40589 (scan_insn): Revert 2014-12-22 change. Set frame_read
40590 also before reload for tail calls if
40591 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
40592 instead of add_non_frame_wild_read for non-const/memset
40593 tail calls after reload.
40595 2015-01-08 Jason Merrill <jason@redhat.com>
40597 * ubsan.c (do_ubsan_in_current_function): New.
40598 (pass_ubsan::gate): Use it.
40599 * ubsan.h: Declare it.
40600 * convert.c (convert_to_integer): Use it.
40602 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40605 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
40606 compare_code when it is unconditionally overwritten afterwards.
40607 Use ix86_reverse_condition instead of reverse_condition. Don't
40608 change code if *reverse_condition* returned UNKNOWN and don't
40609 swap ct/cf and negate diff in that case.
40611 2015-01-08 Mike Stump <mikestump@comcast.net>
40613 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
40614 (pass_tsan_O0::gate): Likewise.
40615 * extend.texi (Function Attributes): Add no_sanitize_thread
40618 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
40620 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
40621 for registering builtins.
40622 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
40623 add -fopenmp to the argv_obstack used when invoking
40624 compile_for_target.
40626 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
40627 add "-m32" or "-m64" to argv_obstack.
40628 (generate_host_descr_file): Likewise, when invoking host_compiler.
40629 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
40632 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40634 * config/sh/sh-mem.cc: Use constant as second operand when emitting
40637 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40640 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
40641 constant load if constant operand fits into I08.
40643 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40646 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
40647 and TREE_THIS_VOLATILE for MEM_REFs.
40648 (build5_stat): Fix up initialization of TREE_READONLY and
40649 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
40651 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
40654 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
40655 of r for the second alternative of the destination operand.
40657 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
40660 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
40662 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
40664 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
40666 ([-fivar-visibility], [-fvisibility]): Likewise.
40668 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
40670 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
40671 the file where @code, @command, etc is more appropriate.
40673 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
40675 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
40676 of -mrecip= documentation.
40678 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
40681 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
40682 correct reload handler if -m32 -mpowerpc64 is used.
40684 2015-01-06 Tom de Vries <tom@codesourcery.com>
40686 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
40688 2015-01-08 Christian Bruel <christian.bruel@st.com>
40691 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
40693 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
40695 PR tree-optimization/63259
40696 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
40697 if optab exists for 16bit byteswap.
40699 2015-01-06 Jakub Jelinek <jakub@redhat.com>
40701 * opts.c (common_handle_option): Add support for
40702 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
40703 * doc/invoke.texi: Document -fno-sanitize=all,
40704 -f{,no-}sanitize-recover=all. Document that
40705 -fsanitize=float-cast-overflow is not enabled
40706 by -fsanitize=undefined. Fix up documentation
40707 of -f{,no-}sanitize-recover.
40709 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
40711 * config.gcc: Add Visium support.
40712 * configure.ac: Likewise.
40713 * configure: Regenerate.
40714 * doc/extend.texi (interrupt attribute): Add Visium.
40715 * doc/invoke.texi: Document Visium options.
40716 * doc/install.texi: Document Visium target.
40717 * doc/md.texi: Document Visium constraints.
40718 * common/config/visium: New directory.
40719 * config/visium: Likewise.
40721 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
40723 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
40724 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
40726 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
40728 * combine.c (combine_validate_cost): Do not count the cost of a
40729 split I2 twice. Do not display it twice in the dump, either.
40731 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
40733 Revert parts of r219199.
40734 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
40736 ([-Wtraditional]): Restore markup on <limits.h>.
40738 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
40741 * doc/invoke.texi: Document -Wsuggest-override.
40743 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
40745 PR rtl-optimization/64287
40746 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
40747 (process_options): Disable flag_ipa_ra if profiling.
40749 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
40751 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
40753 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
40755 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
40756 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
40757 put under #if TARGET_LOOPS guard.
40759 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
40761 * config/i386/i386.c (output_387_binary_op): Use std::swap.
40763 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
40765 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
40766 * rtl.h (refers_to_regno_p): Add overload.
40768 * bt-load.c: Likewise.
40769 * combine.c: Likewise.
40770 * df-scan.c: Likewise.
40771 * sched-deps.c: Likewise.
40772 * config/s390/s390.c: Likewise.
40773 * config/m32r/m32r.c: Likewise.
40774 * config/rs6000/spe.md: Likewise.
40775 * config/rs6000/rs6000.c: Likewise.
40776 * config/pa/pa.c: Likewise.
40777 * config/stormy16/stormy16.c: Likewise.
40778 * config/cris/cris.c: Likewise.
40779 * config/arc/arc.md: Likewise.
40780 * config/arc/arc.c: Likewise.
40781 * config/sh/sh.md: Likewise.
40782 * config/sh/sh.c: Likewise.
40783 * config/frv/frv.c: Likewise.
40785 2015-01-05 Jakub Jelinek <jakub@redhat.com>
40788 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
40789 call as cleanup of the whole body.
40790 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
40791 * tsan.c (replace_func_exit): New function.
40792 (instrument_func_exit): Moved earlier.
40793 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
40794 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
40796 (tsan_pass): Don't call instrument_func_exit.
40797 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
40798 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
40802 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
40803 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
40804 it to libubsan handler instead of EXPR. Fold comparisons earlier,
40805 if the result is integer_zerop, return NULL_TREE.
40806 * convert.c (convert_to_integer): Pass expr as ARG.
40808 PR tree-optimization/64465
40809 * tree-inline.c (redirect_all_calls): During inlining
40810 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
40811 changed the stmt to a non-throwing call.
40813 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
40815 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
40816 etc markup throughout the file.
40818 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
40820 Enable experimental TSAN support for Ada.
40821 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
40823 2015-01-05 Jakub Jelinek <jakub@redhat.com>
40825 PR tree-optimization/64494
40826 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
40827 clear SSA_NAME_ANTI_RANGE_P flag.
40829 2015-01-05 Marek Polacek <polacek@redhat.com>
40831 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
40833 2015-01-05 Jakub Jelinek <jakub@redhat.com>
40835 Update copyright years.
40837 * gcc.c (process_command): Update copyright notice dates.
40838 * gcov-dump.c: Ditto.
40840 * doc/cpp.texi: Bump @copying's copyright year.
40841 * doc/cppinternals.texi: Ditto.
40842 * doc/gcc.texi: Ditto.
40843 * doc/gccint.texi: Ditto.
40844 * doc/gcov.texi: Ditto.
40845 * doc/install.texi: Ditto.
40846 * doc/invoke.texi: Ditto.
40848 * auto-profile.c, auto-profile.h: Fix up Copyright line.
40850 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
40852 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
40854 ([-fvtable-verify], [-fvtv-debug]): Likewise.
40855 ([-Wabi]): Likewise.
40856 ([-fmessage-length]): Likewise.
40857 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
40858 ([-Wno-discarded-qualifiers]): Likewise.
40859 ([-Wnodiscarded-array-qualifiers]): Likewise.
40860 ([-Wno-virtual-move-assign]): Likewise.
40861 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
40862 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
40863 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
40864 ([-fsanitize-undefined-trap-on-error]): Likewise.
40865 ([-floop-interchange]): Likewise.
40866 ([-ftree-coalesce-inlined-vars]): Likewise.
40867 ([-fvect-cost-model]): Likewise.
40868 ([-flto]): Likewise.
40869 ([--param]): Likewise.
40870 (Spec Files): Likewise.
40871 ([-mstrict-align]): Likewise.
40872 ([-mfix-cortex-a53-835769]): Likewise.
40873 ([-march], [-mtune]): Likewise.
40874 ([-mpic-register]): Likewise.
40875 ([-munaligned-access]): Likewise.
40876 ([-msp8]): Likewise.
40877 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
40878 (AVR Built-in Macros): Likewise.
40879 ([-mpreferred-stack-boundary]): Likewise.
40880 ([-mtune-crtl]): Likewise.
40881 ([-mashf]): Likewise.
40882 ([-mmcu=]): Likewise.
40883 ([-minrt]): Likewise.
40884 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
40885 ([-mupper-regs]): Likewise.
40886 ([-matomic-model]): Likewise.
40887 ([-mdiv]): Likewise.
40888 ([-mzdcbranch]): Likewise.
40889 ([-mdisable-callt]): Likewise.
40890 ([-msoft-float]): Likewise.
40891 ([-m8byte-align]): Likewise.
40892 ([-fstack-reuse]): Likewise.
40894 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40896 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
40897 Fix markup, light copy-editing.
40898 ([-fauto-profile]): Rewrite to fix formatting and content
40901 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40903 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
40904 Copy-edit description.
40905 ([-fisolate-erroneous-paths-attribute]): Likewise.
40906 * common.opt (fisolate-erroneous-paths-dereference):
40907 Copy-edit description.
40908 (fisolate-erroneous-paths-attribute): Likewise.
40910 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40912 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
40915 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40917 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
40918 ([-fvtv-debug]): Likewise.
40919 ([-Wc++-compat]): Likewise.
40920 ([-Wc++11-compat]): Likewise.
40921 ([-Wc++14-compat]): Likewise.
40922 ([-Wno-sized-deallocation]): Likewise.
40923 ([-femit-class-debug-always]): Likewise.
40924 ([-femit-struct-debug-detailed]): Likewise.
40925 ([-fno-keep-inline-dllexport]): Likewise.
40926 ([-fira-algorithm]): Likewise.
40927 ([-fira-region]): Likewise.
40928 ([-flra-remat]): Likewise.
40929 ([-fipa-ra]): Likewise.
40930 ([-fhoist-adjacent-loads]): Likewise.
40931 ([-fisolate-erroneous-paths-dereference]): Likewise.
40932 ([-fisolate-erroneous-paths-attribute]): Likewise.
40933 ([-ftree-switch-conversion]): Likewise.
40934 ([-ftree-tail-merge]): Likewise.
40935 ([-ftree-loop-if-convert]): Likewise.
40936 ([-ftree-loop-if-convert-stores]): Likewise.
40937 ([-ftree-loop-distribution]): Likewise.
40938 ([-ftree-loop-distribute-patterns]): Likewise.
40939 ([-flto-compression-level]): Likewise.
40940 ([-flto-report]): Likewise.
40941 ([-flto-report-wpa]): Likewise.
40942 ([-fuse-linker-plugin]): Likewise.
40943 ([-mfix-cortex-a53-835769]): Likewise.
40944 ([-mno-fix-cortex-a53-835769]): Likewise.
40945 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
40946 explicit listing; add a note to the discussion indicating they
40947 exist. Reorder table to group similar options. Add missing
40948 @opindex entries. Add @need commands throughout the table to
40949 allow it to be split across multiple pages.
40950 ([-m8bit-idiv]): Fix @opindex.
40951 ([-mavx256-split-unaligned-load]): Likewise.
40952 ([-mavx256-split-unaligned-store]): Likewise.
40953 ([-mstack-protector-guard]): Likewise.
40954 ([-mcpu=]): Likewise.
40955 ([-mcpu]): Likewise.
40956 ([-mpointer-size=]): Likewise.
40958 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
40960 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
40961 instead of `m' constraint. Likewise for unnamed movb comparison
40962 patterns using reg_before_reload_operand predicate.
40963 * config/pa/predicates.md (reg_before_reload_operand): Tighten
40964 predicate to reject register index and LO_SUM DLT memory forms
40967 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
40969 * doc/invoke.texi (Option Summary): Fix spelling of
40970 -fdevirtualize-at-ltrans.
40971 ([-fdevirtualize]): Fix markup.
40972 ([-fdevirtualize-speculatively]): Fix typo.
40973 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
40974 implementor-speaky.
40975 * common.opt (fdevirtualize-at-ltrans): Likewise.
40976 * ipa-devirt.c: Fix typos in comments throughout the file.
40977 (ipa_devirt): Fix typos in format strings for dump output.
40979 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
40981 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
40982 discussion of defaults, light copy-editing.
40984 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
40986 * tsan.c (instrument_expr): corrected previous checkin.
40988 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
40990 Instrument bit field and unaligned accesses for TSAN.
40991 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
40992 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
40993 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
40994 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
40995 unaligned memory regions.
40997 2015-01-01 Anthony Green <green@moxielogic.com>
40999 * config/moxie/predicates.md (moxie_general_movsrc_operand):
41000 Restrict move source register offsets to 16 bits.
41002 Copyright (C) 2015 Free Software Foundation, Inc.
41004 Copying and distribution of this file, with or without modification,
41005 are permitted in any medium without royalty provided the copyright
41006 notice and this notice are preserved.